prepare to upload
[debian/amanda] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
584
585 echo=${ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587   # Discard the --no-reexec flag, and continue.
588   shift
589 elif test "X$1" = X--fallback-echo; then
590   # Avoid inline document here, it may be left over
591   :
592 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
593   # Yippee, $echo works!
594   :
595 else
596   # Restart under the correct shell.
597   exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601   # used as fallback echo
602   shift
603   cat <<EOF
604 $*
605 EOF
606   exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
619        echo_test_string=`eval $cmd` &&
620        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
621     then
622       break
623     fi
624   done
625 fi
626
627 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629    test "X$echo_testing_string" = "X$echo_test_string"; then
630   :
631 else
632   # The Solaris, AIX, and Digital Unix default echo programs unquote
633   # backslashes.  This makes it impossible to quote backslashes using
634   #   echo "$something" | sed 's/\\/\\\\/g'
635   #
636   # So, first we look for a working echo in the user's PATH.
637
638   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639   for dir in $PATH /usr/ucb; do
640     IFS="$lt_save_ifs"
641     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644        test "X$echo_testing_string" = "X$echo_test_string"; then
645       echo="$dir/echo"
646       break
647     fi
648   done
649   IFS="$lt_save_ifs"
650
651   if test "X$echo" = Xecho; then
652     # We didn't find a better echo, so look for alternatives.
653     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
654        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
655        test "X$echo_testing_string" = "X$echo_test_string"; then
656       # This shell has a builtin print -r that does the trick.
657       echo='print -r'
658     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
659          test "X$CONFIG_SHELL" != X/bin/ksh; then
660       # If we have ksh, try running configure again with it.
661       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662       export ORIGINAL_CONFIG_SHELL
663       CONFIG_SHELL=/bin/ksh
664       export CONFIG_SHELL
665       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
666     else
667       # Try using printf.
668       echo='printf %s\n'
669       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
670          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
671          test "X$echo_testing_string" = "X$echo_test_string"; then
672         # Cool, printf works
673         :
674       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675            test "X$echo_testing_string" = 'X\t' &&
676            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677            test "X$echo_testing_string" = "X$echo_test_string"; then
678         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679         export CONFIG_SHELL
680         SHELL="$CONFIG_SHELL"
681         export SHELL
682         echo="$CONFIG_SHELL $0 --fallback-echo"
683       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684            test "X$echo_testing_string" = 'X\t' &&
685            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686            test "X$echo_testing_string" = "X$echo_test_string"; then
687         echo="$CONFIG_SHELL $0 --fallback-echo"
688       else
689         # maybe with a smaller string...
690         prev=:
691
692         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
694           then
695             break
696           fi
697           prev="$cmd"
698         done
699
700         if test "$prev" != 'sed 50q "$0"'; then
701           echo_test_string=`eval $prev`
702           export echo_test_string
703           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704         else
705           # Oops.  We lost completely, so just stick with echo.
706           echo=echo
707         fi
708       fi
709     fi
710   fi
711 fi
712 fi
713
714 # Copy echo and quote the copy suitably for passing to libtool from
715 # the Makefile, instead of quoting the original, which is used later.
716 ECHO=$echo
717 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
719 fi
720
721
722
723
724 tagnames=${tagnames+${tagnames},}CXX
725
726 tagnames=${tagnames+${tagnames},}F77
727
728 exec 7<&0 </dev/null 6>&1
729
730 # Name of the host.
731 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
732 # so uname gets run too.
733 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
734
735 #
736 # Initializations.
737 #
738 ac_default_prefix=/usr/local
739 ac_clean_files=
740 ac_config_libobj_dir=.
741 LIBOBJS=
742 cross_compiling=no
743 subdirs=
744 MFLAGS=
745 MAKEFLAGS=
746 SHELL=${CONFIG_SHELL-/bin/sh}
747
748 # Identity of this package.
749 PACKAGE_NAME=
750 PACKAGE_TARNAME=
751 PACKAGE_VERSION=
752 PACKAGE_STRING=
753 PACKAGE_BUGREPORT=
754
755 ac_unique_file="common-src/amanda.h"
756 # Factoring default headers for most tests.
757 ac_includes_default="\
758 #include <stdio.h>
759 #ifdef HAVE_SYS_TYPES_H
760 # include <sys/types.h>
761 #endif
762 #ifdef HAVE_SYS_STAT_H
763 # include <sys/stat.h>
764 #endif
765 #ifdef STDC_HEADERS
766 # include <stdlib.h>
767 # include <stddef.h>
768 #else
769 # ifdef HAVE_STDLIB_H
770 #  include <stdlib.h>
771 # endif
772 #endif
773 #ifdef HAVE_STRING_H
774 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
775 #  include <memory.h>
776 # endif
777 # include <string.h>
778 #endif
779 #ifdef HAVE_STRINGS_H
780 # include <strings.h>
781 #endif
782 #ifdef HAVE_INTTYPES_H
783 # include <inttypes.h>
784 #endif
785 #ifdef HAVE_STDINT_H
786 # include <stdint.h>
787 #endif
788 #ifdef HAVE_UNISTD_H
789 # include <unistd.h>
790 #endif"
791
792 gl_header_list=
793 gl_func_list=
794 ac_subst_vars='SVN
795 gltests_LTLIBOBJS
796 gltests_LIBOBJS
797 gl_LTLIBOBJS
798 gl_LIBOBJS
799 am__EXEEXT_FALSE
800 am__EXEEXT_TRUE
801 LTLIBOBJS
802 LIBOBJS
803 READLINE_LIBS
804 GLIB_MKENUMS
805 GOBJECT_QUERY
806 GLIB_GENMARSHAL
807 GLIB_LIBS
808 GLIB_CFLAGS
809 PKG_CONFIG
810 AMANDA_STATIC_LDFLAGS
811 LIBTOOL_DEPS
812 LIBTOOL
813 ac_ct_F77
814 FFLAGS
815 F77
816 CXXCPP
817 am__fastdepCXX_FALSE
818 am__fastdepCXX_TRUE
819 CXXDEPMODE
820 ac_ct_CXX
821 CXXFLAGS
822 CXX
823 ECHO
824 LN_S
825 GCC_COMPILER_FALSE
826 GCC_COMPILER_TRUE
827 PS_ARGUMENT
828 PS
829 PRINT
830 MT_FILE_FLAG
831 MT
832 DEFAULT_MAILER
833 MAILER
834 SORT
835 BASH
836 DD
837 YFLAGS
838 YACC
839 AR
840 LEXLIB
841 LEX_OUTPUT_ROOT
842 LEX
843 AMLINTFLAGS
844 AMLINT
845 USE_RUNDUMP
846 WANT_SAMBA_FALSE
847 WANT_SAMBA_TRUE
848 SAMBA_CLIENT
849 GNUTAR
850 DUMP_RETURNS_1
851 AIX_BACKUP
852 RESTORE
853 DUMP
854 VRESTORE
855 VDUMP
856 VXRESTORE
857 VXDUMP
858 XFSRESTORE
859 XFSDUMP
860 KRB5_SECURITY
861 WANT_KRB5_SECURITY_FALSE
862 WANT_KRB5_SECURITY_TRUE
863 TICKET_LIFETIME
864 CLIENT_HOST_KEY_FILE
865 CLIENT_HOST_INSTANCE
866 CLIENT_HOST_PRINCIPAL
867 SERVER_HOST_KEY_FILE
868 SERVER_HOST_INSTANCE
869 SERVER_HOST_PRINCIPAL
870 KRB4_SECURITY
871 WANT_KRB4_SECURITY_FALSE
872 WANT_KRB4_SECURITY_TRUE
873 SSH_SECURITY
874 WANT_SSH_SECURITY_FALSE
875 WANT_SSH_SECURITY_TRUE
876 SSH
877 RSH_SECURITY
878 WANT_RSH_SECURITY_FALSE
879 WANT_RSH_SECURITY_TRUE
880 BSDUDP_SECURITY
881 WANT_BSDUDP_SECURITY_FALSE
882 WANT_BSDUDP_SECURITY_TRUE
883 BSDTCP_SECURITY
884 WANT_BSDTCP_SECURITY_FALSE
885 WANT_BSDTCP_SECURITY_TRUE
886 USE_AMANDAHOSTS
887 BSD_SECURITY
888 WANT_BSD_SECURITY_FALSE
889 WANT_BSD_SECURITY_TRUE
890 WANT_TAPE_DEVICE_FALSE
891 WANT_TAPE_DEVICE_TRUE
892 WANT_TAPE_POSIX_FALSE
893 WANT_TAPE_POSIX_TRUE
894 WANT_TAPE_UWARE_FALSE
895 WANT_TAPE_UWARE_TRUE
896 WANT_TAPE_AIX_FALSE
897 WANT_TAPE_AIX_TRUE
898 WANT_TAPE_XENIX_FALSE
899 WANT_TAPE_XENIX_TRUE
900 WANT_S3_DEVICE_FALSE
901 WANT_S3_DEVICE_TRUE
902 LIBCURL
903 LIBCURL_CPPFLAGS
904 _libcurl_config
905 CURL_CONFIG
906 POSUB
907 INTLLIBS
908 LTLIBICONV
909 LIBICONV
910 INTL_MACOSX_LIBS
911 MSGMERGE
912 XGETTEXT_015
913 XGETTEXT
914 GMSGFMT_015
915 MSGFMT_015
916 GMSGFMT
917 USE_NLS
918 GETTEXT
919 MSGFMT
920 amdatadir
921 APPLICATION_DIR
922 amperldir
923 amincludedir
924 amlibexecdir
925 amlibdir
926 CLIENT_SCRIPTS_OPT
927 HAVE_GZIP
928 UNCOMPRESS_OPT
929 UNCOMPRESS_PATH
930 COMPRESS_BEST_OPT
931 COMPRESS_FAST_OPT
932 COMPRESS_SUFFIX
933 COMPRESS_PATH
934 CAT
935 PERLEXTLIBS
936 WANT_CYGWIN_COPY_PERL_DLL_FALSE
937 WANT_CYGWIN_COPY_PERL_DLL_TRUE
938 PERL_INC
939 PERL
940 SWIG_LIB
941 SWIG
942 LOCKING
943 WANT_AMFLOCK_LNLOCK_FALSE
944 WANT_AMFLOCK_LNLOCK_TRUE
945 WANT_AMFLOCK_LOCKF_FALSE
946 WANT_AMFLOCK_LOCKF_TRUE
947 WANT_AMFLOCK_FLOCK_FALSE
948 WANT_AMFLOCK_FLOCK_TRUE
949 WANT_AMFLOCK_POSIX_FALSE
950 WANT_AMFLOCK_POSIX_TRUE
951 WANT_SCSI_CHIO_FALSE
952 WANT_SCSI_CHIO_TRUE
953 WANT_SCSI_HPUX_FALSE
954 WANT_SCSI_HPUX_TRUE
955 WANT_CHG_SCSI_CHIO_FALSE
956 WANT_CHG_SCSI_CHIO_TRUE
957 WANT_SCSI_BSD_FALSE
958 WANT_SCSI_BSD_TRUE
959 WANT_SCSI_CAM_FALSE
960 WANT_SCSI_CAM_TRUE
961 WANT_SCSI_AIX_FALSE
962 WANT_SCSI_AIX_TRUE
963 WANT_SCSI_SOLARIS_FALSE
964 WANT_SCSI_SOLARIS_TRUE
965 WANT_SCSI_IRIX_FALSE
966 WANT_SCSI_IRIX_TRUE
967 WANT_SCSI_HPUX_NEW_FALSE
968 WANT_SCSI_HPUX_NEW_TRUE
969 WANT_SCSI_LINUX_FALSE
970 WANT_SCSI_LINUX_TRUE
971 WANT_CHG_SCSI_FALSE
972 WANT_CHG_SCSI_TRUE
973 MCUTIL
974 MTX
975 CHS
976 CHIO
977 GETCONF
978 DEFAULT_AMANDATES_FILE
979 DEFAULT_CHANGER_DEVICE
980 EXAMPLE_TAPEDEV
981 DEFAULT_TAPE_DEVICE
982 DEFAULT_TAPE_SERVER
983 DEFAULT_CONFIG
984 DEFAULT_SERVER
985 CONFIG_CLOBBER_MY_CONFIG
986 DOC_BUILD_DATE
987 XSLREL
988 ENABLE_MANPAGE_BUILD_FALSE
989 ENABLE_MANPAGE_BUILD_TRUE
990 XSLTPROC
991 XSLTPROC_FLAGS
992 WANT_AMPLOT_FALSE
993 WANT_AMPLOT_TRUE
994 AMPLOT_CAT_PACK
995 AMPLOT_CAT_COMPRESS
996 AMPLOT_CAT_GZIP
997 AMPLOT_COMPRESS
998 GZIP
999 COMPRESS
1000 PCAT
1001 GNUPLOT
1002 WANT_TAPE_FALSE
1003 WANT_TAPE_TRUE
1004 WANT_RECOVER_FALSE
1005 WANT_RECOVER_TRUE
1006 WANT_SERVER_FALSE
1007 WANT_SERVER_TRUE
1008 WANT_RESTORE_FALSE
1009 WANT_RESTORE_TRUE
1010 WANT_CLIENT_FALSE
1011 WANT_CLIENT_TRUE
1012 WANT_INSTALLPERMS_FALSE
1013 WANT_INSTALLPERMS_TRUE
1014 WANT_SETUID_CLIENT_FALSE
1015 WANT_SETUID_CLIENT_TRUE
1016 SERVICE_SUFFIX
1017 AMANDA_DEBUG_DAYS
1018 AMANDA_DBGDIR
1019 ASSERTIONS
1020 LOW_TCPPORTRANGE
1021 TCPPORTRANGE
1022 UDPPORTRANGE
1023 BINARY_OWNER
1024 CHECK_USERID
1025 AMANDA_TMPDIR
1026 GNUTAR_LISTED_INCREMENTAL_DIR
1027 USE_VERSION_SUFFIXES
1028 CONFIG_DIR
1029 SETUID_GROUP
1030 CLIENT_LOGIN
1031 AMANDA_WARNING_CFLAGS
1032 NEXT_WCHAR_H
1033 HAVE_WCHAR_H
1034 WCHAR_H
1035 REPLACE_WCWIDTH
1036 HAVE_DECL_WCWIDTH
1037 GNULIB_WCWIDTH
1038 HAVE_VISIBILITY
1039 CFLAG_VISIBILITY
1040 EOVERFLOW
1041 HAVE_UNISTD_H
1042 NEXT_UNISTD_H
1043 REPLACE_LSEEK
1044 REPLACE_LCHOWN
1045 REPLACE_GETPAGESIZE
1046 REPLACE_GETCWD
1047 REPLACE_FCHDIR
1048 REPLACE_CHOWN
1049 HAVE_SYS_PARAM_H
1050 HAVE_OS_H
1051 HAVE_DECL_GETLOGIN_R
1052 HAVE_DECL_ENVIRON
1053 HAVE_SLEEP
1054 HAVE_READLINK
1055 HAVE_GETPAGESIZE
1056 HAVE_FTRUNCATE
1057 HAVE_DUP2
1058 GNULIB_SLEEP
1059 GNULIB_READLINK
1060 GNULIB_LSEEK
1061 GNULIB_LCHOWN
1062 GNULIB_GETPAGESIZE
1063 GNULIB_GETLOGIN_R
1064 GNULIB_GETCWD
1065 GNULIB_FTRUNCATE
1066 GNULIB_FCHDIR
1067 GNULIB_ENVIRON
1068 GNULIB_DUP2
1069 GNULIB_CHOWN
1070 SYS_STAT_H
1071 NEXT_SYS_STAT_H
1072 HAVE_IO_H
1073 HAVE_DECL_MKDIR
1074 HAVE_LSTAT
1075 NEXT_STRING_H
1076 REPLACE_STRSTR
1077 REPLACE_STRCASESTR
1078 REPLACE_MEMMEM
1079 REPLACE_STRSIGNAL
1080 REPLACE_STRERROR
1081 HAVE_DECL_STRSIGNAL
1082 HAVE_DECL_STRERROR
1083 HAVE_DECL_STRTOK_R
1084 HAVE_STRCASESTR
1085 HAVE_STRSEP
1086 HAVE_STRPBRK
1087 HAVE_DECL_STRNLEN
1088 HAVE_DECL_STRNDUP
1089 HAVE_STRNDUP
1090 HAVE_DECL_STRDUP
1091 HAVE_STRCHRNUL
1092 HAVE_STPNCPY
1093 HAVE_STPCPY
1094 HAVE_DECL_MEMRCHR
1095 HAVE_MEMPCPY
1096 HAVE_DECL_MEMMEM
1097 GNULIB_STRSIGNAL
1098 GNULIB_STRERROR
1099 GNULIB_MBSTOK_R
1100 GNULIB_MBSSEP
1101 GNULIB_MBSSPN
1102 GNULIB_MBSPBRK
1103 GNULIB_MBSCSPN
1104 GNULIB_MBSCASESTR
1105 GNULIB_MBSPCASECMP
1106 GNULIB_MBSNCASECMP
1107 GNULIB_MBSCASECMP
1108 GNULIB_MBSSTR
1109 GNULIB_MBSRCHR
1110 GNULIB_MBSCHR
1111 GNULIB_MBSNLEN
1112 GNULIB_MBSLEN
1113 GNULIB_STRTOK_R
1114 GNULIB_STRCASESTR
1115 GNULIB_STRSTR
1116 GNULIB_STRSEP
1117 GNULIB_STRPBRK
1118 GNULIB_STRNLEN
1119 GNULIB_STRNDUP
1120 GNULIB_STRDUP
1121 GNULIB_STRCHRNUL
1122 GNULIB_STPNCPY
1123 GNULIB_STPCPY
1124 GNULIB_MEMRCHR
1125 GNULIB_MEMPCPY
1126 GNULIB_MEMMEM
1127 NEXT_STDLIB_H
1128 NEXT_STDIO_H
1129 STDINT_H
1130 WINT_T_SUFFIX
1131 WCHAR_T_SUFFIX
1132 SIZE_T_SUFFIX
1133 SIG_ATOMIC_T_SUFFIX
1134 PTRDIFF_T_SUFFIX
1135 HAVE_SIGNED_WINT_T
1136 HAVE_SIGNED_WCHAR_T
1137 HAVE_SIGNED_SIG_ATOMIC_T
1138 BITSIZEOF_WINT_T
1139 BITSIZEOF_WCHAR_T
1140 BITSIZEOF_SIZE_T
1141 BITSIZEOF_SIG_ATOMIC_T
1142 BITSIZEOF_PTRDIFF_T
1143 HAVE_SYS_BITYPES_H
1144 HAVE_SYS_INTTYPES_H
1145 HAVE_STDINT_H
1146 NEXT_STDINT_H
1147 HAVE_SYS_TYPES_H
1148 HAVE_INTTYPES_H
1149 HAVE_UNSIGNED_LONG_LONG_INT
1150 HAVE_LONG_LONG_INT
1151 HAVE__BOOL
1152 STDBOOL_H
1153 REPLACE_GETLINE
1154 HAVE_DECL_GETLINE
1155 HAVE_DECL_GETDELIM
1156 REPLACE_FFLUSH
1157 REPLACE_FTELL
1158 REPLACE_FTELLO
1159 HAVE_FTELLO
1160 REPLACE_FSEEK
1161 REPLACE_FSEEKO
1162 HAVE_FSEEKO
1163 REPLACE_FREOPEN
1164 REPLACE_FOPEN
1165 REPLACE_VASPRINTF
1166 HAVE_VASPRINTF
1167 REPLACE_VSPRINTF
1168 REPLACE_SPRINTF
1169 HAVE_DECL_VSNPRINTF
1170 REPLACE_VSNPRINTF
1171 HAVE_DECL_SNPRINTF
1172 REPLACE_SNPRINTF
1173 REPLACE_VPRINTF
1174 REPLACE_PRINTF
1175 REPLACE_VFPRINTF
1176 REPLACE_FPRINTF
1177 GNULIB_GETLINE
1178 GNULIB_GETDELIM
1179 GNULIB_FFLUSH
1180 GNULIB_FTELLO
1181 GNULIB_FTELL
1182 GNULIB_FSEEKO
1183 GNULIB_FSEEK
1184 GNULIB_FREOPEN
1185 GNULIB_FOPEN
1186 GNULIB_VASPRINTF
1187 GNULIB_VSPRINTF_POSIX
1188 GNULIB_VSNPRINTF
1189 GNULIB_VPRINTF_POSIX
1190 GNULIB_VFPRINTF_POSIX
1191 GNULIB_SPRINTF_POSIX
1192 GNULIB_SNPRINTF
1193 GNULIB_PRINTF_POSIX
1194 GNULIB_FPRINTF_POSIX
1195 NETINET_IN_H
1196 HAVE_NETINET_IN_H
1197 NEXT_NETINET_IN_H
1198 VOID_UNSETENV
1199 REPLACE_PUTENV
1200 REPLACE_MKSTEMP
1201 HAVE_UNSETENV
1202 HAVE_SETENV
1203 HAVE_REALLOC_POSIX
1204 HAVE_MKDTEMP
1205 HAVE_GETSUBOPT
1206 HAVE_CALLOC_POSIX
1207 GNULIB_UNSETENV
1208 GNULIB_SETENV
1209 GNULIB_PUTENV
1210 GNULIB_MKSTEMP
1211 GNULIB_MKDTEMP
1212 GNULIB_GETSUBOPT
1213 GNULIB_CALLOC_POSIX
1214 GNULIB_REALLOC_POSIX
1215 GNULIB_MALLOC_POSIX
1216 HAVE_MALLOC_POSIX
1217 LTLIBMULTITHREAD
1218 LIBMULTITHREAD
1219 LTLIBTHREAD
1220 LIBTHREAD
1221 LTLIBPTH
1222 LIBPTH
1223 SYS_TIME_H
1224 REPLACE_GETTIMEOFDAY
1225 HAVE_STRUCT_TIMEVAL
1226 HAVE_SYS_TIME_H
1227 NEXT_SYS_TIME_H
1228 LTLIBINTL
1229 LIBINTL
1230 GETOPT_H
1231 SYS_SOCKET_H
1232 HAVE_WS2TCPIP_H
1233 HAVE_WINSOCK2_H
1234 HAVE_SYS_SOCKET_H
1235 NEXT_SYS_SOCKET_H
1236 FLOAT_H
1237 NEXT_FLOAT_H
1238 INCLUDE_NEXT
1239 ARPA_INET_H
1240 ALLOCA_H
1241 ALLOCA
1242 GL_COND_LIBTOOL_FALSE
1243 GL_COND_LIBTOOL_TRUE
1244 EGREP
1245 GREP
1246 CPP
1247 RANLIB
1248 am__fastdepCC_FALSE
1249 am__fastdepCC_TRUE
1250 CCDEPMODE
1251 AMDEPBACKSLASH
1252 AMDEP_FALSE
1253 AMDEP_TRUE
1254 am__quote
1255 am__include
1256 DEPDIR
1257 OBJEXT
1258 EXEEXT
1259 ac_ct_CC
1260 CPPFLAGS
1261 LDFLAGS
1262 CFLAGS
1263 CC
1264 VERSION_SUFFIX
1265 VERSION_COMMENT
1266 VERSION_PATCH
1267 VERSION_MINOR
1268 VERSION_MAJOR
1269 SNAPSHOT_STAMP
1270 am__untar
1271 am__tar
1272 AMTAR
1273 am__leading_dot
1274 SET_MAKE
1275 AWK
1276 mkdir_p
1277 MKDIR_P
1278 INSTALL_STRIP_PROGRAM
1279 STRIP
1280 install_sh
1281 MAKEINFO
1282 AUTOHEADER
1283 AUTOMAKE
1284 AUTOCONF
1285 ACLOCAL
1286 VERSION
1287 CYGPATH_W
1288 am__isrc
1289 INSTALL_DATA
1290 INSTALL_SCRIPT
1291 INSTALL_PROGRAM
1292 PACKAGE
1293 target_os
1294 target_vendor
1295 target_cpu
1296 target
1297 host_os
1298 host_vendor
1299 host_cpu
1300 host
1301 build_os
1302 build_vendor
1303 build_cpu
1304 build
1305 target_alias
1306 host_alias
1307 build_alias
1308 LIBS
1309 ECHO_T
1310 ECHO_N
1311 ECHO_C
1312 DEFS
1313 mandir
1314 localedir
1315 libdir
1316 psdir
1317 pdfdir
1318 dvidir
1319 htmldir
1320 infodir
1321 docdir
1322 oldincludedir
1323 includedir
1324 localstatedir
1325 sharedstatedir
1326 sysconfdir
1327 datadir
1328 datarootdir
1329 libexecdir
1330 sbindir
1331 bindir
1332 program_transform_name
1333 prefix
1334 exec_prefix
1335 PACKAGE_BUGREPORT
1336 PACKAGE_STRING
1337 PACKAGE_VERSION
1338 PACKAGE_TARNAME
1339 PACKAGE_NAME
1340 PATH_SEPARATOR
1341 SHELL'
1342 ac_subst_files=''
1343 ac_user_opts='
1344 enable_option_checking
1345 enable_dependency_tracking
1346 enable_threads
1347 with_gnu_ld
1348 enable_rpath
1349 with_libpth_prefix
1350 enable_largefile
1351 with_cflags
1352 with_includes
1353 with_libraries
1354 with_user
1355 with_group
1356 with_dumperdir
1357 with_configdir
1358 with_indexdir
1359 with_dbdir
1360 with_logdir
1361 with_suffixes
1362 with_gnutar_listdir
1363 with_gnutar_listed_incremental
1364 with_tmpdir
1365 with_force_uid
1366 with_owner
1367 with_fqdn
1368 with_reuseports
1369 with_low_tcpportrange
1370 with_tcpportrange
1371 with_udpportrange
1372 with_buffered_dump
1373 with_maxtapeblocksize
1374 with_assertions
1375 with_debugging
1376 with_debug_days
1377 with_testing
1378 with_single_userid
1379 enable_installperms
1380 with_server
1381 with_client
1382 with_restore
1383 with_amrecover
1384 with_client_only
1385 with_server_only
1386 with_gnuplot
1387 enable_manpage_build
1388 with_xsltproc
1389 with_xsltproc_flags
1390 with_index_server
1391 with_config
1392 with_tape_server
1393 with_tape_device
1394 with_changer_device
1395 with_amandates
1396 with_perlextlibs
1397 with_ipv6
1398 with_mmap
1399 with_amlibdir
1400 with_amlibexecdir
1401 with_amperldir
1402 with_amdatadir
1403 enable_nls
1404 with_libiconv_prefix
1405 with_libintl_prefix
1406 with_libcurl
1407 enable_s3_device
1408 with_bsd_security
1409 with_amandahosts
1410 with_bsdtcp_security
1411 with_bsdudp_security
1412 with_rsh_security
1413 with_ssh_security
1414 with_ssh_options
1415 with_krb4_security
1416 with_server_principal
1417 with_server_instance
1418 with_server_keyfile
1419 with_client_principal
1420 with_client_instance
1421 with_client_keyfile
1422 with_ticket_lifetime
1423 with_krb5_security
1424 with_dump_honor_nodump
1425 with_gnutar
1426 with_smbclient
1427 with_samba_user
1428 with_rundump
1429 enable_shared
1430 enable_static
1431 enable_fast_install
1432 enable_libtool_lock
1433 with_pic
1434 with_tags
1435 enable_static_binary
1436 enable_glibtest
1437 with_readline
1438 '
1439       ac_precious_vars='build_alias
1440 host_alias
1441 target_alias
1442 CC
1443 CFLAGS
1444 LDFLAGS
1445 LIBS
1446 CPPFLAGS
1447 CPP
1448 GNUPLOT
1449 SWIG
1450 PERL
1451 GNUTAR
1452 YACC
1453 YFLAGS
1454 CXX
1455 CXXFLAGS
1456 CCC
1457 CXXCPP
1458 F77
1459 FFLAGS
1460 PKG_CONFIG'
1461
1462
1463 # Initialize some variables set by options.
1464 ac_init_help=
1465 ac_init_version=false
1466 ac_unrecognized_opts=
1467 ac_unrecognized_sep=
1468 # The variables have the same names as the options, with
1469 # dashes changed to underlines.
1470 cache_file=/dev/null
1471 exec_prefix=NONE
1472 no_create=
1473 no_recursion=
1474 prefix=NONE
1475 program_prefix=NONE
1476 program_suffix=NONE
1477 program_transform_name=s,x,x,
1478 silent=
1479 site=
1480 srcdir=
1481 verbose=
1482 x_includes=NONE
1483 x_libraries=NONE
1484
1485 # Installation directory options.
1486 # These are left unexpanded so users can "make install exec_prefix=/foo"
1487 # and all the variables that are supposed to be based on exec_prefix
1488 # by default will actually change.
1489 # Use braces instead of parens because sh, perl, etc. also accept them.
1490 # (The list follows the same order as the GNU Coding Standards.)
1491 bindir='${exec_prefix}/bin'
1492 sbindir='${exec_prefix}/sbin'
1493 libexecdir='${exec_prefix}/libexec'
1494 datarootdir='${prefix}/share'
1495 datadir='${datarootdir}'
1496 sysconfdir='${prefix}/etc'
1497 sharedstatedir='${prefix}/com'
1498 localstatedir='${prefix}/var'
1499 includedir='${prefix}/include'
1500 oldincludedir='/usr/include'
1501 docdir='${datarootdir}/doc/${PACKAGE}'
1502 infodir='${datarootdir}/info'
1503 htmldir='${docdir}'
1504 dvidir='${docdir}'
1505 pdfdir='${docdir}'
1506 psdir='${docdir}'
1507 libdir='${exec_prefix}/lib'
1508 localedir='${datarootdir}/locale'
1509 mandir='${datarootdir}/man'
1510
1511 ac_prev=
1512 ac_dashdash=
1513 for ac_option
1514 do
1515   # If the previous option needs an argument, assign it.
1516   if test -n "$ac_prev"; then
1517     eval $ac_prev=\$ac_option
1518     ac_prev=
1519     continue
1520   fi
1521
1522   case $ac_option in
1523   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1524   *)    ac_optarg=yes ;;
1525   esac
1526
1527   # Accept the important Cygnus configure options, so we can diagnose typos.
1528
1529   case $ac_dashdash$ac_option in
1530   --)
1531     ac_dashdash=yes ;;
1532
1533   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1534     ac_prev=bindir ;;
1535   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1536     bindir=$ac_optarg ;;
1537
1538   -build | --build | --buil | --bui | --bu)
1539     ac_prev=build_alias ;;
1540   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1541     build_alias=$ac_optarg ;;
1542
1543   -cache-file | --cache-file | --cache-fil | --cache-fi \
1544   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1545     ac_prev=cache_file ;;
1546   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1547   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1548     cache_file=$ac_optarg ;;
1549
1550   --config-cache | -C)
1551     cache_file=config.cache ;;
1552
1553   -datadir | --datadir | --datadi | --datad)
1554     ac_prev=datadir ;;
1555   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1556     datadir=$ac_optarg ;;
1557
1558   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1559   | --dataroo | --dataro | --datar)
1560     ac_prev=datarootdir ;;
1561   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1562   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1563     datarootdir=$ac_optarg ;;
1564
1565   -disable-* | --disable-*)
1566     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1567     # Reject names that are not valid shell variable names.
1568     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1569       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1570    { (exit 1); exit 1; }; }
1571     ac_useropt_orig=$ac_useropt
1572     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1573     case $ac_user_opts in
1574       *"
1575 "enable_$ac_useropt"
1576 "*) ;;
1577       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1578          ac_unrecognized_sep=', ';;
1579     esac
1580     eval enable_$ac_useropt=no ;;
1581
1582   -docdir | --docdir | --docdi | --doc | --do)
1583     ac_prev=docdir ;;
1584   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1585     docdir=$ac_optarg ;;
1586
1587   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1588     ac_prev=dvidir ;;
1589   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1590     dvidir=$ac_optarg ;;
1591
1592   -enable-* | --enable-*)
1593     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1594     # Reject names that are not valid shell variable names.
1595     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1596       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1597    { (exit 1); exit 1; }; }
1598     ac_useropt_orig=$ac_useropt
1599     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1600     case $ac_user_opts in
1601       *"
1602 "enable_$ac_useropt"
1603 "*) ;;
1604       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1605          ac_unrecognized_sep=', ';;
1606     esac
1607     eval enable_$ac_useropt=\$ac_optarg ;;
1608
1609   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1610   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1611   | --exec | --exe | --ex)
1612     ac_prev=exec_prefix ;;
1613   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1614   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1615   | --exec=* | --exe=* | --ex=*)
1616     exec_prefix=$ac_optarg ;;
1617
1618   -gas | --gas | --ga | --g)
1619     # Obsolete; use --with-gas.
1620     with_gas=yes ;;
1621
1622   -help | --help | --hel | --he | -h)
1623     ac_init_help=long ;;
1624   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1625     ac_init_help=recursive ;;
1626   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1627     ac_init_help=short ;;
1628
1629   -host | --host | --hos | --ho)
1630     ac_prev=host_alias ;;
1631   -host=* | --host=* | --hos=* | --ho=*)
1632     host_alias=$ac_optarg ;;
1633
1634   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1635     ac_prev=htmldir ;;
1636   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1637   | --ht=*)
1638     htmldir=$ac_optarg ;;
1639
1640   -includedir | --includedir | --includedi | --included | --include \
1641   | --includ | --inclu | --incl | --inc)
1642     ac_prev=includedir ;;
1643   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1644   | --includ=* | --inclu=* | --incl=* | --inc=*)
1645     includedir=$ac_optarg ;;
1646
1647   -infodir | --infodir | --infodi | --infod | --info | --inf)
1648     ac_prev=infodir ;;
1649   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1650     infodir=$ac_optarg ;;
1651
1652   -libdir | --libdir | --libdi | --libd)
1653     ac_prev=libdir ;;
1654   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1655     libdir=$ac_optarg ;;
1656
1657   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1658   | --libexe | --libex | --libe)
1659     ac_prev=libexecdir ;;
1660   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1661   | --libexe=* | --libex=* | --libe=*)
1662     libexecdir=$ac_optarg ;;
1663
1664   -localedir | --localedir | --localedi | --localed | --locale)
1665     ac_prev=localedir ;;
1666   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1667     localedir=$ac_optarg ;;
1668
1669   -localstatedir | --localstatedir | --localstatedi | --localstated \
1670   | --localstate | --localstat | --localsta | --localst | --locals)
1671     ac_prev=localstatedir ;;
1672   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1673   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1674     localstatedir=$ac_optarg ;;
1675
1676   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1677     ac_prev=mandir ;;
1678   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1679     mandir=$ac_optarg ;;
1680
1681   -nfp | --nfp | --nf)
1682     # Obsolete; use --without-fp.
1683     with_fp=no ;;
1684
1685   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1686   | --no-cr | --no-c | -n)
1687     no_create=yes ;;
1688
1689   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1690   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1691     no_recursion=yes ;;
1692
1693   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1694   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1695   | --oldin | --oldi | --old | --ol | --o)
1696     ac_prev=oldincludedir ;;
1697   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1698   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1699   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1700     oldincludedir=$ac_optarg ;;
1701
1702   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1703     ac_prev=prefix ;;
1704   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1705     prefix=$ac_optarg ;;
1706
1707   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1708   | --program-pre | --program-pr | --program-p)
1709     ac_prev=program_prefix ;;
1710   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1711   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1712     program_prefix=$ac_optarg ;;
1713
1714   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1715   | --program-suf | --program-su | --program-s)
1716     ac_prev=program_suffix ;;
1717   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1718   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1719     program_suffix=$ac_optarg ;;
1720
1721   -program-transform-name | --program-transform-name \
1722   | --program-transform-nam | --program-transform-na \
1723   | --program-transform-n | --program-transform- \
1724   | --program-transform | --program-transfor \
1725   | --program-transfo | --program-transf \
1726   | --program-trans | --program-tran \
1727   | --progr-tra | --program-tr | --program-t)
1728     ac_prev=program_transform_name ;;
1729   -program-transform-name=* | --program-transform-name=* \
1730   | --program-transform-nam=* | --program-transform-na=* \
1731   | --program-transform-n=* | --program-transform-=* \
1732   | --program-transform=* | --program-transfor=* \
1733   | --program-transfo=* | --program-transf=* \
1734   | --program-trans=* | --program-tran=* \
1735   | --progr-tra=* | --program-tr=* | --program-t=*)
1736     program_transform_name=$ac_optarg ;;
1737
1738   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1739     ac_prev=pdfdir ;;
1740   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1741     pdfdir=$ac_optarg ;;
1742
1743   -psdir | --psdir | --psdi | --psd | --ps)
1744     ac_prev=psdir ;;
1745   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1746     psdir=$ac_optarg ;;
1747
1748   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1749   | -silent | --silent | --silen | --sile | --sil)
1750     silent=yes ;;
1751
1752   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1753     ac_prev=sbindir ;;
1754   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1755   | --sbi=* | --sb=*)
1756     sbindir=$ac_optarg ;;
1757
1758   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1759   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1760   | --sharedst | --shareds | --shared | --share | --shar \
1761   | --sha | --sh)
1762     ac_prev=sharedstatedir ;;
1763   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1764   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1765   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1766   | --sha=* | --sh=*)
1767     sharedstatedir=$ac_optarg ;;
1768
1769   -site | --site | --sit)
1770     ac_prev=site ;;
1771   -site=* | --site=* | --sit=*)
1772     site=$ac_optarg ;;
1773
1774   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1775     ac_prev=srcdir ;;
1776   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1777     srcdir=$ac_optarg ;;
1778
1779   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1780   | --syscon | --sysco | --sysc | --sys | --sy)
1781     ac_prev=sysconfdir ;;
1782   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1783   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1784     sysconfdir=$ac_optarg ;;
1785
1786   -target | --target | --targe | --targ | --tar | --ta | --t)
1787     ac_prev=target_alias ;;
1788   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1789     target_alias=$ac_optarg ;;
1790
1791   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1792     verbose=yes ;;
1793
1794   -version | --version | --versio | --versi | --vers | -V)
1795     ac_init_version=: ;;
1796
1797   -with-* | --with-*)
1798     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1799     # Reject names that are not valid shell variable names.
1800     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1801       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1802    { (exit 1); exit 1; }; }
1803     ac_useropt_orig=$ac_useropt
1804     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1805     case $ac_user_opts in
1806       *"
1807 "with_$ac_useropt"
1808 "*) ;;
1809       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1810          ac_unrecognized_sep=', ';;
1811     esac
1812     eval with_$ac_useropt=\$ac_optarg ;;
1813
1814   -without-* | --without-*)
1815     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1816     # Reject names that are not valid shell variable names.
1817     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1818       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1819    { (exit 1); exit 1; }; }
1820     ac_useropt_orig=$ac_useropt
1821     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1822     case $ac_user_opts in
1823       *"
1824 "with_$ac_useropt"
1825 "*) ;;
1826       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1827          ac_unrecognized_sep=', ';;
1828     esac
1829     eval with_$ac_useropt=no ;;
1830
1831   --x)
1832     # Obsolete; use --with-x.
1833     with_x=yes ;;
1834
1835   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1836   | --x-incl | --x-inc | --x-in | --x-i)
1837     ac_prev=x_includes ;;
1838   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1839   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1840     x_includes=$ac_optarg ;;
1841
1842   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1843   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1844     ac_prev=x_libraries ;;
1845   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1846   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1847     x_libraries=$ac_optarg ;;
1848
1849   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1850 Try \`$0 --help' for more information." >&2
1851    { (exit 1); exit 1; }; }
1852     ;;
1853
1854   *=*)
1855     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1856     # Reject names that are not valid shell variable names.
1857     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1858       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1859    { (exit 1); exit 1; }; }
1860     eval $ac_envvar=\$ac_optarg
1861     export $ac_envvar ;;
1862
1863   *)
1864     # FIXME: should be removed in autoconf 3.0.
1865     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1866     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1867       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1868     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1869     ;;
1870
1871   esac
1872 done
1873
1874 if test -n "$ac_prev"; then
1875   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1876   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1877    { (exit 1); exit 1; }; }
1878 fi
1879
1880 if test -n "$ac_unrecognized_opts"; then
1881   case $enable_option_checking in
1882     no) ;;
1883     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1884    { (exit 1); exit 1; }; } ;;
1885     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1886   esac
1887 fi
1888
1889 # Check all directory arguments for consistency.
1890 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1891                 datadir sysconfdir sharedstatedir localstatedir includedir \
1892                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1893                 libdir localedir mandir
1894 do
1895   eval ac_val=\$$ac_var
1896   # Remove trailing slashes.
1897   case $ac_val in
1898     */ )
1899       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1900       eval $ac_var=\$ac_val;;
1901   esac
1902   # Be sure to have absolute directory names.
1903   case $ac_val in
1904     [\\/$]* | ?:[\\/]* )  continue;;
1905     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1906   esac
1907   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1908    { (exit 1); exit 1; }; }
1909 done
1910
1911 # There might be people who depend on the old broken behavior: `$host'
1912 # used to hold the argument of --host etc.
1913 # FIXME: To remove some day.
1914 build=$build_alias
1915 host=$host_alias
1916 target=$target_alias
1917
1918 # FIXME: To remove some day.
1919 if test "x$host_alias" != x; then
1920   if test "x$build_alias" = x; then
1921     cross_compiling=maybe
1922     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1923     If a cross compiler is detected then cross compile mode will be used." >&2
1924   elif test "x$build_alias" != "x$host_alias"; then
1925     cross_compiling=yes
1926   fi
1927 fi
1928
1929 ac_tool_prefix=
1930 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1931
1932 test "$silent" = yes && exec 6>/dev/null
1933
1934
1935 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1936 ac_ls_di=`ls -di .` &&
1937 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1938   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1939    { (exit 1); exit 1; }; }
1940 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1941   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1942    { (exit 1); exit 1; }; }
1943
1944
1945 # Find the source files, if location was not specified.
1946 if test -z "$srcdir"; then
1947   ac_srcdir_defaulted=yes
1948   # Try the directory containing this script, then the parent directory.
1949   ac_confdir=`$as_dirname -- "$as_myself" ||
1950 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1951          X"$as_myself" : 'X\(//\)[^/]' \| \
1952          X"$as_myself" : 'X\(//\)$' \| \
1953          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1954 $as_echo X"$as_myself" |
1955     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1956             s//\1/
1957             q
1958           }
1959           /^X\(\/\/\)[^/].*/{
1960             s//\1/
1961             q
1962           }
1963           /^X\(\/\/\)$/{
1964             s//\1/
1965             q
1966           }
1967           /^X\(\/\).*/{
1968             s//\1/
1969             q
1970           }
1971           s/.*/./; q'`
1972   srcdir=$ac_confdir
1973   if test ! -r "$srcdir/$ac_unique_file"; then
1974     srcdir=..
1975   fi
1976 else
1977   ac_srcdir_defaulted=no
1978 fi
1979 if test ! -r "$srcdir/$ac_unique_file"; then
1980   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1981   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1982    { (exit 1); exit 1; }; }
1983 fi
1984 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1985 ac_abs_confdir=`(
1986         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1987    { (exit 1); exit 1; }; }
1988         pwd)`
1989 # When building in place, set srcdir=.
1990 if test "$ac_abs_confdir" = "$ac_pwd"; then
1991   srcdir=.
1992 fi
1993 # Remove unnecessary trailing slashes from srcdir.
1994 # Double slashes in file names in object file debugging info
1995 # mess up M-x gdb in Emacs.
1996 case $srcdir in
1997 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1998 esac
1999 for ac_var in $ac_precious_vars; do
2000   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2001   eval ac_env_${ac_var}_value=\$${ac_var}
2002   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2003   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2004 done
2005
2006 #
2007 # Report the --help message.
2008 #
2009 if test "$ac_init_help" = "long"; then
2010   # Omit some internal or obsolete options to make the list less imposing.
2011   # This message is too long to be a string in the A/UX 3.1 sh.
2012   cat <<_ACEOF
2013 \`configure' configures this package to adapt to many kinds of systems.
2014
2015 Usage: $0 [OPTION]... [VAR=VALUE]...
2016
2017 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2018 VAR=VALUE.  See below for descriptions of some of the useful variables.
2019
2020 Defaults for the options are specified in brackets.
2021
2022 Configuration:
2023   -h, --help              display this help and exit
2024       --help=short        display options specific to this package
2025       --help=recursive    display the short help of all the included packages
2026   -V, --version           display version information and exit
2027   -q, --quiet, --silent   do not print \`checking...' messages
2028       --cache-file=FILE   cache test results in FILE [disabled]
2029   -C, --config-cache      alias for \`--cache-file=config.cache'
2030   -n, --no-create         do not create output files
2031       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2032
2033 Installation directories:
2034   --prefix=PREFIX         install architecture-independent files in PREFIX
2035                           [$ac_default_prefix]
2036   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2037                           [PREFIX]
2038
2039 By default, \`make install' will install all the files in
2040 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2041 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2042 for instance \`--prefix=\$HOME'.
2043
2044 For better control, use the options below.
2045
2046 Fine tuning of the installation directories:
2047   --bindir=DIR            user executables [EPREFIX/bin]
2048   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2049   --libexecdir=DIR        program executables [EPREFIX/libexec]
2050   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2051   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2052   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2053   --libdir=DIR            object code libraries [EPREFIX/lib]
2054   --includedir=DIR        C header files [PREFIX/include]
2055   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2056   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2057   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2058   --infodir=DIR           info documentation [DATAROOTDIR/info]
2059   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2060   --mandir=DIR            man documentation [DATAROOTDIR/man]
2061   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
2062   --htmldir=DIR           html documentation [DOCDIR]
2063   --dvidir=DIR            dvi documentation [DOCDIR]
2064   --pdfdir=DIR            pdf documentation [DOCDIR]
2065   --psdir=DIR             ps documentation [DOCDIR]
2066 _ACEOF
2067
2068   cat <<\_ACEOF
2069
2070 Program names:
2071   --program-prefix=PREFIX            prepend PREFIX to installed program names
2072   --program-suffix=SUFFIX            append SUFFIX to installed program names
2073   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2074
2075 System types:
2076   --build=BUILD     configure for building on BUILD [guessed]
2077   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2078   --target=TARGET   configure for building compilers for TARGET [HOST]
2079 _ACEOF
2080 fi
2081
2082 if test -n "$ac_init_help"; then
2083
2084   cat <<\_ACEOF
2085
2086 Optional Features:
2087   --disable-option-checking  ignore unrecognized --enable/--with options
2088   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2089   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2090   --disable-dependency-tracking  speeds up one-time build
2091   --enable-dependency-tracking   do not reject slow dependency extractors
2092   --enable-threads={posix|solaris|pth|win32}
2093                           specify multithreading API
2094   --disable-threads       build without multithread safety
2095   --disable-rpath         do not hardcode runtime library paths
2096   --disable-largefile     omit support for large files
2097   --disable-installperms  do not modify ownership and permissions on installed
2098                           files
2099   --enable-manpage-build  Build the manpages from their XML source (shipped
2100                           manpages are usually sufficient)
2101   --disable-nls           do not use Native Language Support
2102   --disable-s3-device     disable the S3 device
2103   --enable-shared[=PKGS]  build shared libraries [default=yes]
2104   --enable-static[=PKGS]  build static libraries [default=yes]
2105   --enable-fast-install[=PKGS]
2106                           optimize for fast installation [default=yes]
2107   --disable-libtool-lock  avoid locking (might break parallel builds)
2108   --enable-static-binary  To build statically linked binaries
2109   --disable-glibtest      do not try to compile and run a test GLIB program
2110
2111 Optional Packages:
2112   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2113   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2114   --with-gnu-ld           assume the C compiler uses GNU ld default=no
2115   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2116   --without-libpth-prefix     don't search for libpth in includedir and libdir
2117   --with-cflags=FLAGS     deprecated; use ./configure CFLAGS=...
2118   --with-includes=INCLUDE-DIRS
2119                           deprecated; use ./configure CPPFLAGS='-I.. -I..'
2120   --with-libraries=LIBRARY-DIRS
2121                           deprecated; use ./configure LDFLAGS='-L.. -L..' (add
2122                           -R on Solaris, NetBSD)
2123   --with-user=USER        force execution to USER on client systems (REQUIRED)
2124   --with-group=GROUP      group allowed to execute setuid-root programs
2125                           (REQUIRED)
2126   --with-dumperdir=DIR    where we install the dumpers (deprecated)
2127   --with-configdir=DIR    runtime config files in DIR [sysconfdir/amanda]
2128   --with-indexdir         deprecated: use indexdir in amanda.conf
2129   --with-dbdir            deprecated: use infofile in amanda.conf
2130   --with-logdir           deprecated: use logfile in amanda.conf
2131   --with-suffixes        install binaries with version string appended to name
2132   --with-gnutar-listdir=DIR
2133                           put gnutar directory lists in DIR (default:
2134                           localstatedir/amanda/gnutar-lists)
2135   --with-gnutar-listed-incremental
2136                           deprecated; use --with-gnutar-listdir
2137   --with-tmpdir           directory for temporary and debugging files
2138                           (default: /tmp/amanda)
2139   --without-force-uid     do not check userids when running programs
2140   --with-owner=USER
2141             force ownership of installed files to USER (default same as --with-user)
2142
2143   --with-fqdn             use FQDN's to backup multiple networks
2144   --without-reuseaddr     Don't reuse network connections until full timeout
2145                           period
2146   --with-low-tcpportrange=low/high
2147                           bind reserved TCP server sockets to ports within
2148                           this range (default: unlimited)
2149   --with-tcpportrange=low/high
2150                           bind unreserved TCP server sockets to ports within
2151                           this range (default: unlimited)
2152   --with-udpportrange=low/high
2153                           bind reserved UDP server sockets to ports within
2154                           this range (default: unlimited)
2155   --with-buffered-dump    buffer the dumping sockets on the server for speed
2156 (deprecated)
2157   --with-assertions       compile assertions into code
2158   --with-debugging=DIR
2159             put debug logs in DIR (default same as --with-tmpdir)
2160
2161   --with-debug-days=NN    number of days to keep debugging files (default: 4)
2162   --with-testing[=SUFFIX] use alternate service names with suffix (default
2163                           'test')
2164   --with-single-userid
2165             force amanda to run as a single userid (for testing)
2166
2167   --without-server        do not build server stuff (set --without-restore)
2168   --without-client        do not build client stuff
2169   --without-restore       do not build amrestore nor amidxtaped
2170   --without-amrecover     do not build amrecover
2171   --with-client-only      deprecated: use --without-server
2172   --with-server-only      deprecated: use --without-client
2173   --with-gnuplot=PATH     use gnuplot executable at PATH in amplot
2174   --with-xsltproc[[[=PATH]]]
2175                           Use the xsltproc binary in in PATH.
2176     --with-xsltproc-flags=FLAGS
2177                           Flags to pass to xsltproc (default --nonet)
2178   --with-index-server=HOST
2179                           default amanda index server (default: `uname -n`)
2180   --with-config=CONFIG    default amanda configuration (default: DailySet1)
2181   --with-tape-server=HOST default tape server for restore (default: same as
2182                           index-server)
2183   --with-tape-device=DEVICE
2184                           default device on restore tape server
2185   --with-changer-device=DEV
2186                           default tape changer device (default: /dev/ch0)
2187   --with-amandates        default location for 'amandates' (default:
2188                           $localstatedir/amanda/amandates)
2189   --with-perlextlibs=libs extra LIBS for Perl extensions
2190   --with-ipv6             enable IPv6 support (default if IPv6 is found)
2191           --without-ipv6          disable IPv6
2192   --with-mmap             force use of mmap instead of shared memory support
2193   --with-amlibdir[[[=PATH]]]
2194                           Where library are installed, default: $libdir/amanda
2195           --without-amlibdir      Library are installed in $libdir
2196   --with-amlibexecdir[[[=PATH]]]
2197                           Where amanda own programs are installed, default:
2198                           $libexecdir/amanda
2199           --without-amlibexecdir  Amanda own programs are installed in $libexecdir
2200   --with-amperldir[[[=PATH]]]
2201                           Where amanda's perl modules are installed; default:
2202                           installsitelib
2203           --without-amperldir     Install amanda's perl modules in $amlibdir/perl
2204   --with-amdatadir[[[=PATH]]]
2205                           Where amanda's templates and examples are installed;
2206                           default: $datadir/amanda
2207   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2208   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2209   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2210   --without-libintl-prefix     don't search for libintl in includedir and libdir
2211   --with-libcurl=DIR      look for the curl library in DIR
2212   --without-bsd-security  do not include BSD authentication
2213    --without-amandahosts  use ".rhosts" instead of ".amandahosts"
2214   --with-bsdtcp-security  include BSDTCP authentication
2215   --with-bsdudp-security  include BSDUDP authentication
2216   --with-rsh-security     include RSH authentication
2217   --with-ssh-security     include SSH authentication
2218    --with-ssh-options=[OPTIONS]
2219                           Use these ssh options for ssh security; the default
2220                           should work
2221   --with-krb4-security=DIR
2222                           Location of Kerberos software [/usr/kerberos
2223                           /usr/cygnus /usr /opt/kerberos]
2224    --with-server-principal=ARG
2225                           server host principal ("amanda")
2226    --with-server-instance=ARG
2227                           server host instance ("amanda")
2228    --with-server-keyfile=ARG
2229                           server host key file ("/.amanda")
2230    --with-client-principal=ARG
2231                           client host principle ("rcmd")
2232    --with-client-instance=ARG
2233                           client host instance (HOSTNAME_INSTANCE)
2234    --with-client-keyfile=ARG
2235                           client host key file (KEYFILE)
2236    --ticket-lifetime      ticket lifetime (128)
2237   --with-krb5-security=DIR
2238                           Location of Kerberos V software [/usr/kerberos
2239                           /usr/cygnus /usr /opt/kerberos]
2240   --with-dump-honor-nodump
2241                           if dump supports -h, use it for level0s too
2242   --with-gnutar=PROG      use PROG as GNU 'tar'
2243   --with-smbclient=PROG   use PROG as 'smbclient'
2244   --with-samba-user       deprecated; place username in 'amandapass'
2245   --with-rundump          use rundump, a setuid-root wrapper, to invoke dump
2246   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2247   --with-pic              try to use only PIC/non-PIC objects [default=use
2248                           both]
2249   --with-tags[=TAGS]      include additional configurations [automatic]
2250   --with-readline         require readline support (for amrecover)
2251   --without-readline      don't search for readline
2252
2253 Some influential environment variables:
2254   CC          C compiler command
2255   CFLAGS      C compiler flags
2256   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2257               nonstandard directory <lib dir>
2258   LIBS        libraries to pass to the linker, e.g. -l<library>
2259   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2260               you have headers in a nonstandard directory <include dir>
2261   CPP         C preprocessor
2262   GNUPLOT     Location of the 'gnuplot' binary
2263   SWIG        Path to the 'swig' binary (developers only)
2264   PERL        Path to the 'perl' binary
2265   GNUTAR      Location of the GNU 'tar' binary
2266   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
2267               the first program found out of: `bison -y', `byacc', `yacc'.
2268   YFLAGS      The list of arguments that will be passed by default to $YACC.
2269               This script will default YFLAGS to the empty string to avoid a
2270               default value of `-d' given by some make applications.
2271   CXX         C++ compiler command
2272   CXXFLAGS    C++ compiler flags
2273   CXXCPP      C++ preprocessor
2274   F77         Fortran 77 compiler command
2275   FFLAGS      Fortran 77 compiler flags
2276   PKG_CONFIG  path to pkg-config utility
2277
2278 Use these variables to override the choices made by `configure' or to help
2279 it to find libraries and programs with nonstandard names/locations.
2280
2281 _ACEOF
2282 ac_status=$?
2283 fi
2284
2285 if test "$ac_init_help" = "recursive"; then
2286   # If there are subdirs, report their specific --help.
2287   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2288     test -d "$ac_dir" ||
2289       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2290       continue
2291     ac_builddir=.
2292
2293 case "$ac_dir" in
2294 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2295 *)
2296   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2297   # A ".." for each directory in $ac_dir_suffix.
2298   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2299   case $ac_top_builddir_sub in
2300   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2301   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2302   esac ;;
2303 esac
2304 ac_abs_top_builddir=$ac_pwd
2305 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2306 # for backward compatibility:
2307 ac_top_builddir=$ac_top_build_prefix
2308
2309 case $srcdir in
2310   .)  # We are building in place.
2311     ac_srcdir=.
2312     ac_top_srcdir=$ac_top_builddir_sub
2313     ac_abs_top_srcdir=$ac_pwd ;;
2314   [\\/]* | ?:[\\/]* )  # Absolute name.
2315     ac_srcdir=$srcdir$ac_dir_suffix;
2316     ac_top_srcdir=$srcdir
2317     ac_abs_top_srcdir=$srcdir ;;
2318   *) # Relative name.
2319     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2320     ac_top_srcdir=$ac_top_build_prefix$srcdir
2321     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2322 esac
2323 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2324
2325     cd "$ac_dir" || { ac_status=$?; continue; }
2326     # Check for guested configure.
2327     if test -f "$ac_srcdir/configure.gnu"; then
2328       echo &&
2329       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2330     elif test -f "$ac_srcdir/configure"; then
2331       echo &&
2332       $SHELL "$ac_srcdir/configure" --help=recursive
2333     else
2334       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2335     fi || ac_status=$?
2336     cd "$ac_pwd" || { ac_status=$?; break; }
2337   done
2338 fi
2339
2340 test -n "$ac_init_help" && exit $ac_status
2341 if $ac_init_version; then
2342   cat <<\_ACEOF
2343 configure
2344 generated by GNU Autoconf 2.63
2345
2346 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2347 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2348 This configure script is free software; the Free Software Foundation
2349 gives unlimited permission to copy, distribute and modify it.
2350 _ACEOF
2351   exit
2352 fi
2353 cat >config.log <<_ACEOF
2354 This file contains any messages produced by compilers while
2355 running configure, to aid debugging if configure makes a mistake.
2356
2357 It was created by $as_me, which was
2358 generated by GNU Autoconf 2.63.  Invocation command line was
2359
2360   $ $0 $@
2361
2362 _ACEOF
2363 exec 5>>config.log
2364 {
2365 cat <<_ASUNAME
2366 ## --------- ##
2367 ## Platform. ##
2368 ## --------- ##
2369
2370 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2371 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2372 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2373 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2374 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2375
2376 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2377 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2378
2379 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2380 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2381 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2382 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2383 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2384 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2385 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2386
2387 _ASUNAME
2388
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2391 do
2392   IFS=$as_save_IFS
2393   test -z "$as_dir" && as_dir=.
2394   $as_echo "PATH: $as_dir"
2395 done
2396 IFS=$as_save_IFS
2397
2398 } >&5
2399
2400 cat >&5 <<_ACEOF
2401
2402
2403 ## ----------- ##
2404 ## Core tests. ##
2405 ## ----------- ##
2406
2407 _ACEOF
2408
2409
2410 # Keep a trace of the command line.
2411 # Strip out --no-create and --no-recursion so they do not pile up.
2412 # Strip out --silent because we don't want to record it for future runs.
2413 # Also quote any args containing shell meta-characters.
2414 # Make two passes to allow for proper duplicate-argument suppression.
2415 ac_configure_args=
2416 ac_configure_args0=
2417 ac_configure_args1=
2418 ac_must_keep_next=false
2419 for ac_pass in 1 2
2420 do
2421   for ac_arg
2422   do
2423     case $ac_arg in
2424     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2425     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2426     | -silent | --silent | --silen | --sile | --sil)
2427       continue ;;
2428     *\'*)
2429       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2430     esac
2431     case $ac_pass in
2432     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2433     2)
2434       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2435       if test $ac_must_keep_next = true; then
2436         ac_must_keep_next=false # Got value, back to normal.
2437       else
2438         case $ac_arg in
2439           *=* | --config-cache | -C | -disable-* | --disable-* \
2440           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2441           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2442           | -with-* | --with-* | -without-* | --without-* | --x)
2443             case "$ac_configure_args0 " in
2444               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2445             esac
2446             ;;
2447           -* ) ac_must_keep_next=true ;;
2448         esac
2449       fi
2450       ac_configure_args="$ac_configure_args '$ac_arg'"
2451       ;;
2452     esac
2453   done
2454 done
2455 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2456 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2457
2458 # When interrupted or exit'd, cleanup temporary files, and complete
2459 # config.log.  We remove comments because anyway the quotes in there
2460 # would cause problems or look ugly.
2461 # WARNING: Use '\'' to represent an apostrophe within the trap.
2462 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2463 trap 'exit_status=$?
2464   # Save into config.log some information that might help in debugging.
2465   {
2466     echo
2467
2468     cat <<\_ASBOX
2469 ## ---------------- ##
2470 ## Cache variables. ##
2471 ## ---------------- ##
2472 _ASBOX
2473     echo
2474     # The following way of writing the cache mishandles newlines in values,
2475 (
2476   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2477     eval ac_val=\$$ac_var
2478     case $ac_val in #(
2479     *${as_nl}*)
2480       case $ac_var in #(
2481       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2482 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2483       esac
2484       case $ac_var in #(
2485       _ | IFS | as_nl) ;; #(
2486       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2487       *) $as_unset $ac_var ;;
2488       esac ;;
2489     esac
2490   done
2491   (set) 2>&1 |
2492     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2493     *${as_nl}ac_space=\ *)
2494       sed -n \
2495         "s/'\''/'\''\\\\'\'''\''/g;
2496           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2497       ;; #(
2498     *)
2499       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2500       ;;
2501     esac |
2502     sort
2503 )
2504     echo
2505
2506     cat <<\_ASBOX
2507 ## ----------------- ##
2508 ## Output variables. ##
2509 ## ----------------- ##
2510 _ASBOX
2511     echo
2512     for ac_var in $ac_subst_vars
2513     do
2514       eval ac_val=\$$ac_var
2515       case $ac_val in
2516       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2517       esac
2518       $as_echo "$ac_var='\''$ac_val'\''"
2519     done | sort
2520     echo
2521
2522     if test -n "$ac_subst_files"; then
2523       cat <<\_ASBOX
2524 ## ------------------- ##
2525 ## File substitutions. ##
2526 ## ------------------- ##
2527 _ASBOX
2528       echo
2529       for ac_var in $ac_subst_files
2530       do
2531         eval ac_val=\$$ac_var
2532         case $ac_val in
2533         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2534         esac
2535         $as_echo "$ac_var='\''$ac_val'\''"
2536       done | sort
2537       echo
2538     fi
2539
2540     if test -s confdefs.h; then
2541       cat <<\_ASBOX
2542 ## ----------- ##
2543 ## confdefs.h. ##
2544 ## ----------- ##
2545 _ASBOX
2546       echo
2547       cat confdefs.h
2548       echo
2549     fi
2550     test "$ac_signal" != 0 &&
2551       $as_echo "$as_me: caught signal $ac_signal"
2552     $as_echo "$as_me: exit $exit_status"
2553   } >&5
2554   rm -f core *.core core.conftest.* &&
2555     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2556     exit $exit_status
2557 ' 0
2558 for ac_signal in 1 2 13 15; do
2559   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2560 done
2561 ac_signal=0
2562
2563 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2564 rm -f -r conftest* confdefs.h
2565
2566 # Predefined preprocessor variables.
2567
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_NAME "$PACKAGE_NAME"
2570 _ACEOF
2571
2572
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2575 _ACEOF
2576
2577
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2580 _ACEOF
2581
2582
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_STRING "$PACKAGE_STRING"
2585 _ACEOF
2586
2587
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2590 _ACEOF
2591
2592
2593 # Let the site file select an alternate cache file if it wants to.
2594 # Prefer an explicitly selected file to automatically selected ones.
2595 ac_site_file1=NONE
2596 ac_site_file2=NONE
2597 if test -n "$CONFIG_SITE"; then
2598   ac_site_file1=$CONFIG_SITE
2599 elif test "x$prefix" != xNONE; then
2600   ac_site_file1=$prefix/share/config.site
2601   ac_site_file2=$prefix/etc/config.site
2602 else
2603   ac_site_file1=$ac_default_prefix/share/config.site
2604   ac_site_file2=$ac_default_prefix/etc/config.site
2605 fi
2606 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2607 do
2608   test "x$ac_site_file" = xNONE && continue
2609   if test -r "$ac_site_file"; then
2610     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2611 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2612     sed 's/^/| /' "$ac_site_file" >&5
2613     . "$ac_site_file"
2614   fi
2615 done
2616
2617 if test -r "$cache_file"; then
2618   # Some versions of bash will fail to source /dev/null (special
2619   # files actually), so we avoid doing that.
2620   if test -f "$cache_file"; then
2621     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2622 $as_echo "$as_me: loading cache $cache_file" >&6;}
2623     case $cache_file in
2624       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2625       *)                      . "./$cache_file";;
2626     esac
2627   fi
2628 else
2629   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2630 $as_echo "$as_me: creating cache $cache_file" >&6;}
2631   >$cache_file
2632 fi
2633
2634 gl_header_list="$gl_header_list arpa/inet.h"
2635 gl_header_list="$gl_header_list float.h"
2636 gl_header_list="$gl_header_list sys/param.h"
2637 gl_header_list="$gl_header_list sys/vfs.h"
2638 gl_header_list="$gl_header_list sys/fs_types.h"
2639 gl_header_list="$gl_header_list sys/socket.h"
2640 gl_header_list="$gl_header_list netdb.h"
2641 gl_header_list="$gl_header_list netinet/in.h"
2642 gl_header_list="$gl_header_list sys/time.h"
2643 gl_func_list="$gl_func_list gettimeofday"
2644 gl_header_list="$gl_header_list stdint.h"
2645 gl_header_list="$gl_header_list wchar.h"
2646 gl_header_list="$gl_header_list stdio.h"
2647 gl_header_list="$gl_header_list stdlib.h"
2648 gl_header_list="$gl_header_list string.h"
2649 gl_func_list="$gl_func_list lstat"
2650 gl_header_list="$gl_header_list sys/stat.h"
2651 gl_header_list="$gl_header_list unistd.h"
2652 gl_func_list="$gl_func_list vasnprintf"
2653 # Check that the precious variables saved in the cache have kept the same
2654 # value.
2655 ac_cache_corrupted=false
2656 for ac_var in $ac_precious_vars; do
2657   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2658   eval ac_new_set=\$ac_env_${ac_var}_set
2659   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2660   eval ac_new_val=\$ac_env_${ac_var}_value
2661   case $ac_old_set,$ac_new_set in
2662     set,)
2663       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2664 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2665       ac_cache_corrupted=: ;;
2666     ,set)
2667       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2668 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2669       ac_cache_corrupted=: ;;
2670     ,);;
2671     *)
2672       if test "x$ac_old_val" != "x$ac_new_val"; then
2673         # differences in whitespace do not lead to failure.
2674         ac_old_val_w=`echo x $ac_old_val`
2675         ac_new_val_w=`echo x $ac_new_val`
2676         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2677           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2678 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2679           ac_cache_corrupted=:
2680         else
2681           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2682 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2683           eval $ac_var=\$ac_old_val
2684         fi
2685         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2686 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2687         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2688 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2689       fi;;
2690   esac
2691   # Pass precious variables to config.status.
2692   if test "$ac_new_set" = set; then
2693     case $ac_new_val in
2694     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2695     *) ac_arg=$ac_var=$ac_new_val ;;
2696     esac
2697     case " $ac_configure_args " in
2698       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2699       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2700     esac
2701   fi
2702 done
2703 if $ac_cache_corrupted; then
2704   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2706   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2707 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2708   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2709 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2710    { (exit 1); exit 1; }; }
2711 fi
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729 ac_ext=c
2730 ac_cpp='$CPP $CPPFLAGS'
2731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734
2735
2736
2737 ac_aux_dir=
2738 for ac_dir in config "$srcdir"/config; do
2739   if test -f "$ac_dir/install-sh"; then
2740     ac_aux_dir=$ac_dir
2741     ac_install_sh="$ac_aux_dir/install-sh -c"
2742     break
2743   elif test -f "$ac_dir/install.sh"; then
2744     ac_aux_dir=$ac_dir
2745     ac_install_sh="$ac_aux_dir/install.sh -c"
2746     break
2747   elif test -f "$ac_dir/shtool"; then
2748     ac_aux_dir=$ac_dir
2749     ac_install_sh="$ac_aux_dir/shtool install -c"
2750     break
2751   fi
2752 done
2753 if test -z "$ac_aux_dir"; then
2754   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2755 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2756    { (exit 1); exit 1; }; }
2757 fi
2758
2759 # These three variables are undocumented and unsupported,
2760 # and are intended to be withdrawn in a future Autoconf release.
2761 # They can cause serious problems if a builder's source tree is in a directory
2762 # whose full name contains unusual characters.
2763 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2764 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2765 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2766
2767
2768 # Make sure we can run config.sub.
2769 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2770   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2771 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2772    { (exit 1); exit 1; }; }
2773
2774 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2775 $as_echo_n "checking build system type... " >&6; }
2776 if test "${ac_cv_build+set}" = set; then
2777   $as_echo_n "(cached) " >&6
2778 else
2779   ac_build_alias=$build_alias
2780 test "x$ac_build_alias" = x &&
2781   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2782 test "x$ac_build_alias" = x &&
2783   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2784 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2785    { (exit 1); exit 1; }; }
2786 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2787   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2788 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2789    { (exit 1); exit 1; }; }
2790
2791 fi
2792 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2793 $as_echo "$ac_cv_build" >&6; }
2794 case $ac_cv_build in
2795 *-*-*) ;;
2796 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2797 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2798    { (exit 1); exit 1; }; };;
2799 esac
2800 build=$ac_cv_build
2801 ac_save_IFS=$IFS; IFS='-'
2802 set x $ac_cv_build
2803 shift
2804 build_cpu=$1
2805 build_vendor=$2
2806 shift; shift
2807 # Remember, the first character of IFS is used to create $*,
2808 # except with old shells:
2809 build_os=$*
2810 IFS=$ac_save_IFS
2811 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2812
2813
2814 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2815 $as_echo_n "checking host system type... " >&6; }
2816 if test "${ac_cv_host+set}" = set; then
2817   $as_echo_n "(cached) " >&6
2818 else
2819   if test "x$host_alias" = x; then
2820   ac_cv_host=$ac_cv_build
2821 else
2822   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2823     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2824 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2825    { (exit 1); exit 1; }; }
2826 fi
2827
2828 fi
2829 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2830 $as_echo "$ac_cv_host" >&6; }
2831 case $ac_cv_host in
2832 *-*-*) ;;
2833 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2834 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2835    { (exit 1); exit 1; }; };;
2836 esac
2837 host=$ac_cv_host
2838 ac_save_IFS=$IFS; IFS='-'
2839 set x $ac_cv_host
2840 shift
2841 host_cpu=$1
2842 host_vendor=$2
2843 shift; shift
2844 # Remember, the first character of IFS is used to create $*,
2845 # except with old shells:
2846 host_os=$*
2847 IFS=$ac_save_IFS
2848 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2849
2850
2851 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2852 $as_echo_n "checking target system type... " >&6; }
2853 if test "${ac_cv_target+set}" = set; then
2854   $as_echo_n "(cached) " >&6
2855 else
2856   if test "x$target_alias" = x; then
2857   ac_cv_target=$ac_cv_host
2858 else
2859   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2860     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2861 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2862    { (exit 1); exit 1; }; }
2863 fi
2864
2865 fi
2866 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2867 $as_echo "$ac_cv_target" >&6; }
2868 case $ac_cv_target in
2869 *-*-*) ;;
2870 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2871 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2872    { (exit 1); exit 1; }; };;
2873 esac
2874 target=$ac_cv_target
2875 ac_save_IFS=$IFS; IFS='-'
2876 set x $ac_cv_target
2877 shift
2878 target_cpu=$1
2879 target_vendor=$2
2880 shift; shift
2881 # Remember, the first character of IFS is used to create $*,
2882 # except with old shells:
2883 target_os=$*
2884 IFS=$ac_save_IFS
2885 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2886
2887
2888 # The aliases save the names the user supplied, while $host etc.
2889 # will get canonicalized.
2890 test -n "$target_alias" &&
2891   test "$program_prefix$program_suffix$program_transform_name" = \
2892     NONENONEs,x,x, &&
2893   program_prefix=${target_alias}-
2894
2895 PACKAGE=amanda
2896
2897
2898 am__api_version='1.11'
2899
2900 # Find a good install program.  We prefer a C program (faster),
2901 # so one script is as good as another.  But avoid the broken or
2902 # incompatible versions:
2903 # SysV /etc/install, /usr/sbin/install
2904 # SunOS /usr/etc/install
2905 # IRIX /sbin/install
2906 # AIX /bin/install
2907 # AmigaOS /C/install, which installs bootblocks on floppy discs
2908 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2909 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2910 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2911 # OS/2's system install, which has a completely different semantic
2912 # ./install, which can be erroneously created by make from ./install.sh.
2913 # Reject install programs that cannot install multiple files.
2914 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2915 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2916 if test -z "$INSTALL"; then
2917 if test "${ac_cv_path_install+set}" = set; then
2918   $as_echo_n "(cached) " >&6
2919 else
2920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923   IFS=$as_save_IFS
2924   test -z "$as_dir" && as_dir=.
2925   # Account for people who put trailing slashes in PATH elements.
2926 case $as_dir/ in
2927   ./ | .// | /cC/* | \
2928   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2929   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2930   /usr/ucb/* ) ;;
2931   *)
2932     # OSF1 and SCO ODT 3.0 have their own names for install.
2933     # Don't use installbsd from OSF since it installs stuff as root
2934     # by default.
2935     for ac_prog in ginstall scoinst install; do
2936       for ac_exec_ext in '' $ac_executable_extensions; do
2937         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2938           if test $ac_prog = install &&
2939             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2940             # AIX install.  It has an incompatible calling convention.
2941             :
2942           elif test $ac_prog = install &&
2943             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2944             # program-specific install script used by HP pwplus--don't use.
2945             :
2946           else
2947             rm -rf conftest.one conftest.two conftest.dir
2948             echo one > conftest.one
2949             echo two > conftest.two
2950             mkdir conftest.dir
2951             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2952               test -s conftest.one && test -s conftest.two &&
2953               test -s conftest.dir/conftest.one &&
2954               test -s conftest.dir/conftest.two
2955             then
2956               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2957               break 3
2958             fi
2959           fi
2960         fi
2961       done
2962     done
2963     ;;
2964 esac
2965
2966 done
2967 IFS=$as_save_IFS
2968
2969 rm -rf conftest.one conftest.two conftest.dir
2970
2971 fi
2972   if test "${ac_cv_path_install+set}" = set; then
2973     INSTALL=$ac_cv_path_install
2974   else
2975     # As a last resort, use the slow shell script.  Don't cache a
2976     # value for INSTALL within a source directory, because that will
2977     # break other packages using the cache if that directory is
2978     # removed, or if the value is a relative name.
2979     INSTALL=$ac_install_sh
2980   fi
2981 fi
2982 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2983 $as_echo "$INSTALL" >&6; }
2984
2985 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2986 # It thinks the first close brace ends the variable substitution.
2987 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2988
2989 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2990
2991 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2992
2993 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2994 $as_echo_n "checking whether build environment is sane... " >&6; }
2995 # Just in case
2996 sleep 1
2997 echo timestamp > conftest.file
2998 # Reject unsafe characters in $srcdir or the absolute working directory
2999 # name.  Accept space and tab only in the latter.
3000 am_lf='
3001 '
3002 case `pwd` in
3003   *[\\\"\#\$\&\'\`$am_lf]*)
3004     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
3005 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
3006    { (exit 1); exit 1; }; };;
3007 esac
3008 case $srcdir in
3009   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3010     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
3011 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
3012    { (exit 1); exit 1; }; };;
3013 esac
3014
3015 # Do `set' in a subshell so we don't clobber the current shell's
3016 # arguments.  Must try -L first in case configure is actually a
3017 # symlink; some systems play weird games with the mod time of symlinks
3018 # (eg FreeBSD returns the mod time of the symlink's containing
3019 # directory).
3020 if (
3021    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3022    if test "$*" = "X"; then
3023       # -L didn't work.
3024       set X `ls -t "$srcdir/configure" conftest.file`
3025    fi
3026    rm -f conftest.file
3027    if test "$*" != "X $srcdir/configure conftest.file" \
3028       && test "$*" != "X conftest.file $srcdir/configure"; then
3029
3030       # If neither matched, then we have a broken ls.  This can happen
3031       # if, for instance, CONFIG_SHELL is bash and it inherits a
3032       # broken ls alias from the environment.  This has actually
3033       # happened.  Such a system could not be considered "sane".
3034       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3035 alias in your environment" >&5
3036 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3037 alias in your environment" >&2;}
3038    { (exit 1); exit 1; }; }
3039    fi
3040
3041    test "$2" = conftest.file
3042    )
3043 then
3044    # Ok.
3045    :
3046 else
3047    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3048 Check your system clock" >&5
3049 $as_echo "$as_me: error: newly created file is older than distributed files!
3050 Check your system clock" >&2;}
3051    { (exit 1); exit 1; }; }
3052 fi
3053 { $as_echo "$as_me:$LINENO: result: yes" >&5
3054 $as_echo "yes" >&6; }
3055 test "$program_prefix" != NONE &&
3056   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3057 # Use a double $ so make ignores it.
3058 test "$program_suffix" != NONE &&
3059   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3060 # Double any \ or $.
3061 # By default was `s,x,x', remove it if useless.
3062 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3063 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3064
3065 # expand $ac_aux_dir to an absolute path
3066 am_aux_dir=`cd $ac_aux_dir && pwd`
3067
3068 if test x"${MISSING+set}" != xset; then
3069   case $am_aux_dir in
3070   *\ * | *\     *)
3071     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3072   *)
3073     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3074   esac
3075 fi
3076 # Use eval to expand $SHELL
3077 if eval "$MISSING --run true"; then
3078   am_missing_run="$MISSING --run "
3079 else
3080   am_missing_run=
3081   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3082 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3083 fi
3084
3085 if test x"${install_sh}" != xset; then
3086   case $am_aux_dir in
3087   *\ * | *\     *)
3088     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3089   *)
3090     install_sh="\${SHELL} $am_aux_dir/install-sh"
3091   esac
3092 fi
3093
3094 # Installed binaries are usually stripped using `strip' when the user
3095 # run `make install-strip'.  However `strip' might not be the right
3096 # tool to use in cross-compilation environments, therefore Automake
3097 # will honor the `STRIP' environment variable to overrule this program.
3098 if test "$cross_compiling" != no; then
3099   if test -n "$ac_tool_prefix"; then
3100   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3101 set dummy ${ac_tool_prefix}strip; ac_word=$2
3102 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if test "${ac_cv_prog_STRIP+set}" = set; then
3105   $as_echo_n "(cached) " >&6
3106 else
3107   if test -n "$STRIP"; then
3108   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113   IFS=$as_save_IFS
3114   test -z "$as_dir" && as_dir=.
3115   for ac_exec_ext in '' $ac_executable_extensions; do
3116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3117     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3118     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119     break 2
3120   fi
3121 done
3122 done
3123 IFS=$as_save_IFS
3124
3125 fi
3126 fi
3127 STRIP=$ac_cv_prog_STRIP
3128 if test -n "$STRIP"; then
3129   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3130 $as_echo "$STRIP" >&6; }
3131 else
3132   { $as_echo "$as_me:$LINENO: result: no" >&5
3133 $as_echo "no" >&6; }
3134 fi
3135
3136
3137 fi
3138 if test -z "$ac_cv_prog_STRIP"; then
3139   ac_ct_STRIP=$STRIP
3140   # Extract the first word of "strip", so it can be a program name with args.
3141 set dummy strip; ac_word=$2
3142 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3145   $as_echo_n "(cached) " >&6
3146 else
3147   if test -n "$ac_ct_STRIP"; then
3148   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153   IFS=$as_save_IFS
3154   test -z "$as_dir" && as_dir=.
3155   for ac_exec_ext in '' $ac_executable_extensions; do
3156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157     ac_cv_prog_ac_ct_STRIP="strip"
3158     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159     break 2
3160   fi
3161 done
3162 done
3163 IFS=$as_save_IFS
3164
3165 fi
3166 fi
3167 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3168 if test -n "$ac_ct_STRIP"; then
3169   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3170 $as_echo "$ac_ct_STRIP" >&6; }
3171 else
3172   { $as_echo "$as_me:$LINENO: result: no" >&5
3173 $as_echo "no" >&6; }
3174 fi
3175
3176   if test "x$ac_ct_STRIP" = x; then
3177     STRIP=":"
3178   else
3179     case $cross_compiling:$ac_tool_warned in
3180 yes:)
3181 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3183 ac_tool_warned=yes ;;
3184 esac
3185     STRIP=$ac_ct_STRIP
3186   fi
3187 else
3188   STRIP="$ac_cv_prog_STRIP"
3189 fi
3190
3191 fi
3192 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3193
3194 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3195 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3196 if test -z "$MKDIR_P"; then
3197   if test "${ac_cv_path_mkdir+set}" = set; then
3198   $as_echo_n "(cached) " >&6
3199 else
3200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205   for ac_prog in mkdir gmkdir; do
3206          for ac_exec_ext in '' $ac_executable_extensions; do
3207            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3208            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3209              'mkdir (GNU coreutils) '* | \
3210              'mkdir (coreutils) '* | \
3211              'mkdir (fileutils) '4.1*)
3212                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3213                break 3;;
3214            esac
3215          done
3216        done
3217 done
3218 IFS=$as_save_IFS
3219
3220 fi
3221
3222   if test "${ac_cv_path_mkdir+set}" = set; then
3223     MKDIR_P="$ac_cv_path_mkdir -p"
3224   else
3225     # As a last resort, use the slow shell script.  Don't cache a
3226     # value for MKDIR_P within a source directory, because that will
3227     # break other packages using the cache if that directory is
3228     # removed, or if the value is a relative name.
3229     test -d ./--version && rmdir ./--version
3230     MKDIR_P="$ac_install_sh -d"
3231   fi
3232 fi
3233 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3234 $as_echo "$MKDIR_P" >&6; }
3235
3236 mkdir_p="$MKDIR_P"
3237 case $mkdir_p in
3238   [\\/$]* | ?:[\\/]*) ;;
3239   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3240 esac
3241
3242 for ac_prog in gawk mawk nawk awk
3243 do
3244   # Extract the first word of "$ac_prog", so it can be a program name with args.
3245 set dummy $ac_prog; ac_word=$2
3246 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3247 $as_echo_n "checking for $ac_word... " >&6; }
3248 if test "${ac_cv_prog_AWK+set}" = set; then
3249   $as_echo_n "(cached) " >&6
3250 else
3251   if test -n "$AWK"; then
3252   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257   IFS=$as_save_IFS
3258   test -z "$as_dir" && as_dir=.
3259   for ac_exec_ext in '' $ac_executable_extensions; do
3260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261     ac_cv_prog_AWK="$ac_prog"
3262     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263     break 2
3264   fi
3265 done
3266 done
3267 IFS=$as_save_IFS
3268
3269 fi
3270 fi
3271 AWK=$ac_cv_prog_AWK
3272 if test -n "$AWK"; then
3273   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3274 $as_echo "$AWK" >&6; }
3275 else
3276   { $as_echo "$as_me:$LINENO: result: no" >&5
3277 $as_echo "no" >&6; }
3278 fi
3279
3280
3281   test -n "$AWK" && break
3282 done
3283
3284 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3285 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3286 set x ${MAKE-make}
3287 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3288 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3289   $as_echo_n "(cached) " >&6
3290 else
3291   cat >conftest.make <<\_ACEOF
3292 SHELL = /bin/sh
3293 all:
3294         @echo '@@@%%%=$(MAKE)=@@@%%%'
3295 _ACEOF
3296 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3297 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3298   *@@@%%%=?*=@@@%%%*)
3299     eval ac_cv_prog_make_${ac_make}_set=yes;;
3300   *)
3301     eval ac_cv_prog_make_${ac_make}_set=no;;
3302 esac
3303 rm -f conftest.make
3304 fi
3305 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3306   { $as_echo "$as_me:$LINENO: result: yes" >&5
3307 $as_echo "yes" >&6; }
3308   SET_MAKE=
3309 else
3310   { $as_echo "$as_me:$LINENO: result: no" >&5
3311 $as_echo "no" >&6; }
3312   SET_MAKE="MAKE=${MAKE-make}"
3313 fi
3314
3315 rm -rf .tst 2>/dev/null
3316 mkdir .tst 2>/dev/null
3317 if test -d .tst; then
3318   am__leading_dot=.
3319 else
3320   am__leading_dot=_
3321 fi
3322 rmdir .tst 2>/dev/null
3323
3324 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3325   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3326   # is not polluted with repeated "-I."
3327   am__isrc=' -I$(srcdir)'
3328   # test to see if srcdir already configured
3329   if test -f $srcdir/config.status; then
3330     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3331 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3332    { (exit 1); exit 1; }; }
3333   fi
3334 fi
3335
3336 # test whether we have cygpath
3337 if test -z "$CYGPATH_W"; then
3338   if (cygpath --version) >/dev/null 2>/dev/null; then
3339     CYGPATH_W='cygpath -w'
3340   else
3341     CYGPATH_W=echo
3342   fi
3343 fi
3344
3345
3346 # Define the identity of the package.
3347  PACKAGE=amanda
3348  VERSION="2.6.1p2"
3349
3350
3351 cat >>confdefs.h <<_ACEOF
3352 #define PACKAGE "$PACKAGE"
3353 _ACEOF
3354
3355
3356 cat >>confdefs.h <<_ACEOF
3357 #define VERSION "$VERSION"
3358 _ACEOF
3359
3360 # Some tools Automake needs.
3361
3362 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3363
3364
3365 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3366
3367
3368 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3369
3370
3371 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3372
3373
3374 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3375
3376 # We need awk for the "check" target.  The system "awk" is bad on
3377 # some platforms.
3378 # Always define AMTAR for backward compatibility.
3379
3380 AMTAR=${AMTAR-"${am_missing_run}tar"}
3381
3382 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3383
3384
3385
3386
3387
3388 ac_config_headers="$ac_config_headers config/config.h"
3389
3390
3391
3392
3393 #
3394 # Take care of some early Amanda-specific setup
3395 #
3396
3397     # initialize warnings file
3398     rm -f config.warnings
3399
3400
3401     if test -f "$srcdir/SNAPSHOT"; then
3402       cat < "$srcdir/SNAPSHOT"
3403
3404       snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
3405
3406       test -z "$snapdate" || VERSION="$VERSION-$snapdate"
3407       SNAPSHOT_STAMP=SNAPSHOT
3408     else
3409       SNAPSHOT_STAMP=
3410     fi
3411
3412
3413
3414
3415     VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
3416     VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
3417     VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
3418     VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
3419
3420
3421     VERSION_SUFFIX="$VERSION"
3422
3423
3424
3425
3426
3427
3428
3429     if test -f config.local; then
3430         echo "running local script ./config.local"
3431         . ./config.local
3432     fi
3433
3434
3435 #
3436 # Set up compiler location, basic flags, and include locations
3437 # and library locations before we start checking the system
3438 # configuration in more detail...
3439 #
3440 ac_ext=c
3441 ac_cpp='$CPP $CPPFLAGS'
3442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3445 if test -n "$ac_tool_prefix"; then
3446   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3447 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3449 $as_echo_n "checking for $ac_word... " >&6; }
3450 if test "${ac_cv_prog_CC+set}" = set; then
3451   $as_echo_n "(cached) " >&6
3452 else
3453   if test -n "$CC"; then
3454   ac_cv_prog_CC="$CC" # Let the user override the test.
3455 else
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 for as_dir in $PATH
3458 do
3459   IFS=$as_save_IFS
3460   test -z "$as_dir" && as_dir=.
3461   for ac_exec_ext in '' $ac_executable_extensions; do
3462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3463     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3464     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3465     break 2
3466   fi
3467 done
3468 done
3469 IFS=$as_save_IFS
3470
3471 fi
3472 fi
3473 CC=$ac_cv_prog_CC
3474 if test -n "$CC"; then
3475   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3476 $as_echo "$CC" >&6; }
3477 else
3478   { $as_echo "$as_me:$LINENO: result: no" >&5
3479 $as_echo "no" >&6; }
3480 fi
3481
3482
3483 fi
3484 if test -z "$ac_cv_prog_CC"; then
3485   ac_ct_CC=$CC
3486   # Extract the first word of "gcc", so it can be a program name with args.
3487 set dummy gcc; ac_word=$2
3488 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3489 $as_echo_n "checking for $ac_word... " >&6; }
3490 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3491   $as_echo_n "(cached) " >&6
3492 else
3493   if test -n "$ac_ct_CC"; then
3494   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3495 else
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3498 do
3499   IFS=$as_save_IFS
3500   test -z "$as_dir" && as_dir=.
3501   for ac_exec_ext in '' $ac_executable_extensions; do
3502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3503     ac_cv_prog_ac_ct_CC="gcc"
3504     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3505     break 2
3506   fi
3507 done
3508 done
3509 IFS=$as_save_IFS
3510
3511 fi
3512 fi
3513 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3514 if test -n "$ac_ct_CC"; then
3515   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3516 $as_echo "$ac_ct_CC" >&6; }
3517 else
3518   { $as_echo "$as_me:$LINENO: result: no" >&5
3519 $as_echo "no" >&6; }
3520 fi
3521
3522   if test "x$ac_ct_CC" = x; then
3523     CC=""
3524   else
3525     case $cross_compiling:$ac_tool_warned in
3526 yes:)
3527 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3529 ac_tool_warned=yes ;;
3530 esac
3531     CC=$ac_ct_CC
3532   fi
3533 else
3534   CC="$ac_cv_prog_CC"
3535 fi
3536
3537 if test -z "$CC"; then
3538           if test -n "$ac_tool_prefix"; then
3539     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3540 set dummy ${ac_tool_prefix}cc; ac_word=$2
3541 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if test "${ac_cv_prog_CC+set}" = set; then
3544   $as_echo_n "(cached) " >&6
3545 else
3546   if test -n "$CC"; then
3547   ac_cv_prog_CC="$CC" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3551 do
3552   IFS=$as_save_IFS
3553   test -z "$as_dir" && as_dir=.
3554   for ac_exec_ext in '' $ac_executable_extensions; do
3555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3556     ac_cv_prog_CC="${ac_tool_prefix}cc"
3557     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558     break 2
3559   fi
3560 done
3561 done
3562 IFS=$as_save_IFS
3563
3564 fi
3565 fi
3566 CC=$ac_cv_prog_CC
3567 if test -n "$CC"; then
3568   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3569 $as_echo "$CC" >&6; }
3570 else
3571   { $as_echo "$as_me:$LINENO: result: no" >&5
3572 $as_echo "no" >&6; }
3573 fi
3574
3575
3576   fi
3577 fi
3578 if test -z "$CC"; then
3579   # Extract the first word of "cc", so it can be a program name with args.
3580 set dummy cc; ac_word=$2
3581 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3582 $as_echo_n "checking for $ac_word... " >&6; }
3583 if test "${ac_cv_prog_CC+set}" = set; then
3584   $as_echo_n "(cached) " >&6
3585 else
3586   if test -n "$CC"; then
3587   ac_cv_prog_CC="$CC" # Let the user override the test.
3588 else
3589   ac_prog_rejected=no
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3598        ac_prog_rejected=yes
3599        continue
3600      fi
3601     ac_cv_prog_CC="cc"
3602     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3603     break 2
3604   fi
3605 done
3606 done
3607 IFS=$as_save_IFS
3608
3609 if test $ac_prog_rejected = yes; then
3610   # We found a bogon in the path, so make sure we never use it.
3611   set dummy $ac_cv_prog_CC
3612   shift
3613   if test $# != 0; then
3614     # We chose a different compiler from the bogus one.
3615     # However, it has the same basename, so the bogon will be chosen
3616     # first if we set CC to just the basename; use the full file name.
3617     shift
3618     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3619   fi
3620 fi
3621 fi
3622 fi
3623 CC=$ac_cv_prog_CC
3624 if test -n "$CC"; then
3625   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3626 $as_echo "$CC" >&6; }
3627 else
3628   { $as_echo "$as_me:$LINENO: result: no" >&5
3629 $as_echo "no" >&6; }
3630 fi
3631
3632
3633 fi
3634 if test -z "$CC"; then
3635   if test -n "$ac_tool_prefix"; then
3636   for ac_prog in cl.exe
3637   do
3638     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3639 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if test "${ac_cv_prog_CC+set}" = set; then
3643   $as_echo_n "(cached) " >&6
3644 else
3645   if test -n "$CC"; then
3646   ac_cv_prog_CC="$CC" # Let the user override the test.
3647 else
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH
3650 do
3651   IFS=$as_save_IFS
3652   test -z "$as_dir" && as_dir=.
3653   for ac_exec_ext in '' $ac_executable_extensions; do
3654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3655     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3656     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3657     break 2
3658   fi
3659 done
3660 done
3661 IFS=$as_save_IFS
3662
3663 fi
3664 fi
3665 CC=$ac_cv_prog_CC
3666 if test -n "$CC"; then
3667   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3668 $as_echo "$CC" >&6; }
3669 else
3670   { $as_echo "$as_me:$LINENO: result: no" >&5
3671 $as_echo "no" >&6; }
3672 fi
3673
3674
3675     test -n "$CC" && break
3676   done
3677 fi
3678 if test -z "$CC"; then
3679   ac_ct_CC=$CC
3680   for ac_prog in cl.exe
3681 do
3682   # Extract the first word of "$ac_prog", so it can be a program name with args.
3683 set dummy $ac_prog; ac_word=$2
3684 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3685 $as_echo_n "checking for $ac_word... " >&6; }
3686 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3687   $as_echo_n "(cached) " >&6
3688 else
3689   if test -n "$ac_ct_CC"; then
3690   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3691 else
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 for as_dir in $PATH
3694 do
3695   IFS=$as_save_IFS
3696   test -z "$as_dir" && as_dir=.
3697   for ac_exec_ext in '' $ac_executable_extensions; do
3698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3699     ac_cv_prog_ac_ct_CC="$ac_prog"
3700     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3701     break 2
3702   fi
3703 done
3704 done
3705 IFS=$as_save_IFS
3706
3707 fi
3708 fi
3709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3710 if test -n "$ac_ct_CC"; then
3711   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3712 $as_echo "$ac_ct_CC" >&6; }
3713 else
3714   { $as_echo "$as_me:$LINENO: result: no" >&5
3715 $as_echo "no" >&6; }
3716 fi
3717
3718
3719   test -n "$ac_ct_CC" && break
3720 done
3721
3722   if test "x$ac_ct_CC" = x; then
3723     CC=""
3724   else
3725     case $cross_compiling:$ac_tool_warned in
3726 yes:)
3727 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3729 ac_tool_warned=yes ;;
3730 esac
3731     CC=$ac_ct_CC
3732   fi
3733 fi
3734
3735 fi
3736
3737
3738 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3740 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3741 See \`config.log' for more details." >&5
3742 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3743 See \`config.log' for more details." >&2;}
3744    { (exit 1); exit 1; }; }; }
3745
3746 # Provide some information about the compiler.
3747 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3748 set X $ac_compile
3749 ac_compiler=$2
3750 { (ac_try="$ac_compiler --version >&5"
3751 case "(($ac_try" in
3752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753   *) ac_try_echo=$ac_try;;
3754 esac
3755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3756 $as_echo "$ac_try_echo") >&5
3757   (eval "$ac_compiler --version >&5") 2>&5
3758   ac_status=$?
3759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760   (exit $ac_status); }
3761 { (ac_try="$ac_compiler -v >&5"
3762 case "(($ac_try" in
3763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764   *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3767 $as_echo "$ac_try_echo") >&5
3768   (eval "$ac_compiler -v >&5") 2>&5
3769   ac_status=$?
3770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771   (exit $ac_status); }
3772 { (ac_try="$ac_compiler -V >&5"
3773 case "(($ac_try" in
3774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775   *) ac_try_echo=$ac_try;;
3776 esac
3777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3778 $as_echo "$ac_try_echo") >&5
3779   (eval "$ac_compiler -V >&5") 2>&5
3780   ac_status=$?
3781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); }
3783
3784 cat >conftest.$ac_ext <<_ACEOF
3785 /* confdefs.h.  */
3786 _ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h.  */
3790
3791 int
3792 main ()
3793 {
3794
3795   ;
3796   return 0;
3797 }
3798 _ACEOF
3799 ac_clean_files_save=$ac_clean_files
3800 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3801 # Try to create an executable without -o first, disregard a.out.
3802 # It will help us diagnose broken compilers, and finding out an intuition
3803 # of exeext.
3804 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3805 $as_echo_n "checking for C compiler default output file name... " >&6; }
3806 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3807
3808 # The possible output files:
3809 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3810
3811 ac_rmfiles=
3812 for ac_file in $ac_files
3813 do
3814   case $ac_file in
3815     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3816     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3817   esac
3818 done
3819 rm -f $ac_rmfiles
3820
3821 if { (ac_try="$ac_link_default"
3822 case "(($ac_try" in
3823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824   *) ac_try_echo=$ac_try;;
3825 esac
3826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3827 $as_echo "$ac_try_echo") >&5
3828   (eval "$ac_link_default") 2>&5
3829   ac_status=$?
3830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831   (exit $ac_status); }; then
3832   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3833 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3834 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3835 # so that the user can short-circuit this test for compilers unknown to
3836 # Autoconf.
3837 for ac_file in $ac_files ''
3838 do
3839   test -f "$ac_file" || continue
3840   case $ac_file in
3841     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3842         ;;
3843     [ab].out )
3844         # We found the default executable, but exeext='' is most
3845         # certainly right.
3846         break;;
3847     *.* )
3848         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3849         then :; else
3850            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3851         fi
3852         # We set ac_cv_exeext here because the later test for it is not
3853         # safe: cross compilers may not add the suffix if given an `-o'
3854         # argument, so we may need to know it at that point already.
3855         # Even if this section looks crufty: it has the advantage of
3856         # actually working.
3857         break;;
3858     * )
3859         break;;
3860   esac
3861 done
3862 test "$ac_cv_exeext" = no && ac_cv_exeext=
3863
3864 else
3865   ac_file=''
3866 fi
3867
3868 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3869 $as_echo "$ac_file" >&6; }
3870 if test -z "$ac_file"; then
3871   $as_echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3873
3874 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3876 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3877 See \`config.log' for more details." >&5
3878 $as_echo "$as_me: error: C compiler cannot create executables
3879 See \`config.log' for more details." >&2;}
3880    { (exit 77); exit 77; }; }; }
3881 fi
3882
3883 ac_exeext=$ac_cv_exeext
3884
3885 # Check that the compiler produces executables we can run.  If not, either
3886 # the compiler is broken, or we cross compile.
3887 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3888 $as_echo_n "checking whether the C compiler works... " >&6; }
3889 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3890 # If not cross compiling, check that we can run a simple program.
3891 if test "$cross_compiling" != yes; then
3892   if { ac_try='./$ac_file'
3893   { (case "(($ac_try" in
3894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895   *) ac_try_echo=$ac_try;;
3896 esac
3897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3898 $as_echo "$ac_try_echo") >&5
3899   (eval "$ac_try") 2>&5
3900   ac_status=$?
3901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); }; }; then
3903     cross_compiling=no
3904   else
3905     if test "$cross_compiling" = maybe; then
3906         cross_compiling=yes
3907     else
3908         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3911 If you meant to cross compile, use \`--host'.
3912 See \`config.log' for more details." >&5
3913 $as_echo "$as_me: error: cannot run C compiled programs.
3914 If you meant to cross compile, use \`--host'.
3915 See \`config.log' for more details." >&2;}
3916    { (exit 1); exit 1; }; }; }
3917     fi
3918   fi
3919 fi
3920 { $as_echo "$as_me:$LINENO: result: yes" >&5
3921 $as_echo "yes" >&6; }
3922
3923 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3924 ac_clean_files=$ac_clean_files_save
3925 # Check that the compiler produces executables we can run.  If not, either
3926 # the compiler is broken, or we cross compile.
3927 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3928 $as_echo_n "checking whether we are cross compiling... " >&6; }
3929 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3930 $as_echo "$cross_compiling" >&6; }
3931
3932 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3933 $as_echo_n "checking for suffix of executables... " >&6; }
3934 if { (ac_try="$ac_link"
3935 case "(($ac_try" in
3936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937   *) ac_try_echo=$ac_try;;
3938 esac
3939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3940 $as_echo "$ac_try_echo") >&5
3941   (eval "$ac_link") 2>&5
3942   ac_status=$?
3943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944   (exit $ac_status); }; then
3945   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3946 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3947 # work properly (i.e., refer to `conftest.exe'), while it won't with
3948 # `rm'.
3949 for ac_file in conftest.exe conftest conftest.*; do
3950   test -f "$ac_file" || continue
3951   case $ac_file in
3952     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3953     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3954           break;;
3955     * ) break;;
3956   esac
3957 done
3958 else
3959   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3961 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3962 See \`config.log' for more details." >&5
3963 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3964 See \`config.log' for more details." >&2;}
3965    { (exit 1); exit 1; }; }; }
3966 fi
3967
3968 rm -f conftest$ac_cv_exeext
3969 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3970 $as_echo "$ac_cv_exeext" >&6; }
3971
3972 rm -f conftest.$ac_ext
3973 EXEEXT=$ac_cv_exeext
3974 ac_exeext=$EXEEXT
3975 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3976 $as_echo_n "checking for suffix of object files... " >&6; }
3977 if test "${ac_cv_objext+set}" = set; then
3978   $as_echo_n "(cached) " >&6
3979 else
3980   cat >conftest.$ac_ext <<_ACEOF
3981 /* confdefs.h.  */
3982 _ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h.  */
3986
3987 int
3988 main ()
3989 {
3990
3991   ;
3992   return 0;
3993 }
3994 _ACEOF
3995 rm -f conftest.o conftest.obj
3996 if { (ac_try="$ac_compile"
3997 case "(($ac_try" in
3998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999   *) ac_try_echo=$ac_try;;
4000 esac
4001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4002 $as_echo "$ac_try_echo") >&5
4003   (eval "$ac_compile") 2>&5
4004   ac_status=$?
4005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006   (exit $ac_status); }; then
4007   for ac_file in conftest.o conftest.obj conftest.*; do
4008   test -f "$ac_file" || continue;
4009   case $ac_file in
4010     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4011     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4012        break;;
4013   esac
4014 done
4015 else
4016   $as_echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4018
4019 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4022 See \`config.log' for more details." >&5
4023 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4024 See \`config.log' for more details." >&2;}
4025    { (exit 1); exit 1; }; }; }
4026 fi
4027
4028 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4029 fi
4030 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4031 $as_echo "$ac_cv_objext" >&6; }
4032 OBJEXT=$ac_cv_objext
4033 ac_objext=$OBJEXT
4034 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4035 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4036 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4037   $as_echo_n "(cached) " >&6
4038 else
4039   cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h.  */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h.  */
4045
4046 int
4047 main ()
4048 {
4049 #ifndef __GNUC__
4050        choke me
4051 #endif
4052
4053   ;
4054   return 0;
4055 }
4056 _ACEOF
4057 rm -f conftest.$ac_objext
4058 if { (ac_try="$ac_compile"
4059 case "(($ac_try" in
4060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061   *) ac_try_echo=$ac_try;;
4062 esac
4063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4064 $as_echo "$ac_try_echo") >&5
4065   (eval "$ac_compile") 2>conftest.er1
4066   ac_status=$?
4067   grep -v '^ *+' conftest.er1 >conftest.err
4068   rm -f conftest.er1
4069   cat conftest.err >&5
4070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); } && {
4072          test -z "$ac_c_werror_flag" ||
4073          test ! -s conftest.err
4074        } && test -s conftest.$ac_objext; then
4075   ac_compiler_gnu=yes
4076 else
4077   $as_echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4079
4080         ac_compiler_gnu=no
4081 fi
4082
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4085
4086 fi
4087 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4088 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4089 if test $ac_compiler_gnu = yes; then
4090   GCC=yes
4091 else
4092   GCC=
4093 fi
4094 ac_test_CFLAGS=${CFLAGS+set}
4095 ac_save_CFLAGS=$CFLAGS
4096 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4097 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4098 if test "${ac_cv_prog_cc_g+set}" = set; then
4099   $as_echo_n "(cached) " >&6
4100 else
4101   ac_save_c_werror_flag=$ac_c_werror_flag
4102    ac_c_werror_flag=yes
4103    ac_cv_prog_cc_g=no
4104    CFLAGS="-g"
4105    cat >conftest.$ac_ext <<_ACEOF
4106 /* confdefs.h.  */
4107 _ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h.  */
4111
4112 int
4113 main ()
4114 {
4115
4116   ;
4117   return 0;
4118 }
4119 _ACEOF
4120 rm -f conftest.$ac_objext
4121 if { (ac_try="$ac_compile"
4122 case "(($ac_try" in
4123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124   *) ac_try_echo=$ac_try;;
4125 esac
4126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4127 $as_echo "$ac_try_echo") >&5
4128   (eval "$ac_compile") 2>conftest.er1
4129   ac_status=$?
4130   grep -v '^ *+' conftest.er1 >conftest.err
4131   rm -f conftest.er1
4132   cat conftest.err >&5
4133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134   (exit $ac_status); } && {
4135          test -z "$ac_c_werror_flag" ||
4136          test ! -s conftest.err
4137        } && test -s conftest.$ac_objext; then
4138   ac_cv_prog_cc_g=yes
4139 else
4140   $as_echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4142
4143         CFLAGS=""
4144       cat >conftest.$ac_ext <<_ACEOF
4145 /* confdefs.h.  */
4146 _ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h.  */
4150
4151 int
4152 main ()
4153 {
4154
4155   ;
4156   return 0;
4157 }
4158 _ACEOF
4159 rm -f conftest.$ac_objext
4160 if { (ac_try="$ac_compile"
4161 case "(($ac_try" in
4162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163   *) ac_try_echo=$ac_try;;
4164 esac
4165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4166 $as_echo "$ac_try_echo") >&5
4167   (eval "$ac_compile") 2>conftest.er1
4168   ac_status=$?
4169   grep -v '^ *+' conftest.er1 >conftest.err
4170   rm -f conftest.er1
4171   cat conftest.err >&5
4172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); } && {
4174          test -z "$ac_c_werror_flag" ||
4175          test ! -s conftest.err
4176        } && test -s conftest.$ac_objext; then
4177   :
4178 else
4179   $as_echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182         ac_c_werror_flag=$ac_save_c_werror_flag
4183          CFLAGS="-g"
4184          cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h.  */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h.  */
4190
4191 int
4192 main ()
4193 {
4194
4195   ;
4196   return 0;
4197 }
4198 _ACEOF
4199 rm -f conftest.$ac_objext
4200 if { (ac_try="$ac_compile"
4201 case "(($ac_try" in
4202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203   *) ac_try_echo=$ac_try;;
4204 esac
4205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4206 $as_echo "$ac_try_echo") >&5
4207   (eval "$ac_compile") 2>conftest.er1
4208   ac_status=$?
4209   grep -v '^ *+' conftest.er1 >conftest.err
4210   rm -f conftest.er1
4211   cat conftest.err >&5
4212   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213   (exit $ac_status); } && {
4214          test -z "$ac_c_werror_flag" ||
4215          test ! -s conftest.err
4216        } && test -s conftest.$ac_objext; then
4217   ac_cv_prog_cc_g=yes
4218 else
4219   $as_echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4221
4222
4223 fi
4224
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 fi
4227
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 fi
4230
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232    ac_c_werror_flag=$ac_save_c_werror_flag
4233 fi
4234 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4235 $as_echo "$ac_cv_prog_cc_g" >&6; }
4236 if test "$ac_test_CFLAGS" = set; then
4237   CFLAGS=$ac_save_CFLAGS
4238 elif test $ac_cv_prog_cc_g = yes; then
4239   if test "$GCC" = yes; then
4240     CFLAGS="-g -O2"
4241   else
4242     CFLAGS="-g"
4243   fi
4244 else
4245   if test "$GCC" = yes; then
4246     CFLAGS="-O2"
4247   else
4248     CFLAGS=
4249   fi
4250 fi
4251 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4252 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4253 if test "${ac_cv_prog_cc_c89+set}" = set; then
4254   $as_echo_n "(cached) " >&6
4255 else
4256   ac_cv_prog_cc_c89=no
4257 ac_save_CC=$CC
4258 cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h.  */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h.  */
4264 #include <stdarg.h>
4265 #include <stdio.h>
4266 #include <sys/types.h>
4267 #include <sys/stat.h>
4268 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4269 struct buf { int x; };
4270 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4271 static char *e (p, i)
4272      char **p;
4273      int i;
4274 {
4275   return p[i];
4276 }
4277 static char *f (char * (*g) (char **, int), char **p, ...)
4278 {
4279   char *s;
4280   va_list v;
4281   va_start (v,p);
4282   s = g (p, va_arg (v,int));
4283   va_end (v);
4284   return s;
4285 }
4286
4287 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4288    function prototypes and stuff, but not '\xHH' hex character constants.
4289    These don't provoke an error unfortunately, instead are silently treated
4290    as 'x'.  The following induces an error, until -std is added to get
4291    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4292    array size at least.  It's necessary to write '\x00'==0 to get something
4293    that's true only with -std.  */
4294 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4295
4296 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4297    inside strings and character constants.  */
4298 #define FOO(x) 'x'
4299 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4300
4301 int test (int i, double x);
4302 struct s1 {int (*f) (int a);};
4303 struct s2 {int (*f) (double a);};
4304 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4305 int argc;
4306 char **argv;
4307 int
4308 main ()
4309 {
4310 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4311   ;
4312   return 0;
4313 }
4314 _ACEOF
4315 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4316         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4317 do
4318   CC="$ac_save_CC $ac_arg"
4319   rm -f conftest.$ac_objext
4320 if { (ac_try="$ac_compile"
4321 case "(($ac_try" in
4322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323   *) ac_try_echo=$ac_try;;
4324 esac
4325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4326 $as_echo "$ac_try_echo") >&5
4327   (eval "$ac_compile") 2>conftest.er1
4328   ac_status=$?
4329   grep -v '^ *+' conftest.er1 >conftest.err
4330   rm -f conftest.er1
4331   cat conftest.err >&5
4332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); } && {
4334          test -z "$ac_c_werror_flag" ||
4335          test ! -s conftest.err
4336        } && test -s conftest.$ac_objext; then
4337   ac_cv_prog_cc_c89=$ac_arg
4338 else
4339   $as_echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4341
4342
4343 fi
4344
4345 rm -f core conftest.err conftest.$ac_objext
4346   test "x$ac_cv_prog_cc_c89" != "xno" && break
4347 done
4348 rm -f conftest.$ac_ext
4349 CC=$ac_save_CC
4350
4351 fi
4352 # AC_CACHE_VAL
4353 case "x$ac_cv_prog_cc_c89" in
4354   x)
4355     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4356 $as_echo "none needed" >&6; } ;;
4357   xno)
4358     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4359 $as_echo "unsupported" >&6; } ;;
4360   *)
4361     CC="$CC $ac_cv_prog_cc_c89"
4362     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4363 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4364 esac
4365
4366
4367 ac_ext=c
4368 ac_cpp='$CPP $CPPFLAGS'
4369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4372 DEPDIR="${am__leading_dot}deps"
4373
4374 ac_config_commands="$ac_config_commands depfiles"
4375
4376
4377 am_make=${MAKE-make}
4378 cat > confinc << 'END'
4379 am__doit:
4380         @echo this is the am__doit target
4381 .PHONY: am__doit
4382 END
4383 # If we don't find an include directive, just comment out the code.
4384 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4385 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4386 am__include="#"
4387 am__quote=
4388 _am_result=none
4389 # First try GNU make style include.
4390 echo "include confinc" > confmf
4391 # Ignore all kinds of additional output from `make'.
4392 case `$am_make -s -f confmf 2> /dev/null` in #(
4393 *the\ am__doit\ target*)
4394   am__include=include
4395   am__quote=
4396   _am_result=GNU
4397   ;;
4398 esac
4399 # Now try BSD make style include.
4400 if test "$am__include" = "#"; then
4401    echo '.include "confinc"' > confmf
4402    case `$am_make -s -f confmf 2> /dev/null` in #(
4403    *the\ am__doit\ target*)
4404      am__include=.include
4405      am__quote="\""
4406      _am_result=BSD
4407      ;;
4408    esac
4409 fi
4410
4411
4412 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4413 $as_echo "$_am_result" >&6; }
4414 rm -f confinc confmf
4415
4416 # Check whether --enable-dependency-tracking was given.
4417 if test "${enable_dependency_tracking+set}" = set; then
4418   enableval=$enable_dependency_tracking;
4419 fi
4420
4421 if test "x$enable_dependency_tracking" != xno; then
4422   am_depcomp="$ac_aux_dir/depcomp"
4423   AMDEPBACKSLASH='\'
4424 fi
4425  if test "x$enable_dependency_tracking" != xno; then
4426   AMDEP_TRUE=
4427   AMDEP_FALSE='#'
4428 else
4429   AMDEP_TRUE='#'
4430   AMDEP_FALSE=
4431 fi
4432
4433
4434
4435 depcc="$CC"   am_compiler_list=
4436
4437 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4438 $as_echo_n "checking dependency style of $depcc... " >&6; }
4439 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4440   $as_echo_n "(cached) " >&6
4441 else
4442   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4443   # We make a subdir and do the tests there.  Otherwise we can end up
4444   # making bogus files that we don't know about and never remove.  For
4445   # instance it was reported that on HP-UX the gcc test will end up
4446   # making a dummy file named `D' -- because `-MD' means `put the output
4447   # in D'.
4448   mkdir conftest.dir
4449   # Copy depcomp to subdir because otherwise we won't find it if we're
4450   # using a relative directory.
4451   cp "$am_depcomp" conftest.dir
4452   cd conftest.dir
4453   # We will build objects and dependencies in a subdirectory because
4454   # it helps to detect inapplicable dependency modes.  For instance
4455   # both Tru64's cc and ICC support -MD to output dependencies as a
4456   # side effect of compilation, but ICC will put the dependencies in
4457   # the current directory while Tru64 will put them in the object
4458   # directory.
4459   mkdir sub
4460
4461   am_cv_CC_dependencies_compiler_type=none
4462   if test "$am_compiler_list" = ""; then
4463      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4464   fi
4465   am__universal=false
4466   case " $depcc " in #(
4467      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4468      esac
4469
4470   for depmode in $am_compiler_list; do
4471     # Setup a source with many dependencies, because some compilers
4472     # like to wrap large dependency lists on column 80 (with \), and
4473     # we should not choose a depcomp mode which is confused by this.
4474     #
4475     # We need to recreate these files for each test, as the compiler may
4476     # overwrite some of them when testing with obscure command lines.
4477     # This happens at least with the AIX C compiler.
4478     : > sub/conftest.c
4479     for i in 1 2 3 4 5 6; do
4480       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4481       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4482       # Solaris 8's {/usr,}/bin/sh.
4483       touch sub/conftst$i.h
4484     done
4485     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4486
4487     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4488     # mode.  It turns out that the SunPro C++ compiler does not properly
4489     # handle `-M -o', and we need to detect this.  Also, some Intel
4490     # versions had trouble with output in subdirs
4491     am__obj=sub/conftest.${OBJEXT-o}
4492     am__minus_obj="-o $am__obj"
4493     case $depmode in
4494     gcc)
4495       # This depmode causes a compiler race in universal mode.
4496       test "$am__universal" = false || continue
4497       ;;
4498     nosideeffect)
4499       # after this tag, mechanisms are not by side-effect, so they'll
4500       # only be used when explicitly requested
4501       if test "x$enable_dependency_tracking" = xyes; then
4502         continue
4503       else
4504         break
4505       fi
4506       ;;
4507     msvisualcpp | msvcmsys)
4508       # This compiler won't grok `-c -o', but also, the minuso test has
4509       # not run yet.  These depmodes are late enough in the game, and
4510       # so weak that their functioning should not be impacted.
4511       am__obj=conftest.${OBJEXT-o}
4512       am__minus_obj=
4513       ;;
4514     none) break ;;
4515     esac
4516     if depmode=$depmode \
4517        source=sub/conftest.c object=$am__obj \
4518        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4519        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4520          >/dev/null 2>conftest.err &&
4521        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4522        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4523        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4524        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4525       # icc doesn't choke on unknown options, it will just issue warnings
4526       # or remarks (even with -Werror).  So we grep stderr for any message
4527       # that says an option was ignored or not supported.
4528       # When given -MP, icc 7.0 and 7.1 complain thusly:
4529       #   icc: Command line warning: ignoring option '-M'; no argument required
4530       # The diagnosis changed in icc 8.0:
4531       #   icc: Command line remark: option '-MP' not supported
4532       if (grep 'ignoring option' conftest.err ||
4533           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4534         am_cv_CC_dependencies_compiler_type=$depmode
4535         break
4536       fi
4537     fi
4538   done
4539
4540   cd ..
4541   rm -rf conftest.dir
4542 else
4543   am_cv_CC_dependencies_compiler_type=none
4544 fi
4545
4546 fi
4547 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4548 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4549 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4550
4551  if
4552   test "x$enable_dependency_tracking" != xno \
4553   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4554   am__fastdepCC_TRUE=
4555   am__fastdepCC_FALSE='#'
4556 else
4557   am__fastdepCC_TRUE='#'
4558   am__fastdepCC_FALSE=
4559 fi
4560
4561
4562 if test -n "$ac_tool_prefix"; then
4563   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4564 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4566 $as_echo_n "checking for $ac_word... " >&6; }
4567 if test "${ac_cv_prog_RANLIB+set}" = set; then
4568   $as_echo_n "(cached) " >&6
4569 else
4570   if test -n "$RANLIB"; then
4571   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4572 else
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH
4575 do
4576   IFS=$as_save_IFS
4577   test -z "$as_dir" && as_dir=.
4578   for ac_exec_ext in '' $ac_executable_extensions; do
4579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4580     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4581     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582     break 2
4583   fi
4584 done
4585 done
4586 IFS=$as_save_IFS
4587
4588 fi
4589 fi
4590 RANLIB=$ac_cv_prog_RANLIB
4591 if test -n "$RANLIB"; then
4592   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4593 $as_echo "$RANLIB" >&6; }
4594 else
4595   { $as_echo "$as_me:$LINENO: result: no" >&5
4596 $as_echo "no" >&6; }
4597 fi
4598
4599
4600 fi
4601 if test -z "$ac_cv_prog_RANLIB"; then
4602   ac_ct_RANLIB=$RANLIB
4603   # Extract the first word of "ranlib", so it can be a program name with args.
4604 set dummy ranlib; ac_word=$2
4605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4608   $as_echo_n "(cached) " >&6
4609 else
4610   if test -n "$ac_ct_RANLIB"; then
4611   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616   IFS=$as_save_IFS
4617   test -z "$as_dir" && as_dir=.
4618   for ac_exec_ext in '' $ac_executable_extensions; do
4619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620     ac_cv_prog_ac_ct_RANLIB="ranlib"
4621     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622     break 2
4623   fi
4624 done
4625 done
4626 IFS=$as_save_IFS
4627
4628 fi
4629 fi
4630 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4631 if test -n "$ac_ct_RANLIB"; then
4632   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4633 $as_echo "$ac_ct_RANLIB" >&6; }
4634 else
4635   { $as_echo "$as_me:$LINENO: result: no" >&5
4636 $as_echo "no" >&6; }
4637 fi
4638
4639   if test "x$ac_ct_RANLIB" = x; then
4640     RANLIB=":"
4641   else
4642     case $cross_compiling:$ac_tool_warned in
4643 yes:)
4644 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4646 ac_tool_warned=yes ;;
4647 esac
4648     RANLIB=$ac_ct_RANLIB
4649   fi
4650 else
4651   RANLIB="$ac_cv_prog_RANLIB"
4652 fi
4653
4654
4655 ac_ext=c
4656 ac_cpp='$CPP $CPPFLAGS'
4657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4660 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4661 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4662 # On Suns, sometimes $CPP names a directory.
4663 if test -n "$CPP" && test -d "$CPP"; then
4664   CPP=
4665 fi
4666 if test -z "$CPP"; then
4667   if test "${ac_cv_prog_CPP+set}" = set; then
4668   $as_echo_n "(cached) " >&6
4669 else
4670       # Double quotes because CPP needs to be expanded
4671     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4672     do
4673       ac_preproc_ok=false
4674 for ac_c_preproc_warn_flag in '' yes
4675 do
4676   # Use a header file that comes with gcc, so configuring glibc
4677   # with a fresh cross-compiler works.
4678   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4679   # <limits.h> exists even on freestanding compilers.
4680   # On the NeXT, cc -E runs the code through the compiler's parser,
4681   # not just through cpp. "Syntax error" is here to catch this case.
4682   cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h.  */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h.  */
4688 #ifdef __STDC__
4689 # include <limits.h>
4690 #else
4691 # include <assert.h>
4692 #endif
4693                      Syntax error
4694 _ACEOF
4695 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
4709          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4710          test ! -s conftest.err
4711        }; then
4712   :
4713 else
4714   $as_echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4716
4717   # Broken: fails on valid input.
4718 continue
4719 fi
4720
4721 rm -f conftest.err conftest.$ac_ext
4722
4723   # OK, works on sane cases.  Now check whether nonexistent headers
4724   # can be detected and how.
4725   cat >conftest.$ac_ext <<_ACEOF
4726 /* confdefs.h.  */
4727 _ACEOF
4728 cat confdefs.h >>conftest.$ac_ext
4729 cat >>conftest.$ac_ext <<_ACEOF
4730 /* end confdefs.h.  */
4731 #include <ac_nonexistent.h>
4732 _ACEOF
4733 if { (ac_try="$ac_cpp conftest.$ac_ext"
4734 case "(($ac_try" in
4735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736   *) ac_try_echo=$ac_try;;
4737 esac
4738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4739 $as_echo "$ac_try_echo") >&5
4740   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4741   ac_status=$?
4742   grep -v '^ *+' conftest.er1 >conftest.err
4743   rm -f conftest.er1
4744   cat conftest.err >&5
4745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746   (exit $ac_status); } >/dev/null && {
4747          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4748          test ! -s conftest.err
4749        }; then
4750   # Broken: success on invalid input.
4751 continue
4752 else
4753   $as_echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4755
4756   # Passes both tests.
4757 ac_preproc_ok=:
4758 break
4759 fi
4760
4761 rm -f conftest.err conftest.$ac_ext
4762
4763 done
4764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4765 rm -f conftest.err conftest.$ac_ext
4766 if $ac_preproc_ok; then
4767   break
4768 fi
4769
4770     done
4771     ac_cv_prog_CPP=$CPP
4772
4773 fi
4774   CPP=$ac_cv_prog_CPP
4775 else
4776   ac_cv_prog_CPP=$CPP
4777 fi
4778 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4779 $as_echo "$CPP" >&6; }
4780 ac_preproc_ok=false
4781 for ac_c_preproc_warn_flag in '' yes
4782 do
4783   # Use a header file that comes with gcc, so configuring glibc
4784   # with a fresh cross-compiler works.
4785   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4786   # <limits.h> exists even on freestanding compilers.
4787   # On the NeXT, cc -E runs the code through the compiler's parser,
4788   # not just through cpp. "Syntax error" is here to catch this case.
4789   cat >conftest.$ac_ext <<_ACEOF
4790 /* confdefs.h.  */
4791 _ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h.  */
4795 #ifdef __STDC__
4796 # include <limits.h>
4797 #else
4798 # include <assert.h>
4799 #endif
4800                      Syntax error
4801 _ACEOF
4802 if { (ac_try="$ac_cpp conftest.$ac_ext"
4803 case "(($ac_try" in
4804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805   *) ac_try_echo=$ac_try;;
4806 esac
4807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4808 $as_echo "$ac_try_echo") >&5
4809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4810   ac_status=$?
4811   grep -v '^ *+' conftest.er1 >conftest.err
4812   rm -f conftest.er1
4813   cat conftest.err >&5
4814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); } >/dev/null && {
4816          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4817          test ! -s conftest.err
4818        }; then
4819   :
4820 else
4821   $as_echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4823
4824   # Broken: fails on valid input.
4825 continue
4826 fi
4827
4828 rm -f conftest.err conftest.$ac_ext
4829
4830   # OK, works on sane cases.  Now check whether nonexistent headers
4831   # can be detected and how.
4832   cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h.  */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h.  */
4838 #include <ac_nonexistent.h>
4839 _ACEOF
4840 if { (ac_try="$ac_cpp conftest.$ac_ext"
4841 case "(($ac_try" in
4842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843   *) ac_try_echo=$ac_try;;
4844 esac
4845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4846 $as_echo "$ac_try_echo") >&5
4847   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4848   ac_status=$?
4849   grep -v '^ *+' conftest.er1 >conftest.err
4850   rm -f conftest.er1
4851   cat conftest.err >&5
4852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); } >/dev/null && {
4854          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4855          test ! -s conftest.err
4856        }; then
4857   # Broken: success on invalid input.
4858 continue
4859 else
4860   $as_echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4862
4863   # Passes both tests.
4864 ac_preproc_ok=:
4865 break
4866 fi
4867
4868 rm -f conftest.err conftest.$ac_ext
4869
4870 done
4871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4872 rm -f conftest.err conftest.$ac_ext
4873 if $ac_preproc_ok; then
4874   :
4875 else
4876   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4878 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4879 See \`config.log' for more details." >&5
4880 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4881 See \`config.log' for more details." >&2;}
4882    { (exit 1); exit 1; }; }; }
4883 fi
4884
4885 ac_ext=c
4886 ac_cpp='$CPP $CPPFLAGS'
4887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4890
4891
4892 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4893 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4894 if test "${ac_cv_path_GREP+set}" = set; then
4895   $as_echo_n "(cached) " >&6
4896 else
4897   if test -z "$GREP"; then
4898   ac_path_GREP_found=false
4899   # Loop through the user's path and test for each of PROGNAME-LIST
4900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905   for ac_prog in grep ggrep; do
4906     for ac_exec_ext in '' $ac_executable_extensions; do
4907       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4908       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4909 # Check for GNU ac_path_GREP and select it if it is found.
4910   # Check for GNU $ac_path_GREP
4911 case `"$ac_path_GREP" --version 2>&1` in
4912 *GNU*)
4913   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4914 *)
4915   ac_count=0
4916   $as_echo_n 0123456789 >"conftest.in"
4917   while :
4918   do
4919     cat "conftest.in" "conftest.in" >"conftest.tmp"
4920     mv "conftest.tmp" "conftest.in"
4921     cp "conftest.in" "conftest.nl"
4922     $as_echo 'GREP' >> "conftest.nl"
4923     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925     ac_count=`expr $ac_count + 1`
4926     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4927       # Best one so far, save it but keep looking for a better one
4928       ac_cv_path_GREP="$ac_path_GREP"
4929       ac_path_GREP_max=$ac_count
4930     fi
4931     # 10*(2^10) chars as input seems more than enough
4932     test $ac_count -gt 10 && break
4933   done
4934   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4935 esac
4936
4937       $ac_path_GREP_found && break 3
4938     done
4939   done
4940 done
4941 IFS=$as_save_IFS
4942   if test -z "$ac_cv_path_GREP"; then
4943     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4944 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4945    { (exit 1); exit 1; }; }
4946   fi
4947 else
4948   ac_cv_path_GREP=$GREP
4949 fi
4950
4951 fi
4952 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4953 $as_echo "$ac_cv_path_GREP" >&6; }
4954  GREP="$ac_cv_path_GREP"
4955
4956
4957 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4958 $as_echo_n "checking for egrep... " >&6; }
4959 if test "${ac_cv_path_EGREP+set}" = set; then
4960   $as_echo_n "(cached) " >&6
4961 else
4962   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4963    then ac_cv_path_EGREP="$GREP -E"
4964    else
4965      if test -z "$EGREP"; then
4966   ac_path_EGREP_found=false
4967   # Loop through the user's path and test for each of PROGNAME-LIST
4968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4970 do
4971   IFS=$as_save_IFS
4972   test -z "$as_dir" && as_dir=.
4973   for ac_prog in egrep; do
4974     for ac_exec_ext in '' $ac_executable_extensions; do
4975       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4976       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4977 # Check for GNU ac_path_EGREP and select it if it is found.
4978   # Check for GNU $ac_path_EGREP
4979 case `"$ac_path_EGREP" --version 2>&1` in
4980 *GNU*)
4981   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4982 *)
4983   ac_count=0
4984   $as_echo_n 0123456789 >"conftest.in"
4985   while :
4986   do
4987     cat "conftest.in" "conftest.in" >"conftest.tmp"
4988     mv "conftest.tmp" "conftest.in"
4989     cp "conftest.in" "conftest.nl"
4990     $as_echo 'EGREP' >> "conftest.nl"
4991     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4992     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4993     ac_count=`expr $ac_count + 1`
4994     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4995       # Best one so far, save it but keep looking for a better one
4996       ac_cv_path_EGREP="$ac_path_EGREP"
4997       ac_path_EGREP_max=$ac_count
4998     fi
4999     # 10*(2^10) chars as input seems more than enough
5000     test $ac_count -gt 10 && break
5001   done
5002   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5003 esac
5004
5005       $ac_path_EGREP_found && break 3
5006     done
5007   done
5008 done
5009 IFS=$as_save_IFS
5010   if test -z "$ac_cv_path_EGREP"; then
5011     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5012 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5013    { (exit 1); exit 1; }; }
5014   fi
5015 else
5016   ac_cv_path_EGREP=$EGREP
5017 fi
5018
5019    fi
5020 fi
5021 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5022 $as_echo "$ac_cv_path_EGREP" >&6; }
5023  EGREP="$ac_cv_path_EGREP"
5024
5025
5026 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5027 $as_echo_n "checking for ANSI C header files... " >&6; }
5028 if test "${ac_cv_header_stdc+set}" = set; then
5029   $as_echo_n "(cached) " >&6
5030 else
5031   cat >conftest.$ac_ext <<_ACEOF
5032 /* confdefs.h.  */
5033 _ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h.  */
5037 #include <stdlib.h>
5038 #include <stdarg.h>
5039 #include <string.h>
5040 #include <float.h>
5041
5042 int
5043 main ()
5044 {
5045
5046   ;
5047   return 0;
5048 }
5049 _ACEOF
5050 rm -f conftest.$ac_objext
5051 if { (ac_try="$ac_compile"
5052 case "(($ac_try" in
5053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054   *) ac_try_echo=$ac_try;;
5055 esac
5056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5057 $as_echo "$ac_try_echo") >&5
5058   (eval "$ac_compile") 2>conftest.er1
5059   ac_status=$?
5060   grep -v '^ *+' conftest.er1 >conftest.err
5061   rm -f conftest.er1
5062   cat conftest.err >&5
5063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); } && {
5065          test -z "$ac_c_werror_flag" ||
5066          test ! -s conftest.err
5067        } && test -s conftest.$ac_objext; then
5068   ac_cv_header_stdc=yes
5069 else
5070   $as_echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5072
5073         ac_cv_header_stdc=no
5074 fi
5075
5076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077
5078 if test $ac_cv_header_stdc = yes; then
5079   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5080   cat >conftest.$ac_ext <<_ACEOF
5081 /* confdefs.h.  */
5082 _ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h.  */
5086 #include <string.h>
5087
5088 _ACEOF
5089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5090   $EGREP "memchr" >/dev/null 2>&1; then
5091   :
5092 else
5093   ac_cv_header_stdc=no
5094 fi
5095 rm -f conftest*
5096
5097 fi
5098
5099 if test $ac_cv_header_stdc = yes; then
5100   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5101   cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h.  */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h.  */
5107 #include <stdlib.h>
5108
5109 _ACEOF
5110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5111   $EGREP "free" >/dev/null 2>&1; then
5112   :
5113 else
5114   ac_cv_header_stdc=no
5115 fi
5116 rm -f conftest*
5117
5118 fi
5119
5120 if test $ac_cv_header_stdc = yes; then
5121   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5122   if test "$cross_compiling" = yes; then
5123   :
5124 else
5125   cat >conftest.$ac_ext <<_ACEOF
5126 /* confdefs.h.  */
5127 _ACEOF
5128 cat confdefs.h >>conftest.$ac_ext
5129 cat >>conftest.$ac_ext <<_ACEOF
5130 /* end confdefs.h.  */
5131 #include <ctype.h>
5132 #include <stdlib.h>
5133 #if ((' ' & 0x0FF) == 0x020)
5134 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5135 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5136 #else
5137 # define ISLOWER(c) \
5138                    (('a' <= (c) && (c) <= 'i') \
5139                      || ('j' <= (c) && (c) <= 'r') \
5140                      || ('s' <= (c) && (c) <= 'z'))
5141 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5142 #endif
5143
5144 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5145 int
5146 main ()
5147 {
5148   int i;
5149   for (i = 0; i < 256; i++)
5150     if (XOR (islower (i), ISLOWER (i))
5151         || toupper (i) != TOUPPER (i))
5152       return 2;
5153   return 0;
5154 }
5155 _ACEOF
5156 rm -f conftest$ac_exeext
5157 if { (ac_try="$ac_link"
5158 case "(($ac_try" in
5159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160   *) ac_try_echo=$ac_try;;
5161 esac
5162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5163 $as_echo "$ac_try_echo") >&5
5164   (eval "$ac_link") 2>&5
5165   ac_status=$?
5166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5168   { (case "(($ac_try" in
5169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170   *) ac_try_echo=$ac_try;;
5171 esac
5172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5173 $as_echo "$ac_try_echo") >&5
5174   (eval "$ac_try") 2>&5
5175   ac_status=$?
5176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177   (exit $ac_status); }; }; then
5178   :
5179 else
5180   $as_echo "$as_me: program exited with status $ac_status" >&5
5181 $as_echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5183
5184 ( exit $ac_status )
5185 ac_cv_header_stdc=no
5186 fi
5187 rm -rf conftest.dSYM
5188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5189 fi
5190
5191
5192 fi
5193 fi
5194 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5195 $as_echo "$ac_cv_header_stdc" >&6; }
5196 if test $ac_cv_header_stdc = yes; then
5197
5198 cat >>confdefs.h <<\_ACEOF
5199 #define STDC_HEADERS 1
5200 _ACEOF
5201
5202 fi
5203
5204 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5215                   inttypes.h stdint.h unistd.h
5216 do
5217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5218 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5219 $as_echo_n "checking for $ac_header... " >&6; }
5220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5221   $as_echo_n "(cached) " >&6
5222 else
5223   cat >conftest.$ac_ext <<_ACEOF
5224 /* confdefs.h.  */
5225 _ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h.  */
5229 $ac_includes_default
5230
5231 #include <$ac_header>
5232 _ACEOF
5233 rm -f conftest.$ac_objext
5234 if { (ac_try="$ac_compile"
5235 case "(($ac_try" in
5236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5237   *) ac_try_echo=$ac_try;;
5238 esac
5239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5240 $as_echo "$ac_try_echo") >&5
5241   (eval "$ac_compile") 2>conftest.er1
5242   ac_status=$?
5243   grep -v '^ *+' conftest.er1 >conftest.err
5244   rm -f conftest.er1
5245   cat conftest.err >&5
5246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); } && {
5248          test -z "$ac_c_werror_flag" ||
5249          test ! -s conftest.err
5250        } && test -s conftest.$ac_objext; then
5251   eval "$as_ac_Header=yes"
5252 else
5253   $as_echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.$ac_ext >&5
5255
5256         eval "$as_ac_Header=no"
5257 fi
5258
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 fi
5261 ac_res=`eval 'as_val=${'$as_ac_Header'}
5262                  $as_echo "$as_val"'`
5263                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5264 $as_echo "$ac_res" >&6; }
5265 as_val=`eval 'as_val=${'$as_ac_Header'}
5266                  $as_echo "$as_val"'`
5267    if test "x$as_val" = x""yes; then
5268   cat >>confdefs.h <<_ACEOF
5269 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5270 _ACEOF
5271
5272 fi
5273
5274 done
5275
5276
5277
5278   if test "${ac_cv_header_minix_config_h+set}" = set; then
5279   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5280 $as_echo_n "checking for minix/config.h... " >&6; }
5281 if test "${ac_cv_header_minix_config_h+set}" = set; then
5282   $as_echo_n "(cached) " >&6
5283 fi
5284 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5285 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5286 else
5287   # Is the header compilable?
5288 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5289 $as_echo_n "checking minix/config.h usability... " >&6; }
5290 cat >conftest.$ac_ext <<_ACEOF
5291 /* confdefs.h.  */
5292 _ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h.  */
5296 $ac_includes_default
5297 #include <minix/config.h>
5298 _ACEOF
5299 rm -f conftest.$ac_objext
5300 if { (ac_try="$ac_compile"
5301 case "(($ac_try" in
5302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303   *) ac_try_echo=$ac_try;;
5304 esac
5305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5306 $as_echo "$ac_try_echo") >&5
5307   (eval "$ac_compile") 2>conftest.er1
5308   ac_status=$?
5309   grep -v '^ *+' conftest.er1 >conftest.err
5310   rm -f conftest.er1
5311   cat conftest.err >&5
5312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); } && {
5314          test -z "$ac_c_werror_flag" ||
5315          test ! -s conftest.err
5316        } && test -s conftest.$ac_objext; then
5317   ac_header_compiler=yes
5318 else
5319   $as_echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5321
5322         ac_header_compiler=no
5323 fi
5324
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5327 $as_echo "$ac_header_compiler" >&6; }
5328
5329 # Is the header present?
5330 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5331 $as_echo_n "checking minix/config.h presence... " >&6; }
5332 cat >conftest.$ac_ext <<_ACEOF
5333 /* confdefs.h.  */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h.  */
5338 #include <minix/config.h>
5339 _ACEOF
5340 if { (ac_try="$ac_cpp conftest.$ac_ext"
5341 case "(($ac_try" in
5342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343   *) ac_try_echo=$ac_try;;
5344 esac
5345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5346 $as_echo "$ac_try_echo") >&5
5347   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5348   ac_status=$?
5349   grep -v '^ *+' conftest.er1 >conftest.err
5350   rm -f conftest.er1
5351   cat conftest.err >&5
5352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); } >/dev/null && {
5354          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5355          test ! -s conftest.err
5356        }; then
5357   ac_header_preproc=yes
5358 else
5359   $as_echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5361
5362   ac_header_preproc=no
5363 fi
5364
5365 rm -f conftest.err conftest.$ac_ext
5366 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5367 $as_echo "$ac_header_preproc" >&6; }
5368
5369 # So?  What about this header?
5370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5371   yes:no: )
5372     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5373 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5374     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5375 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5376     ac_header_preproc=yes
5377     ;;
5378   no:yes:* )
5379     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5380 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5381     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
5382 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
5383     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5384 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5385     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
5386 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5387     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5388 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5389     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5390 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5391
5392     ;;
5393 esac
5394 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5395 $as_echo_n "checking for minix/config.h... " >&6; }
5396 if test "${ac_cv_header_minix_config_h+set}" = set; then
5397   $as_echo_n "(cached) " >&6
5398 else
5399   ac_cv_header_minix_config_h=$ac_header_preproc
5400 fi
5401 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5402 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5403
5404 fi
5405 if test "x$ac_cv_header_minix_config_h" = x""yes; then
5406   MINIX=yes
5407 else
5408   MINIX=
5409 fi
5410
5411
5412   if test "$MINIX" = yes; then
5413
5414 cat >>confdefs.h <<\_ACEOF
5415 #define _POSIX_SOURCE 1
5416 _ACEOF
5417
5418
5419 cat >>confdefs.h <<\_ACEOF
5420 #define _POSIX_1_SOURCE 2
5421 _ACEOF
5422
5423
5424 cat >>confdefs.h <<\_ACEOF
5425 #define _MINIX 1
5426 _ACEOF
5427
5428   fi
5429
5430
5431
5432   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5433 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5434 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5435   $as_echo_n "(cached) " >&6
5436 else
5437   cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h.  */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h.  */
5443
5444 #         define __EXTENSIONS__ 1
5445           $ac_includes_default
5446 int
5447 main ()
5448 {
5449
5450   ;
5451   return 0;
5452 }
5453 _ACEOF
5454 rm -f conftest.$ac_objext
5455 if { (ac_try="$ac_compile"
5456 case "(($ac_try" in
5457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458   *) ac_try_echo=$ac_try;;
5459 esac
5460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5461 $as_echo "$ac_try_echo") >&5
5462   (eval "$ac_compile") 2>conftest.er1
5463   ac_status=$?
5464   grep -v '^ *+' conftest.er1 >conftest.err
5465   rm -f conftest.er1
5466   cat conftest.err >&5
5467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); } && {
5469          test -z "$ac_c_werror_flag" ||
5470          test ! -s conftest.err
5471        } && test -s conftest.$ac_objext; then
5472   ac_cv_safe_to_define___extensions__=yes
5473 else
5474   $as_echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5476
5477         ac_cv_safe_to_define___extensions__=no
5478 fi
5479
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481 fi
5482 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5483 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5484   test $ac_cv_safe_to_define___extensions__ = yes &&
5485     cat >>confdefs.h <<\_ACEOF
5486 #define __EXTENSIONS__ 1
5487 _ACEOF
5488
5489   cat >>confdefs.h <<\_ACEOF
5490 #define _ALL_SOURCE 1
5491 _ACEOF
5492
5493   cat >>confdefs.h <<\_ACEOF
5494 #define _GNU_SOURCE 1
5495 _ACEOF
5496
5497   cat >>confdefs.h <<\_ACEOF
5498 #define _POSIX_PTHREAD_SEMANTICS 1
5499 _ACEOF
5500
5501   cat >>confdefs.h <<\_ACEOF
5502 #define _TANDEM_SOURCE 1
5503 _ACEOF
5504
5505
5506
5507
5508
5509
5510
5511     # Check whether --enable-threads was given.
5512 if test "${enable_threads+set}" = set; then
5513   enableval=$enable_threads; gl_use_threads=$enableval
5514 else
5515   case "$host_os" in
5516                             osf*) gl_use_threads=no ;;
5517        *)    gl_use_threads=yes ;;
5518      esac
5519
5520 fi
5521
5522   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5523     # For using <pthread.h>:
5524     case "$host_os" in
5525       osf*)
5526         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5527         # groks <pthread.h>. cc also understands the flag -pthread, but
5528         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5529         # 2. putting a flag into CPPFLAGS that has an effect on the linker
5530         # causes the AC_TRY_LINK test below to succeed unexpectedly,
5531         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5532         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5533         ;;
5534     esac
5535     # Some systems optimize for single-threaded programs by default, and
5536     # need special flags to disable these optimizations. For example, the
5537     # definition of 'errno' in <errno.h>.
5538     case "$host_os" in
5539       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5540       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5541     esac
5542   fi
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5554 # for constant arguments.  Useless!
5555 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
5556 $as_echo_n "checking for working alloca.h... " >&6; }
5557 if test "${ac_cv_working_alloca_h+set}" = set; then
5558   $as_echo_n "(cached) " >&6
5559 else
5560   cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h.  */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h.  */
5566 #include <alloca.h>
5567 int
5568 main ()
5569 {
5570 char *p = (char *) alloca (2 * sizeof (int));
5571                           if (p) return 0;
5572   ;
5573   return 0;
5574 }
5575 _ACEOF
5576 rm -f conftest.$ac_objext conftest$ac_exeext
5577 if { (ac_try="$ac_link"
5578 case "(($ac_try" in
5579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580   *) ac_try_echo=$ac_try;;
5581 esac
5582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5583 $as_echo "$ac_try_echo") >&5
5584   (eval "$ac_link") 2>conftest.er1
5585   ac_status=$?
5586   grep -v '^ *+' conftest.er1 >conftest.err
5587   rm -f conftest.er1
5588   cat conftest.err >&5
5589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590   (exit $ac_status); } && {
5591          test -z "$ac_c_werror_flag" ||
5592          test ! -s conftest.err
5593        } && test -s conftest$ac_exeext && {
5594          test "$cross_compiling" = yes ||
5595          $as_test_x conftest$ac_exeext
5596        }; then
5597   ac_cv_working_alloca_h=yes
5598 else
5599   $as_echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5601
5602         ac_cv_working_alloca_h=no
5603 fi
5604
5605 rm -rf conftest.dSYM
5606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5607       conftest$ac_exeext conftest.$ac_ext
5608 fi
5609 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5610 $as_echo "$ac_cv_working_alloca_h" >&6; }
5611 if test $ac_cv_working_alloca_h = yes; then
5612
5613 cat >>confdefs.h <<\_ACEOF
5614 #define HAVE_ALLOCA_H 1
5615 _ACEOF
5616
5617 fi
5618
5619 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
5620 $as_echo_n "checking for alloca... " >&6; }
5621 if test "${ac_cv_func_alloca_works+set}" = set; then
5622   $as_echo_n "(cached) " >&6
5623 else
5624   cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h.  */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h.  */
5630 #ifdef __GNUC__
5631 # define alloca __builtin_alloca
5632 #else
5633 # ifdef _MSC_VER
5634 #  include <malloc.h>
5635 #  define alloca _alloca
5636 # else
5637 #  ifdef HAVE_ALLOCA_H
5638 #   include <alloca.h>
5639 #  else
5640 #   ifdef _AIX
5641  #pragma alloca
5642 #   else
5643 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5644 char *alloca ();
5645 #    endif
5646 #   endif
5647 #  endif
5648 # endif
5649 #endif
5650
5651 int
5652 main ()
5653 {
5654 char *p = (char *) alloca (1);
5655                                     if (p) return 0;
5656   ;
5657   return 0;
5658 }
5659 _ACEOF
5660 rm -f conftest.$ac_objext conftest$ac_exeext
5661 if { (ac_try="$ac_link"
5662 case "(($ac_try" in
5663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664   *) ac_try_echo=$ac_try;;
5665 esac
5666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5667 $as_echo "$ac_try_echo") >&5
5668   (eval "$ac_link") 2>conftest.er1
5669   ac_status=$?
5670   grep -v '^ *+' conftest.er1 >conftest.err
5671   rm -f conftest.er1
5672   cat conftest.err >&5
5673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); } && {
5675          test -z "$ac_c_werror_flag" ||
5676          test ! -s conftest.err
5677        } && test -s conftest$ac_exeext && {
5678          test "$cross_compiling" = yes ||
5679          $as_test_x conftest$ac_exeext
5680        }; then
5681   ac_cv_func_alloca_works=yes
5682 else
5683   $as_echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5685
5686         ac_cv_func_alloca_works=no
5687 fi
5688
5689 rm -rf conftest.dSYM
5690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5691       conftest$ac_exeext conftest.$ac_ext
5692 fi
5693 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5694 $as_echo "$ac_cv_func_alloca_works" >&6; }
5695
5696 if test $ac_cv_func_alloca_works = yes; then
5697
5698 cat >>confdefs.h <<\_ACEOF
5699 #define HAVE_ALLOCA 1
5700 _ACEOF
5701
5702 else
5703   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5704 # that cause trouble.  Some versions do not even contain alloca or
5705 # contain a buggy version.  If you still want to use their alloca,
5706 # use ar to extract alloca.o from them instead of compiling alloca.c.
5707
5708
5709
5710
5711
5712 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5713
5714 cat >>confdefs.h <<\_ACEOF
5715 #define C_ALLOCA 1
5716 _ACEOF
5717
5718
5719 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5720 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5721 if test "${ac_cv_os_cray+set}" = set; then
5722   $as_echo_n "(cached) " >&6
5723 else
5724   cat >conftest.$ac_ext <<_ACEOF
5725 /* confdefs.h.  */
5726 _ACEOF
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h.  */
5730 #if defined CRAY && ! defined CRAY2
5731 webecray
5732 #else
5733 wenotbecray
5734 #endif
5735
5736 _ACEOF
5737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5738   $EGREP "webecray" >/dev/null 2>&1; then
5739   ac_cv_os_cray=yes
5740 else
5741   ac_cv_os_cray=no
5742 fi
5743 rm -f conftest*
5744
5745 fi
5746 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5747 $as_echo "$ac_cv_os_cray" >&6; }
5748 if test $ac_cv_os_cray = yes; then
5749   for ac_func in _getb67 GETB67 getb67; do
5750     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5751 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5752 $as_echo_n "checking for $ac_func... " >&6; }
5753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5754   $as_echo_n "(cached) " >&6
5755 else
5756   cat >conftest.$ac_ext <<_ACEOF
5757 /* confdefs.h.  */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h.  */
5762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5764 #define $ac_func innocuous_$ac_func
5765
5766 /* System header to define __stub macros and hopefully few prototypes,
5767     which can conflict with char $ac_func (); below.
5768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5769     <limits.h> exists even on freestanding compilers.  */
5770
5771 #ifdef __STDC__
5772 # include <limits.h>
5773 #else
5774 # include <assert.h>
5775 #endif
5776
5777 #undef $ac_func
5778
5779 /* Override any GCC internal prototype to avoid an error.
5780    Use char because int might match the return type of a GCC
5781    builtin and then its argument prototype would still apply.  */
5782 #ifdef __cplusplus
5783 extern "C"
5784 #endif
5785 char $ac_func ();
5786 /* The GNU C library defines this for functions which it implements
5787     to always fail with ENOSYS.  Some functions are actually named
5788     something starting with __ and the normal name is an alias.  */
5789 #if defined __stub_$ac_func || defined __stub___$ac_func
5790 choke me
5791 #endif
5792
5793 int
5794 main ()
5795 {
5796 return $ac_func ();
5797   ;
5798   return 0;
5799 }
5800 _ACEOF
5801 rm -f conftest.$ac_objext conftest$ac_exeext
5802 if { (ac_try="$ac_link"
5803 case "(($ac_try" in
5804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805   *) ac_try_echo=$ac_try;;
5806 esac
5807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5808 $as_echo "$ac_try_echo") >&5
5809   (eval "$ac_link") 2>conftest.er1
5810   ac_status=$?
5811   grep -v '^ *+' conftest.er1 >conftest.err
5812   rm -f conftest.er1
5813   cat conftest.err >&5
5814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); } && {
5816          test -z "$ac_c_werror_flag" ||
5817          test ! -s conftest.err
5818        } && test -s conftest$ac_exeext && {
5819          test "$cross_compiling" = yes ||
5820          $as_test_x conftest$ac_exeext
5821        }; then
5822   eval "$as_ac_var=yes"
5823 else
5824   $as_echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5826
5827         eval "$as_ac_var=no"
5828 fi
5829
5830 rm -rf conftest.dSYM
5831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5832       conftest$ac_exeext conftest.$ac_ext
5833 fi
5834 ac_res=`eval 'as_val=${'$as_ac_var'}
5835                  $as_echo "$as_val"'`
5836                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5837 $as_echo "$ac_res" >&6; }
5838 as_val=`eval 'as_val=${'$as_ac_var'}
5839                  $as_echo "$as_val"'`
5840    if test "x$as_val" = x""yes; then
5841
5842 cat >>confdefs.h <<_ACEOF
5843 #define CRAY_STACKSEG_END $ac_func
5844 _ACEOF
5845
5846     break
5847 fi
5848
5849   done
5850 fi
5851
5852 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5853 $as_echo_n "checking stack direction for C alloca... " >&6; }
5854 if test "${ac_cv_c_stack_direction+set}" = set; then
5855   $as_echo_n "(cached) " >&6
5856 else
5857   if test "$cross_compiling" = yes; then
5858   ac_cv_c_stack_direction=0
5859 else
5860   cat >conftest.$ac_ext <<_ACEOF
5861 /* confdefs.h.  */
5862 _ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h.  */
5866 $ac_includes_default
5867 int
5868 find_stack_direction ()
5869 {
5870   static char *addr = 0;
5871   auto char dummy;
5872   if (addr == 0)
5873     {
5874       addr = &dummy;
5875       return find_stack_direction ();
5876     }
5877   else
5878     return (&dummy > addr) ? 1 : -1;
5879 }
5880
5881 int
5882 main ()
5883 {
5884   return find_stack_direction () < 0;
5885 }
5886 _ACEOF
5887 rm -f conftest$ac_exeext
5888 if { (ac_try="$ac_link"
5889 case "(($ac_try" in
5890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891   *) ac_try_echo=$ac_try;;
5892 esac
5893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5894 $as_echo "$ac_try_echo") >&5
5895   (eval "$ac_link") 2>&5
5896   ac_status=$?
5897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5899   { (case "(($ac_try" in
5900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901   *) ac_try_echo=$ac_try;;
5902 esac
5903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5904 $as_echo "$ac_try_echo") >&5
5905   (eval "$ac_try") 2>&5
5906   ac_status=$?
5907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); }; }; then
5909   ac_cv_c_stack_direction=1
5910 else
5911   $as_echo "$as_me: program exited with status $ac_status" >&5
5912 $as_echo "$as_me: failed program was:" >&5
5913 sed 's/^/| /' conftest.$ac_ext >&5
5914
5915 ( exit $ac_status )
5916 ac_cv_c_stack_direction=-1
5917 fi
5918 rm -rf conftest.dSYM
5919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5920 fi
5921
5922
5923 fi
5924 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5925 $as_echo "$ac_cv_c_stack_direction" >&6; }
5926
5927 cat >>confdefs.h <<_ACEOF
5928 #define STACK_DIRECTION $ac_cv_c_stack_direction
5929 _ACEOF
5930
5931
5932 fi
5933
5934
5935
5936
5937
5938
5939 for ac_header in $gl_header_list
5940 do
5941 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5943   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5944 $as_echo_n "checking for $ac_header... " >&6; }
5945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5946   $as_echo_n "(cached) " >&6
5947 fi
5948 ac_res=`eval 'as_val=${'$as_ac_Header'}
5949                  $as_echo "$as_val"'`
5950                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5951 $as_echo "$ac_res" >&6; }
5952 else
5953   # Is the header compilable?
5954 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5955 $as_echo_n "checking $ac_header usability... " >&6; }
5956 cat >conftest.$ac_ext <<_ACEOF
5957 /* confdefs.h.  */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h.  */
5962 $ac_includes_default
5963 #include <$ac_header>
5964 _ACEOF
5965 rm -f conftest.$ac_objext
5966 if { (ac_try="$ac_compile"
5967 case "(($ac_try" in
5968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969   *) ac_try_echo=$ac_try;;
5970 esac
5971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5972 $as_echo "$ac_try_echo") >&5
5973   (eval "$ac_compile") 2>conftest.er1
5974   ac_status=$?
5975   grep -v '^ *+' conftest.er1 >conftest.err
5976   rm -f conftest.er1
5977   cat conftest.err >&5
5978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979   (exit $ac_status); } && {
5980          test -z "$ac_c_werror_flag" ||
5981          test ! -s conftest.err
5982        } && test -s conftest.$ac_objext; then
5983   ac_header_compiler=yes
5984 else
5985   $as_echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5987
5988         ac_header_compiler=no
5989 fi
5990
5991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5993 $as_echo "$ac_header_compiler" >&6; }
5994
5995 # Is the header present?
5996 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5997 $as_echo_n "checking $ac_header presence... " >&6; }
5998 cat >conftest.$ac_ext <<_ACEOF
5999 /* confdefs.h.  */
6000 _ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h.  */
6004 #include <$ac_header>
6005 _ACEOF
6006 if { (ac_try="$ac_cpp conftest.$ac_ext"
6007 case "(($ac_try" in
6008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009   *) ac_try_echo=$ac_try;;
6010 esac
6011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6012 $as_echo "$ac_try_echo") >&5
6013   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6014   ac_status=$?
6015   grep -v '^ *+' conftest.er1 >conftest.err
6016   rm -f conftest.er1
6017   cat conftest.err >&5
6018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); } >/dev/null && {
6020          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6021          test ! -s conftest.err
6022        }; then
6023   ac_header_preproc=yes
6024 else
6025   $as_echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6027
6028   ac_header_preproc=no
6029 fi
6030
6031 rm -f conftest.err conftest.$ac_ext
6032 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6033 $as_echo "$ac_header_preproc" >&6; }
6034
6035 # So?  What about this header?
6036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6037   yes:no: )
6038     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6039 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6040     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6041 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6042     ac_header_preproc=yes
6043     ;;
6044   no:yes:* )
6045     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6046 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6047     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6048 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6049     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6050 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6051     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6052 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6053     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6054 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6055     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6056 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6057
6058     ;;
6059 esac
6060 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6061 $as_echo_n "checking for $ac_header... " >&6; }
6062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6063   $as_echo_n "(cached) " >&6
6064 else
6065   eval "$as_ac_Header=\$ac_header_preproc"
6066 fi
6067 ac_res=`eval 'as_val=${'$as_ac_Header'}
6068                  $as_echo "$as_val"'`
6069                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6070 $as_echo "$ac_res" >&6; }
6071
6072 fi
6073 as_val=`eval 'as_val=${'$as_ac_Header'}
6074                  $as_echo "$as_val"'`
6075    if test "x$as_val" = x""yes; then
6076   cat >>confdefs.h <<_ACEOF
6077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6078 _ACEOF
6079
6080 fi
6081
6082 done
6083
6084
6085
6086
6087
6088
6089 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6090 $as_echo_n "checking for inline... " >&6; }
6091 if test "${ac_cv_c_inline+set}" = set; then
6092   $as_echo_n "(cached) " >&6
6093 else
6094   ac_cv_c_inline=no
6095 for ac_kw in inline __inline__ __inline; do
6096   cat >conftest.$ac_ext <<_ACEOF
6097 /* confdefs.h.  */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h.  */
6102 #ifndef __cplusplus
6103 typedef int foo_t;
6104 static $ac_kw foo_t static_foo () {return 0; }
6105 $ac_kw foo_t foo () {return 0; }
6106 #endif
6107
6108 _ACEOF
6109 rm -f conftest.$ac_objext
6110 if { (ac_try="$ac_compile"
6111 case "(($ac_try" in
6112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113   *) ac_try_echo=$ac_try;;
6114 esac
6115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6116 $as_echo "$ac_try_echo") >&5
6117   (eval "$ac_compile") 2>conftest.er1
6118   ac_status=$?
6119   grep -v '^ *+' conftest.er1 >conftest.err
6120   rm -f conftest.er1
6121   cat conftest.err >&5
6122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); } && {
6124          test -z "$ac_c_werror_flag" ||
6125          test ! -s conftest.err
6126        } && test -s conftest.$ac_objext; then
6127   ac_cv_c_inline=$ac_kw
6128 else
6129   $as_echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6131
6132
6133 fi
6134
6135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6136   test "$ac_cv_c_inline" != no && break
6137 done
6138
6139 fi
6140 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6141 $as_echo "$ac_cv_c_inline" >&6; }
6142
6143
6144 case $ac_cv_c_inline in
6145   inline | yes) ;;
6146   *)
6147     case $ac_cv_c_inline in
6148       no) ac_val=;;
6149       *) ac_val=$ac_cv_c_inline;;
6150     esac
6151     cat >>confdefs.h <<_ACEOF
6152 #ifndef __cplusplus
6153 #define inline $ac_val
6154 #endif
6155 _ACEOF
6156     ;;
6157 esac
6158
6159 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
6160 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6161 if test "${ac_cv_c_restrict+set}" = set; then
6162   $as_echo_n "(cached) " >&6
6163 else
6164   ac_cv_c_restrict=no
6165    # The order here caters to the fact that C++ does not require restrict.
6166    for ac_kw in __restrict __restrict__ _Restrict restrict; do
6167      cat >conftest.$ac_ext <<_ACEOF
6168 /* confdefs.h.  */
6169 _ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h.  */
6173 typedef int * int_ptr;
6174         int foo (int_ptr $ac_kw ip) {
6175         return ip[0];
6176        }
6177 int
6178 main ()
6179 {
6180 int s[1];
6181         int * $ac_kw t = s;
6182         t[0] = 0;
6183         return foo(t)
6184   ;
6185   return 0;
6186 }
6187 _ACEOF
6188 rm -f conftest.$ac_objext
6189 if { (ac_try="$ac_compile"
6190 case "(($ac_try" in
6191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192   *) ac_try_echo=$ac_try;;
6193 esac
6194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6195 $as_echo "$ac_try_echo") >&5
6196   (eval "$ac_compile") 2>conftest.er1
6197   ac_status=$?
6198   grep -v '^ *+' conftest.er1 >conftest.err
6199   rm -f conftest.er1
6200   cat conftest.err >&5
6201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202   (exit $ac_status); } && {
6203          test -z "$ac_c_werror_flag" ||
6204          test ! -s conftest.err
6205        } && test -s conftest.$ac_objext; then
6206   ac_cv_c_restrict=$ac_kw
6207 else
6208   $as_echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6210
6211
6212 fi
6213
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215      test "$ac_cv_c_restrict" != no && break
6216    done
6217
6218 fi
6219 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
6220 $as_echo "$ac_cv_c_restrict" >&6; }
6221
6222
6223  case $ac_cv_c_restrict in
6224    restrict) ;;
6225    no) cat >>confdefs.h <<\_ACEOF
6226 #define restrict /**/
6227 _ACEOF
6228  ;;
6229    *)  cat >>confdefs.h <<_ACEOF
6230 #define restrict $ac_cv_c_restrict
6231 _ACEOF
6232  ;;
6233  esac
6234
6235
6236
6237   { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
6238 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6239 if test "${gl_cv_have_include_next+set}" = set; then
6240   $as_echo_n "(cached) " >&6
6241 else
6242   rm -rf conftestd1 conftestd2
6243      mkdir conftestd1 conftestd2
6244      cat <<EOF > conftestd1/conftest.h
6245 #define DEFINED_IN_CONFTESTD1
6246 #include_next <conftest.h>
6247 #ifdef DEFINED_IN_CONFTESTD2
6248 int foo;
6249 #else
6250 #error "include_next doesn't work"
6251 #endif
6252 EOF
6253      cat <<EOF > conftestd2/conftest.h
6254 #ifndef DEFINED_IN_CONFTESTD1
6255 #error "include_next test doesn't work"
6256 #endif
6257 #define DEFINED_IN_CONFTESTD2
6258 EOF
6259      save_CPPFLAGS="$CPPFLAGS"
6260      CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
6261      cat >conftest.$ac_ext <<_ACEOF
6262 #include <conftest.h>
6263 _ACEOF
6264 rm -f conftest.$ac_objext
6265 if { (ac_try="$ac_compile"
6266 case "(($ac_try" in
6267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268   *) ac_try_echo=$ac_try;;
6269 esac
6270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6271 $as_echo "$ac_try_echo") >&5
6272   (eval "$ac_compile") 2>conftest.er1
6273   ac_status=$?
6274   grep -v '^ *+' conftest.er1 >conftest.err
6275   rm -f conftest.er1
6276   cat conftest.err >&5
6277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278   (exit $ac_status); } && {
6279          test -z "$ac_c_werror_flag" ||
6280          test ! -s conftest.err
6281        } && test -s conftest.$ac_objext; then
6282   gl_cv_have_include_next=yes
6283 else
6284   $as_echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.$ac_ext >&5
6286
6287         gl_cv_have_include_next=no
6288 fi
6289
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291      CPPFLAGS="$save_CPPFLAGS"
6292      rm -rf conftestd1 conftestd2
6293
6294 fi
6295 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
6296 $as_echo "$gl_cv_have_include_next" >&6; }
6297   if test $gl_cv_have_include_next = yes; then
6298
6299
6300 cat >>confdefs.h <<\_ACEOF
6301 #define HAVE_INCLUDE_NEXT 1
6302 _ACEOF
6303
6304
6305     INCLUDE_NEXT=include_next
6306   else
6307     INCLUDE_NEXT=include
6308   fi
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342   { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
6343 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
6344 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
6345   $as_echo_n "(cached) " >&6
6346 else
6347
6348       cat >conftest.$ac_ext <<_ACEOF
6349 /* confdefs.h.  */
6350 _ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h.  */
6354 #include <sys/socket.h>
6355 int
6356 main ()
6357 {
6358
6359   ;
6360   return 0;
6361 }
6362 _ACEOF
6363 rm -f conftest.$ac_objext
6364 if { (ac_try="$ac_compile"
6365 case "(($ac_try" in
6366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367   *) ac_try_echo=$ac_try;;
6368 esac
6369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6370 $as_echo "$ac_try_echo") >&5
6371   (eval "$ac_compile") 2>conftest.er1
6372   ac_status=$?
6373   grep -v '^ *+' conftest.er1 >conftest.err
6374   rm -f conftest.er1
6375   cat conftest.err >&5
6376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); } && {
6378          test -z "$ac_c_werror_flag" ||
6379          test ! -s conftest.err
6380        } && test -s conftest.$ac_objext; then
6381   gl_cv_header_sys_socket_h_selfcontained=yes
6382 else
6383   $as_echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386         gl_cv_header_sys_socket_h_selfcontained=no
6387 fi
6388
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390
6391 fi
6392 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
6393 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
6394   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
6395     SYS_SOCKET_H=''
6396   else
6397     SYS_SOCKET_H='sys/socket.h'
6398
6399
6400
6401
6402   :
6403
6404
6405
6406
6407
6408
6409
6410      if test $gl_cv_have_include_next = yes; then
6411        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
6412      else
6413        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
6414 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
6415 if test "${gl_cv_next_sys_socket_h+set}" = set; then
6416   $as_echo_n "(cached) " >&6
6417 else
6418
6419           if test $ac_cv_header_sys_socket_h = yes; then
6420             cat >conftest.$ac_ext <<_ACEOF
6421 /* confdefs.h.  */
6422 _ACEOF
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h.  */
6426 #include <sys/socket.h>
6427
6428 _ACEOF
6429                                     gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6430                sed -n '\#/sys/socket.h#{
6431                  s#.*"\(.*/sys/socket.h\)".*#\1#
6432                  s#^/[^/]#//&#
6433                  p
6434                  q
6435                }'`'"'
6436           else
6437             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
6438           fi
6439
6440 fi
6441 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
6442 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
6443      fi
6444      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
6445
6446
6447
6448     if test $ac_cv_header_sys_socket_h = yes; then
6449       HAVE_SYS_SOCKET_H=1
6450       HAVE_WINSOCK2_H=0
6451       HAVE_WS2TCPIP_H=0
6452     else
6453       HAVE_SYS_SOCKET_H=0
6454
6455
6456 for ac_header in winsock2.h ws2tcpip.h
6457 do
6458 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6460   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6461 $as_echo_n "checking for $ac_header... " >&6; }
6462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6463   $as_echo_n "(cached) " >&6
6464 fi
6465 ac_res=`eval 'as_val=${'$as_ac_Header'}
6466                  $as_echo "$as_val"'`
6467                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6468 $as_echo "$ac_res" >&6; }
6469 else
6470   # Is the header compilable?
6471 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6472 $as_echo_n "checking $ac_header usability... " >&6; }
6473 cat >conftest.$ac_ext <<_ACEOF
6474 /* confdefs.h.  */
6475 _ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h.  */
6479 $ac_includes_default
6480 #include <$ac_header>
6481 _ACEOF
6482 rm -f conftest.$ac_objext
6483 if { (ac_try="$ac_compile"
6484 case "(($ac_try" in
6485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486   *) ac_try_echo=$ac_try;;
6487 esac
6488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6489 $as_echo "$ac_try_echo") >&5
6490   (eval "$ac_compile") 2>conftest.er1
6491   ac_status=$?
6492   grep -v '^ *+' conftest.er1 >conftest.err
6493   rm -f conftest.er1
6494   cat conftest.err >&5
6495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); } && {
6497          test -z "$ac_c_werror_flag" ||
6498          test ! -s conftest.err
6499        } && test -s conftest.$ac_objext; then
6500   ac_header_compiler=yes
6501 else
6502   $as_echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6504
6505         ac_header_compiler=no
6506 fi
6507
6508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6510 $as_echo "$ac_header_compiler" >&6; }
6511
6512 # Is the header present?
6513 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6514 $as_echo_n "checking $ac_header presence... " >&6; }
6515 cat >conftest.$ac_ext <<_ACEOF
6516 /* confdefs.h.  */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h.  */
6521 #include <$ac_header>
6522 _ACEOF
6523 if { (ac_try="$ac_cpp conftest.$ac_ext"
6524 case "(($ac_try" in
6525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526   *) ac_try_echo=$ac_try;;
6527 esac
6528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6529 $as_echo "$ac_try_echo") >&5
6530   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6531   ac_status=$?
6532   grep -v '^ *+' conftest.er1 >conftest.err
6533   rm -f conftest.er1
6534   cat conftest.err >&5
6535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536   (exit $ac_status); } >/dev/null && {
6537          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6538          test ! -s conftest.err
6539        }; then
6540   ac_header_preproc=yes
6541 else
6542   $as_echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6544
6545   ac_header_preproc=no
6546 fi
6547
6548 rm -f conftest.err conftest.$ac_ext
6549 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6550 $as_echo "$ac_header_preproc" >&6; }
6551
6552 # So?  What about this header?
6553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6554   yes:no: )
6555     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6556 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6557     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6558 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6559     ac_header_preproc=yes
6560     ;;
6561   no:yes:* )
6562     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6563 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6564     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6565 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6566     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6567 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6568     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6569 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6570     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6571 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6572     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6573 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6574
6575     ;;
6576 esac
6577 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6578 $as_echo_n "checking for $ac_header... " >&6; }
6579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6580   $as_echo_n "(cached) " >&6
6581 else
6582   eval "$as_ac_Header=\$ac_header_preproc"
6583 fi
6584 ac_res=`eval 'as_val=${'$as_ac_Header'}
6585                  $as_echo "$as_val"'`
6586                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6587 $as_echo "$ac_res" >&6; }
6588
6589 fi
6590 as_val=`eval 'as_val=${'$as_ac_Header'}
6591                  $as_echo "$as_val"'`
6592    if test "x$as_val" = x""yes; then
6593   cat >>confdefs.h <<_ACEOF
6594 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6595 _ACEOF
6596
6597 fi
6598
6599 done
6600
6601       if test $ac_cv_header_winsock2_h = yes; then
6602         HAVE_WINSOCK2_H=1
6603       else
6604         HAVE_WINSOCK2_H=0
6605       fi
6606       if test $ac_cv_header_ws2tcpip_h = yes; then
6607         HAVE_WS2TCPIP_H=1
6608       else
6609         HAVE_WS2TCPIP_H=0
6610       fi
6611     fi
6612
6613
6614
6615   fi
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633   :
6634
6635
6636
6637
6638
6639
6640   { $as_echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
6641 $as_echo_n "checking for IPv4 sockets... " >&6; }
6642   if test "${gl_cv_socket_ipv4+set}" = set; then
6643   $as_echo_n "(cached) " >&6
6644 else
6645   cat >conftest.$ac_ext <<_ACEOF
6646 /* confdefs.h.  */
6647 _ACEOF
6648 cat confdefs.h >>conftest.$ac_ext
6649 cat >>conftest.$ac_ext <<_ACEOF
6650 /* end confdefs.h.  */
6651 #include <sys/types.h>
6652 #ifdef HAVE_SYS_SOCKET_H
6653 #include <sys/socket.h>
6654 #endif
6655 #ifdef HAVE_NETINET_IN_H
6656 #include <netinet/in.h>
6657 #endif
6658 #ifdef HAVE_WINSOCK2_H
6659 #include <winsock2.h>
6660 #endif
6661 int
6662 main ()
6663 {
6664 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
6665  if (&x && &y && &z) return 0;
6666   ;
6667   return 0;
6668 }
6669 _ACEOF
6670 rm -f conftest.$ac_objext
6671 if { (ac_try="$ac_compile"
6672 case "(($ac_try" in
6673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6674   *) ac_try_echo=$ac_try;;
6675 esac
6676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6677 $as_echo "$ac_try_echo") >&5
6678   (eval "$ac_compile") 2>conftest.er1
6679   ac_status=$?
6680   grep -v '^ *+' conftest.er1 >conftest.err
6681   rm -f conftest.er1
6682   cat conftest.err >&5
6683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684   (exit $ac_status); } && {
6685          test -z "$ac_c_werror_flag" ||
6686          test ! -s conftest.err
6687        } && test -s conftest.$ac_objext; then
6688   gl_cv_socket_ipv4=yes
6689 else
6690   $as_echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6692
6693         gl_cv_socket_ipv4=no
6694 fi
6695
6696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697 fi
6698
6699   { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
6700 $as_echo "$gl_cv_socket_ipv4" >&6; }
6701   if test $gl_cv_socket_ipv4 = yes; then
6702
6703 cat >>confdefs.h <<\_ACEOF
6704 #define HAVE_IPV4 1
6705 _ACEOF
6706
6707   fi
6708
6709   { $as_echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
6710 $as_echo_n "checking for IPv6 sockets... " >&6; }
6711   if test "${gl_cv_socket_ipv6+set}" = set; then
6712   $as_echo_n "(cached) " >&6
6713 else
6714   cat >conftest.$ac_ext <<_ACEOF
6715 /* confdefs.h.  */
6716 _ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h.  */
6720 #include <sys/types.h>
6721 #ifdef HAVE_SYS_SOCKET_H
6722 #include <sys/socket.h>
6723 #endif
6724 #ifdef HAVE_NETINET_IN_H
6725 #include <netinet/in.h>
6726 #endif
6727 #ifdef HAVE_WINSOCK2_H
6728 #include <winsock2.h>
6729 #endif
6730 int
6731 main ()
6732 {
6733 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
6734  if (&x && &y && &z) return 0;
6735   ;
6736   return 0;
6737 }
6738 _ACEOF
6739 rm -f conftest.$ac_objext
6740 if { (ac_try="$ac_compile"
6741 case "(($ac_try" in
6742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6743   *) ac_try_echo=$ac_try;;
6744 esac
6745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6746 $as_echo "$ac_try_echo") >&5
6747   (eval "$ac_compile") 2>conftest.er1
6748   ac_status=$?
6749   grep -v '^ *+' conftest.er1 >conftest.err
6750   rm -f conftest.er1
6751   cat conftest.err >&5
6752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753   (exit $ac_status); } && {
6754          test -z "$ac_c_werror_flag" ||
6755          test ! -s conftest.err
6756        } && test -s conftest.$ac_objext; then
6757   gl_cv_socket_ipv6=yes
6758 else
6759   $as_echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6761
6762         gl_cv_socket_ipv6=no
6763 fi
6764
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766 fi
6767
6768   { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
6769 $as_echo "$gl_cv_socket_ipv6" >&6; }
6770   if test $gl_cv_socket_ipv6 = yes; then
6771
6772 cat >>confdefs.h <<\_ACEOF
6773 #define HAVE_IPV6 1
6774 _ACEOF
6775
6776   fi
6777
6778
6779   if test -z "$GETOPT_H"; then
6780
6781 for ac_header in getopt.h
6782 do
6783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6785   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6786 $as_echo_n "checking for $ac_header... " >&6; }
6787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6788   $as_echo_n "(cached) " >&6
6789 fi
6790 ac_res=`eval 'as_val=${'$as_ac_Header'}
6791                  $as_echo "$as_val"'`
6792                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6793 $as_echo "$ac_res" >&6; }
6794 else
6795   # Is the header compilable?
6796 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6797 $as_echo_n "checking $ac_header usability... " >&6; }
6798 cat >conftest.$ac_ext <<_ACEOF
6799 /* confdefs.h.  */
6800 _ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h.  */
6804 $ac_includes_default
6805 #include <$ac_header>
6806 _ACEOF
6807 rm -f conftest.$ac_objext
6808 if { (ac_try="$ac_compile"
6809 case "(($ac_try" in
6810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6811   *) ac_try_echo=$ac_try;;
6812 esac
6813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6814 $as_echo "$ac_try_echo") >&5
6815   (eval "$ac_compile") 2>conftest.er1
6816   ac_status=$?
6817   grep -v '^ *+' conftest.er1 >conftest.err
6818   rm -f conftest.er1
6819   cat conftest.err >&5
6820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); } && {
6822          test -z "$ac_c_werror_flag" ||
6823          test ! -s conftest.err
6824        } && test -s conftest.$ac_objext; then
6825   ac_header_compiler=yes
6826 else
6827   $as_echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6829
6830         ac_header_compiler=no
6831 fi
6832
6833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6834 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6835 $as_echo "$ac_header_compiler" >&6; }
6836
6837 # Is the header present?
6838 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6839 $as_echo_n "checking $ac_header presence... " >&6; }
6840 cat >conftest.$ac_ext <<_ACEOF
6841 /* confdefs.h.  */
6842 _ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h.  */
6846 #include <$ac_header>
6847 _ACEOF
6848 if { (ac_try="$ac_cpp conftest.$ac_ext"
6849 case "(($ac_try" in
6850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6851   *) ac_try_echo=$ac_try;;
6852 esac
6853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6854 $as_echo "$ac_try_echo") >&5
6855   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6856   ac_status=$?
6857   grep -v '^ *+' conftest.er1 >conftest.err
6858   rm -f conftest.er1
6859   cat conftest.err >&5
6860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861   (exit $ac_status); } >/dev/null && {
6862          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6863          test ! -s conftest.err
6864        }; then
6865   ac_header_preproc=yes
6866 else
6867   $as_echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6869
6870   ac_header_preproc=no
6871 fi
6872
6873 rm -f conftest.err conftest.$ac_ext
6874 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6875 $as_echo "$ac_header_preproc" >&6; }
6876
6877 # So?  What about this header?
6878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6879   yes:no: )
6880     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6881 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6882     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6883 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6884     ac_header_preproc=yes
6885     ;;
6886   no:yes:* )
6887     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6888 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6889     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6890 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6891     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6892 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6893     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6894 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6895     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6896 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6897     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6898 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6899
6900     ;;
6901 esac
6902 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6903 $as_echo_n "checking for $ac_header... " >&6; }
6904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6905   $as_echo_n "(cached) " >&6
6906 else
6907   eval "$as_ac_Header=\$ac_header_preproc"
6908 fi
6909 ac_res=`eval 'as_val=${'$as_ac_Header'}
6910                  $as_echo "$as_val"'`
6911                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6912 $as_echo "$ac_res" >&6; }
6913
6914 fi
6915 as_val=`eval 'as_val=${'$as_ac_Header'}
6916                  $as_echo "$as_val"'`
6917    if test "x$as_val" = x""yes; then
6918   cat >>confdefs.h <<_ACEOF
6919 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6920 _ACEOF
6921
6922 else
6923   GETOPT_H=getopt.h
6924 fi
6925
6926 done
6927
6928   fi
6929
6930   if test -z "$GETOPT_H"; then
6931
6932 for ac_func in getopt_long_only
6933 do
6934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6935 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6936 $as_echo_n "checking for $ac_func... " >&6; }
6937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6938   $as_echo_n "(cached) " >&6
6939 else
6940   cat >conftest.$ac_ext <<_ACEOF
6941 /* confdefs.h.  */
6942 _ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h.  */
6946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6948 #define $ac_func innocuous_$ac_func
6949
6950 /* System header to define __stub macros and hopefully few prototypes,
6951     which can conflict with char $ac_func (); below.
6952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6953     <limits.h> exists even on freestanding compilers.  */
6954
6955 #ifdef __STDC__
6956 # include <limits.h>
6957 #else
6958 # include <assert.h>
6959 #endif
6960
6961 #undef $ac_func
6962
6963 /* Override any GCC internal prototype to avoid an error.
6964    Use char because int might match the return type of a GCC
6965    builtin and then its argument prototype would still apply.  */
6966 #ifdef __cplusplus
6967 extern "C"
6968 #endif
6969 char $ac_func ();
6970 /* The GNU C library defines this for functions which it implements
6971     to always fail with ENOSYS.  Some functions are actually named
6972     something starting with __ and the normal name is an alias.  */
6973 #if defined __stub_$ac_func || defined __stub___$ac_func
6974 choke me
6975 #endif
6976
6977 int
6978 main ()
6979 {
6980 return $ac_func ();
6981   ;
6982   return 0;
6983 }
6984 _ACEOF
6985 rm -f conftest.$ac_objext conftest$ac_exeext
6986 if { (ac_try="$ac_link"
6987 case "(($ac_try" in
6988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6989   *) ac_try_echo=$ac_try;;
6990 esac
6991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6992 $as_echo "$ac_try_echo") >&5
6993   (eval "$ac_link") 2>conftest.er1
6994   ac_status=$?
6995   grep -v '^ *+' conftest.er1 >conftest.err
6996   rm -f conftest.er1
6997   cat conftest.err >&5
6998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999   (exit $ac_status); } && {
7000          test -z "$ac_c_werror_flag" ||
7001          test ! -s conftest.err
7002        } && test -s conftest$ac_exeext && {
7003          test "$cross_compiling" = yes ||
7004          $as_test_x conftest$ac_exeext
7005        }; then
7006   eval "$as_ac_var=yes"
7007 else
7008   $as_echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7010
7011         eval "$as_ac_var=no"
7012 fi
7013
7014 rm -rf conftest.dSYM
7015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7016       conftest$ac_exeext conftest.$ac_ext
7017 fi
7018 ac_res=`eval 'as_val=${'$as_ac_var'}
7019                  $as_echo "$as_val"'`
7020                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7021 $as_echo "$ac_res" >&6; }
7022 as_val=`eval 'as_val=${'$as_ac_var'}
7023                  $as_echo "$as_val"'`
7024    if test "x$as_val" = x""yes; then
7025   cat >>confdefs.h <<_ACEOF
7026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7027 _ACEOF
7028
7029 else
7030   GETOPT_H=getopt.h
7031 fi
7032 done
7033
7034   fi
7035
7036       if test -z "$GETOPT_H"; then
7037     { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
7038 $as_echo_n "checking whether optreset is declared... " >&6; }
7039 if test "${ac_cv_have_decl_optreset+set}" = set; then
7040   $as_echo_n "(cached) " >&6
7041 else
7042   cat >conftest.$ac_ext <<_ACEOF
7043 /* confdefs.h.  */
7044 _ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h.  */
7048 #include <getopt.h>
7049
7050 int
7051 main ()
7052 {
7053 #ifndef optreset
7054   (void) optreset;
7055 #endif
7056
7057   ;
7058   return 0;
7059 }
7060 _ACEOF
7061 rm -f conftest.$ac_objext
7062 if { (ac_try="$ac_compile"
7063 case "(($ac_try" in
7064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7065   *) ac_try_echo=$ac_try;;
7066 esac
7067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7068 $as_echo "$ac_try_echo") >&5
7069   (eval "$ac_compile") 2>conftest.er1
7070   ac_status=$?
7071   grep -v '^ *+' conftest.er1 >conftest.err
7072   rm -f conftest.er1
7073   cat conftest.err >&5
7074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); } && {
7076          test -z "$ac_c_werror_flag" ||
7077          test ! -s conftest.err
7078        } && test -s conftest.$ac_objext; then
7079   ac_cv_have_decl_optreset=yes
7080 else
7081   $as_echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7083
7084         ac_cv_have_decl_optreset=no
7085 fi
7086
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7088 fi
7089 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
7090 $as_echo "$ac_cv_have_decl_optreset" >&6; }
7091 if test "x$ac_cv_have_decl_optreset" = x""yes; then
7092   GETOPT_H=getopt.h
7093 fi
7094
7095   fi
7096
7097       if test -z "$GETOPT_H"; then
7098     { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
7099 $as_echo_n "checking for working GNU getopt function... " >&6; }
7100 if test "${gl_cv_func_gnu_getopt+set}" = set; then
7101   $as_echo_n "(cached) " >&6
7102 else
7103   if test "$cross_compiling" = yes; then
7104                          { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
7105 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
7106 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
7107   $as_echo_n "(cached) " >&6
7108 else
7109   cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h.  */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h.  */
7115 #include <getopt.h>
7116
7117 int
7118 main ()
7119 {
7120 #ifndef getopt_clip
7121   (void) getopt_clip;
7122 #endif
7123
7124   ;
7125   return 0;
7126 }
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (ac_try="$ac_compile"
7130 case "(($ac_try" in
7131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132   *) ac_try_echo=$ac_try;;
7133 esac
7134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7135 $as_echo "$ac_try_echo") >&5
7136   (eval "$ac_compile") 2>conftest.er1
7137   ac_status=$?
7138   grep -v '^ *+' conftest.er1 >conftest.err
7139   rm -f conftest.er1
7140   cat conftest.err >&5
7141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142   (exit $ac_status); } && {
7143          test -z "$ac_c_werror_flag" ||
7144          test ! -s conftest.err
7145        } && test -s conftest.$ac_objext; then
7146   ac_cv_have_decl_getopt_clip=yes
7147 else
7148   $as_echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7150
7151         ac_cv_have_decl_getopt_clip=no
7152 fi
7153
7154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7155 fi
7156 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
7157 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
7158 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
7159   gl_cv_func_gnu_getopt=no
7160 else
7161   gl_cv_func_gnu_getopt=yes
7162 fi
7163
7164 else
7165   cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h.  */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h.  */
7171 #include <getopt.h>
7172 int
7173 main ()
7174 {
7175
7176              char *myargv[3];
7177              myargv[0] = "conftest";
7178              myargv[1] = "-+";
7179              myargv[2] = 0;
7180              return getopt (2, myargv, "+a") != '?';
7181
7182   ;
7183   return 0;
7184 }
7185 _ACEOF
7186 rm -f conftest$ac_exeext
7187 if { (ac_try="$ac_link"
7188 case "(($ac_try" in
7189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190   *) ac_try_echo=$ac_try;;
7191 esac
7192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7193 $as_echo "$ac_try_echo") >&5
7194   (eval "$ac_link") 2>&5
7195   ac_status=$?
7196   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7198   { (case "(($ac_try" in
7199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200   *) ac_try_echo=$ac_try;;
7201 esac
7202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7203 $as_echo "$ac_try_echo") >&5
7204   (eval "$ac_try") 2>&5
7205   ac_status=$?
7206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); }; }; then
7208   gl_cv_func_gnu_getopt=yes
7209 else
7210   $as_echo "$as_me: program exited with status $ac_status" >&5
7211 $as_echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7213
7214 ( exit $ac_status )
7215 gl_cv_func_gnu_getopt=no
7216 fi
7217 rm -rf conftest.dSYM
7218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7219 fi
7220
7221
7222 fi
7223 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
7224 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
7225     if test "$gl_cv_func_gnu_getopt" = "no"; then
7226       GETOPT_H=getopt.h
7227     fi
7228   fi
7229
7230
7231       { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
7232 $as_echo_n "checking whether getenv is declared... " >&6; }
7233 if test "${ac_cv_have_decl_getenv+set}" = set; then
7234   $as_echo_n "(cached) " >&6
7235 else
7236   cat >conftest.$ac_ext <<_ACEOF
7237 /* confdefs.h.  */
7238 _ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h.  */
7242 $ac_includes_default
7243 int
7244 main ()
7245 {
7246 #ifndef getenv
7247   (void) getenv;
7248 #endif
7249
7250   ;
7251   return 0;
7252 }
7253 _ACEOF
7254 rm -f conftest.$ac_objext
7255 if { (ac_try="$ac_compile"
7256 case "(($ac_try" in
7257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258   *) ac_try_echo=$ac_try;;
7259 esac
7260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7261 $as_echo "$ac_try_echo") >&5
7262   (eval "$ac_compile") 2>conftest.er1
7263   ac_status=$?
7264   grep -v '^ *+' conftest.er1 >conftest.err
7265   rm -f conftest.er1
7266   cat conftest.err >&5
7267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268   (exit $ac_status); } && {
7269          test -z "$ac_c_werror_flag" ||
7270          test ! -s conftest.err
7271        } && test -s conftest.$ac_objext; then
7272   ac_cv_have_decl_getenv=yes
7273 else
7274   $as_echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7276
7277         ac_cv_have_decl_getenv=no
7278 fi
7279
7280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7281 fi
7282 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
7283 $as_echo "$ac_cv_have_decl_getenv" >&6; }
7284 if test "x$ac_cv_have_decl_getenv" = x""yes; then
7285
7286 cat >>confdefs.h <<_ACEOF
7287 #define HAVE_DECL_GETENV 1
7288 _ACEOF
7289
7290
7291 else
7292   cat >>confdefs.h <<_ACEOF
7293 #define HAVE_DECL_GETENV 0
7294 _ACEOF
7295
7296
7297 fi
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312   :
7313
7314
7315
7316
7317
7318
7319
7320      if test $gl_cv_have_include_next = yes; then
7321        gl_cv_next_sys_time_h='<'sys/time.h'>'
7322      else
7323        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
7324 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
7325 if test "${gl_cv_next_sys_time_h+set}" = set; then
7326   $as_echo_n "(cached) " >&6
7327 else
7328
7329           if test $ac_cv_header_sys_time_h = yes; then
7330             cat >conftest.$ac_ext <<_ACEOF
7331 /* confdefs.h.  */
7332 _ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h.  */
7336 #include <sys/time.h>
7337
7338 _ACEOF
7339                                     gl_cv_next_sys_time_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7340                sed -n '\#/sys/time.h#{
7341                  s#.*"\(.*/sys/time.h\)".*#\1#
7342                  s#^/[^/]#//&#
7343                  p
7344                  q
7345                }'`'"'
7346           else
7347             gl_cv_next_sys_time_h='<'sys/time.h'>'
7348           fi
7349
7350 fi
7351 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
7352 $as_echo "$gl_cv_next_sys_time_h" >&6; }
7353      fi
7354      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
7355
7356
7357
7358
7359   if test $ac_cv_header_sys_time_h = yes; then
7360     HAVE_SYS_TIME_H=1
7361   else
7362     HAVE_SYS_TIME_H=0
7363   fi
7364
7365
7366   { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7367 $as_echo_n "checking for struct timeval... " >&6; }
7368 if test "${gl_cv_sys_struct_timeval+set}" = set; then
7369   $as_echo_n "(cached) " >&6
7370 else
7371   cat >conftest.$ac_ext <<_ACEOF
7372 /* confdefs.h.  */
7373 _ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h.  */
7377 #if HAVE_SYS_TIME_H
7378              #include <sys/time.h>
7379             #endif
7380             #include <time.h>
7381
7382 int
7383 main ()
7384 {
7385 static struct timeval x; x.tv_sec = x.tv_usec;
7386   ;
7387   return 0;
7388 }
7389 _ACEOF
7390 rm -f conftest.$ac_objext
7391 if { (ac_try="$ac_compile"
7392 case "(($ac_try" in
7393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7394   *) ac_try_echo=$ac_try;;
7395 esac
7396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7397 $as_echo "$ac_try_echo") >&5
7398   (eval "$ac_compile") 2>conftest.er1
7399   ac_status=$?
7400   grep -v '^ *+' conftest.er1 >conftest.err
7401   rm -f conftest.er1
7402   cat conftest.err >&5
7403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404   (exit $ac_status); } && {
7405          test -z "$ac_c_werror_flag" ||
7406          test ! -s conftest.err
7407        } && test -s conftest.$ac_objext; then
7408   gl_cv_sys_struct_timeval=yes
7409 else
7410   $as_echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7412
7413         gl_cv_sys_struct_timeval=no
7414 fi
7415
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417 fi
7418 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
7419 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
7420   if test $gl_cv_sys_struct_timeval = yes; then
7421     HAVE_STRUCT_TIMEVAL=1
7422   else
7423     HAVE_STRUCT_TIMEVAL=0
7424   fi
7425
7426
7427     REPLACE_GETTIMEOFDAY=0
7428
7429   if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
7430     SYS_TIME_H=sys/time.h
7431   else
7432     SYS_TIME_H=
7433   fi
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444 for ac_func in $gl_func_list
7445 do
7446 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7447 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7448 $as_echo_n "checking for $ac_func... " >&6; }
7449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7450   $as_echo_n "(cached) " >&6
7451 else
7452   cat >conftest.$ac_ext <<_ACEOF
7453 /* confdefs.h.  */
7454 _ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h.  */
7458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7460 #define $ac_func innocuous_$ac_func
7461
7462 /* System header to define __stub macros and hopefully few prototypes,
7463     which can conflict with char $ac_func (); below.
7464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7465     <limits.h> exists even on freestanding compilers.  */
7466
7467 #ifdef __STDC__
7468 # include <limits.h>
7469 #else
7470 # include <assert.h>
7471 #endif
7472
7473 #undef $ac_func
7474
7475 /* Override any GCC internal prototype to avoid an error.
7476    Use char because int might match the return type of a GCC
7477    builtin and then its argument prototype would still apply.  */
7478 #ifdef __cplusplus
7479 extern "C"
7480 #endif
7481 char $ac_func ();
7482 /* The GNU C library defines this for functions which it implements
7483     to always fail with ENOSYS.  Some functions are actually named
7484     something starting with __ and the normal name is an alias.  */
7485 #if defined __stub_$ac_func || defined __stub___$ac_func
7486 choke me
7487 #endif
7488
7489 int
7490 main ()
7491 {
7492 return $ac_func ();
7493   ;
7494   return 0;
7495 }
7496 _ACEOF
7497 rm -f conftest.$ac_objext conftest$ac_exeext
7498 if { (ac_try="$ac_link"
7499 case "(($ac_try" in
7500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501   *) ac_try_echo=$ac_try;;
7502 esac
7503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7504 $as_echo "$ac_try_echo") >&5
7505   (eval "$ac_link") 2>conftest.er1
7506   ac_status=$?
7507   grep -v '^ *+' conftest.er1 >conftest.err
7508   rm -f conftest.er1
7509   cat conftest.err >&5
7510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); } && {
7512          test -z "$ac_c_werror_flag" ||
7513          test ! -s conftest.err
7514        } && test -s conftest$ac_exeext && {
7515          test "$cross_compiling" = yes ||
7516          $as_test_x conftest$ac_exeext
7517        }; then
7518   eval "$as_ac_var=yes"
7519 else
7520   $as_echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7522
7523         eval "$as_ac_var=no"
7524 fi
7525
7526 rm -rf conftest.dSYM
7527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7528       conftest$ac_exeext conftest.$ac_ext
7529 fi
7530 ac_res=`eval 'as_val=${'$as_ac_var'}
7531                  $as_echo "$as_val"'`
7532                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7533 $as_echo "$ac_res" >&6; }
7534 as_val=`eval 'as_val=${'$as_ac_var'}
7535                  $as_echo "$as_val"'`
7536    if test "x$as_val" = x""yes; then
7537   cat >>confdefs.h <<_ACEOF
7538 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7539 _ACEOF
7540
7541 fi
7542 done
7543
7544
7545
7546
7547
7548
7549
7550       if test "X$prefix" = "XNONE"; then
7551     acl_final_prefix="$ac_default_prefix"
7552   else
7553     acl_final_prefix="$prefix"
7554   fi
7555   if test "X$exec_prefix" = "XNONE"; then
7556     acl_final_exec_prefix='${prefix}'
7557   else
7558     acl_final_exec_prefix="$exec_prefix"
7559   fi
7560   acl_save_prefix="$prefix"
7561   prefix="$acl_final_prefix"
7562   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7563   prefix="$acl_save_prefix"
7564
7565
7566 # Check whether --with-gnu-ld was given.
7567 if test "${with_gnu_ld+set}" = set; then
7568   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7569 else
7570   with_gnu_ld=no
7571 fi
7572
7573 # Prepare PATH_SEPARATOR.
7574 # The user is always right.
7575 if test "${PATH_SEPARATOR+set}" != set; then
7576   echo "#! /bin/sh" >conf$$.sh
7577   echo  "exit 0"   >>conf$$.sh
7578   chmod +x conf$$.sh
7579   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7580     PATH_SEPARATOR=';'
7581   else
7582     PATH_SEPARATOR=:
7583   fi
7584   rm -f conf$$.sh
7585 fi
7586 ac_prog=ld
7587 if test "$GCC" = yes; then
7588   # Check if gcc -print-prog-name=ld gives a path.
7589   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7590 $as_echo_n "checking for ld used by GCC... " >&6; }
7591   case $host in
7592   *-*-mingw*)
7593     # gcc leaves a trailing carriage return which upsets mingw
7594     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7595   *)
7596     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7597   esac
7598   case $ac_prog in
7599     # Accept absolute paths.
7600     [\\/]* | [A-Za-z]:[\\/]*)
7601       re_direlt='/[^/][^/]*/\.\./'
7602       # Canonicalize the path of ld
7603       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7604       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7605         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7606       done
7607       test -z "$LD" && LD="$ac_prog"
7608       ;;
7609   "")
7610     # If it fails, then pretend we aren't using GCC.
7611     ac_prog=ld
7612     ;;
7613   *)
7614     # If it is relative, then search for the first ld in PATH.
7615     with_gnu_ld=unknown
7616     ;;
7617   esac
7618 elif test "$with_gnu_ld" = yes; then
7619   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7620 $as_echo_n "checking for GNU ld... " >&6; }
7621 else
7622   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7623 $as_echo_n "checking for non-GNU ld... " >&6; }
7624 fi
7625 if test "${acl_cv_path_LD+set}" = set; then
7626   $as_echo_n "(cached) " >&6
7627 else
7628   if test -z "$LD"; then
7629   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7630   for ac_dir in $PATH; do
7631     test -z "$ac_dir" && ac_dir=.
7632     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7633       acl_cv_path_LD="$ac_dir/$ac_prog"
7634       # Check to see if the program is GNU ld.  I'd rather use --version,
7635       # but apparently some GNU ld's only accept -v.
7636       # Break only if it was the GNU/non-GNU ld that we prefer.
7637       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7638       *GNU* | *'with BFD'*)
7639         test "$with_gnu_ld" != no && break ;;
7640       *)
7641         test "$with_gnu_ld" != yes && break ;;
7642       esac
7643     fi
7644   done
7645   IFS="$ac_save_ifs"
7646 else
7647   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7648 fi
7649 fi
7650
7651 LD="$acl_cv_path_LD"
7652 if test -n "$LD"; then
7653   { $as_echo "$as_me:$LINENO: result: $LD" >&5
7654 $as_echo "$LD" >&6; }
7655 else
7656   { $as_echo "$as_me:$LINENO: result: no" >&5
7657 $as_echo "no" >&6; }
7658 fi
7659 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7660 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7661    { (exit 1); exit 1; }; }
7662 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7663 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7664 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7665   $as_echo_n "(cached) " >&6
7666 else
7667   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7668 case `$LD -v 2>&1 </dev/null` in
7669 *GNU* | *'with BFD'*)
7670   acl_cv_prog_gnu_ld=yes ;;
7671 *)
7672   acl_cv_prog_gnu_ld=no ;;
7673 esac
7674 fi
7675 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7676 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7677 with_gnu_ld=$acl_cv_prog_gnu_ld
7678
7679
7680
7681
7682                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7683 $as_echo_n "checking for shared library run path origin... " >&6; }
7684 if test "${acl_cv_rpath+set}" = set; then
7685   $as_echo_n "(cached) " >&6
7686 else
7687
7688     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7689     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7690     . ./conftest.sh
7691     rm -f ./conftest.sh
7692     acl_cv_rpath=done
7693
7694 fi
7695 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7696 $as_echo "$acl_cv_rpath" >&6; }
7697   wl="$acl_cv_wl"
7698   libext="$acl_cv_libext"
7699   shlibext="$acl_cv_shlibext"
7700   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7701   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7702   hardcode_direct="$acl_cv_hardcode_direct"
7703   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7704     # Check whether --enable-rpath was given.
7705 if test "${enable_rpath+set}" = set; then
7706   enableval=$enable_rpath; :
7707 else
7708   enable_rpath=yes
7709 fi
7710
7711
7712
7713                   acl_libdirstem=lib
7714   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7715   if test -n "$searchpath"; then
7716     acl_save_IFS="${IFS=        }"; IFS=":"
7717     for searchdir in $searchpath; do
7718       if test -d "$searchdir"; then
7719         case "$searchdir" in
7720           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7721           *) searchdir=`cd "$searchdir" && pwd`
7722              case "$searchdir" in
7723                */lib64 ) acl_libdirstem=lib64 ;;
7724              esac ;;
7725         esac
7726       fi
7727     done
7728     IFS="$acl_save_IFS"
7729   fi
7730
7731
7732
7733   gl_threads_api=none
7734   LIBTHREAD=
7735   LTLIBTHREAD=
7736   LIBMULTITHREAD=
7737   LTLIBMULTITHREAD=
7738   if test "$gl_use_threads" != no; then
7739         { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
7740 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7741     gl_have_weak=no
7742     cat >conftest.$ac_ext <<_ACEOF
7743 /* confdefs.h.  */
7744 _ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h.  */
7748 extern void xyzzy ();
7749 #pragma weak xyzzy
7750 int
7751 main ()
7752 {
7753 xyzzy();
7754   ;
7755   return 0;
7756 }
7757 _ACEOF
7758 rm -f conftest.$ac_objext conftest$ac_exeext
7759 if { (ac_try="$ac_link"
7760 case "(($ac_try" in
7761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7762   *) ac_try_echo=$ac_try;;
7763 esac
7764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7765 $as_echo "$ac_try_echo") >&5
7766   (eval "$ac_link") 2>conftest.er1
7767   ac_status=$?
7768   grep -v '^ *+' conftest.er1 >conftest.err
7769   rm -f conftest.er1
7770   cat conftest.err >&5
7771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); } && {
7773          test -z "$ac_c_werror_flag" ||
7774          test ! -s conftest.err
7775        } && test -s conftest$ac_exeext && {
7776          test "$cross_compiling" = yes ||
7777          $as_test_x conftest$ac_exeext
7778        }; then
7779   gl_have_weak=yes
7780 else
7781   $as_echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7783
7784
7785 fi
7786
7787 rm -rf conftest.dSYM
7788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7789       conftest$ac_exeext conftest.$ac_ext
7790     { $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
7791 $as_echo "$gl_have_weak" >&6; }
7792     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7793       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7794       # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
7795       if test "${ac_cv_header_pthread_h+set}" = set; then
7796   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
7797 $as_echo_n "checking for pthread.h... " >&6; }
7798 if test "${ac_cv_header_pthread_h+set}" = set; then
7799   $as_echo_n "(cached) " >&6
7800 fi
7801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
7802 $as_echo "$ac_cv_header_pthread_h" >&6; }
7803 else
7804   # Is the header compilable?
7805 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
7806 $as_echo_n "checking pthread.h usability... " >&6; }
7807 cat >conftest.$ac_ext <<_ACEOF
7808 /* confdefs.h.  */
7809 _ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h.  */
7813 $ac_includes_default
7814 #include <pthread.h>
7815 _ACEOF
7816 rm -f conftest.$ac_objext
7817 if { (ac_try="$ac_compile"
7818 case "(($ac_try" in
7819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820   *) ac_try_echo=$ac_try;;
7821 esac
7822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7823 $as_echo "$ac_try_echo") >&5
7824   (eval "$ac_compile") 2>conftest.er1
7825   ac_status=$?
7826   grep -v '^ *+' conftest.er1 >conftest.err
7827   rm -f conftest.er1
7828   cat conftest.err >&5
7829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); } && {
7831          test -z "$ac_c_werror_flag" ||
7832          test ! -s conftest.err
7833        } && test -s conftest.$ac_objext; then
7834   ac_header_compiler=yes
7835 else
7836   $as_echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7838
7839         ac_header_compiler=no
7840 fi
7841
7842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7843 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7844 $as_echo "$ac_header_compiler" >&6; }
7845
7846 # Is the header present?
7847 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
7848 $as_echo_n "checking pthread.h presence... " >&6; }
7849 cat >conftest.$ac_ext <<_ACEOF
7850 /* confdefs.h.  */
7851 _ACEOF
7852 cat confdefs.h >>conftest.$ac_ext
7853 cat >>conftest.$ac_ext <<_ACEOF
7854 /* end confdefs.h.  */
7855 #include <pthread.h>
7856 _ACEOF
7857 if { (ac_try="$ac_cpp conftest.$ac_ext"
7858 case "(($ac_try" in
7859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860   *) ac_try_echo=$ac_try;;
7861 esac
7862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7863 $as_echo "$ac_try_echo") >&5
7864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7865   ac_status=$?
7866   grep -v '^ *+' conftest.er1 >conftest.err
7867   rm -f conftest.er1
7868   cat conftest.err >&5
7869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870   (exit $ac_status); } >/dev/null && {
7871          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7872          test ! -s conftest.err
7873        }; then
7874   ac_header_preproc=yes
7875 else
7876   $as_echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7878
7879   ac_header_preproc=no
7880 fi
7881
7882 rm -f conftest.err conftest.$ac_ext
7883 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7884 $as_echo "$ac_header_preproc" >&6; }
7885
7886 # So?  What about this header?
7887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7888   yes:no: )
7889     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
7890 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7891     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
7892 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
7893     ac_header_preproc=yes
7894     ;;
7895   no:yes:* )
7896     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
7897 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
7898     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
7899 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
7900     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
7901 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
7902     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
7903 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7904     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
7905 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
7906     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
7907 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
7908
7909     ;;
7910 esac
7911 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
7912 $as_echo_n "checking for pthread.h... " >&6; }
7913 if test "${ac_cv_header_pthread_h+set}" = set; then
7914   $as_echo_n "(cached) " >&6
7915 else
7916   ac_cv_header_pthread_h=$ac_header_preproc
7917 fi
7918 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
7919 $as_echo "$ac_cv_header_pthread_h" >&6; }
7920
7921 fi
7922 if test "x$ac_cv_header_pthread_h" = x""yes; then
7923   gl_have_pthread_h=yes
7924 else
7925   gl_have_pthread_h=no
7926 fi
7927
7928
7929       if test "$gl_have_pthread_h" = yes; then
7930         # Other possible tests:
7931         #   -lpthreads (FSU threads, PCthreads)
7932         #   -lgthreads
7933         gl_have_pthread=
7934         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7935         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7936         # the second one only in libpthread, and lock.c needs it.
7937         cat >conftest.$ac_ext <<_ACEOF
7938 /* confdefs.h.  */
7939 _ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h.  */
7943 #include <pthread.h>
7944 int
7945 main ()
7946 {
7947 pthread_mutex_lock((pthread_mutex_t*)0);
7948            pthread_mutexattr_init((pthread_mutexattr_t*)0);
7949   ;
7950   return 0;
7951 }
7952 _ACEOF
7953 rm -f conftest.$ac_objext conftest$ac_exeext
7954 if { (ac_try="$ac_link"
7955 case "(($ac_try" in
7956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957   *) ac_try_echo=$ac_try;;
7958 esac
7959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7960 $as_echo "$ac_try_echo") >&5
7961   (eval "$ac_link") 2>conftest.er1
7962   ac_status=$?
7963   grep -v '^ *+' conftest.er1 >conftest.err
7964   rm -f conftest.er1
7965   cat conftest.err >&5
7966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); } && {
7968          test -z "$ac_c_werror_flag" ||
7969          test ! -s conftest.err
7970        } && test -s conftest$ac_exeext && {
7971          test "$cross_compiling" = yes ||
7972          $as_test_x conftest$ac_exeext
7973        }; then
7974   gl_have_pthread=yes
7975 else
7976   $as_echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7978
7979
7980 fi
7981
7982 rm -rf conftest.dSYM
7983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7984       conftest$ac_exeext conftest.$ac_ext
7985         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7986         # since it is defined as a macro on OSF/1.)
7987         if test -n "$gl_have_pthread"; then
7988           # The program links fine without libpthread. But it may actually
7989           # need to link with libpthread in order to create multiple threads.
7990           { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
7991 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7992 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
7993   $as_echo_n "(cached) " >&6
7994 else
7995   ac_check_lib_save_LIBS=$LIBS
7996 LIBS="-lpthread  $LIBS"
7997 cat >conftest.$ac_ext <<_ACEOF
7998 /* confdefs.h.  */
7999 _ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h.  */
8003
8004 /* Override any GCC internal prototype to avoid an error.
8005    Use char because int might match the return type of a GCC
8006    builtin and then its argument prototype would still apply.  */
8007 #ifdef __cplusplus
8008 extern "C"
8009 #endif
8010 char pthread_kill ();
8011 int
8012 main ()
8013 {
8014 return pthread_kill ();
8015   ;
8016   return 0;
8017 }
8018 _ACEOF
8019 rm -f conftest.$ac_objext conftest$ac_exeext
8020 if { (ac_try="$ac_link"
8021 case "(($ac_try" in
8022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023   *) ac_try_echo=$ac_try;;
8024 esac
8025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8026 $as_echo "$ac_try_echo") >&5
8027   (eval "$ac_link") 2>conftest.er1
8028   ac_status=$?
8029   grep -v '^ *+' conftest.er1 >conftest.err
8030   rm -f conftest.er1
8031   cat conftest.err >&5
8032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033   (exit $ac_status); } && {
8034          test -z "$ac_c_werror_flag" ||
8035          test ! -s conftest.err
8036        } && test -s conftest$ac_exeext && {
8037          test "$cross_compiling" = yes ||
8038          $as_test_x conftest$ac_exeext
8039        }; then
8040   ac_cv_lib_pthread_pthread_kill=yes
8041 else
8042   $as_echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8044
8045         ac_cv_lib_pthread_pthread_kill=no
8046 fi
8047
8048 rm -rf conftest.dSYM
8049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8050       conftest$ac_exeext conftest.$ac_ext
8051 LIBS=$ac_check_lib_save_LIBS
8052 fi
8053 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
8054 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8055 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
8056   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8057              # On Solaris and HP-UX, most pthread functions exist also in libc.
8058              # Therefore pthread_in_use() needs to actually try to create a
8059              # thread: pthread_create from libc will fail, whereas
8060              # pthread_create will actually create a thread.
8061              case "$host_os" in
8062                solaris* | hpux*)
8063
8064 cat >>confdefs.h <<\_ACEOF
8065 #define PTHREAD_IN_USE_DETECTION_HARD 1
8066 _ACEOF
8067
8068              esac
8069
8070 fi
8071
8072         else
8073           # Some library is needed. Try libpthread and libc_r.
8074           { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
8075 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8076 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
8077   $as_echo_n "(cached) " >&6
8078 else
8079   ac_check_lib_save_LIBS=$LIBS
8080 LIBS="-lpthread  $LIBS"
8081 cat >conftest.$ac_ext <<_ACEOF
8082 /* confdefs.h.  */
8083 _ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h.  */
8087
8088 /* Override any GCC internal prototype to avoid an error.
8089    Use char because int might match the return type of a GCC
8090    builtin and then its argument prototype would still apply.  */
8091 #ifdef __cplusplus
8092 extern "C"
8093 #endif
8094 char pthread_kill ();
8095 int
8096 main ()
8097 {
8098 return pthread_kill ();
8099   ;
8100   return 0;
8101 }
8102 _ACEOF
8103 rm -f conftest.$ac_objext conftest$ac_exeext
8104 if { (ac_try="$ac_link"
8105 case "(($ac_try" in
8106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107   *) ac_try_echo=$ac_try;;
8108 esac
8109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8110 $as_echo "$ac_try_echo") >&5
8111   (eval "$ac_link") 2>conftest.er1
8112   ac_status=$?
8113   grep -v '^ *+' conftest.er1 >conftest.err
8114   rm -f conftest.er1
8115   cat conftest.err >&5
8116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); } && {
8118          test -z "$ac_c_werror_flag" ||
8119          test ! -s conftest.err
8120        } && test -s conftest$ac_exeext && {
8121          test "$cross_compiling" = yes ||
8122          $as_test_x conftest$ac_exeext
8123        }; then
8124   ac_cv_lib_pthread_pthread_kill=yes
8125 else
8126   $as_echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8128
8129         ac_cv_lib_pthread_pthread_kill=no
8130 fi
8131
8132 rm -rf conftest.dSYM
8133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8134       conftest$ac_exeext conftest.$ac_ext
8135 LIBS=$ac_check_lib_save_LIBS
8136 fi
8137 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
8138 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8139 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
8140   gl_have_pthread=yes
8141              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8142              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8143 fi
8144
8145           if test -z "$gl_have_pthread"; then
8146             # For FreeBSD 4.
8147             { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
8148 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8149 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
8150   $as_echo_n "(cached) " >&6
8151 else
8152   ac_check_lib_save_LIBS=$LIBS
8153 LIBS="-lc_r  $LIBS"
8154 cat >conftest.$ac_ext <<_ACEOF
8155 /* confdefs.h.  */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h.  */
8160
8161 /* Override any GCC internal prototype to avoid an error.
8162    Use char because int might match the return type of a GCC
8163    builtin and then its argument prototype would still apply.  */
8164 #ifdef __cplusplus
8165 extern "C"
8166 #endif
8167 char pthread_kill ();
8168 int
8169 main ()
8170 {
8171 return pthread_kill ();
8172   ;
8173   return 0;
8174 }
8175 _ACEOF
8176 rm -f conftest.$ac_objext conftest$ac_exeext
8177 if { (ac_try="$ac_link"
8178 case "(($ac_try" in
8179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180   *) ac_try_echo=$ac_try;;
8181 esac
8182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8183 $as_echo "$ac_try_echo") >&5
8184   (eval "$ac_link") 2>conftest.er1
8185   ac_status=$?
8186   grep -v '^ *+' conftest.er1 >conftest.err
8187   rm -f conftest.er1
8188   cat conftest.err >&5
8189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); } && {
8191          test -z "$ac_c_werror_flag" ||
8192          test ! -s conftest.err
8193        } && test -s conftest$ac_exeext && {
8194          test "$cross_compiling" = yes ||
8195          $as_test_x conftest$ac_exeext
8196        }; then
8197   ac_cv_lib_c_r_pthread_kill=yes
8198 else
8199   $as_echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8201
8202         ac_cv_lib_c_r_pthread_kill=no
8203 fi
8204
8205 rm -rf conftest.dSYM
8206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8207       conftest$ac_exeext conftest.$ac_ext
8208 LIBS=$ac_check_lib_save_LIBS
8209 fi
8210 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
8211 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8212 if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
8213   gl_have_pthread=yes
8214                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8215                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8216 fi
8217
8218           fi
8219         fi
8220         if test -n "$gl_have_pthread"; then
8221           gl_threads_api=posix
8222
8223 cat >>confdefs.h <<\_ACEOF
8224 #define USE_POSIX_THREADS 1
8225 _ACEOF
8226
8227           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8228             if test $gl_have_weak = yes; then
8229
8230 cat >>confdefs.h <<\_ACEOF
8231 #define USE_POSIX_THREADS_WEAK 1
8232 _ACEOF
8233
8234               LIBTHREAD=
8235               LTLIBTHREAD=
8236             fi
8237           fi
8238           # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
8239           # pthread_rwlock_* functions.
8240           { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
8241 $as_echo_n "checking for pthread_rwlock_t... " >&6; }
8242 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
8243   $as_echo_n "(cached) " >&6
8244 else
8245   ac_cv_type_pthread_rwlock_t=no
8246 cat >conftest.$ac_ext <<_ACEOF
8247 /* confdefs.h.  */
8248 _ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h.  */
8252 #include <pthread.h>
8253
8254 int
8255 main ()
8256 {
8257 if (sizeof (pthread_rwlock_t))
8258        return 0;
8259   ;
8260   return 0;
8261 }
8262 _ACEOF
8263 rm -f conftest.$ac_objext
8264 if { (ac_try="$ac_compile"
8265 case "(($ac_try" in
8266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267   *) ac_try_echo=$ac_try;;
8268 esac
8269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8270 $as_echo "$ac_try_echo") >&5
8271   (eval "$ac_compile") 2>conftest.er1
8272   ac_status=$?
8273   grep -v '^ *+' conftest.er1 >conftest.err
8274   rm -f conftest.er1
8275   cat conftest.err >&5
8276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277   (exit $ac_status); } && {
8278          test -z "$ac_c_werror_flag" ||
8279          test ! -s conftest.err
8280        } && test -s conftest.$ac_objext; then
8281   cat >conftest.$ac_ext <<_ACEOF
8282 /* confdefs.h.  */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h.  */
8287 #include <pthread.h>
8288
8289 int
8290 main ()
8291 {
8292 if (sizeof ((pthread_rwlock_t)))
8293           return 0;
8294   ;
8295   return 0;
8296 }
8297 _ACEOF
8298 rm -f conftest.$ac_objext
8299 if { (ac_try="$ac_compile"
8300 case "(($ac_try" in
8301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302   *) ac_try_echo=$ac_try;;
8303 esac
8304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8305 $as_echo "$ac_try_echo") >&5
8306   (eval "$ac_compile") 2>conftest.er1
8307   ac_status=$?
8308   grep -v '^ *+' conftest.er1 >conftest.err
8309   rm -f conftest.er1
8310   cat conftest.err >&5
8311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); } && {
8313          test -z "$ac_c_werror_flag" ||
8314          test ! -s conftest.err
8315        } && test -s conftest.$ac_objext; then
8316   :
8317 else
8318   $as_echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8320
8321         ac_cv_type_pthread_rwlock_t=yes
8322 fi
8323
8324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8325 else
8326   $as_echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8328
8329
8330 fi
8331
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 fi
8334 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
8335 $as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
8336 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
8337
8338 cat >>confdefs.h <<\_ACEOF
8339 #define HAVE_PTHREAD_RWLOCK 1
8340 _ACEOF
8341
8342 fi
8343
8344           # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8345           cat >conftest.$ac_ext <<_ACEOF
8346 /* confdefs.h.  */
8347 _ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h.  */
8351 #include <pthread.h>
8352 int
8353 main ()
8354 {
8355 #if __FreeBSD__ == 4
8356 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8357 #else
8358 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8359 return !x;
8360 #endif
8361   ;
8362   return 0;
8363 }
8364 _ACEOF
8365 rm -f conftest.$ac_objext
8366 if { (ac_try="$ac_compile"
8367 case "(($ac_try" in
8368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369   *) ac_try_echo=$ac_try;;
8370 esac
8371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8372 $as_echo "$ac_try_echo") >&5
8373   (eval "$ac_compile") 2>conftest.er1
8374   ac_status=$?
8375   grep -v '^ *+' conftest.er1 >conftest.err
8376   rm -f conftest.er1
8377   cat conftest.err >&5
8378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); } && {
8380          test -z "$ac_c_werror_flag" ||
8381          test ! -s conftest.err
8382        } && test -s conftest.$ac_objext; then
8383
8384 cat >>confdefs.h <<\_ACEOF
8385 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
8386 _ACEOF
8387
8388 else
8389   $as_echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392
8393 fi
8394
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396         fi
8397       fi
8398     fi
8399     if test -z "$gl_have_pthread"; then
8400       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8401         gl_have_solaristhread=
8402         gl_save_LIBS="$LIBS"
8403         LIBS="$LIBS -lthread"
8404         cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h.  */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h.  */
8410 #include <thread.h>
8411 #include <synch.h>
8412 int
8413 main ()
8414 {
8415 thr_self();
8416   ;
8417   return 0;
8418 }
8419 _ACEOF
8420 rm -f conftest.$ac_objext conftest$ac_exeext
8421 if { (ac_try="$ac_link"
8422 case "(($ac_try" in
8423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424   *) ac_try_echo=$ac_try;;
8425 esac
8426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8427 $as_echo "$ac_try_echo") >&5
8428   (eval "$ac_link") 2>conftest.er1
8429   ac_status=$?
8430   grep -v '^ *+' conftest.er1 >conftest.err
8431   rm -f conftest.er1
8432   cat conftest.err >&5
8433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); } && {
8435          test -z "$ac_c_werror_flag" ||
8436          test ! -s conftest.err
8437        } && test -s conftest$ac_exeext && {
8438          test "$cross_compiling" = yes ||
8439          $as_test_x conftest$ac_exeext
8440        }; then
8441   gl_have_solaristhread=yes
8442 else
8443   $as_echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8445
8446
8447 fi
8448
8449 rm -rf conftest.dSYM
8450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8451       conftest$ac_exeext conftest.$ac_ext
8452         LIBS="$gl_save_LIBS"
8453         if test -n "$gl_have_solaristhread"; then
8454           gl_threads_api=solaris
8455           LIBTHREAD=-lthread
8456           LTLIBTHREAD=-lthread
8457           LIBMULTITHREAD="$LIBTHREAD"
8458           LTLIBMULTITHREAD="$LTLIBTHREAD"
8459
8460 cat >>confdefs.h <<\_ACEOF
8461 #define USE_SOLARIS_THREADS 1
8462 _ACEOF
8463
8464           if test $gl_have_weak = yes; then
8465
8466 cat >>confdefs.h <<\_ACEOF
8467 #define USE_SOLARIS_THREADS_WEAK 1
8468 _ACEOF
8469
8470             LIBTHREAD=
8471             LTLIBTHREAD=
8472           fi
8473         fi
8474       fi
8475     fi
8476     if test "$gl_use_threads" = pth; then
8477       gl_save_CPPFLAGS="$CPPFLAGS"
8478
8479
8480
8481
8482
8483   { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
8484 $as_echo_n "checking how to link with libpth... " >&6; }
8485 if test "${ac_cv_libpth_libs+set}" = set; then
8486   $as_echo_n "(cached) " >&6
8487 else
8488
8489
8490
8491
8492     use_additional=yes
8493
8494   acl_save_prefix="$prefix"
8495   prefix="$acl_final_prefix"
8496   acl_save_exec_prefix="$exec_prefix"
8497   exec_prefix="$acl_final_exec_prefix"
8498
8499     eval additional_includedir=\"$includedir\"
8500     eval additional_libdir=\"$libdir\"
8501
8502   exec_prefix="$acl_save_exec_prefix"
8503   prefix="$acl_save_prefix"
8504
8505
8506 # Check whether --with-libpth-prefix was given.
8507 if test "${with_libpth_prefix+set}" = set; then
8508   withval=$with_libpth_prefix;
8509     if test "X$withval" = "Xno"; then
8510       use_additional=no
8511     else
8512       if test "X$withval" = "X"; then
8513
8514   acl_save_prefix="$prefix"
8515   prefix="$acl_final_prefix"
8516   acl_save_exec_prefix="$exec_prefix"
8517   exec_prefix="$acl_final_exec_prefix"
8518
8519           eval additional_includedir=\"$includedir\"
8520           eval additional_libdir=\"$libdir\"
8521
8522   exec_prefix="$acl_save_exec_prefix"
8523   prefix="$acl_save_prefix"
8524
8525       else
8526         additional_includedir="$withval/include"
8527         additional_libdir="$withval/$acl_libdirstem"
8528       fi
8529     fi
8530
8531 fi
8532
8533       LIBPTH=
8534   LTLIBPTH=
8535   INCPTH=
8536   rpathdirs=
8537   ltrpathdirs=
8538   names_already_handled=
8539   names_next_round='pth '
8540   while test -n "$names_next_round"; do
8541     names_this_round="$names_next_round"
8542     names_next_round=
8543     for name in $names_this_round; do
8544       already_handled=
8545       for n in $names_already_handled; do
8546         if test "$n" = "$name"; then
8547           already_handled=yes
8548           break
8549         fi
8550       done
8551       if test -z "$already_handled"; then
8552         names_already_handled="$names_already_handled $name"
8553                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8554         eval value=\"\$HAVE_LIB$uppername\"
8555         if test -n "$value"; then
8556           if test "$value" = yes; then
8557             eval value=\"\$LIB$uppername\"
8558             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8559             eval value=\"\$LTLIB$uppername\"
8560             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8561           else
8562                                     :
8563           fi
8564         else
8565                               found_dir=
8566           found_la=
8567           found_so=
8568           found_a=
8569           if test $use_additional = yes; then
8570             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8571               found_dir="$additional_libdir"
8572               found_so="$additional_libdir/lib$name.$shlibext"
8573               if test -f "$additional_libdir/lib$name.la"; then
8574                 found_la="$additional_libdir/lib$name.la"
8575               fi
8576             else
8577               if test -f "$additional_libdir/lib$name.$libext"; then
8578                 found_dir="$additional_libdir"
8579                 found_a="$additional_libdir/lib$name.$libext"
8580                 if test -f "$additional_libdir/lib$name.la"; then
8581                   found_la="$additional_libdir/lib$name.la"
8582                 fi
8583               fi
8584             fi
8585           fi
8586           if test "X$found_dir" = "X"; then
8587             for x in $LDFLAGS $LTLIBPTH; do
8588
8589   acl_save_prefix="$prefix"
8590   prefix="$acl_final_prefix"
8591   acl_save_exec_prefix="$exec_prefix"
8592   exec_prefix="$acl_final_exec_prefix"
8593   eval x=\"$x\"
8594   exec_prefix="$acl_save_exec_prefix"
8595   prefix="$acl_save_prefix"
8596
8597               case "$x" in
8598                 -L*)
8599                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8600                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8601                     found_dir="$dir"
8602                     found_so="$dir/lib$name.$shlibext"
8603                     if test -f "$dir/lib$name.la"; then
8604                       found_la="$dir/lib$name.la"
8605                     fi
8606                   else
8607                     if test -f "$dir/lib$name.$libext"; then
8608                       found_dir="$dir"
8609                       found_a="$dir/lib$name.$libext"
8610                       if test -f "$dir/lib$name.la"; then
8611                         found_la="$dir/lib$name.la"
8612                       fi
8613                     fi
8614                   fi
8615                   ;;
8616               esac
8617               if test "X$found_dir" != "X"; then
8618                 break
8619               fi
8620             done
8621           fi
8622           if test "X$found_dir" != "X"; then
8623                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8624             if test "X$found_so" != "X"; then
8625                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
8626                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8627               else
8628                                                                                 haveit=
8629                 for x in $ltrpathdirs; do
8630                   if test "X$x" = "X$found_dir"; then
8631                     haveit=yes
8632                     break
8633                   fi
8634                 done
8635                 if test -z "$haveit"; then
8636                   ltrpathdirs="$ltrpathdirs $found_dir"
8637                 fi
8638                                 if test "$hardcode_direct" = yes; then
8639                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8640                 else
8641                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8642                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8643                                                             haveit=
8644                     for x in $rpathdirs; do
8645                       if test "X$x" = "X$found_dir"; then
8646                         haveit=yes
8647                         break
8648                       fi
8649                     done
8650                     if test -z "$haveit"; then
8651                       rpathdirs="$rpathdirs $found_dir"
8652                     fi
8653                   else
8654                                                                                 haveit=
8655                     for x in $LDFLAGS $LIBPTH; do
8656
8657   acl_save_prefix="$prefix"
8658   prefix="$acl_final_prefix"
8659   acl_save_exec_prefix="$exec_prefix"
8660   exec_prefix="$acl_final_exec_prefix"
8661   eval x=\"$x\"
8662   exec_prefix="$acl_save_exec_prefix"
8663   prefix="$acl_save_prefix"
8664
8665                       if test "X$x" = "X-L$found_dir"; then
8666                         haveit=yes
8667                         break
8668                       fi
8669                     done
8670                     if test -z "$haveit"; then
8671                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8672                     fi
8673                     if test "$hardcode_minus_L" != no; then
8674                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8675                     else
8676                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8677                     fi
8678                   fi
8679                 fi
8680               fi
8681             else
8682               if test "X$found_a" != "X"; then
8683                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8684               else
8685                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8686               fi
8687             fi
8688                         additional_includedir=
8689             case "$found_dir" in
8690               */$acl_libdirstem | */$acl_libdirstem/)
8691                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8692                 additional_includedir="$basedir/include"
8693                 ;;
8694             esac
8695             if test "X$additional_includedir" != "X"; then
8696                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8697                 haveit=
8698                 if test "X$additional_includedir" = "X/usr/local/include"; then
8699                   if test -n "$GCC"; then
8700                     case $host_os in
8701                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8702                     esac
8703                   fi
8704                 fi
8705                 if test -z "$haveit"; then
8706                   for x in $CPPFLAGS $INCPTH; do
8707
8708   acl_save_prefix="$prefix"
8709   prefix="$acl_final_prefix"
8710   acl_save_exec_prefix="$exec_prefix"
8711   exec_prefix="$acl_final_exec_prefix"
8712   eval x=\"$x\"
8713   exec_prefix="$acl_save_exec_prefix"
8714   prefix="$acl_save_prefix"
8715
8716                     if test "X$x" = "X-I$additional_includedir"; then
8717                       haveit=yes
8718                       break
8719                     fi
8720                   done
8721                   if test -z "$haveit"; then
8722                     if test -d "$additional_includedir"; then
8723                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8724                     fi
8725                   fi
8726                 fi
8727               fi
8728             fi
8729                         if test -n "$found_la"; then
8730                                                         save_libdir="$libdir"
8731               case "$found_la" in
8732                 */* | *\\*) . "$found_la" ;;
8733                 *) . "./$found_la" ;;
8734               esac
8735               libdir="$save_libdir"
8736                             for dep in $dependency_libs; do
8737                 case "$dep" in
8738                   -L*)
8739                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8740                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
8741                       haveit=
8742                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
8743                         if test -n "$GCC"; then
8744                           case $host_os in
8745                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8746                           esac
8747                         fi
8748                       fi
8749                       if test -z "$haveit"; then
8750                         haveit=
8751                         for x in $LDFLAGS $LIBPTH; do
8752
8753   acl_save_prefix="$prefix"
8754   prefix="$acl_final_prefix"
8755   acl_save_exec_prefix="$exec_prefix"
8756   exec_prefix="$acl_final_exec_prefix"
8757   eval x=\"$x\"
8758   exec_prefix="$acl_save_exec_prefix"
8759   prefix="$acl_save_prefix"
8760
8761                           if test "X$x" = "X-L$additional_libdir"; then
8762                             haveit=yes
8763                             break
8764                           fi
8765                         done
8766                         if test -z "$haveit"; then
8767                           if test -d "$additional_libdir"; then
8768                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8769                           fi
8770                         fi
8771                         haveit=
8772                         for x in $LDFLAGS $LTLIBPTH; do
8773
8774   acl_save_prefix="$prefix"
8775   prefix="$acl_final_prefix"
8776   acl_save_exec_prefix="$exec_prefix"
8777   exec_prefix="$acl_final_exec_prefix"
8778   eval x=\"$x\"
8779   exec_prefix="$acl_save_exec_prefix"
8780   prefix="$acl_save_prefix"
8781
8782                           if test "X$x" = "X-L$additional_libdir"; then
8783                             haveit=yes
8784                             break
8785                           fi
8786                         done
8787                         if test -z "$haveit"; then
8788                           if test -d "$additional_libdir"; then
8789                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8790                           fi
8791                         fi
8792                       fi
8793                     fi
8794                     ;;
8795                   -R*)
8796                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8797                     if test "$enable_rpath" != no; then
8798                                                                   haveit=
8799                       for x in $rpathdirs; do
8800                         if test "X$x" = "X$dir"; then
8801                           haveit=yes
8802                           break
8803                         fi
8804                       done
8805                       if test -z "$haveit"; then
8806                         rpathdirs="$rpathdirs $dir"
8807                       fi
8808                                                                   haveit=
8809                       for x in $ltrpathdirs; do
8810                         if test "X$x" = "X$dir"; then
8811                           haveit=yes
8812                           break
8813                         fi
8814                       done
8815                       if test -z "$haveit"; then
8816                         ltrpathdirs="$ltrpathdirs $dir"
8817                       fi
8818                     fi
8819                     ;;
8820                   -l*)
8821                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8822                     ;;
8823                   *.la)
8824                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8825                     ;;
8826                   *)
8827                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8828                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8829                     ;;
8830                 esac
8831               done
8832             fi
8833           else
8834                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8835             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8836           fi
8837         fi
8838       fi
8839     done
8840   done
8841   if test "X$rpathdirs" != "X"; then
8842     if test -n "$hardcode_libdir_separator"; then
8843                         alldirs=
8844       for found_dir in $rpathdirs; do
8845         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8846       done
8847             acl_save_libdir="$libdir"
8848       libdir="$alldirs"
8849       eval flag=\"$hardcode_libdir_flag_spec\"
8850       libdir="$acl_save_libdir"
8851       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8852     else
8853             for found_dir in $rpathdirs; do
8854         acl_save_libdir="$libdir"
8855         libdir="$found_dir"
8856         eval flag=\"$hardcode_libdir_flag_spec\"
8857         libdir="$acl_save_libdir"
8858         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8859       done
8860     fi
8861   fi
8862   if test "X$ltrpathdirs" != "X"; then
8863             for found_dir in $ltrpathdirs; do
8864       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8865     done
8866   fi
8867
8868     ac_cv_libpth_libs="$LIBPTH"
8869     ac_cv_libpth_ltlibs="$LTLIBPTH"
8870     ac_cv_libpth_cppflags="$INCPTH"
8871
8872 fi
8873 { $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
8874 $as_echo "$ac_cv_libpth_libs" >&6; }
8875   LIBPTH="$ac_cv_libpth_libs"
8876   LTLIBPTH="$ac_cv_libpth_ltlibs"
8877   INCPTH="$ac_cv_libpth_cppflags"
8878
8879   for element in $INCPTH; do
8880     haveit=
8881     for x in $CPPFLAGS; do
8882
8883   acl_save_prefix="$prefix"
8884   prefix="$acl_final_prefix"
8885   acl_save_exec_prefix="$exec_prefix"
8886   exec_prefix="$acl_final_exec_prefix"
8887   eval x=\"$x\"
8888   exec_prefix="$acl_save_exec_prefix"
8889   prefix="$acl_save_prefix"
8890
8891       if test "X$x" = "X$element"; then
8892         haveit=yes
8893         break
8894       fi
8895     done
8896     if test -z "$haveit"; then
8897       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8898     fi
8899   done
8900
8901
8902
8903       HAVE_LIBPTH=yes
8904
8905
8906
8907       gl_have_pth=
8908       gl_save_LIBS="$LIBS"
8909       LIBS="$LIBS -lpth"
8910       cat >conftest.$ac_ext <<_ACEOF
8911 /* confdefs.h.  */
8912 _ACEOF
8913 cat confdefs.h >>conftest.$ac_ext
8914 cat >>conftest.$ac_ext <<_ACEOF
8915 /* end confdefs.h.  */
8916 #include <pth.h>
8917 int
8918 main ()
8919 {
8920 pth_self();
8921   ;
8922   return 0;
8923 }
8924 _ACEOF
8925 rm -f conftest.$ac_objext conftest$ac_exeext
8926 if { (ac_try="$ac_link"
8927 case "(($ac_try" in
8928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929   *) ac_try_echo=$ac_try;;
8930 esac
8931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8932 $as_echo "$ac_try_echo") >&5
8933   (eval "$ac_link") 2>conftest.er1
8934   ac_status=$?
8935   grep -v '^ *+' conftest.er1 >conftest.err
8936   rm -f conftest.er1
8937   cat conftest.err >&5
8938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); } && {
8940          test -z "$ac_c_werror_flag" ||
8941          test ! -s conftest.err
8942        } && test -s conftest$ac_exeext && {
8943          test "$cross_compiling" = yes ||
8944          $as_test_x conftest$ac_exeext
8945        }; then
8946   gl_have_pth=yes
8947 else
8948   $as_echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8950
8951
8952 fi
8953
8954 rm -rf conftest.dSYM
8955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8956       conftest$ac_exeext conftest.$ac_ext
8957       LIBS="$gl_save_LIBS"
8958       if test -n "$gl_have_pth"; then
8959         gl_threads_api=pth
8960         LIBTHREAD="$LIBPTH"
8961         LTLIBTHREAD="$LTLIBPTH"
8962         LIBMULTITHREAD="$LIBTHREAD"
8963         LTLIBMULTITHREAD="$LTLIBTHREAD"
8964
8965 cat >>confdefs.h <<\_ACEOF
8966 #define USE_PTH_THREADS 1
8967 _ACEOF
8968
8969         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8970           if test $gl_have_weak = yes; then
8971
8972 cat >>confdefs.h <<\_ACEOF
8973 #define USE_PTH_THREADS_WEAK 1
8974 _ACEOF
8975
8976             LIBTHREAD=
8977             LTLIBTHREAD=
8978           fi
8979         fi
8980       else
8981         CPPFLAGS="$gl_save_CPPFLAGS"
8982       fi
8983     fi
8984     if test -z "$gl_have_pthread"; then
8985       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
8986         if { case "$host_os" in
8987                mingw*) true;;
8988                *) false;;
8989              esac
8990            }; then
8991           gl_threads_api=win32
8992
8993 cat >>confdefs.h <<\_ACEOF
8994 #define USE_WIN32_THREADS 1
8995 _ACEOF
8996
8997         fi
8998       fi
8999     fi
9000   fi
9001   { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
9002 $as_echo_n "checking for multithread API to use... " >&6; }
9003   { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
9004 $as_echo "$gl_threads_api" >&6; }
9005
9006
9007
9008
9009
9010
9011   { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
9012 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
9013 if test "${gl_cv_func_malloc_posix+set}" = set; then
9014   $as_echo_n "(cached) " >&6
9015 else
9016
9017                         cat >conftest.$ac_ext <<_ACEOF
9018 /* confdefs.h.  */
9019 _ACEOF
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h.  */
9023
9024 int
9025 main ()
9026 {
9027 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9028          choke me
9029          #endif
9030
9031   ;
9032   return 0;
9033 }
9034 _ACEOF
9035 rm -f conftest.$ac_objext
9036 if { (ac_try="$ac_compile"
9037 case "(($ac_try" in
9038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9039   *) ac_try_echo=$ac_try;;
9040 esac
9041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9042 $as_echo "$ac_try_echo") >&5
9043   (eval "$ac_compile") 2>conftest.er1
9044   ac_status=$?
9045   grep -v '^ *+' conftest.er1 >conftest.err
9046   rm -f conftest.er1
9047   cat conftest.err >&5
9048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); } && {
9050          test -z "$ac_c_werror_flag" ||
9051          test ! -s conftest.err
9052        } && test -s conftest.$ac_objext; then
9053   gl_cv_func_malloc_posix=yes
9054 else
9055   $as_echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9057
9058         gl_cv_func_malloc_posix=no
9059 fi
9060
9061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9062
9063 fi
9064 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
9065 $as_echo "$gl_cv_func_malloc_posix" >&6; }
9066
9067
9068   GNULIB_MALLOC_POSIX=0;
9069   GNULIB_REALLOC_POSIX=0;
9070   GNULIB_CALLOC_POSIX=0;
9071   GNULIB_GETSUBOPT=0;
9072   GNULIB_MKDTEMP=0;
9073   GNULIB_MKSTEMP=0;
9074   GNULIB_PUTENV=0;
9075   GNULIB_SETENV=0;
9076   GNULIB_UNSETENV=0;
9077     HAVE_CALLOC_POSIX=1;
9078   HAVE_GETSUBOPT=1;
9079   HAVE_MALLOC_POSIX=1;
9080   HAVE_MKDTEMP=1;
9081   HAVE_REALLOC_POSIX=1;
9082   HAVE_SETENV=1;
9083   HAVE_UNSETENV=1;
9084   REPLACE_MKSTEMP=0;
9085   REPLACE_PUTENV=0;
9086   VOID_UNSETENV=0;
9087
9088 { $as_echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
9089 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
9090 if test "${gl_cv_var__system_configuration+set}" = set; then
9091   $as_echo_n "(cached) " >&6
9092 else
9093   cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h.  */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h.  */
9099 #include <sys/systemcfg.h>
9100
9101 int
9102 main ()
9103 {
9104 double x = _system_configuration.physmem;
9105                        if (x > 0.0) return 0;
9106   ;
9107   return 0;
9108 }
9109 _ACEOF
9110 rm -f conftest.$ac_objext conftest$ac_exeext
9111 if { (ac_try="$ac_link"
9112 case "(($ac_try" in
9113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114   *) ac_try_echo=$ac_try;;
9115 esac
9116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9117 $as_echo "$ac_try_echo") >&5
9118   (eval "$ac_link") 2>conftest.er1
9119   ac_status=$?
9120   grep -v '^ *+' conftest.er1 >conftest.err
9121   rm -f conftest.er1
9122   cat conftest.err >&5
9123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124   (exit $ac_status); } && {
9125          test -z "$ac_c_werror_flag" ||
9126          test ! -s conftest.err
9127        } && test -s conftest$ac_exeext && {
9128          test "$cross_compiling" = yes ||
9129          $as_test_x conftest$ac_exeext
9130        }; then
9131   gl_cv_var__system_configuration=yes
9132 else
9133   $as_echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9135
9136         gl_cv_var__system_configuration=no
9137 fi
9138
9139 rm -rf conftest.dSYM
9140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9141       conftest$ac_exeext conftest.$ac_ext
9142 fi
9143 { $as_echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
9144 $as_echo "$gl_cv_var__system_configuration" >&6; }
9145
9146     if test $gl_cv_var__system_configuration = yes; then
9147
9148 cat >>confdefs.h <<\_ACEOF
9149 #define HAVE__SYSTEM_CONFIGURATION 1
9150 _ACEOF
9151
9152     fi
9153
9154
9155
9156   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
9157 $as_echo_n "checking for ssize_t... " >&6; }
9158 if test "${gt_cv_ssize_t+set}" = set; then
9159   $as_echo_n "(cached) " >&6
9160 else
9161   cat >conftest.$ac_ext <<_ACEOF
9162 /* confdefs.h.  */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h.  */
9167 #include <sys/types.h>
9168 int
9169 main ()
9170 {
9171 int x = sizeof (ssize_t *) + sizeof (ssize_t);
9172         return !x;
9173   ;
9174   return 0;
9175 }
9176 _ACEOF
9177 rm -f conftest.$ac_objext
9178 if { (ac_try="$ac_compile"
9179 case "(($ac_try" in
9180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181   *) ac_try_echo=$ac_try;;
9182 esac
9183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9184 $as_echo "$ac_try_echo") >&5
9185   (eval "$ac_compile") 2>conftest.er1
9186   ac_status=$?
9187   grep -v '^ *+' conftest.er1 >conftest.err
9188   rm -f conftest.er1
9189   cat conftest.err >&5
9190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191   (exit $ac_status); } && {
9192          test -z "$ac_c_werror_flag" ||
9193          test ! -s conftest.err
9194        } && test -s conftest.$ac_objext; then
9195   gt_cv_ssize_t=yes
9196 else
9197   $as_echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9199
9200         gt_cv_ssize_t=no
9201 fi
9202
9203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9204 fi
9205 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
9206 $as_echo "$gt_cv_ssize_t" >&6; }
9207   if test $gt_cv_ssize_t = no; then
9208
9209 cat >>confdefs.h <<\_ACEOF
9210 #define ssize_t int
9211 _ACEOF
9212
9213   fi
9214
9215
9216   GNULIB_FPRINTF_POSIX=0;
9217   GNULIB_PRINTF_POSIX=0;
9218   GNULIB_SNPRINTF=0;
9219   GNULIB_SPRINTF_POSIX=0;
9220   GNULIB_VFPRINTF_POSIX=0;
9221   GNULIB_VPRINTF_POSIX=0;
9222   GNULIB_VSNPRINTF=0;
9223   GNULIB_VSPRINTF_POSIX=0;
9224   GNULIB_VASPRINTF=0;
9225   GNULIB_FOPEN=0;
9226   GNULIB_FREOPEN=0;
9227   GNULIB_FSEEK=0;
9228   GNULIB_FSEEKO=0;
9229   GNULIB_FTELL=0;
9230   GNULIB_FTELLO=0;
9231   GNULIB_FFLUSH=0;
9232   GNULIB_GETDELIM=0;
9233   GNULIB_GETLINE=0;
9234     REPLACE_FPRINTF=0;
9235   REPLACE_VFPRINTF=0;
9236   REPLACE_PRINTF=0;
9237   REPLACE_VPRINTF=0;
9238   REPLACE_SNPRINTF=0;
9239   HAVE_DECL_SNPRINTF=1;
9240   REPLACE_VSNPRINTF=0;
9241   HAVE_DECL_VSNPRINTF=1;
9242   REPLACE_SPRINTF=0;
9243   REPLACE_VSPRINTF=0;
9244   HAVE_VASPRINTF=1;
9245   REPLACE_VASPRINTF=0;
9246   REPLACE_FOPEN=0;
9247   REPLACE_FREOPEN=0;
9248   HAVE_FSEEKO=1;
9249   REPLACE_FSEEKO=0;
9250   REPLACE_FSEEK=0;
9251   HAVE_FTELLO=1;
9252   REPLACE_FTELLO=0;
9253   REPLACE_FTELL=0;
9254   REPLACE_FFLUSH=0;
9255   HAVE_DECL_GETDELIM=1;
9256   HAVE_DECL_GETLINE=1;
9257   REPLACE_GETLINE=0;
9258
9259
9260       { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
9261 $as_echo_n "checking whether snprintf is declared... " >&6; }
9262 if test "${ac_cv_have_decl_snprintf+set}" = set; then
9263   $as_echo_n "(cached) " >&6
9264 else
9265   cat >conftest.$ac_ext <<_ACEOF
9266 /* confdefs.h.  */
9267 _ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h.  */
9271 $ac_includes_default
9272 int
9273 main ()
9274 {
9275 #ifndef snprintf
9276   (void) snprintf;
9277 #endif
9278
9279   ;
9280   return 0;
9281 }
9282 _ACEOF
9283 rm -f conftest.$ac_objext
9284 if { (ac_try="$ac_compile"
9285 case "(($ac_try" in
9286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287   *) ac_try_echo=$ac_try;;
9288 esac
9289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9290 $as_echo "$ac_try_echo") >&5
9291   (eval "$ac_compile") 2>conftest.er1
9292   ac_status=$?
9293   grep -v '^ *+' conftest.er1 >conftest.err
9294   rm -f conftest.er1
9295   cat conftest.err >&5
9296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); } && {
9298          test -z "$ac_c_werror_flag" ||
9299          test ! -s conftest.err
9300        } && test -s conftest.$ac_objext; then
9301   ac_cv_have_decl_snprintf=yes
9302 else
9303   $as_echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.$ac_ext >&5
9305
9306         ac_cv_have_decl_snprintf=no
9307 fi
9308
9309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9310 fi
9311 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
9312 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
9313 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
9314
9315 cat >>confdefs.h <<_ACEOF
9316 #define HAVE_DECL_SNPRINTF 1
9317 _ACEOF
9318
9319
9320 else
9321   cat >>confdefs.h <<_ACEOF
9322 #define HAVE_DECL_SNPRINTF 0
9323 _ACEOF
9324
9325
9326 fi
9327
9328
9329
9330 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9331 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9332 if test "${ac_cv_header_stdbool_h+set}" = set; then
9333   $as_echo_n "(cached) " >&6
9334 else
9335   cat >conftest.$ac_ext <<_ACEOF
9336 /* confdefs.h.  */
9337 _ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h.  */
9341
9342           #include <stdbool.h>
9343           #ifndef bool
9344            "error: bool is not defined"
9345           #endif
9346           #ifndef false
9347            "error: false is not defined"
9348           #endif
9349           #if false
9350            "error: false is not 0"
9351           #endif
9352           #ifndef true
9353            "error: true is not defined"
9354           #endif
9355           #if true != 1
9356            "error: true is not 1"
9357           #endif
9358           #ifndef __bool_true_false_are_defined
9359            "error: __bool_true_false_are_defined is not defined"
9360           #endif
9361
9362           struct s { _Bool s: 1; _Bool t; } s;
9363
9364           char a[true == 1 ? 1 : -1];
9365           char b[false == 0 ? 1 : -1];
9366           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9367           char d[(bool) 0.5 == true ? 1 : -1];
9368           bool e = &s;
9369           char f[(_Bool) 0.0 == false ? 1 : -1];
9370           char g[true];
9371           char h[sizeof (_Bool)];
9372           char i[sizeof s.t];
9373           enum { j = false, k = true, l = false * true, m = true * 256 };
9374           _Bool n[m];
9375           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9376           char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9377           #if defined __xlc__ || defined __GNUC__
9378            /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9379               reported by James Lemley on 2005-10-05; see
9380               http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9381               This test is not quite right, since xlc is allowed to
9382               reject this program, as the initializer for xlcbug is
9383               not one of the forms that C requires support for.
9384               However, doing the test right would require a run-time
9385               test, and that would make cross-compilation harder.
9386               Let us hope that IBM fixes the xlc bug, and also adds
9387               support for this kind of constant expression.  In the
9388               meantime, this test will reject xlc, which is OK, since
9389               our stdbool.h substitute should suffice.  We also test
9390               this with GCC, where it should work, to detect more
9391               quickly whether someone messes up the test in the
9392               future.  */
9393            char digs[] = "0123456789";
9394            int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9395           #endif
9396           /* Catch a bug in an HP-UX C compiler.  See
9397              http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9398              http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9399            */
9400           _Bool q = true;
9401           _Bool *pq = &q;
9402
9403 int
9404 main ()
9405 {
9406
9407           *pq |= q;
9408           *pq |= ! q;
9409           /* Refer to every declared value, to avoid compiler optimizations.  */
9410           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9411                   + !m + !n + !o + !p + !q + !pq);
9412
9413   ;
9414   return 0;
9415 }
9416 _ACEOF
9417 rm -f conftest.$ac_objext
9418 if { (ac_try="$ac_compile"
9419 case "(($ac_try" in
9420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9421   *) ac_try_echo=$ac_try;;
9422 esac
9423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9424 $as_echo "$ac_try_echo") >&5
9425   (eval "$ac_compile") 2>conftest.er1
9426   ac_status=$?
9427   grep -v '^ *+' conftest.er1 >conftest.err
9428   rm -f conftest.er1
9429   cat conftest.err >&5
9430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); } && {
9432          test -z "$ac_c_werror_flag" ||
9433          test ! -s conftest.err
9434        } && test -s conftest.$ac_objext; then
9435   ac_cv_header_stdbool_h=yes
9436 else
9437   $as_echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9439
9440         ac_cv_header_stdbool_h=no
9441 fi
9442
9443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9444 fi
9445 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9446 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9447    { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
9448 $as_echo_n "checking for _Bool... " >&6; }
9449 if test "${ac_cv_type__Bool+set}" = set; then
9450   $as_echo_n "(cached) " >&6
9451 else
9452   ac_cv_type__Bool=no
9453 cat >conftest.$ac_ext <<_ACEOF
9454 /* confdefs.h.  */
9455 _ACEOF
9456 cat confdefs.h >>conftest.$ac_ext
9457 cat >>conftest.$ac_ext <<_ACEOF
9458 /* end confdefs.h.  */
9459 $ac_includes_default
9460 int
9461 main ()
9462 {
9463 if (sizeof (_Bool))
9464        return 0;
9465   ;
9466   return 0;
9467 }
9468 _ACEOF
9469 rm -f conftest.$ac_objext
9470 if { (ac_try="$ac_compile"
9471 case "(($ac_try" in
9472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473   *) ac_try_echo=$ac_try;;
9474 esac
9475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9476 $as_echo "$ac_try_echo") >&5
9477   (eval "$ac_compile") 2>conftest.er1
9478   ac_status=$?
9479   grep -v '^ *+' conftest.er1 >conftest.err
9480   rm -f conftest.er1
9481   cat conftest.err >&5
9482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); } && {
9484          test -z "$ac_c_werror_flag" ||
9485          test ! -s conftest.err
9486        } && test -s conftest.$ac_objext; then
9487   cat >conftest.$ac_ext <<_ACEOF
9488 /* confdefs.h.  */
9489 _ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h.  */
9493 $ac_includes_default
9494 int
9495 main ()
9496 {
9497 if (sizeof ((_Bool)))
9498           return 0;
9499   ;
9500   return 0;
9501 }
9502 _ACEOF
9503 rm -f conftest.$ac_objext
9504 if { (ac_try="$ac_compile"
9505 case "(($ac_try" in
9506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507   *) ac_try_echo=$ac_try;;
9508 esac
9509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9510 $as_echo "$ac_try_echo") >&5
9511   (eval "$ac_compile") 2>conftest.er1
9512   ac_status=$?
9513   grep -v '^ *+' conftest.er1 >conftest.err
9514   rm -f conftest.er1
9515   cat conftest.err >&5
9516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); } && {
9518          test -z "$ac_c_werror_flag" ||
9519          test ! -s conftest.err
9520        } && test -s conftest.$ac_objext; then
9521   :
9522 else
9523   $as_echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9525
9526         ac_cv_type__Bool=yes
9527 fi
9528
9529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9530 else
9531   $as_echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9533
9534
9535 fi
9536
9537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9538 fi
9539 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9540 $as_echo "$ac_cv_type__Bool" >&6; }
9541 if test "x$ac_cv_type__Bool" = x""yes; then
9542
9543 cat >>confdefs.h <<_ACEOF
9544 #define HAVE__BOOL 1
9545 _ACEOF
9546
9547
9548 fi
9549
9550    if test $ac_cv_header_stdbool_h = yes; then
9551
9552 cat >>confdefs.h <<\_ACEOF
9553 #define HAVE_STDBOOL_H 1
9554 _ACEOF
9555
9556    fi
9557
9558   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
9559 $as_echo_n "checking for long long int... " >&6; }
9560 if test "${ac_cv_type_long_long_int+set}" = set; then
9561   $as_echo_n "(cached) " >&6
9562 else
9563   cat >conftest.$ac_ext <<_ACEOF
9564
9565   /* confdefs.h.  */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h.  */
9570 /* For now, do not test the preprocessor; as of 2007 there are too many
9571          implementations with broken preprocessors.  Perhaps this can
9572          be revisited in 2012.  In the meantime, code should not expect
9573          #if to work with literals wider than 32 bits.  */
9574       /* Test literals.  */
9575       long long int ll = 9223372036854775807ll;
9576       long long int nll = -9223372036854775807LL;
9577       unsigned long long int ull = 18446744073709551615ULL;
9578       /* Test constant expressions.   */
9579       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9580                      ? 1 : -1)];
9581       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9582                      ? 1 : -1)];
9583       int i = 63;
9584 int
9585 main ()
9586 {
9587 /* Test availability of runtime routines for shift and division.  */
9588       long long int llmax = 9223372036854775807ll;
9589       unsigned long long int ullmax = 18446744073709551615ull;
9590       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9591               | (llmax / ll) | (llmax % ll)
9592               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9593               | (ullmax / ull) | (ullmax % ull));
9594   ;
9595   return 0;
9596 }
9597
9598 _ACEOF
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (ac_try="$ac_link"
9601 case "(($ac_try" in
9602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603   *) ac_try_echo=$ac_try;;
9604 esac
9605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9606 $as_echo "$ac_try_echo") >&5
9607   (eval "$ac_link") 2>conftest.er1
9608   ac_status=$?
9609   grep -v '^ *+' conftest.er1 >conftest.err
9610   rm -f conftest.er1
9611   cat conftest.err >&5
9612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613   (exit $ac_status); } && {
9614          test -z "$ac_c_werror_flag" ||
9615          test ! -s conftest.err
9616        } && test -s conftest$ac_exeext && {
9617          test "$cross_compiling" = yes ||
9618          $as_test_x conftest$ac_exeext
9619        }; then
9620                         if test "$cross_compiling" = yes; then
9621   ac_cv_type_long_long_int=yes
9622 else
9623   cat >conftest.$ac_ext <<_ACEOF
9624 /* confdefs.h.  */
9625 _ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h.  */
9629 #include <limits.h>
9630                #ifndef LLONG_MAX
9631                # define HALF \
9632                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9633                # define LLONG_MAX (HALF - 1 + HALF)
9634                #endif
9635 int
9636 main ()
9637 {
9638 long long int n = 1;
9639                int i;
9640                for (i = 0; ; i++)
9641                  {
9642                    long long int m = n << i;
9643                    if (m >> i != n)
9644                      return 1;
9645                    if (LLONG_MAX / 2 < m)
9646                      break;
9647                  }
9648                return 0;
9649   ;
9650   return 0;
9651 }
9652 _ACEOF
9653 rm -f conftest$ac_exeext
9654 if { (ac_try="$ac_link"
9655 case "(($ac_try" in
9656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657   *) ac_try_echo=$ac_try;;
9658 esac
9659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9660 $as_echo "$ac_try_echo") >&5
9661   (eval "$ac_link") 2>&5
9662   ac_status=$?
9663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9665   { (case "(($ac_try" in
9666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667   *) ac_try_echo=$ac_try;;
9668 esac
9669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9670 $as_echo "$ac_try_echo") >&5
9671   (eval "$ac_try") 2>&5
9672   ac_status=$?
9673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674   (exit $ac_status); }; }; then
9675   ac_cv_type_long_long_int=yes
9676 else
9677   $as_echo "$as_me: program exited with status $ac_status" >&5
9678 $as_echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9680
9681 ( exit $ac_status )
9682 ac_cv_type_long_long_int=no
9683 fi
9684 rm -rf conftest.dSYM
9685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9686 fi
9687
9688
9689 else
9690   $as_echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9692
9693         ac_cv_type_long_long_int=no
9694 fi
9695
9696 rm -rf conftest.dSYM
9697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9698       conftest$ac_exeext conftest.$ac_ext
9699 fi
9700 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
9701 $as_echo "$ac_cv_type_long_long_int" >&6; }
9702   if test $ac_cv_type_long_long_int = yes; then
9703
9704 cat >>confdefs.h <<\_ACEOF
9705 #define HAVE_LONG_LONG_INT 1
9706 _ACEOF
9707
9708   fi
9709
9710
9711   { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
9712 $as_echo_n "checking for unsigned long long int... " >&6; }
9713 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
9714   $as_echo_n "(cached) " >&6
9715 else
9716   cat >conftest.$ac_ext <<_ACEOF
9717
9718   /* confdefs.h.  */
9719 _ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h.  */
9723 /* For now, do not test the preprocessor; as of 2007 there are too many
9724          implementations with broken preprocessors.  Perhaps this can
9725          be revisited in 2012.  In the meantime, code should not expect
9726          #if to work with literals wider than 32 bits.  */
9727       /* Test literals.  */
9728       long long int ll = 9223372036854775807ll;
9729       long long int nll = -9223372036854775807LL;
9730       unsigned long long int ull = 18446744073709551615ULL;
9731       /* Test constant expressions.   */
9732       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9733                      ? 1 : -1)];
9734       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9735                      ? 1 : -1)];
9736       int i = 63;
9737 int
9738 main ()
9739 {
9740 /* Test availability of runtime routines for shift and division.  */
9741       long long int llmax = 9223372036854775807ll;
9742       unsigned long long int ullmax = 18446744073709551615ull;
9743       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9744               | (llmax / ll) | (llmax % ll)
9745               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9746               | (ullmax / ull) | (ullmax % ull));
9747   ;
9748   return 0;
9749 }
9750
9751 _ACEOF
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (ac_try="$ac_link"
9754 case "(($ac_try" in
9755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756   *) ac_try_echo=$ac_try;;
9757 esac
9758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9759 $as_echo "$ac_try_echo") >&5
9760   (eval "$ac_link") 2>conftest.er1
9761   ac_status=$?
9762   grep -v '^ *+' conftest.er1 >conftest.err
9763   rm -f conftest.er1
9764   cat conftest.err >&5
9765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766   (exit $ac_status); } && {
9767          test -z "$ac_c_werror_flag" ||
9768          test ! -s conftest.err
9769        } && test -s conftest$ac_exeext && {
9770          test "$cross_compiling" = yes ||
9771          $as_test_x conftest$ac_exeext
9772        }; then
9773   ac_cv_type_unsigned_long_long_int=yes
9774 else
9775   $as_echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9777
9778         ac_cv_type_unsigned_long_long_int=no
9779 fi
9780
9781 rm -rf conftest.dSYM
9782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9783       conftest$ac_exeext conftest.$ac_ext
9784 fi
9785 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
9786 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
9787   if test $ac_cv_type_unsigned_long_long_int = yes; then
9788
9789 cat >>confdefs.h <<\_ACEOF
9790 #define HAVE_UNSIGNED_LONG_LONG_INT 1
9791 _ACEOF
9792
9793   fi
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820   GNULIB_MEMMEM=0;
9821   GNULIB_MEMPCPY=0;
9822   GNULIB_MEMRCHR=0;
9823   GNULIB_STPCPY=0;
9824   GNULIB_STPNCPY=0;
9825   GNULIB_STRCHRNUL=0;
9826   GNULIB_STRDUP=0;
9827   GNULIB_STRNDUP=0;
9828   GNULIB_STRNLEN=0;
9829   GNULIB_STRPBRK=0;
9830   GNULIB_STRSEP=0;
9831   GNULIB_STRSTR=0;
9832   GNULIB_STRCASESTR=0;
9833   GNULIB_STRTOK_R=0;
9834   GNULIB_MBSLEN=0;
9835   GNULIB_MBSNLEN=0;
9836   GNULIB_MBSCHR=0;
9837   GNULIB_MBSRCHR=0;
9838   GNULIB_MBSSTR=0;
9839   GNULIB_MBSCASECMP=0;
9840   GNULIB_MBSNCASECMP=0;
9841   GNULIB_MBSPCASECMP=0;
9842   GNULIB_MBSCASESTR=0;
9843   GNULIB_MBSCSPN=0;
9844   GNULIB_MBSPBRK=0;
9845   GNULIB_MBSSPN=0;
9846   GNULIB_MBSSEP=0;
9847   GNULIB_MBSTOK_R=0;
9848   GNULIB_STRERROR=0;
9849   GNULIB_STRSIGNAL=0;
9850     HAVE_DECL_MEMMEM=1;
9851   HAVE_MEMPCPY=1;
9852   HAVE_DECL_MEMRCHR=1;
9853   HAVE_STPCPY=1;
9854   HAVE_STPNCPY=1;
9855   HAVE_STRCHRNUL=1;
9856   HAVE_DECL_STRDUP=1;
9857   HAVE_STRNDUP=1;
9858   HAVE_DECL_STRNDUP=1;
9859   HAVE_DECL_STRNLEN=1;
9860   HAVE_STRPBRK=1;
9861   HAVE_STRSEP=1;
9862   HAVE_STRCASESTR=1;
9863   HAVE_DECL_STRTOK_R=1;
9864   HAVE_DECL_STRERROR=1;
9865   HAVE_DECL_STRSIGNAL=1;
9866   REPLACE_STRERROR=0;
9867   REPLACE_STRSIGNAL=0;
9868   REPLACE_MEMMEM=0;
9869   REPLACE_STRCASESTR=0;
9870   REPLACE_STRSTR=0;
9871
9872
9873       { $as_echo "$as_me:$LINENO: checking whether strdup is declared" >&5
9874 $as_echo_n "checking whether strdup is declared... " >&6; }
9875 if test "${ac_cv_have_decl_strdup+set}" = set; then
9876   $as_echo_n "(cached) " >&6
9877 else
9878   cat >conftest.$ac_ext <<_ACEOF
9879 /* confdefs.h.  */
9880 _ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h.  */
9884 $ac_includes_default
9885 int
9886 main ()
9887 {
9888 #ifndef strdup
9889   (void) strdup;
9890 #endif
9891
9892   ;
9893   return 0;
9894 }
9895 _ACEOF
9896 rm -f conftest.$ac_objext
9897 if { (ac_try="$ac_compile"
9898 case "(($ac_try" in
9899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900   *) ac_try_echo=$ac_try;;
9901 esac
9902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9903 $as_echo "$ac_try_echo") >&5
9904   (eval "$ac_compile") 2>conftest.er1
9905   ac_status=$?
9906   grep -v '^ *+' conftest.er1 >conftest.err
9907   rm -f conftest.er1
9908   cat conftest.err >&5
9909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); } && {
9911          test -z "$ac_c_werror_flag" ||
9912          test ! -s conftest.err
9913        } && test -s conftest.$ac_objext; then
9914   ac_cv_have_decl_strdup=yes
9915 else
9916   $as_echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9918
9919         ac_cv_have_decl_strdup=no
9920 fi
9921
9922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9923 fi
9924 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
9925 $as_echo "$ac_cv_have_decl_strdup" >&6; }
9926 if test "x$ac_cv_have_decl_strdup" = x""yes; then
9927
9928 cat >>confdefs.h <<_ACEOF
9929 #define HAVE_DECL_STRDUP 1
9930 _ACEOF
9931
9932
9933 else
9934   cat >>confdefs.h <<_ACEOF
9935 #define HAVE_DECL_STRDUP 0
9936 _ACEOF
9937
9938
9939 fi
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955   :
9956
9957
9958
9959
9960
9961
9962
9963      if test $gl_cv_have_include_next = yes; then
9964        gl_cv_next_string_h='<'string.h'>'
9965      else
9966        { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
9967 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9968 if test "${gl_cv_next_string_h+set}" = set; then
9969   $as_echo_n "(cached) " >&6
9970 else
9971
9972           if test $ac_cv_header_string_h = yes; then
9973             cat >conftest.$ac_ext <<_ACEOF
9974 /* confdefs.h.  */
9975 _ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h.  */
9979 #include <string.h>
9980
9981 _ACEOF
9982                                     gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9983                sed -n '\#/string.h#{
9984                  s#.*"\(.*/string.h\)".*#\1#
9985                  s#^/[^/]#//&#
9986                  p
9987                  q
9988                }'`'"'
9989           else
9990             gl_cv_next_string_h='<'string.h'>'
9991           fi
9992
9993 fi
9994 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
9995 $as_echo "$gl_cv_next_string_h" >&6; }
9996      fi
9997      NEXT_STRING_H=$gl_cv_next_string_h
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10009 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10010 if test "${ac_cv_header_stat_broken+set}" = set; then
10011   $as_echo_n "(cached) " >&6
10012 else
10013   cat >conftest.$ac_ext <<_ACEOF
10014 /* confdefs.h.  */
10015 _ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h.  */
10019 #include <sys/types.h>
10020 #include <sys/stat.h>
10021
10022 #if defined S_ISBLK && defined S_IFDIR
10023 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10024 #endif
10025
10026 #if defined S_ISBLK && defined S_IFCHR
10027 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10028 #endif
10029
10030 #if defined S_ISLNK && defined S_IFREG
10031 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10032 #endif
10033
10034 #if defined S_ISSOCK && defined S_IFREG
10035 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10036 #endif
10037
10038 _ACEOF
10039 rm -f conftest.$ac_objext
10040 if { (ac_try="$ac_compile"
10041 case "(($ac_try" in
10042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043   *) ac_try_echo=$ac_try;;
10044 esac
10045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10046 $as_echo "$ac_try_echo") >&5
10047   (eval "$ac_compile") 2>conftest.er1
10048   ac_status=$?
10049   grep -v '^ *+' conftest.er1 >conftest.err
10050   rm -f conftest.er1
10051   cat conftest.err >&5
10052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); } && {
10054          test -z "$ac_c_werror_flag" ||
10055          test ! -s conftest.err
10056        } && test -s conftest.$ac_objext; then
10057   ac_cv_header_stat_broken=no
10058 else
10059   $as_echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10061
10062         ac_cv_header_stat_broken=yes
10063 fi
10064
10065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10066 fi
10067 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10068 $as_echo "$ac_cv_header_stat_broken" >&6; }
10069 if test $ac_cv_header_stat_broken = yes; then
10070
10071 cat >>confdefs.h <<\_ACEOF
10072 #define STAT_MACROS_BROKEN 1
10073 _ACEOF
10074
10075 fi
10076
10077
10078
10079
10080
10081
10082
10083 # Check whether --enable-largefile was given.
10084 if test "${enable_largefile+set}" = set; then
10085   enableval=$enable_largefile;
10086 fi
10087
10088 if test "$enable_largefile" != no; then
10089
10090   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10091 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10092 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10093   $as_echo_n "(cached) " >&6
10094 else
10095   ac_cv_sys_largefile_CC=no
10096      if test "$GCC" != yes; then
10097        ac_save_CC=$CC
10098        while :; do
10099          # IRIX 6.2 and later do not support large files by default,
10100          # so use the C compiler's -n32 option if that helps.
10101          cat >conftest.$ac_ext <<_ACEOF
10102 /* confdefs.h.  */
10103 _ACEOF
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h.  */
10107 #include <sys/types.h>
10108  /* Check that off_t can represent 2**63 - 1 correctly.
10109     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10110     since some C++ compilers masquerading as C compilers
10111     incorrectly reject 9223372036854775807.  */
10112 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10113   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10114                        && LARGE_OFF_T % 2147483647 == 1)
10115                       ? 1 : -1];
10116 int
10117 main ()
10118 {
10119
10120   ;
10121   return 0;
10122 }
10123 _ACEOF
10124          rm -f conftest.$ac_objext
10125 if { (ac_try="$ac_compile"
10126 case "(($ac_try" in
10127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128   *) ac_try_echo=$ac_try;;
10129 esac
10130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10131 $as_echo "$ac_try_echo") >&5
10132   (eval "$ac_compile") 2>conftest.er1
10133   ac_status=$?
10134   grep -v '^ *+' conftest.er1 >conftest.err
10135   rm -f conftest.er1
10136   cat conftest.err >&5
10137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); } && {
10139          test -z "$ac_c_werror_flag" ||
10140          test ! -s conftest.err
10141        } && test -s conftest.$ac_objext; then
10142   break
10143 else
10144   $as_echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10146
10147
10148 fi
10149
10150 rm -f core conftest.err conftest.$ac_objext
10151          CC="$CC -n32"
10152          rm -f conftest.$ac_objext
10153 if { (ac_try="$ac_compile"
10154 case "(($ac_try" in
10155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156   *) ac_try_echo=$ac_try;;
10157 esac
10158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10159 $as_echo "$ac_try_echo") >&5
10160   (eval "$ac_compile") 2>conftest.er1
10161   ac_status=$?
10162   grep -v '^ *+' conftest.er1 >conftest.err
10163   rm -f conftest.er1
10164   cat conftest.err >&5
10165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); } && {
10167          test -z "$ac_c_werror_flag" ||
10168          test ! -s conftest.err
10169        } && test -s conftest.$ac_objext; then
10170   ac_cv_sys_largefile_CC=' -n32'; break
10171 else
10172   $as_echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10174
10175
10176 fi
10177
10178 rm -f core conftest.err conftest.$ac_objext
10179          break
10180        done
10181        CC=$ac_save_CC
10182        rm -f conftest.$ac_ext
10183     fi
10184 fi
10185 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10186 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10187   if test "$ac_cv_sys_largefile_CC" != no; then
10188     CC=$CC$ac_cv_sys_largefile_CC
10189   fi
10190
10191   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10192 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10193 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10194   $as_echo_n "(cached) " >&6
10195 else
10196   while :; do
10197   cat >conftest.$ac_ext <<_ACEOF
10198 /* confdefs.h.  */
10199 _ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h.  */
10203 #include <sys/types.h>
10204  /* Check that off_t can represent 2**63 - 1 correctly.
10205     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10206     since some C++ compilers masquerading as C compilers
10207     incorrectly reject 9223372036854775807.  */
10208 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10209   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10210                        && LARGE_OFF_T % 2147483647 == 1)
10211                       ? 1 : -1];
10212 int
10213 main ()
10214 {
10215
10216   ;
10217   return 0;
10218 }
10219 _ACEOF
10220 rm -f conftest.$ac_objext
10221 if { (ac_try="$ac_compile"
10222 case "(($ac_try" in
10223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224   *) ac_try_echo=$ac_try;;
10225 esac
10226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10227 $as_echo "$ac_try_echo") >&5
10228   (eval "$ac_compile") 2>conftest.er1
10229   ac_status=$?
10230   grep -v '^ *+' conftest.er1 >conftest.err
10231   rm -f conftest.er1
10232   cat conftest.err >&5
10233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); } && {
10235          test -z "$ac_c_werror_flag" ||
10236          test ! -s conftest.err
10237        } && test -s conftest.$ac_objext; then
10238   ac_cv_sys_file_offset_bits=no; break
10239 else
10240   $as_echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10242
10243
10244 fi
10245
10246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10247   cat >conftest.$ac_ext <<_ACEOF
10248 /* confdefs.h.  */
10249 _ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h.  */
10253 #define _FILE_OFFSET_BITS 64
10254 #include <sys/types.h>
10255  /* Check that off_t can represent 2**63 - 1 correctly.
10256     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10257     since some C++ compilers masquerading as C compilers
10258     incorrectly reject 9223372036854775807.  */
10259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10260   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10261                        && LARGE_OFF_T % 2147483647 == 1)
10262                       ? 1 : -1];
10263 int
10264 main ()
10265 {
10266
10267   ;
10268   return 0;
10269 }
10270 _ACEOF
10271 rm -f conftest.$ac_objext
10272 if { (ac_try="$ac_compile"
10273 case "(($ac_try" in
10274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275   *) ac_try_echo=$ac_try;;
10276 esac
10277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10278 $as_echo "$ac_try_echo") >&5
10279   (eval "$ac_compile") 2>conftest.er1
10280   ac_status=$?
10281   grep -v '^ *+' conftest.er1 >conftest.err
10282   rm -f conftest.er1
10283   cat conftest.err >&5
10284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); } && {
10286          test -z "$ac_c_werror_flag" ||
10287          test ! -s conftest.err
10288        } && test -s conftest.$ac_objext; then
10289   ac_cv_sys_file_offset_bits=64; break
10290 else
10291   $as_echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10293
10294
10295 fi
10296
10297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10298   ac_cv_sys_file_offset_bits=unknown
10299   break
10300 done
10301 fi
10302 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10303 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10304 case $ac_cv_sys_file_offset_bits in #(
10305   no | unknown) ;;
10306   *)
10307 cat >>confdefs.h <<_ACEOF
10308 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10309 _ACEOF
10310 ;;
10311 esac
10312 rm -rf conftest*
10313   if test $ac_cv_sys_file_offset_bits = unknown; then
10314     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10315 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10316 if test "${ac_cv_sys_large_files+set}" = set; then
10317   $as_echo_n "(cached) " >&6
10318 else
10319   while :; do
10320   cat >conftest.$ac_ext <<_ACEOF
10321 /* confdefs.h.  */
10322 _ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h.  */
10326 #include <sys/types.h>
10327  /* Check that off_t can represent 2**63 - 1 correctly.
10328     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10329     since some C++ compilers masquerading as C compilers
10330     incorrectly reject 9223372036854775807.  */
10331 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10332   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10333                        && LARGE_OFF_T % 2147483647 == 1)
10334                       ? 1 : -1];
10335 int
10336 main ()
10337 {
10338
10339   ;
10340   return 0;
10341 }
10342 _ACEOF
10343 rm -f conftest.$ac_objext
10344 if { (ac_try="$ac_compile"
10345 case "(($ac_try" in
10346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347   *) ac_try_echo=$ac_try;;
10348 esac
10349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10350 $as_echo "$ac_try_echo") >&5
10351   (eval "$ac_compile") 2>conftest.er1
10352   ac_status=$?
10353   grep -v '^ *+' conftest.er1 >conftest.err
10354   rm -f conftest.er1
10355   cat conftest.err >&5
10356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); } && {
10358          test -z "$ac_c_werror_flag" ||
10359          test ! -s conftest.err
10360        } && test -s conftest.$ac_objext; then
10361   ac_cv_sys_large_files=no; break
10362 else
10363   $as_echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10365
10366
10367 fi
10368
10369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10370   cat >conftest.$ac_ext <<_ACEOF
10371 /* confdefs.h.  */
10372 _ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h.  */
10376 #define _LARGE_FILES 1
10377 #include <sys/types.h>
10378  /* Check that off_t can represent 2**63 - 1 correctly.
10379     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10380     since some C++ compilers masquerading as C compilers
10381     incorrectly reject 9223372036854775807.  */
10382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10383   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10384                        && LARGE_OFF_T % 2147483647 == 1)
10385                       ? 1 : -1];
10386 int
10387 main ()
10388 {
10389
10390   ;
10391   return 0;
10392 }
10393 _ACEOF
10394 rm -f conftest.$ac_objext
10395 if { (ac_try="$ac_compile"
10396 case "(($ac_try" in
10397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398   *) ac_try_echo=$ac_try;;
10399 esac
10400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10401 $as_echo "$ac_try_echo") >&5
10402   (eval "$ac_compile") 2>conftest.er1
10403   ac_status=$?
10404   grep -v '^ *+' conftest.er1 >conftest.err
10405   rm -f conftest.er1
10406   cat conftest.err >&5
10407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); } && {
10409          test -z "$ac_c_werror_flag" ||
10410          test ! -s conftest.err
10411        } && test -s conftest.$ac_objext; then
10412   ac_cv_sys_large_files=1; break
10413 else
10414   $as_echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10416
10417
10418 fi
10419
10420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10421   ac_cv_sys_large_files=unknown
10422   break
10423 done
10424 fi
10425 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10426 $as_echo "$ac_cv_sys_large_files" >&6; }
10427 case $ac_cv_sys_large_files in #(
10428   no | unknown) ;;
10429   *)
10430 cat >>confdefs.h <<_ACEOF
10431 #define _LARGE_FILES $ac_cv_sys_large_files
10432 _ACEOF
10433 ;;
10434 esac
10435 rm -rf conftest*
10436   fi
10437 fi
10438
10439
10440   GNULIB_CHOWN=0;
10441   GNULIB_DUP2=0;
10442   GNULIB_ENVIRON=0;
10443   GNULIB_FCHDIR=0;
10444   GNULIB_FTRUNCATE=0;
10445   GNULIB_GETCWD=0;
10446   GNULIB_GETLOGIN_R=0;
10447   GNULIB_GETPAGESIZE=0;
10448   GNULIB_LCHOWN=0;
10449   GNULIB_LSEEK=0;
10450   GNULIB_READLINK=0;
10451   GNULIB_SLEEP=0;
10452     HAVE_DUP2=1;
10453   HAVE_FTRUNCATE=1;
10454   HAVE_GETPAGESIZE=1;
10455   HAVE_READLINK=1;
10456   HAVE_SLEEP=1;
10457   HAVE_DECL_ENVIRON=1;
10458   HAVE_DECL_GETLOGIN_R=1;
10459   HAVE_OS_H=0;
10460   HAVE_SYS_PARAM_H=0;
10461   REPLACE_CHOWN=0;
10462   REPLACE_FCHDIR=0;
10463   REPLACE_GETCWD=0;
10464   REPLACE_GETPAGESIZE=0;
10465   REPLACE_LCHOWN=0;
10466   REPLACE_LSEEK=0;
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476   { $as_echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
10477 $as_echo_n "checking for EOVERFLOW... " >&6; }
10478 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
10479   $as_echo_n "(cached) " >&6
10480 else
10481
10482     cat >conftest.$ac_ext <<_ACEOF
10483 /* confdefs.h.  */
10484 _ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h.  */
10488
10489 #include <errno.h>
10490 #ifdef EOVERFLOW
10491 yes
10492 #endif
10493
10494 _ACEOF
10495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10496   $EGREP "yes" >/dev/null 2>&1; then
10497   have_eoverflow=1
10498 fi
10499 rm -f conftest*
10500
10501     if test -n "$have_eoverflow"; then
10502             ac_cv_decl_EOVERFLOW=yes
10503     else
10504       cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h.  */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h.  */
10510
10511 #define _XOPEN_SOURCE_EXTENDED 1
10512 #include <errno.h>
10513 #ifdef EOVERFLOW
10514 yes
10515 #endif
10516
10517 _ACEOF
10518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10519   $EGREP "yes" >/dev/null 2>&1; then
10520   have_eoverflow=1
10521 fi
10522 rm -f conftest*
10523
10524       if test -n "$have_eoverflow"; then
10525                         if test "$cross_compiling" = yes; then
10526   # Depending upon the size, compute the lo and hi bounds.
10527 cat >conftest.$ac_ext <<_ACEOF
10528 /* confdefs.h.  */
10529 _ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h.  */
10533
10534 #define _XOPEN_SOURCE_EXTENDED 1
10535 #include <errno.h>
10536 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
10537 #include <stdio.h>
10538 #include <stdlib.h>
10539
10540 int
10541 main ()
10542 {
10543 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
10544 test_array [0] = 0
10545
10546   ;
10547   return 0;
10548 }
10549 _ACEOF
10550 rm -f conftest.$ac_objext
10551 if { (ac_try="$ac_compile"
10552 case "(($ac_try" in
10553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554   *) ac_try_echo=$ac_try;;
10555 esac
10556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10557 $as_echo "$ac_try_echo") >&5
10558   (eval "$ac_compile") 2>conftest.er1
10559   ac_status=$?
10560   grep -v '^ *+' conftest.er1 >conftest.err
10561   rm -f conftest.er1
10562   cat conftest.err >&5
10563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564   (exit $ac_status); } && {
10565          test -z "$ac_c_werror_flag" ||
10566          test ! -s conftest.err
10567        } && test -s conftest.$ac_objext; then
10568   ac_lo=0 ac_mid=0
10569   while :; do
10570     cat >conftest.$ac_ext <<_ACEOF
10571 /* confdefs.h.  */
10572 _ACEOF
10573 cat confdefs.h >>conftest.$ac_ext
10574 cat >>conftest.$ac_ext <<_ACEOF
10575 /* end confdefs.h.  */
10576
10577 #define _XOPEN_SOURCE_EXTENDED 1
10578 #include <errno.h>
10579 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
10580 #include <stdio.h>
10581 #include <stdlib.h>
10582
10583 int
10584 main ()
10585 {
10586 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
10587 test_array [0] = 0
10588
10589   ;
10590   return 0;
10591 }
10592 _ACEOF
10593 rm -f conftest.$ac_objext
10594 if { (ac_try="$ac_compile"
10595 case "(($ac_try" in
10596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597   *) ac_try_echo=$ac_try;;
10598 esac
10599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10600 $as_echo "$ac_try_echo") >&5
10601   (eval "$ac_compile") 2>conftest.er1
10602   ac_status=$?
10603   grep -v '^ *+' conftest.er1 >conftest.err
10604   rm -f conftest.er1
10605   cat conftest.err >&5
10606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); } && {
10608          test -z "$ac_c_werror_flag" ||
10609          test ! -s conftest.err
10610        } && test -s conftest.$ac_objext; then
10611   ac_hi=$ac_mid; break
10612 else
10613   $as_echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10615
10616         ac_lo=`expr $ac_mid + 1`
10617                         if test $ac_lo -le $ac_mid; then
10618                           ac_lo= ac_hi=
10619                           break
10620                         fi
10621                         ac_mid=`expr 2 '*' $ac_mid + 1`
10622 fi
10623
10624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10625   done
10626 else
10627   $as_echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10629
10630         cat >conftest.$ac_ext <<_ACEOF
10631 /* confdefs.h.  */
10632 _ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h.  */
10636
10637 #define _XOPEN_SOURCE_EXTENDED 1
10638 #include <errno.h>
10639 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
10640 #include <stdio.h>
10641 #include <stdlib.h>
10642
10643 int
10644 main ()
10645 {
10646 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
10647 test_array [0] = 0
10648
10649   ;
10650   return 0;
10651 }
10652 _ACEOF
10653 rm -f conftest.$ac_objext
10654 if { (ac_try="$ac_compile"
10655 case "(($ac_try" in
10656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657   *) ac_try_echo=$ac_try;;
10658 esac
10659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10660 $as_echo "$ac_try_echo") >&5
10661   (eval "$ac_compile") 2>conftest.er1
10662   ac_status=$?
10663   grep -v '^ *+' conftest.er1 >conftest.err
10664   rm -f conftest.er1
10665   cat conftest.err >&5
10666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); } && {
10668          test -z "$ac_c_werror_flag" ||
10669          test ! -s conftest.err
10670        } && test -s conftest.$ac_objext; then
10671   ac_hi=-1 ac_mid=-1
10672   while :; do
10673     cat >conftest.$ac_ext <<_ACEOF
10674 /* confdefs.h.  */
10675 _ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h.  */
10679
10680 #define _XOPEN_SOURCE_EXTENDED 1
10681 #include <errno.h>
10682 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
10683 #include <stdio.h>
10684 #include <stdlib.h>
10685
10686 int
10687 main ()
10688 {
10689 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
10690 test_array [0] = 0
10691
10692   ;
10693   return 0;
10694 }
10695 _ACEOF
10696 rm -f conftest.$ac_objext
10697 if { (ac_try="$ac_compile"
10698 case "(($ac_try" in
10699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700   *) ac_try_echo=$ac_try;;
10701 esac
10702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10703 $as_echo "$ac_try_echo") >&5
10704   (eval "$ac_compile") 2>conftest.er1
10705   ac_status=$?
10706   grep -v '^ *+' conftest.er1 >conftest.err
10707   rm -f conftest.er1
10708   cat conftest.err >&5
10709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710   (exit $ac_status); } && {
10711          test -z "$ac_c_werror_flag" ||
10712          test ! -s conftest.err
10713        } && test -s conftest.$ac_objext; then
10714   ac_lo=$ac_mid; break
10715 else
10716   $as_echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10718
10719         ac_hi=`expr '(' $ac_mid ')' - 1`
10720                         if test $ac_mid -le $ac_hi; then
10721                           ac_lo= ac_hi=
10722                           break
10723                         fi
10724                         ac_mid=`expr 2 '*' $ac_mid`
10725 fi
10726
10727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10728   done
10729 else
10730   $as_echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10732
10733         ac_lo= ac_hi=
10734 fi
10735
10736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10737 fi
10738
10739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10740 # Binary search between lo and hi bounds.
10741 while test "x$ac_lo" != "x$ac_hi"; do
10742   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10743   cat >conftest.$ac_ext <<_ACEOF
10744 /* confdefs.h.  */
10745 _ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h.  */
10749
10750 #define _XOPEN_SOURCE_EXTENDED 1
10751 #include <errno.h>
10752 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
10753 #include <stdio.h>
10754 #include <stdlib.h>
10755
10756 int
10757 main ()
10758 {
10759 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
10760 test_array [0] = 0
10761
10762   ;
10763   return 0;
10764 }
10765 _ACEOF
10766 rm -f conftest.$ac_objext
10767 if { (ac_try="$ac_compile"
10768 case "(($ac_try" in
10769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770   *) ac_try_echo=$ac_try;;
10771 esac
10772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10773 $as_echo "$ac_try_echo") >&5
10774   (eval "$ac_compile") 2>conftest.er1
10775   ac_status=$?
10776   grep -v '^ *+' conftest.er1 >conftest.err
10777   rm -f conftest.er1
10778   cat conftest.err >&5
10779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780   (exit $ac_status); } && {
10781          test -z "$ac_c_werror_flag" ||
10782          test ! -s conftest.err
10783        } && test -s conftest.$ac_objext; then
10784   ac_hi=$ac_mid
10785 else
10786   $as_echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10788
10789         ac_lo=`expr '(' $ac_mid ')' + 1`
10790 fi
10791
10792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10793 done
10794 case $ac_lo in
10795 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
10796 '')  ;;
10797 esac
10798 else
10799   cat >conftest.$ac_ext <<_ACEOF
10800 /* confdefs.h.  */
10801 _ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h.  */
10805
10806 #define _XOPEN_SOURCE_EXTENDED 1
10807 #include <errno.h>
10808 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
10809 #include <stdio.h>
10810 #include <stdlib.h>
10811
10812 static long int longval () { return EOVERFLOW; }
10813 static unsigned long int ulongval () { return EOVERFLOW; }
10814 #include <stdio.h>
10815 #include <stdlib.h>
10816 int
10817 main ()
10818 {
10819
10820   FILE *f = fopen ("conftest.val", "w");
10821   if (! f)
10822     return 1;
10823   if ((EOVERFLOW) < 0)
10824     {
10825       long int i = longval ();
10826       if (i != (EOVERFLOW))
10827         return 1;
10828       fprintf (f, "%ld", i);
10829     }
10830   else
10831     {
10832       unsigned long int i = ulongval ();
10833       if (i != (EOVERFLOW))
10834         return 1;
10835       fprintf (f, "%lu", i);
10836     }
10837   /* Do not output a trailing newline, as this causes \r\n confusion
10838      on some platforms.  */
10839   return ferror (f) || fclose (f) != 0;
10840
10841   ;
10842   return 0;
10843 }
10844 _ACEOF
10845 rm -f conftest$ac_exeext
10846 if { (ac_try="$ac_link"
10847 case "(($ac_try" in
10848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849   *) ac_try_echo=$ac_try;;
10850 esac
10851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10852 $as_echo "$ac_try_echo") >&5
10853   (eval "$ac_link") 2>&5
10854   ac_status=$?
10855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10857   { (case "(($ac_try" in
10858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859   *) ac_try_echo=$ac_try;;
10860 esac
10861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10862 $as_echo "$ac_try_echo") >&5
10863   (eval "$ac_try") 2>&5
10864   ac_status=$?
10865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); }; }; then
10867   ac_cv_decl_EOVERFLOW=`cat conftest.val`
10868 else
10869   $as_echo "$as_me: program exited with status $ac_status" >&5
10870 $as_echo "$as_me: failed program was:" >&5
10871 sed 's/^/| /' conftest.$ac_ext >&5
10872
10873 fi
10874 rm -rf conftest.dSYM
10875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10876 fi
10877 rm -f conftest.val
10878       else
10879                                 ac_cv_decl_EOVERFLOW=E2BIG
10880       fi
10881     fi
10882
10883 fi
10884 { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
10885 $as_echo "$ac_cv_decl_EOVERFLOW" >&6; }
10886   if test "$ac_cv_decl_EOVERFLOW" != yes; then
10887
10888 cat >>confdefs.h <<_ACEOF
10889 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
10890 _ACEOF
10891
10892     EOVERFLOW="$ac_cv_decl_EOVERFLOW"
10893
10894   fi
10895
10896
10897
10898
10899
10900
10901
10902
10903   { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
10904 $as_echo_n "checking for wchar_t... " >&6; }
10905 if test "${gt_cv_c_wchar_t+set}" = set; then
10906   $as_echo_n "(cached) " >&6
10907 else
10908   cat >conftest.$ac_ext <<_ACEOF
10909 /* confdefs.h.  */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h.  */
10914 #include <stddef.h>
10915        wchar_t foo = (wchar_t)'\0';
10916 int
10917 main ()
10918 {
10919
10920   ;
10921   return 0;
10922 }
10923 _ACEOF
10924 rm -f conftest.$ac_objext
10925 if { (ac_try="$ac_compile"
10926 case "(($ac_try" in
10927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928   *) ac_try_echo=$ac_try;;
10929 esac
10930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10931 $as_echo "$ac_try_echo") >&5
10932   (eval "$ac_compile") 2>conftest.er1
10933   ac_status=$?
10934   grep -v '^ *+' conftest.er1 >conftest.err
10935   rm -f conftest.er1
10936   cat conftest.err >&5
10937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); } && {
10939          test -z "$ac_c_werror_flag" ||
10940          test ! -s conftest.err
10941        } && test -s conftest.$ac_objext; then
10942   gt_cv_c_wchar_t=yes
10943 else
10944   $as_echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10946
10947         gt_cv_c_wchar_t=no
10948 fi
10949
10950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10951 fi
10952 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
10953 $as_echo "$gt_cv_c_wchar_t" >&6; }
10954   if test $gt_cv_c_wchar_t = yes; then
10955
10956 cat >>confdefs.h <<\_ACEOF
10957 #define HAVE_WCHAR_T 1
10958 _ACEOF
10959
10960   fi
10961
10962
10963   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
10964 $as_echo_n "checking for wint_t... " >&6; }
10965 if test "${gt_cv_c_wint_t+set}" = set; then
10966   $as_echo_n "(cached) " >&6
10967 else
10968   cat >conftest.$ac_ext <<_ACEOF
10969 /* confdefs.h.  */
10970 _ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h.  */
10974 #include <wchar.h>
10975        wint_t foo = (wchar_t)'\0';
10976 int
10977 main ()
10978 {
10979
10980   ;
10981   return 0;
10982 }
10983 _ACEOF
10984 rm -f conftest.$ac_objext
10985 if { (ac_try="$ac_compile"
10986 case "(($ac_try" in
10987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988   *) ac_try_echo=$ac_try;;
10989 esac
10990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10991 $as_echo "$ac_try_echo") >&5
10992   (eval "$ac_compile") 2>conftest.er1
10993   ac_status=$?
10994   grep -v '^ *+' conftest.er1 >conftest.err
10995   rm -f conftest.er1
10996   cat conftest.err >&5
10997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); } && {
10999          test -z "$ac_c_werror_flag" ||
11000          test ! -s conftest.err
11001        } && test -s conftest.$ac_objext; then
11002   gt_cv_c_wint_t=yes
11003 else
11004   $as_echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11006
11007         gt_cv_c_wint_t=no
11008 fi
11009
11010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11011 fi
11012 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
11013 $as_echo "$gt_cv_c_wint_t" >&6; }
11014   if test $gt_cv_c_wint_t = yes; then
11015
11016 cat >>confdefs.h <<\_ACEOF
11017 #define HAVE_WINT_T 1
11018 _ACEOF
11019
11020   fi
11021
11022 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
11023 $as_echo_n "checking for size_t... " >&6; }
11024 if test "${ac_cv_type_size_t+set}" = set; then
11025   $as_echo_n "(cached) " >&6
11026 else
11027   ac_cv_type_size_t=no
11028 cat >conftest.$ac_ext <<_ACEOF
11029 /* confdefs.h.  */
11030 _ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h.  */
11034 $ac_includes_default
11035 int
11036 main ()
11037 {
11038 if (sizeof (size_t))
11039        return 0;
11040   ;
11041   return 0;
11042 }
11043 _ACEOF
11044 rm -f conftest.$ac_objext
11045 if { (ac_try="$ac_compile"
11046 case "(($ac_try" in
11047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048   *) ac_try_echo=$ac_try;;
11049 esac
11050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11051 $as_echo "$ac_try_echo") >&5
11052   (eval "$ac_compile") 2>conftest.er1
11053   ac_status=$?
11054   grep -v '^ *+' conftest.er1 >conftest.err
11055   rm -f conftest.er1
11056   cat conftest.err >&5
11057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058   (exit $ac_status); } && {
11059          test -z "$ac_c_werror_flag" ||
11060          test ! -s conftest.err
11061        } && test -s conftest.$ac_objext; then
11062   cat >conftest.$ac_ext <<_ACEOF
11063 /* confdefs.h.  */
11064 _ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h.  */
11068 $ac_includes_default
11069 int
11070 main ()
11071 {
11072 if (sizeof ((size_t)))
11073           return 0;
11074   ;
11075   return 0;
11076 }
11077 _ACEOF
11078 rm -f conftest.$ac_objext
11079 if { (ac_try="$ac_compile"
11080 case "(($ac_try" in
11081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082   *) ac_try_echo=$ac_try;;
11083 esac
11084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11085 $as_echo "$ac_try_echo") >&5
11086   (eval "$ac_compile") 2>conftest.er1
11087   ac_status=$?
11088   grep -v '^ *+' conftest.er1 >conftest.err
11089   rm -f conftest.er1
11090   cat conftest.err >&5
11091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092   (exit $ac_status); } && {
11093          test -z "$ac_c_werror_flag" ||
11094          test ! -s conftest.err
11095        } && test -s conftest.$ac_objext; then
11096   :
11097 else
11098   $as_echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.$ac_ext >&5
11100
11101         ac_cv_type_size_t=yes
11102 fi
11103
11104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11105 else
11106   $as_echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11108
11109
11110 fi
11111
11112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11113 fi
11114 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11115 $as_echo "$ac_cv_type_size_t" >&6; }
11116 if test "x$ac_cv_type_size_t" = x""yes; then
11117   :
11118 else
11119
11120 cat >>confdefs.h <<_ACEOF
11121 #define size_t unsigned int
11122 _ACEOF
11123
11124 fi
11125
11126
11127   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
11128 $as_echo_n "checking for inttypes.h... " >&6; }
11129 if test "${gl_cv_header_inttypes_h+set}" = set; then
11130   $as_echo_n "(cached) " >&6
11131 else
11132   cat >conftest.$ac_ext <<_ACEOF
11133 /* confdefs.h.  */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h.  */
11138 #include <sys/types.h>
11139 #include <inttypes.h>
11140 int
11141 main ()
11142 {
11143 uintmax_t i = (uintmax_t) -1;
11144   ;
11145   return 0;
11146 }
11147 _ACEOF
11148 rm -f conftest.$ac_objext
11149 if { (ac_try="$ac_compile"
11150 case "(($ac_try" in
11151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152   *) ac_try_echo=$ac_try;;
11153 esac
11154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11155 $as_echo "$ac_try_echo") >&5
11156   (eval "$ac_compile") 2>conftest.er1
11157   ac_status=$?
11158   grep -v '^ *+' conftest.er1 >conftest.err
11159   rm -f conftest.er1
11160   cat conftest.err >&5
11161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162   (exit $ac_status); } && {
11163          test -z "$ac_c_werror_flag" ||
11164          test ! -s conftest.err
11165        } && test -s conftest.$ac_objext; then
11166   gl_cv_header_inttypes_h=yes
11167 else
11168   $as_echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.$ac_ext >&5
11170
11171         gl_cv_header_inttypes_h=no
11172 fi
11173
11174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11175 fi
11176 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
11177 $as_echo "$gl_cv_header_inttypes_h" >&6; }
11178   if test $gl_cv_header_inttypes_h = yes; then
11179
11180 cat >>confdefs.h <<_ACEOF
11181 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
11182 _ACEOF
11183
11184   fi
11185
11186
11187   { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
11188 $as_echo_n "checking for stdint.h... " >&6; }
11189 if test "${gl_cv_header_stdint_h+set}" = set; then
11190   $as_echo_n "(cached) " >&6
11191 else
11192   cat >conftest.$ac_ext <<_ACEOF
11193 /* confdefs.h.  */
11194 _ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h.  */
11198 #include <sys/types.h>
11199 #include <stdint.h>
11200 int
11201 main ()
11202 {
11203 uintmax_t i = (uintmax_t) -1;
11204   ;
11205   return 0;
11206 }
11207 _ACEOF
11208 rm -f conftest.$ac_objext
11209 if { (ac_try="$ac_compile"
11210 case "(($ac_try" in
11211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212   *) ac_try_echo=$ac_try;;
11213 esac
11214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11215 $as_echo "$ac_try_echo") >&5
11216   (eval "$ac_compile") 2>conftest.er1
11217   ac_status=$?
11218   grep -v '^ *+' conftest.er1 >conftest.err
11219   rm -f conftest.er1
11220   cat conftest.err >&5
11221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222   (exit $ac_status); } && {
11223          test -z "$ac_c_werror_flag" ||
11224          test ! -s conftest.err
11225        } && test -s conftest.$ac_objext; then
11226   gl_cv_header_stdint_h=yes
11227 else
11228   $as_echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11230
11231         gl_cv_header_stdint_h=no
11232 fi
11233
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 fi
11236 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
11237 $as_echo "$gl_cv_header_stdint_h" >&6; }
11238   if test $gl_cv_header_stdint_h = yes; then
11239
11240 cat >>confdefs.h <<_ACEOF
11241 #define HAVE_STDINT_H_WITH_UINTMAX 1
11242 _ACEOF
11243
11244   fi
11245
11246
11247
11248
11249   { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
11250 $as_echo_n "checking for intmax_t... " >&6; }
11251 if test "${gt_cv_c_intmax_t+set}" = set; then
11252   $as_echo_n "(cached) " >&6
11253 else
11254   cat >conftest.$ac_ext <<_ACEOF
11255 /* confdefs.h.  */
11256 _ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h.  */
11260
11261 #include <stddef.h>
11262 #include <stdlib.h>
11263 #if HAVE_STDINT_H_WITH_UINTMAX
11264 #include <stdint.h>
11265 #endif
11266 #if HAVE_INTTYPES_H_WITH_UINTMAX
11267 #include <inttypes.h>
11268 #endif
11269
11270 int
11271 main ()
11272 {
11273 intmax_t x = -1; return !x;
11274   ;
11275   return 0;
11276 }
11277 _ACEOF
11278 rm -f conftest.$ac_objext
11279 if { (ac_try="$ac_compile"
11280 case "(($ac_try" in
11281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282   *) ac_try_echo=$ac_try;;
11283 esac
11284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11285 $as_echo "$ac_try_echo") >&5
11286   (eval "$ac_compile") 2>conftest.er1
11287   ac_status=$?
11288   grep -v '^ *+' conftest.er1 >conftest.err
11289   rm -f conftest.er1
11290   cat conftest.err >&5
11291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292   (exit $ac_status); } && {
11293          test -z "$ac_c_werror_flag" ||
11294          test ! -s conftest.err
11295        } && test -s conftest.$ac_objext; then
11296   gt_cv_c_intmax_t=yes
11297 else
11298   $as_echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11300
11301         gt_cv_c_intmax_t=no
11302 fi
11303
11304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11305 fi
11306 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
11307 $as_echo "$gt_cv_c_intmax_t" >&6; }
11308   if test $gt_cv_c_intmax_t = yes; then
11309
11310 cat >>confdefs.h <<\_ACEOF
11311 #define HAVE_INTMAX_T 1
11312 _ACEOF
11313
11314   else
11315
11316     test $ac_cv_type_long_long_int = yes \
11317       && ac_type='long long' \
11318       || ac_type='long'
11319
11320 cat >>confdefs.h <<_ACEOF
11321 #define intmax_t $ac_type
11322 _ACEOF
11323
11324   fi
11325
11326
11327   GNULIB_WCWIDTH=0;
11328     HAVE_DECL_WCWIDTH=1;
11329   REPLACE_WCWIDTH=0;
11330   WCHAR_H=
11331
11332
11333
11334    if true; then
11335   GL_COND_LIBTOOL_TRUE=
11336   GL_COND_LIBTOOL_FALSE='#'
11337 else
11338   GL_COND_LIBTOOL_TRUE='#'
11339   GL_COND_LIBTOOL_FALSE=
11340 fi
11341
11342   gl_cond_libtool=true
11343
11344
11345
11346   gl_source_base='gnulib'
11347
11348
11349
11350
11351
11352   if test $ac_cv_func_alloca_works = no; then
11353     :
11354   fi
11355
11356   # Define an additional variable used in the Makefile substitution.
11357   if test $ac_cv_working_alloca_h = yes; then
11358     { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
11359 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
11360 if test "${gl_cv_rpl_alloca+set}" = set; then
11361   $as_echo_n "(cached) " >&6
11362 else
11363
11364       cat >conftest.$ac_ext <<_ACEOF
11365 /* confdefs.h.  */
11366 _ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h.  */
11370
11371 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
11372         Need own alloca
11373 #endif
11374
11375 _ACEOF
11376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11377   $EGREP "Need own alloca" >/dev/null 2>&1; then
11378   gl_cv_rpl_alloca=yes
11379 else
11380   gl_cv_rpl_alloca=no
11381 fi
11382 rm -f conftest*
11383
11384
11385 fi
11386 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
11387 $as_echo "$gl_cv_rpl_alloca" >&6; }
11388     if test $gl_cv_rpl_alloca = yes; then
11389
11390 cat >>confdefs.h <<\_ACEOF
11391 #define HAVE_ALLOCA 1
11392 _ACEOF
11393
11394       ALLOCA_H=alloca.h
11395     else
11396                   ALLOCA_H=
11397     fi
11398   else
11399     ALLOCA_H=alloca.h
11400   fi
11401
11402
11403
11404
11405   :
11406
11407
11408
11409
11410
11411   if test $ac_cv_header_arpa_inet_h = yes; then
11412     ARPA_INET_H=''
11413   else
11414     ARPA_INET_H='arpa/inet.h'
11415   fi
11416
11417
11418   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
11419 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11420 if test -z "$MKDIR_P"; then
11421   if test "${ac_cv_path_mkdir+set}" = set; then
11422   $as_echo_n "(cached) " >&6
11423 else
11424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11425 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11426 do
11427   IFS=$as_save_IFS
11428   test -z "$as_dir" && as_dir=.
11429   for ac_prog in mkdir gmkdir; do
11430          for ac_exec_ext in '' $ac_executable_extensions; do
11431            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11432            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11433              'mkdir (GNU coreutils) '* | \
11434              'mkdir (coreutils) '* | \
11435              'mkdir (fileutils) '4.1*)
11436                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11437                break 3;;
11438            esac
11439          done
11440        done
11441 done
11442 IFS=$as_save_IFS
11443
11444 fi
11445
11446   if test "${ac_cv_path_mkdir+set}" = set; then
11447     MKDIR_P="$ac_cv_path_mkdir -p"
11448   else
11449     # As a last resort, use the slow shell script.  Don't cache a
11450     # value for MKDIR_P within a source directory, because that will
11451     # break other packages using the cache if that directory is
11452     # removed, or if the value is a relative name.
11453     test -d ./--version && rmdir ./--version
11454     MKDIR_P="$ac_install_sh -d"
11455   fi
11456 fi
11457 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
11458 $as_echo "$MKDIR_P" >&6; }
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469   FLOAT_H=
11470   case "$host_os" in
11471     beos* | openbsd*)
11472       FLOAT_H=float.h
11473
11474
11475
11476   :
11477
11478
11479
11480
11481
11482
11483
11484      if test $gl_cv_have_include_next = yes; then
11485        gl_cv_next_float_h='<'float.h'>'
11486      else
11487        { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
11488 $as_echo_n "checking absolute name of <float.h>... " >&6; }
11489 if test "${gl_cv_next_float_h+set}" = set; then
11490   $as_echo_n "(cached) " >&6
11491 else
11492
11493           if test $ac_cv_header_float_h = yes; then
11494             cat >conftest.$ac_ext <<_ACEOF
11495 /* confdefs.h.  */
11496 _ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h.  */
11500 #include <float.h>
11501
11502 _ACEOF
11503                                     gl_cv_next_float_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11504                sed -n '\#/float.h#{
11505                  s#.*"\(.*/float.h\)".*#\1#
11506                  s#^/[^/]#//&#
11507                  p
11508                  q
11509                }'`'"'
11510           else
11511             gl_cv_next_float_h='<'float.h'>'
11512           fi
11513
11514 fi
11515 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
11516 $as_echo "$gl_cv_next_float_h" >&6; }
11517      fi
11518      NEXT_FLOAT_H=$gl_cv_next_float_h
11519
11520
11521
11522       ;;
11523   esac
11524
11525
11526
11527
11528   :
11529
11530
11531
11532
11533
11534
11535   :
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545 for ac_header in sys/mount.h
11546 do
11547 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11548 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11549 $as_echo_n "checking for $ac_header... " >&6; }
11550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11551   $as_echo_n "(cached) " >&6
11552 else
11553   cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h.  */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h.  */
11559 $ac_includes_default
11560      #if HAVE_SYS_PARAM_H
11561        #include <sys/param.h>
11562       #endif
11563
11564 #include <$ac_header>
11565 _ACEOF
11566 rm -f conftest.$ac_objext
11567 if { (ac_try="$ac_compile"
11568 case "(($ac_try" in
11569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570   *) ac_try_echo=$ac_try;;
11571 esac
11572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11573 $as_echo "$ac_try_echo") >&5
11574   (eval "$ac_compile") 2>conftest.er1
11575   ac_status=$?
11576   grep -v '^ *+' conftest.er1 >conftest.err
11577   rm -f conftest.er1
11578   cat conftest.err >&5
11579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580   (exit $ac_status); } && {
11581          test -z "$ac_c_werror_flag" ||
11582          test ! -s conftest.err
11583        } && test -s conftest.$ac_objext; then
11584   eval "$as_ac_Header=yes"
11585 else
11586   $as_echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11588
11589         eval "$as_ac_Header=no"
11590 fi
11591
11592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11593 fi
11594 ac_res=`eval 'as_val=${'$as_ac_Header'}
11595                  $as_echo "$as_val"'`
11596                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11597 $as_echo "$ac_res" >&6; }
11598 as_val=`eval 'as_val=${'$as_ac_Header'}
11599                  $as_echo "$as_val"'`
11600    if test "x$as_val" = x""yes; then
11601   cat >>confdefs.h <<_ACEOF
11602 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11603 _ACEOF
11604
11605 fi
11606
11607 done
11608
11609
11610
11611 { $as_echo "$as_me:$LINENO: checking how to get file system space usage" >&5
11612 $as_echo "$as_me: checking how to get file system space usage" >&6;}
11613 ac_fsusage_space=no
11614
11615 # Perform only the link test since it seems there are no variants of the
11616 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
11617 # because that got a false positive on SCO OSR5.  Adding the declaration
11618 # of a `struct statvfs' causes this test to fail (as it should) on such
11619 # systems.  That system is reported to work fine with STAT_STATFS4 which
11620 # is what it gets when this test fails.
11621 if test $ac_fsusage_space = no; then
11622   # SVR4
11623   { $as_echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
11624 $as_echo_n "checking for statvfs function (SVR4)... " >&6; }
11625 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
11626   $as_echo_n "(cached) " >&6
11627 else
11628   cat >conftest.$ac_ext <<_ACEOF
11629 /* confdefs.h.  */
11630 _ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h.  */
11634 #include <sys/types.h>
11635 #if defined __GLIBC__ && !defined __BEOS__
11636 Do not use statvfs on systems with GNU libc, because that function stats
11637 all preceding entries in /proc/mounts, and that makes df hang if even
11638 one of the corresponding file systems is hard-mounted, but not available.
11639 statvfs in GNU libc on BeOS operates differently: it only makes a system
11640 call.
11641 #endif
11642
11643 #ifdef __osf__
11644 "Do not use Tru64's statvfs implementation"
11645 #endif
11646
11647 #include <sys/statvfs.h>
11648 int
11649 main ()
11650 {
11651 struct statvfs fsd; statvfs (0, &fsd);
11652   ;
11653   return 0;
11654 }
11655 _ACEOF
11656 rm -f conftest.$ac_objext conftest$ac_exeext
11657 if { (ac_try="$ac_link"
11658 case "(($ac_try" in
11659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660   *) ac_try_echo=$ac_try;;
11661 esac
11662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11663 $as_echo "$ac_try_echo") >&5
11664   (eval "$ac_link") 2>conftest.er1
11665   ac_status=$?
11666   grep -v '^ *+' conftest.er1 >conftest.err
11667   rm -f conftest.er1
11668   cat conftest.err >&5
11669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670   (exit $ac_status); } && {
11671          test -z "$ac_c_werror_flag" ||
11672          test ! -s conftest.err
11673        } && test -s conftest$ac_exeext && {
11674          test "$cross_compiling" = yes ||
11675          $as_test_x conftest$ac_exeext
11676        }; then
11677   fu_cv_sys_stat_statvfs=yes
11678 else
11679   $as_echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11681
11682         fu_cv_sys_stat_statvfs=no
11683 fi
11684
11685 rm -rf conftest.dSYM
11686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11687       conftest$ac_exeext conftest.$ac_ext
11688 fi
11689 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
11690 $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
11691   if test $fu_cv_sys_stat_statvfs = yes; then
11692     ac_fsusage_space=yes
11693
11694 cat >>confdefs.h <<\_ACEOF
11695 #define STAT_STATVFS 1
11696 _ACEOF
11697
11698   fi
11699 fi
11700
11701 if test $ac_fsusage_space = no; then
11702   # DEC Alpha running OSF/1
11703   { $as_echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
11704 $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
11705   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
11706   $as_echo_n "(cached) " >&6
11707 else
11708   if test "$cross_compiling" = yes; then
11709   fu_cv_sys_stat_statfs3_osf1=no
11710 else
11711   cat >conftest.$ac_ext <<_ACEOF
11712 /* confdefs.h.  */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h.  */
11717
11718 #include <sys/param.h>
11719 #include <sys/types.h>
11720 #include <sys/mount.h>
11721   int
11722   main ()
11723   {
11724     struct statfs fsd;
11725     fsd.f_fsize = 0;
11726     return statfs (".", &fsd, sizeof (struct statfs)) != 0;
11727   }
11728 _ACEOF
11729 rm -f conftest$ac_exeext
11730 if { (ac_try="$ac_link"
11731 case "(($ac_try" in
11732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733   *) ac_try_echo=$ac_try;;
11734 esac
11735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11736 $as_echo "$ac_try_echo") >&5
11737   (eval "$ac_link") 2>&5
11738   ac_status=$?
11739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11741   { (case "(($ac_try" in
11742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743   *) ac_try_echo=$ac_try;;
11744 esac
11745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11746 $as_echo "$ac_try_echo") >&5
11747   (eval "$ac_try") 2>&5
11748   ac_status=$?
11749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750   (exit $ac_status); }; }; then
11751   fu_cv_sys_stat_statfs3_osf1=yes
11752 else
11753   $as_echo "$as_me: program exited with status $ac_status" >&5
11754 $as_echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.$ac_ext >&5
11756
11757 ( exit $ac_status )
11758 fu_cv_sys_stat_statfs3_osf1=no
11759 fi
11760 rm -rf conftest.dSYM
11761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11762 fi
11763
11764
11765 fi
11766
11767   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
11768 $as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
11769   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11770     ac_fsusage_space=yes
11771
11772 cat >>confdefs.h <<\_ACEOF
11773 #define STAT_STATFS3_OSF1 1
11774 _ACEOF
11775
11776   fi
11777 fi
11778
11779 if test $ac_fsusage_space = no; then
11780 # AIX
11781   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11782 $as_echo_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... " >&6; }
11783   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
11784   $as_echo_n "(cached) " >&6
11785 else
11786   if test "$cross_compiling" = yes; then
11787   fu_cv_sys_stat_statfs2_bsize=no
11788 else
11789   cat >conftest.$ac_ext <<_ACEOF
11790 /* confdefs.h.  */
11791 _ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h.  */
11795
11796 #ifdef HAVE_SYS_PARAM_H
11797 #include <sys/param.h>
11798 #endif
11799 #ifdef HAVE_SYS_MOUNT_H
11800 #include <sys/mount.h>
11801 #endif
11802 #ifdef HAVE_SYS_VFS_H
11803 #include <sys/vfs.h>
11804 #endif
11805   int
11806   main ()
11807   {
11808   struct statfs fsd;
11809   fsd.f_bsize = 0;
11810   return statfs (".", &fsd) != 0;
11811   }
11812 _ACEOF
11813 rm -f conftest$ac_exeext
11814 if { (ac_try="$ac_link"
11815 case "(($ac_try" in
11816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817   *) ac_try_echo=$ac_try;;
11818 esac
11819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11820 $as_echo "$ac_try_echo") >&5
11821   (eval "$ac_link") 2>&5
11822   ac_status=$?
11823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11825   { (case "(($ac_try" in
11826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827   *) ac_try_echo=$ac_try;;
11828 esac
11829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11830 $as_echo "$ac_try_echo") >&5
11831   (eval "$ac_try") 2>&5
11832   ac_status=$?
11833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); }; }; then
11835   fu_cv_sys_stat_statfs2_bsize=yes
11836 else
11837   $as_echo "$as_me: program exited with status $ac_status" >&5
11838 $as_echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11840
11841 ( exit $ac_status )
11842 fu_cv_sys_stat_statfs2_bsize=no
11843 fi
11844 rm -rf conftest.dSYM
11845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11846 fi
11847
11848
11849 fi
11850
11851   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
11852 $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
11853   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11854     ac_fsusage_space=yes
11855
11856 cat >>confdefs.h <<\_ACEOF
11857 #define STAT_STATFS2_BSIZE 1
11858 _ACEOF
11859
11860   fi
11861 fi
11862
11863 if test $ac_fsusage_space = no; then
11864 # SVR3
11865   { $as_echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11866 $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
11867   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
11868   $as_echo_n "(cached) " >&6
11869 else
11870   if test "$cross_compiling" = yes; then
11871   fu_cv_sys_stat_statfs4=no
11872 else
11873   cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h.  */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h.  */
11879 #include <sys/types.h>
11880 #include <sys/statfs.h>
11881   int
11882   main ()
11883   {
11884   struct statfs fsd;
11885   return statfs (".", &fsd, sizeof fsd, 0) != 0;
11886   }
11887 _ACEOF
11888 rm -f conftest$ac_exeext
11889 if { (ac_try="$ac_link"
11890 case "(($ac_try" in
11891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892   *) ac_try_echo=$ac_try;;
11893 esac
11894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11895 $as_echo "$ac_try_echo") >&5
11896   (eval "$ac_link") 2>&5
11897   ac_status=$?
11898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11900   { (case "(($ac_try" in
11901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902   *) ac_try_echo=$ac_try;;
11903 esac
11904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11905 $as_echo "$ac_try_echo") >&5
11906   (eval "$ac_try") 2>&5
11907   ac_status=$?
11908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909   (exit $ac_status); }; }; then
11910   fu_cv_sys_stat_statfs4=yes
11911 else
11912   $as_echo "$as_me: program exited with status $ac_status" >&5
11913 $as_echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11915
11916 ( exit $ac_status )
11917 fu_cv_sys_stat_statfs4=no
11918 fi
11919 rm -rf conftest.dSYM
11920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11921 fi
11922
11923
11924 fi
11925
11926   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
11927 $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
11928   if test $fu_cv_sys_stat_statfs4 = yes; then
11929     ac_fsusage_space=yes
11930
11931 cat >>confdefs.h <<\_ACEOF
11932 #define STAT_STATFS4 1
11933 _ACEOF
11934
11935   fi
11936 fi
11937
11938 if test $ac_fsusage_space = no; then
11939 # 4.4BSD and NetBSD
11940   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11941 $as_echo_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... " >&6; }
11942   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
11943   $as_echo_n "(cached) " >&6
11944 else
11945   if test "$cross_compiling" = yes; then
11946   fu_cv_sys_stat_statfs2_fsize=no
11947 else
11948   cat >conftest.$ac_ext <<_ACEOF
11949 /* confdefs.h.  */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h.  */
11954 #include <sys/types.h>
11955 #ifdef HAVE_SYS_PARAM_H
11956 #include <sys/param.h>
11957 #endif
11958 #ifdef HAVE_SYS_MOUNT_H
11959 #include <sys/mount.h>
11960 #endif
11961   int
11962   main ()
11963   {
11964   struct statfs fsd;
11965   fsd.f_fsize = 0;
11966   return statfs (".", &fsd) != 0;
11967   }
11968 _ACEOF
11969 rm -f conftest$ac_exeext
11970 if { (ac_try="$ac_link"
11971 case "(($ac_try" in
11972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973   *) ac_try_echo=$ac_try;;
11974 esac
11975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11976 $as_echo "$ac_try_echo") >&5
11977   (eval "$ac_link") 2>&5
11978   ac_status=$?
11979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11981   { (case "(($ac_try" in
11982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983   *) ac_try_echo=$ac_try;;
11984 esac
11985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11986 $as_echo "$ac_try_echo") >&5
11987   (eval "$ac_try") 2>&5
11988   ac_status=$?
11989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); }; }; then
11991   fu_cv_sys_stat_statfs2_fsize=yes
11992 else
11993   $as_echo "$as_me: program exited with status $ac_status" >&5
11994 $as_echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11996
11997 ( exit $ac_status )
11998 fu_cv_sys_stat_statfs2_fsize=no
11999 fi
12000 rm -rf conftest.dSYM
12001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12002 fi
12003
12004
12005 fi
12006
12007   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
12008 $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
12009   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12010     ac_fsusage_space=yes
12011
12012 cat >>confdefs.h <<\_ACEOF
12013 #define STAT_STATFS2_FSIZE 1
12014 _ACEOF
12015
12016   fi
12017 fi
12018
12019 if test $ac_fsusage_space = no; then
12020   # Ultrix
12021   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12022 $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
12023   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
12024   $as_echo_n "(cached) " >&6
12025 else
12026   if test "$cross_compiling" = yes; then
12027   fu_cv_sys_stat_fs_data=no
12028 else
12029   cat >conftest.$ac_ext <<_ACEOF
12030 /* confdefs.h.  */
12031 _ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h.  */
12035 #include <sys/types.h>
12036 #ifdef HAVE_SYS_PARAM_H
12037 #include <sys/param.h>
12038 #endif
12039 #ifdef HAVE_SYS_MOUNT_H
12040 #include <sys/mount.h>
12041 #endif
12042 #ifdef HAVE_SYS_FS_TYPES_H
12043 #include <sys/fs_types.h>
12044 #endif
12045   int
12046   main ()
12047   {
12048   struct fs_data fsd;
12049   /* Ultrix's statfs returns 1 for success,
12050      0 for not mounted, -1 for failure.  */
12051   return statfs (".", &fsd) != 1;
12052   }
12053 _ACEOF
12054 rm -f conftest$ac_exeext
12055 if { (ac_try="$ac_link"
12056 case "(($ac_try" in
12057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058   *) ac_try_echo=$ac_try;;
12059 esac
12060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12061 $as_echo "$ac_try_echo") >&5
12062   (eval "$ac_link") 2>&5
12063   ac_status=$?
12064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12066   { (case "(($ac_try" in
12067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12068   *) ac_try_echo=$ac_try;;
12069 esac
12070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12071 $as_echo "$ac_try_echo") >&5
12072   (eval "$ac_try") 2>&5
12073   ac_status=$?
12074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; }; then
12076   fu_cv_sys_stat_fs_data=yes
12077 else
12078   $as_echo "$as_me: program exited with status $ac_status" >&5
12079 $as_echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12081
12082 ( exit $ac_status )
12083 fu_cv_sys_stat_fs_data=no
12084 fi
12085 rm -rf conftest.dSYM
12086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12087 fi
12088
12089
12090 fi
12091
12092   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
12093 $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
12094   if test $fu_cv_sys_stat_fs_data = yes; then
12095     ac_fsusage_space=yes
12096
12097 cat >>confdefs.h <<\_ACEOF
12098 #define STAT_STATFS2_FS_DATA 1
12099 _ACEOF
12100
12101   fi
12102 fi
12103
12104 if test $ac_fsusage_space = no; then
12105   # SVR2
12106   cat >conftest.$ac_ext <<_ACEOF
12107 /* confdefs.h.  */
12108 _ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h.  */
12112 #include <sys/filsys.h>
12113
12114 _ACEOF
12115 if { (ac_try="$ac_cpp conftest.$ac_ext"
12116 case "(($ac_try" in
12117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118   *) ac_try_echo=$ac_try;;
12119 esac
12120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12121 $as_echo "$ac_try_echo") >&5
12122   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12123   ac_status=$?
12124   grep -v '^ *+' conftest.er1 >conftest.err
12125   rm -f conftest.er1
12126   cat conftest.err >&5
12127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); } >/dev/null && {
12129          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12130          test ! -s conftest.err
12131        }; then
12132
12133 cat >>confdefs.h <<\_ACEOF
12134 #define STAT_READ_FILSYS 1
12135 _ACEOF
12136
12137     ac_fsusage_space=yes
12138 else
12139   $as_echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12141
12142
12143 fi
12144
12145 rm -f conftest.err conftest.$ac_ext
12146 fi
12147
12148 if test $ac_fsusage_space = yes; then
12149   gl_cv_fs_space=yes
12150 else
12151   gl_cv_fs_space=no
12152 fi
12153
12154
12155
12156   if test $gl_cv_fs_space = yes; then
12157
12158
12159
12160
12161
12162
12163
12164   gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
12165
12166
12167
12168
12169
12170
12171 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
12172 do
12173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12175   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12176 $as_echo_n "checking for $ac_header... " >&6; }
12177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12178   $as_echo_n "(cached) " >&6
12179 fi
12180 ac_res=`eval 'as_val=${'$as_ac_Header'}
12181                  $as_echo "$as_val"'`
12182                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12183 $as_echo "$ac_res" >&6; }
12184 else
12185   # Is the header compilable?
12186 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12187 $as_echo_n "checking $ac_header usability... " >&6; }
12188 cat >conftest.$ac_ext <<_ACEOF
12189 /* confdefs.h.  */
12190 _ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h.  */
12194 $ac_includes_default
12195 #include <$ac_header>
12196 _ACEOF
12197 rm -f conftest.$ac_objext
12198 if { (ac_try="$ac_compile"
12199 case "(($ac_try" in
12200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201   *) ac_try_echo=$ac_try;;
12202 esac
12203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12204 $as_echo "$ac_try_echo") >&5
12205   (eval "$ac_compile") 2>conftest.er1
12206   ac_status=$?
12207   grep -v '^ *+' conftest.er1 >conftest.err
12208   rm -f conftest.er1
12209   cat conftest.err >&5
12210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211   (exit $ac_status); } && {
12212          test -z "$ac_c_werror_flag" ||
12213          test ! -s conftest.err
12214        } && test -s conftest.$ac_objext; then
12215   ac_header_compiler=yes
12216 else
12217   $as_echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12219
12220         ac_header_compiler=no
12221 fi
12222
12223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12224 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12225 $as_echo "$ac_header_compiler" >&6; }
12226
12227 # Is the header present?
12228 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12229 $as_echo_n "checking $ac_header presence... " >&6; }
12230 cat >conftest.$ac_ext <<_ACEOF
12231 /* confdefs.h.  */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h.  */
12236 #include <$ac_header>
12237 _ACEOF
12238 if { (ac_try="$ac_cpp conftest.$ac_ext"
12239 case "(($ac_try" in
12240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241   *) ac_try_echo=$ac_try;;
12242 esac
12243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12244 $as_echo "$ac_try_echo") >&5
12245   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12246   ac_status=$?
12247   grep -v '^ *+' conftest.er1 >conftest.err
12248   rm -f conftest.er1
12249   cat conftest.err >&5
12250   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251   (exit $ac_status); } >/dev/null && {
12252          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12253          test ! -s conftest.err
12254        }; then
12255   ac_header_preproc=yes
12256 else
12257   $as_echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12259
12260   ac_header_preproc=no
12261 fi
12262
12263 rm -f conftest.err conftest.$ac_ext
12264 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12265 $as_echo "$ac_header_preproc" >&6; }
12266
12267 # So?  What about this header?
12268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12269   yes:no: )
12270     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12271 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12272     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12273 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12274     ac_header_preproc=yes
12275     ;;
12276   no:yes:* )
12277     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12278 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12279     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12280 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12281     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12282 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12283     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12284 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12285     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12287     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12288 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12289
12290     ;;
12291 esac
12292 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12293 $as_echo_n "checking for $ac_header... " >&6; }
12294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12295   $as_echo_n "(cached) " >&6
12296 else
12297   eval "$as_ac_Header=\$ac_header_preproc"
12298 fi
12299 ac_res=`eval 'as_val=${'$as_ac_Header'}
12300                  $as_echo "$as_val"'`
12301                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12302 $as_echo "$ac_res" >&6; }
12303
12304 fi
12305 as_val=`eval 'as_val=${'$as_ac_Header'}
12306                  $as_echo "$as_val"'`
12307    if test "x$as_val" = x""yes; then
12308   cat >>confdefs.h <<_ACEOF
12309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12310 _ACEOF
12311
12312 fi
12313
12314 done
12315
12316
12317   { $as_echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
12318 $as_echo_n "checking for statfs that truncates block counts... " >&6; }
12319   if test "${fu_cv_sys_truncating_statfs+set}" = set; then
12320   $as_echo_n "(cached) " >&6
12321 else
12322   cat >conftest.$ac_ext <<_ACEOF
12323 /* confdefs.h.  */
12324 _ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h.  */
12328
12329 #if !defined(sun) && !defined(__sun)
12330 choke -- this is a workaround for a Sun-specific problem
12331 #endif
12332 #include <sys/types.h>
12333 #include <sys/vfs.h>
12334 int
12335 main ()
12336 {
12337 struct statfs t; long c = *(t.f_spare);
12338       if (c) return 0;
12339   ;
12340   return 0;
12341 }
12342 _ACEOF
12343 rm -f conftest.$ac_objext
12344 if { (ac_try="$ac_compile"
12345 case "(($ac_try" in
12346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347   *) ac_try_echo=$ac_try;;
12348 esac
12349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12350 $as_echo "$ac_try_echo") >&5
12351   (eval "$ac_compile") 2>conftest.er1
12352   ac_status=$?
12353   grep -v '^ *+' conftest.er1 >conftest.err
12354   rm -f conftest.er1
12355   cat conftest.err >&5
12356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); } && {
12358          test -z "$ac_c_werror_flag" ||
12359          test ! -s conftest.err
12360        } && test -s conftest.$ac_objext; then
12361   fu_cv_sys_truncating_statfs=yes
12362 else
12363   $as_echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12365
12366         fu_cv_sys_truncating_statfs=no
12367 fi
12368
12369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12370 fi
12371
12372   if test $fu_cv_sys_truncating_statfs = yes; then
12373
12374 cat >>confdefs.h <<\_ACEOF
12375 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
12376 _ACEOF
12377
12378   fi
12379   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
12380 $as_echo "$fu_cv_sys_truncating_statfs" >&6; }
12381
12382
12383   fi
12384
12385
12386     { $as_echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
12387 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
12388
12389
12390   :
12391
12392
12393
12394
12395
12396
12397   { $as_echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
12398 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12399 if test "${ac_cv_search_getaddrinfo+set}" = set; then
12400   $as_echo_n "(cached) " >&6
12401 else
12402   ac_func_search_save_LIBS=$LIBS
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h.  */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h.  */
12409
12410 /* Override any GCC internal prototype to avoid an error.
12411    Use char because int might match the return type of a GCC
12412    builtin and then its argument prototype would still apply.  */
12413 #ifdef __cplusplus
12414 extern "C"
12415 #endif
12416 char getaddrinfo ();
12417 int
12418 main ()
12419 {
12420 return getaddrinfo ();
12421   ;
12422   return 0;
12423 }
12424 _ACEOF
12425 for ac_lib in '' nsl socket; do
12426   if test -z "$ac_lib"; then
12427     ac_res="none required"
12428   else
12429     ac_res=-l$ac_lib
12430     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12431   fi
12432   rm -f conftest.$ac_objext conftest$ac_exeext
12433 if { (ac_try="$ac_link"
12434 case "(($ac_try" in
12435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436   *) ac_try_echo=$ac_try;;
12437 esac
12438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12439 $as_echo "$ac_try_echo") >&5
12440   (eval "$ac_link") 2>conftest.er1
12441   ac_status=$?
12442   grep -v '^ *+' conftest.er1 >conftest.err
12443   rm -f conftest.er1
12444   cat conftest.err >&5
12445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446   (exit $ac_status); } && {
12447          test -z "$ac_c_werror_flag" ||
12448          test ! -s conftest.err
12449        } && test -s conftest$ac_exeext && {
12450          test "$cross_compiling" = yes ||
12451          $as_test_x conftest$ac_exeext
12452        }; then
12453   ac_cv_search_getaddrinfo=$ac_res
12454 else
12455   $as_echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12457
12458
12459 fi
12460
12461 rm -rf conftest.dSYM
12462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12463       conftest$ac_exeext
12464   if test "${ac_cv_search_getaddrinfo+set}" = set; then
12465   break
12466 fi
12467 done
12468 if test "${ac_cv_search_getaddrinfo+set}" = set; then
12469   :
12470 else
12471   ac_cv_search_getaddrinfo=no
12472 fi
12473 rm conftest.$ac_ext
12474 LIBS=$ac_func_search_save_LIBS
12475 fi
12476 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
12477 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12478 ac_res=$ac_cv_search_getaddrinfo
12479 if test "$ac_res" != no; then
12480   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12481
12482 fi
12483
12484   { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
12485 $as_echo_n "checking for getaddrinfo... " >&6; }
12486 if test "${gl_cv_func_getaddrinfo+set}" = set; then
12487   $as_echo_n "(cached) " >&6
12488 else
12489
12490     cat >conftest.$ac_ext <<_ACEOF
12491 /* confdefs.h.  */
12492 _ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h.  */
12496
12497 #include <sys/types.h>
12498 #ifdef HAVE_SYS_SOCKET_H
12499 #include <sys/socket.h>
12500 #endif
12501 #ifdef HAVE_NETDB_H
12502 #include <netdb.h>
12503 #endif
12504 #include <stddef.h>
12505
12506 int
12507 main ()
12508 {
12509 getaddrinfo("", "", NULL, NULL);
12510   ;
12511   return 0;
12512 }
12513 _ACEOF
12514 rm -f conftest.$ac_objext conftest$ac_exeext
12515 if { (ac_try="$ac_link"
12516 case "(($ac_try" in
12517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518   *) ac_try_echo=$ac_try;;
12519 esac
12520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12521 $as_echo "$ac_try_echo") >&5
12522   (eval "$ac_link") 2>conftest.er1
12523   ac_status=$?
12524   grep -v '^ *+' conftest.er1 >conftest.err
12525   rm -f conftest.er1
12526   cat conftest.err >&5
12527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   (exit $ac_status); } && {
12529          test -z "$ac_c_werror_flag" ||
12530          test ! -s conftest.err
12531        } && test -s conftest$ac_exeext && {
12532          test "$cross_compiling" = yes ||
12533          $as_test_x conftest$ac_exeext
12534        }; then
12535   gl_cv_func_getaddrinfo=yes
12536 else
12537   $as_echo "$as_me: failed program was:" >&5
12538 sed 's/^/| /' conftest.$ac_ext >&5
12539
12540         gl_cv_func_getaddrinfo=no
12541 fi
12542
12543 rm -rf conftest.dSYM
12544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12545       conftest$ac_exeext conftest.$ac_ext
12546 fi
12547 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getaddrinfo" >&5
12548 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
12549   if test $gl_cv_func_getaddrinfo = no; then
12550     { $as_echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
12551 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
12552 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
12553   $as_echo_n "(cached) " >&6
12554 else
12555
12556       gl_cv_w32_getaddrinfo=no
12557       am_save_LIBS="$LIBS"
12558       LIBS="$LIBS -lws2_32"
12559       cat >conftest.$ac_ext <<_ACEOF
12560 /* confdefs.h.  */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h.  */
12565
12566 #ifdef HAVE_WS2TCPIP_H
12567 #include <ws2tcpip.h>
12568 #endif
12569 #include <stddef.h>
12570
12571 int
12572 main ()
12573 {
12574 getaddrinfo(NULL, NULL, NULL, NULL);
12575   ;
12576   return 0;
12577 }
12578 _ACEOF
12579 rm -f conftest.$ac_objext conftest$ac_exeext
12580 if { (ac_try="$ac_link"
12581 case "(($ac_try" in
12582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583   *) ac_try_echo=$ac_try;;
12584 esac
12585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12586 $as_echo "$ac_try_echo") >&5
12587   (eval "$ac_link") 2>conftest.er1
12588   ac_status=$?
12589   grep -v '^ *+' conftest.er1 >conftest.err
12590   rm -f conftest.er1
12591   cat conftest.err >&5
12592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593   (exit $ac_status); } && {
12594          test -z "$ac_c_werror_flag" ||
12595          test ! -s conftest.err
12596        } && test -s conftest$ac_exeext && {
12597          test "$cross_compiling" = yes ||
12598          $as_test_x conftest$ac_exeext
12599        }; then
12600   gl_cv_w32_getaddrinfo=yes
12601 else
12602   $as_echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12604
12605
12606 fi
12607
12608 rm -rf conftest.dSYM
12609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12610       conftest$ac_exeext conftest.$ac_ext
12611     LIBS="$am_save_LIBS"
12612 fi
12613 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
12614 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
12615     if test "$gl_cv_w32_getaddrinfo" = "yes"; then
12616       LIBS="$LIBS -lws2_32"
12617     else
12618
12619
12620
12621
12622
12623
12624
12625   gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
12626
12627     fi
12628   fi
12629
12630   # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
12631   # inline function declared in ws2tcpip.h, so we need to get that
12632   # header included somehow.
12633   { $as_echo "$as_me:$LINENO: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
12634 $as_echo_n "checking for gai_strerror (possibly via ws2tcpip.h)... " >&6; }
12635 if test "${gl_cv_func_gai_strerror+set}" = set; then
12636   $as_echo_n "(cached) " >&6
12637 else
12638
12639       cat >conftest.$ac_ext <<_ACEOF
12640 /* confdefs.h.  */
12641 _ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h.  */
12645
12646 #include <sys/types.h>
12647 #ifdef HAVE_SYS_SOCKET_H
12648 #include <sys/socket.h>
12649 #endif
12650 #ifdef HAVE_NETDB_H
12651 #include <netdb.h>
12652 #endif
12653 #ifdef HAVE_WS2TCPIP_H
12654 #include <ws2tcpip.h>
12655 #endif
12656 #include <stddef.h>
12657
12658 int
12659 main ()
12660 {
12661 gai_strerror (NULL);
12662   ;
12663   return 0;
12664 }
12665 _ACEOF
12666 rm -f conftest.$ac_objext conftest$ac_exeext
12667 if { (ac_try="$ac_link"
12668 case "(($ac_try" in
12669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12670   *) ac_try_echo=$ac_try;;
12671 esac
12672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12673 $as_echo "$ac_try_echo") >&5
12674   (eval "$ac_link") 2>conftest.er1
12675   ac_status=$?
12676   grep -v '^ *+' conftest.er1 >conftest.err
12677   rm -f conftest.er1
12678   cat conftest.err >&5
12679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680   (exit $ac_status); } && {
12681          test -z "$ac_c_werror_flag" ||
12682          test ! -s conftest.err
12683        } && test -s conftest$ac_exeext && {
12684          test "$cross_compiling" = yes ||
12685          $as_test_x conftest$ac_exeext
12686        }; then
12687   gl_cv_func_gai_strerror=yes
12688 else
12689   $as_echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12691
12692         gl_cv_func_gai_strerror=no
12693 fi
12694
12695 rm -rf conftest.dSYM
12696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12697       conftest$ac_exeext conftest.$ac_ext
12698 fi
12699 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gai_strerror" >&5
12700 $as_echo "$gl_cv_func_gai_strerror" >&6; }
12701   if test $gl_cv_func_gai_strerror = no; then
12702
12703
12704
12705
12706
12707
12708
12709   gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
12710
12711   fi
12712
12713
12714     { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
12715 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12716 if test "${ac_cv_search_gethostbyname+set}" = set; then
12717   $as_echo_n "(cached) " >&6
12718 else
12719   ac_func_search_save_LIBS=$LIBS
12720 cat >conftest.$ac_ext <<_ACEOF
12721 /* confdefs.h.  */
12722 _ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h.  */
12726
12727 /* Override any GCC internal prototype to avoid an error.
12728    Use char because int might match the return type of a GCC
12729    builtin and then its argument prototype would still apply.  */
12730 #ifdef __cplusplus
12731 extern "C"
12732 #endif
12733 char gethostbyname ();
12734 int
12735 main ()
12736 {
12737 return gethostbyname ();
12738   ;
12739   return 0;
12740 }
12741 _ACEOF
12742 for ac_lib in '' inet nsl; do
12743   if test -z "$ac_lib"; then
12744     ac_res="none required"
12745   else
12746     ac_res=-l$ac_lib
12747     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12748   fi
12749   rm -f conftest.$ac_objext conftest$ac_exeext
12750 if { (ac_try="$ac_link"
12751 case "(($ac_try" in
12752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753   *) ac_try_echo=$ac_try;;
12754 esac
12755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12756 $as_echo "$ac_try_echo") >&5
12757   (eval "$ac_link") 2>conftest.er1
12758   ac_status=$?
12759   grep -v '^ *+' conftest.er1 >conftest.err
12760   rm -f conftest.er1
12761   cat conftest.err >&5
12762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); } && {
12764          test -z "$ac_c_werror_flag" ||
12765          test ! -s conftest.err
12766        } && test -s conftest$ac_exeext && {
12767          test "$cross_compiling" = yes ||
12768          $as_test_x conftest$ac_exeext
12769        }; then
12770   ac_cv_search_gethostbyname=$ac_res
12771 else
12772   $as_echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12774
12775
12776 fi
12777
12778 rm -rf conftest.dSYM
12779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12780       conftest$ac_exeext
12781   if test "${ac_cv_search_gethostbyname+set}" = set; then
12782   break
12783 fi
12784 done
12785 if test "${ac_cv_search_gethostbyname+set}" = set; then
12786   :
12787 else
12788   ac_cv_search_gethostbyname=no
12789 fi
12790 rm conftest.$ac_ext
12791 LIBS=$ac_func_search_save_LIBS
12792 fi
12793 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
12794 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12795 ac_res=$ac_cv_search_gethostbyname
12796 if test "$ac_res" != no; then
12797   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12798
12799 fi
12800
12801   { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
12802 $as_echo_n "checking for library containing getservbyname... " >&6; }
12803 if test "${ac_cv_search_getservbyname+set}" = set; then
12804   $as_echo_n "(cached) " >&6
12805 else
12806   ac_func_search_save_LIBS=$LIBS
12807 cat >conftest.$ac_ext <<_ACEOF
12808 /* confdefs.h.  */
12809 _ACEOF
12810 cat confdefs.h >>conftest.$ac_ext
12811 cat >>conftest.$ac_ext <<_ACEOF
12812 /* end confdefs.h.  */
12813
12814 /* Override any GCC internal prototype to avoid an error.
12815    Use char because int might match the return type of a GCC
12816    builtin and then its argument prototype would still apply.  */
12817 #ifdef __cplusplus
12818 extern "C"
12819 #endif
12820 char getservbyname ();
12821 int
12822 main ()
12823 {
12824 return getservbyname ();
12825   ;
12826   return 0;
12827 }
12828 _ACEOF
12829 for ac_lib in '' inet nsl socket xnet; do
12830   if test -z "$ac_lib"; then
12831     ac_res="none required"
12832   else
12833     ac_res=-l$ac_lib
12834     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12835   fi
12836   rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (ac_try="$ac_link"
12838 case "(($ac_try" in
12839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840   *) ac_try_echo=$ac_try;;
12841 esac
12842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12843 $as_echo "$ac_try_echo") >&5
12844   (eval "$ac_link") 2>conftest.er1
12845   ac_status=$?
12846   grep -v '^ *+' conftest.er1 >conftest.err
12847   rm -f conftest.er1
12848   cat conftest.err >&5
12849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); } && {
12851          test -z "$ac_c_werror_flag" ||
12852          test ! -s conftest.err
12853        } && test -s conftest$ac_exeext && {
12854          test "$cross_compiling" = yes ||
12855          $as_test_x conftest$ac_exeext
12856        }; then
12857   ac_cv_search_getservbyname=$ac_res
12858 else
12859   $as_echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12861
12862
12863 fi
12864
12865 rm -rf conftest.dSYM
12866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12867       conftest$ac_exeext
12868   if test "${ac_cv_search_getservbyname+set}" = set; then
12869   break
12870 fi
12871 done
12872 if test "${ac_cv_search_getservbyname+set}" = set; then
12873   :
12874 else
12875   ac_cv_search_getservbyname=no
12876 fi
12877 rm conftest.$ac_ext
12878 LIBS=$ac_func_search_save_LIBS
12879 fi
12880 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
12881 $as_echo "$ac_cv_search_getservbyname" >&6; }
12882 ac_res=$ac_cv_search_getservbyname
12883 if test "$ac_res" != no; then
12884   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12885
12886 fi
12887
12888
12889 for ac_func in gethostbyname
12890 do
12891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12892 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12893 $as_echo_n "checking for $ac_func... " >&6; }
12894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12895   $as_echo_n "(cached) " >&6
12896 else
12897   cat >conftest.$ac_ext <<_ACEOF
12898 /* confdefs.h.  */
12899 _ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h.  */
12903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12905 #define $ac_func innocuous_$ac_func
12906
12907 /* System header to define __stub macros and hopefully few prototypes,
12908     which can conflict with char $ac_func (); below.
12909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12910     <limits.h> exists even on freestanding compilers.  */
12911
12912 #ifdef __STDC__
12913 # include <limits.h>
12914 #else
12915 # include <assert.h>
12916 #endif
12917
12918 #undef $ac_func
12919
12920 /* Override any GCC internal prototype to avoid an error.
12921    Use char because int might match the return type of a GCC
12922    builtin and then its argument prototype would still apply.  */
12923 #ifdef __cplusplus
12924 extern "C"
12925 #endif
12926 char $ac_func ();
12927 /* The GNU C library defines this for functions which it implements
12928     to always fail with ENOSYS.  Some functions are actually named
12929     something starting with __ and the normal name is an alias.  */
12930 #if defined __stub_$ac_func || defined __stub___$ac_func
12931 choke me
12932 #endif
12933
12934 int
12935 main ()
12936 {
12937 return $ac_func ();
12938   ;
12939   return 0;
12940 }
12941 _ACEOF
12942 rm -f conftest.$ac_objext conftest$ac_exeext
12943 if { (ac_try="$ac_link"
12944 case "(($ac_try" in
12945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946   *) ac_try_echo=$ac_try;;
12947 esac
12948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12949 $as_echo "$ac_try_echo") >&5
12950   (eval "$ac_link") 2>conftest.er1
12951   ac_status=$?
12952   grep -v '^ *+' conftest.er1 >conftest.err
12953   rm -f conftest.er1
12954   cat conftest.err >&5
12955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); } && {
12957          test -z "$ac_c_werror_flag" ||
12958          test ! -s conftest.err
12959        } && test -s conftest$ac_exeext && {
12960          test "$cross_compiling" = yes ||
12961          $as_test_x conftest$ac_exeext
12962        }; then
12963   eval "$as_ac_var=yes"
12964 else
12965   $as_echo "$as_me: failed program was:" >&5
12966 sed 's/^/| /' conftest.$ac_ext >&5
12967
12968         eval "$as_ac_var=no"
12969 fi
12970
12971 rm -rf conftest.dSYM
12972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12973       conftest$ac_exeext conftest.$ac_ext
12974 fi
12975 ac_res=`eval 'as_val=${'$as_ac_var'}
12976                  $as_echo "$as_val"'`
12977                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12978 $as_echo "$ac_res" >&6; }
12979 as_val=`eval 'as_val=${'$as_ac_var'}
12980                  $as_echo "$as_val"'`
12981    if test "x$as_val" = x""yes; then
12982   cat >>confdefs.h <<_ACEOF
12983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12984 _ACEOF
12985
12986 else
12987
12988     { $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
12989 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
12990 if test "${gl_cv_w32_gethostbyname+set}" = set; then
12991   $as_echo_n "(cached) " >&6
12992 else
12993
12994       gl_cv_w32_gethostbyname=no
12995       am_save_LIBS="$LIBS"
12996       LIBS="$LIBS -lws2_32"
12997       cat >conftest.$ac_ext <<_ACEOF
12998 /* confdefs.h.  */
12999 _ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h.  */
13003
13004 #ifdef HAVE_WINSOCK2_H
13005 #include <winsock2.h>
13006 #endif
13007 #include <stddef.h>
13008
13009 int
13010 main ()
13011 {
13012 gethostbyname(NULL);
13013   ;
13014   return 0;
13015 }
13016 _ACEOF
13017 rm -f conftest.$ac_objext conftest$ac_exeext
13018 if { (ac_try="$ac_link"
13019 case "(($ac_try" in
13020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021   *) ac_try_echo=$ac_try;;
13022 esac
13023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13024 $as_echo "$ac_try_echo") >&5
13025   (eval "$ac_link") 2>conftest.er1
13026   ac_status=$?
13027   grep -v '^ *+' conftest.er1 >conftest.err
13028   rm -f conftest.er1
13029   cat conftest.err >&5
13030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031   (exit $ac_status); } && {
13032          test -z "$ac_c_werror_flag" ||
13033          test ! -s conftest.err
13034        } && test -s conftest$ac_exeext && {
13035          test "$cross_compiling" = yes ||
13036          $as_test_x conftest$ac_exeext
13037        }; then
13038   gl_cv_w32_gethostbyname=yes
13039 else
13040   $as_echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13042
13043
13044 fi
13045
13046 rm -rf conftest.dSYM
13047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13048       conftest$ac_exeext conftest.$ac_ext
13049     LIBS="$am_save_LIBS"
13050 fi
13051 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
13052 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
13053     if test "$gl_cv_w32_gethostbyname" = "yes"; then
13054       LIBS="$LIBS -lws2_32"
13055     fi
13056
13057 fi
13058 done
13059
13060
13061
13062
13063
13064
13065
13066   :
13067
13068
13069
13070
13071
13072
13073
13074
13075   { $as_echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
13076 $as_echo_n "checking whether getaddrinfo is declared... " >&6; }
13077 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
13078   $as_echo_n "(cached) " >&6
13079 else
13080   cat >conftest.$ac_ext <<_ACEOF
13081 /* confdefs.h.  */
13082 _ACEOF
13083 cat confdefs.h >>conftest.$ac_ext
13084 cat >>conftest.$ac_ext <<_ACEOF
13085 /* end confdefs.h.  */
13086
13087   /* sys/types.h is not needed according to POSIX, but the
13088      sys/socket.h in i386-unknown-freebsd4.10 and
13089      powerpc-apple-darwin5.5 required it. */
13090 #include <sys/types.h>
13091 #ifdef HAVE_SYS_SOCKET_H
13092 #include <sys/socket.h>
13093 #endif
13094 #ifdef HAVE_NETDB_H
13095 #include <netdb.h>
13096 #endif
13097 #ifdef HAVE_WS2TCPIP_H
13098 #include <ws2tcpip.h>
13099 #endif
13100
13101
13102 int
13103 main ()
13104 {
13105 #ifndef getaddrinfo
13106   (void) getaddrinfo;
13107 #endif
13108
13109   ;
13110   return 0;
13111 }
13112 _ACEOF
13113 rm -f conftest.$ac_objext
13114 if { (ac_try="$ac_compile"
13115 case "(($ac_try" in
13116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117   *) ac_try_echo=$ac_try;;
13118 esac
13119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13120 $as_echo "$ac_try_echo") >&5
13121   (eval "$ac_compile") 2>conftest.er1
13122   ac_status=$?
13123   grep -v '^ *+' conftest.er1 >conftest.err
13124   rm -f conftest.er1
13125   cat conftest.err >&5
13126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); } && {
13128          test -z "$ac_c_werror_flag" ||
13129          test ! -s conftest.err
13130        } && test -s conftest.$ac_objext; then
13131   ac_cv_have_decl_getaddrinfo=yes
13132 else
13133   $as_echo "$as_me: failed program was:" >&5
13134 sed 's/^/| /' conftest.$ac_ext >&5
13135
13136         ac_cv_have_decl_getaddrinfo=no
13137 fi
13138
13139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13140 fi
13141 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
13142 $as_echo "$ac_cv_have_decl_getaddrinfo" >&6; }
13143 if test "x$ac_cv_have_decl_getaddrinfo" = x""yes; then
13144
13145 cat >>confdefs.h <<_ACEOF
13146 #define HAVE_DECL_GETADDRINFO 1
13147 _ACEOF
13148
13149
13150 else
13151   cat >>confdefs.h <<_ACEOF
13152 #define HAVE_DECL_GETADDRINFO 0
13153 _ACEOF
13154
13155
13156 fi
13157 { $as_echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
13158 $as_echo_n "checking whether freeaddrinfo is declared... " >&6; }
13159 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
13160   $as_echo_n "(cached) " >&6
13161 else
13162   cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h.  */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h.  */
13168
13169   /* sys/types.h is not needed according to POSIX, but the
13170      sys/socket.h in i386-unknown-freebsd4.10 and
13171      powerpc-apple-darwin5.5 required it. */
13172 #include <sys/types.h>
13173 #ifdef HAVE_SYS_SOCKET_H
13174 #include <sys/socket.h>
13175 #endif
13176 #ifdef HAVE_NETDB_H
13177 #include <netdb.h>
13178 #endif
13179 #ifdef HAVE_WS2TCPIP_H
13180 #include <ws2tcpip.h>
13181 #endif
13182
13183
13184 int
13185 main ()
13186 {
13187 #ifndef freeaddrinfo
13188   (void) freeaddrinfo;
13189 #endif
13190
13191   ;
13192   return 0;
13193 }
13194 _ACEOF
13195 rm -f conftest.$ac_objext
13196 if { (ac_try="$ac_compile"
13197 case "(($ac_try" in
13198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199   *) ac_try_echo=$ac_try;;
13200 esac
13201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13202 $as_echo "$ac_try_echo") >&5
13203   (eval "$ac_compile") 2>conftest.er1
13204   ac_status=$?
13205   grep -v '^ *+' conftest.er1 >conftest.err
13206   rm -f conftest.er1
13207   cat conftest.err >&5
13208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); } && {
13210          test -z "$ac_c_werror_flag" ||
13211          test ! -s conftest.err
13212        } && test -s conftest.$ac_objext; then
13213   ac_cv_have_decl_freeaddrinfo=yes
13214 else
13215   $as_echo "$as_me: failed program was:" >&5
13216 sed 's/^/| /' conftest.$ac_ext >&5
13217
13218         ac_cv_have_decl_freeaddrinfo=no
13219 fi
13220
13221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13222 fi
13223 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
13224 $as_echo "$ac_cv_have_decl_freeaddrinfo" >&6; }
13225 if test "x$ac_cv_have_decl_freeaddrinfo" = x""yes; then
13226
13227 cat >>confdefs.h <<_ACEOF
13228 #define HAVE_DECL_FREEADDRINFO 1
13229 _ACEOF
13230
13231
13232 else
13233   cat >>confdefs.h <<_ACEOF
13234 #define HAVE_DECL_FREEADDRINFO 0
13235 _ACEOF
13236
13237
13238 fi
13239 { $as_echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
13240 $as_echo_n "checking whether gai_strerror is declared... " >&6; }
13241 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
13242   $as_echo_n "(cached) " >&6
13243 else
13244   cat >conftest.$ac_ext <<_ACEOF
13245 /* confdefs.h.  */
13246 _ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h.  */
13250
13251   /* sys/types.h is not needed according to POSIX, but the
13252      sys/socket.h in i386-unknown-freebsd4.10 and
13253      powerpc-apple-darwin5.5 required it. */
13254 #include <sys/types.h>
13255 #ifdef HAVE_SYS_SOCKET_H
13256 #include <sys/socket.h>
13257 #endif
13258 #ifdef HAVE_NETDB_H
13259 #include <netdb.h>
13260 #endif
13261 #ifdef HAVE_WS2TCPIP_H
13262 #include <ws2tcpip.h>
13263 #endif
13264
13265
13266 int
13267 main ()
13268 {
13269 #ifndef gai_strerror
13270   (void) gai_strerror;
13271 #endif
13272
13273   ;
13274   return 0;
13275 }
13276 _ACEOF
13277 rm -f conftest.$ac_objext
13278 if { (ac_try="$ac_compile"
13279 case "(($ac_try" in
13280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13281   *) ac_try_echo=$ac_try;;
13282 esac
13283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13284 $as_echo "$ac_try_echo") >&5
13285   (eval "$ac_compile") 2>conftest.er1
13286   ac_status=$?
13287   grep -v '^ *+' conftest.er1 >conftest.err
13288   rm -f conftest.er1
13289   cat conftest.err >&5
13290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); } && {
13292          test -z "$ac_c_werror_flag" ||
13293          test ! -s conftest.err
13294        } && test -s conftest.$ac_objext; then
13295   ac_cv_have_decl_gai_strerror=yes
13296 else
13297   $as_echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13299
13300         ac_cv_have_decl_gai_strerror=no
13301 fi
13302
13303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304 fi
13305 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
13306 $as_echo "$ac_cv_have_decl_gai_strerror" >&6; }
13307 if test "x$ac_cv_have_decl_gai_strerror" = x""yes; then
13308
13309 cat >>confdefs.h <<_ACEOF
13310 #define HAVE_DECL_GAI_STRERROR 1
13311 _ACEOF
13312
13313
13314 else
13315   cat >>confdefs.h <<_ACEOF
13316 #define HAVE_DECL_GAI_STRERROR 0
13317 _ACEOF
13318
13319
13320 fi
13321 { $as_echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
13322 $as_echo_n "checking whether getnameinfo is declared... " >&6; }
13323 if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
13324   $as_echo_n "(cached) " >&6
13325 else
13326   cat >conftest.$ac_ext <<_ACEOF
13327 /* confdefs.h.  */
13328 _ACEOF
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h.  */
13332
13333   /* sys/types.h is not needed according to POSIX, but the
13334      sys/socket.h in i386-unknown-freebsd4.10 and
13335      powerpc-apple-darwin5.5 required it. */
13336 #include <sys/types.h>
13337 #ifdef HAVE_SYS_SOCKET_H
13338 #include <sys/socket.h>
13339 #endif
13340 #ifdef HAVE_NETDB_H
13341 #include <netdb.h>
13342 #endif
13343 #ifdef HAVE_WS2TCPIP_H
13344 #include <ws2tcpip.h>
13345 #endif
13346
13347
13348 int
13349 main ()
13350 {
13351 #ifndef getnameinfo
13352   (void) getnameinfo;
13353 #endif
13354
13355   ;
13356   return 0;
13357 }
13358 _ACEOF
13359 rm -f conftest.$ac_objext
13360 if { (ac_try="$ac_compile"
13361 case "(($ac_try" in
13362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13363   *) ac_try_echo=$ac_try;;
13364 esac
13365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13366 $as_echo "$ac_try_echo") >&5
13367   (eval "$ac_compile") 2>conftest.er1
13368   ac_status=$?
13369   grep -v '^ *+' conftest.er1 >conftest.err
13370   rm -f conftest.er1
13371   cat conftest.err >&5
13372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); } && {
13374          test -z "$ac_c_werror_flag" ||
13375          test ! -s conftest.err
13376        } && test -s conftest.$ac_objext; then
13377   ac_cv_have_decl_getnameinfo=yes
13378 else
13379   $as_echo "$as_me: failed program was:" >&5
13380 sed 's/^/| /' conftest.$ac_ext >&5
13381
13382         ac_cv_have_decl_getnameinfo=no
13383 fi
13384
13385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13386 fi
13387 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
13388 $as_echo "$ac_cv_have_decl_getnameinfo" >&6; }
13389 if test "x$ac_cv_have_decl_getnameinfo" = x""yes; then
13390
13391 cat >>confdefs.h <<_ACEOF
13392 #define HAVE_DECL_GETNAMEINFO 1
13393 _ACEOF
13394
13395
13396 else
13397   cat >>confdefs.h <<_ACEOF
13398 #define HAVE_DECL_GETNAMEINFO 0
13399 _ACEOF
13400
13401
13402 fi
13403
13404
13405   { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
13406 $as_echo_n "checking for struct addrinfo... " >&6; }
13407 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
13408   $as_echo_n "(cached) " >&6
13409 else
13410   ac_cv_type_struct_addrinfo=no
13411 cat >conftest.$ac_ext <<_ACEOF
13412 /* confdefs.h.  */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h.  */
13417
13418 #include <sys/types.h>
13419 #ifdef HAVE_SYS_SOCKET_H
13420 #include <sys/socket.h>
13421 #endif
13422 #ifdef HAVE_NETDB_H
13423 #include <netdb.h>
13424 #endif
13425 #ifdef HAVE_WS2TCPIP_H
13426 #include <ws2tcpip.h>
13427 #endif
13428
13429
13430 int
13431 main ()
13432 {
13433 if (sizeof (struct addrinfo))
13434        return 0;
13435   ;
13436   return 0;
13437 }
13438 _ACEOF
13439 rm -f conftest.$ac_objext
13440 if { (ac_try="$ac_compile"
13441 case "(($ac_try" in
13442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443   *) ac_try_echo=$ac_try;;
13444 esac
13445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13446 $as_echo "$ac_try_echo") >&5
13447   (eval "$ac_compile") 2>conftest.er1
13448   ac_status=$?
13449   grep -v '^ *+' conftest.er1 >conftest.err
13450   rm -f conftest.er1
13451   cat conftest.err >&5
13452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); } && {
13454          test -z "$ac_c_werror_flag" ||
13455          test ! -s conftest.err
13456        } && test -s conftest.$ac_objext; then
13457   cat >conftest.$ac_ext <<_ACEOF
13458 /* confdefs.h.  */
13459 _ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h.  */
13463
13464 #include <sys/types.h>
13465 #ifdef HAVE_SYS_SOCKET_H
13466 #include <sys/socket.h>
13467 #endif
13468 #ifdef HAVE_NETDB_H
13469 #include <netdb.h>
13470 #endif
13471 #ifdef HAVE_WS2TCPIP_H
13472 #include <ws2tcpip.h>
13473 #endif
13474
13475
13476 int
13477 main ()
13478 {
13479 if (sizeof ((struct addrinfo)))
13480           return 0;
13481   ;
13482   return 0;
13483 }
13484 _ACEOF
13485 rm -f conftest.$ac_objext
13486 if { (ac_try="$ac_compile"
13487 case "(($ac_try" in
13488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489   *) ac_try_echo=$ac_try;;
13490 esac
13491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13492 $as_echo "$ac_try_echo") >&5
13493   (eval "$ac_compile") 2>conftest.er1
13494   ac_status=$?
13495   grep -v '^ *+' conftest.er1 >conftest.err
13496   rm -f conftest.er1
13497   cat conftest.err >&5
13498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); } && {
13500          test -z "$ac_c_werror_flag" ||
13501          test ! -s conftest.err
13502        } && test -s conftest.$ac_objext; then
13503   :
13504 else
13505   $as_echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13507
13508         ac_cv_type_struct_addrinfo=yes
13509 fi
13510
13511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13512 else
13513   $as_echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13515
13516
13517 fi
13518
13519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520 fi
13521 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
13522 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
13523 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
13524
13525 cat >>confdefs.h <<_ACEOF
13526 #define HAVE_STRUCT_ADDRINFO 1
13527 _ACEOF
13528
13529
13530 fi
13531
13532
13533
13534
13535
13536   if test -n "$GETOPT_H"; then
13537
13538
13539
13540
13541
13542
13543
13544
13545   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13546
13547
13548
13549
13550
13551
13552
13553
13554   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13555
13556
13557   GETOPT_H=getopt.h
13558
13559 cat >>confdefs.h <<\_ACEOF
13560 #define __GETOPT_PREFIX rpl_
13561 _ACEOF
13562
13563
13564
13565
13566
13567   :
13568
13569
13570
13571
13572
13573
13574
13575 fi
13576
13577
13578
13579
13580
13581
13582
13583
13584   :
13585
13586
13587
13588
13589
13590
13591   { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
13592 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13593 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
13594   $as_echo_n "(cached) " >&6
13595 else
13596   cat >conftest.$ac_ext <<_ACEOF
13597 /* confdefs.h.  */
13598 _ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h.  */
13602 #include <sys/time.h>
13603             struct timeval c;
13604
13605 int
13606 main ()
13607 {
13608
13609             int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
13610             int x = f (&c, 0);
13611             return !(x | c.tv_sec | c.tv_usec);
13612
13613   ;
13614   return 0;
13615 }
13616 _ACEOF
13617 rm -f conftest.$ac_objext
13618 if { (ac_try="$ac_compile"
13619 case "(($ac_try" in
13620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621   *) ac_try_echo=$ac_try;;
13622 esac
13623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13624 $as_echo "$ac_try_echo") >&5
13625   (eval "$ac_compile") 2>conftest.er1
13626   ac_status=$?
13627   grep -v '^ *+' conftest.er1 >conftest.err
13628   rm -f conftest.er1
13629   cat conftest.err >&5
13630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631   (exit $ac_status); } && {
13632          test -z "$ac_c_werror_flag" ||
13633          test ! -s conftest.err
13634        } && test -s conftest.$ac_objext; then
13635   gl_cv_func_gettimeofday_posix_signature=yes
13636 else
13637   $as_echo "$as_me: failed program was:" >&5
13638 sed 's/^/| /' conftest.$ac_ext >&5
13639
13640         gl_cv_func_gettimeofday_posix_signature=no
13641 fi
13642
13643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13644 fi
13645 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13646 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13647
13648
13649
13650
13651  { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
13652 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13653 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
13654   $as_echo_n "(cached) " >&6
13655 else
13656   if test "$cross_compiling" = yes; then
13657        gl_cv_func_gettimeofday_clobber=yes
13658 else
13659   cat >conftest.$ac_ext <<_ACEOF
13660 /* confdefs.h.  */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h.  */
13665 #include <string.h>
13666           #include <sys/time.h>
13667           #include <time.h>
13668           #include <stdlib.h>
13669
13670 int
13671 main ()
13672 {
13673
13674           time_t t = 0;
13675           struct tm *lt;
13676           struct tm saved_lt;
13677           struct timeval tv;
13678           lt = localtime (&t);
13679           saved_lt = *lt;
13680           gettimeofday (&tv, NULL);
13681           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13682
13683   ;
13684   return 0;
13685 }
13686 _ACEOF
13687 rm -f conftest$ac_exeext
13688 if { (ac_try="$ac_link"
13689 case "(($ac_try" in
13690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691   *) ac_try_echo=$ac_try;;
13692 esac
13693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13694 $as_echo "$ac_try_echo") >&5
13695   (eval "$ac_link") 2>&5
13696   ac_status=$?
13697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13699   { (case "(($ac_try" in
13700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701   *) ac_try_echo=$ac_try;;
13702 esac
13703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13704 $as_echo "$ac_try_echo") >&5
13705   (eval "$ac_try") 2>&5
13706   ac_status=$?
13707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708   (exit $ac_status); }; }; then
13709   gl_cv_func_gettimeofday_clobber=no
13710 else
13711   $as_echo "$as_me: program exited with status $ac_status" >&5
13712 $as_echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13714
13715 ( exit $ac_status )
13716 gl_cv_func_gettimeofday_clobber=yes
13717 fi
13718 rm -rf conftest.dSYM
13719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13720 fi
13721
13722
13723 fi
13724 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
13725 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13726
13727  if test $gl_cv_func_gettimeofday_clobber = yes; then
13728    REPLACE_GETTIMEOFDAY=1
13729    SYS_TIME_H=sys/time.h
13730
13731
13732
13733
13734
13735
13736
13737
13738   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13739
13740
13741
13742 for ac_header in sys/timeb.h
13743 do
13744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13746   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13747 $as_echo_n "checking for $ac_header... " >&6; }
13748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13749   $as_echo_n "(cached) " >&6
13750 fi
13751 ac_res=`eval 'as_val=${'$as_ac_Header'}
13752                  $as_echo "$as_val"'`
13753                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13754 $as_echo "$ac_res" >&6; }
13755 else
13756   # Is the header compilable?
13757 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13758 $as_echo_n "checking $ac_header usability... " >&6; }
13759 cat >conftest.$ac_ext <<_ACEOF
13760 /* confdefs.h.  */
13761 _ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h.  */
13765 $ac_includes_default
13766 #include <$ac_header>
13767 _ACEOF
13768 rm -f conftest.$ac_objext
13769 if { (ac_try="$ac_compile"
13770 case "(($ac_try" in
13771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772   *) ac_try_echo=$ac_try;;
13773 esac
13774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13775 $as_echo "$ac_try_echo") >&5
13776   (eval "$ac_compile") 2>conftest.er1
13777   ac_status=$?
13778   grep -v '^ *+' conftest.er1 >conftest.err
13779   rm -f conftest.er1
13780   cat conftest.err >&5
13781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782   (exit $ac_status); } && {
13783          test -z "$ac_c_werror_flag" ||
13784          test ! -s conftest.err
13785        } && test -s conftest.$ac_objext; then
13786   ac_header_compiler=yes
13787 else
13788   $as_echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13790
13791         ac_header_compiler=no
13792 fi
13793
13794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13795 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13796 $as_echo "$ac_header_compiler" >&6; }
13797
13798 # Is the header present?
13799 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13800 $as_echo_n "checking $ac_header presence... " >&6; }
13801 cat >conftest.$ac_ext <<_ACEOF
13802 /* confdefs.h.  */
13803 _ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h.  */
13807 #include <$ac_header>
13808 _ACEOF
13809 if { (ac_try="$ac_cpp conftest.$ac_ext"
13810 case "(($ac_try" in
13811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812   *) ac_try_echo=$ac_try;;
13813 esac
13814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13815 $as_echo "$ac_try_echo") >&5
13816   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13817   ac_status=$?
13818   grep -v '^ *+' conftest.er1 >conftest.err
13819   rm -f conftest.er1
13820   cat conftest.err >&5
13821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); } >/dev/null && {
13823          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13824          test ! -s conftest.err
13825        }; then
13826   ac_header_preproc=yes
13827 else
13828   $as_echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13830
13831   ac_header_preproc=no
13832 fi
13833
13834 rm -f conftest.err conftest.$ac_ext
13835 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13836 $as_echo "$ac_header_preproc" >&6; }
13837
13838 # So?  What about this header?
13839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13840   yes:no: )
13841     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13842 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13843     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13844 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13845     ac_header_preproc=yes
13846     ;;
13847   no:yes:* )
13848     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13849 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13850     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13851 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13852     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13853 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13854     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13855 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13856     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13857 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13858     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13859 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13860
13861     ;;
13862 esac
13863 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13864 $as_echo_n "checking for $ac_header... " >&6; }
13865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13866   $as_echo_n "(cached) " >&6
13867 else
13868   eval "$as_ac_Header=\$ac_header_preproc"
13869 fi
13870 ac_res=`eval 'as_val=${'$as_ac_Header'}
13871                  $as_echo "$as_val"'`
13872                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13873 $as_echo "$ac_res" >&6; }
13874
13875 fi
13876 as_val=`eval 'as_val=${'$as_ac_Header'}
13877                  $as_echo "$as_val"'`
13878    if test "x$as_val" = x""yes; then
13879   cat >>confdefs.h <<_ACEOF
13880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13881 _ACEOF
13882
13883 fi
13884
13885 done
13886
13887
13888 for ac_func in _ftime
13889 do
13890 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13891 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13892 $as_echo_n "checking for $ac_func... " >&6; }
13893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13894   $as_echo_n "(cached) " >&6
13895 else
13896   cat >conftest.$ac_ext <<_ACEOF
13897 /* confdefs.h.  */
13898 _ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h.  */
13902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13904 #define $ac_func innocuous_$ac_func
13905
13906 /* System header to define __stub macros and hopefully few prototypes,
13907     which can conflict with char $ac_func (); below.
13908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13909     <limits.h> exists even on freestanding compilers.  */
13910
13911 #ifdef __STDC__
13912 # include <limits.h>
13913 #else
13914 # include <assert.h>
13915 #endif
13916
13917 #undef $ac_func
13918
13919 /* Override any GCC internal prototype to avoid an error.
13920    Use char because int might match the return type of a GCC
13921    builtin and then its argument prototype would still apply.  */
13922 #ifdef __cplusplus
13923 extern "C"
13924 #endif
13925 char $ac_func ();
13926 /* The GNU C library defines this for functions which it implements
13927     to always fail with ENOSYS.  Some functions are actually named
13928     something starting with __ and the normal name is an alias.  */
13929 #if defined __stub_$ac_func || defined __stub___$ac_func
13930 choke me
13931 #endif
13932
13933 int
13934 main ()
13935 {
13936 return $ac_func ();
13937   ;
13938   return 0;
13939 }
13940 _ACEOF
13941 rm -f conftest.$ac_objext conftest$ac_exeext
13942 if { (ac_try="$ac_link"
13943 case "(($ac_try" in
13944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945   *) ac_try_echo=$ac_try;;
13946 esac
13947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13948 $as_echo "$ac_try_echo") >&5
13949   (eval "$ac_link") 2>conftest.er1
13950   ac_status=$?
13951   grep -v '^ *+' conftest.er1 >conftest.err
13952   rm -f conftest.er1
13953   cat conftest.err >&5
13954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955   (exit $ac_status); } && {
13956          test -z "$ac_c_werror_flag" ||
13957          test ! -s conftest.err
13958        } && test -s conftest$ac_exeext && {
13959          test "$cross_compiling" = yes ||
13960          $as_test_x conftest$ac_exeext
13961        }; then
13962   eval "$as_ac_var=yes"
13963 else
13964   $as_echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13966
13967         eval "$as_ac_var=no"
13968 fi
13969
13970 rm -rf conftest.dSYM
13971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13972       conftest$ac_exeext conftest.$ac_ext
13973 fi
13974 ac_res=`eval 'as_val=${'$as_ac_var'}
13975                  $as_echo "$as_val"'`
13976                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13977 $as_echo "$ac_res" >&6; }
13978 as_val=`eval 'as_val=${'$as_ac_var'}
13979                  $as_echo "$as_val"'`
13980    if test "x$as_val" = x""yes; then
13981   cat >>confdefs.h <<_ACEOF
13982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13983 _ACEOF
13984
13985 fi
13986 done
13987
13988
13989
13990 cat >>confdefs.h <<\_ACEOF
13991 #define gmtime rpl_gmtime
13992 _ACEOF
13993
13994
13995 cat >>confdefs.h <<\_ACEOF
13996 #define localtime rpl_localtime
13997 _ACEOF
13998
13999
14000
14001 cat >>confdefs.h <<\_ACEOF
14002 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
14003 _ACEOF
14004
14005  fi
14006
14007
14008   if test $gl_cv_func_gettimeofday_posix_signature != yes; then
14009     REPLACE_GETTIMEOFDAY=1
14010     SYS_TIME_H=sys/time.h
14011     if test $gl_cv_func_gettimeofday_clobber != yes; then
14012
14013
14014
14015
14016
14017
14018
14019   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14020
14021
14022
14023 for ac_header in sys/timeb.h
14024 do
14025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14027   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14028 $as_echo_n "checking for $ac_header... " >&6; }
14029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14030   $as_echo_n "(cached) " >&6
14031 fi
14032 ac_res=`eval 'as_val=${'$as_ac_Header'}
14033                  $as_echo "$as_val"'`
14034                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14035 $as_echo "$ac_res" >&6; }
14036 else
14037   # Is the header compilable?
14038 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14039 $as_echo_n "checking $ac_header usability... " >&6; }
14040 cat >conftest.$ac_ext <<_ACEOF
14041 /* confdefs.h.  */
14042 _ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h.  */
14046 $ac_includes_default
14047 #include <$ac_header>
14048 _ACEOF
14049 rm -f conftest.$ac_objext
14050 if { (ac_try="$ac_compile"
14051 case "(($ac_try" in
14052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14053   *) ac_try_echo=$ac_try;;
14054 esac
14055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14056 $as_echo "$ac_try_echo") >&5
14057   (eval "$ac_compile") 2>conftest.er1
14058   ac_status=$?
14059   grep -v '^ *+' conftest.er1 >conftest.err
14060   rm -f conftest.er1
14061   cat conftest.err >&5
14062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063   (exit $ac_status); } && {
14064          test -z "$ac_c_werror_flag" ||
14065          test ! -s conftest.err
14066        } && test -s conftest.$ac_objext; then
14067   ac_header_compiler=yes
14068 else
14069   $as_echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14071
14072         ac_header_compiler=no
14073 fi
14074
14075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14076 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14077 $as_echo "$ac_header_compiler" >&6; }
14078
14079 # Is the header present?
14080 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14081 $as_echo_n "checking $ac_header presence... " >&6; }
14082 cat >conftest.$ac_ext <<_ACEOF
14083 /* confdefs.h.  */
14084 _ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h.  */
14088 #include <$ac_header>
14089 _ACEOF
14090 if { (ac_try="$ac_cpp conftest.$ac_ext"
14091 case "(($ac_try" in
14092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093   *) ac_try_echo=$ac_try;;
14094 esac
14095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14096 $as_echo "$ac_try_echo") >&5
14097   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14098   ac_status=$?
14099   grep -v '^ *+' conftest.er1 >conftest.err
14100   rm -f conftest.er1
14101   cat conftest.err >&5
14102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103   (exit $ac_status); } >/dev/null && {
14104          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14105          test ! -s conftest.err
14106        }; then
14107   ac_header_preproc=yes
14108 else
14109   $as_echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14111
14112   ac_header_preproc=no
14113 fi
14114
14115 rm -f conftest.err conftest.$ac_ext
14116 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14117 $as_echo "$ac_header_preproc" >&6; }
14118
14119 # So?  What about this header?
14120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14121   yes:no: )
14122     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14123 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14124     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14125 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14126     ac_header_preproc=yes
14127     ;;
14128   no:yes:* )
14129     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14130 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14131     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14132 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14133     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14134 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14135     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14136 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14137     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14138 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14139     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14140 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14141
14142     ;;
14143 esac
14144 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14145 $as_echo_n "checking for $ac_header... " >&6; }
14146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14147   $as_echo_n "(cached) " >&6
14148 else
14149   eval "$as_ac_Header=\$ac_header_preproc"
14150 fi
14151 ac_res=`eval 'as_val=${'$as_ac_Header'}
14152                  $as_echo "$as_val"'`
14153                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14154 $as_echo "$ac_res" >&6; }
14155
14156 fi
14157 as_val=`eval 'as_val=${'$as_ac_Header'}
14158                  $as_echo "$as_val"'`
14159    if test "x$as_val" = x""yes; then
14160   cat >>confdefs.h <<_ACEOF
14161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14162 _ACEOF
14163
14164 fi
14165
14166 done
14167
14168
14169 for ac_func in _ftime
14170 do
14171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14172 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14173 $as_echo_n "checking for $ac_func... " >&6; }
14174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14175   $as_echo_n "(cached) " >&6
14176 else
14177   cat >conftest.$ac_ext <<_ACEOF
14178 /* confdefs.h.  */
14179 _ACEOF
14180 cat confdefs.h >>conftest.$ac_ext
14181 cat >>conftest.$ac_ext <<_ACEOF
14182 /* end confdefs.h.  */
14183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14185 #define $ac_func innocuous_$ac_func
14186
14187 /* System header to define __stub macros and hopefully few prototypes,
14188     which can conflict with char $ac_func (); below.
14189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14190     <limits.h> exists even on freestanding compilers.  */
14191
14192 #ifdef __STDC__
14193 # include <limits.h>
14194 #else
14195 # include <assert.h>
14196 #endif
14197
14198 #undef $ac_func
14199
14200 /* Override any GCC internal prototype to avoid an error.
14201    Use char because int might match the return type of a GCC
14202    builtin and then its argument prototype would still apply.  */
14203 #ifdef __cplusplus
14204 extern "C"
14205 #endif
14206 char $ac_func ();
14207 /* The GNU C library defines this for functions which it implements
14208     to always fail with ENOSYS.  Some functions are actually named
14209     something starting with __ and the normal name is an alias.  */
14210 #if defined __stub_$ac_func || defined __stub___$ac_func
14211 choke me
14212 #endif
14213
14214 int
14215 main ()
14216 {
14217 return $ac_func ();
14218   ;
14219   return 0;
14220 }
14221 _ACEOF
14222 rm -f conftest.$ac_objext conftest$ac_exeext
14223 if { (ac_try="$ac_link"
14224 case "(($ac_try" in
14225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226   *) ac_try_echo=$ac_try;;
14227 esac
14228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14229 $as_echo "$ac_try_echo") >&5
14230   (eval "$ac_link") 2>conftest.er1
14231   ac_status=$?
14232   grep -v '^ *+' conftest.er1 >conftest.err
14233   rm -f conftest.er1
14234   cat conftest.err >&5
14235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); } && {
14237          test -z "$ac_c_werror_flag" ||
14238          test ! -s conftest.err
14239        } && test -s conftest$ac_exeext && {
14240          test "$cross_compiling" = yes ||
14241          $as_test_x conftest$ac_exeext
14242        }; then
14243   eval "$as_ac_var=yes"
14244 else
14245   $as_echo "$as_me: failed program was:" >&5
14246 sed 's/^/| /' conftest.$ac_ext >&5
14247
14248         eval "$as_ac_var=no"
14249 fi
14250
14251 rm -rf conftest.dSYM
14252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14253       conftest$ac_exeext conftest.$ac_ext
14254 fi
14255 ac_res=`eval 'as_val=${'$as_ac_var'}
14256                  $as_echo "$as_val"'`
14257                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14258 $as_echo "$ac_res" >&6; }
14259 as_val=`eval 'as_val=${'$as_ac_var'}
14260                  $as_echo "$as_val"'`
14261    if test "x$as_val" = x""yes; then
14262   cat >>confdefs.h <<_ACEOF
14263 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14264 _ACEOF
14265
14266 fi
14267 done
14268
14269
14270     fi
14271   fi
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282 for ac_func in inet_ntop
14283 do
14284 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14285 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14286 $as_echo_n "checking for $ac_func... " >&6; }
14287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14288   $as_echo_n "(cached) " >&6
14289 else
14290   cat >conftest.$ac_ext <<_ACEOF
14291 /* confdefs.h.  */
14292 _ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h.  */
14296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14298 #define $ac_func innocuous_$ac_func
14299
14300 /* System header to define __stub macros and hopefully few prototypes,
14301     which can conflict with char $ac_func (); below.
14302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14303     <limits.h> exists even on freestanding compilers.  */
14304
14305 #ifdef __STDC__
14306 # include <limits.h>
14307 #else
14308 # include <assert.h>
14309 #endif
14310
14311 #undef $ac_func
14312
14313 /* Override any GCC internal prototype to avoid an error.
14314    Use char because int might match the return type of a GCC
14315    builtin and then its argument prototype would still apply.  */
14316 #ifdef __cplusplus
14317 extern "C"
14318 #endif
14319 char $ac_func ();
14320 /* The GNU C library defines this for functions which it implements
14321     to always fail with ENOSYS.  Some functions are actually named
14322     something starting with __ and the normal name is an alias.  */
14323 #if defined __stub_$ac_func || defined __stub___$ac_func
14324 choke me
14325 #endif
14326
14327 int
14328 main ()
14329 {
14330 return $ac_func ();
14331   ;
14332   return 0;
14333 }
14334 _ACEOF
14335 rm -f conftest.$ac_objext conftest$ac_exeext
14336 if { (ac_try="$ac_link"
14337 case "(($ac_try" in
14338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339   *) ac_try_echo=$ac_try;;
14340 esac
14341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14342 $as_echo "$ac_try_echo") >&5
14343   (eval "$ac_link") 2>conftest.er1
14344   ac_status=$?
14345   grep -v '^ *+' conftest.er1 >conftest.err
14346   rm -f conftest.er1
14347   cat conftest.err >&5
14348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349   (exit $ac_status); } && {
14350          test -z "$ac_c_werror_flag" ||
14351          test ! -s conftest.err
14352        } && test -s conftest$ac_exeext && {
14353          test "$cross_compiling" = yes ||
14354          $as_test_x conftest$ac_exeext
14355        }; then
14356   eval "$as_ac_var=yes"
14357 else
14358   $as_echo "$as_me: failed program was:" >&5
14359 sed 's/^/| /' conftest.$ac_ext >&5
14360
14361         eval "$as_ac_var=no"
14362 fi
14363
14364 rm -rf conftest.dSYM
14365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14366       conftest$ac_exeext conftest.$ac_ext
14367 fi
14368 ac_res=`eval 'as_val=${'$as_ac_var'}
14369                  $as_echo "$as_val"'`
14370                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14371 $as_echo "$ac_res" >&6; }
14372 as_val=`eval 'as_val=${'$as_ac_var'}
14373                  $as_echo "$as_val"'`
14374    if test "x$as_val" = x""yes; then
14375   cat >>confdefs.h <<_ACEOF
14376 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14377 _ACEOF
14378
14379 else
14380
14381     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14382
14383 fi
14384 done
14385
14386
14387
14388
14389   :
14390
14391
14392
14393
14394
14395
14396
14397
14398   { $as_echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
14399 $as_echo_n "checking whether inet_ntop is declared... " >&6; }
14400 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
14401   $as_echo_n "(cached) " >&6
14402 else
14403   cat >conftest.$ac_ext <<_ACEOF
14404 /* confdefs.h.  */
14405 _ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h.  */
14409 #include <arpa/inet.h>
14410
14411 int
14412 main ()
14413 {
14414 #ifndef inet_ntop
14415   (void) inet_ntop;
14416 #endif
14417
14418   ;
14419   return 0;
14420 }
14421 _ACEOF
14422 rm -f conftest.$ac_objext
14423 if { (ac_try="$ac_compile"
14424 case "(($ac_try" in
14425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426   *) ac_try_echo=$ac_try;;
14427 esac
14428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14429 $as_echo "$ac_try_echo") >&5
14430   (eval "$ac_compile") 2>conftest.er1
14431   ac_status=$?
14432   grep -v '^ *+' conftest.er1 >conftest.err
14433   rm -f conftest.er1
14434   cat conftest.err >&5
14435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436   (exit $ac_status); } && {
14437          test -z "$ac_c_werror_flag" ||
14438          test ! -s conftest.err
14439        } && test -s conftest.$ac_objext; then
14440   ac_cv_have_decl_inet_ntop=yes
14441 else
14442   $as_echo "$as_me: failed program was:" >&5
14443 sed 's/^/| /' conftest.$ac_ext >&5
14444
14445         ac_cv_have_decl_inet_ntop=no
14446 fi
14447
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449 fi
14450 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
14451 $as_echo "$ac_cv_have_decl_inet_ntop" >&6; }
14452 if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then
14453
14454 cat >>confdefs.h <<_ACEOF
14455 #define HAVE_DECL_INET_NTOP 1
14456 _ACEOF
14457
14458
14459 else
14460   cat >>confdefs.h <<_ACEOF
14461 #define HAVE_DECL_INET_NTOP 0
14462 _ACEOF
14463
14464
14465 fi
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481   if test $gl_cv_func_malloc_posix = yes; then
14482     HAVE_MALLOC_POSIX=1
14483
14484 cat >>confdefs.h <<\_ACEOF
14485 #define HAVE_MALLOC_POSIX 1
14486 _ACEOF
14487
14488   else
14489
14490
14491
14492
14493
14494
14495
14496   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
14497
14498     HAVE_MALLOC_POSIX=0
14499   fi
14500
14501
14502
14503
14504   GNULIB_MALLOC_POSIX=1
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516 for ac_func in mkdtemp
14517 do
14518 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14519 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14520 $as_echo_n "checking for $ac_func... " >&6; }
14521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14522   $as_echo_n "(cached) " >&6
14523 else
14524   cat >conftest.$ac_ext <<_ACEOF
14525 /* confdefs.h.  */
14526 _ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h.  */
14530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14532 #define $ac_func innocuous_$ac_func
14533
14534 /* System header to define __stub macros and hopefully few prototypes,
14535     which can conflict with char $ac_func (); below.
14536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14537     <limits.h> exists even on freestanding compilers.  */
14538
14539 #ifdef __STDC__
14540 # include <limits.h>
14541 #else
14542 # include <assert.h>
14543 #endif
14544
14545 #undef $ac_func
14546
14547 /* Override any GCC internal prototype to avoid an error.
14548    Use char because int might match the return type of a GCC
14549    builtin and then its argument prototype would still apply.  */
14550 #ifdef __cplusplus
14551 extern "C"
14552 #endif
14553 char $ac_func ();
14554 /* The GNU C library defines this for functions which it implements
14555     to always fail with ENOSYS.  Some functions are actually named
14556     something starting with __ and the normal name is an alias.  */
14557 #if defined __stub_$ac_func || defined __stub___$ac_func
14558 choke me
14559 #endif
14560
14561 int
14562 main ()
14563 {
14564 return $ac_func ();
14565   ;
14566   return 0;
14567 }
14568 _ACEOF
14569 rm -f conftest.$ac_objext conftest$ac_exeext
14570 if { (ac_try="$ac_link"
14571 case "(($ac_try" in
14572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573   *) ac_try_echo=$ac_try;;
14574 esac
14575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14576 $as_echo "$ac_try_echo") >&5
14577   (eval "$ac_link") 2>conftest.er1
14578   ac_status=$?
14579   grep -v '^ *+' conftest.er1 >conftest.err
14580   rm -f conftest.er1
14581   cat conftest.err >&5
14582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583   (exit $ac_status); } && {
14584          test -z "$ac_c_werror_flag" ||
14585          test ! -s conftest.err
14586        } && test -s conftest$ac_exeext && {
14587          test "$cross_compiling" = yes ||
14588          $as_test_x conftest$ac_exeext
14589        }; then
14590   eval "$as_ac_var=yes"
14591 else
14592   $as_echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14594
14595         eval "$as_ac_var=no"
14596 fi
14597
14598 rm -rf conftest.dSYM
14599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14600       conftest$ac_exeext conftest.$ac_ext
14601 fi
14602 ac_res=`eval 'as_val=${'$as_ac_var'}
14603                  $as_echo "$as_val"'`
14604                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14605 $as_echo "$ac_res" >&6; }
14606 as_val=`eval 'as_val=${'$as_ac_var'}
14607                  $as_echo "$as_val"'`
14608    if test "x$as_val" = x""yes; then
14609   cat >>confdefs.h <<_ACEOF
14610 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14611 _ACEOF
14612
14613 else
14614
14615     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14616
14617 fi
14618 done
14619
14620
14621   if test $ac_cv_func_mkdtemp = no; then
14622     HAVE_MKDTEMP=0
14623     :
14624
14625   fi
14626
14627
14628
14629   GNULIB_MKDTEMP=1
14630
14631
14632   { $as_echo "$as_me:$LINENO: checking whether <netinet/in.h> is self-contained" >&5
14633 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
14634 if test "${gl_cv_header_netinet_in_h_selfcontained+set}" = set; then
14635   $as_echo_n "(cached) " >&6
14636 else
14637
14638       cat >conftest.$ac_ext <<_ACEOF
14639 /* confdefs.h.  */
14640 _ACEOF
14641 cat confdefs.h >>conftest.$ac_ext
14642 cat >>conftest.$ac_ext <<_ACEOF
14643 /* end confdefs.h.  */
14644 #include <netinet/in.h>
14645 int
14646 main ()
14647 {
14648
14649   ;
14650   return 0;
14651 }
14652 _ACEOF
14653 rm -f conftest.$ac_objext
14654 if { (ac_try="$ac_compile"
14655 case "(($ac_try" in
14656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657   *) ac_try_echo=$ac_try;;
14658 esac
14659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14660 $as_echo "$ac_try_echo") >&5
14661   (eval "$ac_compile") 2>conftest.er1
14662   ac_status=$?
14663   grep -v '^ *+' conftest.er1 >conftest.err
14664   rm -f conftest.er1
14665   cat conftest.err >&5
14666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667   (exit $ac_status); } && {
14668          test -z "$ac_c_werror_flag" ||
14669          test ! -s conftest.err
14670        } && test -s conftest.$ac_objext; then
14671   gl_cv_header_netinet_in_h_selfcontained=yes
14672 else
14673   $as_echo "$as_me: failed program was:" >&5
14674 sed 's/^/| /' conftest.$ac_ext >&5
14675
14676         gl_cv_header_netinet_in_h_selfcontained=no
14677 fi
14678
14679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14680
14681 fi
14682 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
14683 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
14684   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
14685     NETINET_IN_H=''
14686   else
14687     NETINET_IN_H='netinet/in.h'
14688
14689 for ac_header in netinet/in.h
14690 do
14691 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14693   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14694 $as_echo_n "checking for $ac_header... " >&6; }
14695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14696   $as_echo_n "(cached) " >&6
14697 fi
14698 ac_res=`eval 'as_val=${'$as_ac_Header'}
14699                  $as_echo "$as_val"'`
14700                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14701 $as_echo "$ac_res" >&6; }
14702 else
14703   # Is the header compilable?
14704 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14705 $as_echo_n "checking $ac_header usability... " >&6; }
14706 cat >conftest.$ac_ext <<_ACEOF
14707 /* confdefs.h.  */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h.  */
14712 $ac_includes_default
14713 #include <$ac_header>
14714 _ACEOF
14715 rm -f conftest.$ac_objext
14716 if { (ac_try="$ac_compile"
14717 case "(($ac_try" in
14718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719   *) ac_try_echo=$ac_try;;
14720 esac
14721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14722 $as_echo "$ac_try_echo") >&5
14723   (eval "$ac_compile") 2>conftest.er1
14724   ac_status=$?
14725   grep -v '^ *+' conftest.er1 >conftest.err
14726   rm -f conftest.er1
14727   cat conftest.err >&5
14728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   (exit $ac_status); } && {
14730          test -z "$ac_c_werror_flag" ||
14731          test ! -s conftest.err
14732        } && test -s conftest.$ac_objext; then
14733   ac_header_compiler=yes
14734 else
14735   $as_echo "$as_me: failed program was:" >&5
14736 sed 's/^/| /' conftest.$ac_ext >&5
14737
14738         ac_header_compiler=no
14739 fi
14740
14741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14742 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14743 $as_echo "$ac_header_compiler" >&6; }
14744
14745 # Is the header present?
14746 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14747 $as_echo_n "checking $ac_header presence... " >&6; }
14748 cat >conftest.$ac_ext <<_ACEOF
14749 /* confdefs.h.  */
14750 _ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h.  */
14754 #include <$ac_header>
14755 _ACEOF
14756 if { (ac_try="$ac_cpp conftest.$ac_ext"
14757 case "(($ac_try" in
14758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759   *) ac_try_echo=$ac_try;;
14760 esac
14761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14762 $as_echo "$ac_try_echo") >&5
14763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14764   ac_status=$?
14765   grep -v '^ *+' conftest.er1 >conftest.err
14766   rm -f conftest.er1
14767   cat conftest.err >&5
14768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769   (exit $ac_status); } >/dev/null && {
14770          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14771          test ! -s conftest.err
14772        }; then
14773   ac_header_preproc=yes
14774 else
14775   $as_echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14777
14778   ac_header_preproc=no
14779 fi
14780
14781 rm -f conftest.err conftest.$ac_ext
14782 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14783 $as_echo "$ac_header_preproc" >&6; }
14784
14785 # So?  What about this header?
14786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14787   yes:no: )
14788     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14789 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14790     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14791 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14792     ac_header_preproc=yes
14793     ;;
14794   no:yes:* )
14795     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14796 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14797     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14798 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14799     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14800 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14801     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14802 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14803     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14804 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14805     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14806 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14807
14808     ;;
14809 esac
14810 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14811 $as_echo_n "checking for $ac_header... " >&6; }
14812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14813   $as_echo_n "(cached) " >&6
14814 else
14815   eval "$as_ac_Header=\$ac_header_preproc"
14816 fi
14817 ac_res=`eval 'as_val=${'$as_ac_Header'}
14818                  $as_echo "$as_val"'`
14819                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14820 $as_echo "$ac_res" >&6; }
14821
14822 fi
14823 as_val=`eval 'as_val=${'$as_ac_Header'}
14824                  $as_echo "$as_val"'`
14825    if test "x$as_val" = x""yes; then
14826   cat >>confdefs.h <<_ACEOF
14827 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14828 _ACEOF
14829
14830 fi
14831
14832 done
14833
14834
14835
14836
14837   :
14838
14839
14840
14841
14842
14843
14844
14845      if test $gl_cv_have_include_next = yes; then
14846        gl_cv_next_netinet_in_h='<'netinet/in.h'>'
14847      else
14848        { $as_echo "$as_me:$LINENO: checking absolute name of <netinet/in.h>" >&5
14849 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
14850 if test "${gl_cv_next_netinet_in_h+set}" = set; then
14851   $as_echo_n "(cached) " >&6
14852 else
14853
14854           if test $ac_cv_header_netinet_in_h = yes; then
14855             cat >conftest.$ac_ext <<_ACEOF
14856 /* confdefs.h.  */
14857 _ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h.  */
14861 #include <netinet/in.h>
14862
14863 _ACEOF
14864                                     gl_cv_next_netinet_in_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14865                sed -n '\#/netinet/in.h#{
14866                  s#.*"\(.*/netinet/in.h\)".*#\1#
14867                  s#^/[^/]#//&#
14868                  p
14869                  q
14870                }'`'"'
14871           else
14872             gl_cv_next_netinet_in_h='<'netinet/in.h'>'
14873           fi
14874
14875 fi
14876 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_netinet_in_h" >&5
14877 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
14878      fi
14879      NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
14880
14881
14882
14883     if test $ac_cv_header_netinet_in_h = yes; then
14884       HAVE_NETINET_IN_H=1
14885     else
14886       HAVE_NETINET_IN_H=0
14887     fi
14888
14889   fi
14890
14891
14892   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
14893 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
14894 if test -z "$MKDIR_P"; then
14895   if test "${ac_cv_path_mkdir+set}" = set; then
14896   $as_echo_n "(cached) " >&6
14897 else
14898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14899 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
14900 do
14901   IFS=$as_save_IFS
14902   test -z "$as_dir" && as_dir=.
14903   for ac_prog in mkdir gmkdir; do
14904          for ac_exec_ext in '' $ac_executable_extensions; do
14905            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
14906            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
14907              'mkdir (GNU coreutils) '* | \
14908              'mkdir (coreutils) '* | \
14909              'mkdir (fileutils) '4.1*)
14910                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
14911                break 3;;
14912            esac
14913          done
14914        done
14915 done
14916 IFS=$as_save_IFS
14917
14918 fi
14919
14920   if test "${ac_cv_path_mkdir+set}" = set; then
14921     MKDIR_P="$ac_cv_path_mkdir -p"
14922   else
14923     # As a last resort, use the slow shell script.  Don't cache a
14924     # value for MKDIR_P within a source directory, because that will
14925     # break other packages using the cache if that directory is
14926     # removed, or if the value is a relative name.
14927     test -d ./--version && rmdir ./--version
14928     MKDIR_P="$ac_install_sh -d"
14929   fi
14930 fi
14931 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
14932 $as_echo "$MKDIR_P" >&6; }
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942   gl_LIBOBJS="$gl_LIBOBJS physmem.$ac_objext"
14943
14944
14945   # Prerequisites of lib/physmem.c.
14946
14947
14948
14949
14950
14951
14952
14953
14954 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
14955     machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
14956     sys/systemcfg.h
14957 do
14958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14959 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14960 $as_echo_n "checking for $ac_header... " >&6; }
14961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14962   $as_echo_n "(cached) " >&6
14963 else
14964   cat >conftest.$ac_ext <<_ACEOF
14965 /* confdefs.h.  */
14966 _ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h.  */
14970 $ac_includes_default
14971
14972 #include <$ac_header>
14973 _ACEOF
14974 rm -f conftest.$ac_objext
14975 if { (ac_try="$ac_compile"
14976 case "(($ac_try" in
14977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978   *) ac_try_echo=$ac_try;;
14979 esac
14980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14981 $as_echo "$ac_try_echo") >&5
14982   (eval "$ac_compile") 2>conftest.er1
14983   ac_status=$?
14984   grep -v '^ *+' conftest.er1 >conftest.err
14985   rm -f conftest.er1
14986   cat conftest.err >&5
14987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988   (exit $ac_status); } && {
14989          test -z "$ac_c_werror_flag" ||
14990          test ! -s conftest.err
14991        } && test -s conftest.$ac_objext; then
14992   eval "$as_ac_Header=yes"
14993 else
14994   $as_echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14996
14997         eval "$as_ac_Header=no"
14998 fi
14999
15000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001 fi
15002 ac_res=`eval 'as_val=${'$as_ac_Header'}
15003                  $as_echo "$as_val"'`
15004                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15005 $as_echo "$ac_res" >&6; }
15006 as_val=`eval 'as_val=${'$as_ac_Header'}
15007                  $as_echo "$as_val"'`
15008    if test "x$as_val" = x""yes; then
15009   cat >>confdefs.h <<_ACEOF
15010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15011 _ACEOF
15012
15013 fi
15014
15015 done
15016
15017
15018
15019
15020
15021
15022
15023
15024 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
15025 do
15026 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15027 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15028 $as_echo_n "checking for $ac_func... " >&6; }
15029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15030   $as_echo_n "(cached) " >&6
15031 else
15032   cat >conftest.$ac_ext <<_ACEOF
15033 /* confdefs.h.  */
15034 _ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h.  */
15038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15040 #define $ac_func innocuous_$ac_func
15041
15042 /* System header to define __stub macros and hopefully few prototypes,
15043     which can conflict with char $ac_func (); below.
15044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15045     <limits.h> exists even on freestanding compilers.  */
15046
15047 #ifdef __STDC__
15048 # include <limits.h>
15049 #else
15050 # include <assert.h>
15051 #endif
15052
15053 #undef $ac_func
15054
15055 /* Override any GCC internal prototype to avoid an error.
15056    Use char because int might match the return type of a GCC
15057    builtin and then its argument prototype would still apply.  */
15058 #ifdef __cplusplus
15059 extern "C"
15060 #endif
15061 char $ac_func ();
15062 /* The GNU C library defines this for functions which it implements
15063     to always fail with ENOSYS.  Some functions are actually named
15064     something starting with __ and the normal name is an alias.  */
15065 #if defined __stub_$ac_func || defined __stub___$ac_func
15066 choke me
15067 #endif
15068
15069 int
15070 main ()
15071 {
15072 return $ac_func ();
15073   ;
15074   return 0;
15075 }
15076 _ACEOF
15077 rm -f conftest.$ac_objext conftest$ac_exeext
15078 if { (ac_try="$ac_link"
15079 case "(($ac_try" in
15080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081   *) ac_try_echo=$ac_try;;
15082 esac
15083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15084 $as_echo "$ac_try_echo") >&5
15085   (eval "$ac_link") 2>conftest.er1
15086   ac_status=$?
15087   grep -v '^ *+' conftest.er1 >conftest.err
15088   rm -f conftest.er1
15089   cat conftest.err >&5
15090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); } && {
15092          test -z "$ac_c_werror_flag" ||
15093          test ! -s conftest.err
15094        } && test -s conftest$ac_exeext && {
15095          test "$cross_compiling" = yes ||
15096          $as_test_x conftest$ac_exeext
15097        }; then
15098   eval "$as_ac_var=yes"
15099 else
15100   $as_echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15102
15103         eval "$as_ac_var=no"
15104 fi
15105
15106 rm -rf conftest.dSYM
15107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15108       conftest$ac_exeext conftest.$ac_ext
15109 fi
15110 ac_res=`eval 'as_val=${'$as_ac_var'}
15111                  $as_echo "$as_val"'`
15112                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15113 $as_echo "$ac_res" >&6; }
15114 as_val=`eval 'as_val=${'$as_ac_var'}
15115                  $as_echo "$as_val"'`
15116    if test "x$as_val" = x""yes; then
15117   cat >>confdefs.h <<_ACEOF
15118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15119 _ACEOF
15120
15121 fi
15122 done
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134   gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149   gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160 for ac_header in stdint.h
15161 do
15162 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15164   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15165 $as_echo_n "checking for $ac_header... " >&6; }
15166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15167   $as_echo_n "(cached) " >&6
15168 fi
15169 ac_res=`eval 'as_val=${'$as_ac_Header'}
15170                  $as_echo "$as_val"'`
15171                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15172 $as_echo "$ac_res" >&6; }
15173 else
15174   # Is the header compilable?
15175 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15176 $as_echo_n "checking $ac_header usability... " >&6; }
15177 cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h.  */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h.  */
15183 $ac_includes_default
15184 #include <$ac_header>
15185 _ACEOF
15186 rm -f conftest.$ac_objext
15187 if { (ac_try="$ac_compile"
15188 case "(($ac_try" in
15189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190   *) ac_try_echo=$ac_try;;
15191 esac
15192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15193 $as_echo "$ac_try_echo") >&5
15194   (eval "$ac_compile") 2>conftest.er1
15195   ac_status=$?
15196   grep -v '^ *+' conftest.er1 >conftest.err
15197   rm -f conftest.er1
15198   cat conftest.err >&5
15199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200   (exit $ac_status); } && {
15201          test -z "$ac_c_werror_flag" ||
15202          test ! -s conftest.err
15203        } && test -s conftest.$ac_objext; then
15204   ac_header_compiler=yes
15205 else
15206   $as_echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15208
15209         ac_header_compiler=no
15210 fi
15211
15212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15213 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15214 $as_echo "$ac_header_compiler" >&6; }
15215
15216 # Is the header present?
15217 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15218 $as_echo_n "checking $ac_header presence... " >&6; }
15219 cat >conftest.$ac_ext <<_ACEOF
15220 /* confdefs.h.  */
15221 _ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h.  */
15225 #include <$ac_header>
15226 _ACEOF
15227 if { (ac_try="$ac_cpp conftest.$ac_ext"
15228 case "(($ac_try" in
15229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15230   *) ac_try_echo=$ac_try;;
15231 esac
15232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15233 $as_echo "$ac_try_echo") >&5
15234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15235   ac_status=$?
15236   grep -v '^ *+' conftest.er1 >conftest.err
15237   rm -f conftest.er1
15238   cat conftest.err >&5
15239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); } >/dev/null && {
15241          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15242          test ! -s conftest.err
15243        }; then
15244   ac_header_preproc=yes
15245 else
15246   $as_echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15248
15249   ac_header_preproc=no
15250 fi
15251
15252 rm -f conftest.err conftest.$ac_ext
15253 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15254 $as_echo "$ac_header_preproc" >&6; }
15255
15256 # So?  What about this header?
15257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15258   yes:no: )
15259     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15260 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15261     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15262 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15263     ac_header_preproc=yes
15264     ;;
15265   no:yes:* )
15266     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15267 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15268     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15269 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15270     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15271 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15272     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15273 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15274     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15275 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15276     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15277 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15278
15279     ;;
15280 esac
15281 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15282 $as_echo_n "checking for $ac_header... " >&6; }
15283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15284   $as_echo_n "(cached) " >&6
15285 else
15286   eval "$as_ac_Header=\$ac_header_preproc"
15287 fi
15288 ac_res=`eval 'as_val=${'$as_ac_Header'}
15289                  $as_echo "$as_val"'`
15290                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15291 $as_echo "$ac_res" >&6; }
15292
15293 fi
15294 as_val=`eval 'as_val=${'$as_ac_Header'}
15295                  $as_echo "$as_val"'`
15296    if test "x$as_val" = x""yes; then
15297   cat >>confdefs.h <<_ACEOF
15298 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15299 _ACEOF
15300
15301 fi
15302
15303 done
15304
15305     { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
15306 $as_echo_n "checking for SIZE_MAX... " >&6; }
15307   result=
15308   cat >conftest.$ac_ext <<_ACEOF
15309 /* confdefs.h.  */
15310 _ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h.  */
15314
15315 #include <limits.h>
15316 #if HAVE_STDINT_H
15317 #include <stdint.h>
15318 #endif
15319 #ifdef SIZE_MAX
15320 Found it
15321 #endif
15322
15323 _ACEOF
15324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15325   $EGREP "Found it" >/dev/null 2>&1; then
15326   result=yes
15327 fi
15328 rm -f conftest*
15329
15330   if test -z "$result"; then
15331                 if test "$cross_compiling" = yes; then
15332   # Depending upon the size, compute the lo and hi bounds.
15333 cat >conftest.$ac_ext <<_ACEOF
15334 /* confdefs.h.  */
15335 _ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h.  */
15339 #include <stddef.h>
15340 #include <limits.h>
15341 int
15342 main ()
15343 {
15344 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
15345 test_array [0] = 0
15346
15347   ;
15348   return 0;
15349 }
15350 _ACEOF
15351 rm -f conftest.$ac_objext
15352 if { (ac_try="$ac_compile"
15353 case "(($ac_try" in
15354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355   *) ac_try_echo=$ac_try;;
15356 esac
15357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15358 $as_echo "$ac_try_echo") >&5
15359   (eval "$ac_compile") 2>conftest.er1
15360   ac_status=$?
15361   grep -v '^ *+' conftest.er1 >conftest.err
15362   rm -f conftest.er1
15363   cat conftest.err >&5
15364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365   (exit $ac_status); } && {
15366          test -z "$ac_c_werror_flag" ||
15367          test ! -s conftest.err
15368        } && test -s conftest.$ac_objext; then
15369   ac_lo=0 ac_mid=0
15370   while :; do
15371     cat >conftest.$ac_ext <<_ACEOF
15372 /* confdefs.h.  */
15373 _ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h.  */
15377 #include <stddef.h>
15378 #include <limits.h>
15379 int
15380 main ()
15381 {
15382 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
15383 test_array [0] = 0
15384
15385   ;
15386   return 0;
15387 }
15388 _ACEOF
15389 rm -f conftest.$ac_objext
15390 if { (ac_try="$ac_compile"
15391 case "(($ac_try" in
15392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393   *) ac_try_echo=$ac_try;;
15394 esac
15395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15396 $as_echo "$ac_try_echo") >&5
15397   (eval "$ac_compile") 2>conftest.er1
15398   ac_status=$?
15399   grep -v '^ *+' conftest.er1 >conftest.err
15400   rm -f conftest.er1
15401   cat conftest.err >&5
15402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); } && {
15404          test -z "$ac_c_werror_flag" ||
15405          test ! -s conftest.err
15406        } && test -s conftest.$ac_objext; then
15407   ac_hi=$ac_mid; break
15408 else
15409   $as_echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15411
15412         ac_lo=`expr $ac_mid + 1`
15413                         if test $ac_lo -le $ac_mid; then
15414                           ac_lo= ac_hi=
15415                           break
15416                         fi
15417                         ac_mid=`expr 2 '*' $ac_mid + 1`
15418 fi
15419
15420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15421   done
15422 else
15423   $as_echo "$as_me: failed program was:" >&5
15424 sed 's/^/| /' conftest.$ac_ext >&5
15425
15426         cat >conftest.$ac_ext <<_ACEOF
15427 /* confdefs.h.  */
15428 _ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h.  */
15432 #include <stddef.h>
15433 #include <limits.h>
15434 int
15435 main ()
15436 {
15437 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
15438 test_array [0] = 0
15439
15440   ;
15441   return 0;
15442 }
15443 _ACEOF
15444 rm -f conftest.$ac_objext
15445 if { (ac_try="$ac_compile"
15446 case "(($ac_try" in
15447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448   *) ac_try_echo=$ac_try;;
15449 esac
15450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15451 $as_echo "$ac_try_echo") >&5
15452   (eval "$ac_compile") 2>conftest.er1
15453   ac_status=$?
15454   grep -v '^ *+' conftest.er1 >conftest.err
15455   rm -f conftest.er1
15456   cat conftest.err >&5
15457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458   (exit $ac_status); } && {
15459          test -z "$ac_c_werror_flag" ||
15460          test ! -s conftest.err
15461        } && test -s conftest.$ac_objext; then
15462   ac_hi=-1 ac_mid=-1
15463   while :; do
15464     cat >conftest.$ac_ext <<_ACEOF
15465 /* confdefs.h.  */
15466 _ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h.  */
15470 #include <stddef.h>
15471 #include <limits.h>
15472 int
15473 main ()
15474 {
15475 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
15476 test_array [0] = 0
15477
15478   ;
15479   return 0;
15480 }
15481 _ACEOF
15482 rm -f conftest.$ac_objext
15483 if { (ac_try="$ac_compile"
15484 case "(($ac_try" in
15485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486   *) ac_try_echo=$ac_try;;
15487 esac
15488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15489 $as_echo "$ac_try_echo") >&5
15490   (eval "$ac_compile") 2>conftest.er1
15491   ac_status=$?
15492   grep -v '^ *+' conftest.er1 >conftest.err
15493   rm -f conftest.er1
15494   cat conftest.err >&5
15495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496   (exit $ac_status); } && {
15497          test -z "$ac_c_werror_flag" ||
15498          test ! -s conftest.err
15499        } && test -s conftest.$ac_objext; then
15500   ac_lo=$ac_mid; break
15501 else
15502   $as_echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15504
15505         ac_hi=`expr '(' $ac_mid ')' - 1`
15506                         if test $ac_mid -le $ac_hi; then
15507                           ac_lo= ac_hi=
15508                           break
15509                         fi
15510                         ac_mid=`expr 2 '*' $ac_mid`
15511 fi
15512
15513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15514   done
15515 else
15516   $as_echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15518
15519         ac_lo= ac_hi=
15520 fi
15521
15522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15523 fi
15524
15525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15526 # Binary search between lo and hi bounds.
15527 while test "x$ac_lo" != "x$ac_hi"; do
15528   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15529   cat >conftest.$ac_ext <<_ACEOF
15530 /* confdefs.h.  */
15531 _ACEOF
15532 cat confdefs.h >>conftest.$ac_ext
15533 cat >>conftest.$ac_ext <<_ACEOF
15534 /* end confdefs.h.  */
15535 #include <stddef.h>
15536 #include <limits.h>
15537 int
15538 main ()
15539 {
15540 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
15541 test_array [0] = 0
15542
15543   ;
15544   return 0;
15545 }
15546 _ACEOF
15547 rm -f conftest.$ac_objext
15548 if { (ac_try="$ac_compile"
15549 case "(($ac_try" in
15550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551   *) ac_try_echo=$ac_try;;
15552 esac
15553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15554 $as_echo "$ac_try_echo") >&5
15555   (eval "$ac_compile") 2>conftest.er1
15556   ac_status=$?
15557   grep -v '^ *+' conftest.er1 >conftest.err
15558   rm -f conftest.er1
15559   cat conftest.err >&5
15560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561   (exit $ac_status); } && {
15562          test -z "$ac_c_werror_flag" ||
15563          test ! -s conftest.err
15564        } && test -s conftest.$ac_objext; then
15565   ac_hi=$ac_mid
15566 else
15567   $as_echo "$as_me: failed program was:" >&5
15568 sed 's/^/| /' conftest.$ac_ext >&5
15569
15570         ac_lo=`expr '(' $ac_mid ')' + 1`
15571 fi
15572
15573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15574 done
15575 case $ac_lo in
15576 ?*) size_t_bits_minus_1=$ac_lo;;
15577 '') size_t_bits_minus_1= ;;
15578 esac
15579 else
15580   cat >conftest.$ac_ext <<_ACEOF
15581 /* confdefs.h.  */
15582 _ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h.  */
15586 #include <stddef.h>
15587 #include <limits.h>
15588 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
15589 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
15590 #include <stdio.h>
15591 #include <stdlib.h>
15592 int
15593 main ()
15594 {
15595
15596   FILE *f = fopen ("conftest.val", "w");
15597   if (! f)
15598     return 1;
15599   if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
15600     {
15601       long int i = longval ();
15602       if (i != (sizeof (size_t) * CHAR_BIT - 1))
15603         return 1;
15604       fprintf (f, "%ld", i);
15605     }
15606   else
15607     {
15608       unsigned long int i = ulongval ();
15609       if (i != (sizeof (size_t) * CHAR_BIT - 1))
15610         return 1;
15611       fprintf (f, "%lu", i);
15612     }
15613   /* Do not output a trailing newline, as this causes \r\n confusion
15614      on some platforms.  */
15615   return ferror (f) || fclose (f) != 0;
15616
15617   ;
15618   return 0;
15619 }
15620 _ACEOF
15621 rm -f conftest$ac_exeext
15622 if { (ac_try="$ac_link"
15623 case "(($ac_try" in
15624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15625   *) ac_try_echo=$ac_try;;
15626 esac
15627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15628 $as_echo "$ac_try_echo") >&5
15629   (eval "$ac_link") 2>&5
15630   ac_status=$?
15631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15633   { (case "(($ac_try" in
15634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15635   *) ac_try_echo=$ac_try;;
15636 esac
15637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15638 $as_echo "$ac_try_echo") >&5
15639   (eval "$ac_try") 2>&5
15640   ac_status=$?
15641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642   (exit $ac_status); }; }; then
15643   size_t_bits_minus_1=`cat conftest.val`
15644 else
15645   $as_echo "$as_me: program exited with status $ac_status" >&5
15646 $as_echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15648
15649 ( exit $ac_status )
15650 size_t_bits_minus_1=
15651 fi
15652 rm -rf conftest.dSYM
15653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15654 fi
15655 rm -f conftest.val
15656
15657     if test "$cross_compiling" = yes; then
15658   # Depending upon the size, compute the lo and hi bounds.
15659 cat >conftest.$ac_ext <<_ACEOF
15660 /* confdefs.h.  */
15661 _ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h.  */
15665 #include <stddef.h>
15666 int
15667 main ()
15668 {
15669 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
15670 test_array [0] = 0
15671
15672   ;
15673   return 0;
15674 }
15675 _ACEOF
15676 rm -f conftest.$ac_objext
15677 if { (ac_try="$ac_compile"
15678 case "(($ac_try" in
15679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680   *) ac_try_echo=$ac_try;;
15681 esac
15682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15683 $as_echo "$ac_try_echo") >&5
15684   (eval "$ac_compile") 2>conftest.er1
15685   ac_status=$?
15686   grep -v '^ *+' conftest.er1 >conftest.err
15687   rm -f conftest.er1
15688   cat conftest.err >&5
15689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690   (exit $ac_status); } && {
15691          test -z "$ac_c_werror_flag" ||
15692          test ! -s conftest.err
15693        } && test -s conftest.$ac_objext; then
15694   ac_lo=0 ac_mid=0
15695   while :; do
15696     cat >conftest.$ac_ext <<_ACEOF
15697 /* confdefs.h.  */
15698 _ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h.  */
15702 #include <stddef.h>
15703 int
15704 main ()
15705 {
15706 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
15707 test_array [0] = 0
15708
15709   ;
15710   return 0;
15711 }
15712 _ACEOF
15713 rm -f conftest.$ac_objext
15714 if { (ac_try="$ac_compile"
15715 case "(($ac_try" in
15716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717   *) ac_try_echo=$ac_try;;
15718 esac
15719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15720 $as_echo "$ac_try_echo") >&5
15721   (eval "$ac_compile") 2>conftest.er1
15722   ac_status=$?
15723   grep -v '^ *+' conftest.er1 >conftest.err
15724   rm -f conftest.er1
15725   cat conftest.err >&5
15726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727   (exit $ac_status); } && {
15728          test -z "$ac_c_werror_flag" ||
15729          test ! -s conftest.err
15730        } && test -s conftest.$ac_objext; then
15731   ac_hi=$ac_mid; break
15732 else
15733   $as_echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15735
15736         ac_lo=`expr $ac_mid + 1`
15737                         if test $ac_lo -le $ac_mid; then
15738                           ac_lo= ac_hi=
15739                           break
15740                         fi
15741                         ac_mid=`expr 2 '*' $ac_mid + 1`
15742 fi
15743
15744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15745   done
15746 else
15747   $as_echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15749
15750         cat >conftest.$ac_ext <<_ACEOF
15751 /* confdefs.h.  */
15752 _ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h.  */
15756 #include <stddef.h>
15757 int
15758 main ()
15759 {
15760 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
15761 test_array [0] = 0
15762
15763   ;
15764   return 0;
15765 }
15766 _ACEOF
15767 rm -f conftest.$ac_objext
15768 if { (ac_try="$ac_compile"
15769 case "(($ac_try" in
15770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771   *) ac_try_echo=$ac_try;;
15772 esac
15773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15774 $as_echo "$ac_try_echo") >&5
15775   (eval "$ac_compile") 2>conftest.er1
15776   ac_status=$?
15777   grep -v '^ *+' conftest.er1 >conftest.err
15778   rm -f conftest.er1
15779   cat conftest.err >&5
15780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781   (exit $ac_status); } && {
15782          test -z "$ac_c_werror_flag" ||
15783          test ! -s conftest.err
15784        } && test -s conftest.$ac_objext; then
15785   ac_hi=-1 ac_mid=-1
15786   while :; do
15787     cat >conftest.$ac_ext <<_ACEOF
15788 /* confdefs.h.  */
15789 _ACEOF
15790 cat confdefs.h >>conftest.$ac_ext
15791 cat >>conftest.$ac_ext <<_ACEOF
15792 /* end confdefs.h.  */
15793 #include <stddef.h>
15794 int
15795 main ()
15796 {
15797 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
15798 test_array [0] = 0
15799
15800   ;
15801   return 0;
15802 }
15803 _ACEOF
15804 rm -f conftest.$ac_objext
15805 if { (ac_try="$ac_compile"
15806 case "(($ac_try" in
15807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808   *) ac_try_echo=$ac_try;;
15809 esac
15810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15811 $as_echo "$ac_try_echo") >&5
15812   (eval "$ac_compile") 2>conftest.er1
15813   ac_status=$?
15814   grep -v '^ *+' conftest.er1 >conftest.err
15815   rm -f conftest.er1
15816   cat conftest.err >&5
15817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818   (exit $ac_status); } && {
15819          test -z "$ac_c_werror_flag" ||
15820          test ! -s conftest.err
15821        } && test -s conftest.$ac_objext; then
15822   ac_lo=$ac_mid; break
15823 else
15824   $as_echo "$as_me: failed program was:" >&5
15825 sed 's/^/| /' conftest.$ac_ext >&5
15826
15827         ac_hi=`expr '(' $ac_mid ')' - 1`
15828                         if test $ac_mid -le $ac_hi; then
15829                           ac_lo= ac_hi=
15830                           break
15831                         fi
15832                         ac_mid=`expr 2 '*' $ac_mid`
15833 fi
15834
15835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836   done
15837 else
15838   $as_echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15840
15841         ac_lo= ac_hi=
15842 fi
15843
15844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15845 fi
15846
15847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15848 # Binary search between lo and hi bounds.
15849 while test "x$ac_lo" != "x$ac_hi"; do
15850   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15851   cat >conftest.$ac_ext <<_ACEOF
15852 /* confdefs.h.  */
15853 _ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h.  */
15857 #include <stddef.h>
15858 int
15859 main ()
15860 {
15861 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
15862 test_array [0] = 0
15863
15864   ;
15865   return 0;
15866 }
15867 _ACEOF
15868 rm -f conftest.$ac_objext
15869 if { (ac_try="$ac_compile"
15870 case "(($ac_try" in
15871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15872   *) ac_try_echo=$ac_try;;
15873 esac
15874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15875 $as_echo "$ac_try_echo") >&5
15876   (eval "$ac_compile") 2>conftest.er1
15877   ac_status=$?
15878   grep -v '^ *+' conftest.er1 >conftest.err
15879   rm -f conftest.er1
15880   cat conftest.err >&5
15881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); } && {
15883          test -z "$ac_c_werror_flag" ||
15884          test ! -s conftest.err
15885        } && test -s conftest.$ac_objext; then
15886   ac_hi=$ac_mid
15887 else
15888   $as_echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15890
15891         ac_lo=`expr '(' $ac_mid ')' + 1`
15892 fi
15893
15894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895 done
15896 case $ac_lo in
15897 ?*) fits_in_uint=$ac_lo;;
15898 '') fits_in_uint= ;;
15899 esac
15900 else
15901   cat >conftest.$ac_ext <<_ACEOF
15902 /* confdefs.h.  */
15903 _ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h.  */
15907 #include <stddef.h>
15908 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
15909 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
15910 #include <stdio.h>
15911 #include <stdlib.h>
15912 int
15913 main ()
15914 {
15915
15916   FILE *f = fopen ("conftest.val", "w");
15917   if (! f)
15918     return 1;
15919   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
15920     {
15921       long int i = longval ();
15922       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
15923         return 1;
15924       fprintf (f, "%ld", i);
15925     }
15926   else
15927     {
15928       unsigned long int i = ulongval ();
15929       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
15930         return 1;
15931       fprintf (f, "%lu", i);
15932     }
15933   /* Do not output a trailing newline, as this causes \r\n confusion
15934      on some platforms.  */
15935   return ferror (f) || fclose (f) != 0;
15936
15937   ;
15938   return 0;
15939 }
15940 _ACEOF
15941 rm -f conftest$ac_exeext
15942 if { (ac_try="$ac_link"
15943 case "(($ac_try" in
15944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945   *) ac_try_echo=$ac_try;;
15946 esac
15947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15948 $as_echo "$ac_try_echo") >&5
15949   (eval "$ac_link") 2>&5
15950   ac_status=$?
15951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15953   { (case "(($ac_try" in
15954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955   *) ac_try_echo=$ac_try;;
15956 esac
15957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15958 $as_echo "$ac_try_echo") >&5
15959   (eval "$ac_try") 2>&5
15960   ac_status=$?
15961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962   (exit $ac_status); }; }; then
15963   fits_in_uint=`cat conftest.val`
15964 else
15965   $as_echo "$as_me: program exited with status $ac_status" >&5
15966 $as_echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15968
15969 ( exit $ac_status )
15970 fits_in_uint=
15971 fi
15972 rm -rf conftest.dSYM
15973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15974 fi
15975 rm -f conftest.val
15976
15977     if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
15978       if test $fits_in_uint = 1; then
15979                         cat >conftest.$ac_ext <<_ACEOF
15980 /* confdefs.h.  */
15981 _ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h.  */
15985 #include <stddef.h>
15986           extern size_t foo;
15987           extern unsigned long foo;
15988
15989 int
15990 main ()
15991 {
15992
15993   ;
15994   return 0;
15995 }
15996 _ACEOF
15997 rm -f conftest.$ac_objext
15998 if { (ac_try="$ac_compile"
15999 case "(($ac_try" in
16000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001   *) ac_try_echo=$ac_try;;
16002 esac
16003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16004 $as_echo "$ac_try_echo") >&5
16005   (eval "$ac_compile") 2>conftest.er1
16006   ac_status=$?
16007   grep -v '^ *+' conftest.er1 >conftest.err
16008   rm -f conftest.er1
16009   cat conftest.err >&5
16010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011   (exit $ac_status); } && {
16012          test -z "$ac_c_werror_flag" ||
16013          test ! -s conftest.err
16014        } && test -s conftest.$ac_objext; then
16015   fits_in_uint=0
16016 else
16017   $as_echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16019
16020
16021 fi
16022
16023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16024       fi
16025                         if test $fits_in_uint = 1; then
16026         result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
16027       else
16028         result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
16029       fi
16030     else
16031             result='((size_t)~(size_t)0)'
16032     fi
16033   fi
16034   { $as_echo "$as_me:$LINENO: result: $result" >&5
16035 $as_echo "$result" >&6; }
16036   if test "$result" != yes; then
16037
16038 cat >>confdefs.h <<_ACEOF
16039 #define SIZE_MAX $result
16040 _ACEOF
16041
16042   fi
16043
16044
16045
16046
16047 for ac_func in snprintf
16048 do
16049 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16050 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16051 $as_echo_n "checking for $ac_func... " >&6; }
16052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16053   $as_echo_n "(cached) " >&6
16054 else
16055   cat >conftest.$ac_ext <<_ACEOF
16056 /* confdefs.h.  */
16057 _ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h.  */
16061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16063 #define $ac_func innocuous_$ac_func
16064
16065 /* System header to define __stub macros and hopefully few prototypes,
16066     which can conflict with char $ac_func (); below.
16067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16068     <limits.h> exists even on freestanding compilers.  */
16069
16070 #ifdef __STDC__
16071 # include <limits.h>
16072 #else
16073 # include <assert.h>
16074 #endif
16075
16076 #undef $ac_func
16077
16078 /* Override any GCC internal prototype to avoid an error.
16079    Use char because int might match the return type of a GCC
16080    builtin and then its argument prototype would still apply.  */
16081 #ifdef __cplusplus
16082 extern "C"
16083 #endif
16084 char $ac_func ();
16085 /* The GNU C library defines this for functions which it implements
16086     to always fail with ENOSYS.  Some functions are actually named
16087     something starting with __ and the normal name is an alias.  */
16088 #if defined __stub_$ac_func || defined __stub___$ac_func
16089 choke me
16090 #endif
16091
16092 int
16093 main ()
16094 {
16095 return $ac_func ();
16096   ;
16097   return 0;
16098 }
16099 _ACEOF
16100 rm -f conftest.$ac_objext conftest$ac_exeext
16101 if { (ac_try="$ac_link"
16102 case "(($ac_try" in
16103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104   *) ac_try_echo=$ac_try;;
16105 esac
16106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16107 $as_echo "$ac_try_echo") >&5
16108   (eval "$ac_link") 2>conftest.er1
16109   ac_status=$?
16110   grep -v '^ *+' conftest.er1 >conftest.err
16111   rm -f conftest.er1
16112   cat conftest.err >&5
16113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114   (exit $ac_status); } && {
16115          test -z "$ac_c_werror_flag" ||
16116          test ! -s conftest.err
16117        } && test -s conftest$ac_exeext && {
16118          test "$cross_compiling" = yes ||
16119          $as_test_x conftest$ac_exeext
16120        }; then
16121   eval "$as_ac_var=yes"
16122 else
16123   $as_echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16125
16126         eval "$as_ac_var=no"
16127 fi
16128
16129 rm -rf conftest.dSYM
16130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16131       conftest$ac_exeext conftest.$ac_ext
16132 fi
16133 ac_res=`eval 'as_val=${'$as_ac_var'}
16134                  $as_echo "$as_val"'`
16135                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16136 $as_echo "$ac_res" >&6; }
16137 as_val=`eval 'as_val=${'$as_ac_var'}
16138                  $as_echo "$as_val"'`
16139    if test "x$as_val" = x""yes; then
16140   cat >>confdefs.h <<_ACEOF
16141 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16142 _ACEOF
16143
16144 fi
16145 done
16146
16147   if test $ac_cv_func_snprintf = no; then
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
16158
16159   if test $ac_cv_func_snprintf = yes; then
16160     REPLACE_SNPRINTF=1
16161   fi
16162   :
16163
16164   fi
16165
16166   :
16167
16168
16169
16170
16171
16172   if test $ac_cv_have_decl_snprintf = no; then
16173     HAVE_DECL_SNPRINTF=0
16174   fi
16175
16176
16177
16178   GNULIB_SNPRINTF=1
16179
16180      { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
16181 $as_echo_n "checking for socklen_t... " >&6; }
16182 if test "${ac_cv_type_socklen_t+set}" = set; then
16183   $as_echo_n "(cached) " >&6
16184 else
16185   ac_cv_type_socklen_t=no
16186 cat >conftest.$ac_ext <<_ACEOF
16187 /* confdefs.h.  */
16188 _ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h.  */
16192 #include <sys/types.h>
16193       #if HAVE_SYS_SOCKET_H
16194       # include <sys/socket.h>
16195       #elif HAVE_WS2TCPIP_H
16196       # include <ws2tcpip.h>
16197       #endif
16198
16199 int
16200 main ()
16201 {
16202 if (sizeof (socklen_t))
16203        return 0;
16204   ;
16205   return 0;
16206 }
16207 _ACEOF
16208 rm -f conftest.$ac_objext
16209 if { (ac_try="$ac_compile"
16210 case "(($ac_try" in
16211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212   *) ac_try_echo=$ac_try;;
16213 esac
16214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16215 $as_echo "$ac_try_echo") >&5
16216   (eval "$ac_compile") 2>conftest.er1
16217   ac_status=$?
16218   grep -v '^ *+' conftest.er1 >conftest.err
16219   rm -f conftest.er1
16220   cat conftest.err >&5
16221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   (exit $ac_status); } && {
16223          test -z "$ac_c_werror_flag" ||
16224          test ! -s conftest.err
16225        } && test -s conftest.$ac_objext; then
16226   cat >conftest.$ac_ext <<_ACEOF
16227 /* confdefs.h.  */
16228 _ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h.  */
16232 #include <sys/types.h>
16233       #if HAVE_SYS_SOCKET_H
16234       # include <sys/socket.h>
16235       #elif HAVE_WS2TCPIP_H
16236       # include <ws2tcpip.h>
16237       #endif
16238
16239 int
16240 main ()
16241 {
16242 if (sizeof ((socklen_t)))
16243           return 0;
16244   ;
16245   return 0;
16246 }
16247 _ACEOF
16248 rm -f conftest.$ac_objext
16249 if { (ac_try="$ac_compile"
16250 case "(($ac_try" in
16251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252   *) ac_try_echo=$ac_try;;
16253 esac
16254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16255 $as_echo "$ac_try_echo") >&5
16256   (eval "$ac_compile") 2>conftest.er1
16257   ac_status=$?
16258   grep -v '^ *+' conftest.er1 >conftest.err
16259   rm -f conftest.er1
16260   cat conftest.err >&5
16261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262   (exit $ac_status); } && {
16263          test -z "$ac_c_werror_flag" ||
16264          test ! -s conftest.err
16265        } && test -s conftest.$ac_objext; then
16266   :
16267 else
16268   $as_echo "$as_me: failed program was:" >&5
16269 sed 's/^/| /' conftest.$ac_ext >&5
16270
16271         ac_cv_type_socklen_t=yes
16272 fi
16273
16274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16275 else
16276   $as_echo "$as_me: failed program was:" >&5
16277 sed 's/^/| /' conftest.$ac_ext >&5
16278
16279
16280 fi
16281
16282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16283 fi
16284 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
16285 $as_echo "$ac_cv_type_socklen_t" >&6; }
16286 if test "x$ac_cv_type_socklen_t" = x""yes; then
16287   :
16288 else
16289   { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
16290 $as_echo_n "checking for socklen_t equivalent... " >&6; }
16291       if test "${gl_cv_socklen_t_equiv+set}" = set; then
16292   $as_echo_n "(cached) " >&6
16293 else
16294   # Systems have either "struct sockaddr *" or
16295          # "void *" as the second argument to getpeername
16296          gl_cv_socklen_t_equiv=
16297          for arg2 in "struct sockaddr" void; do
16298            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
16299              cat >conftest.$ac_ext <<_ACEOF
16300 /* confdefs.h.  */
16301 _ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h.  */
16305 #include <sys/types.h>
16306                 #include <sys/socket.h>
16307
16308                 int getpeername (int, $arg2 *, $t *);
16309 int
16310 main ()
16311 {
16312 $t len;
16313                 getpeername (0, 0, &len);
16314   ;
16315   return 0;
16316 }
16317 _ACEOF
16318 rm -f conftest.$ac_objext
16319 if { (ac_try="$ac_compile"
16320 case "(($ac_try" in
16321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322   *) ac_try_echo=$ac_try;;
16323 esac
16324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16325 $as_echo "$ac_try_echo") >&5
16326   (eval "$ac_compile") 2>conftest.er1
16327   ac_status=$?
16328   grep -v '^ *+' conftest.er1 >conftest.err
16329   rm -f conftest.er1
16330   cat conftest.err >&5
16331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332   (exit $ac_status); } && {
16333          test -z "$ac_c_werror_flag" ||
16334          test ! -s conftest.err
16335        } && test -s conftest.$ac_objext; then
16336   gl_cv_socklen_t_equiv="$t"
16337 else
16338   $as_echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16340
16341
16342 fi
16343
16344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16345              test "$gl_cv_socklen_t_equiv" != "" && break
16346            done
16347            test "$gl_cv_socklen_t_equiv" != "" && break
16348          done
16349
16350 fi
16351
16352       if test "$gl_cv_socklen_t_equiv" = ""; then
16353         { { $as_echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
16354 $as_echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
16355    { (exit 1); exit 1; }; }
16356       fi
16357       { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
16358 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
16359
16360 cat >>confdefs.h <<_ACEOF
16361 #define socklen_t $gl_cv_socklen_t_equiv
16362 _ACEOF
16363
16364 fi
16365
16366
16367   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
16368 $as_echo_n "checking for ssize_t... " >&6; }
16369 if test "${gt_cv_ssize_t+set}" = set; then
16370   $as_echo_n "(cached) " >&6
16371 else
16372   cat >conftest.$ac_ext <<_ACEOF
16373 /* confdefs.h.  */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h.  */
16378 #include <sys/types.h>
16379 int
16380 main ()
16381 {
16382 int x = sizeof (ssize_t *) + sizeof (ssize_t);
16383         return !x;
16384   ;
16385   return 0;
16386 }
16387 _ACEOF
16388 rm -f conftest.$ac_objext
16389 if { (ac_try="$ac_compile"
16390 case "(($ac_try" in
16391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392   *) ac_try_echo=$ac_try;;
16393 esac
16394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16395 $as_echo "$ac_try_echo") >&5
16396   (eval "$ac_compile") 2>conftest.er1
16397   ac_status=$?
16398   grep -v '^ *+' conftest.er1 >conftest.err
16399   rm -f conftest.er1
16400   cat conftest.err >&5
16401   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402   (exit $ac_status); } && {
16403          test -z "$ac_c_werror_flag" ||
16404          test ! -s conftest.err
16405        } && test -s conftest.$ac_objext; then
16406   gt_cv_ssize_t=yes
16407 else
16408   $as_echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16410
16411         gt_cv_ssize_t=no
16412 fi
16413
16414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16415 fi
16416 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
16417 $as_echo "$gt_cv_ssize_t" >&6; }
16418   if test $gt_cv_ssize_t = no; then
16419
16420 cat >>confdefs.h <<\_ACEOF
16421 #define ssize_t int
16422 _ACEOF
16423
16424   fi
16425
16426
16427
16428
16429   # Define two additional variables used in the Makefile substitution.
16430
16431   if test "$ac_cv_header_stdbool_h" = yes; then
16432     STDBOOL_H=''
16433   else
16434     STDBOOL_H='stdbool.h'
16435   fi
16436
16437
16438   if test "$ac_cv_type__Bool" = yes; then
16439     HAVE__BOOL=1
16440   else
16441     HAVE__BOOL=0
16442   fi
16443
16444
16445
16446
16447
16448   if test $ac_cv_type_long_long_int = yes; then
16449     HAVE_LONG_LONG_INT=1
16450   else
16451     HAVE_LONG_LONG_INT=0
16452   fi
16453
16454
16455   if test $ac_cv_type_unsigned_long_long_int = yes; then
16456     HAVE_UNSIGNED_LONG_LONG_INT=1
16457   else
16458     HAVE_UNSIGNED_LONG_LONG_INT=0
16459   fi
16460
16461
16462       if test $ac_cv_header_inttypes_h = yes; then
16463     HAVE_INTTYPES_H=1
16464   else
16465     HAVE_INTTYPES_H=0
16466   fi
16467
16468
16469       if test $ac_cv_header_sys_types_h = yes; then
16470     HAVE_SYS_TYPES_H=1
16471   else
16472     HAVE_SYS_TYPES_H=0
16473   fi
16474
16475
16476
16477
16478
16479   :
16480
16481
16482
16483
16484
16485
16486
16487      if test $gl_cv_have_include_next = yes; then
16488        gl_cv_next_stdint_h='<'stdint.h'>'
16489      else
16490        { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
16491 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16492 if test "${gl_cv_next_stdint_h+set}" = set; then
16493   $as_echo_n "(cached) " >&6
16494 else
16495
16496           if test $ac_cv_header_stdint_h = yes; then
16497             cat >conftest.$ac_ext <<_ACEOF
16498 /* confdefs.h.  */
16499 _ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h.  */
16503 #include <stdint.h>
16504
16505 _ACEOF
16506                                     gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16507                sed -n '\#/stdint.h#{
16508                  s#.*"\(.*/stdint.h\)".*#\1#
16509                  s#^/[^/]#//&#
16510                  p
16511                  q
16512                }'`'"'
16513           else
16514             gl_cv_next_stdint_h='<'stdint.h'>'
16515           fi
16516
16517 fi
16518 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
16519 $as_echo "$gl_cv_next_stdint_h" >&6; }
16520      fi
16521      NEXT_STDINT_H=$gl_cv_next_stdint_h
16522
16523
16524
16525   if test $ac_cv_header_stdint_h = yes; then
16526     HAVE_STDINT_H=1
16527   else
16528     HAVE_STDINT_H=0
16529   fi
16530
16531
16532     if test $ac_cv_header_stdint_h = yes; then
16533     { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
16534 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16535 if test "${gl_cv_header_working_stdint_h+set}" = set; then
16536   $as_echo_n "(cached) " >&6
16537 else
16538   gl_cv_header_working_stdint_h=no
16539        cat >conftest.$ac_ext <<_ACEOF
16540
16541          /* confdefs.h.  */
16542 _ACEOF
16543 cat confdefs.h >>conftest.$ac_ext
16544 cat >>conftest.$ac_ext <<_ACEOF
16545 /* end confdefs.h.  */
16546
16547 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16548 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16549 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16550 #include <stdint.h>
16551 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
16552 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16553 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16554 #endif
16555
16556
16557   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16558      included before <wchar.h>.  */
16559   #include <stddef.h>
16560   #include <signal.h>
16561   #if HAVE_WCHAR_H
16562   # include <stdio.h>
16563   # include <time.h>
16564   # include <wchar.h>
16565   #endif
16566
16567
16568 #ifdef INT8_MAX
16569 int8_t a1 = INT8_MAX;
16570 int8_t a1min = INT8_MIN;
16571 #endif
16572 #ifdef INT16_MAX
16573 int16_t a2 = INT16_MAX;
16574 int16_t a2min = INT16_MIN;
16575 #endif
16576 #ifdef INT32_MAX
16577 int32_t a3 = INT32_MAX;
16578 int32_t a3min = INT32_MIN;
16579 #endif
16580 #ifdef INT64_MAX
16581 int64_t a4 = INT64_MAX;
16582 int64_t a4min = INT64_MIN;
16583 #endif
16584 #ifdef UINT8_MAX
16585 uint8_t b1 = UINT8_MAX;
16586 #else
16587 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16588 #endif
16589 #ifdef UINT16_MAX
16590 uint16_t b2 = UINT16_MAX;
16591 #endif
16592 #ifdef UINT32_MAX
16593 uint32_t b3 = UINT32_MAX;
16594 #endif
16595 #ifdef UINT64_MAX
16596 uint64_t b4 = UINT64_MAX;
16597 #endif
16598 int_least8_t c1 = INT8_C (0x7f);
16599 int_least8_t c1max = INT_LEAST8_MAX;
16600 int_least8_t c1min = INT_LEAST8_MIN;
16601 int_least16_t c2 = INT16_C (0x7fff);
16602 int_least16_t c2max = INT_LEAST16_MAX;
16603 int_least16_t c2min = INT_LEAST16_MIN;
16604 int_least32_t c3 = INT32_C (0x7fffffff);
16605 int_least32_t c3max = INT_LEAST32_MAX;
16606 int_least32_t c3min = INT_LEAST32_MIN;
16607 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16608 int_least64_t c4max = INT_LEAST64_MAX;
16609 int_least64_t c4min = INT_LEAST64_MIN;
16610 uint_least8_t d1 = UINT8_C (0xff);
16611 uint_least8_t d1max = UINT_LEAST8_MAX;
16612 uint_least16_t d2 = UINT16_C (0xffff);
16613 uint_least16_t d2max = UINT_LEAST16_MAX;
16614 uint_least32_t d3 = UINT32_C (0xffffffff);
16615 uint_least32_t d3max = UINT_LEAST32_MAX;
16616 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16617 uint_least64_t d4max = UINT_LEAST64_MAX;
16618 int_fast8_t e1 = INT_FAST8_MAX;
16619 int_fast8_t e1min = INT_FAST8_MIN;
16620 int_fast16_t e2 = INT_FAST16_MAX;
16621 int_fast16_t e2min = INT_FAST16_MIN;
16622 int_fast32_t e3 = INT_FAST32_MAX;
16623 int_fast32_t e3min = INT_FAST32_MIN;
16624 int_fast64_t e4 = INT_FAST64_MAX;
16625 int_fast64_t e4min = INT_FAST64_MIN;
16626 uint_fast8_t f1 = UINT_FAST8_MAX;
16627 uint_fast16_t f2 = UINT_FAST16_MAX;
16628 uint_fast32_t f3 = UINT_FAST32_MAX;
16629 uint_fast64_t f4 = UINT_FAST64_MAX;
16630 #ifdef INTPTR_MAX
16631 intptr_t g = INTPTR_MAX;
16632 intptr_t gmin = INTPTR_MIN;
16633 #endif
16634 #ifdef UINTPTR_MAX
16635 uintptr_t h = UINTPTR_MAX;
16636 #endif
16637 intmax_t i = INTMAX_MAX;
16638 uintmax_t j = UINTMAX_MAX;
16639
16640 #include <limits.h> /* for CHAR_BIT */
16641 #define TYPE_MINIMUM(t) \
16642   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
16643 #define TYPE_MAXIMUM(t) \
16644   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
16645 struct s {
16646   int check_PTRDIFF:
16647       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16648       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16649       ? 1 : -1;
16650   /* Detect bug in FreeBSD 6.0 / ia64.  */
16651   int check_SIG_ATOMIC:
16652       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16653       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16654       ? 1 : -1;
16655   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16656   int check_WCHAR:
16657       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16658       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16659       ? 1 : -1;
16660   /* Detect bug in mingw.  */
16661   int check_WINT:
16662       WINT_MIN == TYPE_MINIMUM (wint_t)
16663       && WINT_MAX == TYPE_MAXIMUM (wint_t)
16664       ? 1 : -1;
16665
16666   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
16667   int check_UINT8_C:
16668         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16669   int check_UINT16_C:
16670         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16671
16672   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
16673 #ifdef UINT8_MAX
16674   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16675 #endif
16676 #ifdef UINT16_MAX
16677   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16678 #endif
16679 #ifdef UINT32_MAX
16680   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16681 #endif
16682 #ifdef UINT64_MAX
16683   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16684 #endif
16685   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16686   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16687   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16688   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16689   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16690   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16691   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16692   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16693   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16694   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16695   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16696 };
16697
16698 int
16699 main ()
16700 {
16701
16702   ;
16703   return 0;
16704 }
16705 _ACEOF
16706 rm -f conftest.$ac_objext
16707 if { (ac_try="$ac_compile"
16708 case "(($ac_try" in
16709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710   *) ac_try_echo=$ac_try;;
16711 esac
16712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16713 $as_echo "$ac_try_echo") >&5
16714   (eval "$ac_compile") 2>conftest.er1
16715   ac_status=$?
16716   grep -v '^ *+' conftest.er1 >conftest.err
16717   rm -f conftest.er1
16718   cat conftest.err >&5
16719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); } && {
16721          test -z "$ac_c_werror_flag" ||
16722          test ! -s conftest.err
16723        } && test -s conftest.$ac_objext; then
16724   gl_cv_header_working_stdint_h=yes
16725 else
16726   $as_echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16728
16729
16730 fi
16731
16732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16733 fi
16734 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
16735 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16736   fi
16737   if test "$gl_cv_header_working_stdint_h" = yes; then
16738     STDINT_H=
16739   else
16740
16741
16742 for ac_header in sys/inttypes.h sys/bitypes.h
16743 do
16744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16746   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16747 $as_echo_n "checking for $ac_header... " >&6; }
16748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16749   $as_echo_n "(cached) " >&6
16750 fi
16751 ac_res=`eval 'as_val=${'$as_ac_Header'}
16752                  $as_echo "$as_val"'`
16753                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16754 $as_echo "$ac_res" >&6; }
16755 else
16756   # Is the header compilable?
16757 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16758 $as_echo_n "checking $ac_header usability... " >&6; }
16759 cat >conftest.$ac_ext <<_ACEOF
16760 /* confdefs.h.  */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h.  */
16765 $ac_includes_default
16766 #include <$ac_header>
16767 _ACEOF
16768 rm -f conftest.$ac_objext
16769 if { (ac_try="$ac_compile"
16770 case "(($ac_try" in
16771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772   *) ac_try_echo=$ac_try;;
16773 esac
16774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16775 $as_echo "$ac_try_echo") >&5
16776   (eval "$ac_compile") 2>conftest.er1
16777   ac_status=$?
16778   grep -v '^ *+' conftest.er1 >conftest.err
16779   rm -f conftest.er1
16780   cat conftest.err >&5
16781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782   (exit $ac_status); } && {
16783          test -z "$ac_c_werror_flag" ||
16784          test ! -s conftest.err
16785        } && test -s conftest.$ac_objext; then
16786   ac_header_compiler=yes
16787 else
16788   $as_echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16790
16791         ac_header_compiler=no
16792 fi
16793
16794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16795 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16796 $as_echo "$ac_header_compiler" >&6; }
16797
16798 # Is the header present?
16799 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16800 $as_echo_n "checking $ac_header presence... " >&6; }
16801 cat >conftest.$ac_ext <<_ACEOF
16802 /* confdefs.h.  */
16803 _ACEOF
16804 cat confdefs.h >>conftest.$ac_ext
16805 cat >>conftest.$ac_ext <<_ACEOF
16806 /* end confdefs.h.  */
16807 #include <$ac_header>
16808 _ACEOF
16809 if { (ac_try="$ac_cpp conftest.$ac_ext"
16810 case "(($ac_try" in
16811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812   *) ac_try_echo=$ac_try;;
16813 esac
16814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16815 $as_echo "$ac_try_echo") >&5
16816   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16817   ac_status=$?
16818   grep -v '^ *+' conftest.er1 >conftest.err
16819   rm -f conftest.er1
16820   cat conftest.err >&5
16821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822   (exit $ac_status); } >/dev/null && {
16823          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16824          test ! -s conftest.err
16825        }; then
16826   ac_header_preproc=yes
16827 else
16828   $as_echo "$as_me: failed program was:" >&5
16829 sed 's/^/| /' conftest.$ac_ext >&5
16830
16831   ac_header_preproc=no
16832 fi
16833
16834 rm -f conftest.err conftest.$ac_ext
16835 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16836 $as_echo "$ac_header_preproc" >&6; }
16837
16838 # So?  What about this header?
16839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16840   yes:no: )
16841     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16842 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16843     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16844 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16845     ac_header_preproc=yes
16846     ;;
16847   no:yes:* )
16848     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16849 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16850     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16851 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16852     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16853 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16854     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16855 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16856     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16857 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16858     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16859 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16860
16861     ;;
16862 esac
16863 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16864 $as_echo_n "checking for $ac_header... " >&6; }
16865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16866   $as_echo_n "(cached) " >&6
16867 else
16868   eval "$as_ac_Header=\$ac_header_preproc"
16869 fi
16870 ac_res=`eval 'as_val=${'$as_ac_Header'}
16871                  $as_echo "$as_val"'`
16872                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16873 $as_echo "$ac_res" >&6; }
16874
16875 fi
16876 as_val=`eval 'as_val=${'$as_ac_Header'}
16877                  $as_echo "$as_val"'`
16878    if test "x$as_val" = x""yes; then
16879   cat >>confdefs.h <<_ACEOF
16880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16881 _ACEOF
16882
16883 fi
16884
16885 done
16886
16887     if test $ac_cv_header_sys_inttypes_h = yes; then
16888       HAVE_SYS_INTTYPES_H=1
16889     else
16890       HAVE_SYS_INTTYPES_H=0
16891     fi
16892
16893     if test $ac_cv_header_sys_bitypes_h = yes; then
16894       HAVE_SYS_BITYPES_H=1
16895     else
16896       HAVE_SYS_BITYPES_H=0
16897     fi
16898
16899
16900
16901   :
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
16917     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
16918 $as_echo_n "checking for bit size of $gltype... " >&6; }
16919 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
16920   $as_echo_n "(cached) " >&6
16921 else
16922   if test "$cross_compiling" = yes; then
16923   # Depending upon the size, compute the lo and hi bounds.
16924 cat >conftest.$ac_ext <<_ACEOF
16925 /* confdefs.h.  */
16926 _ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h.  */
16930
16931   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16932      included before <wchar.h>.  */
16933   #include <stddef.h>
16934   #include <signal.h>
16935   #if HAVE_WCHAR_H
16936   # include <stdio.h>
16937   # include <time.h>
16938   # include <wchar.h>
16939   #endif
16940
16941 #include <limits.h>
16942 int
16943 main ()
16944 {
16945 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
16946 test_array [0] = 0
16947
16948   ;
16949   return 0;
16950 }
16951 _ACEOF
16952 rm -f conftest.$ac_objext
16953 if { (ac_try="$ac_compile"
16954 case "(($ac_try" in
16955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956   *) ac_try_echo=$ac_try;;
16957 esac
16958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16959 $as_echo "$ac_try_echo") >&5
16960   (eval "$ac_compile") 2>conftest.er1
16961   ac_status=$?
16962   grep -v '^ *+' conftest.er1 >conftest.err
16963   rm -f conftest.er1
16964   cat conftest.err >&5
16965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966   (exit $ac_status); } && {
16967          test -z "$ac_c_werror_flag" ||
16968          test ! -s conftest.err
16969        } && test -s conftest.$ac_objext; then
16970   ac_lo=0 ac_mid=0
16971   while :; do
16972     cat >conftest.$ac_ext <<_ACEOF
16973 /* confdefs.h.  */
16974 _ACEOF
16975 cat confdefs.h >>conftest.$ac_ext
16976 cat >>conftest.$ac_ext <<_ACEOF
16977 /* end confdefs.h.  */
16978
16979   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16980      included before <wchar.h>.  */
16981   #include <stddef.h>
16982   #include <signal.h>
16983   #if HAVE_WCHAR_H
16984   # include <stdio.h>
16985   # include <time.h>
16986   # include <wchar.h>
16987   #endif
16988
16989 #include <limits.h>
16990 int
16991 main ()
16992 {
16993 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
16994 test_array [0] = 0
16995
16996   ;
16997   return 0;
16998 }
16999 _ACEOF
17000 rm -f conftest.$ac_objext
17001 if { (ac_try="$ac_compile"
17002 case "(($ac_try" in
17003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004   *) ac_try_echo=$ac_try;;
17005 esac
17006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17007 $as_echo "$ac_try_echo") >&5
17008   (eval "$ac_compile") 2>conftest.er1
17009   ac_status=$?
17010   grep -v '^ *+' conftest.er1 >conftest.err
17011   rm -f conftest.er1
17012   cat conftest.err >&5
17013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); } && {
17015          test -z "$ac_c_werror_flag" ||
17016          test ! -s conftest.err
17017        } && test -s conftest.$ac_objext; then
17018   ac_hi=$ac_mid; break
17019 else
17020   $as_echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17022
17023         ac_lo=`expr $ac_mid + 1`
17024                         if test $ac_lo -le $ac_mid; then
17025                           ac_lo= ac_hi=
17026                           break
17027                         fi
17028                         ac_mid=`expr 2 '*' $ac_mid + 1`
17029 fi
17030
17031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17032   done
17033 else
17034   $as_echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.$ac_ext >&5
17036
17037         cat >conftest.$ac_ext <<_ACEOF
17038 /* confdefs.h.  */
17039 _ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h.  */
17043
17044   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17045      included before <wchar.h>.  */
17046   #include <stddef.h>
17047   #include <signal.h>
17048   #if HAVE_WCHAR_H
17049   # include <stdio.h>
17050   # include <time.h>
17051   # include <wchar.h>
17052   #endif
17053
17054 #include <limits.h>
17055 int
17056 main ()
17057 {
17058 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
17059 test_array [0] = 0
17060
17061   ;
17062   return 0;
17063 }
17064 _ACEOF
17065 rm -f conftest.$ac_objext
17066 if { (ac_try="$ac_compile"
17067 case "(($ac_try" in
17068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069   *) ac_try_echo=$ac_try;;
17070 esac
17071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17072 $as_echo "$ac_try_echo") >&5
17073   (eval "$ac_compile") 2>conftest.er1
17074   ac_status=$?
17075   grep -v '^ *+' conftest.er1 >conftest.err
17076   rm -f conftest.er1
17077   cat conftest.err >&5
17078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079   (exit $ac_status); } && {
17080          test -z "$ac_c_werror_flag" ||
17081          test ! -s conftest.err
17082        } && test -s conftest.$ac_objext; then
17083   ac_hi=-1 ac_mid=-1
17084   while :; do
17085     cat >conftest.$ac_ext <<_ACEOF
17086 /* confdefs.h.  */
17087 _ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h.  */
17091
17092   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17093      included before <wchar.h>.  */
17094   #include <stddef.h>
17095   #include <signal.h>
17096   #if HAVE_WCHAR_H
17097   # include <stdio.h>
17098   # include <time.h>
17099   # include <wchar.h>
17100   #endif
17101
17102 #include <limits.h>
17103 int
17104 main ()
17105 {
17106 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
17107 test_array [0] = 0
17108
17109   ;
17110   return 0;
17111 }
17112 _ACEOF
17113 rm -f conftest.$ac_objext
17114 if { (ac_try="$ac_compile"
17115 case "(($ac_try" in
17116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117   *) ac_try_echo=$ac_try;;
17118 esac
17119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17120 $as_echo "$ac_try_echo") >&5
17121   (eval "$ac_compile") 2>conftest.er1
17122   ac_status=$?
17123   grep -v '^ *+' conftest.er1 >conftest.err
17124   rm -f conftest.er1
17125   cat conftest.err >&5
17126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   (exit $ac_status); } && {
17128          test -z "$ac_c_werror_flag" ||
17129          test ! -s conftest.err
17130        } && test -s conftest.$ac_objext; then
17131   ac_lo=$ac_mid; break
17132 else
17133   $as_echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17135
17136         ac_hi=`expr '(' $ac_mid ')' - 1`
17137                         if test $ac_mid -le $ac_hi; then
17138                           ac_lo= ac_hi=
17139                           break
17140                         fi
17141                         ac_mid=`expr 2 '*' $ac_mid`
17142 fi
17143
17144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17145   done
17146 else
17147   $as_echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17149
17150         ac_lo= ac_hi=
17151 fi
17152
17153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17154 fi
17155
17156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17157 # Binary search between lo and hi bounds.
17158 while test "x$ac_lo" != "x$ac_hi"; do
17159   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17160   cat >conftest.$ac_ext <<_ACEOF
17161 /* confdefs.h.  */
17162 _ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h.  */
17166
17167   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17168      included before <wchar.h>.  */
17169   #include <stddef.h>
17170   #include <signal.h>
17171   #if HAVE_WCHAR_H
17172   # include <stdio.h>
17173   # include <time.h>
17174   # include <wchar.h>
17175   #endif
17176
17177 #include <limits.h>
17178 int
17179 main ()
17180 {
17181 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17182 test_array [0] = 0
17183
17184   ;
17185   return 0;
17186 }
17187 _ACEOF
17188 rm -f conftest.$ac_objext
17189 if { (ac_try="$ac_compile"
17190 case "(($ac_try" in
17191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192   *) ac_try_echo=$ac_try;;
17193 esac
17194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17195 $as_echo "$ac_try_echo") >&5
17196   (eval "$ac_compile") 2>conftest.er1
17197   ac_status=$?
17198   grep -v '^ *+' conftest.er1 >conftest.err
17199   rm -f conftest.er1
17200   cat conftest.err >&5
17201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202   (exit $ac_status); } && {
17203          test -z "$ac_c_werror_flag" ||
17204          test ! -s conftest.err
17205        } && test -s conftest.$ac_objext; then
17206   ac_hi=$ac_mid
17207 else
17208   $as_echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17210
17211         ac_lo=`expr '(' $ac_mid ')' + 1`
17212 fi
17213
17214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17215 done
17216 case $ac_lo in
17217 ?*) result=$ac_lo;;
17218 '') result=unknown ;;
17219 esac
17220 else
17221   cat >conftest.$ac_ext <<_ACEOF
17222 /* confdefs.h.  */
17223 _ACEOF
17224 cat confdefs.h >>conftest.$ac_ext
17225 cat >>conftest.$ac_ext <<_ACEOF
17226 /* end confdefs.h.  */
17227
17228   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17229      included before <wchar.h>.  */
17230   #include <stddef.h>
17231   #include <signal.h>
17232   #if HAVE_WCHAR_H
17233   # include <stdio.h>
17234   # include <time.h>
17235   # include <wchar.h>
17236   #endif
17237
17238 #include <limits.h>
17239 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
17240 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
17241 #include <stdio.h>
17242 #include <stdlib.h>
17243 int
17244 main ()
17245 {
17246
17247   FILE *f = fopen ("conftest.val", "w");
17248   if (! f)
17249     return 1;
17250   if ((sizeof ($gltype) * CHAR_BIT) < 0)
17251     {
17252       long int i = longval ();
17253       if (i != (sizeof ($gltype) * CHAR_BIT))
17254         return 1;
17255       fprintf (f, "%ld", i);
17256     }
17257   else
17258     {
17259       unsigned long int i = ulongval ();
17260       if (i != (sizeof ($gltype) * CHAR_BIT))
17261         return 1;
17262       fprintf (f, "%lu", i);
17263     }
17264   /* Do not output a trailing newline, as this causes \r\n confusion
17265      on some platforms.  */
17266   return ferror (f) || fclose (f) != 0;
17267
17268   ;
17269   return 0;
17270 }
17271 _ACEOF
17272 rm -f conftest$ac_exeext
17273 if { (ac_try="$ac_link"
17274 case "(($ac_try" in
17275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276   *) ac_try_echo=$ac_try;;
17277 esac
17278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17279 $as_echo "$ac_try_echo") >&5
17280   (eval "$ac_link") 2>&5
17281   ac_status=$?
17282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17284   { (case "(($ac_try" in
17285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286   *) ac_try_echo=$ac_try;;
17287 esac
17288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17289 $as_echo "$ac_try_echo") >&5
17290   (eval "$ac_try") 2>&5
17291   ac_status=$?
17292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293   (exit $ac_status); }; }; then
17294   result=`cat conftest.val`
17295 else
17296   $as_echo "$as_me: program exited with status $ac_status" >&5
17297 $as_echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17299
17300 ( exit $ac_status )
17301 result=unknown
17302 fi
17303 rm -rf conftest.dSYM
17304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17305 fi
17306 rm -f conftest.val
17307        eval gl_cv_bitsizeof_${gltype}=\$result
17308
17309 fi
17310 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
17311                  $as_echo "$as_val"'`
17312                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17313 $as_echo "$ac_res" >&6; }
17314     eval result=\$gl_cv_bitsizeof_${gltype}
17315     if test $result = unknown; then
17316                                                 result=0
17317     fi
17318     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17319     cat >>confdefs.h <<_ACEOF
17320 #define BITSIZEOF_${GLTYPE} $result
17321 _ACEOF
17322
17323     eval BITSIZEOF_${GLTYPE}=\$result
17324   done
17325
17326
17327
17328
17329
17330
17331
17332   for gltype in sig_atomic_t wchar_t wint_t ; do
17333     { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
17334 $as_echo_n "checking whether $gltype is signed... " >&6; }
17335 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
17336   $as_echo_n "(cached) " >&6
17337 else
17338   cat >conftest.$ac_ext <<_ACEOF
17339 /* confdefs.h.  */
17340 _ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h.  */
17344
17345   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17346      included before <wchar.h>.  */
17347   #include <stddef.h>
17348   #include <signal.h>
17349   #if HAVE_WCHAR_H
17350   # include <stdio.h>
17351   # include <time.h>
17352   # include <wchar.h>
17353   #endif
17354
17355             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17356 int
17357 main ()
17358 {
17359
17360   ;
17361   return 0;
17362 }
17363 _ACEOF
17364 rm -f conftest.$ac_objext
17365 if { (ac_try="$ac_compile"
17366 case "(($ac_try" in
17367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368   *) ac_try_echo=$ac_try;;
17369 esac
17370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17371 $as_echo "$ac_try_echo") >&5
17372   (eval "$ac_compile") 2>conftest.er1
17373   ac_status=$?
17374   grep -v '^ *+' conftest.er1 >conftest.err
17375   rm -f conftest.er1
17376   cat conftest.err >&5
17377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378   (exit $ac_status); } && {
17379          test -z "$ac_c_werror_flag" ||
17380          test ! -s conftest.err
17381        } && test -s conftest.$ac_objext; then
17382   result=yes
17383 else
17384   $as_echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17386
17387         result=no
17388 fi
17389
17390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17391        eval gl_cv_type_${gltype}_signed=\$result
17392
17393 fi
17394 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
17395                  $as_echo "$as_val"'`
17396                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17397 $as_echo "$ac_res" >&6; }
17398     eval result=\$gl_cv_type_${gltype}_signed
17399     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17400     if test "$result" = yes; then
17401       cat >>confdefs.h <<_ACEOF
17402 #define HAVE_SIGNED_${GLTYPE} 1
17403 _ACEOF
17404
17405       eval HAVE_SIGNED_${GLTYPE}=1
17406     else
17407       eval HAVE_SIGNED_${GLTYPE}=0
17408     fi
17409   done
17410
17411
17412   gl_cv_type_ptrdiff_t_signed=yes
17413   gl_cv_type_size_t_signed=no
17414
17415
17416
17417
17418
17419
17420
17421   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
17422     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
17423 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17424 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
17425   $as_echo_n "(cached) " >&6
17426 else
17427   eval gl_cv_type_${gltype}_suffix=no
17428        eval result=\$gl_cv_type_${gltype}_signed
17429        if test "$result" = yes; then
17430          glsufu=
17431        else
17432          glsufu=u
17433        fi
17434        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17435          case $glsuf in
17436            '')  gltype1='int';;
17437            l)   gltype1='long int';;
17438            ll)  gltype1='long long int';;
17439            i64) gltype1='__int64';;
17440            u)   gltype1='unsigned int';;
17441            ul)  gltype1='unsigned long int';;
17442            ull) gltype1='unsigned long long int';;
17443            ui64)gltype1='unsigned __int64';;
17444          esac
17445          cat >conftest.$ac_ext <<_ACEOF
17446 /* confdefs.h.  */
17447 _ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h.  */
17451
17452   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17453      included before <wchar.h>.  */
17454   #include <stddef.h>
17455   #include <signal.h>
17456   #if HAVE_WCHAR_H
17457   # include <stdio.h>
17458   # include <time.h>
17459   # include <wchar.h>
17460   #endif
17461
17462               extern $gltype foo;
17463               extern $gltype1 foo;
17464 int
17465 main ()
17466 {
17467
17468   ;
17469   return 0;
17470 }
17471 _ACEOF
17472 rm -f conftest.$ac_objext
17473 if { (ac_try="$ac_compile"
17474 case "(($ac_try" in
17475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476   *) ac_try_echo=$ac_try;;
17477 esac
17478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17479 $as_echo "$ac_try_echo") >&5
17480   (eval "$ac_compile") 2>conftest.er1
17481   ac_status=$?
17482   grep -v '^ *+' conftest.er1 >conftest.err
17483   rm -f conftest.er1
17484   cat conftest.err >&5
17485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486   (exit $ac_status); } && {
17487          test -z "$ac_c_werror_flag" ||
17488          test ! -s conftest.err
17489        } && test -s conftest.$ac_objext; then
17490   eval gl_cv_type_${gltype}_suffix=\$glsuf
17491 else
17492   $as_echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17494
17495
17496 fi
17497
17498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17499          eval result=\$gl_cv_type_${gltype}_suffix
17500          test "$result" != no && break
17501        done
17502 fi
17503 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
17504                  $as_echo "$as_val"'`
17505                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17506 $as_echo "$ac_res" >&6; }
17507     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17508     eval result=\$gl_cv_type_${gltype}_suffix
17509     test "$result" = no && result=
17510     eval ${GLTYPE}_SUFFIX=\$result
17511     cat >>confdefs.h <<_ACEOF
17512 #define ${GLTYPE}_SUFFIX $result
17513 _ACEOF
17514
17515   done
17516
17517
17518
17519     STDINT_H=stdint.h
17520   fi
17521
17522
17523
17524
17525
17526
17527
17528   :
17529
17530
17531
17532
17533
17534
17535
17536      if test $gl_cv_have_include_next = yes; then
17537        gl_cv_next_stdio_h='<'stdio.h'>'
17538      else
17539        { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
17540 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17541 if test "${gl_cv_next_stdio_h+set}" = set; then
17542   $as_echo_n "(cached) " >&6
17543 else
17544
17545           if test $ac_cv_header_stdio_h = yes; then
17546             cat >conftest.$ac_ext <<_ACEOF
17547 /* confdefs.h.  */
17548 _ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h.  */
17552 #include <stdio.h>
17553
17554 _ACEOF
17555                                     gl_cv_next_stdio_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17556                sed -n '\#/stdio.h#{
17557                  s#.*"\(.*/stdio.h\)".*#\1#
17558                  s#^/[^/]#//&#
17559                  p
17560                  q
17561                }'`'"'
17562           else
17563             gl_cv_next_stdio_h='<'stdio.h'>'
17564           fi
17565
17566 fi
17567 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
17568 $as_echo "$gl_cv_next_stdio_h" >&6; }
17569      fi
17570      NEXT_STDIO_H=$gl_cv_next_stdio_h
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580   :
17581
17582
17583
17584
17585
17586
17587
17588      if test $gl_cv_have_include_next = yes; then
17589        gl_cv_next_stdlib_h='<'stdlib.h'>'
17590      else
17591        { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
17592 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17593 if test "${gl_cv_next_stdlib_h+set}" = set; then
17594   $as_echo_n "(cached) " >&6
17595 else
17596
17597           if test $ac_cv_header_stdlib_h = yes; then
17598             cat >conftest.$ac_ext <<_ACEOF
17599 /* confdefs.h.  */
17600 _ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h.  */
17604 #include <stdlib.h>
17605
17606 _ACEOF
17607                                     gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17608                sed -n '\#/stdlib.h#{
17609                  s#.*"\(.*/stdlib.h\)".*#\1#
17610                  s#^/[^/]#//&#
17611                  p
17612                  q
17613                }'`'"'
17614           else
17615             gl_cv_next_stdlib_h='<'stdlib.h'>'
17616           fi
17617
17618 fi
17619 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
17620 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17621      fi
17622      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637 for ac_func in strdup
17638 do
17639 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17640 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17641 $as_echo_n "checking for $ac_func... " >&6; }
17642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17643   $as_echo_n "(cached) " >&6
17644 else
17645   cat >conftest.$ac_ext <<_ACEOF
17646 /* confdefs.h.  */
17647 _ACEOF
17648 cat confdefs.h >>conftest.$ac_ext
17649 cat >>conftest.$ac_ext <<_ACEOF
17650 /* end confdefs.h.  */
17651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17653 #define $ac_func innocuous_$ac_func
17654
17655 /* System header to define __stub macros and hopefully few prototypes,
17656     which can conflict with char $ac_func (); below.
17657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17658     <limits.h> exists even on freestanding compilers.  */
17659
17660 #ifdef __STDC__
17661 # include <limits.h>
17662 #else
17663 # include <assert.h>
17664 #endif
17665
17666 #undef $ac_func
17667
17668 /* Override any GCC internal prototype to avoid an error.
17669    Use char because int might match the return type of a GCC
17670    builtin and then its argument prototype would still apply.  */
17671 #ifdef __cplusplus
17672 extern "C"
17673 #endif
17674 char $ac_func ();
17675 /* The GNU C library defines this for functions which it implements
17676     to always fail with ENOSYS.  Some functions are actually named
17677     something starting with __ and the normal name is an alias.  */
17678 #if defined __stub_$ac_func || defined __stub___$ac_func
17679 choke me
17680 #endif
17681
17682 int
17683 main ()
17684 {
17685 return $ac_func ();
17686   ;
17687   return 0;
17688 }
17689 _ACEOF
17690 rm -f conftest.$ac_objext conftest$ac_exeext
17691 if { (ac_try="$ac_link"
17692 case "(($ac_try" in
17693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17694   *) ac_try_echo=$ac_try;;
17695 esac
17696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17697 $as_echo "$ac_try_echo") >&5
17698   (eval "$ac_link") 2>conftest.er1
17699   ac_status=$?
17700   grep -v '^ *+' conftest.er1 >conftest.err
17701   rm -f conftest.er1
17702   cat conftest.err >&5
17703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); } && {
17705          test -z "$ac_c_werror_flag" ||
17706          test ! -s conftest.err
17707        } && test -s conftest$ac_exeext && {
17708          test "$cross_compiling" = yes ||
17709          $as_test_x conftest$ac_exeext
17710        }; then
17711   eval "$as_ac_var=yes"
17712 else
17713   $as_echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.$ac_ext >&5
17715
17716         eval "$as_ac_var=no"
17717 fi
17718
17719 rm -rf conftest.dSYM
17720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17721       conftest$ac_exeext conftest.$ac_ext
17722 fi
17723 ac_res=`eval 'as_val=${'$as_ac_var'}
17724                  $as_echo "$as_val"'`
17725                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17726 $as_echo "$ac_res" >&6; }
17727 as_val=`eval 'as_val=${'$as_ac_var'}
17728                  $as_echo "$as_val"'`
17729    if test "x$as_val" = x""yes; then
17730   cat >>confdefs.h <<_ACEOF
17731 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17732 _ACEOF
17733
17734 else
17735
17736     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
17737
17738 fi
17739 done
17740
17741
17742
17743   :
17744
17745
17746
17747
17748
17749   if test $ac_cv_have_decl_strdup = no; then
17750     HAVE_DECL_STRDUP=0
17751   fi
17752   :
17753
17754
17755
17756   GNULIB_STRDUP=1
17757
17758
17759
17760
17761
17762   { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
17763 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
17764 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
17765   $as_echo_n "(cached) " >&6
17766 else
17767
17768       cat >conftest.$ac_ext <<_ACEOF
17769 /* confdefs.h.  */
17770 _ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h.  */
17774 #include <sys/socket.h>
17775 int
17776 main ()
17777 {
17778
17779   ;
17780   return 0;
17781 }
17782 _ACEOF
17783 rm -f conftest.$ac_objext
17784 if { (ac_try="$ac_compile"
17785 case "(($ac_try" in
17786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787   *) ac_try_echo=$ac_try;;
17788 esac
17789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17790 $as_echo "$ac_try_echo") >&5
17791   (eval "$ac_compile") 2>conftest.er1
17792   ac_status=$?
17793   grep -v '^ *+' conftest.er1 >conftest.err
17794   rm -f conftest.er1
17795   cat conftest.err >&5
17796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797   (exit $ac_status); } && {
17798          test -z "$ac_c_werror_flag" ||
17799          test ! -s conftest.err
17800        } && test -s conftest.$ac_objext; then
17801   gl_cv_header_sys_socket_h_selfcontained=yes
17802 else
17803   $as_echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.$ac_ext >&5
17805
17806         gl_cv_header_sys_socket_h_selfcontained=no
17807 fi
17808
17809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17810
17811 fi
17812 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
17813 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
17814   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
17815     SYS_SOCKET_H=''
17816   else
17817     SYS_SOCKET_H='sys/socket.h'
17818
17819
17820
17821
17822   :
17823
17824
17825
17826
17827
17828
17829
17830      if test $gl_cv_have_include_next = yes; then
17831        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
17832      else
17833        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
17834 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
17835 if test "${gl_cv_next_sys_socket_h+set}" = set; then
17836   $as_echo_n "(cached) " >&6
17837 else
17838
17839           if test $ac_cv_header_sys_socket_h = yes; then
17840             cat >conftest.$ac_ext <<_ACEOF
17841 /* confdefs.h.  */
17842 _ACEOF
17843 cat confdefs.h >>conftest.$ac_ext
17844 cat >>conftest.$ac_ext <<_ACEOF
17845 /* end confdefs.h.  */
17846 #include <sys/socket.h>
17847
17848 _ACEOF
17849                                     gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17850                sed -n '\#/sys/socket.h#{
17851                  s#.*"\(.*/sys/socket.h\)".*#\1#
17852                  s#^/[^/]#//&#
17853                  p
17854                  q
17855                }'`'"'
17856           else
17857             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
17858           fi
17859
17860 fi
17861 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
17862 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
17863      fi
17864      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
17865
17866
17867
17868     if test $ac_cv_header_sys_socket_h = yes; then
17869       HAVE_SYS_SOCKET_H=1
17870       HAVE_WINSOCK2_H=0
17871       HAVE_WS2TCPIP_H=0
17872     else
17873       HAVE_SYS_SOCKET_H=0
17874
17875
17876 for ac_header in winsock2.h ws2tcpip.h
17877 do
17878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17880   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17881 $as_echo_n "checking for $ac_header... " >&6; }
17882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17883   $as_echo_n "(cached) " >&6
17884 fi
17885 ac_res=`eval 'as_val=${'$as_ac_Header'}
17886                  $as_echo "$as_val"'`
17887                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17888 $as_echo "$ac_res" >&6; }
17889 else
17890   # Is the header compilable?
17891 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17892 $as_echo_n "checking $ac_header usability... " >&6; }
17893 cat >conftest.$ac_ext <<_ACEOF
17894 /* confdefs.h.  */
17895 _ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h.  */
17899 $ac_includes_default
17900 #include <$ac_header>
17901 _ACEOF
17902 rm -f conftest.$ac_objext
17903 if { (ac_try="$ac_compile"
17904 case "(($ac_try" in
17905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906   *) ac_try_echo=$ac_try;;
17907 esac
17908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17909 $as_echo "$ac_try_echo") >&5
17910   (eval "$ac_compile") 2>conftest.er1
17911   ac_status=$?
17912   grep -v '^ *+' conftest.er1 >conftest.err
17913   rm -f conftest.er1
17914   cat conftest.err >&5
17915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); } && {
17917          test -z "$ac_c_werror_flag" ||
17918          test ! -s conftest.err
17919        } && test -s conftest.$ac_objext; then
17920   ac_header_compiler=yes
17921 else
17922   $as_echo "$as_me: failed program was:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17924
17925         ac_header_compiler=no
17926 fi
17927
17928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17929 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17930 $as_echo "$ac_header_compiler" >&6; }
17931
17932 # Is the header present?
17933 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17934 $as_echo_n "checking $ac_header presence... " >&6; }
17935 cat >conftest.$ac_ext <<_ACEOF
17936 /* confdefs.h.  */
17937 _ACEOF
17938 cat confdefs.h >>conftest.$ac_ext
17939 cat >>conftest.$ac_ext <<_ACEOF
17940 /* end confdefs.h.  */
17941 #include <$ac_header>
17942 _ACEOF
17943 if { (ac_try="$ac_cpp conftest.$ac_ext"
17944 case "(($ac_try" in
17945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946   *) ac_try_echo=$ac_try;;
17947 esac
17948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17949 $as_echo "$ac_try_echo") >&5
17950   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17951   ac_status=$?
17952   grep -v '^ *+' conftest.er1 >conftest.err
17953   rm -f conftest.er1
17954   cat conftest.err >&5
17955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956   (exit $ac_status); } >/dev/null && {
17957          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17958          test ! -s conftest.err
17959        }; then
17960   ac_header_preproc=yes
17961 else
17962   $as_echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17964
17965   ac_header_preproc=no
17966 fi
17967
17968 rm -f conftest.err conftest.$ac_ext
17969 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17970 $as_echo "$ac_header_preproc" >&6; }
17971
17972 # So?  What about this header?
17973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17974   yes:no: )
17975     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17976 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17977     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17978 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17979     ac_header_preproc=yes
17980     ;;
17981   no:yes:* )
17982     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17983 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17984     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17985 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17986     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17987 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17988     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17989 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17990     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17991 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17992     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17993 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17994
17995     ;;
17996 esac
17997 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17998 $as_echo_n "checking for $ac_header... " >&6; }
17999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18000   $as_echo_n "(cached) " >&6
18001 else
18002   eval "$as_ac_Header=\$ac_header_preproc"
18003 fi
18004 ac_res=`eval 'as_val=${'$as_ac_Header'}
18005                  $as_echo "$as_val"'`
18006                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18007 $as_echo "$ac_res" >&6; }
18008
18009 fi
18010 as_val=`eval 'as_val=${'$as_ac_Header'}
18011                  $as_echo "$as_val"'`
18012    if test "x$as_val" = x""yes; then
18013   cat >>confdefs.h <<_ACEOF
18014 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18015 _ACEOF
18016
18017 fi
18018
18019 done
18020
18021       if test $ac_cv_header_winsock2_h = yes; then
18022         HAVE_WINSOCK2_H=1
18023       else
18024         HAVE_WINSOCK2_H=0
18025       fi
18026       if test $ac_cv_header_ws2tcpip_h = yes; then
18027         HAVE_WS2TCPIP_H=1
18028       else
18029         HAVE_WS2TCPIP_H=0
18030       fi
18031     fi
18032
18033
18034
18035   fi
18036
18037
18038   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18039 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
18040 if test -z "$MKDIR_P"; then
18041   if test "${ac_cv_path_mkdir+set}" = set; then
18042   $as_echo_n "(cached) " >&6
18043 else
18044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18045 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18046 do
18047   IFS=$as_save_IFS
18048   test -z "$as_dir" && as_dir=.
18049   for ac_prog in mkdir gmkdir; do
18050          for ac_exec_ext in '' $ac_executable_extensions; do
18051            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18052            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18053              'mkdir (GNU coreutils) '* | \
18054              'mkdir (coreutils) '* | \
18055              'mkdir (fileutils) '4.1*)
18056                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18057                break 3;;
18058            esac
18059          done
18060        done
18061 done
18062 IFS=$as_save_IFS
18063
18064 fi
18065
18066   if test "${ac_cv_path_mkdir+set}" = set; then
18067     MKDIR_P="$ac_cv_path_mkdir -p"
18068   else
18069     # As a last resort, use the slow shell script.  Don't cache a
18070     # value for MKDIR_P within a source directory, because that will
18071     # break other packages using the cache if that directory is
18072     # removed, or if the value is a relative name.
18073     test -d ./--version && rmdir ./--version
18074     MKDIR_P="$ac_install_sh -d"
18075   fi
18076 fi
18077 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18078 $as_echo "$MKDIR_P" >&6; }
18079
18080
18081
18082   :
18083
18084
18085
18086
18087
18088   if test $ac_cv_func_lstat = yes; then
18089     HAVE_LSTAT=1
18090   else
18091     HAVE_LSTAT=0
18092   fi
18093
18094
18095       { $as_echo "$as_me:$LINENO: checking whether mkdir is declared" >&5
18096 $as_echo_n "checking whether mkdir is declared... " >&6; }
18097 if test "${ac_cv_have_decl_mkdir+set}" = set; then
18098   $as_echo_n "(cached) " >&6
18099 else
18100   cat >conftest.$ac_ext <<_ACEOF
18101 /* confdefs.h.  */
18102 _ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h.  */
18106 #include <sys/stat.h>
18107
18108 int
18109 main ()
18110 {
18111 #ifndef mkdir
18112   (void) mkdir;
18113 #endif
18114
18115   ;
18116   return 0;
18117 }
18118 _ACEOF
18119 rm -f conftest.$ac_objext
18120 if { (ac_try="$ac_compile"
18121 case "(($ac_try" in
18122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18123   *) ac_try_echo=$ac_try;;
18124 esac
18125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18126 $as_echo "$ac_try_echo") >&5
18127   (eval "$ac_compile") 2>conftest.er1
18128   ac_status=$?
18129   grep -v '^ *+' conftest.er1 >conftest.err
18130   rm -f conftest.er1
18131   cat conftest.err >&5
18132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133   (exit $ac_status); } && {
18134          test -z "$ac_c_werror_flag" ||
18135          test ! -s conftest.err
18136        } && test -s conftest.$ac_objext; then
18137   ac_cv_have_decl_mkdir=yes
18138 else
18139   $as_echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18141
18142         ac_cv_have_decl_mkdir=no
18143 fi
18144
18145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18146 fi
18147 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_mkdir" >&5
18148 $as_echo "$ac_cv_have_decl_mkdir" >&6; }
18149 if test "x$ac_cv_have_decl_mkdir" = x""yes; then
18150
18151 cat >>confdefs.h <<_ACEOF
18152 #define HAVE_DECL_MKDIR 1
18153 _ACEOF
18154
18155
18156 else
18157   cat >>confdefs.h <<_ACEOF
18158 #define HAVE_DECL_MKDIR 0
18159 _ACEOF
18160
18161
18162 for ac_header in io.h
18163 do
18164 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18166   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18167 $as_echo_n "checking for $ac_header... " >&6; }
18168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18169   $as_echo_n "(cached) " >&6
18170 fi
18171 ac_res=`eval 'as_val=${'$as_ac_Header'}
18172                  $as_echo "$as_val"'`
18173                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18174 $as_echo "$ac_res" >&6; }
18175 else
18176   # Is the header compilable?
18177 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18178 $as_echo_n "checking $ac_header usability... " >&6; }
18179 cat >conftest.$ac_ext <<_ACEOF
18180 /* confdefs.h.  */
18181 _ACEOF
18182 cat confdefs.h >>conftest.$ac_ext
18183 cat >>conftest.$ac_ext <<_ACEOF
18184 /* end confdefs.h.  */
18185 $ac_includes_default
18186 #include <$ac_header>
18187 _ACEOF
18188 rm -f conftest.$ac_objext
18189 if { (ac_try="$ac_compile"
18190 case "(($ac_try" in
18191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192   *) ac_try_echo=$ac_try;;
18193 esac
18194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18195 $as_echo "$ac_try_echo") >&5
18196   (eval "$ac_compile") 2>conftest.er1
18197   ac_status=$?
18198   grep -v '^ *+' conftest.er1 >conftest.err
18199   rm -f conftest.er1
18200   cat conftest.err >&5
18201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); } && {
18203          test -z "$ac_c_werror_flag" ||
18204          test ! -s conftest.err
18205        } && test -s conftest.$ac_objext; then
18206   ac_header_compiler=yes
18207 else
18208   $as_echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18210
18211         ac_header_compiler=no
18212 fi
18213
18214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18215 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18216 $as_echo "$ac_header_compiler" >&6; }
18217
18218 # Is the header present?
18219 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18220 $as_echo_n "checking $ac_header presence... " >&6; }
18221 cat >conftest.$ac_ext <<_ACEOF
18222 /* confdefs.h.  */
18223 _ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h.  */
18227 #include <$ac_header>
18228 _ACEOF
18229 if { (ac_try="$ac_cpp conftest.$ac_ext"
18230 case "(($ac_try" in
18231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232   *) ac_try_echo=$ac_try;;
18233 esac
18234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18235 $as_echo "$ac_try_echo") >&5
18236   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18237   ac_status=$?
18238   grep -v '^ *+' conftest.er1 >conftest.err
18239   rm -f conftest.er1
18240   cat conftest.err >&5
18241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242   (exit $ac_status); } >/dev/null && {
18243          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18244          test ! -s conftest.err
18245        }; then
18246   ac_header_preproc=yes
18247 else
18248   $as_echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18250
18251   ac_header_preproc=no
18252 fi
18253
18254 rm -f conftest.err conftest.$ac_ext
18255 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18256 $as_echo "$ac_header_preproc" >&6; }
18257
18258 # So?  What about this header?
18259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18260   yes:no: )
18261     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18262 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18263     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18264 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18265     ac_header_preproc=yes
18266     ;;
18267   no:yes:* )
18268     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18269 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18270     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18271 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18272     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18273 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18274     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18275 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18276     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18277 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18278     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18279 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18280
18281     ;;
18282 esac
18283 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18284 $as_echo_n "checking for $ac_header... " >&6; }
18285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18286   $as_echo_n "(cached) " >&6
18287 else
18288   eval "$as_ac_Header=\$ac_header_preproc"
18289 fi
18290 ac_res=`eval 'as_val=${'$as_ac_Header'}
18291                  $as_echo "$as_val"'`
18292                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18293 $as_echo "$ac_res" >&6; }
18294
18295 fi
18296 as_val=`eval 'as_val=${'$as_ac_Header'}
18297                  $as_echo "$as_val"'`
18298    if test "x$as_val" = x""yes; then
18299   cat >>confdefs.h <<_ACEOF
18300 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18301 _ACEOF
18302
18303 fi
18304
18305 done
18306
18307 fi
18308
18309
18310   if test $ac_cv_have_decl_mkdir = yes; then
18311     HAVE_DECL_MKDIR=1
18312   else
18313     HAVE_DECL_MKDIR=0
18314   fi
18315
18316   if test "$ac_cv_header_io_h" = yes; then
18317     HAVE_IO_H=1
18318   else
18319     HAVE_IO_H=0
18320   fi
18321
18322
18323
18324
18325
18326
18327
18328
18329   :
18330
18331
18332
18333
18334
18335
18336
18337      if test $gl_cv_have_include_next = yes; then
18338        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18339      else
18340        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
18341 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18342 if test "${gl_cv_next_sys_stat_h+set}" = set; then
18343   $as_echo_n "(cached) " >&6
18344 else
18345
18346           if test $ac_cv_header_sys_stat_h = yes; then
18347             cat >conftest.$ac_ext <<_ACEOF
18348 /* confdefs.h.  */
18349 _ACEOF
18350 cat confdefs.h >>conftest.$ac_ext
18351 cat >>conftest.$ac_ext <<_ACEOF
18352 /* end confdefs.h.  */
18353 #include <sys/stat.h>
18354
18355 _ACEOF
18356                                     gl_cv_next_sys_stat_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18357                sed -n '\#/sys/stat.h#{
18358                  s#.*"\(.*/sys/stat.h\)".*#\1#
18359                  s#^/[^/]#//&#
18360                  p
18361                  q
18362                }'`'"'
18363           else
18364             gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18365           fi
18366
18367 fi
18368 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
18369 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18370      fi
18371      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18372
18373
18374
18375   SYS_STAT_H='sys/stat.h'
18376
18377
18378   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18379 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
18380 if test -z "$MKDIR_P"; then
18381   if test "${ac_cv_path_mkdir+set}" = set; then
18382   $as_echo_n "(cached) " >&6
18383 else
18384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18385 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18386 do
18387   IFS=$as_save_IFS
18388   test -z "$as_dir" && as_dir=.
18389   for ac_prog in mkdir gmkdir; do
18390          for ac_exec_ext in '' $ac_executable_extensions; do
18391            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18392            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18393              'mkdir (GNU coreutils) '* | \
18394              'mkdir (coreutils) '* | \
18395              'mkdir (fileutils) '4.1*)
18396                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18397                break 3;;
18398            esac
18399          done
18400        done
18401 done
18402 IFS=$as_save_IFS
18403
18404 fi
18405
18406   if test "${ac_cv_path_mkdir+set}" = set; then
18407     MKDIR_P="$ac_cv_path_mkdir -p"
18408   else
18409     # As a last resort, use the slow shell script.  Don't cache a
18410     # value for MKDIR_P within a source directory, because that will
18411     # break other packages using the cache if that directory is
18412     # removed, or if the value is a relative name.
18413     test -d ./--version && rmdir ./--version
18414     MKDIR_P="$ac_install_sh -d"
18415   fi
18416 fi
18417 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18418 $as_echo "$MKDIR_P" >&6; }
18419
18420
18421
18422
18423   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18424 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
18425 if test -z "$MKDIR_P"; then
18426   if test "${ac_cv_path_mkdir+set}" = set; then
18427   $as_echo_n "(cached) " >&6
18428 else
18429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18430 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18431 do
18432   IFS=$as_save_IFS
18433   test -z "$as_dir" && as_dir=.
18434   for ac_prog in mkdir gmkdir; do
18435          for ac_exec_ext in '' $ac_executable_extensions; do
18436            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18437            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18438              'mkdir (GNU coreutils) '* | \
18439              'mkdir (coreutils) '* | \
18440              'mkdir (fileutils) '4.1*)
18441                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18442                break 3;;
18443            esac
18444          done
18445        done
18446 done
18447 IFS=$as_save_IFS
18448
18449 fi
18450
18451   if test "${ac_cv_path_mkdir+set}" = set; then
18452     MKDIR_P="$ac_cv_path_mkdir -p"
18453   else
18454     # As a last resort, use the slow shell script.  Don't cache a
18455     # value for MKDIR_P within a source directory, because that will
18456     # break other packages using the cache if that directory is
18457     # removed, or if the value is a relative name.
18458     test -d ./--version && rmdir ./--version
18459     MKDIR_P="$ac_install_sh -d"
18460   fi
18461 fi
18462 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18463 $as_echo "$MKDIR_P" >&6; }
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
18476
18477
18478   :
18479
18480
18481
18482
18483
18484
18485
18486
18487   :
18488
18489
18490
18491
18492
18493
18494
18495      if test $gl_cv_have_include_next = yes; then
18496        gl_cv_next_unistd_h='<'unistd.h'>'
18497      else
18498        { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
18499 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18500 if test "${gl_cv_next_unistd_h+set}" = set; then
18501   $as_echo_n "(cached) " >&6
18502 else
18503
18504           if test $ac_cv_header_unistd_h = yes; then
18505             cat >conftest.$ac_ext <<_ACEOF
18506 /* confdefs.h.  */
18507 _ACEOF
18508 cat confdefs.h >>conftest.$ac_ext
18509 cat >>conftest.$ac_ext <<_ACEOF
18510 /* end confdefs.h.  */
18511 #include <unistd.h>
18512
18513 _ACEOF
18514                                     gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18515                sed -n '\#/unistd.h#{
18516                  s#.*"\(.*/unistd.h\)".*#\1#
18517                  s#^/[^/]#//&#
18518                  p
18519                  q
18520                }'`'"'
18521           else
18522             gl_cv_next_unistd_h='<'unistd.h'>'
18523           fi
18524
18525 fi
18526 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
18527 $as_echo "$gl_cv_next_unistd_h" >&6; }
18528      fi
18529      NEXT_UNISTD_H=$gl_cv_next_unistd_h
18530
18531
18532
18533
18534
18535   :
18536
18537
18538
18539
18540
18541   if test $ac_cv_header_unistd_h = yes; then
18542     HAVE_UNISTD_H=1
18543   else
18544     HAVE_UNISTD_H=0
18545   fi
18546
18547
18548
18549
18550
18551   :
18552
18553
18554
18555
18556
18557   if test $ac_cv_func_vasnprintf = no; then
18558
18559
18560   :
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
18574
18575
18576
18577
18578
18579
18580
18581
18582   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
18583
18584
18585
18586
18587
18588
18589
18590
18591   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
18592
18593
18594
18595
18596
18597
18598
18599
18600   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
18601
18602   if test $ac_cv_func_vasnprintf = yes; then
18603
18604 cat >>confdefs.h <<\_ACEOF
18605 #define REPLACE_VASNPRINTF 1
18606 _ACEOF
18607
18608   fi
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619   { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
18620 $as_echo_n "checking for ptrdiff_t... " >&6; }
18621 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
18622   $as_echo_n "(cached) " >&6
18623 else
18624   ac_cv_type_ptrdiff_t=no
18625 cat >conftest.$ac_ext <<_ACEOF
18626 /* confdefs.h.  */
18627 _ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h.  */
18631 $ac_includes_default
18632 int
18633 main ()
18634 {
18635 if (sizeof (ptrdiff_t))
18636        return 0;
18637   ;
18638   return 0;
18639 }
18640 _ACEOF
18641 rm -f conftest.$ac_objext
18642 if { (ac_try="$ac_compile"
18643 case "(($ac_try" in
18644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18645   *) ac_try_echo=$ac_try;;
18646 esac
18647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18648 $as_echo "$ac_try_echo") >&5
18649   (eval "$ac_compile") 2>conftest.er1
18650   ac_status=$?
18651   grep -v '^ *+' conftest.er1 >conftest.err
18652   rm -f conftest.er1
18653   cat conftest.err >&5
18654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655   (exit $ac_status); } && {
18656          test -z "$ac_c_werror_flag" ||
18657          test ! -s conftest.err
18658        } && test -s conftest.$ac_objext; then
18659   cat >conftest.$ac_ext <<_ACEOF
18660 /* confdefs.h.  */
18661 _ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h.  */
18665 $ac_includes_default
18666 int
18667 main ()
18668 {
18669 if (sizeof ((ptrdiff_t)))
18670           return 0;
18671   ;
18672   return 0;
18673 }
18674 _ACEOF
18675 rm -f conftest.$ac_objext
18676 if { (ac_try="$ac_compile"
18677 case "(($ac_try" in
18678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679   *) ac_try_echo=$ac_try;;
18680 esac
18681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18682 $as_echo "$ac_try_echo") >&5
18683   (eval "$ac_compile") 2>conftest.er1
18684   ac_status=$?
18685   grep -v '^ *+' conftest.er1 >conftest.err
18686   rm -f conftest.er1
18687   cat conftest.err >&5
18688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689   (exit $ac_status); } && {
18690          test -z "$ac_c_werror_flag" ||
18691          test ! -s conftest.err
18692        } && test -s conftest.$ac_objext; then
18693   :
18694 else
18695   $as_echo "$as_me: failed program was:" >&5
18696 sed 's/^/| /' conftest.$ac_ext >&5
18697
18698         ac_cv_type_ptrdiff_t=yes
18699 fi
18700
18701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18702 else
18703   $as_echo "$as_me: failed program was:" >&5
18704 sed 's/^/| /' conftest.$ac_ext >&5
18705
18706
18707 fi
18708
18709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18710 fi
18711 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
18712 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
18713 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
18714   :
18715 else
18716
18717 cat >>confdefs.h <<\_ACEOF
18718 #define ptrdiff_t long
18719 _ACEOF
18720
18721
18722 fi
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733 for ac_func in snprintf wcslen
18734 do
18735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18736 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18737 $as_echo_n "checking for $ac_func... " >&6; }
18738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18739   $as_echo_n "(cached) " >&6
18740 else
18741   cat >conftest.$ac_ext <<_ACEOF
18742 /* confdefs.h.  */
18743 _ACEOF
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h.  */
18747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18749 #define $ac_func innocuous_$ac_func
18750
18751 /* System header to define __stub macros and hopefully few prototypes,
18752     which can conflict with char $ac_func (); below.
18753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18754     <limits.h> exists even on freestanding compilers.  */
18755
18756 #ifdef __STDC__
18757 # include <limits.h>
18758 #else
18759 # include <assert.h>
18760 #endif
18761
18762 #undef $ac_func
18763
18764 /* Override any GCC internal prototype to avoid an error.
18765    Use char because int might match the return type of a GCC
18766    builtin and then its argument prototype would still apply.  */
18767 #ifdef __cplusplus
18768 extern "C"
18769 #endif
18770 char $ac_func ();
18771 /* The GNU C library defines this for functions which it implements
18772     to always fail with ENOSYS.  Some functions are actually named
18773     something starting with __ and the normal name is an alias.  */
18774 #if defined __stub_$ac_func || defined __stub___$ac_func
18775 choke me
18776 #endif
18777
18778 int
18779 main ()
18780 {
18781 return $ac_func ();
18782   ;
18783   return 0;
18784 }
18785 _ACEOF
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (ac_try="$ac_link"
18788 case "(($ac_try" in
18789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790   *) ac_try_echo=$ac_try;;
18791 esac
18792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18793 $as_echo "$ac_try_echo") >&5
18794   (eval "$ac_link") 2>conftest.er1
18795   ac_status=$?
18796   grep -v '^ *+' conftest.er1 >conftest.err
18797   rm -f conftest.er1
18798   cat conftest.err >&5
18799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800   (exit $ac_status); } && {
18801          test -z "$ac_c_werror_flag" ||
18802          test ! -s conftest.err
18803        } && test -s conftest$ac_exeext && {
18804          test "$cross_compiling" = yes ||
18805          $as_test_x conftest$ac_exeext
18806        }; then
18807   eval "$as_ac_var=yes"
18808 else
18809   $as_echo "$as_me: failed program was:" >&5
18810 sed 's/^/| /' conftest.$ac_ext >&5
18811
18812         eval "$as_ac_var=no"
18813 fi
18814
18815 rm -rf conftest.dSYM
18816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18817       conftest$ac_exeext conftest.$ac_ext
18818 fi
18819 ac_res=`eval 'as_val=${'$as_ac_var'}
18820                  $as_echo "$as_val"'`
18821                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18822 $as_echo "$ac_res" >&6; }
18823 as_val=`eval 'as_val=${'$as_ac_var'}
18824                  $as_echo "$as_val"'`
18825    if test "x$as_val" = x""yes; then
18826   cat >>confdefs.h <<_ACEOF
18827 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18828 _ACEOF
18829
18830 fi
18831 done
18832
18833       { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
18834 $as_echo_n "checking whether _snprintf is declared... " >&6; }
18835 if test "${ac_cv_have_decl__snprintf+set}" = set; then
18836   $as_echo_n "(cached) " >&6
18837 else
18838   cat >conftest.$ac_ext <<_ACEOF
18839 /* confdefs.h.  */
18840 _ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h.  */
18844 #include <stdio.h>
18845
18846 int
18847 main ()
18848 {
18849 #ifndef _snprintf
18850   (void) _snprintf;
18851 #endif
18852
18853   ;
18854   return 0;
18855 }
18856 _ACEOF
18857 rm -f conftest.$ac_objext
18858 if { (ac_try="$ac_compile"
18859 case "(($ac_try" in
18860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861   *) ac_try_echo=$ac_try;;
18862 esac
18863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18864 $as_echo "$ac_try_echo") >&5
18865   (eval "$ac_compile") 2>conftest.er1
18866   ac_status=$?
18867   grep -v '^ *+' conftest.er1 >conftest.err
18868   rm -f conftest.er1
18869   cat conftest.err >&5
18870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871   (exit $ac_status); } && {
18872          test -z "$ac_c_werror_flag" ||
18873          test ! -s conftest.err
18874        } && test -s conftest.$ac_objext; then
18875   ac_cv_have_decl__snprintf=yes
18876 else
18877   $as_echo "$as_me: failed program was:" >&5
18878 sed 's/^/| /' conftest.$ac_ext >&5
18879
18880         ac_cv_have_decl__snprintf=no
18881 fi
18882
18883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18884 fi
18885 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
18886 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
18887 if test "x$ac_cv_have_decl__snprintf" = x""yes; then
18888
18889 cat >>confdefs.h <<_ACEOF
18890 #define HAVE_DECL__SNPRINTF 1
18891 _ACEOF
18892
18893
18894 else
18895   cat >>confdefs.h <<_ACEOF
18896 #define HAVE_DECL__SNPRINTF 0
18897 _ACEOF
18898
18899
18900 fi
18901
18902
18903
18904
18905
18906
18907   fi
18908
18909
18910
18911   CFLAG_VISIBILITY=
18912   HAVE_VISIBILITY=0
18913   if test -n "$GCC"; then
18914     { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
18915 $as_echo_n "checking for simple visibility declarations... " >&6; }
18916     if test "${gl_cv_cc_visibility+set}" = set; then
18917   $as_echo_n "(cached) " >&6
18918 else
18919
18920       gl_save_CFLAGS="$CFLAGS"
18921       CFLAGS="$CFLAGS -fvisibility=hidden"
18922       cat >conftest.$ac_ext <<_ACEOF
18923 /* confdefs.h.  */
18924 _ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h.  */
18928 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
18929          extern __attribute__((__visibility__("default"))) int exportedvar;
18930          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
18931          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
18932 int
18933 main ()
18934 {
18935
18936   ;
18937   return 0;
18938 }
18939 _ACEOF
18940 rm -f conftest.$ac_objext
18941 if { (ac_try="$ac_compile"
18942 case "(($ac_try" in
18943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944   *) ac_try_echo=$ac_try;;
18945 esac
18946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18947 $as_echo "$ac_try_echo") >&5
18948   (eval "$ac_compile") 2>conftest.er1
18949   ac_status=$?
18950   grep -v '^ *+' conftest.er1 >conftest.err
18951   rm -f conftest.er1
18952   cat conftest.err >&5
18953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954   (exit $ac_status); } && {
18955          test -z "$ac_c_werror_flag" ||
18956          test ! -s conftest.err
18957        } && test -s conftest.$ac_objext; then
18958   gl_cv_cc_visibility=yes
18959 else
18960   $as_echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.$ac_ext >&5
18962
18963         gl_cv_cc_visibility=no
18964 fi
18965
18966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18967       CFLAGS="$gl_save_CFLAGS"
18968 fi
18969
18970     { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
18971 $as_echo "$gl_cv_cc_visibility" >&6; }
18972     if test $gl_cv_cc_visibility = yes; then
18973       CFLAG_VISIBILITY="-fvisibility=hidden"
18974       HAVE_VISIBILITY=1
18975     fi
18976   fi
18977
18978
18979
18980 cat >>confdefs.h <<_ACEOF
18981 #define HAVE_VISIBILITY $HAVE_VISIBILITY
18982 _ACEOF
18983
18984
18985
18986
18987   { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
18988 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
18989 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
18990   $as_echo_n "(cached) " >&6
18991 else
18992   cat >conftest.$ac_ext <<_ACEOF
18993 #include <wchar.h>
18994 wchar_t w;
18995 _ACEOF
18996 rm -f conftest.$ac_objext
18997 if { (ac_try="$ac_compile"
18998 case "(($ac_try" in
18999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000   *) ac_try_echo=$ac_try;;
19001 esac
19002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19003 $as_echo "$ac_try_echo") >&5
19004   (eval "$ac_compile") 2>conftest.er1
19005   ac_status=$?
19006   grep -v '^ *+' conftest.er1 >conftest.err
19007   rm -f conftest.er1
19008   cat conftest.err >&5
19009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010   (exit $ac_status); } && {
19011          test -z "$ac_c_werror_flag" ||
19012          test ! -s conftest.err
19013        } && test -s conftest.$ac_objext; then
19014   gl_cv_header_wchar_h_standalone=yes
19015 else
19016   $as_echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19018
19019         gl_cv_header_wchar_h_standalone=no
19020 fi
19021
19022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19023 fi
19024 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
19025 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
19026   if test $gl_cv_header_wchar_h_standalone != yes; then
19027     WCHAR_H=wchar.h
19028   fi
19029
19030
19031   :
19032
19033
19034
19035
19036
19037   if test $ac_cv_header_wchar_h = yes; then
19038     HAVE_WCHAR_H=1
19039   else
19040     HAVE_WCHAR_H=0
19041   fi
19042
19043
19044
19045
19046   :
19047
19048
19049
19050
19051
19052
19053
19054      if test $gl_cv_have_include_next = yes; then
19055        gl_cv_next_wchar_h='<'wchar.h'>'
19056      else
19057        { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
19058 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
19059 if test "${gl_cv_next_wchar_h+set}" = set; then
19060   $as_echo_n "(cached) " >&6
19061 else
19062
19063           if test $ac_cv_header_wchar_h = yes; then
19064             cat >conftest.$ac_ext <<_ACEOF
19065 /* confdefs.h.  */
19066 _ACEOF
19067 cat confdefs.h >>conftest.$ac_ext
19068 cat >>conftest.$ac_ext <<_ACEOF
19069 /* end confdefs.h.  */
19070 #include <wchar.h>
19071
19072 _ACEOF
19073                                     gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19074                sed -n '\#/wchar.h#{
19075                  s#.*"\(.*/wchar.h\)".*#\1#
19076                  s#^/[^/]#//&#
19077                  p
19078                  q
19079                }'`'"'
19080           else
19081             gl_cv_next_wchar_h='<'wchar.h'>'
19082           fi
19083
19084 fi
19085 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
19086 $as_echo "$gl_cv_next_wchar_h" >&6; }
19087      fi
19088      NEXT_WCHAR_H=$gl_cv_next_wchar_h
19089
19090
19091
19092
19093
19094
19095
19096
19097 for ac_header in stdint.h
19098 do
19099 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19101   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19102 $as_echo_n "checking for $ac_header... " >&6; }
19103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19104   $as_echo_n "(cached) " >&6
19105 fi
19106 ac_res=`eval 'as_val=${'$as_ac_Header'}
19107                  $as_echo "$as_val"'`
19108                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19109 $as_echo "$ac_res" >&6; }
19110 else
19111   # Is the header compilable?
19112 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19113 $as_echo_n "checking $ac_header usability... " >&6; }
19114 cat >conftest.$ac_ext <<_ACEOF
19115 /* confdefs.h.  */
19116 _ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h.  */
19120 $ac_includes_default
19121 #include <$ac_header>
19122 _ACEOF
19123 rm -f conftest.$ac_objext
19124 if { (ac_try="$ac_compile"
19125 case "(($ac_try" in
19126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127   *) ac_try_echo=$ac_try;;
19128 esac
19129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19130 $as_echo "$ac_try_echo") >&5
19131   (eval "$ac_compile") 2>conftest.er1
19132   ac_status=$?
19133   grep -v '^ *+' conftest.er1 >conftest.err
19134   rm -f conftest.er1
19135   cat conftest.err >&5
19136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137   (exit $ac_status); } && {
19138          test -z "$ac_c_werror_flag" ||
19139          test ! -s conftest.err
19140        } && test -s conftest.$ac_objext; then
19141   ac_header_compiler=yes
19142 else
19143   $as_echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19145
19146         ac_header_compiler=no
19147 fi
19148
19149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19150 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19151 $as_echo "$ac_header_compiler" >&6; }
19152
19153 # Is the header present?
19154 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19155 $as_echo_n "checking $ac_header presence... " >&6; }
19156 cat >conftest.$ac_ext <<_ACEOF
19157 /* confdefs.h.  */
19158 _ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h.  */
19162 #include <$ac_header>
19163 _ACEOF
19164 if { (ac_try="$ac_cpp conftest.$ac_ext"
19165 case "(($ac_try" in
19166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167   *) ac_try_echo=$ac_try;;
19168 esac
19169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19170 $as_echo "$ac_try_echo") >&5
19171   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19172   ac_status=$?
19173   grep -v '^ *+' conftest.er1 >conftest.err
19174   rm -f conftest.er1
19175   cat conftest.err >&5
19176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177   (exit $ac_status); } >/dev/null && {
19178          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19179          test ! -s conftest.err
19180        }; then
19181   ac_header_preproc=yes
19182 else
19183   $as_echo "$as_me: failed program was:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19185
19186   ac_header_preproc=no
19187 fi
19188
19189 rm -f conftest.err conftest.$ac_ext
19190 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19191 $as_echo "$ac_header_preproc" >&6; }
19192
19193 # So?  What about this header?
19194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19195   yes:no: )
19196     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19197 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19198     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19199 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19200     ac_header_preproc=yes
19201     ;;
19202   no:yes:* )
19203     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19204 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19205     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19206 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19207     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19208 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19209     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19210 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19211     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19213     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19214 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19215
19216     ;;
19217 esac
19218 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19219 $as_echo_n "checking for $ac_header... " >&6; }
19220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19221   $as_echo_n "(cached) " >&6
19222 else
19223   eval "$as_ac_Header=\$ac_header_preproc"
19224 fi
19225 ac_res=`eval 'as_val=${'$as_ac_Header'}
19226                  $as_echo "$as_val"'`
19227                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19228 $as_echo "$ac_res" >&6; }
19229
19230 fi
19231 as_val=`eval 'as_val=${'$as_ac_Header'}
19232                  $as_echo "$as_val"'`
19233    if test "x$as_val" = x""yes; then
19234   cat >>confdefs.h <<_ACEOF
19235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19236 _ACEOF
19237
19238 fi
19239
19240 done
19241
19242
19243
19244
19245
19246
19247   gltests_libdeps=
19248   gltests_ltlibdeps=
19249
19250
19251
19252   gl_source_base='tests'
19253
19254
19255
19256
19257
19258
19259
19260
19261     # support deprecated ./configure flags to set various compiler flags
19262
19263
19264 # Check whether --with-cflags was given.
19265 if test "${with_cflags+set}" = set; then
19266   withval=$with_cflags;
19267             case "$withval" in
19268             "" | y | ye | yes | n | no)
19269                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-cflags option." >&5
19270 $as_echo "$as_me: error: *** You must supply an argument to the --with-cflags option." >&2;}
19271    { (exit 1); exit 1; }; }
19272                 ;;
19273             esac
19274
19275             CFLAGS="$withval"
19276
19277 fi
19278
19279
19280
19281 # Check whether --with-includes was given.
19282 if test "${with_includes+set}" = set; then
19283   withval=$with_includes;
19284             case "$withval" in
19285             "" | y | ye | yes | n | no)
19286                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
19287 $as_echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
19288    { (exit 1); exit 1; }; }
19289               ;;
19290             esac
19291
19292             for dir in $withval; do
19293                 if test -d "$dir"; then
19294                     CPPFLAGS="$CPPFLAGS -I$dir"
19295                 else
19296
19297     { $as_echo "$as_me:$LINENO: WARNING: Include directory $dir does not exist." >&5
19298 $as_echo "$as_me: WARNING: Include directory $dir does not exist." >&2;}
19299
19300
19301     cat <<AAW_EOF >>config.warnings
19302 Include directory $dir does not exist.
19303 AAW_EOF
19304
19305
19306                 fi
19307             done
19308
19309 fi
19310
19311
19312
19313 # Check whether --with-libraries was given.
19314 if test "${with_libraries+set}" = set; then
19315   withval=$with_libraries;
19316             case "$withval" in
19317             "" | y | ye | yes | n | no)
19318                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
19319 $as_echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
19320    { (exit 1); exit 1; }; }
19321               ;;
19322             esac
19323
19324             for dir in $withval; do
19325                 if test -d "$dir"; then
19326                     case "$target" in
19327                       *-solaris2*,*-netbsd*)
19328                             LDFLAGS="$LDFLAGS -R$dir"
19329                             ;;
19330                     esac
19331                     LDFLAGS="$LDFLAGS -L$dir"
19332                 else
19333
19334     { $as_echo "$as_me:$LINENO: WARNING: Library directory $dir does not exist." >&5
19335 $as_echo "$as_me: WARNING: Library directory $dir does not exist." >&2;}
19336
19337
19338     cat <<AAW_EOF >>config.warnings
19339 Library directory $dir does not exist.
19340 AAW_EOF
19341
19342
19343                 fi
19344             done
19345
19346 fi
19347
19348
19349     # Disable strict-aliasing optimizations
19350
19351     # test for -W'feature', then add the 'no-' version.
19352
19353
19354
19355     { $as_echo "$as_me:$LINENO: checking for gcc flag -fstrict-aliasing" >&5
19356 $as_echo_n "checking for gcc flag -fstrict-aliasing... " >&6; }
19357     if test "x$GCC" = "xyes"; then
19358                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19359            $CC -v --help 2>&1) |
19360          $EGREP -- '[^[:alnum:]]-fstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
19361                 if test $? -eq 0; then
19362             found_warning=yes
19363             { $as_echo "$as_me:$LINENO: result: yes" >&5
19364 $as_echo "yes" >&6; }
19365         else
19366             found_warning=no
19367             { $as_echo "$as_me:$LINENO: result: no" >&5
19368 $as_echo "no" >&6; }
19369         fi
19370     else
19371         found_warning=no
19372         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
19373 $as_echo "no (not using gcc)" >&6; }
19374     fi
19375
19376     if test x"$found_warning" = x"yes"; then
19377         CFLAGS="$CFLAGS -fno-strict-aliasing"
19378
19379         CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
19380
19381
19382     else
19383         :
19384     fi
19385
19386
19387
19388     # Warn for just about everything
19389
19390
19391
19392
19393     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wall" >&5
19394 $as_echo_n "checking for gcc flag -Wall... " >&6; }
19395     if test "x$GCC" = "xyes"; then
19396                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19397            $CC -v --help 2>&1) |
19398          $EGREP -- '[^[:alnum:]]-Wall[^[:alnum:]-]' 2>&1 > /dev/null
19399                 if test $? -eq 0; then
19400             found_warning=yes
19401             { $as_echo "$as_me:$LINENO: result: yes" >&5
19402 $as_echo "yes" >&6; }
19403         else
19404             found_warning=no
19405             { $as_echo "$as_me:$LINENO: result: no" >&5
19406 $as_echo "no" >&6; }
19407         fi
19408     else
19409         found_warning=no
19410         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
19411 $as_echo "no (not using gcc)" >&6; }
19412     fi
19413
19414     if test x"$found_warning" = x"yes"; then
19415         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wall"
19416
19417
19418     else
19419         :
19420     fi
19421
19422
19423
19424     # And add any extra warnings too
19425
19426
19427
19428     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wextra" >&5
19429 $as_echo_n "checking for gcc flag -Wextra... " >&6; }
19430     if test "x$GCC" = "xyes"; then
19431                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19432            $CC -v --help 2>&1) |
19433          $EGREP -- '[^[:alnum:]]-Wextra[^[:alnum:]-]' 2>&1 > /dev/null
19434                 if test $? -eq 0; then
19435             found_warning=yes
19436             { $as_echo "$as_me:$LINENO: result: yes" >&5
19437 $as_echo "yes" >&6; }
19438         else
19439             found_warning=no
19440             { $as_echo "$as_me:$LINENO: result: no" >&5
19441 $as_echo "no" >&6; }
19442         fi
19443     else
19444         found_warning=no
19445         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
19446 $as_echo "no (not using gcc)" >&6; }
19447     fi
19448
19449     if test x"$found_warning" = x"yes"; then
19450         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wextra"
19451
19452
19453     else
19454
19455
19456
19457     { $as_echo "$as_me:$LINENO: checking for gcc flag -W" >&5
19458 $as_echo_n "checking for gcc flag -W... " >&6; }
19459     if test "x$GCC" = "xyes"; then
19460                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19461            $CC -v --help 2>&1) |
19462          $EGREP -- '^[:alnum:]-W^[:alnum:]-' 2>&1 > /dev/null
19463                 if test $? -eq 0; then
19464             found_warning=yes
19465             { $as_echo "$as_me:$LINENO: result: yes" >&5
19466 $as_echo "yes" >&6; }
19467         else
19468             found_warning=no
19469             { $as_echo "$as_me:$LINENO: result: no" >&5
19470 $as_echo "no" >&6; }
19471         fi
19472     else
19473         found_warning=no
19474         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
19475 $as_echo "no (not using gcc)" >&6; }
19476     fi
19477
19478     if test x"$found_warning" = x"yes"; then
19479         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -W"
19480
19481
19482     else
19483         :
19484     fi
19485
19486
19487     fi
19488
19489
19490
19491 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
19492
19493
19494
19495 #
19496 # Configuration flags (--with-xxx and --enable-xxx)
19497 #
19498
19499
19500
19501 # Check whether --with-user was given.
19502 if test "${with_user+set}" = set; then
19503   withval=$with_user;
19504             case "$withval" in
19505                 "" | y | ye | yes | n | no)
19506                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
19507 $as_echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
19508    { (exit 1); exit 1; }; }
19509                   ;;
19510                 *)
19511                     CLIENT_LOGIN="$withval"
19512                   ;;
19513             esac
19514
19515 else
19516
19517
19518     { $as_echo "$as_me:$LINENO: WARNING: no user specified (--with-user) -- using 'amanda'" >&5
19519 $as_echo "$as_me: WARNING: no user specified (--with-user) -- using 'amanda'" >&2;}
19520
19521
19522     cat <<AAW_EOF >>config.warnings
19523 no user specified (--with-user) -- using 'amanda'
19524 AAW_EOF
19525
19526
19527             CLIENT_LOGIN=amanda
19528
19529
19530 fi
19531
19532
19533
19534 cat >>confdefs.h <<_ACEOF
19535 #define CLIENT_LOGIN "$CLIENT_LOGIN"
19536 _ACEOF
19537
19538
19539
19540
19541
19542 # Check whether --with-group was given.
19543 if test "${with_group+set}" = set; then
19544   withval=$with_group;
19545             case "$withval" in
19546                 "" | y | ye | yes | n | no)
19547                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
19548 $as_echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
19549    { (exit 1); exit 1; }; }
19550                   ;;
19551                 *) SETUID_GROUP="$withval"
19552                   ;;
19553             esac
19554
19555 else
19556
19557
19558     { $as_echo "$as_me:$LINENO: WARNING: no group specified (--with-group) -- using 'backup'" >&5
19559 $as_echo "$as_me: WARNING: no group specified (--with-group) -- using 'backup'" >&2;}
19560
19561
19562     cat <<AAW_EOF >>config.warnings
19563 no group specified (--with-group) -- using 'backup'
19564 AAW_EOF
19565
19566
19567             CLIENT_LOGIN=backup
19568
19569
19570 fi
19571
19572
19573
19574
19575
19576 # Check whether --with-dumperdir was given.
19577 if test "${with_dumperdir+set}" = set; then
19578   withval=$with_dumperdir;
19579
19580     { $as_echo "$as_me:$LINENO: WARNING: --with-dumperdir is no longer used." >&5
19581 $as_echo "$as_me: WARNING: --with-dumperdir is no longer used." >&2;}
19582
19583
19584     cat <<AAW_EOF >>config.warnings
19585 --with-dumperdir is no longer used.
19586 AAW_EOF
19587
19588
19589
19590
19591 fi
19592
19593
19594
19595
19596 # Check whether --with-configdir was given.
19597 if test "${with_configdir+set}" = set; then
19598   withval=$with_configdir;
19599             case "$withval" in
19600             "" | y | ye | yes | n | no)
19601                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
19602 $as_echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
19603    { (exit 1); exit 1; }; }
19604               ;;
19605             *) CONFIG_DIR="$withval"
19606               ;;
19607             esac
19608
19609 else
19610
19611             : ${CONFIG_DIR='${sysconfdir}/amanda'} # (variable will be evaluated below)
19612
19613
19614 fi
19615
19616
19617   prefix_NONE=
19618   exec_prefix_NONE=
19619   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
19620   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
19621   eval ac_define_dir="\"$CONFIG_DIR\""
19622   eval ac_define_dir="\"$ac_define_dir\""
19623   CONFIG_DIR="$ac_define_dir"
19624
19625
19626 cat >>confdefs.h <<_ACEOF
19627 #define CONFIG_DIR "$ac_define_dir"
19628 _ACEOF
19629
19630   test "$prefix_NONE" && prefix=NONE
19631   test "$exec_prefix_NONE" && exec_prefix=NONE
19632
19633
19634
19635
19636 # Check whether --with-indexdir was given.
19637 if test "${with_indexdir+set}" = set; then
19638   withval=$with_indexdir;    { { $as_echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&5
19639 $as_echo "$as_me: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&2;}
19640    { (exit 1); exit 1; }; }
19641
19642 fi
19643
19644
19645
19646
19647 # Check whether --with-dbdir was given.
19648 if test "${with_dbdir+set}" = set; then
19649   withval=$with_dbdir;    { { $as_echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&5
19650 $as_echo "$as_me: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&2;}
19651    { (exit 1); exit 1; }; }
19652
19653 fi
19654
19655
19656
19657
19658 # Check whether --with-logdir was given.
19659 if test "${with_logdir+set}" = set; then
19660   withval=$with_logdir;    { { $as_echo "$as_me:$LINENO: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&5
19661 $as_echo "$as_me: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&2;}
19662    { (exit 1); exit 1; }; }
19663
19664 fi
19665
19666
19667
19668
19669 # Check whether --with-suffixes was given.
19670 if test "${with_suffixes+set}" = set; then
19671   withval=$with_suffixes; USE_VERSION_SUFFIXES=$withval
19672 else
19673   : ${USE_VERSION_SUFFIXES=no}
19674
19675 fi
19676
19677
19678     case "$USE_VERSION_SUFFIXES" in
19679     y | ye | yes) USE_VERSION_SUFFIXES=yes
19680
19681 cat >>confdefs.h <<\_ACEOF
19682 #define USE_VERSION_SUFFIXES 1
19683 _ACEOF
19684
19685
19686         program_suffix="-$VERSION_SUFFIX"
19687         # This is from the output of configure.in.
19688         if test "x$program_transform_name" = xs,x,x,; then
19689             program_transform_name=
19690         else
19691             # Double any \ or $.  echo might interpret backslashes.
19692             cat <<\EOF_SED > conftestsed
19693 s,\\,\\\\,g; s,\$,$$,g
19694 EOF_SED
19695             program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
19696             rm -f conftestsed
19697         fi
19698         test "x$program_prefix" != xNONE &&
19699             program_transform_name="s,^,${program_prefix},; $program_transform_name"
19700         # Use a double $ so make ignores it.
19701         test "x$program_suffix" != xNONE &&
19702             program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
19703
19704         # sed with no file args requires a program.
19705         test "x$program_transform_name" = "" && program_transform_name="xs,x,x,"
19706         # Remove empty command
19707         cat <<\EOF_SED > conftestsed
19708 s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
19709 EOF_SED
19710         program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
19711         rm -f conftestsed
19712       ;;
19713     n | no) USE_VERSION_SUFFIXES=no
19714       ;;
19715     *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-suffixes option." >&5
19716 $as_echo "$as_me: error: *** You must not supply an argument to --with-suffixes option." >&2;}
19717    { (exit 1); exit 1; }; }
19718       ;;
19719     esac
19720
19721
19722
19723
19724
19725 # Check whether --with-gnutar-listdir was given.
19726 if test "${with_gnutar_listdir+set}" = set; then
19727   withval=$with_gnutar_listdir;
19728             case "$withval" in
19729                 n | no) GNUTAR_LISTDIR= ;;
19730                 y | ye | yes) GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists' ;;
19731                 *) GNUTAR_LISTDIR="$withval" ;;
19732             esac
19733
19734 else
19735
19736             GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists'
19737
19738
19739 fi
19740
19741
19742     # substitute $prefix, etc. if necessary
19743
19744   prefix_NONE=
19745   exec_prefix_NONE=
19746   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
19747   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
19748   eval ac_define_dir="\"$GNUTAR_LISTDIR\""
19749   eval ac_define_dir="\"$ac_define_dir\""
19750   GNUTAR_LISTED_INCREMENTAL_DIR="$ac_define_dir"
19751
19752
19753 cat >>confdefs.h <<_ACEOF
19754 #define GNUTAR_LISTED_INCREMENTAL_DIR "$ac_define_dir"
19755 _ACEOF
19756
19757   test "$prefix_NONE" && prefix=NONE
19758   test "$exec_prefix_NONE" && exec_prefix=NONE
19759
19760
19761     # handle deprecated option
19762
19763 # Check whether --with-gnutar-listed-incremental was given.
19764 if test "${with_gnutar_listed_incremental+set}" = set; then
19765   withval=$with_gnutar_listed_incremental;
19766             { { $as_echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&5
19767 $as_echo "$as_me: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&2;}
19768    { (exit 1); exit 1; }; }
19769
19770
19771 fi
19772
19773
19774
19775
19776 # Check whether --with-tmpdir was given.
19777 if test "${with_tmpdir+set}" = set; then
19778   withval=$with_tmpdir;
19779             tmpdir="$withval"
19780
19781 else
19782
19783             tmpdir=yes
19784
19785
19786 fi
19787
19788
19789     case "$tmpdir" in
19790         n | no) { { $as_echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
19791 $as_echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
19792    { (exit 1); exit 1; }; };;
19793         y |  ye | yes) AMANDA_TMPDIR="/tmp/amanda";;
19794         *) AMANDA_TMPDIR="$tmpdir";;
19795     esac
19796
19797
19798   prefix_NONE=
19799   exec_prefix_NONE=
19800   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
19801   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
19802   eval ac_define_dir="\"$AMANDA_TMPDIR\""
19803   eval ac_define_dir="\"$ac_define_dir\""
19804   AMANDA_TMPDIR="$ac_define_dir"
19805
19806
19807 cat >>confdefs.h <<_ACEOF
19808 #define AMANDA_TMPDIR "$ac_define_dir"
19809 _ACEOF
19810
19811   test "$prefix_NONE" && prefix=NONE
19812   test "$exec_prefix_NONE" && exec_prefix=NONE
19813
19814
19815
19816
19817 # Check whether --with-force-uid was given.
19818 if test "${with_force_uid+set}" = set; then
19819   withval=$with_force_uid; CHECK_USERID="$withval"
19820 else
19821   : ${CHECK_USERID=yes}
19822
19823 fi
19824
19825     case "$CHECK_USERID" in
19826         y | ye | yes)
19827             CHECK_USERID=1
19828
19829 cat >>confdefs.h <<\_ACEOF
19830 #define CHECK_USERID 1
19831 _ACEOF
19832
19833           ;;
19834         n | no) :
19835             CHECK_USERID=
19836           ;;
19837         *)
19838             { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
19839 $as_echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
19840    { (exit 1); exit 1; }; }
19841     esac
19842
19843
19844
19845
19846
19847 # Check whether --with-owner was given.
19848 if test "${with_owner+set}" = set; then
19849   withval=$with_owner;
19850             case "$withval" in
19851             "" | y | ye | yes | n | no)
19852                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
19853 $as_echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
19854    { (exit 1); exit 1; }; }
19855               ;;
19856             *) BINARY_OWNER="$withval"
19857               ;;
19858             esac
19859
19860 else
19861
19862             BINARY_OWNER="$CLIENT_LOGIN"
19863
19864
19865 fi
19866
19867
19868 cat >>confdefs.h <<_ACEOF
19869 #define BINARY_OWNER "$BINARY_OWNER"
19870 _ACEOF
19871
19872
19873
19874
19875
19876 # Check whether --with-fqdn was given.
19877 if test "${with_fqdn+set}" = set; then
19878   withval=$with_fqdn;  USE_FQDN=$withval
19879 else
19880    USE_FQDN=no
19881 fi
19882
19883
19884     case "$USE_FQDN" in
19885     n | no) : ;;
19886     y |  ye | yes)
19887
19888 cat >>confdefs.h <<\_ACEOF
19889 #define USE_FQDN 1
19890 _ACEOF
19891
19892       ;;
19893     *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-fqdn option." >&5
19894 $as_echo "$as_me: error: You must not supply an argument to --with-fqdn option." >&2;}
19895    { (exit 1); exit 1; }; }
19896       ;;
19897     esac
19898
19899
19900
19901 # Check whether --with-reuseports was given.
19902 if test "${with_reuseports+set}" = set; then
19903   withval=$with_reuseports;  case "$withval" in
19904             y | ye | yes) USE_REUSEADDR=no;;
19905             n | no) USE_REUSEADDR=yes;;
19906             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --without-reuseports" >&5
19907 $as_echo "$as_me: error: You must not supply an argument to --without-reuseports" >&2;}
19908    { (exit 1); exit 1; }; };;
19909           esac
19910
19911 else
19912    USE_REUSEADDR=yes;
19913 fi
19914
19915     if test x"$USE_REUSEADDR" = x"yes"; then
19916
19917 cat >>confdefs.h <<\_ACEOF
19918 #define USE_REUSEADDR 1
19919 _ACEOF
19920
19921     fi
19922
19923
19924
19925 # Check whether --with-low-tcpportrange was given.
19926 if test "${with_low_tcpportrange+set}" = set; then
19927   withval=$with_low_tcpportrange;  LOW_TCPPORTRANGE="$withval"
19928 else
19929    LOW_TCPPORTRANGE=unlimited
19930 fi
19931
19932
19933     if test x"$LOW_TCPPORTRANGE" != x"unlimited"; then
19934         if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
19935             { { $as_echo "$as_me:$LINENO: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&5
19936 $as_echo "$as_me: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&2;}
19937    { (exit 1); exit 1; }; }
19938         fi
19939         min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
19940         max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
19941         if test $min_low_tcp_port -gt $max_low_tcp_port; then
19942             { { $as_echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&5
19943 $as_echo "$as_me: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&2;}
19944    { (exit 1); exit 1; }; }
19945         fi
19946         if test $min_low_tcp_port -lt 512; then
19947
19948     { $as_echo "$as_me:$LINENO: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
19949 $as_echo "$as_me: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
19950
19951
19952     cat <<AAW_EOF >>config.warnings
19953 the low TCP port range should be 512 or greater in --with-low-tcpportrange
19954 AAW_EOF
19955
19956
19957         fi
19958         if test $max_low_tcp_port -ge 1024; then
19959
19960     { $as_echo "$as_me:$LINENO: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
19961 $as_echo "$as_me: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
19962
19963
19964     cat <<AAW_EOF >>config.warnings
19965 the low TCP port range should be less than 1024 in --with-low-tcpportrange
19966 AAW_EOF
19967
19968
19969         fi
19970
19971 cat >>confdefs.h <<_ACEOF
19972 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
19973 _ACEOF
19974
19975     fi
19976
19977
19978 # Check whether --with-tcpportrange was given.
19979 if test "${with_tcpportrange+set}" = set; then
19980   withval=$with_tcpportrange;  TCPPORTRANGE="$withval"
19981 else
19982    TCPPORTRANGE="unlimited"
19983 fi
19984
19985
19986     if test x"$TCPPORTRANGE" != x"unlimited"; then
19987         if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
19988             { { $as_echo "$as_me:$LINENO: error: --with-tcpportrange requires two comma-separated positive numbers" >&5
19989 $as_echo "$as_me: error: --with-tcpportrange requires two comma-separated positive numbers" >&2;}
19990    { (exit 1); exit 1; }; }
19991         fi
19992         min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
19993         max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
19994         if test $min_tcp_port -gt $max_tcp_port; then
19995             { { $as_echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&5
19996 $as_echo "$as_me: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
19997    { (exit 1); exit 1; }; }
19998         fi
19999         if test $min_tcp_port -lt 1024; then
20000
20001     { $as_echo "$as_me:$LINENO: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
20002 $as_echo "$as_me: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
20003
20004
20005     cat <<AAW_EOF >>config.warnings
20006 the TCP port range should be 1024 or greater in --with-tcpportrange
20007 AAW_EOF
20008
20009
20010         fi
20011         if test $max_tcp_port -ge 65536; then
20012
20013     { $as_echo "$as_me:$LINENO: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&5
20014 $as_echo "$as_me: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
20015
20016
20017     cat <<AAW_EOF >>config.warnings
20018 the TCP port range should be less than 65536 in --with-tcpportrange
20019 AAW_EOF
20020
20021
20022         fi
20023
20024 cat >>confdefs.h <<_ACEOF
20025 #define TCPPORTRANGE $TCPPORTRANGE
20026 _ACEOF
20027
20028     fi
20029
20030
20031 # Check whether --with-udpportrange was given.
20032 if test "${with_udpportrange+set}" = set; then
20033   withval=$with_udpportrange;  UDPPORTRANGE="$withval"
20034 else
20035    UDPPORTRANGE="unlimited"
20036 fi
20037
20038     if test x"$UDPPORTRANGE" != x"unlimited"; then
20039         if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20040             { { $as_echo "$as_me:$LINENO: error: --with-udpportrange requires two comma-separated positive numbers" >&5
20041 $as_echo "$as_me: error: --with-udpportrange requires two comma-separated positive numbers" >&2;}
20042    { (exit 1); exit 1; }; }
20043         fi
20044         min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
20045         max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
20046         if test $min_udp_port -gt $max_udp_port; then
20047             { { $as_echo "$as_me:$LINENO: error: the second UDP port number must be greater than the first in --with-udpportrange" >&5
20048 $as_echo "$as_me: error: the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
20049    { (exit 1); exit 1; }; }
20050         fi
20051         if test $max_udp_port -ge 1024; then
20052
20053     { $as_echo "$as_me:$LINENO: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&5
20054 $as_echo "$as_me: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&2;}
20055
20056
20057     cat <<AAW_EOF >>config.warnings
20058 the UDP port range should be less than 1025 in --with-udpportrange
20059 AAW_EOF
20060
20061
20062         fi
20063         if test $min_udp_port -le 0; then
20064
20065     { $as_echo "$as_me:$LINENO: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&5
20066 $as_echo "$as_me: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
20067
20068
20069     cat <<AAW_EOF >>config.warnings
20070 the UDP port range should be greater than 0 in --with-udpportrange
20071 AAW_EOF
20072
20073
20074         fi
20075
20076 cat >>confdefs.h <<_ACEOF
20077 #define UDPPORTRANGE $UDPPORTRANGE
20078 _ACEOF
20079
20080     fi
20081
20082
20083
20084
20085
20086
20087 # Check whether --with-buffered-dump was given.
20088 if test "${with_buffered_dump+set}" = set; then
20089   withval=$with_buffered_dump;  DUMPER_SOCKET_BUFFERING=$withval
20090 else
20091    DUMPER_SOCKET_BUFFERING=no
20092 fi
20093
20094     case "$DUMPER_SOCKET_BUFFERING" in
20095     n | no) ;;
20096     y | ye | yes)
20097
20098 cat >>confdefs.h <<\_ACEOF
20099 #define DUMPER_SOCKET_BUFFERING 1
20100 _ACEOF
20101
20102       ;;
20103     *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-buffered-dump." >&5
20104 $as_echo "$as_me: error: You must not supply an argument to --with-buffered-dump." >&2;}
20105    { (exit 1); exit 1; }; } ;;
20106     esac
20107
20108
20109
20110 # Check whether --with-maxtapeblocksize was given.
20111 if test "${with_maxtapeblocksize+set}" = set; then
20112   withval=$with_maxtapeblocksize;
20113     { $as_echo "$as_me:$LINENO: WARNING: --with-maxtapeblocksize is no longer needed" >&5
20114 $as_echo "$as_me: WARNING: --with-maxtapeblocksize is no longer needed" >&2;}
20115
20116
20117     cat <<AAW_EOF >>config.warnings
20118 --with-maxtapeblocksize is no longer needed
20119 AAW_EOF
20120
20121
20122
20123 fi
20124
20125
20126
20127     ASSERTIONS=
20128
20129 # Check whether --with-assertions was given.
20130 if test "${with_assertions+set}" = set; then
20131   withval=$with_assertions;
20132             case "$withval" in
20133                 n | no) : ;;
20134                 y |  ye | yes)
20135                     ASSERTIONS=1
20136
20137 cat >>confdefs.h <<\_ACEOF
20138 #define ASSERTIONS 1
20139 _ACEOF
20140
20141                   ;;
20142                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
20143 $as_echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
20144    { (exit 1); exit 1; }; }
20145                   ;;
20146             esac
20147
20148
20149 fi
20150
20151
20152
20153
20154
20155
20156 # Check whether --with-debugging was given.
20157 if test "${with_debugging+set}" = set; then
20158   withval=$with_debugging;  debugging="$withval"
20159 else
20160    debugging="yes"
20161
20162 fi
20163
20164
20165     case "$debugging" in
20166         n | no) { { $as_echo "$as_me:$LINENO: error: Amanda no longer supports building with debugging disabled" >&5
20167 $as_echo "$as_me: error: Amanda no longer supports building with debugging disabled" >&2;}
20168    { (exit 1); exit 1; }; };;
20169         y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
20170         *) AMANDA_DBGDIR="$debugging";;
20171     esac
20172
20173     # evaluate any extra variables in the directory
20174
20175   prefix_NONE=
20176   exec_prefix_NONE=
20177   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20178   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20179   eval ac_define_dir="\"$AMANDA_DBGDIR\""
20180   eval ac_define_dir="\"$ac_define_dir\""
20181   AMANDA_DBGDIR="$ac_define_dir"
20182
20183
20184 cat >>confdefs.h <<_ACEOF
20185 #define AMANDA_DBGDIR "$ac_define_dir"
20186 _ACEOF
20187
20188   test "$prefix_NONE" && prefix=NONE
20189   test "$exec_prefix_NONE" && exec_prefix=NONE
20190
20191
20192
20193
20194 # Check whether --with-debug_days was given.
20195 if test "${with_debug_days+set}" = set; then
20196   withval=$with_debug_days;
20197             debug_days="$withval"
20198
20199 else
20200
20201             debug_days="yes"
20202
20203
20204 fi
20205
20206     case "$debug_days" in
20207         n | no)
20208             AMANDA_DEBUG_DAYS=0 ;;
20209         y |  ye | yes)
20210             AMANDA_DEBUG_DAYS=4 ;;
20211         [0-9] | [0-9][0-9] | [0-9][0-9][0-9])
20212             AMANDA_DEBUG_DAYS="$debug_days" ;;
20213         *) { { $as_echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
20214 $as_echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
20215    { (exit 1); exit 1; }; }
20216           ;;
20217     esac
20218
20219 cat >>confdefs.h <<_ACEOF
20220 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
20221 _ACEOF
20222
20223
20224
20225
20226
20227 # Check whether --with-testing was given.
20228 if test "${with_testing+set}" = set; then
20229   withval=$with_testing;
20230             TESTING="$withval"
20231
20232 else
20233
20234             TESTING="no"
20235
20236
20237 fi
20238
20239     case "$TESTING" in
20240         n | no) SERVICE_SUFFIX="";;
20241         y |  ye | yes) SERVICE_SUFFIX="-test";;
20242         *) SERVICE_SUFFIX="-$TESTING";;
20243     esac
20244
20245     AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
20246     KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
20247
20248
20249
20250 cat >>confdefs.h <<_ACEOF
20251 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
20252 _ACEOF
20253
20254
20255 cat >>confdefs.h <<_ACEOF
20256 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
20257 _ACEOF
20258
20259
20260 cat >>confdefs.h <<_ACEOF
20261 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
20262 _ACEOF
20263
20264
20265
20266     SINGLE_USERID=${SINGLE_USERID:-no}
20267     WANT_SETUID_CLIENT=${WANT_SETUID_CLIENT:-true}
20268
20269
20270 # Check whether --with-single-userid was given.
20271 if test "${with_single_userid+set}" = set; then
20272   withval=$with_single_userid;    SINGLE_USERID=$withval
20273 fi
20274
20275
20276     case "$target" in
20277         *-pc-cygwin)
20278             WANT_SETUID_CLIENT=false
20279             SINGLE_USERID=yes
20280             ;;
20281     esac
20282
20283     if test x"$WANT_SETUID_CLIENT" = x"true"; then
20284
20285 cat >>confdefs.h <<\_ACEOF
20286 #define WANT_SETUID_CLIENT 1
20287 _ACEOF
20288
20289     fi
20290      if test x"$WANT_SETUID_CLIENT" = x"true"; then
20291   WANT_SETUID_CLIENT_TRUE=
20292   WANT_SETUID_CLIENT_FALSE='#'
20293 else
20294   WANT_SETUID_CLIENT_TRUE='#'
20295   WANT_SETUID_CLIENT_FALSE=
20296 fi
20297
20298
20299     if test x"$SINGLE_USERID" = x"yes"; then
20300
20301 cat >>confdefs.h <<\_ACEOF
20302 #define SINGLE_USERID 1
20303 _ACEOF
20304
20305     fi
20306
20307
20308     WANT_INSTALLPERMS=yes
20309     # Check whether --enable-installperms was given.
20310 if test "${enable_installperms+set}" = set; then
20311   enableval=$enable_installperms;  WANT_INSTALLPERMS="$enableval"
20312 else
20313    WANT_INSTALLPERMS="yes"
20314
20315 fi
20316
20317      if test x"$WANT_INSTALLPERMS" = x"yes"; then
20318   WANT_INSTALLPERMS_TRUE=
20319   WANT_INSTALLPERMS_FALSE='#'
20320 else
20321   WANT_INSTALLPERMS_TRUE='#'
20322   WANT_INSTALLPERMS_FALSE=
20323 fi
20324
20325
20326
20327
20328 #
20329 # Set up for Amanda components and modules
20330 #
20331
20332     WANT_SERVER=true
20333
20334 # Check whether --with-server was given.
20335 if test "${with_server+set}" = set; then
20336   withval=$with_server;
20337             case "$withval" in
20338             y | ye | yes) WANT_SERVER=true;;
20339             n | no) WANT_SERVER=false;;
20340             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to the --without-server option." >&5
20341 $as_echo "$as_me: error: You must not supply an argument to the --without-server option." >&2;}
20342    { (exit 1); exit 1; }; } ;;
20343             esac
20344
20345 fi
20346
20347
20348
20349     WANT_CLIENT=true
20350
20351 # Check whether --with-client was given.
20352 if test "${with_client+set}" = set; then
20353   withval=$with_client;
20354             case "$withval" in
20355             y | ye | yes) WANT_CLIENT=true;;
20356             n | no) WANT_CLIENT=false;;
20357             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to the --without-client option." >&5
20358 $as_echo "$as_me: error: You must not supply an argument to the --without-client option." >&2;}
20359    { (exit 1); exit 1; }; } ;;
20360             esac
20361
20362 fi
20363
20364
20365
20366
20367     WANT_RESTORE=${WANT_SERVER-true}
20368
20369 # Check whether --with-restore was given.
20370 if test "${with_restore+set}" = set; then
20371   withval=$with_restore;
20372             case "$withval" in
20373             y | ye | yes) WANT_RESTORE=true;;
20374             n | no) WANT_RESTORE=false;;
20375             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-restore option." >&5
20376 $as_echo "$as_me: error: You must not supply an argument to --with-restore option." >&2;}
20377    { (exit 1); exit 1; }; } ;;
20378             esac
20379
20380 fi
20381
20382
20383
20384
20385     WANT_RECOVER=${WANT_CLIENT-true}
20386
20387 # Check whether --with-amrecover was given.
20388 if test "${with_amrecover+set}" = set; then
20389   withval=$with_amrecover;
20390             case "$withval" in
20391             y | ye | yes) WANT_RECOVER=false;;
20392             n | no) WANT_RECOVER=false;;
20393             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-amrecover option." >&5
20394 $as_echo "$as_me: error: You must not supply an argument to --with-amrecover option." >&2;}
20395    { (exit 1); exit 1; }; } ;;
20396             esac
20397
20398 fi
20399
20400
20401
20402
20403 # Check whether --with-client-only was given.
20404 if test "${with_client_only+set}" = set; then
20405   withval=$with_client_only;    { { $as_echo "$as_me:$LINENO: error: --with-client-only is deprecated, use --without-server instead." >&5
20406 $as_echo "$as_me: error: --with-client-only is deprecated, use --without-server instead." >&2;}
20407    { (exit 1); exit 1; }; }
20408
20409 fi
20410
20411
20412
20413
20414 # Check whether --with-server-only was given.
20415 if test "${with_server_only+set}" = set; then
20416   withval=$with_server_only;    { { $as_echo "$as_me:$LINENO: error: --with-server-only is deprecated, use --without-client instead." >&5
20417 $as_echo "$as_me: error: --with-server-only is deprecated, use --without-client instead." >&2;}
20418    { (exit 1); exit 1; }; }
20419
20420 fi
20421
20422
20423
20424
20425
20426
20427
20428
20429     # detect invalid combinations of components
20430     if ! ${WANT_SERVER-true} && ${WANT_RESTORE-true}; then
20431         { { $as_echo "$as_me:$LINENO: error: --without-server requires --without-restore" >&5
20432 $as_echo "$as_me: error: --without-server requires --without-restore" >&2;}
20433    { (exit 1); exit 1; }; }
20434     fi
20435     if ! ${WANT_CLIENT-true} && ${WANT_RECOVER-true}; then
20436         { { $as_echo "$as_me:$LINENO: error: --without-client requires --without-amrecover" >&5
20437 $as_echo "$as_me: error: --without-client requires --without-amrecover" >&2;}
20438    { (exit 1); exit 1; }; }
20439     fi
20440
20441      if $WANT_CLIENT; then
20442   WANT_CLIENT_TRUE=
20443   WANT_CLIENT_FALSE='#'
20444 else
20445   WANT_CLIENT_TRUE='#'
20446   WANT_CLIENT_FALSE=
20447 fi
20448
20449      if $WANT_RESTORE; then
20450   WANT_RESTORE_TRUE=
20451   WANT_RESTORE_FALSE='#'
20452 else
20453   WANT_RESTORE_TRUE='#'
20454   WANT_RESTORE_FALSE=
20455 fi
20456
20457      if $WANT_SERVER; then
20458   WANT_SERVER_TRUE=
20459   WANT_SERVER_FALSE='#'
20460 else
20461   WANT_SERVER_TRUE='#'
20462   WANT_SERVER_FALSE=
20463 fi
20464
20465      if $WANT_RECOVER; then
20466   WANT_RECOVER_TRUE=
20467   WANT_RECOVER_FALSE='#'
20468 else
20469   WANT_RECOVER_TRUE='#'
20470   WANT_RECOVER_FALSE=
20471 fi
20472
20473
20474      if $WANT_SERVER || $WANT_RESTORE; then
20475   WANT_TAPE_TRUE=
20476   WANT_TAPE_FALSE='#'
20477 else
20478   WANT_TAPE_TRUE='#'
20479   WANT_TAPE_FALSE=
20480 fi
20481
20482
20483
20484     SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/sfw/bin:/usr/bsd:/etc:/usr/etc"
20485     # expand prefix or exec_prefix in LOCPATH
20486     LOCPATH=`(
20487         test "x$prefix" = xNONE && prefix=$ac_default_prefix
20488         test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
20489         eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
20490     )`
20491     SYSLOCPATH="$SYSPATH:$LOCPATH"
20492     LOCSYSPATH="$LOCPATH:$SYSPATH"
20493
20494
20495
20496
20497
20498 # Check whether --with-gnuplot was given.
20499 if test "${with_gnuplot+set}" = set; then
20500   withval=$with_gnuplot;
20501             case "$withval" in
20502                 y | ye | yes) : ;;
20503                 n | no) GNUPLOT=no ;;
20504                 *) GNUPLOT="$withval" ;;
20505             esac
20506
20507 fi
20508
20509     if test "x$GNUPLOT" = "xno"; then
20510         GNUPLOT=
20511     else
20512         # Extract the first word of "gnuplot", so it can be a program name with args.
20513 set dummy gnuplot; ac_word=$2
20514 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20515 $as_echo_n "checking for $ac_word... " >&6; }
20516 if test "${ac_cv_path_GNUPLOT+set}" = set; then
20517   $as_echo_n "(cached) " >&6
20518 else
20519   case $GNUPLOT in
20520   [\\/]* | ?:[\\/]*)
20521   ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
20522   ;;
20523   *)
20524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20525 for as_dir in $LOCSYSPATH
20526 do
20527   IFS=$as_save_IFS
20528   test -z "$as_dir" && as_dir=.
20529   for ac_exec_ext in '' $ac_executable_extensions; do
20530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20531     ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
20532     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20533     break 2
20534   fi
20535 done
20536 done
20537 IFS=$as_save_IFS
20538
20539   ;;
20540 esac
20541 fi
20542 GNUPLOT=$ac_cv_path_GNUPLOT
20543 if test -n "$GNUPLOT"; then
20544   { $as_echo "$as_me:$LINENO: result: $GNUPLOT" >&5
20545 $as_echo "$GNUPLOT" >&6; }
20546 else
20547   { $as_echo "$as_me:$LINENO: result: no" >&5
20548 $as_echo "no" >&6; }
20549 fi
20550
20551
20552     fi
20553
20554
20555
20556
20557
20558
20559     # Extract the first word of "pcat", so it can be a program name with args.
20560 set dummy pcat; ac_word=$2
20561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20562 $as_echo_n "checking for $ac_word... " >&6; }
20563 if test "${ac_cv_path_PCAT+set}" = set; then
20564   $as_echo_n "(cached) " >&6
20565 else
20566   case $PCAT in
20567   [\\/]* | ?:[\\/]*)
20568   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
20569   ;;
20570   *)
20571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20572 for as_dir in $LOCSYSPATH
20573 do
20574   IFS=$as_save_IFS
20575   test -z "$as_dir" && as_dir=.
20576   for ac_exec_ext in '' $ac_executable_extensions; do
20577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20578     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
20579     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20580     break 2
20581   fi
20582 done
20583 done
20584 IFS=$as_save_IFS
20585
20586   ;;
20587 esac
20588 fi
20589 PCAT=$ac_cv_path_PCAT
20590 if test -n "$PCAT"; then
20591   { $as_echo "$as_me:$LINENO: result: $PCAT" >&5
20592 $as_echo "$PCAT" >&6; }
20593 else
20594   { $as_echo "$as_me:$LINENO: result: no" >&5
20595 $as_echo "no" >&6; }
20596 fi
20597
20598
20599
20600
20601
20602     # Extract the first word of "compress", so it can be a program name with args.
20603 set dummy compress; ac_word=$2
20604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20605 $as_echo_n "checking for $ac_word... " >&6; }
20606 if test "${ac_cv_path_COMPRESS+set}" = set; then
20607   $as_echo_n "(cached) " >&6
20608 else
20609   case $COMPRESS in
20610   [\\/]* | ?:[\\/]*)
20611   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
20612   ;;
20613   *)
20614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20615 for as_dir in $LOCSYSPATH
20616 do
20617   IFS=$as_save_IFS
20618   test -z "$as_dir" && as_dir=.
20619   for ac_exec_ext in '' $ac_executable_extensions; do
20620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20621     ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
20622     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20623     break 2
20624   fi
20625 done
20626 done
20627 IFS=$as_save_IFS
20628
20629   ;;
20630 esac
20631 fi
20632 COMPRESS=$ac_cv_path_COMPRESS
20633 if test -n "$COMPRESS"; then
20634   { $as_echo "$as_me:$LINENO: result: $COMPRESS" >&5
20635 $as_echo "$COMPRESS" >&6; }
20636 else
20637   { $as_echo "$as_me:$LINENO: result: no" >&5
20638 $as_echo "no" >&6; }
20639 fi
20640
20641
20642
20643
20644
20645     # Extract the first word of "gzip", so it can be a program name with args.
20646 set dummy gzip; ac_word=$2
20647 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20648 $as_echo_n "checking for $ac_word... " >&6; }
20649 if test "${ac_cv_path_GZIP+set}" = set; then
20650   $as_echo_n "(cached) " >&6
20651 else
20652   case $GZIP in
20653   [\\/]* | ?:[\\/]*)
20654   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
20655   ;;
20656   *)
20657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20658 for as_dir in $LOCSYSPATH
20659 do
20660   IFS=$as_save_IFS
20661   test -z "$as_dir" && as_dir=.
20662   for ac_exec_ext in '' $ac_executable_extensions; do
20663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20664     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
20665     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20666     break 2
20667   fi
20668 done
20669 done
20670 IFS=$as_save_IFS
20671
20672   ;;
20673 esac
20674 fi
20675 GZIP=$ac_cv_path_GZIP
20676 if test -n "$GZIP"; then
20677   { $as_echo "$as_me:$LINENO: result: $GZIP" >&5
20678 $as_echo "$GZIP" >&6; }
20679 else
20680   { $as_echo "$as_me:$LINENO: result: no" >&5
20681 $as_echo "no" >&6; }
20682 fi
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693     if test "x$GNUPLOT" != "x"; then
20694         WANT_AMPLOT=true
20695
20696         # variable substitutions for amcat.awk
20697         if test "$PCAT"; then
20698             AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
20699         else
20700             AMPLOT_CAT_PACK=
20701         fi
20702         if test "$COMPRESS"; then
20703             AMPLOT_COMPRESS=$COMPRESS
20704             AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
20705         else
20706             AMPLOT_CAT_COMPRESS=
20707         fi
20708         if test "$GZIP"; then
20709             AMPLOT_COMPRESS=$GZIP
20710             AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
20711         else
20712             AMPLOT_CAT_GZIP=
20713         fi
20714
20715
20716
20717
20718
20719     else
20720         WANT_AMPLOT=false
20721
20722     { $as_echo "$as_me:$LINENO: WARNING: Not building 'amplot', because gnuplot was not found" >&5
20723 $as_echo "$as_me: WARNING: Not building 'amplot', because gnuplot was not found" >&2;}
20724
20725
20726     cat <<AAW_EOF >>config.warnings
20727 Not building 'amplot', because gnuplot was not found
20728 AAW_EOF
20729
20730
20731     fi
20732
20733      if test x"$WANT_AMPLOT" = x"true"; then
20734   WANT_AMPLOT_TRUE=
20735   WANT_AMPLOT_FALSE='#'
20736 else
20737   WANT_AMPLOT_TRUE='#'
20738   WANT_AMPLOT_FALSE=
20739 fi
20740
20741
20742
20743     # Check whether --enable-manpage-build was given.
20744 if test "${enable_manpage_build+set}" = set; then
20745   enableval=$enable_manpage_build;  ENABLE_MANPAGE_BUILD=$enableval
20746 else
20747    ENABLE_MANPAGE_BUILD=no
20748 fi
20749
20750
20751     # and ensure that everything docbook-related is OK if we'll be using it
20752     if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
20753         DOC_BUILD_DATE=`date '+%d-%m-%Y'`
20754
20755
20756 XSLTPROC_FLAGS="--nonet"
20757
20758
20759 # The (lack of) whitespace and overquoting here are all necessary for
20760 # proper formatting.
20761
20762 # Check whether --with-xsltproc was given.
20763 if test "${with_xsltproc+set}" = set; then
20764   withval=$with_xsltproc;  ac_with_xsltproc=$withval;
20765 else
20766    ac_with_xsltproc=maybe;
20767 fi
20768
20769
20770
20771 # Check whether --with-xsltproc-flags was given.
20772 if test "${with_xsltproc_flags+set}" = set; then
20773   withval=$with_xsltproc_flags;  if test "x$withval" == "xno"; then
20774         XSLTPROC_FLAGS=''
20775     else
20776         if test "x$withval" != "xyes"; then
20777             XSLTPROC_FLAGS="$withval"
20778         fi
20779     fi
20780
20781 fi
20782
20783
20784 # search for xsltproc if it wasn't specified
20785 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
20786     for ac_prog in xsltproc
20787 do
20788   # Extract the first word of "$ac_prog", so it can be a program name with args.
20789 set dummy $ac_prog; ac_word=$2
20790 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20791 $as_echo_n "checking for $ac_word... " >&6; }
20792 if test "${ac_cv_path_XSLTPROC+set}" = set; then
20793   $as_echo_n "(cached) " >&6
20794 else
20795   case $XSLTPROC in
20796   [\\/]* | ?:[\\/]*)
20797   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20798   ;;
20799   *)
20800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20801 for as_dir in $LOCSYSPATH
20802 do
20803   IFS=$as_save_IFS
20804   test -z "$as_dir" && as_dir=.
20805   for ac_exec_ext in '' $ac_executable_extensions; do
20806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20807     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
20808     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20809     break 2
20810   fi
20811 done
20812 done
20813 IFS=$as_save_IFS
20814
20815   ;;
20816 esac
20817 fi
20818 XSLTPROC=$ac_cv_path_XSLTPROC
20819 if test -n "$XSLTPROC"; then
20820   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
20821 $as_echo "$XSLTPROC" >&6; }
20822 else
20823   { $as_echo "$as_me:$LINENO: result: no" >&5
20824 $as_echo "no" >&6; }
20825 fi
20826
20827
20828   test -n "$XSLTPROC" && break
20829 done
20830
20831 else
20832     if test "$ac_with_xsltproc" != "no"; then
20833         if test -x "$ac_with_xsltproc"; then
20834             XSLTPROC="$ac_with_xsltproc";
20835         else
20836
20837     { $as_echo "$as_me:$LINENO: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&5
20838 $as_echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&2;}
20839
20840
20841     cat <<AAW_EOF >>config.warnings
20842 Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative.
20843 AAW_EOF
20844
20845
20846             for ac_prog in xsltproc
20847 do
20848   # Extract the first word of "$ac_prog", so it can be a program name with args.
20849 set dummy $ac_prog; ac_word=$2
20850 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20851 $as_echo_n "checking for $ac_word... " >&6; }
20852 if test "${ac_cv_path_XSLTPROC+set}" = set; then
20853   $as_echo_n "(cached) " >&6
20854 else
20855   case $XSLTPROC in
20856   [\\/]* | ?:[\\/]*)
20857   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20858   ;;
20859   *)
20860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20861 for as_dir in $LOCSYSPATH
20862 do
20863   IFS=$as_save_IFS
20864   test -z "$as_dir" && as_dir=.
20865   for ac_exec_ext in '' $ac_executable_extensions; do
20866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20867     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
20868     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20869     break 2
20870   fi
20871 done
20872 done
20873 IFS=$as_save_IFS
20874
20875   ;;
20876 esac
20877 fi
20878 XSLTPROC=$ac_cv_path_XSLTPROC
20879 if test -n "$XSLTPROC"; then
20880   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
20881 $as_echo "$XSLTPROC" >&6; }
20882 else
20883   { $as_echo "$as_me:$LINENO: result: no" >&5
20884 $as_echo "no" >&6; }
20885 fi
20886
20887
20888   test -n "$XSLTPROC" && break
20889 done
20890
20891         fi
20892     fi
20893 fi
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904     { $as_echo "$as_me:$LINENO: checking for Docbook XSLT version 1.72.0" >&5
20905 $as_echo_n "checking for Docbook XSLT version 1.72.0... " >&6; }
20906 if test "${ac_cv_docbook_xslt_1_72_0+set}" = set; then
20907   $as_echo_n "(cached) " >&6
20908 else
20909
20910         ac_cv_docbook_xslt_1_72_0=no
20911         if test -n "$XSLTPROC"; then
20912             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
20913             $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&5
20914
20915             if test "$?" = 0; then
20916                 ac_cv_docbook_xslt_1_72_0=yes
20917             fi
20918         fi
20919
20920 fi
20921 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_1_72_0" >&5
20922 $as_echo "$ac_cv_docbook_xslt_1_72_0" >&6; }
20923
20924     HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
20925     HAVE_DOCBOOK_XSLT="$HAVE_DOCBOOK_XSLT_1_72_0"
20926
20927
20928
20929
20930
20931
20932
20933
20934     { $as_echo "$as_me:$LINENO: checking for current Docbook XSLT version" >&5
20935 $as_echo_n "checking for current Docbook XSLT version... " >&6; }
20936 if test "${ac_cv_docbook_xslt_current_version+set}" = set; then
20937   $as_echo_n "(cached) " >&6
20938 else
20939
20940         ac_cv_docbook_xslt_current_version=no
20941
20942         if test -n "$XSLTPROC"; then
20943             cat >conftest.xsl <<EOF
20944                 <xsl:stylesheet
20945                     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
20946                     xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
20947                     version="1.0">
20948                     <xsl:output method="text"/>
20949                     <xsl:template match="fm:project/fm:Version">
20950                         <xsl:value-of select="." />
20951                     </xsl:template>
20952                     <!-- do nothing with any other text -->
20953                     <xsl:template match="text()"/>
20954                 </xsl:stylesheet>
20955 EOF
20956             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/VERSION' with input:" >&5
20957             echo "====" >&5
20958             cat conftest.xsl >&5
20959             echo "====" >&5
20960
20961             ac_cv_docbook_xslt_current_version=`$XSLTPROC $XSLTPROC_FLAGS conftest.xsl http://docbook.sourceforge.net/release/xsl/current/VERSION 2>&5`
20962
20963             if test "$?" != 0; then
20964                 ac_cv_docbook_xslt_current_version='no'
20965             fi
20966
20967             rm conftest.xsl
20968         fi
20969
20970 fi
20971 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_current_version" >&5
20972 $as_echo "$ac_cv_docbook_xslt_current_version" >&6; }
20973
20974     DOCBOOK_XSLT_CURRENT_VERSION="$ac_cv_docbook_xslt_current_version"
20975     { $as_echo "$as_me:$LINENO: checking whether Docbook XSLT version is 1.72.0 or newer" >&5
20976 $as_echo_n "checking whether Docbook XSLT version is 1.72.0 or newer... " >&6; }
20977
20978     if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
20979         { $as_echo "$as_me:$LINENO: result: no" >&5
20980 $as_echo "no" >&6; }
20981     else
20982
20983   # Used to indicate true or false condition
20984   ax_compare_version=false
20985
20986   # Convert the two version strings to be compared into a format that
20987   # allows a simple string comparison.  The end result is that a version
20988   # string of the form 1.12.5-r617 will be converted to the form
20989   # 0001001200050617.  In other words, each number is zero padded to four
20990   # digits, and non digits are removed.
20991
20992   ax_compare_version_A=`echo "$DOCBOOK_XSLT_CURRENT_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20993                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20994                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20995                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20996                      -e 's/[^0-9]//g'`
20997
20998
20999   ax_compare_version_B=`echo "1.72.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21000                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21001                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21002                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21003                      -e 's/[^0-9]//g'`
21004
21005
21006     ax_compare_version=`echo "x$ax_compare_version_A
21007 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
21008
21009
21010
21011     if test "$ax_compare_version" = "true" ; then
21012
21013             # version is less than required, so mark it as "no"
21014             DOCBOOK_XSLT_CURRENT_VERSION=no
21015
21016       fi
21017
21018
21019         if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
21020             { $as_echo "$as_me:$LINENO: result: no" >&5
21021 $as_echo "no" >&6; }
21022         else
21023             { $as_echo "$as_me:$LINENO: result: yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&5
21024 $as_echo "yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&6; }
21025         fi
21026     fi
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037     { $as_echo "$as_me:$LINENO: checking for Docbook DTD version 4.1.2" >&5
21038 $as_echo_n "checking for Docbook DTD version 4.1.2... " >&6; }
21039 if test "${ac_cv_docbook_dtd_4_1_2+set}" = set; then
21040   $as_echo_n "(cached) " >&6
21041 else
21042
21043         ac_cv_docbook_dtd_4_1_2=no
21044         if test -n "$XSLTPROC"; then
21045             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
21046             cat <<EOF >conftest.xml
21047 <?xml version="1.0" encoding='ISO-8859-1'?>
21048 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
21049 <book id="empty">
21050 </book>
21051 EOF
21052             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21053             echo "conftest.xml:" >&5
21054             echo "====" >&5
21055             cat conftest.xml >&5
21056             echo "====" >&5
21057
21058             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21059             if test "$?" = 0 -o "$?" = 5; then
21060                 # failing to load the DTD is just a warning, so check for it in the output.
21061                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21062                     : # no good..
21063                 else
21064                     ac_cv_docbook_dtd_4_1_2=yes
21065                 fi
21066             fi
21067             cat conftest.out >&5
21068
21069             rm -f conftest.xml conftest.out
21070         fi
21071
21072 fi
21073 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_1_2" >&5
21074 $as_echo "$ac_cv_docbook_dtd_4_1_2" >&6; }
21075
21076     HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
21077     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_1_2"
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092     { $as_echo "$as_me:$LINENO: checking for Docbook DTD version 4.2" >&5
21093 $as_echo_n "checking for Docbook DTD version 4.2... " >&6; }
21094 if test "${ac_cv_docbook_dtd_4_2+set}" = set; then
21095   $as_echo_n "(cached) " >&6
21096 else
21097
21098         ac_cv_docbook_dtd_4_2=no
21099         if test -n "$XSLTPROC"; then
21100             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
21101             cat <<EOF >conftest.xml
21102 <?xml version="1.0" encoding='ISO-8859-1'?>
21103 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
21104 <book id="empty">
21105 </book>
21106 EOF
21107             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21108             echo "conftest.xml:" >&5
21109             echo "====" >&5
21110             cat conftest.xml >&5
21111             echo "====" >&5
21112
21113             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21114             if test "$?" = 0 -o "$?" = 5; then
21115                 # failing to load the DTD is just a warning, so check for it in the output.
21116                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21117                     : # no good..
21118                 else
21119                     ac_cv_docbook_dtd_4_2=yes
21120                 fi
21121             fi
21122             cat conftest.out >&5
21123
21124             rm -f conftest.xml conftest.out
21125         fi
21126
21127 fi
21128 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_2" >&5
21129 $as_echo "$ac_cv_docbook_dtd_4_2" >&6; }
21130
21131     HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
21132     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_2"
21133
21134
21135
21136
21137
21138
21139         if test -z "$XSLTPROC"; then
21140             { { $as_echo "$as_me:$LINENO: error: Cannot build manpages: 'xsltproc' was not found." >&5
21141 $as_echo "$as_me: error: Cannot build manpages: 'xsltproc' was not found." >&2;}
21142    { (exit 1); exit 1; }; }
21143         fi
21144
21145         # if the 'current' Docbook revision is good enough, use that; otherwise,
21146         # if 1.72.0 is available, use that.
21147         XSLREL=current
21148         if test "x$DOCBOOK_XSLT_CURRENT_VERSION" = "xno"; then
21149             if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
21150                 { { $as_echo "$as_me:$LINENO: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&5
21151 $as_echo "$as_me: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&2;}
21152    { (exit 1); exit 1; }; }
21153             else
21154                 XSLREL=1.72.0
21155             fi
21156         fi
21157
21158         # disable validation if the correct DTDs are not available
21159         if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
21160
21161     { $as_echo "$as_me:$LINENO: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&5
21162 $as_echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
21163
21164
21165     cat <<AAW_EOF >>config.warnings
21166 Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation
21167 AAW_EOF
21168
21169
21170             XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
21171         fi
21172     fi
21173
21174      if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
21175   ENABLE_MANPAGE_BUILD_TRUE=
21176   ENABLE_MANPAGE_BUILD_FALSE='#'
21177 else
21178   ENABLE_MANPAGE_BUILD_TRUE='#'
21179   ENABLE_MANPAGE_BUILD_FALSE=
21180 fi
21181
21182
21183
21184
21185
21186     #allow configure CONFIG_CLOBBER_MY_CONFIG= to be used by make.
21187     CONFIG_CLOBBER_MY_CONFIG=$CLOBBER_MY_CONFIG
21188
21189
21190
21191 # Check whether --with-index-server was given.
21192 if test "${with_index_server+set}" = set; then
21193   withval=$with_index_server;
21194             case "$withval" in
21195             "" | y | ye | yes | n | no)
21196                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
21197 $as_echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
21198    { (exit 1); exit 1; }; }
21199               ;;
21200             *) DEFAULT_SERVER="$withval"
21201               ;;
21202             esac
21203
21204 else
21205   : ${DEFAULT_SERVER=`uname -n`}
21206
21207 fi
21208
21209
21210 cat >>confdefs.h <<_ACEOF
21211 #define DEFAULT_SERVER "$DEFAULT_SERVER"
21212 _ACEOF
21213
21214
21215
21216
21217 # Check whether --with-config was given.
21218 if test "${with_config+set}" = set; then
21219   withval=$with_config;
21220             case "$withval" in
21221             "" | y | ye | yes | n | no)
21222                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
21223 $as_echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
21224    { (exit 1); exit 1; }; }
21225               ;;
21226             *) DEFAULT_CONFIG="$withval"
21227               ;;
21228             esac
21229
21230 else
21231   : ${DEFAULT_CONFIG=DailySet1}
21232
21233 fi
21234
21235
21236 cat >>confdefs.h <<_ACEOF
21237 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
21238 _ACEOF
21239
21240
21241
21242
21243 # Check whether --with-tape-server was given.
21244 if test "${with_tape_server+set}" = set; then
21245   withval=$with_tape_server;
21246             case "$withval" in
21247             "" | y | ye | yes | n | no)
21248                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
21249 $as_echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
21250    { (exit 1); exit 1; }; }
21251               ;;
21252             *) DEFAULT_TAPE_SERVER="$withval"
21253               ;;
21254             esac
21255
21256 else
21257   : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
21258
21259 fi
21260
21261
21262 cat >>confdefs.h <<_ACEOF
21263 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
21264 _ACEOF
21265
21266
21267
21268
21269 # Check whether --with-tape-device was given.
21270 if test "${with_tape_device+set}" = set; then
21271   withval=$with_tape_device;
21272             case "$withval" in
21273             "" | y | ye | yes | n | no)
21274                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
21275 $as_echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
21276    { (exit 1); exit 1; }; }
21277               ;;
21278             *) DEFAULT_TAPE_DEVICE="$withval"
21279               ;;
21280             esac
21281
21282
21283 fi
21284
21285
21286
21287 cat >>confdefs.h <<_ACEOF
21288 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
21289 _ACEOF
21290
21291
21292
21293     if test "${DEFAULT_TAPE_DEVICE+set}" = "set"; then
21294         EXAMPLE_TAPEDEV="$DEFAULT_TAPE_DEVICE"
21295     else
21296         EXAMPLE_TAPEDEV="tape:/dev/YOUR-TAPE-DEVICE-HERE"
21297     fi
21298
21299
21300
21301 # Check whether --with-changer-device was given.
21302 if test "${with_changer_device+set}" = set; then
21303   withval=$with_changer_device;
21304             case "$withval" in
21305             "" | y | ye | yes | n | no)
21306                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-changer-device option." >&5
21307 $as_echo "$as_me: error: *** You must supply an argument to the --with-changer-device option." >&2;}
21308    { (exit 1); exit 1; }; }
21309               ;;
21310             *) DEFAULT_CHANGER_DEVICE="$withval"
21311               ;;
21312             esac
21313
21314
21315 fi
21316
21317
21318     if test -z "$DEFAULT_CHANGER_DEVICE"; then
21319         DEFAULT_CHANGER_DEVICE=/dev/null
21320         if test -f /dev/ch0; then
21321             DEFAULT_CHANGER_DEVICE=/dev/ch0
21322         fi
21323     fi
21324
21325
21326 cat >>confdefs.h <<_ACEOF
21327 #define DEFAULT_CHANGER_DEVICE "$DEFAULT_CHANGER_DEVICE"
21328 _ACEOF
21329
21330
21331
21332
21333 # Check whether --with-amandates was given.
21334 if test "${with_amandates+set}" = set; then
21335   withval=$with_amandates;
21336             case "$withval" in
21337                 n | no) { { $as_echo "$as_me:$LINENO: error: *** --without-amandates is not allowed." >&5
21338 $as_echo "$as_me: error: *** --without-amandates is not allowed." >&2;}
21339    { (exit 1); exit 1; }; };;
21340                 y |  ye | yes) amandates='$localstatedir/amanda/amandates' ;;
21341                 *) amandates="$withval";;
21342             esac
21343
21344 else
21345   amandates='$localstatedir/amanda/amandates'
21346
21347 fi
21348
21349
21350
21351   prefix_NONE=
21352   exec_prefix_NONE=
21353   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21354   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21355   eval ac_define_dir="\"$amandates\""
21356   eval ac_define_dir="\"$ac_define_dir\""
21357   DEFAULT_AMANDATES_FILE="$ac_define_dir"
21358
21359
21360 cat >>confdefs.h <<_ACEOF
21361 #define DEFAULT_AMANDATES_FILE "$ac_define_dir"
21362 _ACEOF
21363
21364   test "$prefix_NONE" && prefix=NONE
21365   test "$exec_prefix_NONE" && exec_prefix=NONE
21366
21367
21368     DEFAULT_FSF_AFTER_FILEMARK="FALSE"
21369     case "$target" in
21370         *-solaris*) DEFAULT_FSF_AFTER_FILEMARK="TRUE"
21371                     ;;
21372     esac
21373
21374 cat >>confdefs.h <<_ACEOF
21375 #define DEFAULT_FSF_AFTER_FILEMARK $DEFAULT_FSF_AFTER_FILEMARK
21376 _ACEOF
21377
21378
21379
21380
21381     # Extract the first word of "getconf", so it can be a program name with args.
21382 set dummy getconf; ac_word=$2
21383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21384 $as_echo_n "checking for $ac_word... " >&6; }
21385 if test "${ac_cv_path_GETCONF+set}" = set; then
21386   $as_echo_n "(cached) " >&6
21387 else
21388   case $GETCONF in
21389   [\\/]* | ?:[\\/]*)
21390   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
21391   ;;
21392   *)
21393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21394 for as_dir in $SYSPATH
21395 do
21396   IFS=$as_save_IFS
21397   test -z "$as_dir" && as_dir=.
21398   for ac_exec_ext in '' $ac_executable_extensions; do
21399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21400     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
21401     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21402     break 2
21403   fi
21404 done
21405 done
21406 IFS=$as_save_IFS
21407
21408   ;;
21409 esac
21410 fi
21411 GETCONF=$ac_cv_path_GETCONF
21412 if test -n "$GETCONF"; then
21413   { $as_echo "$as_me:$LINENO: result: $GETCONF" >&5
21414 $as_echo "$GETCONF" >&6; }
21415 else
21416   { $as_echo "$as_me:$LINENO: result: no" >&5
21417 $as_echo "no" >&6; }
21418 fi
21419
21420
21421
21422
21423
21424
21425
21426     # we use 'getconf', if it exists, to get the relevant
21427     # compiler flags.
21428     GETCONF_LFS="LFS"
21429     case "$target" in
21430         *-hp-*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21431         *-ibm-aix*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21432     esac
21433
21434     # Checks for compilers, typedefs, structures, and compiler characteristics.
21435     # Check for large file compilation environment.
21436     NEED_RESETOFS=yes
21437     { $as_echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
21438 $as_echo_n "checking for large file compilation CFLAGS... " >&6; }
21439 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
21440   $as_echo_n "(cached) " >&6
21441 else
21442
21443         amanda_cv_LFS_CFLAGS=
21444         if test "$GETCONF"; then
21445             if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
21446                 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
21447                 NEED_RESETOFS=no
21448             fi
21449         fi
21450
21451
21452 fi
21453 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
21454 $as_echo "$amanda_cv_LFS_CFLAGS" >&6; }
21455     CFLAGS="$CFLAGS $amanda_cv_LFS_CFLAGS"
21456
21457
21458     { $as_echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
21459 $as_echo_n "checking for large file compilation LDFLAGS... " >&6; }
21460 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
21461   $as_echo_n "(cached) " >&6
21462 else
21463
21464         amanda_cv_LFS_LDFLAGS=
21465         if test "$GETCONF"; then
21466             if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
21467                 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
21468                 NEED_RESETOFS=no
21469             fi
21470         fi
21471
21472
21473 fi
21474 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
21475 $as_echo "$amanda_cv_LFS_LDFLAGS" >&6; }
21476     LDFLAGS="$LDFLAGS $amanda_cv_LFS_LDFLAGS"
21477
21478
21479     { $as_echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
21480 $as_echo_n "checking for large file compilation LIBS... " >&6; }
21481 if test "${amanda_cv_LFS_LIBS+set}" = set; then
21482   $as_echo_n "(cached) " >&6
21483 else
21484
21485         amanda_cv_LFS_LIBS=
21486         if test "$GETCONF"; then
21487             if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
21488                 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
21489                 NEED_RESETOFS=no
21490             fi
21491         fi
21492
21493
21494 fi
21495 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
21496 $as_echo "$amanda_cv_LFS_LIBS" >&6; }
21497     LIBS="$amanda_cv_LFS_LIBS $LIBS"
21498
21499
21500     if test x"$NEED_RESETOFS" = x"yes"; then
21501
21502 cat >>confdefs.h <<\_ACEOF
21503 #define NEED_RESETOFS 1
21504 _ACEOF
21505
21506     fi
21507
21508
21509
21510     # Extract the first word of "chio", so it can be a program name with args.
21511 set dummy chio; ac_word=$2
21512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21513 $as_echo_n "checking for $ac_word... " >&6; }
21514 if test "${ac_cv_path_CHIO+set}" = set; then
21515   $as_echo_n "(cached) " >&6
21516 else
21517   case $CHIO in
21518   [\\/]* | ?:[\\/]*)
21519   ac_cv_path_CHIO="$CHIO" # Let the user override the test with a path.
21520   ;;
21521   *)
21522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21523 for as_dir in $LOCSYSPATH
21524 do
21525   IFS=$as_save_IFS
21526   test -z "$as_dir" && as_dir=.
21527   for ac_exec_ext in '' $ac_executable_extensions; do
21528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21529     ac_cv_path_CHIO="$as_dir/$ac_word$ac_exec_ext"
21530     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21531     break 2
21532   fi
21533 done
21534 done
21535 IFS=$as_save_IFS
21536
21537   test -z "$ac_cv_path_CHIO" && ac_cv_path_CHIO="chio"
21538   ;;
21539 esac
21540 fi
21541 CHIO=$ac_cv_path_CHIO
21542 if test -n "$CHIO"; then
21543   { $as_echo "$as_me:$LINENO: result: $CHIO" >&5
21544 $as_echo "$CHIO" >&6; }
21545 else
21546   { $as_echo "$as_me:$LINENO: result: no" >&5
21547 $as_echo "no" >&6; }
21548 fi
21549
21550
21551
21552
21553
21554     # Extract the first word of "chs", so it can be a program name with args.
21555 set dummy chs; ac_word=$2
21556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21557 $as_echo_n "checking for $ac_word... " >&6; }
21558 if test "${ac_cv_path_CHS+set}" = set; then
21559   $as_echo_n "(cached) " >&6
21560 else
21561   case $CHS in
21562   [\\/]* | ?:[\\/]*)
21563   ac_cv_path_CHS="$CHS" # Let the user override the test with a path.
21564   ;;
21565   *)
21566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21567 for as_dir in $LOCSYSPATH
21568 do
21569   IFS=$as_save_IFS
21570   test -z "$as_dir" && as_dir=.
21571   for ac_exec_ext in '' $ac_executable_extensions; do
21572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21573     ac_cv_path_CHS="$as_dir/$ac_word$ac_exec_ext"
21574     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21575     break 2
21576   fi
21577 done
21578 done
21579 IFS=$as_save_IFS
21580
21581   test -z "$ac_cv_path_CHS" && ac_cv_path_CHS="chs"
21582   ;;
21583 esac
21584 fi
21585 CHS=$ac_cv_path_CHS
21586 if test -n "$CHS"; then
21587   { $as_echo "$as_me:$LINENO: result: $CHS" >&5
21588 $as_echo "$CHS" >&6; }
21589 else
21590   { $as_echo "$as_me:$LINENO: result: no" >&5
21591 $as_echo "no" >&6; }
21592 fi
21593
21594
21595
21596
21597
21598     # Extract the first word of "mtx", so it can be a program name with args.
21599 set dummy mtx; ac_word=$2
21600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21601 $as_echo_n "checking for $ac_word... " >&6; }
21602 if test "${ac_cv_path_MTX+set}" = set; then
21603   $as_echo_n "(cached) " >&6
21604 else
21605   case $MTX in
21606   [\\/]* | ?:[\\/]*)
21607   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
21608   ;;
21609   *)
21610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21611 for as_dir in $LOCSYSPATH
21612 do
21613   IFS=$as_save_IFS
21614   test -z "$as_dir" && as_dir=.
21615   for ac_exec_ext in '' $ac_executable_extensions; do
21616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21617     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
21618     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21619     break 2
21620   fi
21621 done
21622 done
21623 IFS=$as_save_IFS
21624
21625   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
21626   ;;
21627 esac
21628 fi
21629 MTX=$ac_cv_path_MTX
21630 if test -n "$MTX"; then
21631   { $as_echo "$as_me:$LINENO: result: $MTX" >&5
21632 $as_echo "$MTX" >&6; }
21633 else
21634   { $as_echo "$as_me:$LINENO: result: no" >&5
21635 $as_echo "no" >&6; }
21636 fi
21637
21638
21639
21640
21641
21642     # Extract the first word of "mcutil", so it can be a program name with args.
21643 set dummy mcutil; ac_word=$2
21644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21645 $as_echo_n "checking for $ac_word... " >&6; }
21646 if test "${ac_cv_path_MCUTIL+set}" = set; then
21647   $as_echo_n "(cached) " >&6
21648 else
21649   case $MCUTIL in
21650   [\\/]* | ?:[\\/]*)
21651   ac_cv_path_MCUTIL="$MCUTIL" # Let the user override the test with a path.
21652   ;;
21653   *)
21654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21655 for as_dir in $LOCSYSPATH
21656 do
21657   IFS=$as_save_IFS
21658   test -z "$as_dir" && as_dir=.
21659   for ac_exec_ext in '' $ac_executable_extensions; do
21660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21661     ac_cv_path_MCUTIL="$as_dir/$ac_word$ac_exec_ext"
21662     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21663     break 2
21664   fi
21665 done
21666 done
21667 IFS=$as_save_IFS
21668
21669   test -z "$ac_cv_path_MCUTIL" && ac_cv_path_MCUTIL="mcutil"
21670   ;;
21671 esac
21672 fi
21673 MCUTIL=$ac_cv_path_MCUTIL
21674 if test -n "$MCUTIL"; then
21675   { $as_echo "$as_me:$LINENO: result: $MCUTIL" >&5
21676 $as_echo "$MCUTIL" >&6; }
21677 else
21678   { $as_echo "$as_me:$LINENO: result: no" >&5
21679 $as_echo "no" >&6; }
21680 fi
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704 for ac_header in \
21705         camlib.h \
21706         chio.h \
21707         linux/chio.h \
21708         scsi/sg.h \
21709         scsi/scsi_ioctl.h \
21710         sys/chio.h \
21711         sys/dsreq.h \
21712         sys/mtio.h \
21713         sys/scarray.h \
21714         sys/gscdds.h \
21715         sys/scsi.h \
21716         sys/scsiio.h \
21717         sys/scsi/impl/uscsi.h \
21718         sys/scsi/scsi/ioctl.h
21719 do
21720 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21721 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21722 $as_echo_n "checking for $ac_header... " >&6; }
21723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21724   $as_echo_n "(cached) " >&6
21725 else
21726   cat >conftest.$ac_ext <<_ACEOF
21727 /* confdefs.h.  */
21728 _ACEOF
21729 cat confdefs.h >>conftest.$ac_ext
21730 cat >>conftest.$ac_ext <<_ACEOF
21731 /* end confdefs.h.  */
21732 $ac_includes_default
21733
21734 #include <$ac_header>
21735 _ACEOF
21736 rm -f conftest.$ac_objext
21737 if { (ac_try="$ac_compile"
21738 case "(($ac_try" in
21739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21740   *) ac_try_echo=$ac_try;;
21741 esac
21742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21743 $as_echo "$ac_try_echo") >&5
21744   (eval "$ac_compile") 2>conftest.er1
21745   ac_status=$?
21746   grep -v '^ *+' conftest.er1 >conftest.err
21747   rm -f conftest.er1
21748   cat conftest.err >&5
21749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); } && {
21751          test -z "$ac_c_werror_flag" ||
21752          test ! -s conftest.err
21753        } && test -s conftest.$ac_objext; then
21754   eval "$as_ac_Header=yes"
21755 else
21756   $as_echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.$ac_ext >&5
21758
21759         eval "$as_ac_Header=no"
21760 fi
21761
21762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21763 fi
21764 ac_res=`eval 'as_val=${'$as_ac_Header'}
21765                  $as_echo "$as_val"'`
21766                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21767 $as_echo "$ac_res" >&6; }
21768 as_val=`eval 'as_val=${'$as_ac_Header'}
21769                  $as_echo "$as_val"'`
21770    if test "x$as_val" = x""yes; then
21771   cat >>confdefs.h <<_ACEOF
21772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21773 _ACEOF
21774  \
21775
21776 fi
21777
21778 done
21779
21780
21781     #
21782     # chio support
21783     #
21784     if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
21785         { $as_echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
21786 $as_echo_n "checking for HP/UX-like scsi changer support... " >&6; }
21787 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
21788   $as_echo_n "(cached) " >&6
21789 else
21790   cat >conftest.$ac_ext <<_ACEOF
21791 /* confdefs.h.  */
21792 _ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h.  */
21796
21797 #include <sys/scsi.h>
21798
21799 int
21800 main ()
21801 {
21802
21803             static struct element_addresses changer_info;
21804             int i = SIOC_ELEMENT_ADDRESSES;
21805             int j = SIOC_ELEMENT_STATUS;
21806             int k = SIOC_MOVE_MEDIUM;
21807
21808   ;
21809   return 0;
21810 }
21811 _ACEOF
21812 rm -f conftest.$ac_objext
21813 if { (ac_try="$ac_compile"
21814 case "(($ac_try" in
21815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21816   *) ac_try_echo=$ac_try;;
21817 esac
21818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21819 $as_echo "$ac_try_echo") >&5
21820   (eval "$ac_compile") 2>conftest.er1
21821   ac_status=$?
21822   grep -v '^ *+' conftest.er1 >conftest.err
21823   rm -f conftest.er1
21824   cat conftest.err >&5
21825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826   (exit $ac_status); } && {
21827          test -z "$ac_c_werror_flag" ||
21828          test ! -s conftest.err
21829        } && test -s conftest.$ac_objext; then
21830   amanda_cv_hpux_scsi_chio=yes
21831 else
21832   $as_echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21834
21835         amanda_cv_hpux_scsi_chio=no
21836 fi
21837
21838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21839 fi
21840 { $as_echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
21841 $as_echo "$amanda_cv_hpux_scsi_chio" >&6; }
21842         if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
21843             WANT_SCSI_HPUX=yes
21844             WANT_CHG_SCSI=yes
21845         fi
21846     fi
21847
21848     #
21849     # Linux SCSI based on ioctl
21850     #
21851     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
21852        test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
21853             { $as_echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
21854 $as_echo_n "checking for Linux like scsi support (ioctl)... " >&6; }
21855 if test "${amanda_cv_linux_scsi+set}" = set; then
21856   $as_echo_n "(cached) " >&6
21857 else
21858   cat >conftest.$ac_ext <<_ACEOF
21859 /* confdefs.h.  */
21860 _ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h.  */
21864
21865 #include <scsi/scsi_ioctl.h>
21866 #include <sys/mtio.h>
21867
21868 int
21869 main ()
21870 {
21871
21872             int device;
21873             char *Command;
21874             ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
21875
21876   ;
21877   return 0;
21878 }
21879 _ACEOF
21880 rm -f conftest.$ac_objext
21881 if { (ac_try="$ac_compile"
21882 case "(($ac_try" in
21883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21884   *) ac_try_echo=$ac_try;;
21885 esac
21886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21887 $as_echo "$ac_try_echo") >&5
21888   (eval "$ac_compile") 2>conftest.er1
21889   ac_status=$?
21890   grep -v '^ *+' conftest.er1 >conftest.err
21891   rm -f conftest.er1
21892   cat conftest.err >&5
21893   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894   (exit $ac_status); } && {
21895          test -z "$ac_c_werror_flag" ||
21896          test ! -s conftest.err
21897        } && test -s conftest.$ac_objext; then
21898   amanda_cv_linux_scsi=yes
21899 else
21900   $as_echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21902
21903         amanda_cv_linux_scsi=no
21904 fi
21905
21906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21907 fi
21908 { $as_echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
21909 $as_echo "$amanda_cv_linux_scsi" >&6; }
21910     fi
21911
21912     #
21913     # Linux SCSI based on sg
21914     #
21915     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
21916        test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
21917             { $as_echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
21918 $as_echo_n "checking for Linux like scsi support (sg)... " >&6; }
21919 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
21920   $as_echo_n "(cached) " >&6
21921 else
21922   cat >conftest.$ac_ext <<_ACEOF
21923 /* confdefs.h.  */
21924 _ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h.  */
21928
21929 #include <sys/types.h>
21930 #include <scsi/sg.h>
21931 #include <sys/mtio.h>
21932
21933 int
21934 main ()
21935 {
21936
21937             int device;
21938             struct sg_header *psg_header;
21939             char *buffer;
21940             write(device, buffer, 1);
21941
21942   ;
21943   return 0;
21944 }
21945 _ACEOF
21946 rm -f conftest.$ac_objext
21947 if { (ac_try="$ac_compile"
21948 case "(($ac_try" in
21949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21950   *) ac_try_echo=$ac_try;;
21951 esac
21952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21953 $as_echo "$ac_try_echo") >&5
21954   (eval "$ac_compile") 2>conftest.er1
21955   ac_status=$?
21956   grep -v '^ *+' conftest.er1 >conftest.err
21957   rm -f conftest.er1
21958   cat conftest.err >&5
21959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960   (exit $ac_status); } && {
21961          test -z "$ac_c_werror_flag" ||
21962          test ! -s conftest.err
21963        } && test -s conftest.$ac_objext; then
21964   amanda_cv_linux_sg_scsi=yes
21965 else
21966   $as_echo "$as_me: failed program was:" >&5
21967 sed 's/^/| /' conftest.$ac_ext >&5
21968
21969         amanda_cv_linux_sg_scsi=no
21970 fi
21971
21972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21973 fi
21974 { $as_echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
21975 $as_echo "$amanda_cv_linux_sg_scsi" >&6; }
21976     fi
21977
21978     if test x"$amanda_cv_linux_scsi" = x"yes" ||
21979      test x"$amanda_cv_linux_sg_scsi" = x"yes";then
21980             WANT_SCSI_LINUX=yes
21981             WANT_CHG_SCSI=yes
21982     fi
21983
21984     #
21985     # HP-UX SCSI
21986     #
21987     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
21988        test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
21989             { $as_echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
21990 $as_echo_n "checking for HP-UX like scsi support... " >&6; }
21991 if test "${amanda_cv_hpux_scsi+set}" = set; then
21992   $as_echo_n "(cached) " >&6
21993 else
21994   cat >conftest.$ac_ext <<_ACEOF
21995 /* confdefs.h.  */
21996 _ACEOF
21997 cat confdefs.h >>conftest.$ac_ext
21998 cat >>conftest.$ac_ext <<_ACEOF
21999 /* end confdefs.h.  */
22000
22001 #include <stdio.h>
22002 #include <sys/ioctl.h>
22003 #include <sys/scsi.h>
22004 #include <sys/mtio.h>
22005
22006 int
22007 main ()
22008 {
22009
22010             int device;
22011             char *Command;
22012             ioctl(device, SIOC_IO, Command);
22013
22014   ;
22015   return 0;
22016 }
22017 _ACEOF
22018 rm -f conftest.$ac_objext
22019 if { (ac_try="$ac_compile"
22020 case "(($ac_try" in
22021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22022   *) ac_try_echo=$ac_try;;
22023 esac
22024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22025 $as_echo "$ac_try_echo") >&5
22026   (eval "$ac_compile") 2>conftest.er1
22027   ac_status=$?
22028   grep -v '^ *+' conftest.er1 >conftest.err
22029   rm -f conftest.er1
22030   cat conftest.err >&5
22031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032   (exit $ac_status); } && {
22033          test -z "$ac_c_werror_flag" ||
22034          test ! -s conftest.err
22035        } && test -s conftest.$ac_objext; then
22036   amanda_cv_hpux_scsi=yes
22037 else
22038   $as_echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22040
22041         amanda_cv_hpux_scsi=no
22042 fi
22043
22044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22045 fi
22046 { $as_echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
22047 $as_echo "$amanda_cv_hpux_scsi" >&6; }
22048             if test x"$amanda_cv_hpux_scsi" = x"yes";then
22049                     WANT_SCSI_HPUX_NEW=yes
22050                     WANT_CHG_SCSI=yes
22051                     WANT_CHG_SCSI_CHIO=yes
22052             fi
22053     fi
22054
22055     #
22056     # IRIX SCSI
22057     #
22058     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
22059        test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
22060             { $as_echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
22061 $as_echo_n "checking for Irix like scsi support... " >&6; }
22062 if test "${amanda_cv_irix_scsi+set}" = set; then
22063   $as_echo_n "(cached) " >&6
22064 else
22065   cat >conftest.$ac_ext <<_ACEOF
22066 /* confdefs.h.  */
22067 _ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h.  */
22071
22072 #include <sys/types.h>
22073 #include <sys/dsreq.h>
22074 #include <sys/mtio.h>
22075
22076 int
22077 main ()
22078 {
22079
22080             int device=1;
22081             char Command;
22082             ioctl(device, DS_ENTER, &Command);
22083
22084   ;
22085   return 0;
22086 }
22087 _ACEOF
22088 rm -f conftest.$ac_objext
22089 if { (ac_try="$ac_compile"
22090 case "(($ac_try" in
22091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092   *) ac_try_echo=$ac_try;;
22093 esac
22094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22095 $as_echo "$ac_try_echo") >&5
22096   (eval "$ac_compile") 2>conftest.er1
22097   ac_status=$?
22098   grep -v '^ *+' conftest.er1 >conftest.err
22099   rm -f conftest.er1
22100   cat conftest.err >&5
22101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102   (exit $ac_status); } && {
22103          test -z "$ac_c_werror_flag" ||
22104          test ! -s conftest.err
22105        } && test -s conftest.$ac_objext; then
22106   amanda_cv_irix_scsi=yes
22107 else
22108   $as_echo "$as_me: failed program was:" >&5
22109 sed 's/^/| /' conftest.$ac_ext >&5
22110
22111         amanda_cv_irix_scsi=no
22112 fi
22113
22114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22115 fi
22116 { $as_echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
22117 $as_echo "$amanda_cv_irix_scsi" >&6; }
22118             if test x"$amanda_cv_irix_scsi" = x"yes";then
22119                     WANT_SCSI_IRIX=yes
22120                     WANT_CHG_SCSI=yes
22121             fi
22122     fi
22123
22124     #
22125     # Solaris  SCSI
22126     #
22127     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
22128        test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
22129             { $as_echo "$as_me:$LINENO: checking for Solaris-like scsi support" >&5
22130 $as_echo_n "checking for Solaris-like scsi support... " >&6; }
22131 if test "${amanda_cv_solaris_scsi+set}" = set; then
22132   $as_echo_n "(cached) " >&6
22133 else
22134   cat >conftest.$ac_ext <<_ACEOF
22135 /* confdefs.h.  */
22136 _ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h.  */
22140
22141 #include <sys/types.h>
22142 #include <sys/scsi/impl/uscsi.h>
22143 #include <sys/mtio.h>
22144
22145 int
22146 main ()
22147 {
22148
22149             int device;
22150             char *Command;
22151             ioctl(device, USCSICMD, Command);
22152
22153   ;
22154   return 0;
22155 }
22156 _ACEOF
22157 rm -f conftest.$ac_objext
22158 if { (ac_try="$ac_compile"
22159 case "(($ac_try" in
22160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161   *) ac_try_echo=$ac_try;;
22162 esac
22163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22164 $as_echo "$ac_try_echo") >&5
22165   (eval "$ac_compile") 2>conftest.er1
22166   ac_status=$?
22167   grep -v '^ *+' conftest.er1 >conftest.err
22168   rm -f conftest.er1
22169   cat conftest.err >&5
22170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171   (exit $ac_status); } && {
22172          test -z "$ac_c_werror_flag" ||
22173          test ! -s conftest.err
22174        } && test -s conftest.$ac_objext; then
22175   amanda_cv_solaris_scsi=yes
22176 else
22177   $as_echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22179
22180         amanda_cv_solaris_scsi=no
22181 fi
22182
22183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22184 fi
22185 { $as_echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
22186 $as_echo "$amanda_cv_solaris_scsi" >&6; }
22187             if test x"$amanda_cv_solaris_scsi" = x"yes";then
22188                     WANT_SCSI_SOLARIS=yes
22189                     WANT_CHG_SCSI=yes
22190             fi
22191     fi
22192
22193     #
22194     # AIX SCSI
22195     #
22196     if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
22197        test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
22198        test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
22199             { $as_echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
22200 $as_echo_n "checking for AIX like scsi support... " >&6; }
22201 if test "${amanda_cv_aix_scsi+set}" = set; then
22202   $as_echo_n "(cached) " >&6
22203 else
22204   cat >conftest.$ac_ext <<_ACEOF
22205 /* confdefs.h.  */
22206 _ACEOF
22207 cat confdefs.h >>conftest.$ac_ext
22208 cat >>conftest.$ac_ext <<_ACEOF
22209 /* end confdefs.h.  */
22210
22211 #include <sys/types.h>
22212 #include <sys/scarray.h>
22213 #include <sys/tape.h>
22214
22215 int
22216 main ()
22217 {
22218
22219             int device;
22220             char *Command;
22221             ioctl(device, STIOCMD, Command);
22222
22223   ;
22224   return 0;
22225 }
22226 _ACEOF
22227 rm -f conftest.$ac_objext
22228 if { (ac_try="$ac_compile"
22229 case "(($ac_try" in
22230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231   *) ac_try_echo=$ac_try;;
22232 esac
22233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22234 $as_echo "$ac_try_echo") >&5
22235   (eval "$ac_compile") 2>conftest.er1
22236   ac_status=$?
22237   grep -v '^ *+' conftest.er1 >conftest.err
22238   rm -f conftest.er1
22239   cat conftest.err >&5
22240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241   (exit $ac_status); } && {
22242          test -z "$ac_c_werror_flag" ||
22243          test ! -s conftest.err
22244        } && test -s conftest.$ac_objext; then
22245   amanda_cv_aix_scsi=yes
22246 else
22247   $as_echo "$as_me: failed program was:" >&5
22248 sed 's/^/| /' conftest.$ac_ext >&5
22249
22250         amanda_cv_aix_scsi=no
22251 fi
22252
22253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22254 fi
22255 { $as_echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
22256 $as_echo "$amanda_cv_aix_scsi" >&6; }
22257             if test x"$amanda_cv_aix_scsi" = x"yes";then
22258                     WANT_SCSI_AIX=yes
22259                     WANT_CHG_SCSI=yes
22260             fi
22261     fi
22262     #
22263     # BSD CAM SCSI
22264     #
22265     if test x"$ac_cv_header_cam_cam_h" = x"yes";then
22266             { $as_echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
22267 $as_echo_n "checking for CAM like scsi support... " >&6; }
22268 if test "${amanda_cv_cam_scsi+set}" = set; then
22269   $as_echo_n "(cached) " >&6
22270 else
22271   cat >conftest.$ac_ext <<_ACEOF
22272 /* confdefs.h.  */
22273 _ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h.  */
22277
22278 #include <stdio.h>
22279 # include <fcntl.h>
22280 # include <cam/cam.h>
22281 # include <cam/cam_ccb.h>
22282 # include <cam/scsi/scsi_message.h>
22283 # include <cam/scsi/scsi_pass.h>
22284 # include <camlib.h>
22285
22286 int
22287 main ()
22288 {
22289
22290             struct cam_device *curdev;
22291
22292             curdev = cam_open_pass("", O_RDWR, NULL);
22293
22294   ;
22295   return 0;
22296 }
22297 _ACEOF
22298 rm -f conftest.$ac_objext
22299 if { (ac_try="$ac_compile"
22300 case "(($ac_try" in
22301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22302   *) ac_try_echo=$ac_try;;
22303 esac
22304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22305 $as_echo "$ac_try_echo") >&5
22306   (eval "$ac_compile") 2>conftest.er1
22307   ac_status=$?
22308   grep -v '^ *+' conftest.er1 >conftest.err
22309   rm -f conftest.er1
22310   cat conftest.err >&5
22311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312   (exit $ac_status); } && {
22313          test -z "$ac_c_werror_flag" ||
22314          test ! -s conftest.err
22315        } && test -s conftest.$ac_objext; then
22316   amanda_cv_cam_scsi=yes
22317 else
22318   $as_echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22320
22321         amanda_cv_cam_scsi=no
22322 fi
22323
22324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22325 fi
22326 { $as_echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
22327 $as_echo "$amanda_cv_cam_scsi" >&6; }
22328             if test x"$amanda_cv_cam_scsi" = x"yes";then
22329                     WANT_SCSI_CAM=yes
22330                     WANT_CHG_SCSI=yes
22331
22332 { $as_echo "$as_me:$LINENO: checking for main in -lcam" >&5
22333 $as_echo_n "checking for main in -lcam... " >&6; }
22334 if test "${ac_cv_lib_cam_main+set}" = set; then
22335   $as_echo_n "(cached) " >&6
22336 else
22337   ac_check_lib_save_LIBS=$LIBS
22338 LIBS="-lcam  $LIBS"
22339 cat >conftest.$ac_ext <<_ACEOF
22340 /* confdefs.h.  */
22341 _ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h.  */
22345
22346
22347 int
22348 main ()
22349 {
22350 return main ();
22351   ;
22352   return 0;
22353 }
22354 _ACEOF
22355 rm -f conftest.$ac_objext conftest$ac_exeext
22356 if { (ac_try="$ac_link"
22357 case "(($ac_try" in
22358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22359   *) ac_try_echo=$ac_try;;
22360 esac
22361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22362 $as_echo "$ac_try_echo") >&5
22363   (eval "$ac_link") 2>conftest.er1
22364   ac_status=$?
22365   grep -v '^ *+' conftest.er1 >conftest.err
22366   rm -f conftest.er1
22367   cat conftest.err >&5
22368   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369   (exit $ac_status); } && {
22370          test -z "$ac_c_werror_flag" ||
22371          test ! -s conftest.err
22372        } && test -s conftest$ac_exeext && {
22373          test "$cross_compiling" = yes ||
22374          $as_test_x conftest$ac_exeext
22375        }; then
22376   ac_cv_lib_cam_main=yes
22377 else
22378   $as_echo "$as_me: failed program was:" >&5
22379 sed 's/^/| /' conftest.$ac_ext >&5
22380
22381         ac_cv_lib_cam_main=no
22382 fi
22383
22384 rm -rf conftest.dSYM
22385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22386       conftest$ac_exeext conftest.$ac_ext
22387 LIBS=$ac_check_lib_save_LIBS
22388 fi
22389 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
22390 $as_echo "$ac_cv_lib_cam_main" >&6; }
22391 if test "x$ac_cv_lib_cam_main" = x""yes; then
22392   cat >>confdefs.h <<_ACEOF
22393 #define HAVE_LIBCAM 1
22394 _ACEOF
22395
22396   LIBS="-lcam $LIBS"
22397
22398 fi
22399
22400             fi
22401     fi
22402
22403
22404     #
22405     # BSD SCSI
22406     #
22407     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
22408        test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
22409         { $as_echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
22410 $as_echo_n "checking for BSD like scsi support... " >&6; }
22411 if test "${amanda_cv_bsd_scsi+set}" = set; then
22412   $as_echo_n "(cached) " >&6
22413 else
22414   cat >conftest.$ac_ext <<_ACEOF
22415 /* confdefs.h.  */
22416 _ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h.  */
22420
22421 #include <sys/types.h>
22422 #include <sys/scsiio.h>
22423 #include <sys/mtio.h>
22424
22425 int
22426 main ()
22427 {
22428
22429         int device=1;
22430         char Command;
22431         ioctl(device, SCIOCCOMMAND, &Command);
22432
22433   ;
22434   return 0;
22435 }
22436 _ACEOF
22437 rm -f conftest.$ac_objext
22438 if { (ac_try="$ac_compile"
22439 case "(($ac_try" in
22440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22441   *) ac_try_echo=$ac_try;;
22442 esac
22443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22444 $as_echo "$ac_try_echo") >&5
22445   (eval "$ac_compile") 2>conftest.er1
22446   ac_status=$?
22447   grep -v '^ *+' conftest.er1 >conftest.err
22448   rm -f conftest.er1
22449   cat conftest.err >&5
22450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451   (exit $ac_status); } && {
22452          test -z "$ac_c_werror_flag" ||
22453          test ! -s conftest.err
22454        } && test -s conftest.$ac_objext; then
22455   amanda_cv_bsd_scsi=yes
22456 else
22457   $as_echo "$as_me: failed program was:" >&5
22458 sed 's/^/| /' conftest.$ac_ext >&5
22459
22460         amanda_cv_bsd_scsi=no
22461 fi
22462
22463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22464 fi
22465 { $as_echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
22466 $as_echo "$amanda_cv_bsd_scsi" >&6; }
22467         if test x"$amanda_cv_bsd_scsi" = x"yes";then
22468            WANT_SCSI_BSD=yes
22469            WANT_CHG_SCSI=yes
22470         fi
22471     fi
22472
22473     # Do not build chg-scsi-chio if we cannot find the needed support
22474     # include files for the SCSI interfaces
22475     # chio.h and sys/chio.h are chio based systems
22476     if test x"$ac_cv_header_chio_h" = x"yes" ||
22477        test x"$ac_cv_header_linux_chio_h" = x"yes" ||
22478        test x"$ac_cv_header_sys_chio_h" = x"yes"; then
22479        # chg-scsi does not support FreeBSD 3.0's chio.h; it became backward
22480        # incompatible with the introduction of camlib.h
22481        if test x"$ac_cv_header_camlib_h" != x"yes"; then
22482          WANT_SCSI_CHIO=yes
22483          # prefer to use chg-scsi, unless we already have a driver for that,
22484          # in which case set it up as chg-scsi-chio.
22485          if test x"$WANT_CHG_SCSI" = x"no"; then
22486            WANT_CHG_SCSI=yes
22487          else
22488            WANT_CHG_SCSI_CHIO=yes
22489          fi
22490        fi
22491     fi
22492
22493     # scsi-based implementations
22494      if test x"$WANT_CHG_SCSI" = x"yes"; then
22495   WANT_CHG_SCSI_TRUE=
22496   WANT_CHG_SCSI_FALSE='#'
22497 else
22498   WANT_CHG_SCSI_TRUE='#'
22499   WANT_CHG_SCSI_FALSE=
22500 fi
22501
22502      if test x"$WANT_SCSI_LINUX" = x"yes"; then
22503   WANT_SCSI_LINUX_TRUE=
22504   WANT_SCSI_LINUX_FALSE='#'
22505 else
22506   WANT_SCSI_LINUX_TRUE='#'
22507   WANT_SCSI_LINUX_FALSE=
22508 fi
22509
22510      if test x"$WANT_SCSI_HPUX_NEW" = x"yes"; then
22511   WANT_SCSI_HPUX_NEW_TRUE=
22512   WANT_SCSI_HPUX_NEW_FALSE='#'
22513 else
22514   WANT_SCSI_HPUX_NEW_TRUE='#'
22515   WANT_SCSI_HPUX_NEW_FALSE=
22516 fi
22517
22518      if test x"$WANT_SCSI_IRIX" = x"yes"; then
22519   WANT_SCSI_IRIX_TRUE=
22520   WANT_SCSI_IRIX_FALSE='#'
22521 else
22522   WANT_SCSI_IRIX_TRUE='#'
22523   WANT_SCSI_IRIX_FALSE=
22524 fi
22525
22526      if test x"$WANT_SCSI_SOLARIS" = x"yes"; then
22527   WANT_SCSI_SOLARIS_TRUE=
22528   WANT_SCSI_SOLARIS_FALSE='#'
22529 else
22530   WANT_SCSI_SOLARIS_TRUE='#'
22531   WANT_SCSI_SOLARIS_FALSE=
22532 fi
22533
22534      if test x"$WANT_SCSI_AIX" = x"yes"; then
22535   WANT_SCSI_AIX_TRUE=
22536   WANT_SCSI_AIX_FALSE='#'
22537 else
22538   WANT_SCSI_AIX_TRUE='#'
22539   WANT_SCSI_AIX_FALSE=
22540 fi
22541
22542      if test x"$WANT_SCSI_CAM" = x"yes"; then
22543   WANT_SCSI_CAM_TRUE=
22544   WANT_SCSI_CAM_FALSE='#'
22545 else
22546   WANT_SCSI_CAM_TRUE='#'
22547   WANT_SCSI_CAM_FALSE=
22548 fi
22549
22550      if test x"$WANT_SCSI_BSD" = x"yes"; then
22551   WANT_SCSI_BSD_TRUE=
22552   WANT_SCSI_BSD_FALSE='#'
22553 else
22554   WANT_SCSI_BSD_TRUE='#'
22555   WANT_SCSI_BSD_FALSE=
22556 fi
22557
22558
22559     # scsi-chio-based implementations
22560      if test x"$WANT_CHG_SCSI_CHIO" = x"yes"; then
22561   WANT_CHG_SCSI_CHIO_TRUE=
22562   WANT_CHG_SCSI_CHIO_FALSE='#'
22563 else
22564   WANT_CHG_SCSI_CHIO_TRUE='#'
22565   WANT_CHG_SCSI_CHIO_FALSE=
22566 fi
22567
22568      if test x"$WANT_SCSI_HPUX" = x"yes"; then
22569   WANT_SCSI_HPUX_TRUE=
22570   WANT_SCSI_HPUX_FALSE='#'
22571 else
22572   WANT_SCSI_HPUX_TRUE='#'
22573   WANT_SCSI_HPUX_FALSE=
22574 fi
22575
22576      if test x"$WANT_SCSI_CHIO" = x"yes"; then
22577   WANT_SCSI_CHIO_TRUE=
22578   WANT_SCSI_CHIO_FALSE='#'
22579 else
22580   WANT_SCSI_CHIO_TRUE='#'
22581   WANT_SCSI_CHIO_FALSE=
22582 fi
22583
22584
22585
22586
22587
22588
22589
22590 for ac_header in fstab.h \
22591         mntent.h \
22592         mnttab.h \
22593         sys/vfstab.h \
22594
22595 do
22596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22598   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22599 $as_echo_n "checking for $ac_header... " >&6; }
22600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22601   $as_echo_n "(cached) " >&6
22602 fi
22603 ac_res=`eval 'as_val=${'$as_ac_Header'}
22604                  $as_echo "$as_val"'`
22605                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22606 $as_echo "$ac_res" >&6; }
22607 else
22608   # Is the header compilable?
22609 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22610 $as_echo_n "checking $ac_header usability... " >&6; }
22611 cat >conftest.$ac_ext <<_ACEOF
22612 /* confdefs.h.  */
22613 _ACEOF
22614 cat confdefs.h >>conftest.$ac_ext
22615 cat >>conftest.$ac_ext <<_ACEOF
22616 /* end confdefs.h.  */
22617 $ac_includes_default
22618 #include <$ac_header>
22619 _ACEOF
22620 rm -f conftest.$ac_objext
22621 if { (ac_try="$ac_compile"
22622 case "(($ac_try" in
22623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22624   *) ac_try_echo=$ac_try;;
22625 esac
22626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22627 $as_echo "$ac_try_echo") >&5
22628   (eval "$ac_compile") 2>conftest.er1
22629   ac_status=$?
22630   grep -v '^ *+' conftest.er1 >conftest.err
22631   rm -f conftest.er1
22632   cat conftest.err >&5
22633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634   (exit $ac_status); } && {
22635          test -z "$ac_c_werror_flag" ||
22636          test ! -s conftest.err
22637        } && test -s conftest.$ac_objext; then
22638   ac_header_compiler=yes
22639 else
22640   $as_echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22642
22643         ac_header_compiler=no
22644 fi
22645
22646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22647 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22648 $as_echo "$ac_header_compiler" >&6; }
22649
22650 # Is the header present?
22651 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22652 $as_echo_n "checking $ac_header presence... " >&6; }
22653 cat >conftest.$ac_ext <<_ACEOF
22654 /* confdefs.h.  */
22655 _ACEOF
22656 cat confdefs.h >>conftest.$ac_ext
22657 cat >>conftest.$ac_ext <<_ACEOF
22658 /* end confdefs.h.  */
22659 #include <$ac_header>
22660 _ACEOF
22661 if { (ac_try="$ac_cpp conftest.$ac_ext"
22662 case "(($ac_try" in
22663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22664   *) ac_try_echo=$ac_try;;
22665 esac
22666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22667 $as_echo "$ac_try_echo") >&5
22668   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22669   ac_status=$?
22670   grep -v '^ *+' conftest.er1 >conftest.err
22671   rm -f conftest.er1
22672   cat conftest.err >&5
22673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674   (exit $ac_status); } >/dev/null && {
22675          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22676          test ! -s conftest.err
22677        }; then
22678   ac_header_preproc=yes
22679 else
22680   $as_echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22682
22683   ac_header_preproc=no
22684 fi
22685
22686 rm -f conftest.err conftest.$ac_ext
22687 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22688 $as_echo "$ac_header_preproc" >&6; }
22689
22690 # So?  What about this header?
22691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22692   yes:no: )
22693     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22694 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22695     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22696 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22697     ac_header_preproc=yes
22698     ;;
22699   no:yes:* )
22700     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22701 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22702     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22703 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22704     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22705 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22706     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22707 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22708     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22709 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22710     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22711 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22712
22713     ;;
22714 esac
22715 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22716 $as_echo_n "checking for $ac_header... " >&6; }
22717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22718   $as_echo_n "(cached) " >&6
22719 else
22720   eval "$as_ac_Header=\$ac_header_preproc"
22721 fi
22722 ac_res=`eval 'as_val=${'$as_ac_Header'}
22723                  $as_echo "$as_val"'`
22724                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22725 $as_echo "$ac_res" >&6; }
22726
22727 fi
22728 as_val=`eval 'as_val=${'$as_ac_Header'}
22729                  $as_echo "$as_val"'`
22730    if test "x$as_val" = x""yes; then
22731   cat >>confdefs.h <<_ACEOF
22732 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22733 _ACEOF
22734
22735 fi
22736
22737 done
22738
22739
22740
22741 for ac_func in endmntent
22742 do
22743 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22744 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22745 $as_echo_n "checking for $ac_func... " >&6; }
22746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22747   $as_echo_n "(cached) " >&6
22748 else
22749   cat >conftest.$ac_ext <<_ACEOF
22750 /* confdefs.h.  */
22751 _ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h.  */
22755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22757 #define $ac_func innocuous_$ac_func
22758
22759 /* System header to define __stub macros and hopefully few prototypes,
22760     which can conflict with char $ac_func (); below.
22761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22762     <limits.h> exists even on freestanding compilers.  */
22763
22764 #ifdef __STDC__
22765 # include <limits.h>
22766 #else
22767 # include <assert.h>
22768 #endif
22769
22770 #undef $ac_func
22771
22772 /* Override any GCC internal prototype to avoid an error.
22773    Use char because int might match the return type of a GCC
22774    builtin and then its argument prototype would still apply.  */
22775 #ifdef __cplusplus
22776 extern "C"
22777 #endif
22778 char $ac_func ();
22779 /* The GNU C library defines this for functions which it implements
22780     to always fail with ENOSYS.  Some functions are actually named
22781     something starting with __ and the normal name is an alias.  */
22782 #if defined __stub_$ac_func || defined __stub___$ac_func
22783 choke me
22784 #endif
22785
22786 int
22787 main ()
22788 {
22789 return $ac_func ();
22790   ;
22791   return 0;
22792 }
22793 _ACEOF
22794 rm -f conftest.$ac_objext conftest$ac_exeext
22795 if { (ac_try="$ac_link"
22796 case "(($ac_try" in
22797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22798   *) ac_try_echo=$ac_try;;
22799 esac
22800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22801 $as_echo "$ac_try_echo") >&5
22802   (eval "$ac_link") 2>conftest.er1
22803   ac_status=$?
22804   grep -v '^ *+' conftest.er1 >conftest.err
22805   rm -f conftest.er1
22806   cat conftest.err >&5
22807   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808   (exit $ac_status); } && {
22809          test -z "$ac_c_werror_flag" ||
22810          test ! -s conftest.err
22811        } && test -s conftest$ac_exeext && {
22812          test "$cross_compiling" = yes ||
22813          $as_test_x conftest$ac_exeext
22814        }; then
22815   eval "$as_ac_var=yes"
22816 else
22817   $as_echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22819
22820         eval "$as_ac_var=no"
22821 fi
22822
22823 rm -rf conftest.dSYM
22824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22825       conftest$ac_exeext conftest.$ac_ext
22826 fi
22827 ac_res=`eval 'as_val=${'$as_ac_var'}
22828                  $as_echo "$as_val"'`
22829                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22830 $as_echo "$ac_res" >&6; }
22831 as_val=`eval 'as_val=${'$as_ac_var'}
22832                  $as_echo "$as_val"'`
22833    if test "x$as_val" = x""yes; then
22834   cat >>confdefs.h <<_ACEOF
22835 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22836 _ACEOF
22837
22838 fi
22839 done
22840
22841
22842 for ac_func in setmntent
22843 do
22844 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22845 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22846 $as_echo_n "checking for $ac_func... " >&6; }
22847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22848   $as_echo_n "(cached) " >&6
22849 else
22850   cat >conftest.$ac_ext <<_ACEOF
22851 /* confdefs.h.  */
22852 _ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h.  */
22856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22858 #define $ac_func innocuous_$ac_func
22859
22860 /* System header to define __stub macros and hopefully few prototypes,
22861     which can conflict with char $ac_func (); below.
22862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22863     <limits.h> exists even on freestanding compilers.  */
22864
22865 #ifdef __STDC__
22866 # include <limits.h>
22867 #else
22868 # include <assert.h>
22869 #endif
22870
22871 #undef $ac_func
22872
22873 /* Override any GCC internal prototype to avoid an error.
22874    Use char because int might match the return type of a GCC
22875    builtin and then its argument prototype would still apply.  */
22876 #ifdef __cplusplus
22877 extern "C"
22878 #endif
22879 char $ac_func ();
22880 /* The GNU C library defines this for functions which it implements
22881     to always fail with ENOSYS.  Some functions are actually named
22882     something starting with __ and the normal name is an alias.  */
22883 #if defined __stub_$ac_func || defined __stub___$ac_func
22884 choke me
22885 #endif
22886
22887 int
22888 main ()
22889 {
22890 return $ac_func ();
22891   ;
22892   return 0;
22893 }
22894 _ACEOF
22895 rm -f conftest.$ac_objext conftest$ac_exeext
22896 if { (ac_try="$ac_link"
22897 case "(($ac_try" in
22898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22899   *) ac_try_echo=$ac_try;;
22900 esac
22901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22902 $as_echo "$ac_try_echo") >&5
22903   (eval "$ac_link") 2>conftest.er1
22904   ac_status=$?
22905   grep -v '^ *+' conftest.er1 >conftest.err
22906   rm -f conftest.er1
22907   cat conftest.err >&5
22908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909   (exit $ac_status); } && {
22910          test -z "$ac_c_werror_flag" ||
22911          test ! -s conftest.err
22912        } && test -s conftest$ac_exeext && {
22913          test "$cross_compiling" = yes ||
22914          $as_test_x conftest$ac_exeext
22915        }; then
22916   eval "$as_ac_var=yes"
22917 else
22918   $as_echo "$as_me: failed program was:" >&5
22919 sed 's/^/| /' conftest.$ac_ext >&5
22920
22921         eval "$as_ac_var=no"
22922 fi
22923
22924 rm -rf conftest.dSYM
22925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22926       conftest$ac_exeext conftest.$ac_ext
22927 fi
22928 ac_res=`eval 'as_val=${'$as_ac_var'}
22929                  $as_echo "$as_val"'`
22930                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22931 $as_echo "$ac_res" >&6; }
22932 as_val=`eval 'as_val=${'$as_ac_var'}
22933                  $as_echo "$as_val"'`
22934    if test "x$as_val" = x""yes; then
22935   cat >>confdefs.h <<_ACEOF
22936 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22937 _ACEOF
22938
22939 fi
22940 done
22941
22942
22943
22944
22945
22946
22947
22948
22949 for ac_header in fcntl.h \
22950         sys/fcntl.h \
22951         sys/types.h \
22952         sys/file.h \
22953         unistd.h \
22954
22955 do
22956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22958   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22959 $as_echo_n "checking for $ac_header... " >&6; }
22960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22961   $as_echo_n "(cached) " >&6
22962 fi
22963 ac_res=`eval 'as_val=${'$as_ac_Header'}
22964                  $as_echo "$as_val"'`
22965                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22966 $as_echo "$ac_res" >&6; }
22967 else
22968   # Is the header compilable?
22969 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22970 $as_echo_n "checking $ac_header usability... " >&6; }
22971 cat >conftest.$ac_ext <<_ACEOF
22972 /* confdefs.h.  */
22973 _ACEOF
22974 cat confdefs.h >>conftest.$ac_ext
22975 cat >>conftest.$ac_ext <<_ACEOF
22976 /* end confdefs.h.  */
22977 $ac_includes_default
22978 #include <$ac_header>
22979 _ACEOF
22980 rm -f conftest.$ac_objext
22981 if { (ac_try="$ac_compile"
22982 case "(($ac_try" in
22983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984   *) ac_try_echo=$ac_try;;
22985 esac
22986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22987 $as_echo "$ac_try_echo") >&5
22988   (eval "$ac_compile") 2>conftest.er1
22989   ac_status=$?
22990   grep -v '^ *+' conftest.er1 >conftest.err
22991   rm -f conftest.er1
22992   cat conftest.err >&5
22993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994   (exit $ac_status); } && {
22995          test -z "$ac_c_werror_flag" ||
22996          test ! -s conftest.err
22997        } && test -s conftest.$ac_objext; then
22998   ac_header_compiler=yes
22999 else
23000   $as_echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23002
23003         ac_header_compiler=no
23004 fi
23005
23006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23007 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23008 $as_echo "$ac_header_compiler" >&6; }
23009
23010 # Is the header present?
23011 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23012 $as_echo_n "checking $ac_header presence... " >&6; }
23013 cat >conftest.$ac_ext <<_ACEOF
23014 /* confdefs.h.  */
23015 _ACEOF
23016 cat confdefs.h >>conftest.$ac_ext
23017 cat >>conftest.$ac_ext <<_ACEOF
23018 /* end confdefs.h.  */
23019 #include <$ac_header>
23020 _ACEOF
23021 if { (ac_try="$ac_cpp conftest.$ac_ext"
23022 case "(($ac_try" in
23023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23024   *) ac_try_echo=$ac_try;;
23025 esac
23026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23027 $as_echo "$ac_try_echo") >&5
23028   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23029   ac_status=$?
23030   grep -v '^ *+' conftest.er1 >conftest.err
23031   rm -f conftest.er1
23032   cat conftest.err >&5
23033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034   (exit $ac_status); } >/dev/null && {
23035          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23036          test ! -s conftest.err
23037        }; then
23038   ac_header_preproc=yes
23039 else
23040   $as_echo "$as_me: failed program was:" >&5
23041 sed 's/^/| /' conftest.$ac_ext >&5
23042
23043   ac_header_preproc=no
23044 fi
23045
23046 rm -f conftest.err conftest.$ac_ext
23047 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23048 $as_echo "$ac_header_preproc" >&6; }
23049
23050 # So?  What about this header?
23051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23052   yes:no: )
23053     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23054 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23055     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23056 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23057     ac_header_preproc=yes
23058     ;;
23059   no:yes:* )
23060     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23061 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23062     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23063 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23064     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23065 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23066     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23067 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23068     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23069 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23070     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23071 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23072
23073     ;;
23074 esac
23075 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23076 $as_echo_n "checking for $ac_header... " >&6; }
23077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23078   $as_echo_n "(cached) " >&6
23079 else
23080   eval "$as_ac_Header=\$ac_header_preproc"
23081 fi
23082 ac_res=`eval 'as_val=${'$as_ac_Header'}
23083                  $as_echo "$as_val"'`
23084                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23085 $as_echo "$ac_res" >&6; }
23086
23087 fi
23088 as_val=`eval 'as_val=${'$as_ac_Header'}
23089                  $as_echo "$as_val"'`
23090    if test "x$as_val" = x""yes; then
23091   cat >>confdefs.h <<_ACEOF
23092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23093 _ACEOF
23094
23095 fi
23096
23097 done
23098
23099
23100     # find a working file-locking mechanism.
23101     # Note: these all use AC_TRY_LINK to make sure that we can compile
23102     # and link each variant.  They do not try to test the variants --
23103     # that is left to runtime.
23104     LOCKING="no"
23105
23106     # check POSIX locking
23107     { $as_echo "$as_me:$LINENO: checking whether POSIX locking (with fcntl(2)) is available" >&5
23108 $as_echo_n "checking whether POSIX locking (with fcntl(2)) is available... " >&6; }
23109 if test "${amanda_cv_posix_filelocking+set}" = set; then
23110   $as_echo_n "(cached) " >&6
23111 else
23112
23113             cat >conftest.$ac_ext <<_ACEOF
23114 /* confdefs.h.  */
23115 _ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h.  */
23119
23120 #if HAVE_SYS_TYPES_H
23121 # include <sys/types.h>
23122 #endif
23123 #if HAVE_UNISTD_H
23124 # include <unistd.h>
23125 #endif
23126 #if HAVE_FCNTL_H
23127 # include <fcntl.h>
23128 #endif
23129
23130 int
23131 main ()
23132 {
23133
23134             struct flock lock;
23135
23136             lock.l_type = F_RDLCK;
23137             lock.l_start = 0;
23138             lock.l_whence = SEEK_CUR;
23139             lock.l_len = 0;
23140             return fcntl(1, F_SETLK, &lock);
23141
23142   ;
23143   return 0;
23144 }
23145 _ACEOF
23146 rm -f conftest.$ac_objext conftest$ac_exeext
23147 if { (ac_try="$ac_link"
23148 case "(($ac_try" in
23149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150   *) ac_try_echo=$ac_try;;
23151 esac
23152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23153 $as_echo "$ac_try_echo") >&5
23154   (eval "$ac_link") 2>conftest.er1
23155   ac_status=$?
23156   grep -v '^ *+' conftest.er1 >conftest.err
23157   rm -f conftest.er1
23158   cat conftest.err >&5
23159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160   (exit $ac_status); } && {
23161          test -z "$ac_c_werror_flag" ||
23162          test ! -s conftest.err
23163        } && test -s conftest$ac_exeext && {
23164          test "$cross_compiling" = yes ||
23165          $as_test_x conftest$ac_exeext
23166        }; then
23167
23168         amanda_cv_posix_filelocking="yes"
23169
23170 else
23171   $as_echo "$as_me: failed program was:" >&5
23172 sed 's/^/| /' conftest.$ac_ext >&5
23173
23174
23175         amanda_cv_posix_filelocking="no"
23176
23177 fi
23178
23179 rm -rf conftest.dSYM
23180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23181       conftest$ac_exeext conftest.$ac_ext
23182
23183 fi
23184 { $as_echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
23185 $as_echo "$amanda_cv_posix_filelocking" >&6; }
23186     if test "x$amanda_cv_posix_filelocking" = xyes; then
23187
23188 cat >>confdefs.h <<\_ACEOF
23189 #define WANT_AMFLOCK_POSIX 1
23190 _ACEOF
23191
23192         WANT_AMFLOCK_POSIX="yes"
23193         LOCKING="POSIX_FCNTL"
23194     fi
23195      if test x"$WANT_AMFLOCK_POSIX" = x"yes"; then
23196   WANT_AMFLOCK_POSIX_TRUE=
23197   WANT_AMFLOCK_POSIX_FALSE='#'
23198 else
23199   WANT_AMFLOCK_POSIX_TRUE='#'
23200   WANT_AMFLOCK_POSIX_FALSE=
23201 fi
23202
23203
23204     # check flock-based (BSD) locking
23205     { $as_echo "$as_me:$LINENO: checking whether flock locking is available" >&5
23206 $as_echo_n "checking whether flock locking is available... " >&6; }
23207 if test "${amanda_cv_flock_filelocking+set}" = set; then
23208   $as_echo_n "(cached) " >&6
23209 else
23210
23211             cat >conftest.$ac_ext <<_ACEOF
23212 /* confdefs.h.  */
23213 _ACEOF
23214 cat confdefs.h >>conftest.$ac_ext
23215 cat >>conftest.$ac_ext <<_ACEOF
23216 /* end confdefs.h.  */
23217
23218 #if HAVE_SYS_FILE_H
23219 # include <sys/file.h>
23220 #endif
23221
23222 int
23223 main ()
23224 {
23225
23226             return flock(1, LOCK_SH);
23227
23228   ;
23229   return 0;
23230 }
23231 _ACEOF
23232 rm -f conftest.$ac_objext conftest$ac_exeext
23233 if { (ac_try="$ac_link"
23234 case "(($ac_try" in
23235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23236   *) ac_try_echo=$ac_try;;
23237 esac
23238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23239 $as_echo "$ac_try_echo") >&5
23240   (eval "$ac_link") 2>conftest.er1
23241   ac_status=$?
23242   grep -v '^ *+' conftest.er1 >conftest.err
23243   rm -f conftest.er1
23244   cat conftest.err >&5
23245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246   (exit $ac_status); } && {
23247          test -z "$ac_c_werror_flag" ||
23248          test ! -s conftest.err
23249        } && test -s conftest$ac_exeext && {
23250          test "$cross_compiling" = yes ||
23251          $as_test_x conftest$ac_exeext
23252        }; then
23253
23254         amanda_cv_flock_filelocking="yes"
23255
23256 else
23257   $as_echo "$as_me: failed program was:" >&5
23258 sed 's/^/| /' conftest.$ac_ext >&5
23259
23260
23261         amanda_cv_flock_filelocking="no"
23262
23263 fi
23264
23265 rm -rf conftest.dSYM
23266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23267       conftest$ac_exeext conftest.$ac_ext
23268
23269 fi
23270 { $as_echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
23271 $as_echo "$amanda_cv_flock_filelocking" >&6; }
23272     if test "x$amanda_cv_flock_filelocking" = xyes; then
23273
23274 cat >>confdefs.h <<\_ACEOF
23275 #define WANT_AMFLOCK_FLOCK 1
23276 _ACEOF
23277
23278         WANT_AMFLOCK_FLOCK="yes"
23279         LOCKING="FLOCK"
23280     fi
23281      if test x"$WANT_AMFLOCK_FLOCK" = x"yes"; then
23282   WANT_AMFLOCK_FLOCK_TRUE=
23283   WANT_AMFLOCK_FLOCK_FALSE='#'
23284 else
23285   WANT_AMFLOCK_FLOCK_TRUE='#'
23286   WANT_AMFLOCK_FLOCK_FALSE=
23287 fi
23288
23289
23290     # check lockf-based (SVR2, SVR3, SVR4) locking
23291     { $as_echo "$as_me:$LINENO: checking whether lockf(3) locking is available" >&5
23292 $as_echo_n "checking whether lockf(3) locking is available... " >&6; }
23293 if test "${amanda_cv_lockf_filelocking+set}" = set; then
23294   $as_echo_n "(cached) " >&6
23295 else
23296
23297             cat >conftest.$ac_ext <<_ACEOF
23298 /* confdefs.h.  */
23299 _ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h.  */
23303
23304 #if HAVE_UNISTD_H
23305 # include <unistd.h>
23306 #endif
23307
23308 int
23309 main ()
23310 {
23311
23312             return lockf(1, F_LOCK, 0);
23313
23314   ;
23315   return 0;
23316 }
23317 _ACEOF
23318 rm -f conftest.$ac_objext conftest$ac_exeext
23319 if { (ac_try="$ac_link"
23320 case "(($ac_try" in
23321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322   *) ac_try_echo=$ac_try;;
23323 esac
23324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23325 $as_echo "$ac_try_echo") >&5
23326   (eval "$ac_link") 2>conftest.er1
23327   ac_status=$?
23328   grep -v '^ *+' conftest.er1 >conftest.err
23329   rm -f conftest.er1
23330   cat conftest.err >&5
23331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332   (exit $ac_status); } && {
23333          test -z "$ac_c_werror_flag" ||
23334          test ! -s conftest.err
23335        } && test -s conftest$ac_exeext && {
23336          test "$cross_compiling" = yes ||
23337          $as_test_x conftest$ac_exeext
23338        }; then
23339
23340         amanda_cv_lockf_filelocking="yes"
23341
23342 else
23343   $as_echo "$as_me: failed program was:" >&5
23344 sed 's/^/| /' conftest.$ac_ext >&5
23345
23346
23347         amanda_cv_lockf_filelocking="no"
23348
23349 fi
23350
23351 rm -rf conftest.dSYM
23352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23353       conftest$ac_exeext conftest.$ac_ext
23354
23355 fi
23356 { $as_echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
23357 $as_echo "$amanda_cv_lockf_filelocking" >&6; }
23358     if test "x$amanda_cv_lockf_filelocking" = xyes; then
23359
23360 cat >>confdefs.h <<\_ACEOF
23361 #define WANT_AMFLOCK_LOCKF 1
23362 _ACEOF
23363
23364         WANT_AMFLOCK_LOCKF="yes"
23365         LOCKING="LOCKF"
23366     fi
23367      if test x"$WANT_AMFLOCK_LOCKF" = x"yes"; then
23368   WANT_AMFLOCK_LOCKF_TRUE=
23369   WANT_AMFLOCK_LOCKF_FALSE='#'
23370 else
23371   WANT_AMFLOCK_LOCKF_TRUE='#'
23372   WANT_AMFLOCK_LOCKF_FALSE=
23373 fi
23374
23375
23376     # check our homebrew hardlink-based locking (requires hardlinks)
23377     { $as_echo "$as_me:$LINENO: checking whether link(2) is available for locking" >&5
23378 $as_echo_n "checking whether link(2) is available for locking... " >&6; }
23379 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
23380   $as_echo_n "(cached) " >&6
23381 else
23382
23383             cat >conftest.$ac_ext <<_ACEOF
23384 /* confdefs.h.  */
23385 _ACEOF
23386 cat confdefs.h >>conftest.$ac_ext
23387 cat >>conftest.$ac_ext <<_ACEOF
23388 /* end confdefs.h.  */
23389
23390 #if HAVE_UNISTD_H
23391 # include <unistd.h>
23392 #endif
23393
23394 int
23395 main ()
23396 {
23397
23398             return link("/tmp/foo", "/tmp/bar");
23399
23400   ;
23401   return 0;
23402 }
23403 _ACEOF
23404 rm -f conftest.$ac_objext conftest$ac_exeext
23405 if { (ac_try="$ac_link"
23406 case "(($ac_try" in
23407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23408   *) ac_try_echo=$ac_try;;
23409 esac
23410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23411 $as_echo "$ac_try_echo") >&5
23412   (eval "$ac_link") 2>conftest.er1
23413   ac_status=$?
23414   grep -v '^ *+' conftest.er1 >conftest.err
23415   rm -f conftest.er1
23416   cat conftest.err >&5
23417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418   (exit $ac_status); } && {
23419          test -z "$ac_c_werror_flag" ||
23420          test ! -s conftest.err
23421        } && test -s conftest$ac_exeext && {
23422          test "$cross_compiling" = yes ||
23423          $as_test_x conftest$ac_exeext
23424        }; then
23425
23426         amanda_cv_lnlock_filelocking="yes"
23427
23428 else
23429   $as_echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23431
23432
23433         amanda_cv_lnlock_filelocking="no"
23434
23435 fi
23436
23437 rm -rf conftest.dSYM
23438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23439       conftest$ac_exeext conftest.$ac_ext
23440
23441 fi
23442 { $as_echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
23443 $as_echo "$amanda_cv_lnlock_filelocking" >&6; }
23444     if test "x$amanda_cv_lnlock_filelocking" = xyes; then
23445
23446 cat >>confdefs.h <<\_ACEOF
23447 #define WANT_AMFLOCK_LNLOCK 1
23448 _ACEOF
23449
23450         WANT_AMFLOCK_LNLOCK="yes"
23451         LOCKING="LNLOCK"
23452     fi
23453      if test x"$WANT_AMFLOCK_LNLOCK" = x"yes"; then
23454   WANT_AMFLOCK_LNLOCK_TRUE=
23455   WANT_AMFLOCK_LNLOCK_FALSE='#'
23456 else
23457   WANT_AMFLOCK_LNLOCK_TRUE='#'
23458   WANT_AMFLOCK_LNLOCK_FALSE=
23459 fi
23460
23461
23462     if test x"$LOCKING" = "no"; then
23463         # this shouldn't happen, and is *bad* if it does
23464         { { $as_echo "$as_me:$LINENO: error: *** No working file locking capability found!" >&5
23465 $as_echo "$as_me: error: *** No working file locking capability found!" >&2;}
23466    { (exit 1); exit 1; }; }
23467     fi
23468
23469
23470
23471
23472
23473     for ac_prog in swig
23474 do
23475   # Extract the first word of "$ac_prog", so it can be a program name with args.
23476 set dummy $ac_prog; ac_word=$2
23477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23478 $as_echo_n "checking for $ac_word... " >&6; }
23479 if test "${ac_cv_path_SWIG+set}" = set; then
23480   $as_echo_n "(cached) " >&6
23481 else
23482   case $SWIG in
23483   [\\/]* | ?:[\\/]*)
23484   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23485   ;;
23486   *)
23487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23488 for as_dir in $LOCSYSPATH
23489 do
23490   IFS=$as_save_IFS
23491   test -z "$as_dir" && as_dir=.
23492   for ac_exec_ext in '' $ac_executable_extensions; do
23493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23494     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23495     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23496     break 2
23497   fi
23498 done
23499 done
23500 IFS=$as_save_IFS
23501
23502   ;;
23503 esac
23504 fi
23505 SWIG=$ac_cv_path_SWIG
23506 if test -n "$SWIG"; then
23507   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
23508 $as_echo "$SWIG" >&6; }
23509 else
23510   { $as_echo "$as_me:$LINENO: result: no" >&5
23511 $as_echo "no" >&6; }
23512 fi
23513
23514
23515   test -n "$SWIG" && break
23516 done
23517
23518
23519
23520         # Extract the first word of "swig", so it can be a program name with args.
23521 set dummy swig; ac_word=$2
23522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23523 $as_echo_n "checking for $ac_word... " >&6; }
23524 if test "${ac_cv_path_SWIG+set}" = set; then
23525   $as_echo_n "(cached) " >&6
23526 else
23527   case $SWIG in
23528   [\\/]* | ?:[\\/]*)
23529   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23530   ;;
23531   *)
23532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23533 for as_dir in $PATH
23534 do
23535   IFS=$as_save_IFS
23536   test -z "$as_dir" && as_dir=.
23537   for ac_exec_ext in '' $ac_executable_extensions; do
23538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23539     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23540     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23541     break 2
23542   fi
23543 done
23544 done
23545 IFS=$as_save_IFS
23546
23547   ;;
23548 esac
23549 fi
23550 SWIG=$ac_cv_path_SWIG
23551 if test -n "$SWIG"; then
23552   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
23553 $as_echo "$SWIG" >&6; }
23554 else
23555   { $as_echo "$as_me:$LINENO: result: no" >&5
23556 $as_echo "no" >&6; }
23557 fi
23558
23559
23560         if test -z "$SWIG" ; then
23561                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
23562         elif test -n "1.3.28" ; then
23563                 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
23564 $as_echo_n "checking for SWIG version... " >&6; }
23565                 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
23566                 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
23567 $as_echo "$swig_version" >&6; }
23568                 if test -n "$swig_version" ; then
23569                         # Calculate the required version number components
23570                         required=1.3.28
23571                         required_major=`echo $required | sed 's/[^0-9].*//'`
23572                         if test -z "$required_major" ; then
23573                                 required_major=0
23574                         fi
23575                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
23576                         required_minor=`echo $required | sed 's/[^0-9].*//'`
23577                         if test -z "$required_minor" ; then
23578                                 required_minor=0
23579                         fi
23580                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
23581                         required_patch=`echo $required | sed 's/[^0-9].*//'`
23582                         if test -z "$required_patch" ; then
23583                                 required_patch=0
23584                         fi
23585                         # Calculate the available version number components
23586                         available=$swig_version
23587                         available_major=`echo $available | sed 's/[^0-9].*//'`
23588                         if test -z "$available_major" ; then
23589                                 available_major=0
23590                         fi
23591                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
23592                         available_minor=`echo $available | sed 's/[^0-9].*//'`
23593                         if test -z "$available_minor" ; then
23594                                 available_minor=0
23595                         fi
23596                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
23597                         available_patch=`echo $available | sed 's/[^0-9].*//'`
23598                         if test -z "$available_patch" ; then
23599                                 available_patch=0
23600                         fi
23601                         if test $available_major -ne $required_major \
23602                                 -o $available_minor -ne $required_minor \
23603                                 -o $available_patch -lt $required_patch ; then
23604                                 SWIG='echo "Error: SWIG version >= 1.3.28 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
23605                         else
23606                                 SWIG_LIB=`$SWIG -swiglib`
23607                         fi
23608                 else
23609                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
23610                 fi
23611         fi
23612
23613
23614
23615
23616
23617     for ac_prog in perl5 perl
23618 do
23619   # Extract the first word of "$ac_prog", so it can be a program name with args.
23620 set dummy $ac_prog; ac_word=$2
23621 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23622 $as_echo_n "checking for $ac_word... " >&6; }
23623 if test "${ac_cv_path_PERL+set}" = set; then
23624   $as_echo_n "(cached) " >&6
23625 else
23626   case $PERL in
23627   [\\/]* | ?:[\\/]*)
23628   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
23629   ;;
23630   *)
23631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23632 for as_dir in $LOCSYSPATH
23633 do
23634   IFS=$as_save_IFS
23635   test -z "$as_dir" && as_dir=.
23636   for ac_exec_ext in '' $ac_executable_extensions; do
23637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23638     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
23639     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23640     break 2
23641   fi
23642 done
23643 done
23644 IFS=$as_save_IFS
23645
23646   ;;
23647 esac
23648 fi
23649 PERL=$ac_cv_path_PERL
23650 if test -n "$PERL"; then
23651   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
23652 $as_echo "$PERL" >&6; }
23653 else
23654   { $as_echo "$as_me:$LINENO: result: no" >&5
23655 $as_echo "no" >&6; }
23656 fi
23657
23658
23659   test -n "$PERL" && break
23660 done
23661
23662
23663     # Make sure we have perl
23664 if test -z "$PERL"; then
23665 # Extract the first word of "perl", so it can be a program name with args.
23666 set dummy perl; ac_word=$2
23667 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23668 $as_echo_n "checking for $ac_word... " >&6; }
23669 if test "${ac_cv_prog_PERL+set}" = set; then
23670   $as_echo_n "(cached) " >&6
23671 else
23672   if test -n "$PERL"; then
23673   ac_cv_prog_PERL="$PERL" # Let the user override the test.
23674 else
23675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23676 for as_dir in $PATH
23677 do
23678   IFS=$as_save_IFS
23679   test -z "$as_dir" && as_dir=.
23680   for ac_exec_ext in '' $ac_executable_extensions; do
23681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23682     ac_cv_prog_PERL="perl"
23683     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23684     break 2
23685   fi
23686 done
23687 done
23688 IFS=$as_save_IFS
23689
23690 fi
23691 fi
23692 PERL=$ac_cv_prog_PERL
23693 if test -n "$PERL"; then
23694   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
23695 $as_echo "$PERL" >&6; }
23696 else
23697   { $as_echo "$as_me:$LINENO: result: no" >&5
23698 $as_echo "no" >&6; }
23699 fi
23700
23701
23702 fi
23703
23704 # Check if version of Perl is sufficient
23705 ac_perl_version="5.6.0"
23706
23707 if test "x$PERL" != "x"; then
23708   { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
23709 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
23710   # NB: It would be nice to log the error if there is one, but we cannot rely
23711   # on autoconf internals
23712   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
23713   if test $? -ne 0; then
23714     { $as_echo "$as_me:$LINENO: result: no" >&5
23715 $as_echo "no" >&6; };
23716
23717         { { $as_echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
23718 $as_echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
23719    { (exit 1); exit 1; }; }
23720
23721   else
23722     { $as_echo "$as_me:$LINENO: result: ok" >&5
23723 $as_echo "ok" >&6; };
23724
23725   fi
23726 else
23727   { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
23728 $as_echo "$as_me: WARNING: could not find perl" >&2;}
23729 fi
23730
23731
23732
23733
23734
23735
23736     # If we want cygwin to copy ddl to modules directory.
23737     WANT_CYGWIN_COPY_PERL_DLL="false"
23738
23739     # test for ExtUtils::Embed
23740     ac_perl_list_modules="ExtUtils::Embed 0.0"
23741 # Make sure we have perl
23742 if test -z "$PERL"; then
23743 # Extract the first word of "perl", so it can be a program name with args.
23744 set dummy perl; ac_word=$2
23745 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23746 $as_echo_n "checking for $ac_word... " >&6; }
23747 if test "${ac_cv_prog_PERL+set}" = set; then
23748   $as_echo_n "(cached) " >&6
23749 else
23750   if test -n "$PERL"; then
23751   ac_cv_prog_PERL="$PERL" # Let the user override the test.
23752 else
23753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23754 for as_dir in $PATH
23755 do
23756   IFS=$as_save_IFS
23757   test -z "$as_dir" && as_dir=.
23758   for ac_exec_ext in '' $ac_executable_extensions; do
23759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23760     ac_cv_prog_PERL="perl"
23761     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23762     break 2
23763   fi
23764 done
23765 done
23766 IFS=$as_save_IFS
23767
23768 fi
23769 fi
23770 PERL=$ac_cv_prog_PERL
23771 if test -n "$PERL"; then
23772   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
23773 $as_echo "$PERL" >&6; }
23774 else
23775   { $as_echo "$as_me:$LINENO: result: no" >&5
23776 $as_echo "no" >&6; }
23777 fi
23778
23779
23780 fi
23781
23782 # Check the number of arguments
23783 args_num=`echo $ac_perl_list_modules | wc -w`
23784 let "ckeck_args = $args_num % 2"
23785 if test "$check_args" = "1" ; then
23786   { { $as_echo "$as_me:$LINENO: error: syntax error" >&5
23787 $as_echo "$as_me: error: syntax error" >&2;}
23788    { (exit 1); exit 1; }; }
23789 else
23790   eval
23791 fi
23792
23793 if test "x$PERL" != x; then
23794   ac_failed=0
23795   while test ${#ac_perl_list_modules} -gt 2 ; do
23796         module_name=`echo $ac_perl_list_modules | cut -d " " -f 1`
23797         module_version=`echo $ac_perl_list_modules | cut -d " " -f 2`
23798         ac_perl_list_modules=`echo $ac_perl_list_modules | cut -d " " -f 3-`
23799         { $as_echo "$as_me:$LINENO: checking for perl module $module_name version $module_version" >&5
23800 $as_echo_n "checking for perl module $module_name version $module_version... " >&6; }
23801
23802         $PERL "-M$module_name" -e exit > /dev/null 2>&1
23803         if test $? -ne 0; then
23804           { $as_echo "$as_me:$LINENO: result: no" >&5
23805 $as_echo "no" >&6; };
23806           ac_failed=1
23807           ac_perl_list_modules=""
23808         else
23809           version=`$PERL "-M$module_name" -e 'print $'"$module_name::VERSION" 2>&1`
23810           $PERL -e 'exit(shift cmp shift)' "$version" "$module_version"
23811           if test $? -eq 0 -o $? -eq 1 ; then
23812             { $as_echo "$as_me:$LINENO: result: ok" >&5
23813 $as_echo "ok" >&6; };
23814           else
23815             { $as_echo "$as_me:$LINENO: result: no" >&5
23816 $as_echo "no" >&6; }
23817             ac_failed=1
23818             ac_perl_list_modules=""
23819           fi
23820         fi;
23821   done
23822
23823   if test "$ac_failed" = 0; then
23824     :
23825
23826   else
23827     :
23828
23829         { { $as_echo "$as_me:$LINENO: error: *** Amanda requires the perl package ExtUtils::Embed to build its perl modules" >&5
23830 $as_echo "$as_me: error: *** Amanda requires the perl package ExtUtils::Embed to build its perl modules" >&2;}
23831    { (exit 1); exit 1; }; }
23832
23833   fi
23834 else
23835   { { $as_echo "$as_me:$LINENO: error: could not find perl" >&5
23836 $as_echo "$as_me: error: could not find perl" >&2;}
23837    { (exit 1); exit 1; }; }
23838 fi
23839
23840     # get the include path for building perl extensions
23841     PERL_INC=`$PERL -MExtUtils::Embed -e perl_inc`
23842
23843
23844     if test x"$enable_shared" = x"no"; then
23845         { { $as_echo "$as_me:$LINENO: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&5
23846 $as_echo "$as_me: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&2;}
23847    { (exit 1); exit 1; }; }
23848     fi
23849
23850     case "$target" in
23851         *freebsd[123456]*) # up to and including FreeBSD 6.*
23852             # Before 7.0, FreeBSD systems don't include a DT_NEEDS segment in
23853             # libgthread to automatically pull in the desired threading library.
23854             # Instead, they assume that any application linking against
23855             # libgthread will pull in the threading library.  This is fine for
23856             # Amanda C applications, but for Perl applications this assumption
23857             # means that the perl binary would pull in the threading library.
23858             # But perl is compiled without threading by default.
23859             #
23860             # Specifically, this occurs on any FreeBSD using gcc-3.*: the linking
23861             # decision is made in gcc's spec files, which were changed in
23862             # gcc-4.0.  For a more in-depth discussion, see
23863             #  http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_FreeBSD
23864             #
23865             # The easiest solution for the "default" case is to link all perl
23866             # extension libraries against the threading library, so it is loaded
23867             # when perl loads the extension library.  The default threading
23868             # library in FreeBSD is libpthread.  The below default will work on
23869             # such a FreeBSD system, but ports maintainers and those with
23870             # different configurations may need to override this value with
23871             # --with-perlextlibs.
23872             #
23873             # We can't use -pthread because gcc on FreeBSD ignores -pthread in
23874             # combination with -shared.  See
23875             #   http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026229.html
23876
23877             PERLEXTLIBS="-lpthread"
23878             ;;
23879         *-pc-cygwin)
23880             # When need -lperl and the '-L' where it is located,
23881             # we don't want the DynaLoader.a
23882             PERLEXTLIBS=`perl -MExtUtils::Embed -e ldopts | sed -e 's/^.*-L/-L/'`
23883             WANT_CYGWIN_COPY_PERL_DLL="true";
23884             ;;
23885     esac
23886      if $WANT_CYGWIN_COPY_PERL_DLL; then
23887   WANT_CYGWIN_COPY_PERL_DLL_TRUE=
23888   WANT_CYGWIN_COPY_PERL_DLL_FALSE='#'
23889 else
23890   WANT_CYGWIN_COPY_PERL_DLL_TRUE='#'
23891   WANT_CYGWIN_COPY_PERL_DLL_FALSE=
23892 fi
23893
23894
23895
23896 # Check whether --with-perlextlibs was given.
23897 if test "${with_perlextlibs+set}" = set; then
23898   withval=$with_perlextlibs;
23899             case "$withval" in
23900                 y|ye|yes) { { $as_echo "$as_me:$LINENO: error: *** You must specify a value for --with-perlextlibs" >&5
23901 $as_echo "$as_me: error: *** You must specify a value for --with-perlextlibs" >&2;}
23902    { (exit 1); exit 1; }; };;
23903                 n|no) PERLEXTLIBS='';;
23904                 *) PERLEXTLIBS="$withval" ;;
23905             esac
23906
23907 fi
23908
23909
23910
23911
23912
23913     # Extract the first word of "cat", so it can be a program name with args.
23914 set dummy cat; ac_word=$2
23915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23916 $as_echo_n "checking for $ac_word... " >&6; }
23917 if test "${ac_cv_path_CAT+set}" = set; then
23918   $as_echo_n "(cached) " >&6
23919 else
23920   case $CAT in
23921   [\\/]* | ?:[\\/]*)
23922   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
23923   ;;
23924   *)
23925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23926 for as_dir in $LOCSYSPATH
23927 do
23928   IFS=$as_save_IFS
23929   test -z "$as_dir" && as_dir=.
23930   for ac_exec_ext in '' $ac_executable_extensions; do
23931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23932     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
23933     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23934     break 2
23935   fi
23936 done
23937 done
23938 IFS=$as_save_IFS
23939
23940   test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="cat"
23941   ;;
23942 esac
23943 fi
23944 CAT=$ac_cv_path_CAT
23945 if test -n "$CAT"; then
23946   { $as_echo "$as_me:$LINENO: result: $CAT" >&5
23947 $as_echo "$CAT" >&6; }
23948 else
23949   { $as_echo "$as_me:$LINENO: result: no" >&5
23950 $as_echo "no" >&6; }
23951 fi
23952
23953
23954
23955
23956
23957
23958
23959
23960     HAVE_GZIP=
23961     if test "$GZIP"; then
23962
23963 cat >>confdefs.h <<\_ACEOF
23964 #define HAVE_GZIP 1
23965 _ACEOF
23966
23967         HAVE_GZIP=1
23968         COMPRESS_PATH="$GZIP"
23969         COMPRESS_SUFFIX=".gz"
23970         COMPRESS_FAST_OPT="--fast"
23971         COMPRESS_BEST_OPT="--best"
23972         UNCOMPRESS_PATH="$GZIP"
23973         UNCOMPRESS_OPT="-dc"
23974     else
23975         if test "$COMPRESS"; then
23976             COMPRESS_PATH="$COMPRESS"
23977             COMPRESS_SUFFIX=".Z"
23978             COMPRESS_FAST_OPT="-f"
23979             COMPRESS_BEST_OPT="-f"
23980             UNCOMPRESS_PATH="$COMPRESS"
23981             UNCOMPRESS_OPT="-dc"
23982         else
23983             # If we have to use cat, we don't define COMPRESS_FAST_OPT,
23984             # COMPRESS_BEST_OPT, or UNCOMPRESS_OPT as "" since cat will look
23985             # look for a file by the name of "".
23986             # XXX is the above true? --dustin
23987
23988
23989     { $as_echo "$as_me:$LINENO: WARNING: Cannot find either gzip or compress.  Using cat." >&5
23990 $as_echo "$as_me: WARNING: Cannot find either gzip or compress.  Using cat." >&2;}
23991
23992
23993     cat <<AAW_EOF >>config.warnings
23994 Cannot find either gzip or compress.  Using cat.
23995 AAW_EOF
23996
23997
23998             COMPRESS_PATH="$CAT"
23999             COMPRESS_SUFFIX=""
24000             COMPRESS_FAST_OPT=""
24001             COMPRESS_BEST_OPT=""
24002             UNCOMPRESS_PATH="$CAT"
24003             UNCOMPRESS_OPT=""
24004         fi
24005     fi
24006
24007
24008 cat >>confdefs.h <<_ACEOF
24009 #define COMPRESS_PATH "$COMPRESS_PATH"
24010 _ACEOF
24011
24012
24013 cat >>confdefs.h <<_ACEOF
24014 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
24015 _ACEOF
24016
24017
24018 cat >>confdefs.h <<_ACEOF
24019 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
24020 _ACEOF
24021
24022
24023 cat >>confdefs.h <<_ACEOF
24024 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
24025 _ACEOF
24026
24027
24028 cat >>confdefs.h <<_ACEOF
24029 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
24030 _ACEOF
24031
24032
24033 cat >>confdefs.h <<_ACEOF
24034 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
24035 _ACEOF
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046     # Empty GZIP so that make dist works.
24047     GZIP=
24048
24049
24050     { $as_echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
24051 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
24052 if test "${ac_cv_has_sockaddr_storage+set}" = set; then
24053   $as_echo_n "(cached) " >&6
24054 else
24055
24056         cat >conftest.$ac_ext <<_ACEOF
24057 /* confdefs.h.  */
24058 _ACEOF
24059 cat confdefs.h >>conftest.$ac_ext
24060 cat >>conftest.$ac_ext <<_ACEOF
24061 /* end confdefs.h.  */
24062
24063 #       include <sys/types.h>
24064 #       include <sys/socket.h>
24065 int
24066 main ()
24067 {
24068 u_int i = sizeof (struct sockaddr_storage)
24069   ;
24070   return 0;
24071 }
24072 _ACEOF
24073 rm -f conftest.$ac_objext
24074 if { (ac_try="$ac_compile"
24075 case "(($ac_try" in
24076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24077   *) ac_try_echo=$ac_try;;
24078 esac
24079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24080 $as_echo "$ac_try_echo") >&5
24081   (eval "$ac_compile") 2>conftest.er1
24082   ac_status=$?
24083   grep -v '^ *+' conftest.er1 >conftest.err
24084   rm -f conftest.er1
24085   cat conftest.err >&5
24086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087   (exit $ac_status); } && {
24088          test -z "$ac_c_werror_flag" ||
24089          test ! -s conftest.err
24090        } && test -s conftest.$ac_objext; then
24091   ac_cv_has_sockaddr_storage=yes
24092 else
24093   $as_echo "$as_me: failed program was:" >&5
24094 sed 's/^/| /' conftest.$ac_ext >&5
24095
24096         ac_cv_has_sockaddr_storage=no
24097 fi
24098
24099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24100
24101 fi
24102 { $as_echo "$as_me:$LINENO: result: $ac_cv_has_sockaddr_storage" >&5
24103 $as_echo "$ac_cv_has_sockaddr_storage" >&6; }
24104
24105     if test $ac_cv_has_sockaddr_storage = yes ; then
24106
24107 cat >>confdefs.h <<\_ACEOF
24108 #define HAVE_SOCKADDR_STORAGE 1
24109 _ACEOF
24110
24111     fi
24112
24113
24114
24115
24116     WORKING_IPV6=no
24117
24118 # Check whether --with-ipv6 was given.
24119 if test "${with_ipv6+set}" = set; then
24120   withval=$with_ipv6;
24121             case "$withval" in
24122             y | ye | yes) amanda_with_ipv6=yes;;
24123             n | no) amanda_with_ipv6=no;;
24124             *)
24125                 { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ipv6 option." >&5
24126 $as_echo "$as_me: error: *** You must not supply an argument to --with-ipv6 option." >&2;}
24127    { (exit 1); exit 1; }; }
24128               ;;
24129             esac
24130
24131 else
24132
24133             amanda_with_ipv6=maybe
24134
24135
24136 fi
24137
24138
24139     if test x"$amanda_with_ipv6" = x"yes" ||
24140        test x"$amanda_with_ipv6" = x"maybe" ; then
24141         { $as_echo "$as_me:$LINENO: checking for working IPv6" >&5
24142 $as_echo_n "checking for working IPv6... " >&6; }
24143 if test "${amanda_cv_working_ipv6+set}" = set; then
24144   $as_echo_n "(cached) " >&6
24145 else
24146
24147             case "$target" in
24148                 *-pc-cygwin) amanda_cv_working_ipv6=no;;
24149                 *)
24150                     if test "$cross_compiling" = yes; then
24151    amanda_cv_working_ipv6=yes
24152
24153 else
24154   cat >conftest.$ac_ext <<_ACEOF
24155 /* confdefs.h.  */
24156 _ACEOF
24157 cat confdefs.h >>conftest.$ac_ext
24158 cat >>conftest.$ac_ext <<_ACEOF
24159 /* end confdefs.h.  */
24160
24161 #include <sys/types.h>
24162 #ifdef HAVE_SYS_SOCKET_H
24163 #include <sys/socket.h>
24164 #endif
24165 #ifdef HAVE_NETINET_IN_H
24166 #include <netinet/in.h>
24167 #endif
24168 #ifdef HAVE_WINSOCK2_H
24169 #include <winsock2.h>
24170 #endif
24171 #include <sys/socket.h>
24172 #include <errno.h>
24173
24174 main()
24175 {
24176    int aa;
24177    aa = socket(AF_INET6, SOCK_STREAM, 0);
24178    if (aa > 0) return 0;
24179    return aa;
24180 }
24181 _ACEOF
24182 rm -f conftest$ac_exeext
24183 if { (ac_try="$ac_link"
24184 case "(($ac_try" in
24185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24186   *) ac_try_echo=$ac_try;;
24187 esac
24188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24189 $as_echo "$ac_try_echo") >&5
24190   (eval "$ac_link") 2>&5
24191   ac_status=$?
24192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24194   { (case "(($ac_try" in
24195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24196   *) ac_try_echo=$ac_try;;
24197 esac
24198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24199 $as_echo "$ac_try_echo") >&5
24200   (eval "$ac_try") 2>&5
24201   ac_status=$?
24202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203   (exit $ac_status); }; }; then
24204    amanda_cv_working_ipv6=yes
24205 else
24206   $as_echo "$as_me: program exited with status $ac_status" >&5
24207 $as_echo "$as_me: failed program was:" >&5
24208 sed 's/^/| /' conftest.$ac_ext >&5
24209
24210 ( exit $ac_status )
24211  amanda_cv_working_ipv6=no
24212 fi
24213 rm -rf conftest.dSYM
24214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24215 fi
24216
24217
24218             esac
24219
24220 fi
24221 { $as_echo "$as_me:$LINENO: result: $amanda_cv_working_ipv6" >&5
24222 $as_echo "$amanda_cv_working_ipv6" >&6; }
24223
24224         if test "$amanda_cv_working_ipv6" = yes; then
24225             WORKING_IPV6=yes
24226
24227 cat >>confdefs.h <<\_ACEOF
24228 #define WORKING_IPV6 1
24229 _ACEOF
24230
24231         else
24232             # error out only if the user specifically requested support
24233             if test x"$amanda_with_ipv6" = x"yes"; then
24234                 { { $as_echo "$as_me:$LINENO: error: IPv6 support was requested, but it is not working." >&5
24235 $as_echo "$as_me: error: IPv6 support was requested, but it is not working." >&2;}
24236    { (exit 1); exit 1; }; }
24237             fi
24238         fi
24239     fi
24240
24241
24242
24243
24244 # Check whether --with-mmap was given.
24245 if test "${with_mmap+set}" = set; then
24246   withval=$with_mmap;
24247             case "$FORCE_MMAP" in
24248                 y | ye | yes | n | no) : ;;
24249                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-mmap." >&5
24250 $as_echo "$as_me: error: *** You must not supply an argument to --with-mmap." >&2;}
24251    { (exit 1); exit 1; }; } ;;
24252             esac
24253             FORCE_MMAP=$withval
24254
24255 else
24256    : ${FORCE_MMAP=no}
24257
24258 fi
24259
24260
24261
24262
24263
24264 for ac_header in \
24265             sys/shm.h \
24266             sys/mman.h \
24267
24268 do
24269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24271   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24272 $as_echo_n "checking for $ac_header... " >&6; }
24273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24274   $as_echo_n "(cached) " >&6
24275 fi
24276 ac_res=`eval 'as_val=${'$as_ac_Header'}
24277                  $as_echo "$as_val"'`
24278                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24279 $as_echo "$ac_res" >&6; }
24280 else
24281   # Is the header compilable?
24282 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24283 $as_echo_n "checking $ac_header usability... " >&6; }
24284 cat >conftest.$ac_ext <<_ACEOF
24285 /* confdefs.h.  */
24286 _ACEOF
24287 cat confdefs.h >>conftest.$ac_ext
24288 cat >>conftest.$ac_ext <<_ACEOF
24289 /* end confdefs.h.  */
24290 $ac_includes_default
24291 #include <$ac_header>
24292 _ACEOF
24293 rm -f conftest.$ac_objext
24294 if { (ac_try="$ac_compile"
24295 case "(($ac_try" in
24296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24297   *) ac_try_echo=$ac_try;;
24298 esac
24299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24300 $as_echo "$ac_try_echo") >&5
24301   (eval "$ac_compile") 2>conftest.er1
24302   ac_status=$?
24303   grep -v '^ *+' conftest.er1 >conftest.err
24304   rm -f conftest.er1
24305   cat conftest.err >&5
24306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24307   (exit $ac_status); } && {
24308          test -z "$ac_c_werror_flag" ||
24309          test ! -s conftest.err
24310        } && test -s conftest.$ac_objext; then
24311   ac_header_compiler=yes
24312 else
24313   $as_echo "$as_me: failed program was:" >&5
24314 sed 's/^/| /' conftest.$ac_ext >&5
24315
24316         ac_header_compiler=no
24317 fi
24318
24319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24320 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24321 $as_echo "$ac_header_compiler" >&6; }
24322
24323 # Is the header present?
24324 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24325 $as_echo_n "checking $ac_header presence... " >&6; }
24326 cat >conftest.$ac_ext <<_ACEOF
24327 /* confdefs.h.  */
24328 _ACEOF
24329 cat confdefs.h >>conftest.$ac_ext
24330 cat >>conftest.$ac_ext <<_ACEOF
24331 /* end confdefs.h.  */
24332 #include <$ac_header>
24333 _ACEOF
24334 if { (ac_try="$ac_cpp conftest.$ac_ext"
24335 case "(($ac_try" in
24336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24337   *) ac_try_echo=$ac_try;;
24338 esac
24339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24340 $as_echo "$ac_try_echo") >&5
24341   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24342   ac_status=$?
24343   grep -v '^ *+' conftest.er1 >conftest.err
24344   rm -f conftest.er1
24345   cat conftest.err >&5
24346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347   (exit $ac_status); } >/dev/null && {
24348          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24349          test ! -s conftest.err
24350        }; then
24351   ac_header_preproc=yes
24352 else
24353   $as_echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24355
24356   ac_header_preproc=no
24357 fi
24358
24359 rm -f conftest.err conftest.$ac_ext
24360 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24361 $as_echo "$ac_header_preproc" >&6; }
24362
24363 # So?  What about this header?
24364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24365   yes:no: )
24366     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24367 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24369 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24370     ac_header_preproc=yes
24371     ;;
24372   no:yes:* )
24373     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24374 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24375     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24376 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24377     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24378 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24379     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24380 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24381     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24383     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24384 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24385
24386     ;;
24387 esac
24388 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24389 $as_echo_n "checking for $ac_header... " >&6; }
24390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24391   $as_echo_n "(cached) " >&6
24392 else
24393   eval "$as_ac_Header=\$ac_header_preproc"
24394 fi
24395 ac_res=`eval 'as_val=${'$as_ac_Header'}
24396                  $as_echo "$as_val"'`
24397                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24398 $as_echo "$ac_res" >&6; }
24399
24400 fi
24401 as_val=`eval 'as_val=${'$as_ac_Header'}
24402                  $as_echo "$as_val"'`
24403    if test "x$as_val" = x""yes; then
24404   cat >>confdefs.h <<_ACEOF
24405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24406 _ACEOF
24407
24408 fi
24409
24410 done
24411
24412
24413
24414
24415 for ac_header in stdlib.h unistd.h
24416 do
24417 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24419   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24420 $as_echo_n "checking for $ac_header... " >&6; }
24421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24422   $as_echo_n "(cached) " >&6
24423 fi
24424 ac_res=`eval 'as_val=${'$as_ac_Header'}
24425                  $as_echo "$as_val"'`
24426                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24427 $as_echo "$ac_res" >&6; }
24428 else
24429   # Is the header compilable?
24430 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24431 $as_echo_n "checking $ac_header usability... " >&6; }
24432 cat >conftest.$ac_ext <<_ACEOF
24433 /* confdefs.h.  */
24434 _ACEOF
24435 cat confdefs.h >>conftest.$ac_ext
24436 cat >>conftest.$ac_ext <<_ACEOF
24437 /* end confdefs.h.  */
24438 $ac_includes_default
24439 #include <$ac_header>
24440 _ACEOF
24441 rm -f conftest.$ac_objext
24442 if { (ac_try="$ac_compile"
24443 case "(($ac_try" in
24444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24445   *) ac_try_echo=$ac_try;;
24446 esac
24447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24448 $as_echo "$ac_try_echo") >&5
24449   (eval "$ac_compile") 2>conftest.er1
24450   ac_status=$?
24451   grep -v '^ *+' conftest.er1 >conftest.err
24452   rm -f conftest.er1
24453   cat conftest.err >&5
24454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455   (exit $ac_status); } && {
24456          test -z "$ac_c_werror_flag" ||
24457          test ! -s conftest.err
24458        } && test -s conftest.$ac_objext; then
24459   ac_header_compiler=yes
24460 else
24461   $as_echo "$as_me: failed program was:" >&5
24462 sed 's/^/| /' conftest.$ac_ext >&5
24463
24464         ac_header_compiler=no
24465 fi
24466
24467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24468 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24469 $as_echo "$ac_header_compiler" >&6; }
24470
24471 # Is the header present?
24472 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24473 $as_echo_n "checking $ac_header presence... " >&6; }
24474 cat >conftest.$ac_ext <<_ACEOF
24475 /* confdefs.h.  */
24476 _ACEOF
24477 cat confdefs.h >>conftest.$ac_ext
24478 cat >>conftest.$ac_ext <<_ACEOF
24479 /* end confdefs.h.  */
24480 #include <$ac_header>
24481 _ACEOF
24482 if { (ac_try="$ac_cpp conftest.$ac_ext"
24483 case "(($ac_try" in
24484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24485   *) ac_try_echo=$ac_try;;
24486 esac
24487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24488 $as_echo "$ac_try_echo") >&5
24489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24490   ac_status=$?
24491   grep -v '^ *+' conftest.er1 >conftest.err
24492   rm -f conftest.er1
24493   cat conftest.err >&5
24494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495   (exit $ac_status); } >/dev/null && {
24496          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24497          test ! -s conftest.err
24498        }; then
24499   ac_header_preproc=yes
24500 else
24501   $as_echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24503
24504   ac_header_preproc=no
24505 fi
24506
24507 rm -f conftest.err conftest.$ac_ext
24508 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24509 $as_echo "$ac_header_preproc" >&6; }
24510
24511 # So?  What about this header?
24512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24513   yes:no: )
24514     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24515 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24516     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24517 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24518     ac_header_preproc=yes
24519     ;;
24520   no:yes:* )
24521     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24522 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24523     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24524 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24525     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24526 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24527     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24528 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24529     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24530 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24531     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24532 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24533
24534     ;;
24535 esac
24536 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24537 $as_echo_n "checking for $ac_header... " >&6; }
24538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24539   $as_echo_n "(cached) " >&6
24540 else
24541   eval "$as_ac_Header=\$ac_header_preproc"
24542 fi
24543 ac_res=`eval 'as_val=${'$as_ac_Header'}
24544                  $as_echo "$as_val"'`
24545                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24546 $as_echo "$ac_res" >&6; }
24547
24548 fi
24549 as_val=`eval 'as_val=${'$as_ac_Header'}
24550                  $as_echo "$as_val"'`
24551    if test "x$as_val" = x""yes; then
24552   cat >>confdefs.h <<_ACEOF
24553 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24554 _ACEOF
24555
24556 fi
24557
24558 done
24559
24560
24561 for ac_func in getpagesize
24562 do
24563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24564 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24565 $as_echo_n "checking for $ac_func... " >&6; }
24566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24567   $as_echo_n "(cached) " >&6
24568 else
24569   cat >conftest.$ac_ext <<_ACEOF
24570 /* confdefs.h.  */
24571 _ACEOF
24572 cat confdefs.h >>conftest.$ac_ext
24573 cat >>conftest.$ac_ext <<_ACEOF
24574 /* end confdefs.h.  */
24575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24577 #define $ac_func innocuous_$ac_func
24578
24579 /* System header to define __stub macros and hopefully few prototypes,
24580     which can conflict with char $ac_func (); below.
24581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24582     <limits.h> exists even on freestanding compilers.  */
24583
24584 #ifdef __STDC__
24585 # include <limits.h>
24586 #else
24587 # include <assert.h>
24588 #endif
24589
24590 #undef $ac_func
24591
24592 /* Override any GCC internal prototype to avoid an error.
24593    Use char because int might match the return type of a GCC
24594    builtin and then its argument prototype would still apply.  */
24595 #ifdef __cplusplus
24596 extern "C"
24597 #endif
24598 char $ac_func ();
24599 /* The GNU C library defines this for functions which it implements
24600     to always fail with ENOSYS.  Some functions are actually named
24601     something starting with __ and the normal name is an alias.  */
24602 #if defined __stub_$ac_func || defined __stub___$ac_func
24603 choke me
24604 #endif
24605
24606 int
24607 main ()
24608 {
24609 return $ac_func ();
24610   ;
24611   return 0;
24612 }
24613 _ACEOF
24614 rm -f conftest.$ac_objext conftest$ac_exeext
24615 if { (ac_try="$ac_link"
24616 case "(($ac_try" in
24617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24618   *) ac_try_echo=$ac_try;;
24619 esac
24620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24621 $as_echo "$ac_try_echo") >&5
24622   (eval "$ac_link") 2>conftest.er1
24623   ac_status=$?
24624   grep -v '^ *+' conftest.er1 >conftest.err
24625   rm -f conftest.er1
24626   cat conftest.err >&5
24627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628   (exit $ac_status); } && {
24629          test -z "$ac_c_werror_flag" ||
24630          test ! -s conftest.err
24631        } && test -s conftest$ac_exeext && {
24632          test "$cross_compiling" = yes ||
24633          $as_test_x conftest$ac_exeext
24634        }; then
24635   eval "$as_ac_var=yes"
24636 else
24637   $as_echo "$as_me: failed program was:" >&5
24638 sed 's/^/| /' conftest.$ac_ext >&5
24639
24640         eval "$as_ac_var=no"
24641 fi
24642
24643 rm -rf conftest.dSYM
24644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24645       conftest$ac_exeext conftest.$ac_ext
24646 fi
24647 ac_res=`eval 'as_val=${'$as_ac_var'}
24648                  $as_echo "$as_val"'`
24649                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24650 $as_echo "$ac_res" >&6; }
24651 as_val=`eval 'as_val=${'$as_ac_var'}
24652                  $as_echo "$as_val"'`
24653    if test "x$as_val" = x""yes; then
24654   cat >>confdefs.h <<_ACEOF
24655 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24656 _ACEOF
24657
24658 fi
24659 done
24660
24661 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
24662 $as_echo_n "checking for working mmap... " >&6; }
24663 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24664   $as_echo_n "(cached) " >&6
24665 else
24666   if test "$cross_compiling" = yes; then
24667   ac_cv_func_mmap_fixed_mapped=no
24668 else
24669   cat >conftest.$ac_ext <<_ACEOF
24670 /* confdefs.h.  */
24671 _ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h.  */
24675 $ac_includes_default
24676 /* malloc might have been renamed as rpl_malloc. */
24677 #undef malloc
24678
24679 /* Thanks to Mike Haertel and Jim Avera for this test.
24680    Here is a matrix of mmap possibilities:
24681         mmap private not fixed
24682         mmap private fixed at somewhere currently unmapped
24683         mmap private fixed at somewhere already mapped
24684         mmap shared not fixed
24685         mmap shared fixed at somewhere currently unmapped
24686         mmap shared fixed at somewhere already mapped
24687    For private mappings, we should verify that changes cannot be read()
24688    back from the file, nor mmap's back from the file at a different
24689    address.  (There have been systems where private was not correctly
24690    implemented like the infamous i386 svr4.0, and systems where the
24691    VM page cache was not coherent with the file system buffer cache
24692    like early versions of FreeBSD and possibly contemporary NetBSD.)
24693    For shared mappings, we should conversely verify that changes get
24694    propagated back to all the places they're supposed to be.
24695
24696    Grep wants private fixed already mapped.
24697    The main things grep needs to know about mmap are:
24698    * does it exist and is it safe to write into the mmap'd area
24699    * how to use it (BSD variants)  */
24700
24701 #include <fcntl.h>
24702 #include <sys/mman.h>
24703
24704 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24705 char *malloc ();
24706 #endif
24707
24708 /* This mess was copied from the GNU getpagesize.h.  */
24709 #ifndef HAVE_GETPAGESIZE
24710 /* Assume that all systems that can run configure have sys/param.h.  */
24711 # ifndef HAVE_SYS_PARAM_H
24712 #  define HAVE_SYS_PARAM_H 1
24713 # endif
24714
24715 # ifdef _SC_PAGESIZE
24716 #  define getpagesize() sysconf(_SC_PAGESIZE)
24717 # else /* no _SC_PAGESIZE */
24718 #  ifdef HAVE_SYS_PARAM_H
24719 #   include <sys/param.h>
24720 #   ifdef EXEC_PAGESIZE
24721 #    define getpagesize() EXEC_PAGESIZE
24722 #   else /* no EXEC_PAGESIZE */
24723 #    ifdef NBPG
24724 #     define getpagesize() NBPG * CLSIZE
24725 #     ifndef CLSIZE
24726 #      define CLSIZE 1
24727 #     endif /* no CLSIZE */
24728 #    else /* no NBPG */
24729 #     ifdef NBPC
24730 #      define getpagesize() NBPC
24731 #     else /* no NBPC */
24732 #      ifdef PAGESIZE
24733 #       define getpagesize() PAGESIZE
24734 #      endif /* PAGESIZE */
24735 #     endif /* no NBPC */
24736 #    endif /* no NBPG */
24737 #   endif /* no EXEC_PAGESIZE */
24738 #  else /* no HAVE_SYS_PARAM_H */
24739 #   define getpagesize() 8192   /* punt totally */
24740 #  endif /* no HAVE_SYS_PARAM_H */
24741 # endif /* no _SC_PAGESIZE */
24742
24743 #endif /* no HAVE_GETPAGESIZE */
24744
24745 int
24746 main ()
24747 {
24748   char *data, *data2, *data3;
24749   int i, pagesize;
24750   int fd;
24751
24752   pagesize = getpagesize ();
24753
24754   /* First, make a file with some known garbage in it. */
24755   data = (char *) malloc (pagesize);
24756   if (!data)
24757     return 1;
24758   for (i = 0; i < pagesize; ++i)
24759     *(data + i) = rand ();
24760   umask (0);
24761   fd = creat ("conftest.mmap", 0600);
24762   if (fd < 0)
24763     return 1;
24764   if (write (fd, data, pagesize) != pagesize)
24765     return 1;
24766   close (fd);
24767
24768   /* Next, try to mmap the file at a fixed address which already has
24769      something else allocated at it.  If we can, also make sure that
24770      we see the same garbage.  */
24771   fd = open ("conftest.mmap", O_RDWR);
24772   if (fd < 0)
24773     return 1;
24774   data2 = (char *) malloc (2 * pagesize);
24775   if (!data2)
24776     return 1;
24777   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
24778   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24779                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
24780     return 1;
24781   for (i = 0; i < pagesize; ++i)
24782     if (*(data + i) != *(data2 + i))
24783       return 1;
24784
24785   /* Finally, make sure that changes to the mapped area do not
24786      percolate back to the file as seen by read().  (This is a bug on
24787      some variants of i386 svr4.0.)  */
24788   for (i = 0; i < pagesize; ++i)
24789     *(data2 + i) = *(data2 + i) + 1;
24790   data3 = (char *) malloc (pagesize);
24791   if (!data3)
24792     return 1;
24793   if (read (fd, data3, pagesize) != pagesize)
24794     return 1;
24795   for (i = 0; i < pagesize; ++i)
24796     if (*(data + i) != *(data3 + i))
24797       return 1;
24798   close (fd);
24799   return 0;
24800 }
24801 _ACEOF
24802 rm -f conftest$ac_exeext
24803 if { (ac_try="$ac_link"
24804 case "(($ac_try" in
24805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806   *) ac_try_echo=$ac_try;;
24807 esac
24808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24809 $as_echo "$ac_try_echo") >&5
24810   (eval "$ac_link") 2>&5
24811   ac_status=$?
24812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24814   { (case "(($ac_try" in
24815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816   *) ac_try_echo=$ac_try;;
24817 esac
24818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24819 $as_echo "$ac_try_echo") >&5
24820   (eval "$ac_try") 2>&5
24821   ac_status=$?
24822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24823   (exit $ac_status); }; }; then
24824   ac_cv_func_mmap_fixed_mapped=yes
24825 else
24826   $as_echo "$as_me: program exited with status $ac_status" >&5
24827 $as_echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24829
24830 ( exit $ac_status )
24831 ac_cv_func_mmap_fixed_mapped=no
24832 fi
24833 rm -rf conftest.dSYM
24834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24835 fi
24836
24837
24838 fi
24839 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24840 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24841 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24842
24843 cat >>confdefs.h <<\_ACEOF
24844 #define HAVE_MMAP 1
24845 _ACEOF
24846
24847 fi
24848 rm -f conftest.mmap
24849
24850
24851
24852 for ac_func in shmget
24853 do
24854 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24855 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24856 $as_echo_n "checking for $ac_func... " >&6; }
24857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24858   $as_echo_n "(cached) " >&6
24859 else
24860   cat >conftest.$ac_ext <<_ACEOF
24861 /* confdefs.h.  */
24862 _ACEOF
24863 cat confdefs.h >>conftest.$ac_ext
24864 cat >>conftest.$ac_ext <<_ACEOF
24865 /* end confdefs.h.  */
24866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24868 #define $ac_func innocuous_$ac_func
24869
24870 /* System header to define __stub macros and hopefully few prototypes,
24871     which can conflict with char $ac_func (); below.
24872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24873     <limits.h> exists even on freestanding compilers.  */
24874
24875 #ifdef __STDC__
24876 # include <limits.h>
24877 #else
24878 # include <assert.h>
24879 #endif
24880
24881 #undef $ac_func
24882
24883 /* Override any GCC internal prototype to avoid an error.
24884    Use char because int might match the return type of a GCC
24885    builtin and then its argument prototype would still apply.  */
24886 #ifdef __cplusplus
24887 extern "C"
24888 #endif
24889 char $ac_func ();
24890 /* The GNU C library defines this for functions which it implements
24891     to always fail with ENOSYS.  Some functions are actually named
24892     something starting with __ and the normal name is an alias.  */
24893 #if defined __stub_$ac_func || defined __stub___$ac_func
24894 choke me
24895 #endif
24896
24897 int
24898 main ()
24899 {
24900 return $ac_func ();
24901   ;
24902   return 0;
24903 }
24904 _ACEOF
24905 rm -f conftest.$ac_objext conftest$ac_exeext
24906 if { (ac_try="$ac_link"
24907 case "(($ac_try" in
24908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24909   *) ac_try_echo=$ac_try;;
24910 esac
24911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24912 $as_echo "$ac_try_echo") >&5
24913   (eval "$ac_link") 2>conftest.er1
24914   ac_status=$?
24915   grep -v '^ *+' conftest.er1 >conftest.err
24916   rm -f conftest.er1
24917   cat conftest.err >&5
24918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919   (exit $ac_status); } && {
24920          test -z "$ac_c_werror_flag" ||
24921          test ! -s conftest.err
24922        } && test -s conftest$ac_exeext && {
24923          test "$cross_compiling" = yes ||
24924          $as_test_x conftest$ac_exeext
24925        }; then
24926   eval "$as_ac_var=yes"
24927 else
24928   $as_echo "$as_me: failed program was:" >&5
24929 sed 's/^/| /' conftest.$ac_ext >&5
24930
24931         eval "$as_ac_var=no"
24932 fi
24933
24934 rm -rf conftest.dSYM
24935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24936       conftest$ac_exeext conftest.$ac_ext
24937 fi
24938 ac_res=`eval 'as_val=${'$as_ac_var'}
24939                  $as_echo "$as_val"'`
24940                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24941 $as_echo "$ac_res" >&6; }
24942 as_val=`eval 'as_val=${'$as_ac_var'}
24943                  $as_echo "$as_val"'`
24944    if test "x$as_val" = x""yes; then
24945   cat >>confdefs.h <<_ACEOF
24946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24947 _ACEOF
24948
24949
24950
24951
24952
24953 for ac_header in sys/types.h \
24954             sys/ipc.h \
24955             sys/shm.h \
24956
24957 do
24958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24960   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24961 $as_echo_n "checking for $ac_header... " >&6; }
24962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24963   $as_echo_n "(cached) " >&6
24964 fi
24965 ac_res=`eval 'as_val=${'$as_ac_Header'}
24966                  $as_echo "$as_val"'`
24967                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24968 $as_echo "$ac_res" >&6; }
24969 else
24970   # Is the header compilable?
24971 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24972 $as_echo_n "checking $ac_header usability... " >&6; }
24973 cat >conftest.$ac_ext <<_ACEOF
24974 /* confdefs.h.  */
24975 _ACEOF
24976 cat confdefs.h >>conftest.$ac_ext
24977 cat >>conftest.$ac_ext <<_ACEOF
24978 /* end confdefs.h.  */
24979 $ac_includes_default
24980 #include <$ac_header>
24981 _ACEOF
24982 rm -f conftest.$ac_objext
24983 if { (ac_try="$ac_compile"
24984 case "(($ac_try" in
24985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24986   *) ac_try_echo=$ac_try;;
24987 esac
24988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24989 $as_echo "$ac_try_echo") >&5
24990   (eval "$ac_compile") 2>conftest.er1
24991   ac_status=$?
24992   grep -v '^ *+' conftest.er1 >conftest.err
24993   rm -f conftest.er1
24994   cat conftest.err >&5
24995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996   (exit $ac_status); } && {
24997          test -z "$ac_c_werror_flag" ||
24998          test ! -s conftest.err
24999        } && test -s conftest.$ac_objext; then
25000   ac_header_compiler=yes
25001 else
25002   $as_echo "$as_me: failed program was:" >&5
25003 sed 's/^/| /' conftest.$ac_ext >&5
25004
25005         ac_header_compiler=no
25006 fi
25007
25008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25009 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25010 $as_echo "$ac_header_compiler" >&6; }
25011
25012 # Is the header present?
25013 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25014 $as_echo_n "checking $ac_header presence... " >&6; }
25015 cat >conftest.$ac_ext <<_ACEOF
25016 /* confdefs.h.  */
25017 _ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h.  */
25021 #include <$ac_header>
25022 _ACEOF
25023 if { (ac_try="$ac_cpp conftest.$ac_ext"
25024 case "(($ac_try" in
25025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25026   *) ac_try_echo=$ac_try;;
25027 esac
25028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25029 $as_echo "$ac_try_echo") >&5
25030   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25031   ac_status=$?
25032   grep -v '^ *+' conftest.er1 >conftest.err
25033   rm -f conftest.er1
25034   cat conftest.err >&5
25035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036   (exit $ac_status); } >/dev/null && {
25037          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25038          test ! -s conftest.err
25039        }; then
25040   ac_header_preproc=yes
25041 else
25042   $as_echo "$as_me: failed program was:" >&5
25043 sed 's/^/| /' conftest.$ac_ext >&5
25044
25045   ac_header_preproc=no
25046 fi
25047
25048 rm -f conftest.err conftest.$ac_ext
25049 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25050 $as_echo "$ac_header_preproc" >&6; }
25051
25052 # So?  What about this header?
25053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25054   yes:no: )
25055     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25056 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25057     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25058 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25059     ac_header_preproc=yes
25060     ;;
25061   no:yes:* )
25062     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25063 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25064     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25065 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25066     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25067 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25068     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25069 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25070     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25071 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25072     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25073 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25074
25075     ;;
25076 esac
25077 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25078 $as_echo_n "checking for $ac_header... " >&6; }
25079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25080   $as_echo_n "(cached) " >&6
25081 else
25082   eval "$as_ac_Header=\$ac_header_preproc"
25083 fi
25084 ac_res=`eval 'as_val=${'$as_ac_Header'}
25085                  $as_echo "$as_val"'`
25086                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25087 $as_echo "$ac_res" >&6; }
25088
25089 fi
25090 as_val=`eval 'as_val=${'$as_ac_Header'}
25091                  $as_echo "$as_val"'`
25092    if test "x$as_val" = x""yes; then
25093   cat >>confdefs.h <<_ACEOF
25094 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25095 _ACEOF
25096
25097 fi
25098
25099 done
25100
25101
25102         { $as_echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
25103 $as_echo_n "checking for shmdt() argument type... " >&6; }
25104 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
25105   $as_echo_n "(cached) " >&6
25106 else
25107
25108                 if test "$ac_cv_func_shmget" = yes; then
25109                     cat <<EOF >conftest.$ac_ext
25110 #include "confdefs.h"
25111 #ifdef HAVE_SYS_TYPES_H
25112 # include <sys/types.h>
25113 #endif
25114 #ifdef HAVE_SYS_IPC_H
25115 # include <sys/ipc.h>
25116 #endif
25117 #ifdef HAVE_SYS_SHM_H
25118 # include <sys/shm.h>
25119 #endif
25120
25121 #ifdef __cplusplus
25122 extern "C" void *shmat(int, void *, int);
25123 #else
25124 void *shmat();
25125 #endif
25126
25127 int main()
25128 {
25129     int i;
25130     return 0;
25131 }
25132 EOF
25133                     ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
25134                     if test $? = 0; then
25135                         amanda_cv_shmdt_arg_type=void
25136                     else
25137                         amanda_cv_shmdt_arg_type=char
25138                     fi
25139                     rm -f conftest*
25140                 else
25141                     amanda_cv_shmdt_arg_type=nothing
25142                 fi
25143
25144
25145 fi
25146 { $as_echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
25147 $as_echo "$amanda_cv_shmdt_arg_type" >&6; }
25148
25149 cat >>confdefs.h <<_ACEOF
25150 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
25151 _ACEOF
25152
25153
25154
25155             case "$FORCE_MMAP" in
25156             n | no)
25157
25158 cat >>confdefs.h <<\_ACEOF
25159 #define HAVE_SYSVSHM 1
25160 _ACEOF
25161
25162               ;;
25163             esac
25164
25165
25166 fi
25167 done
25168
25169
25170 ice_have_shmat=no
25171
25172 for ac_func in shmat
25173 do
25174 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25175 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25176 $as_echo_n "checking for $ac_func... " >&6; }
25177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25178   $as_echo_n "(cached) " >&6
25179 else
25180   cat >conftest.$ac_ext <<_ACEOF
25181 /* confdefs.h.  */
25182 _ACEOF
25183 cat confdefs.h >>conftest.$ac_ext
25184 cat >>conftest.$ac_ext <<_ACEOF
25185 /* end confdefs.h.  */
25186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25188 #define $ac_func innocuous_$ac_func
25189
25190 /* System header to define __stub macros and hopefully few prototypes,
25191     which can conflict with char $ac_func (); below.
25192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25193     <limits.h> exists even on freestanding compilers.  */
25194
25195 #ifdef __STDC__
25196 # include <limits.h>
25197 #else
25198 # include <assert.h>
25199 #endif
25200
25201 #undef $ac_func
25202
25203 /* Override any GCC internal prototype to avoid an error.
25204    Use char because int might match the return type of a GCC
25205    builtin and then its argument prototype would still apply.  */
25206 #ifdef __cplusplus
25207 extern "C"
25208 #endif
25209 char $ac_func ();
25210 /* The GNU C library defines this for functions which it implements
25211     to always fail with ENOSYS.  Some functions are actually named
25212     something starting with __ and the normal name is an alias.  */
25213 #if defined __stub_$ac_func || defined __stub___$ac_func
25214 choke me
25215 #endif
25216
25217 int
25218 main ()
25219 {
25220 return $ac_func ();
25221   ;
25222   return 0;
25223 }
25224 _ACEOF
25225 rm -f conftest.$ac_objext conftest$ac_exeext
25226 if { (ac_try="$ac_link"
25227 case "(($ac_try" in
25228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25229   *) ac_try_echo=$ac_try;;
25230 esac
25231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25232 $as_echo "$ac_try_echo") >&5
25233   (eval "$ac_link") 2>conftest.er1
25234   ac_status=$?
25235   grep -v '^ *+' conftest.er1 >conftest.err
25236   rm -f conftest.er1
25237   cat conftest.err >&5
25238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239   (exit $ac_status); } && {
25240          test -z "$ac_c_werror_flag" ||
25241          test ! -s conftest.err
25242        } && test -s conftest$ac_exeext && {
25243          test "$cross_compiling" = yes ||
25244          $as_test_x conftest$ac_exeext
25245        }; then
25246   eval "$as_ac_var=yes"
25247 else
25248   $as_echo "$as_me: failed program was:" >&5
25249 sed 's/^/| /' conftest.$ac_ext >&5
25250
25251         eval "$as_ac_var=no"
25252 fi
25253
25254 rm -rf conftest.dSYM
25255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25256       conftest$ac_exeext conftest.$ac_ext
25257 fi
25258 ac_res=`eval 'as_val=${'$as_ac_var'}
25259                  $as_echo "$as_val"'`
25260                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25261 $as_echo "$ac_res" >&6; }
25262 as_val=`eval 'as_val=${'$as_ac_var'}
25263                  $as_echo "$as_val"'`
25264    if test "x$as_val" = x""yes; then
25265   cat >>confdefs.h <<_ACEOF
25266 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25267 _ACEOF
25268  ice_have_shmat=yes
25269 fi
25270 done
25271
25272 if test "${ice_have_shmat}" = yes; then
25273 { $as_echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
25274 $as_echo_n "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
25275 if test "${ice_cv_have_shmat_decl+set}" = set; then
25276   $as_echo_n "(cached) " >&6
25277 else
25278
25279 ice_cv_have_shmat_decl=no
25280 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
25281 ice_re_word='(^|[^a-zA-Z0-9_])'
25282 for header in sys/types.h sys/ipc.h sys/shm.h; do
25283 # Check for ordinary declaration
25284 cat >conftest.$ac_ext <<_ACEOF
25285 /* confdefs.h.  */
25286 _ACEOF
25287 cat confdefs.h >>conftest.$ac_ext
25288 cat >>conftest.$ac_ext <<_ACEOF
25289 /* end confdefs.h.  */
25290 #include <$header>
25291
25292 _ACEOF
25293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25294   $EGREP "${ice_re_word}shmat[  ]*\(" >/dev/null 2>&1; then
25295   ice_cv_have_shmat_decl=yes
25296 fi
25297 rm -f conftest*
25298
25299 if test "$ice_cv_have_shmat_decl" = yes; then
25300         break
25301 fi
25302 # Check for "fixed" declaration like "getpid _PARAMS((int))"
25303 cat >conftest.$ac_ext <<_ACEOF
25304 /* confdefs.h.  */
25305 _ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h.  */
25309 #include <$header>
25310
25311 _ACEOF
25312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25313   $EGREP "${ice_re_word}shmat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
25314   ice_cv_have_shmat_decl=yes
25315 fi
25316 rm -f conftest*
25317
25318 if test "$ice_cv_have_shmat_decl" = yes; then
25319         break
25320 fi
25321 done
25322
25323 fi
25324
25325 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
25326 $as_echo "$ice_cv_have_shmat_decl" >&6; }
25327 if test "$ice_cv_have_shmat_decl" = yes; then
25328
25329 cat >>confdefs.h <<_ACEOF
25330 #define HAVE_SHMAT_DECL 1
25331 _ACEOF
25332
25333 fi
25334 fi
25335
25336
25337 ice_have_shmctl=no
25338
25339 for ac_func in shmctl
25340 do
25341 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25342 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25343 $as_echo_n "checking for $ac_func... " >&6; }
25344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25345   $as_echo_n "(cached) " >&6
25346 else
25347   cat >conftest.$ac_ext <<_ACEOF
25348 /* confdefs.h.  */
25349 _ACEOF
25350 cat confdefs.h >>conftest.$ac_ext
25351 cat >>conftest.$ac_ext <<_ACEOF
25352 /* end confdefs.h.  */
25353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25355 #define $ac_func innocuous_$ac_func
25356
25357 /* System header to define __stub macros and hopefully few prototypes,
25358     which can conflict with char $ac_func (); below.
25359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25360     <limits.h> exists even on freestanding compilers.  */
25361
25362 #ifdef __STDC__
25363 # include <limits.h>
25364 #else
25365 # include <assert.h>
25366 #endif
25367
25368 #undef $ac_func
25369
25370 /* Override any GCC internal prototype to avoid an error.
25371    Use char because int might match the return type of a GCC
25372    builtin and then its argument prototype would still apply.  */
25373 #ifdef __cplusplus
25374 extern "C"
25375 #endif
25376 char $ac_func ();
25377 /* The GNU C library defines this for functions which it implements
25378     to always fail with ENOSYS.  Some functions are actually named
25379     something starting with __ and the normal name is an alias.  */
25380 #if defined __stub_$ac_func || defined __stub___$ac_func
25381 choke me
25382 #endif
25383
25384 int
25385 main ()
25386 {
25387 return $ac_func ();
25388   ;
25389   return 0;
25390 }
25391 _ACEOF
25392 rm -f conftest.$ac_objext conftest$ac_exeext
25393 if { (ac_try="$ac_link"
25394 case "(($ac_try" in
25395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25396   *) ac_try_echo=$ac_try;;
25397 esac
25398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25399 $as_echo "$ac_try_echo") >&5
25400   (eval "$ac_link") 2>conftest.er1
25401   ac_status=$?
25402   grep -v '^ *+' conftest.er1 >conftest.err
25403   rm -f conftest.er1
25404   cat conftest.err >&5
25405   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406   (exit $ac_status); } && {
25407          test -z "$ac_c_werror_flag" ||
25408          test ! -s conftest.err
25409        } && test -s conftest$ac_exeext && {
25410          test "$cross_compiling" = yes ||
25411          $as_test_x conftest$ac_exeext
25412        }; then
25413   eval "$as_ac_var=yes"
25414 else
25415   $as_echo "$as_me: failed program was:" >&5
25416 sed 's/^/| /' conftest.$ac_ext >&5
25417
25418         eval "$as_ac_var=no"
25419 fi
25420
25421 rm -rf conftest.dSYM
25422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25423       conftest$ac_exeext conftest.$ac_ext
25424 fi
25425 ac_res=`eval 'as_val=${'$as_ac_var'}
25426                  $as_echo "$as_val"'`
25427                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25428 $as_echo "$ac_res" >&6; }
25429 as_val=`eval 'as_val=${'$as_ac_var'}
25430                  $as_echo "$as_val"'`
25431    if test "x$as_val" = x""yes; then
25432   cat >>confdefs.h <<_ACEOF
25433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25434 _ACEOF
25435  ice_have_shmctl=yes
25436 fi
25437 done
25438
25439 if test "${ice_have_shmctl}" = yes; then
25440 { $as_echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
25441 $as_echo_n "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
25442 if test "${ice_cv_have_shmctl_decl+set}" = set; then
25443   $as_echo_n "(cached) " >&6
25444 else
25445
25446 ice_cv_have_shmctl_decl=no
25447 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
25448 ice_re_word='(^|[^a-zA-Z0-9_])'
25449 for header in sys/types.h sys/ipc.h sys/shm.h; do
25450 # Check for ordinary declaration
25451 cat >conftest.$ac_ext <<_ACEOF
25452 /* confdefs.h.  */
25453 _ACEOF
25454 cat confdefs.h >>conftest.$ac_ext
25455 cat >>conftest.$ac_ext <<_ACEOF
25456 /* end confdefs.h.  */
25457 #include <$header>
25458
25459 _ACEOF
25460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25461   $EGREP "${ice_re_word}shmctl[         ]*\(" >/dev/null 2>&1; then
25462   ice_cv_have_shmctl_decl=yes
25463 fi
25464 rm -f conftest*
25465
25466 if test "$ice_cv_have_shmctl_decl" = yes; then
25467         break
25468 fi
25469 # Check for "fixed" declaration like "getpid _PARAMS((int))"
25470 cat >conftest.$ac_ext <<_ACEOF
25471 /* confdefs.h.  */
25472 _ACEOF
25473 cat confdefs.h >>conftest.$ac_ext
25474 cat >>conftest.$ac_ext <<_ACEOF
25475 /* end confdefs.h.  */
25476 #include <$header>
25477
25478 _ACEOF
25479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25480   $EGREP "${ice_re_word}shmctl[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
25481   ice_cv_have_shmctl_decl=yes
25482 fi
25483 rm -f conftest*
25484
25485 if test "$ice_cv_have_shmctl_decl" = yes; then
25486         break
25487 fi
25488 done
25489
25490 fi
25491
25492 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
25493 $as_echo "$ice_cv_have_shmctl_decl" >&6; }
25494 if test "$ice_cv_have_shmctl_decl" = yes; then
25495
25496 cat >>confdefs.h <<_ACEOF
25497 #define HAVE_SHMCTL_DECL 1
25498 _ACEOF
25499
25500 fi
25501 fi
25502
25503
25504 ice_have_shmdt=no
25505
25506 for ac_func in shmdt
25507 do
25508 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25509 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25510 $as_echo_n "checking for $ac_func... " >&6; }
25511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25512   $as_echo_n "(cached) " >&6
25513 else
25514   cat >conftest.$ac_ext <<_ACEOF
25515 /* confdefs.h.  */
25516 _ACEOF
25517 cat confdefs.h >>conftest.$ac_ext
25518 cat >>conftest.$ac_ext <<_ACEOF
25519 /* end confdefs.h.  */
25520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25522 #define $ac_func innocuous_$ac_func
25523
25524 /* System header to define __stub macros and hopefully few prototypes,
25525     which can conflict with char $ac_func (); below.
25526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25527     <limits.h> exists even on freestanding compilers.  */
25528
25529 #ifdef __STDC__
25530 # include <limits.h>
25531 #else
25532 # include <assert.h>
25533 #endif
25534
25535 #undef $ac_func
25536
25537 /* Override any GCC internal prototype to avoid an error.
25538    Use char because int might match the return type of a GCC
25539    builtin and then its argument prototype would still apply.  */
25540 #ifdef __cplusplus
25541 extern "C"
25542 #endif
25543 char $ac_func ();
25544 /* The GNU C library defines this for functions which it implements
25545     to always fail with ENOSYS.  Some functions are actually named
25546     something starting with __ and the normal name is an alias.  */
25547 #if defined __stub_$ac_func || defined __stub___$ac_func
25548 choke me
25549 #endif
25550
25551 int
25552 main ()
25553 {
25554 return $ac_func ();
25555   ;
25556   return 0;
25557 }
25558 _ACEOF
25559 rm -f conftest.$ac_objext conftest$ac_exeext
25560 if { (ac_try="$ac_link"
25561 case "(($ac_try" in
25562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25563   *) ac_try_echo=$ac_try;;
25564 esac
25565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25566 $as_echo "$ac_try_echo") >&5
25567   (eval "$ac_link") 2>conftest.er1
25568   ac_status=$?
25569   grep -v '^ *+' conftest.er1 >conftest.err
25570   rm -f conftest.er1
25571   cat conftest.err >&5
25572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573   (exit $ac_status); } && {
25574          test -z "$ac_c_werror_flag" ||
25575          test ! -s conftest.err
25576        } && test -s conftest$ac_exeext && {
25577          test "$cross_compiling" = yes ||
25578          $as_test_x conftest$ac_exeext
25579        }; then
25580   eval "$as_ac_var=yes"
25581 else
25582   $as_echo "$as_me: failed program was:" >&5
25583 sed 's/^/| /' conftest.$ac_ext >&5
25584
25585         eval "$as_ac_var=no"
25586 fi
25587
25588 rm -rf conftest.dSYM
25589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25590       conftest$ac_exeext conftest.$ac_ext
25591 fi
25592 ac_res=`eval 'as_val=${'$as_ac_var'}
25593                  $as_echo "$as_val"'`
25594                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25595 $as_echo "$ac_res" >&6; }
25596 as_val=`eval 'as_val=${'$as_ac_var'}
25597                  $as_echo "$as_val"'`
25598    if test "x$as_val" = x""yes; then
25599   cat >>confdefs.h <<_ACEOF
25600 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25601 _ACEOF
25602  ice_have_shmdt=yes
25603 fi
25604 done
25605
25606 if test "${ice_have_shmdt}" = yes; then
25607 { $as_echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
25608 $as_echo_n "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
25609 if test "${ice_cv_have_shmdt_decl+set}" = set; then
25610   $as_echo_n "(cached) " >&6
25611 else
25612
25613 ice_cv_have_shmdt_decl=no
25614 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
25615 ice_re_word='(^|[^a-zA-Z0-9_])'
25616 for header in sys/types.h sys/ipc.h sys/shm.h; do
25617 # Check for ordinary declaration
25618 cat >conftest.$ac_ext <<_ACEOF
25619 /* confdefs.h.  */
25620 _ACEOF
25621 cat confdefs.h >>conftest.$ac_ext
25622 cat >>conftest.$ac_ext <<_ACEOF
25623 /* end confdefs.h.  */
25624 #include <$header>
25625
25626 _ACEOF
25627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25628   $EGREP "${ice_re_word}shmdt[  ]*\(" >/dev/null 2>&1; then
25629   ice_cv_have_shmdt_decl=yes
25630 fi
25631 rm -f conftest*
25632
25633 if test "$ice_cv_have_shmdt_decl" = yes; then
25634         break
25635 fi
25636 # Check for "fixed" declaration like "getpid _PARAMS((int))"
25637 cat >conftest.$ac_ext <<_ACEOF
25638 /* confdefs.h.  */
25639 _ACEOF
25640 cat confdefs.h >>conftest.$ac_ext
25641 cat >>conftest.$ac_ext <<_ACEOF
25642 /* end confdefs.h.  */
25643 #include <$header>
25644
25645 _ACEOF
25646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25647   $EGREP "${ice_re_word}shmdt[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
25648   ice_cv_have_shmdt_decl=yes
25649 fi
25650 rm -f conftest*
25651
25652 if test "$ice_cv_have_shmdt_decl" = yes; then
25653         break
25654 fi
25655 done
25656
25657 fi
25658
25659 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
25660 $as_echo "$ice_cv_have_shmdt_decl" >&6; }
25661 if test "$ice_cv_have_shmdt_decl" = yes; then
25662
25663 cat >>confdefs.h <<_ACEOF
25664 #define HAVE_SHMDT_DECL 1
25665 _ACEOF
25666
25667 fi
25668 fi
25669
25670
25671 ice_have_shmget=no
25672
25673 for ac_func in shmget
25674 do
25675 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25676 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25677 $as_echo_n "checking for $ac_func... " >&6; }
25678 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25679   $as_echo_n "(cached) " >&6
25680 else
25681   cat >conftest.$ac_ext <<_ACEOF
25682 /* confdefs.h.  */
25683 _ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h.  */
25687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25689 #define $ac_func innocuous_$ac_func
25690
25691 /* System header to define __stub macros and hopefully few prototypes,
25692     which can conflict with char $ac_func (); below.
25693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25694     <limits.h> exists even on freestanding compilers.  */
25695
25696 #ifdef __STDC__
25697 # include <limits.h>
25698 #else
25699 # include <assert.h>
25700 #endif
25701
25702 #undef $ac_func
25703
25704 /* Override any GCC internal prototype to avoid an error.
25705    Use char because int might match the return type of a GCC
25706    builtin and then its argument prototype would still apply.  */
25707 #ifdef __cplusplus
25708 extern "C"
25709 #endif
25710 char $ac_func ();
25711 /* The GNU C library defines this for functions which it implements
25712     to always fail with ENOSYS.  Some functions are actually named
25713     something starting with __ and the normal name is an alias.  */
25714 #if defined __stub_$ac_func || defined __stub___$ac_func
25715 choke me
25716 #endif
25717
25718 int
25719 main ()
25720 {
25721 return $ac_func ();
25722   ;
25723   return 0;
25724 }
25725 _ACEOF
25726 rm -f conftest.$ac_objext conftest$ac_exeext
25727 if { (ac_try="$ac_link"
25728 case "(($ac_try" in
25729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25730   *) ac_try_echo=$ac_try;;
25731 esac
25732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25733 $as_echo "$ac_try_echo") >&5
25734   (eval "$ac_link") 2>conftest.er1
25735   ac_status=$?
25736   grep -v '^ *+' conftest.er1 >conftest.err
25737   rm -f conftest.er1
25738   cat conftest.err >&5
25739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740   (exit $ac_status); } && {
25741          test -z "$ac_c_werror_flag" ||
25742          test ! -s conftest.err
25743        } && test -s conftest$ac_exeext && {
25744          test "$cross_compiling" = yes ||
25745          $as_test_x conftest$ac_exeext
25746        }; then
25747   eval "$as_ac_var=yes"
25748 else
25749   $as_echo "$as_me: failed program was:" >&5
25750 sed 's/^/| /' conftest.$ac_ext >&5
25751
25752         eval "$as_ac_var=no"
25753 fi
25754
25755 rm -rf conftest.dSYM
25756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25757       conftest$ac_exeext conftest.$ac_ext
25758 fi
25759 ac_res=`eval 'as_val=${'$as_ac_var'}
25760                  $as_echo "$as_val"'`
25761                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25762 $as_echo "$ac_res" >&6; }
25763 as_val=`eval 'as_val=${'$as_ac_var'}
25764                  $as_echo "$as_val"'`
25765    if test "x$as_val" = x""yes; then
25766   cat >>confdefs.h <<_ACEOF
25767 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25768 _ACEOF
25769  ice_have_shmget=yes
25770 fi
25771 done
25772
25773 if test "${ice_have_shmget}" = yes; then
25774 { $as_echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
25775 $as_echo_n "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
25776 if test "${ice_cv_have_shmget_decl+set}" = set; then
25777   $as_echo_n "(cached) " >&6
25778 else
25779
25780 ice_cv_have_shmget_decl=no
25781 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
25782 ice_re_word='(^|[^a-zA-Z0-9_])'
25783 for header in sys/types.h sys/ipc.h sys/shm.h; do
25784 # Check for ordinary declaration
25785 cat >conftest.$ac_ext <<_ACEOF
25786 /* confdefs.h.  */
25787 _ACEOF
25788 cat confdefs.h >>conftest.$ac_ext
25789 cat >>conftest.$ac_ext <<_ACEOF
25790 /* end confdefs.h.  */
25791 #include <$header>
25792
25793 _ACEOF
25794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25795   $EGREP "${ice_re_word}shmget[         ]*\(" >/dev/null 2>&1; then
25796   ice_cv_have_shmget_decl=yes
25797 fi
25798 rm -f conftest*
25799
25800 if test "$ice_cv_have_shmget_decl" = yes; then
25801         break
25802 fi
25803 # Check for "fixed" declaration like "getpid _PARAMS((int))"
25804 cat >conftest.$ac_ext <<_ACEOF
25805 /* confdefs.h.  */
25806 _ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h.  */
25810 #include <$header>
25811
25812 _ACEOF
25813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25814   $EGREP "${ice_re_word}shmget[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
25815   ice_cv_have_shmget_decl=yes
25816 fi
25817 rm -f conftest*
25818
25819 if test "$ice_cv_have_shmget_decl" = yes; then
25820         break
25821 fi
25822 done
25823
25824 fi
25825
25826 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
25827 $as_echo "$ice_cv_have_shmget_decl" >&6; }
25828 if test "$ice_cv_have_shmget_decl" = yes; then
25829
25830 cat >>confdefs.h <<_ACEOF
25831 #define HAVE_SHMGET_DECL 1
25832 _ACEOF
25833
25834 fi
25835 fi
25836
25837
25838     if test "x$ac_cv_func_mmap_fixed_mapped" != xyes; then
25839         case "$FORCE_MMAP" in
25840         n | no)
25841             if test "x$ac_cv_func_shmget" != xyes; then
25842
25843     { $as_echo "$as_me:$LINENO: WARNING: Neither shmget() nor mmap() found. This system will not support the Amanda server." >&5
25844 $as_echo "$as_me: WARNING: Neither shmget() nor mmap() found. This system will not support the Amanda server." >&2;}
25845
25846
25847     cat <<AAW_EOF >>config.warnings
25848 Neither shmget() nor mmap() found. This system will not support the Amanda server.
25849 AAW_EOF
25850
25851
25852                 NO_SERVER_MODE=true
25853             fi
25854           ;;
25855         y | ye | yes)
25856
25857     { $as_echo "$as_me:$LINENO: WARNING: --with-mmap used on a system with no mmap() support.  This system will not support the Amanda server." >&5
25858 $as_echo "$as_me: WARNING: --with-mmap used on a system with no mmap() support.  This system will not support the Amanda server." >&2;}
25859
25860
25861     cat <<AAW_EOF >>config.warnings
25862 --with-mmap used on a system with no mmap() support.  This system will not support the Amanda server.
25863 AAW_EOF
25864
25865
25866             NO_SERVER_MODE=true
25867           ;;
25868         esac
25869     fi
25870
25871
25872
25873
25874
25875
25876
25877 ac_header_dirent=no
25878 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25879   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25880 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25881 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25883   $as_echo_n "(cached) " >&6
25884 else
25885   cat >conftest.$ac_ext <<_ACEOF
25886 /* confdefs.h.  */
25887 _ACEOF
25888 cat confdefs.h >>conftest.$ac_ext
25889 cat >>conftest.$ac_ext <<_ACEOF
25890 /* end confdefs.h.  */
25891 #include <sys/types.h>
25892 #include <$ac_hdr>
25893
25894 int
25895 main ()
25896 {
25897 if ((DIR *) 0)
25898 return 0;
25899   ;
25900   return 0;
25901 }
25902 _ACEOF
25903 rm -f conftest.$ac_objext
25904 if { (ac_try="$ac_compile"
25905 case "(($ac_try" in
25906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25907   *) ac_try_echo=$ac_try;;
25908 esac
25909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25910 $as_echo "$ac_try_echo") >&5
25911   (eval "$ac_compile") 2>conftest.er1
25912   ac_status=$?
25913   grep -v '^ *+' conftest.er1 >conftest.err
25914   rm -f conftest.er1
25915   cat conftest.err >&5
25916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917   (exit $ac_status); } && {
25918          test -z "$ac_c_werror_flag" ||
25919          test ! -s conftest.err
25920        } && test -s conftest.$ac_objext; then
25921   eval "$as_ac_Header=yes"
25922 else
25923   $as_echo "$as_me: failed program was:" >&5
25924 sed 's/^/| /' conftest.$ac_ext >&5
25925
25926         eval "$as_ac_Header=no"
25927 fi
25928
25929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25930 fi
25931 ac_res=`eval 'as_val=${'$as_ac_Header'}
25932                  $as_echo "$as_val"'`
25933                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25934 $as_echo "$ac_res" >&6; }
25935 as_val=`eval 'as_val=${'$as_ac_Header'}
25936                  $as_echo "$as_val"'`
25937    if test "x$as_val" = x""yes; then
25938   cat >>confdefs.h <<_ACEOF
25939 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25940 _ACEOF
25941
25942 ac_header_dirent=$ac_hdr; break
25943 fi
25944
25945 done
25946 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25947 if test $ac_header_dirent = dirent.h; then
25948   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
25949 $as_echo_n "checking for library containing opendir... " >&6; }
25950 if test "${ac_cv_search_opendir+set}" = set; then
25951   $as_echo_n "(cached) " >&6
25952 else
25953   ac_func_search_save_LIBS=$LIBS
25954 cat >conftest.$ac_ext <<_ACEOF
25955 /* confdefs.h.  */
25956 _ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h.  */
25960
25961 /* Override any GCC internal prototype to avoid an error.
25962    Use char because int might match the return type of a GCC
25963    builtin and then its argument prototype would still apply.  */
25964 #ifdef __cplusplus
25965 extern "C"
25966 #endif
25967 char opendir ();
25968 int
25969 main ()
25970 {
25971 return opendir ();
25972   ;
25973   return 0;
25974 }
25975 _ACEOF
25976 for ac_lib in '' dir; do
25977   if test -z "$ac_lib"; then
25978     ac_res="none required"
25979   else
25980     ac_res=-l$ac_lib
25981     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25982   fi
25983   rm -f conftest.$ac_objext conftest$ac_exeext
25984 if { (ac_try="$ac_link"
25985 case "(($ac_try" in
25986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25987   *) ac_try_echo=$ac_try;;
25988 esac
25989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25990 $as_echo "$ac_try_echo") >&5
25991   (eval "$ac_link") 2>conftest.er1
25992   ac_status=$?
25993   grep -v '^ *+' conftest.er1 >conftest.err
25994   rm -f conftest.er1
25995   cat conftest.err >&5
25996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25997   (exit $ac_status); } && {
25998          test -z "$ac_c_werror_flag" ||
25999          test ! -s conftest.err
26000        } && test -s conftest$ac_exeext && {
26001          test "$cross_compiling" = yes ||
26002          $as_test_x conftest$ac_exeext
26003        }; then
26004   ac_cv_search_opendir=$ac_res
26005 else
26006   $as_echo "$as_me: failed program was:" >&5
26007 sed 's/^/| /' conftest.$ac_ext >&5
26008
26009
26010 fi
26011
26012 rm -rf conftest.dSYM
26013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26014       conftest$ac_exeext
26015   if test "${ac_cv_search_opendir+set}" = set; then
26016   break
26017 fi
26018 done
26019 if test "${ac_cv_search_opendir+set}" = set; then
26020   :
26021 else
26022   ac_cv_search_opendir=no
26023 fi
26024 rm conftest.$ac_ext
26025 LIBS=$ac_func_search_save_LIBS
26026 fi
26027 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26028 $as_echo "$ac_cv_search_opendir" >&6; }
26029 ac_res=$ac_cv_search_opendir
26030 if test "$ac_res" != no; then
26031   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26032
26033 fi
26034
26035 else
26036   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
26037 $as_echo_n "checking for library containing opendir... " >&6; }
26038 if test "${ac_cv_search_opendir+set}" = set; then
26039   $as_echo_n "(cached) " >&6
26040 else
26041   ac_func_search_save_LIBS=$LIBS
26042 cat >conftest.$ac_ext <<_ACEOF
26043 /* confdefs.h.  */
26044 _ACEOF
26045 cat confdefs.h >>conftest.$ac_ext
26046 cat >>conftest.$ac_ext <<_ACEOF
26047 /* end confdefs.h.  */
26048
26049 /* Override any GCC internal prototype to avoid an error.
26050    Use char because int might match the return type of a GCC
26051    builtin and then its argument prototype would still apply.  */
26052 #ifdef __cplusplus
26053 extern "C"
26054 #endif
26055 char opendir ();
26056 int
26057 main ()
26058 {
26059 return opendir ();
26060   ;
26061   return 0;
26062 }
26063 _ACEOF
26064 for ac_lib in '' x; do
26065   if test -z "$ac_lib"; then
26066     ac_res="none required"
26067   else
26068     ac_res=-l$ac_lib
26069     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26070   fi
26071   rm -f conftest.$ac_objext conftest$ac_exeext
26072 if { (ac_try="$ac_link"
26073 case "(($ac_try" in
26074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26075   *) ac_try_echo=$ac_try;;
26076 esac
26077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26078 $as_echo "$ac_try_echo") >&5
26079   (eval "$ac_link") 2>conftest.er1
26080   ac_status=$?
26081   grep -v '^ *+' conftest.er1 >conftest.err
26082   rm -f conftest.er1
26083   cat conftest.err >&5
26084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085   (exit $ac_status); } && {
26086          test -z "$ac_c_werror_flag" ||
26087          test ! -s conftest.err
26088        } && test -s conftest$ac_exeext && {
26089          test "$cross_compiling" = yes ||
26090          $as_test_x conftest$ac_exeext
26091        }; then
26092   ac_cv_search_opendir=$ac_res
26093 else
26094   $as_echo "$as_me: failed program was:" >&5
26095 sed 's/^/| /' conftest.$ac_ext >&5
26096
26097
26098 fi
26099
26100 rm -rf conftest.dSYM
26101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26102       conftest$ac_exeext
26103   if test "${ac_cv_search_opendir+set}" = set; then
26104   break
26105 fi
26106 done
26107 if test "${ac_cv_search_opendir+set}" = set; then
26108   :
26109 else
26110   ac_cv_search_opendir=no
26111 fi
26112 rm conftest.$ac_ext
26113 LIBS=$ac_func_search_save_LIBS
26114 fi
26115 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26116 $as_echo "$ac_cv_search_opendir" >&6; }
26117 ac_res=$ac_cv_search_opendir
26118 if test "$ac_res" != no; then
26119   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26120
26121 fi
26122
26123 fi
26124
26125
26126     # include the dirent headers as described in the autoconf documentation.
26127     { $as_echo "$as_me:$LINENO: checking whether readdir is declared" >&5
26128 $as_echo_n "checking whether readdir is declared... " >&6; }
26129 if test "${ac_cv_have_decl_readdir+set}" = set; then
26130   $as_echo_n "(cached) " >&6
26131 else
26132   cat >conftest.$ac_ext <<_ACEOF
26133 /* confdefs.h.  */
26134 _ACEOF
26135 cat confdefs.h >>conftest.$ac_ext
26136 cat >>conftest.$ac_ext <<_ACEOF
26137 /* end confdefs.h.  */
26138
26139 #if HAVE_DIRENT_H
26140 # include <dirent.h>
26141 # define NAMLEN(dirent) strlen((dirent)->d_name)
26142 #else
26143 # define dirent direct
26144 # define NAMLEN(dirent) (dirent)->d_namlen
26145 # if HAVE_SYS_NDIR_H
26146 #  include <sys/ndir.h>
26147 # endif
26148 # if HAVE_SYS_DIR_H
26149 #  include <sys/dir.h>
26150 # endif
26151 # if HAVE_NDIR_H
26152 #  include <ndir.h>
26153 # endif
26154 #endif
26155
26156
26157 int
26158 main ()
26159 {
26160 #ifndef readdir
26161   (void) readdir;
26162 #endif
26163
26164   ;
26165   return 0;
26166 }
26167 _ACEOF
26168 rm -f conftest.$ac_objext
26169 if { (ac_try="$ac_compile"
26170 case "(($ac_try" in
26171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26172   *) ac_try_echo=$ac_try;;
26173 esac
26174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26175 $as_echo "$ac_try_echo") >&5
26176   (eval "$ac_compile") 2>conftest.er1
26177   ac_status=$?
26178   grep -v '^ *+' conftest.er1 >conftest.err
26179   rm -f conftest.er1
26180   cat conftest.err >&5
26181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182   (exit $ac_status); } && {
26183          test -z "$ac_c_werror_flag" ||
26184          test ! -s conftest.err
26185        } && test -s conftest.$ac_objext; then
26186   ac_cv_have_decl_readdir=yes
26187 else
26188   $as_echo "$as_me: failed program was:" >&5
26189 sed 's/^/| /' conftest.$ac_ext >&5
26190
26191         ac_cv_have_decl_readdir=no
26192 fi
26193
26194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26195 fi
26196 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir" >&5
26197 $as_echo "$ac_cv_have_decl_readdir" >&6; }
26198 if test "x$ac_cv_have_decl_readdir" = x""yes; then
26199
26200 cat >>confdefs.h <<_ACEOF
26201 #define HAVE_DECL_READDIR 1
26202 _ACEOF
26203
26204
26205 else
26206   cat >>confdefs.h <<_ACEOF
26207 #define HAVE_DECL_READDIR 0
26208 _ACEOF
26209
26210
26211 fi
26212 { $as_echo "$as_me:$LINENO: checking whether readdir_r is declared" >&5
26213 $as_echo_n "checking whether readdir_r is declared... " >&6; }
26214 if test "${ac_cv_have_decl_readdir_r+set}" = set; then
26215   $as_echo_n "(cached) " >&6
26216 else
26217   cat >conftest.$ac_ext <<_ACEOF
26218 /* confdefs.h.  */
26219 _ACEOF
26220 cat confdefs.h >>conftest.$ac_ext
26221 cat >>conftest.$ac_ext <<_ACEOF
26222 /* end confdefs.h.  */
26223
26224 #if HAVE_DIRENT_H
26225 # include <dirent.h>
26226 # define NAMLEN(dirent) strlen((dirent)->d_name)
26227 #else
26228 # define dirent direct
26229 # define NAMLEN(dirent) (dirent)->d_namlen
26230 # if HAVE_SYS_NDIR_H
26231 #  include <sys/ndir.h>
26232 # endif
26233 # if HAVE_SYS_DIR_H
26234 #  include <sys/dir.h>
26235 # endif
26236 # if HAVE_NDIR_H
26237 #  include <ndir.h>
26238 # endif
26239 #endif
26240
26241
26242 int
26243 main ()
26244 {
26245 #ifndef readdir_r
26246   (void) readdir_r;
26247 #endif
26248
26249   ;
26250   return 0;
26251 }
26252 _ACEOF
26253 rm -f conftest.$ac_objext
26254 if { (ac_try="$ac_compile"
26255 case "(($ac_try" in
26256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26257   *) ac_try_echo=$ac_try;;
26258 esac
26259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26260 $as_echo "$ac_try_echo") >&5
26261   (eval "$ac_compile") 2>conftest.er1
26262   ac_status=$?
26263   grep -v '^ *+' conftest.er1 >conftest.err
26264   rm -f conftest.er1
26265   cat conftest.err >&5
26266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26267   (exit $ac_status); } && {
26268          test -z "$ac_c_werror_flag" ||
26269          test ! -s conftest.err
26270        } && test -s conftest.$ac_objext; then
26271   ac_cv_have_decl_readdir_r=yes
26272 else
26273   $as_echo "$as_me: failed program was:" >&5
26274 sed 's/^/| /' conftest.$ac_ext >&5
26275
26276         ac_cv_have_decl_readdir_r=no
26277 fi
26278
26279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26280 fi
26281 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir_r" >&5
26282 $as_echo "$ac_cv_have_decl_readdir_r" >&6; }
26283 if test "x$ac_cv_have_decl_readdir_r" = x""yes; then
26284
26285 cat >>confdefs.h <<_ACEOF
26286 #define HAVE_DECL_READDIR_R 1
26287 _ACEOF
26288
26289
26290 else
26291   cat >>confdefs.h <<_ACEOF
26292 #define HAVE_DECL_READDIR_R 0
26293 _ACEOF
26294
26295
26296 fi
26297 { $as_echo "$as_me:$LINENO: checking whether readdir64 is declared" >&5
26298 $as_echo_n "checking whether readdir64 is declared... " >&6; }
26299 if test "${ac_cv_have_decl_readdir64+set}" = set; then
26300   $as_echo_n "(cached) " >&6
26301 else
26302   cat >conftest.$ac_ext <<_ACEOF
26303 /* confdefs.h.  */
26304 _ACEOF
26305 cat confdefs.h >>conftest.$ac_ext
26306 cat >>conftest.$ac_ext <<_ACEOF
26307 /* end confdefs.h.  */
26308
26309 #if HAVE_DIRENT_H
26310 # include <dirent.h>
26311 # define NAMLEN(dirent) strlen((dirent)->d_name)
26312 #else
26313 # define dirent direct
26314 # define NAMLEN(dirent) (dirent)->d_namlen
26315 # if HAVE_SYS_NDIR_H
26316 #  include <sys/ndir.h>
26317 # endif
26318 # if HAVE_SYS_DIR_H
26319 #  include <sys/dir.h>
26320 # endif
26321 # if HAVE_NDIR_H
26322 #  include <ndir.h>
26323 # endif
26324 #endif
26325
26326
26327 int
26328 main ()
26329 {
26330 #ifndef readdir64
26331   (void) readdir64;
26332 #endif
26333
26334   ;
26335   return 0;
26336 }
26337 _ACEOF
26338 rm -f conftest.$ac_objext
26339 if { (ac_try="$ac_compile"
26340 case "(($ac_try" in
26341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26342   *) ac_try_echo=$ac_try;;
26343 esac
26344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26345 $as_echo "$ac_try_echo") >&5
26346   (eval "$ac_compile") 2>conftest.er1
26347   ac_status=$?
26348   grep -v '^ *+' conftest.er1 >conftest.err
26349   rm -f conftest.er1
26350   cat conftest.err >&5
26351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352   (exit $ac_status); } && {
26353          test -z "$ac_c_werror_flag" ||
26354          test ! -s conftest.err
26355        } && test -s conftest.$ac_objext; then
26356   ac_cv_have_decl_readdir64=yes
26357 else
26358   $as_echo "$as_me: failed program was:" >&5
26359 sed 's/^/| /' conftest.$ac_ext >&5
26360
26361         ac_cv_have_decl_readdir64=no
26362 fi
26363
26364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26365 fi
26366 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64" >&5
26367 $as_echo "$ac_cv_have_decl_readdir64" >&6; }
26368 if test "x$ac_cv_have_decl_readdir64" = x""yes; then
26369
26370 cat >>confdefs.h <<_ACEOF
26371 #define HAVE_DECL_READDIR64 1
26372 _ACEOF
26373
26374
26375 else
26376   cat >>confdefs.h <<_ACEOF
26377 #define HAVE_DECL_READDIR64 0
26378 _ACEOF
26379
26380
26381 fi
26382 { $as_echo "$as_me:$LINENO: checking whether readdir64_r is declared" >&5
26383 $as_echo_n "checking whether readdir64_r is declared... " >&6; }
26384 if test "${ac_cv_have_decl_readdir64_r+set}" = set; then
26385   $as_echo_n "(cached) " >&6
26386 else
26387   cat >conftest.$ac_ext <<_ACEOF
26388 /* confdefs.h.  */
26389 _ACEOF
26390 cat confdefs.h >>conftest.$ac_ext
26391 cat >>conftest.$ac_ext <<_ACEOF
26392 /* end confdefs.h.  */
26393
26394 #if HAVE_DIRENT_H
26395 # include <dirent.h>
26396 # define NAMLEN(dirent) strlen((dirent)->d_name)
26397 #else
26398 # define dirent direct
26399 # define NAMLEN(dirent) (dirent)->d_namlen
26400 # if HAVE_SYS_NDIR_H
26401 #  include <sys/ndir.h>
26402 # endif
26403 # if HAVE_SYS_DIR_H
26404 #  include <sys/dir.h>
26405 # endif
26406 # if HAVE_NDIR_H
26407 #  include <ndir.h>
26408 # endif
26409 #endif
26410
26411
26412 int
26413 main ()
26414 {
26415 #ifndef readdir64_r
26416   (void) readdir64_r;
26417 #endif
26418
26419   ;
26420   return 0;
26421 }
26422 _ACEOF
26423 rm -f conftest.$ac_objext
26424 if { (ac_try="$ac_compile"
26425 case "(($ac_try" in
26426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26427   *) ac_try_echo=$ac_try;;
26428 esac
26429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26430 $as_echo "$ac_try_echo") >&5
26431   (eval "$ac_compile") 2>conftest.er1
26432   ac_status=$?
26433   grep -v '^ *+' conftest.er1 >conftest.err
26434   rm -f conftest.er1
26435   cat conftest.err >&5
26436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437   (exit $ac_status); } && {
26438          test -z "$ac_c_werror_flag" ||
26439          test ! -s conftest.err
26440        } && test -s conftest.$ac_objext; then
26441   ac_cv_have_decl_readdir64_r=yes
26442 else
26443   $as_echo "$as_me: failed program was:" >&5
26444 sed 's/^/| /' conftest.$ac_ext >&5
26445
26446         ac_cv_have_decl_readdir64_r=no
26447 fi
26448
26449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26450 fi
26451 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64_r" >&5
26452 $as_echo "$ac_cv_have_decl_readdir64_r" >&6; }
26453 if test "x$ac_cv_have_decl_readdir64_r" = x""yes; then
26454
26455 cat >>confdefs.h <<_ACEOF
26456 #define HAVE_DECL_READDIR64_R 1
26457 _ACEOF
26458
26459
26460 else
26461   cat >>confdefs.h <<_ACEOF
26462 #define HAVE_DECL_READDIR64_R 0
26463 _ACEOF
26464
26465
26466 fi
26467
26468
26469
26470
26471     # disk device prefixes
26472     { $as_echo "$as_me:$LINENO: checking disk device prefixes" >&5
26473 $as_echo_n "checking disk device prefixes... " >&6; }
26474
26475     # Use df to find the mount point for the root filesystem.  Use
26476     # the positional parameters to find the particular line from df
26477     # that contains the root paritition.  We put it in a subshell so
26478     # that the original positional parameters are not messed with.
26479     dfline=`(
26480         df / | while read line; do
26481             set -- $line
26482                     while test $# -gt 0; do
26483                 if test "x$1" = "x/"; then
26484                     echo $line
26485                     break 2
26486                 fi
26487                 shift
26488             done
26489         done
26490     ) | sed 's/(//' | sed 's/)//' `
26491
26492     # Search for the mount point by using expr to find the parameter
26493     # with dev in it.
26494     mount=`(
26495         set -- $dfline
26496                 while test $# -gt 0; do
26497             if expr "$1" : '.*dev' >/dev/null 2>&1; then
26498                 echo $1
26499                 break
26500             fi
26501             shift
26502         done
26503     )`
26504
26505     # get any system-specific configuration information
26506     case "$target" in
26507         *-hp-*)
26508             CLIENT_SCRIPTS_OPT=amhpfixdevs
26509             case $mount in
26510                 /dev/vg*)
26511
26512     { $as_echo "$as_me:$LINENO: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&5
26513 $as_echo "$as_me: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&2;}
26514
26515
26516     cat <<AAW_EOF >>config.warnings
26517 Run amhpfixdevs on HP-UX systems using /dev/vg??.
26518 AAW_EOF
26519
26520
26521                     ;;
26522             esac
26523             ;;
26524         *-sni-sysv4)
26525             DEV_PREFIX=/dev/dsk/
26526             RDEV_PREFIX=/dev/rdsk/
26527             CLIENT_SCRIPTS_OPT=amsinixfixdevs
26528             if ! test -d /dev/dsk; then
26529
26530     { $as_echo "$as_me:$LINENO: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&5
26531 $as_echo "$as_me: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&2;}
26532
26533
26534     cat <<AAW_EOF >>config.warnings
26535 Run amsinixfixdevs on Sinix systems using VxFS.
26536 AAW_EOF
26537
26538
26539             fi
26540             ;;
26541         *-sco3.2v4*)
26542             DEV_PREFIX=/dev/
26543             RDEV_PREFIX=/dev/
26544             ;;
26545         *)
26546             CLIENT_SCRIPTS_OPT=
26547             ;;
26548     esac
26549
26550     if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
26551         { $as_echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
26552 $as_echo "(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6; }
26553     else
26554         if test -d /dev/dsk; then
26555             DEV_PREFIX=/dev/dsk/
26556             if test -d /dev/rdsk; then
26557                 RDEV_PREFIX=/dev/rdsk/
26558             else
26559                 RDEV_PREFIX=/dev/dsk/
26560             fi
26561         elif test -d /dev; then
26562             DEV_PREFIX=/dev/
26563
26564             # Some systems, notably Linux, do not have raw disk devices
26565             # names.  Check this by trying to see if a raw disk device name
26566             # exists using the normal raw device path prepended to the
26567             # mount point of the root filesystem.
26568             if test "$mount"; then
26569                 dev_name="/dev/r`basename $mount`"
26570                 if test -b $dev_name -o -c $dev_name; then
26571                     RDEV_PREFIX=/dev/r
26572                 else
26573                     RDEV_PREFIX=/dev/
26574                 fi
26575             else
26576                 RDEV_PREFIX=/dev/r
26577             fi
26578         else
26579             # just fake it..
26580             DEV_PREFIX=/
26581             RDEV_PREFIX=/
26582         fi
26583         { $as_echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
26584 $as_echo "$DEV_PREFIX - $RDEV_PREFIX" >&6; }
26585     fi
26586
26587
26588 cat >>confdefs.h <<_ACEOF
26589 #define DEV_PREFIX "${DEV_PREFIX}"
26590 _ACEOF
26591
26592
26593 cat >>confdefs.h <<_ACEOF
26594 #define RDEV_PREFIX "${RDEV_PREFIX}"
26595 _ACEOF
26596
26597
26598
26599
26600
26601     case "$target" in
26602         *-dec-osf*)
26603                     ;;
26604         *-dg-*)
26605                     ;;
26606         *-netbsd*)
26607                     ;;
26608         *-freebsd*)
26609                     ;;
26610         *-openbsd*)
26611                     ;;
26612         *-hp-*)
26613                     case "$CC" in
26614                         *gcc*)
26615                             CPPFLAGS="$CPPFLAGS -D__STDC_EXT__"
26616
26617                             ;;
26618                         *cc*)
26619                             CFLAGS="$CFLAGS -Ae"
26620
26621                             ;;
26622                     esac
26623                     ;;
26624         *-ibm-aix*)
26625                     ;;
26626         m88k-motorola-sysv4)
26627                     ;;
26628         *-nextstep3)
26629                     ;;
26630         *-pc-bsdi*)
26631                     ;;
26632         *-pc-linux-*)
26633                     ;;
26634         *-redhat-linux-*)
26635                     ;;
26636         *-suse-linux-*)
26637                     ;;
26638         x86_64-*-linux-*)
26639                     ;;
26640         alpha*-*-linux-*)
26641                     ;;
26642         sparc*-*-linux-*)
26643                     ;;
26644         powerpc-*-linux-*)
26645                     ;;
26646         *-sgi-irix3*)
26647                     # The old cc won't work!
26648                     if test "x$GCC" != "xyes"; then
26649                         { { $as_echo "$as_me:$LINENO: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&5
26650 $as_echo "$as_me: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&2;}
26651    { (exit 1); exit 1; }; }
26652                     fi
26653                     ;;
26654         *-sgi-irix4*)
26655                     ;;
26656         *-sgi-irix5*)
26657                     ;;
26658         *-sgi-irix6*)
26659                     ;;
26660         *-solaris2*)
26661                     ;;
26662         *-sun-sunos4.1*)
26663                     ;;
26664         *-ultrix*)
26665                     ;;
26666         *-sysv4.2uw2*)
26667                     ;;
26668         *-sco3.2v5*)
26669                     ;;
26670         i386-pc-isc4*)
26671                     ;;
26672         *-sni-sysv4)
26673                     ;;
26674         *-pc-cygwin)
26675
26676 cat >>confdefs.h <<\_ACEOF
26677 #define IGNORE_TAR_ERRORS 1
26678 _ACEOF
26679
26680                     # Cygwin needs PATH to find cygwin1.dll
26681
26682 cat >>confdefs.h <<\_ACEOF
26683 #define NEED_PATH_ENV 1
26684 _ACEOF
26685
26686
26687 cat >>confdefs.h <<\_ACEOF
26688 #define IGNORE_FSTAB 1
26689 _ACEOF
26690
26691                     LDFLAGS="$LDFLAGS -Wl,-enable-runtime-pseudo-reloc -no-undefined"
26692
26693                     ;;
26694         *-apple-darwin7*) # MacOS X 10.3.* (Panther)
26695                     ;;
26696         *-apple-darwin8*) # MacOS X 10.4.* (Tiger)
26697                     ;;
26698       *)
26699
26700
26701     cat <<AAW_EOF >>config.warnings
26702 *****
26703 This machine, target type $target, is not known to be fully supported
26704 by this configure script.  If the installation of Amanda on this system
26705 succeeds or needed any patches, please email amanda-hackers@amanda.org
26706 with the patches or an indication of the sucess or failure of the
26707 Amanda installation on your system.
26708 *****
26709 AAW_EOF
26710
26711                     ;;
26712     esac
26713
26714
26715
26716
26717
26718   prefix_NONE=
26719   exec_prefix_NONE=
26720   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26721   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26722   eval ac_define_dir="\"$bindir\""
26723   eval ac_define_dir="\"$ac_define_dir\""
26724   bindir="$ac_define_dir"
26725
26726
26727 cat >>confdefs.h <<_ACEOF
26728 #define bindir "$ac_define_dir"
26729 _ACEOF
26730
26731   test "$prefix_NONE" && prefix=NONE
26732   test "$exec_prefix_NONE" && exec_prefix=NONE
26733
26734
26735
26736   prefix_NONE=
26737   exec_prefix_NONE=
26738   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26739   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26740   eval ac_define_dir="\"$sbindir\""
26741   eval ac_define_dir="\"$ac_define_dir\""
26742   sbindir="$ac_define_dir"
26743
26744
26745 cat >>confdefs.h <<_ACEOF
26746 #define sbindir "$ac_define_dir"
26747 _ACEOF
26748
26749   test "$prefix_NONE" && prefix=NONE
26750   test "$exec_prefix_NONE" && exec_prefix=NONE
26751
26752
26753
26754   prefix_NONE=
26755   exec_prefix_NONE=
26756   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26757   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26758   eval ac_define_dir="\"$libexecdir\""
26759   eval ac_define_dir="\"$ac_define_dir\""
26760   libexecdir="$ac_define_dir"
26761
26762
26763 cat >>confdefs.h <<_ACEOF
26764 #define libexecdir "$ac_define_dir"
26765 _ACEOF
26766
26767   test "$prefix_NONE" && prefix=NONE
26768   test "$exec_prefix_NONE" && exec_prefix=NONE
26769
26770
26771
26772   prefix_NONE=
26773   exec_prefix_NONE=
26774   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26775   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26776   eval ac_define_dir="\"$mandir\""
26777   eval ac_define_dir="\"$ac_define_dir\""
26778   mandir="$ac_define_dir"
26779
26780
26781 cat >>confdefs.h <<_ACEOF
26782 #define mandir "$ac_define_dir"
26783 _ACEOF
26784
26785   test "$prefix_NONE" && prefix=NONE
26786   test "$exec_prefix_NONE" && exec_prefix=NONE
26787
26788
26789
26790     # amanda-specific directories
26791     AMLIBDIR=$libdir/amanda
26792
26793 # Check whether --with-amlibdir was given.
26794 if test "${with_amlibdir+set}" = set; then
26795   withval=$with_amlibdir;
26796             case "$withval" in
26797                 n | no) AMLIBDIR=$libdir ;;
26798                 y | ye | yes) AMLIBDIR=$libdir/amanda ;;
26799                 *) AMLIBDIR=$withval ;;
26800             esac
26801
26802
26803 fi
26804
26805
26806   prefix_NONE=
26807   exec_prefix_NONE=
26808   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26809   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26810   eval ac_define_dir="\"$AMLIBDIR\""
26811   eval ac_define_dir="\"$ac_define_dir\""
26812   amlibdir="$ac_define_dir"
26813
26814
26815 cat >>confdefs.h <<_ACEOF
26816 #define amlibdir "$ac_define_dir"
26817 _ACEOF
26818
26819   test "$prefix_NONE" && prefix=NONE
26820   test "$exec_prefix_NONE" && exec_prefix=NONE
26821
26822
26823     AMLIBEXECDIR=$libexecdir/amanda
26824
26825 # Check whether --with-amlibexecdir was given.
26826 if test "${with_amlibexecdir+set}" = set; then
26827   withval=$with_amlibexecdir;
26828             case "$withval" in
26829                 n | no) AMLIBEXECDIR=$libexecdir ;;
26830                 y | ye | yes) AMLIBEXECDIR=$libexecdir/amanda ;;
26831                 *) AMLIBEXECDIR=$withval ;;
26832             esac
26833
26834
26835 fi
26836
26837
26838   prefix_NONE=
26839   exec_prefix_NONE=
26840   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26841   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26842   eval ac_define_dir="\"$AMLIBEXECDIR\""
26843   eval ac_define_dir="\"$ac_define_dir\""
26844   amlibexecdir="$ac_define_dir"
26845
26846
26847 cat >>confdefs.h <<_ACEOF
26848 #define amlibexecdir "$ac_define_dir"
26849 _ACEOF
26850
26851   test "$prefix_NONE" && prefix=NONE
26852   test "$exec_prefix_NONE" && exec_prefix=NONE
26853
26854
26855     amincludedir="${includedir}/amanda"
26856
26857   prefix_NONE=
26858   exec_prefix_NONE=
26859   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26860   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26861   eval ac_define_dir="\"$amincludedir\""
26862   eval ac_define_dir="\"$ac_define_dir\""
26863   amincludedir="$ac_define_dir"
26864
26865
26866 cat >>confdefs.h <<_ACEOF
26867 #define amincludedir "$ac_define_dir"
26868 _ACEOF
26869
26870   test "$prefix_NONE" && prefix=NONE
26871   test "$exec_prefix_NONE" && exec_prefix=NONE
26872
26873
26874
26875 # Check whether --with-amperldir was given.
26876 if test "${with_amperldir+set}" = set; then
26877   withval=$with_amperldir;
26878             case "$withval" in
26879                 y | ye | yes) AMPERLLIB=DEFAULT ;;
26880                 n | no) AMPERLLIB=$amlibdir/perl ;;
26881                 *) AMPERLLIB=$withval ;;
26882             esac
26883
26884 else
26885
26886             AMPERLLIB=DEFAULT
26887
26888
26889 fi
26890
26891     # apply the default if no value was given.
26892     if test x"$AMPERLLIB" = x"DEFAULT"; then
26893         eval `$PERL -V:installsitelib`
26894         AMPERLLIB=$installsitelib
26895     fi
26896
26897   prefix_NONE=
26898   exec_prefix_NONE=
26899   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26900   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26901   eval ac_define_dir="\"$AMPERLLIB\""
26902   eval ac_define_dir="\"$ac_define_dir\""
26903   amperldir="$ac_define_dir"
26904
26905
26906 cat >>confdefs.h <<_ACEOF
26907 #define amperldir "$ac_define_dir"
26908 _ACEOF
26909
26910   test "$prefix_NONE" && prefix=NONE
26911   test "$exec_prefix_NONE" && exec_prefix=NONE
26912
26913
26914     APPLICATION_DIR='${amlibexecdir}/application'
26915
26916   prefix_NONE=
26917   exec_prefix_NONE=
26918   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26919   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26920   eval ac_define_dir="\"$APPLICATION_DIR\""
26921   eval ac_define_dir="\"$ac_define_dir\""
26922   APPLICATION_DIR="$ac_define_dir"
26923
26924
26925 cat >>confdefs.h <<_ACEOF
26926 #define APPLICATION_DIR "$ac_define_dir"
26927 _ACEOF
26928
26929   test "$prefix_NONE" && prefix=NONE
26930   test "$exec_prefix_NONE" && exec_prefix=NONE
26931
26932
26933
26934 # Check whether --with-amdatadir was given.
26935 if test "${with_amdatadir+set}" = set; then
26936   withval=$with_amdatadir;
26937             AMDATADIR=$withval
26938
26939 else
26940
26941             AMDATADIR=$datadir/amanda
26942
26943
26944 fi
26945
26946
26947   prefix_NONE=
26948   exec_prefix_NONE=
26949   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26950   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26951   eval ac_define_dir="\"$AMDATADIR\""
26952   eval ac_define_dir="\"$ac_define_dir\""
26953   amdatadir="$ac_define_dir"
26954
26955
26956 cat >>confdefs.h <<_ACEOF
26957 #define amdatadir "$ac_define_dir"
26958 _ACEOF
26959
26960   test "$prefix_NONE" && prefix=NONE
26961   test "$exec_prefix_NONE" && exec_prefix=NONE
26962
26963
26964
26965 #
26966 # Internationalization
26967 #
26968
26969     # FreeBSD needs to link libxpg4
26970
26971 { $as_echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
26972 $as_echo_n "checking for setlocale in -lxpg4... " >&6; }
26973 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
26974   $as_echo_n "(cached) " >&6
26975 else
26976   ac_check_lib_save_LIBS=$LIBS
26977 LIBS="-lxpg4  $LIBS"
26978 cat >conftest.$ac_ext <<_ACEOF
26979 /* confdefs.h.  */
26980 _ACEOF
26981 cat confdefs.h >>conftest.$ac_ext
26982 cat >>conftest.$ac_ext <<_ACEOF
26983 /* end confdefs.h.  */
26984
26985 /* Override any GCC internal prototype to avoid an error.
26986    Use char because int might match the return type of a GCC
26987    builtin and then its argument prototype would still apply.  */
26988 #ifdef __cplusplus
26989 extern "C"
26990 #endif
26991 char setlocale ();
26992 int
26993 main ()
26994 {
26995 return setlocale ();
26996   ;
26997   return 0;
26998 }
26999 _ACEOF
27000 rm -f conftest.$ac_objext conftest$ac_exeext
27001 if { (ac_try="$ac_link"
27002 case "(($ac_try" in
27003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27004   *) ac_try_echo=$ac_try;;
27005 esac
27006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27007 $as_echo "$ac_try_echo") >&5
27008   (eval "$ac_link") 2>conftest.er1
27009   ac_status=$?
27010   grep -v '^ *+' conftest.er1 >conftest.err
27011   rm -f conftest.er1
27012   cat conftest.err >&5
27013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014   (exit $ac_status); } && {
27015          test -z "$ac_c_werror_flag" ||
27016          test ! -s conftest.err
27017        } && test -s conftest$ac_exeext && {
27018          test "$cross_compiling" = yes ||
27019          $as_test_x conftest$ac_exeext
27020        }; then
27021   ac_cv_lib_xpg4_setlocale=yes
27022 else
27023   $as_echo "$as_me: failed program was:" >&5
27024 sed 's/^/| /' conftest.$ac_ext >&5
27025
27026         ac_cv_lib_xpg4_setlocale=no
27027 fi
27028
27029 rm -rf conftest.dSYM
27030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27031       conftest$ac_exeext conftest.$ac_ext
27032 LIBS=$ac_check_lib_save_LIBS
27033 fi
27034 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
27035 $as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
27036 if test "x$ac_cv_lib_xpg4_setlocale" = x""yes; then
27037   cat >>confdefs.h <<_ACEOF
27038 #define HAVE_LIBXPG4 1
27039 _ACEOF
27040
27041   LIBS="-lxpg4 $LIBS"
27042
27043 fi
27044
27045
27046     # ------------------------------------------------------------------
27047     # All list of languages for which a translation exist. Each
27048     #  language is separated by a space.
27049     # ------------------------------------------------------------------
27050     ALL_LINGUAS=""
27051
27052
27053     # Extract the first word of "msgfmt", so it can be a program name with args.
27054 set dummy msgfmt; ac_word=$2
27055 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27056 $as_echo_n "checking for $ac_word... " >&6; }
27057 if test "${ac_cv_path_MSGFMT+set}" = set; then
27058   $as_echo_n "(cached) " >&6
27059 else
27060   case $MSGFMT in
27061   [\\/]* | ?:[\\/]*)
27062   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
27063   ;;
27064   *)
27065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27066 for as_dir in $LOCSYSPATH
27067 do
27068   IFS=$as_save_IFS
27069   test -z "$as_dir" && as_dir=.
27070   for ac_exec_ext in '' $ac_executable_extensions; do
27071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27072     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
27073     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27074     break 2
27075   fi
27076 done
27077 done
27078 IFS=$as_save_IFS
27079
27080   ;;
27081 esac
27082 fi
27083 MSGFMT=$ac_cv_path_MSGFMT
27084 if test -n "$MSGFMT"; then
27085   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
27086 $as_echo "$MSGFMT" >&6; }
27087 else
27088   { $as_echo "$as_me:$LINENO: result: no" >&5
27089 $as_echo "no" >&6; }
27090 fi
27091
27092
27093     # Extract the first word of "gettext", so it can be a program name with args.
27094 set dummy gettext; ac_word=$2
27095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27096 $as_echo_n "checking for $ac_word... " >&6; }
27097 if test "${ac_cv_path_GETTEXT+set}" = set; then
27098   $as_echo_n "(cached) " >&6
27099 else
27100   case $GETTEXT in
27101   [\\/]* | ?:[\\/]*)
27102   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
27103   ;;
27104   *)
27105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27106 for as_dir in $LOCSYSPATH
27107 do
27108   IFS=$as_save_IFS
27109   test -z "$as_dir" && as_dir=.
27110   for ac_exec_ext in '' $ac_executable_extensions; do
27111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27112     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
27113     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27114     break 2
27115   fi
27116 done
27117 done
27118 IFS=$as_save_IFS
27119
27120   ;;
27121 esac
27122 fi
27123 GETTEXT=$ac_cv_path_GETTEXT
27124 if test -n "$GETTEXT"; then
27125   { $as_echo "$as_me:$LINENO: result: $GETTEXT" >&5
27126 $as_echo "$GETTEXT" >&6; }
27127 else
27128   { $as_echo "$as_me:$LINENO: result: no" >&5
27129 $as_echo "no" >&6; }
27130 fi
27131
27132
27133
27134
27135
27136   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
27137 $as_echo_n "checking whether NLS is requested... " >&6; }
27138     # Check whether --enable-nls was given.
27139 if test "${enable_nls+set}" = set; then
27140   enableval=$enable_nls; USE_NLS=$enableval
27141 else
27142   USE_NLS=yes
27143 fi
27144
27145   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
27146 $as_echo "$USE_NLS" >&6; }
27147
27148
27149
27150
27151
27152
27153 # Prepare PATH_SEPARATOR.
27154 # The user is always right.
27155 if test "${PATH_SEPARATOR+set}" != set; then
27156   echo "#! /bin/sh" >conf$$.sh
27157   echo  "exit 0"   >>conf$$.sh
27158   chmod +x conf$$.sh
27159   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27160     PATH_SEPARATOR=';'
27161   else
27162     PATH_SEPARATOR=:
27163   fi
27164   rm -f conf$$.sh
27165 fi
27166
27167 # Find out how to test for executable files. Don't use a zero-byte file,
27168 # as systems may use methods other than mode bits to determine executability.
27169 cat >conf$$.file <<_ASEOF
27170 #! /bin/sh
27171 exit 0
27172 _ASEOF
27173 chmod +x conf$$.file
27174 if test -x conf$$.file >/dev/null 2>&1; then
27175   ac_executable_p="test -x"
27176 else
27177   ac_executable_p="test -f"
27178 fi
27179 rm -f conf$$.file
27180
27181 # Extract the first word of "msgfmt", so it can be a program name with args.
27182 set dummy msgfmt; ac_word=$2
27183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27184 $as_echo_n "checking for $ac_word... " >&6; }
27185 if test "${ac_cv_path_MSGFMT+set}" = set; then
27186   $as_echo_n "(cached) " >&6
27187 else
27188   case "$MSGFMT" in
27189   [\\/]* | ?:[\\/]*)
27190     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
27191     ;;
27192   *)
27193     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
27194     for ac_dir in $PATH; do
27195       IFS="$ac_save_IFS"
27196       test -z "$ac_dir" && ac_dir=.
27197       for ac_exec_ext in '' $ac_executable_extensions; do
27198         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
27199           echo "$as_me: trying $ac_dir/$ac_word..." >&5
27200           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
27201      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
27202             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
27203             break 2
27204           fi
27205         fi
27206       done
27207     done
27208     IFS="$ac_save_IFS"
27209   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
27210     ;;
27211 esac
27212 fi
27213 MSGFMT="$ac_cv_path_MSGFMT"
27214 if test "$MSGFMT" != ":"; then
27215   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
27216 $as_echo "$MSGFMT" >&6; }
27217 else
27218   { $as_echo "$as_me:$LINENO: result: no" >&5
27219 $as_echo "no" >&6; }
27220 fi
27221
27222   # Extract the first word of "gmsgfmt", so it can be a program name with args.
27223 set dummy gmsgfmt; ac_word=$2
27224 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27225 $as_echo_n "checking for $ac_word... " >&6; }
27226 if test "${ac_cv_path_GMSGFMT+set}" = set; then
27227   $as_echo_n "(cached) " >&6
27228 else
27229   case $GMSGFMT in
27230   [\\/]* | ?:[\\/]*)
27231   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
27232   ;;
27233   *)
27234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27235 for as_dir in $PATH
27236 do
27237   IFS=$as_save_IFS
27238   test -z "$as_dir" && as_dir=.
27239   for ac_exec_ext in '' $ac_executable_extensions; do
27240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27241     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
27242     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27243     break 2
27244   fi
27245 done
27246 done
27247 IFS=$as_save_IFS
27248
27249   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
27250   ;;
27251 esac
27252 fi
27253 GMSGFMT=$ac_cv_path_GMSGFMT
27254 if test -n "$GMSGFMT"; then
27255   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
27256 $as_echo "$GMSGFMT" >&6; }
27257 else
27258   { $as_echo "$as_me:$LINENO: result: no" >&5
27259 $as_echo "no" >&6; }
27260 fi
27261
27262
27263
27264     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
27265     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
27266     *) MSGFMT_015=$MSGFMT ;;
27267   esac
27268
27269   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
27270     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
27271     *) GMSGFMT_015=$GMSGFMT ;;
27272   esac
27273
27274
27275
27276 # Prepare PATH_SEPARATOR.
27277 # The user is always right.
27278 if test "${PATH_SEPARATOR+set}" != set; then
27279   echo "#! /bin/sh" >conf$$.sh
27280   echo  "exit 0"   >>conf$$.sh
27281   chmod +x conf$$.sh
27282   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27283     PATH_SEPARATOR=';'
27284   else
27285     PATH_SEPARATOR=:
27286   fi
27287   rm -f conf$$.sh
27288 fi
27289
27290 # Find out how to test for executable files. Don't use a zero-byte file,
27291 # as systems may use methods other than mode bits to determine executability.
27292 cat >conf$$.file <<_ASEOF
27293 #! /bin/sh
27294 exit 0
27295 _ASEOF
27296 chmod +x conf$$.file
27297 if test -x conf$$.file >/dev/null 2>&1; then
27298   ac_executable_p="test -x"
27299 else
27300   ac_executable_p="test -f"
27301 fi
27302 rm -f conf$$.file
27303
27304 # Extract the first word of "xgettext", so it can be a program name with args.
27305 set dummy xgettext; ac_word=$2
27306 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27307 $as_echo_n "checking for $ac_word... " >&6; }
27308 if test "${ac_cv_path_XGETTEXT+set}" = set; then
27309   $as_echo_n "(cached) " >&6
27310 else
27311   case "$XGETTEXT" in
27312   [\\/]* | ?:[\\/]*)
27313     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
27314     ;;
27315   *)
27316     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
27317     for ac_dir in $PATH; do
27318       IFS="$ac_save_IFS"
27319       test -z "$ac_dir" && ac_dir=.
27320       for ac_exec_ext in '' $ac_executable_extensions; do
27321         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
27322           echo "$as_me: trying $ac_dir/$ac_word..." >&5
27323           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
27324      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
27325             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
27326             break 2
27327           fi
27328         fi
27329       done
27330     done
27331     IFS="$ac_save_IFS"
27332   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
27333     ;;
27334 esac
27335 fi
27336 XGETTEXT="$ac_cv_path_XGETTEXT"
27337 if test "$XGETTEXT" != ":"; then
27338   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
27339 $as_echo "$XGETTEXT" >&6; }
27340 else
27341   { $as_echo "$as_me:$LINENO: result: no" >&5
27342 $as_echo "no" >&6; }
27343 fi
27344
27345     rm -f messages.po
27346
27347     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
27348     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
27349     *) XGETTEXT_015=$XGETTEXT ;;
27350   esac
27351
27352
27353
27354 # Prepare PATH_SEPARATOR.
27355 # The user is always right.
27356 if test "${PATH_SEPARATOR+set}" != set; then
27357   echo "#! /bin/sh" >conf$$.sh
27358   echo  "exit 0"   >>conf$$.sh
27359   chmod +x conf$$.sh
27360   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27361     PATH_SEPARATOR=';'
27362   else
27363     PATH_SEPARATOR=:
27364   fi
27365   rm -f conf$$.sh
27366 fi
27367
27368 # Find out how to test for executable files. Don't use a zero-byte file,
27369 # as systems may use methods other than mode bits to determine executability.
27370 cat >conf$$.file <<_ASEOF
27371 #! /bin/sh
27372 exit 0
27373 _ASEOF
27374 chmod +x conf$$.file
27375 if test -x conf$$.file >/dev/null 2>&1; then
27376   ac_executable_p="test -x"
27377 else
27378   ac_executable_p="test -f"
27379 fi
27380 rm -f conf$$.file
27381
27382 # Extract the first word of "msgmerge", so it can be a program name with args.
27383 set dummy msgmerge; ac_word=$2
27384 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27385 $as_echo_n "checking for $ac_word... " >&6; }
27386 if test "${ac_cv_path_MSGMERGE+set}" = set; then
27387   $as_echo_n "(cached) " >&6
27388 else
27389   case "$MSGMERGE" in
27390   [\\/]* | ?:[\\/]*)
27391     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
27392     ;;
27393   *)
27394     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
27395     for ac_dir in $PATH; do
27396       IFS="$ac_save_IFS"
27397       test -z "$ac_dir" && ac_dir=.
27398       for ac_exec_ext in '' $ac_executable_extensions; do
27399         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
27400           echo "$as_me: trying $ac_dir/$ac_word..." >&5
27401           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
27402             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
27403             break 2
27404           fi
27405         fi
27406       done
27407     done
27408     IFS="$ac_save_IFS"
27409   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
27410     ;;
27411 esac
27412 fi
27413 MSGMERGE="$ac_cv_path_MSGMERGE"
27414 if test "$MSGMERGE" != ":"; then
27415   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
27416 $as_echo "$MSGMERGE" >&6; }
27417 else
27418   { $as_echo "$as_me:$LINENO: result: no" >&5
27419 $as_echo "no" >&6; }
27420 fi
27421
27422
27423         test -n "$localedir" || localedir='${datadir}/locale'
27424
27425
27426   ac_config_commands="$ac_config_commands po-directories"
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436     use_additional=yes
27437
27438   acl_save_prefix="$prefix"
27439   prefix="$acl_final_prefix"
27440   acl_save_exec_prefix="$exec_prefix"
27441   exec_prefix="$acl_final_exec_prefix"
27442
27443     eval additional_includedir=\"$includedir\"
27444     eval additional_libdir=\"$libdir\"
27445
27446   exec_prefix="$acl_save_exec_prefix"
27447   prefix="$acl_save_prefix"
27448
27449
27450 # Check whether --with-libiconv-prefix was given.
27451 if test "${with_libiconv_prefix+set}" = set; then
27452   withval=$with_libiconv_prefix;
27453     if test "X$withval" = "Xno"; then
27454       use_additional=no
27455     else
27456       if test "X$withval" = "X"; then
27457
27458   acl_save_prefix="$prefix"
27459   prefix="$acl_final_prefix"
27460   acl_save_exec_prefix="$exec_prefix"
27461   exec_prefix="$acl_final_exec_prefix"
27462
27463           eval additional_includedir=\"$includedir\"
27464           eval additional_libdir=\"$libdir\"
27465
27466   exec_prefix="$acl_save_exec_prefix"
27467   prefix="$acl_save_prefix"
27468
27469       else
27470         additional_includedir="$withval/include"
27471         additional_libdir="$withval/$acl_libdirstem"
27472       fi
27473     fi
27474
27475 fi
27476
27477       LIBICONV=
27478   LTLIBICONV=
27479   INCICONV=
27480   rpathdirs=
27481   ltrpathdirs=
27482   names_already_handled=
27483   names_next_round='iconv '
27484   while test -n "$names_next_round"; do
27485     names_this_round="$names_next_round"
27486     names_next_round=
27487     for name in $names_this_round; do
27488       already_handled=
27489       for n in $names_already_handled; do
27490         if test "$n" = "$name"; then
27491           already_handled=yes
27492           break
27493         fi
27494       done
27495       if test -z "$already_handled"; then
27496         names_already_handled="$names_already_handled $name"
27497                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27498         eval value=\"\$HAVE_LIB$uppername\"
27499         if test -n "$value"; then
27500           if test "$value" = yes; then
27501             eval value=\"\$LIB$uppername\"
27502             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
27503             eval value=\"\$LTLIB$uppername\"
27504             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
27505           else
27506                                     :
27507           fi
27508         else
27509                               found_dir=
27510           found_la=
27511           found_so=
27512           found_a=
27513           if test $use_additional = yes; then
27514             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
27515               found_dir="$additional_libdir"
27516               found_so="$additional_libdir/lib$name.$shlibext"
27517               if test -f "$additional_libdir/lib$name.la"; then
27518                 found_la="$additional_libdir/lib$name.la"
27519               fi
27520             else
27521               if test -f "$additional_libdir/lib$name.$libext"; then
27522                 found_dir="$additional_libdir"
27523                 found_a="$additional_libdir/lib$name.$libext"
27524                 if test -f "$additional_libdir/lib$name.la"; then
27525                   found_la="$additional_libdir/lib$name.la"
27526                 fi
27527               fi
27528             fi
27529           fi
27530           if test "X$found_dir" = "X"; then
27531             for x in $LDFLAGS $LTLIBICONV; do
27532
27533   acl_save_prefix="$prefix"
27534   prefix="$acl_final_prefix"
27535   acl_save_exec_prefix="$exec_prefix"
27536   exec_prefix="$acl_final_exec_prefix"
27537   eval x=\"$x\"
27538   exec_prefix="$acl_save_exec_prefix"
27539   prefix="$acl_save_prefix"
27540
27541               case "$x" in
27542                 -L*)
27543                   dir=`echo "X$x" | sed -e 's/^X-L//'`
27544                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
27545                     found_dir="$dir"
27546                     found_so="$dir/lib$name.$shlibext"
27547                     if test -f "$dir/lib$name.la"; then
27548                       found_la="$dir/lib$name.la"
27549                     fi
27550                   else
27551                     if test -f "$dir/lib$name.$libext"; then
27552                       found_dir="$dir"
27553                       found_a="$dir/lib$name.$libext"
27554                       if test -f "$dir/lib$name.la"; then
27555                         found_la="$dir/lib$name.la"
27556                       fi
27557                     fi
27558                   fi
27559                   ;;
27560               esac
27561               if test "X$found_dir" != "X"; then
27562                 break
27563               fi
27564             done
27565           fi
27566           if test "X$found_dir" != "X"; then
27567                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
27568             if test "X$found_so" != "X"; then
27569                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
27570                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27571               else
27572                                                                                 haveit=
27573                 for x in $ltrpathdirs; do
27574                   if test "X$x" = "X$found_dir"; then
27575                     haveit=yes
27576                     break
27577                   fi
27578                 done
27579                 if test -z "$haveit"; then
27580                   ltrpathdirs="$ltrpathdirs $found_dir"
27581                 fi
27582                                 if test "$hardcode_direct" = yes; then
27583                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27584                 else
27585                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
27586                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27587                                                             haveit=
27588                     for x in $rpathdirs; do
27589                       if test "X$x" = "X$found_dir"; then
27590                         haveit=yes
27591                         break
27592                       fi
27593                     done
27594                     if test -z "$haveit"; then
27595                       rpathdirs="$rpathdirs $found_dir"
27596                     fi
27597                   else
27598                                                                                 haveit=
27599                     for x in $LDFLAGS $LIBICONV; do
27600
27601   acl_save_prefix="$prefix"
27602   prefix="$acl_final_prefix"
27603   acl_save_exec_prefix="$exec_prefix"
27604   exec_prefix="$acl_final_exec_prefix"
27605   eval x=\"$x\"
27606   exec_prefix="$acl_save_exec_prefix"
27607   prefix="$acl_save_prefix"
27608
27609                       if test "X$x" = "X-L$found_dir"; then
27610                         haveit=yes
27611                         break
27612                       fi
27613                     done
27614                     if test -z "$haveit"; then
27615                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
27616                     fi
27617                     if test "$hardcode_minus_L" != no; then
27618                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27619                     else
27620                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
27621                     fi
27622                   fi
27623                 fi
27624               fi
27625             else
27626               if test "X$found_a" != "X"; then
27627                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
27628               else
27629                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
27630               fi
27631             fi
27632                         additional_includedir=
27633             case "$found_dir" in
27634               */$acl_libdirstem | */$acl_libdirstem/)
27635                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
27636                 additional_includedir="$basedir/include"
27637                 ;;
27638             esac
27639             if test "X$additional_includedir" != "X"; then
27640                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
27641                 haveit=
27642                 if test "X$additional_includedir" = "X/usr/local/include"; then
27643                   if test -n "$GCC"; then
27644                     case $host_os in
27645                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27646                     esac
27647                   fi
27648                 fi
27649                 if test -z "$haveit"; then
27650                   for x in $CPPFLAGS $INCICONV; do
27651
27652   acl_save_prefix="$prefix"
27653   prefix="$acl_final_prefix"
27654   acl_save_exec_prefix="$exec_prefix"
27655   exec_prefix="$acl_final_exec_prefix"
27656   eval x=\"$x\"
27657   exec_prefix="$acl_save_exec_prefix"
27658   prefix="$acl_save_prefix"
27659
27660                     if test "X$x" = "X-I$additional_includedir"; then
27661                       haveit=yes
27662                       break
27663                     fi
27664                   done
27665                   if test -z "$haveit"; then
27666                     if test -d "$additional_includedir"; then
27667                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
27668                     fi
27669                   fi
27670                 fi
27671               fi
27672             fi
27673                         if test -n "$found_la"; then
27674                                                         save_libdir="$libdir"
27675               case "$found_la" in
27676                 */* | *\\*) . "$found_la" ;;
27677                 *) . "./$found_la" ;;
27678               esac
27679               libdir="$save_libdir"
27680                             for dep in $dependency_libs; do
27681                 case "$dep" in
27682                   -L*)
27683                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27684                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
27685                       haveit=
27686                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
27687                         if test -n "$GCC"; then
27688                           case $host_os in
27689                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27690                           esac
27691                         fi
27692                       fi
27693                       if test -z "$haveit"; then
27694                         haveit=
27695                         for x in $LDFLAGS $LIBICONV; do
27696
27697   acl_save_prefix="$prefix"
27698   prefix="$acl_final_prefix"
27699   acl_save_exec_prefix="$exec_prefix"
27700   exec_prefix="$acl_final_exec_prefix"
27701   eval x=\"$x\"
27702   exec_prefix="$acl_save_exec_prefix"
27703   prefix="$acl_save_prefix"
27704
27705                           if test "X$x" = "X-L$additional_libdir"; then
27706                             haveit=yes
27707                             break
27708                           fi
27709                         done
27710                         if test -z "$haveit"; then
27711                           if test -d "$additional_libdir"; then
27712                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
27713                           fi
27714                         fi
27715                         haveit=
27716                         for x in $LDFLAGS $LTLIBICONV; do
27717
27718   acl_save_prefix="$prefix"
27719   prefix="$acl_final_prefix"
27720   acl_save_exec_prefix="$exec_prefix"
27721   exec_prefix="$acl_final_exec_prefix"
27722   eval x=\"$x\"
27723   exec_prefix="$acl_save_exec_prefix"
27724   prefix="$acl_save_prefix"
27725
27726                           if test "X$x" = "X-L$additional_libdir"; then
27727                             haveit=yes
27728                             break
27729                           fi
27730                         done
27731                         if test -z "$haveit"; then
27732                           if test -d "$additional_libdir"; then
27733                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
27734                           fi
27735                         fi
27736                       fi
27737                     fi
27738                     ;;
27739                   -R*)
27740                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
27741                     if test "$enable_rpath" != no; then
27742                                                                   haveit=
27743                       for x in $rpathdirs; do
27744                         if test "X$x" = "X$dir"; then
27745                           haveit=yes
27746                           break
27747                         fi
27748                       done
27749                       if test -z "$haveit"; then
27750                         rpathdirs="$rpathdirs $dir"
27751                       fi
27752                                                                   haveit=
27753                       for x in $ltrpathdirs; do
27754                         if test "X$x" = "X$dir"; then
27755                           haveit=yes
27756                           break
27757                         fi
27758                       done
27759                       if test -z "$haveit"; then
27760                         ltrpathdirs="$ltrpathdirs $dir"
27761                       fi
27762                     fi
27763                     ;;
27764                   -l*)
27765                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27766                     ;;
27767                   *.la)
27768                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27769                     ;;
27770                   *)
27771                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
27772                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
27773                     ;;
27774                 esac
27775               done
27776             fi
27777           else
27778                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
27779             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
27780           fi
27781         fi
27782       fi
27783     done
27784   done
27785   if test "X$rpathdirs" != "X"; then
27786     if test -n "$hardcode_libdir_separator"; then
27787                         alldirs=
27788       for found_dir in $rpathdirs; do
27789         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27790       done
27791             acl_save_libdir="$libdir"
27792       libdir="$alldirs"
27793       eval flag=\"$hardcode_libdir_flag_spec\"
27794       libdir="$acl_save_libdir"
27795       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
27796     else
27797             for found_dir in $rpathdirs; do
27798         acl_save_libdir="$libdir"
27799         libdir="$found_dir"
27800         eval flag=\"$hardcode_libdir_flag_spec\"
27801         libdir="$acl_save_libdir"
27802         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
27803       done
27804     fi
27805   fi
27806   if test "X$ltrpathdirs" != "X"; then
27807             for found_dir in $ltrpathdirs; do
27808       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
27809     done
27810   fi
27811
27812
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822
27823
27824
27825
27826
27827
27828
27829     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
27830 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
27831 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
27832   $as_echo_n "(cached) " >&6
27833 else
27834   gt_save_LIBS="$LIBS"
27835      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
27836      cat >conftest.$ac_ext <<_ACEOF
27837 /* confdefs.h.  */
27838 _ACEOF
27839 cat confdefs.h >>conftest.$ac_ext
27840 cat >>conftest.$ac_ext <<_ACEOF
27841 /* end confdefs.h.  */
27842 #include <CoreFoundation/CFPreferences.h>
27843 int
27844 main ()
27845 {
27846 CFPreferencesCopyAppValue(NULL, NULL)
27847   ;
27848   return 0;
27849 }
27850 _ACEOF
27851 rm -f conftest.$ac_objext conftest$ac_exeext
27852 if { (ac_try="$ac_link"
27853 case "(($ac_try" in
27854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27855   *) ac_try_echo=$ac_try;;
27856 esac
27857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27858 $as_echo "$ac_try_echo") >&5
27859   (eval "$ac_link") 2>conftest.er1
27860   ac_status=$?
27861   grep -v '^ *+' conftest.er1 >conftest.err
27862   rm -f conftest.er1
27863   cat conftest.err >&5
27864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865   (exit $ac_status); } && {
27866          test -z "$ac_c_werror_flag" ||
27867          test ! -s conftest.err
27868        } && test -s conftest$ac_exeext && {
27869          test "$cross_compiling" = yes ||
27870          $as_test_x conftest$ac_exeext
27871        }; then
27872   gt_cv_func_CFPreferencesCopyAppValue=yes
27873 else
27874   $as_echo "$as_me: failed program was:" >&5
27875 sed 's/^/| /' conftest.$ac_ext >&5
27876
27877         gt_cv_func_CFPreferencesCopyAppValue=no
27878 fi
27879
27880 rm -rf conftest.dSYM
27881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27882       conftest$ac_exeext conftest.$ac_ext
27883      LIBS="$gt_save_LIBS"
27884 fi
27885 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
27886 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
27887   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
27888
27889 cat >>confdefs.h <<\_ACEOF
27890 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
27891 _ACEOF
27892
27893   fi
27894     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
27895 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
27896 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
27897   $as_echo_n "(cached) " >&6
27898 else
27899   gt_save_LIBS="$LIBS"
27900      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
27901      cat >conftest.$ac_ext <<_ACEOF
27902 /* confdefs.h.  */
27903 _ACEOF
27904 cat confdefs.h >>conftest.$ac_ext
27905 cat >>conftest.$ac_ext <<_ACEOF
27906 /* end confdefs.h.  */
27907 #include <CoreFoundation/CFLocale.h>
27908 int
27909 main ()
27910 {
27911 CFLocaleCopyCurrent();
27912   ;
27913   return 0;
27914 }
27915 _ACEOF
27916 rm -f conftest.$ac_objext conftest$ac_exeext
27917 if { (ac_try="$ac_link"
27918 case "(($ac_try" in
27919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27920   *) ac_try_echo=$ac_try;;
27921 esac
27922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27923 $as_echo "$ac_try_echo") >&5
27924   (eval "$ac_link") 2>conftest.er1
27925   ac_status=$?
27926   grep -v '^ *+' conftest.er1 >conftest.err
27927   rm -f conftest.er1
27928   cat conftest.err >&5
27929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930   (exit $ac_status); } && {
27931          test -z "$ac_c_werror_flag" ||
27932          test ! -s conftest.err
27933        } && test -s conftest$ac_exeext && {
27934          test "$cross_compiling" = yes ||
27935          $as_test_x conftest$ac_exeext
27936        }; then
27937   gt_cv_func_CFLocaleCopyCurrent=yes
27938 else
27939   $as_echo "$as_me: failed program was:" >&5
27940 sed 's/^/| /' conftest.$ac_ext >&5
27941
27942         gt_cv_func_CFLocaleCopyCurrent=no
27943 fi
27944
27945 rm -rf conftest.dSYM
27946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27947       conftest$ac_exeext conftest.$ac_ext
27948      LIBS="$gt_save_LIBS"
27949 fi
27950 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
27951 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
27952   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
27953
27954 cat >>confdefs.h <<\_ACEOF
27955 #define HAVE_CFLOCALECOPYCURRENT 1
27956 _ACEOF
27957
27958   fi
27959   INTL_MACOSX_LIBS=
27960   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
27961     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
27962   fi
27963
27964
27965
27966
27967
27968
27969   LIBINTL=
27970   LTLIBINTL=
27971   POSUB=
27972
27973     if test "$USE_NLS" = "yes"; then
27974     gt_use_preinstalled_gnugettext=no
27975
27976
27977
27978
27979
27980
27981         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
27982 $as_echo_n "checking for GNU gettext in libc... " >&6; }
27983 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
27984   $as_echo_n "(cached) " >&6
27985 else
27986   cat >conftest.$ac_ext <<_ACEOF
27987 /* confdefs.h.  */
27988 _ACEOF
27989 cat confdefs.h >>conftest.$ac_ext
27990 cat >>conftest.$ac_ext <<_ACEOF
27991 /* end confdefs.h.  */
27992 #include <libintl.h>
27993 extern int _nl_msg_cat_cntr;
27994 extern int *_nl_domain_bindings;
27995 int
27996 main ()
27997 {
27998 bindtextdomain ("", "");
27999 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
28000   ;
28001   return 0;
28002 }
28003 _ACEOF
28004 rm -f conftest.$ac_objext conftest$ac_exeext
28005 if { (ac_try="$ac_link"
28006 case "(($ac_try" in
28007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28008   *) ac_try_echo=$ac_try;;
28009 esac
28010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28011 $as_echo "$ac_try_echo") >&5
28012   (eval "$ac_link") 2>conftest.er1
28013   ac_status=$?
28014   grep -v '^ *+' conftest.er1 >conftest.err
28015   rm -f conftest.er1
28016   cat conftest.err >&5
28017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018   (exit $ac_status); } && {
28019          test -z "$ac_c_werror_flag" ||
28020          test ! -s conftest.err
28021        } && test -s conftest$ac_exeext && {
28022          test "$cross_compiling" = yes ||
28023          $as_test_x conftest$ac_exeext
28024        }; then
28025   gt_cv_func_gnugettext1_libc=yes
28026 else
28027   $as_echo "$as_me: failed program was:" >&5
28028 sed 's/^/| /' conftest.$ac_ext >&5
28029
28030         gt_cv_func_gnugettext1_libc=no
28031 fi
28032
28033 rm -rf conftest.dSYM
28034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28035       conftest$ac_exeext conftest.$ac_ext
28036 fi
28037 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
28038 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
28039
28040         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
28041
28042
28043
28044
28045
28046           am_save_CPPFLAGS="$CPPFLAGS"
28047
28048   for element in $INCICONV; do
28049     haveit=
28050     for x in $CPPFLAGS; do
28051
28052   acl_save_prefix="$prefix"
28053   prefix="$acl_final_prefix"
28054   acl_save_exec_prefix="$exec_prefix"
28055   exec_prefix="$acl_final_exec_prefix"
28056   eval x=\"$x\"
28057   exec_prefix="$acl_save_exec_prefix"
28058   prefix="$acl_save_prefix"
28059
28060       if test "X$x" = "X$element"; then
28061         haveit=yes
28062         break
28063       fi
28064     done
28065     if test -z "$haveit"; then
28066       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
28067     fi
28068   done
28069
28070
28071   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
28072 $as_echo_n "checking for iconv... " >&6; }
28073 if test "${am_cv_func_iconv+set}" = set; then
28074   $as_echo_n "(cached) " >&6
28075 else
28076
28077     am_cv_func_iconv="no, consider installing GNU libiconv"
28078     am_cv_lib_iconv=no
28079     cat >conftest.$ac_ext <<_ACEOF
28080 /* confdefs.h.  */
28081 _ACEOF
28082 cat confdefs.h >>conftest.$ac_ext
28083 cat >>conftest.$ac_ext <<_ACEOF
28084 /* end confdefs.h.  */
28085 #include <stdlib.h>
28086 #include <iconv.h>
28087 int
28088 main ()
28089 {
28090 iconv_t cd = iconv_open("","");
28091        iconv(cd,NULL,NULL,NULL,NULL);
28092        iconv_close(cd);
28093   ;
28094   return 0;
28095 }
28096 _ACEOF
28097 rm -f conftest.$ac_objext conftest$ac_exeext
28098 if { (ac_try="$ac_link"
28099 case "(($ac_try" in
28100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28101   *) ac_try_echo=$ac_try;;
28102 esac
28103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28104 $as_echo "$ac_try_echo") >&5
28105   (eval "$ac_link") 2>conftest.er1
28106   ac_status=$?
28107   grep -v '^ *+' conftest.er1 >conftest.err
28108   rm -f conftest.er1
28109   cat conftest.err >&5
28110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28111   (exit $ac_status); } && {
28112          test -z "$ac_c_werror_flag" ||
28113          test ! -s conftest.err
28114        } && test -s conftest$ac_exeext && {
28115          test "$cross_compiling" = yes ||
28116          $as_test_x conftest$ac_exeext
28117        }; then
28118   am_cv_func_iconv=yes
28119 else
28120   $as_echo "$as_me: failed program was:" >&5
28121 sed 's/^/| /' conftest.$ac_ext >&5
28122
28123
28124 fi
28125
28126 rm -rf conftest.dSYM
28127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28128       conftest$ac_exeext conftest.$ac_ext
28129     if test "$am_cv_func_iconv" != yes; then
28130       am_save_LIBS="$LIBS"
28131       LIBS="$LIBS $LIBICONV"
28132       cat >conftest.$ac_ext <<_ACEOF
28133 /* confdefs.h.  */
28134 _ACEOF
28135 cat confdefs.h >>conftest.$ac_ext
28136 cat >>conftest.$ac_ext <<_ACEOF
28137 /* end confdefs.h.  */
28138 #include <stdlib.h>
28139 #include <iconv.h>
28140 int
28141 main ()
28142 {
28143 iconv_t cd = iconv_open("","");
28144          iconv(cd,NULL,NULL,NULL,NULL);
28145          iconv_close(cd);
28146   ;
28147   return 0;
28148 }
28149 _ACEOF
28150 rm -f conftest.$ac_objext conftest$ac_exeext
28151 if { (ac_try="$ac_link"
28152 case "(($ac_try" in
28153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28154   *) ac_try_echo=$ac_try;;
28155 esac
28156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28157 $as_echo "$ac_try_echo") >&5
28158   (eval "$ac_link") 2>conftest.er1
28159   ac_status=$?
28160   grep -v '^ *+' conftest.er1 >conftest.err
28161   rm -f conftest.er1
28162   cat conftest.err >&5
28163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164   (exit $ac_status); } && {
28165          test -z "$ac_c_werror_flag" ||
28166          test ! -s conftest.err
28167        } && test -s conftest$ac_exeext && {
28168          test "$cross_compiling" = yes ||
28169          $as_test_x conftest$ac_exeext
28170        }; then
28171   am_cv_lib_iconv=yes
28172         am_cv_func_iconv=yes
28173 else
28174   $as_echo "$as_me: failed program was:" >&5
28175 sed 's/^/| /' conftest.$ac_ext >&5
28176
28177
28178 fi
28179
28180 rm -rf conftest.dSYM
28181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28182       conftest$ac_exeext conftest.$ac_ext
28183       LIBS="$am_save_LIBS"
28184     fi
28185
28186 fi
28187 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28188 $as_echo "$am_cv_func_iconv" >&6; }
28189   if test "$am_cv_func_iconv" = yes; then
28190
28191 cat >>confdefs.h <<\_ACEOF
28192 #define HAVE_ICONV 1
28193 _ACEOF
28194
28195   fi
28196   if test "$am_cv_lib_iconv" = yes; then
28197     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
28198 $as_echo_n "checking how to link with libiconv... " >&6; }
28199     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
28200 $as_echo "$LIBICONV" >&6; }
28201   else
28202             CPPFLAGS="$am_save_CPPFLAGS"
28203     LIBICONV=
28204     LTLIBICONV=
28205   fi
28206
28207
28208
28209
28210
28211
28212
28213     use_additional=yes
28214
28215   acl_save_prefix="$prefix"
28216   prefix="$acl_final_prefix"
28217   acl_save_exec_prefix="$exec_prefix"
28218   exec_prefix="$acl_final_exec_prefix"
28219
28220     eval additional_includedir=\"$includedir\"
28221     eval additional_libdir=\"$libdir\"
28222
28223   exec_prefix="$acl_save_exec_prefix"
28224   prefix="$acl_save_prefix"
28225
28226
28227 # Check whether --with-libintl-prefix was given.
28228 if test "${with_libintl_prefix+set}" = set; then
28229   withval=$with_libintl_prefix;
28230     if test "X$withval" = "Xno"; then
28231       use_additional=no
28232     else
28233       if test "X$withval" = "X"; then
28234
28235   acl_save_prefix="$prefix"
28236   prefix="$acl_final_prefix"
28237   acl_save_exec_prefix="$exec_prefix"
28238   exec_prefix="$acl_final_exec_prefix"
28239
28240           eval additional_includedir=\"$includedir\"
28241           eval additional_libdir=\"$libdir\"
28242
28243   exec_prefix="$acl_save_exec_prefix"
28244   prefix="$acl_save_prefix"
28245
28246       else
28247         additional_includedir="$withval/include"
28248         additional_libdir="$withval/$acl_libdirstem"
28249       fi
28250     fi
28251
28252 fi
28253
28254       LIBINTL=
28255   LTLIBINTL=
28256   INCINTL=
28257   rpathdirs=
28258   ltrpathdirs=
28259   names_already_handled=
28260   names_next_round='intl '
28261   while test -n "$names_next_round"; do
28262     names_this_round="$names_next_round"
28263     names_next_round=
28264     for name in $names_this_round; do
28265       already_handled=
28266       for n in $names_already_handled; do
28267         if test "$n" = "$name"; then
28268           already_handled=yes
28269           break
28270         fi
28271       done
28272       if test -z "$already_handled"; then
28273         names_already_handled="$names_already_handled $name"
28274                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28275         eval value=\"\$HAVE_LIB$uppername\"
28276         if test -n "$value"; then
28277           if test "$value" = yes; then
28278             eval value=\"\$LIB$uppername\"
28279             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
28280             eval value=\"\$LTLIB$uppername\"
28281             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
28282           else
28283                                     :
28284           fi
28285         else
28286                               found_dir=
28287           found_la=
28288           found_so=
28289           found_a=
28290           if test $use_additional = yes; then
28291             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
28292               found_dir="$additional_libdir"
28293               found_so="$additional_libdir/lib$name.$shlibext"
28294               if test -f "$additional_libdir/lib$name.la"; then
28295                 found_la="$additional_libdir/lib$name.la"
28296               fi
28297             else
28298               if test -f "$additional_libdir/lib$name.$libext"; then
28299                 found_dir="$additional_libdir"
28300                 found_a="$additional_libdir/lib$name.$libext"
28301                 if test -f "$additional_libdir/lib$name.la"; then
28302                   found_la="$additional_libdir/lib$name.la"
28303                 fi
28304               fi
28305             fi
28306           fi
28307           if test "X$found_dir" = "X"; then
28308             for x in $LDFLAGS $LTLIBINTL; do
28309
28310   acl_save_prefix="$prefix"
28311   prefix="$acl_final_prefix"
28312   acl_save_exec_prefix="$exec_prefix"
28313   exec_prefix="$acl_final_exec_prefix"
28314   eval x=\"$x\"
28315   exec_prefix="$acl_save_exec_prefix"
28316   prefix="$acl_save_prefix"
28317
28318               case "$x" in
28319                 -L*)
28320                   dir=`echo "X$x" | sed -e 's/^X-L//'`
28321                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
28322                     found_dir="$dir"
28323                     found_so="$dir/lib$name.$shlibext"
28324                     if test -f "$dir/lib$name.la"; then
28325                       found_la="$dir/lib$name.la"
28326                     fi
28327                   else
28328                     if test -f "$dir/lib$name.$libext"; then
28329                       found_dir="$dir"
28330                       found_a="$dir/lib$name.$libext"
28331                       if test -f "$dir/lib$name.la"; then
28332                         found_la="$dir/lib$name.la"
28333                       fi
28334                     fi
28335                   fi
28336                   ;;
28337               esac
28338               if test "X$found_dir" != "X"; then
28339                 break
28340               fi
28341             done
28342           fi
28343           if test "X$found_dir" != "X"; then
28344                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
28345             if test "X$found_so" != "X"; then
28346                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
28347                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28348               else
28349                                                                                 haveit=
28350                 for x in $ltrpathdirs; do
28351                   if test "X$x" = "X$found_dir"; then
28352                     haveit=yes
28353                     break
28354                   fi
28355                 done
28356                 if test -z "$haveit"; then
28357                   ltrpathdirs="$ltrpathdirs $found_dir"
28358                 fi
28359                                 if test "$hardcode_direct" = yes; then
28360                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28361                 else
28362                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
28363                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28364                                                             haveit=
28365                     for x in $rpathdirs; do
28366                       if test "X$x" = "X$found_dir"; then
28367                         haveit=yes
28368                         break
28369                       fi
28370                     done
28371                     if test -z "$haveit"; then
28372                       rpathdirs="$rpathdirs $found_dir"
28373                     fi
28374                   else
28375                                                                                 haveit=
28376                     for x in $LDFLAGS $LIBINTL; do
28377
28378   acl_save_prefix="$prefix"
28379   prefix="$acl_final_prefix"
28380   acl_save_exec_prefix="$exec_prefix"
28381   exec_prefix="$acl_final_exec_prefix"
28382   eval x=\"$x\"
28383   exec_prefix="$acl_save_exec_prefix"
28384   prefix="$acl_save_prefix"
28385
28386                       if test "X$x" = "X-L$found_dir"; then
28387                         haveit=yes
28388                         break
28389                       fi
28390                     done
28391                     if test -z "$haveit"; then
28392                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
28393                     fi
28394                     if test "$hardcode_minus_L" != no; then
28395                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28396                     else
28397                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
28398                     fi
28399                   fi
28400                 fi
28401               fi
28402             else
28403               if test "X$found_a" != "X"; then
28404                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
28405               else
28406                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
28407               fi
28408             fi
28409                         additional_includedir=
28410             case "$found_dir" in
28411               */$acl_libdirstem | */$acl_libdirstem/)
28412                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
28413                 additional_includedir="$basedir/include"
28414                 ;;
28415             esac
28416             if test "X$additional_includedir" != "X"; then
28417                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
28418                 haveit=
28419                 if test "X$additional_includedir" = "X/usr/local/include"; then
28420                   if test -n "$GCC"; then
28421                     case $host_os in
28422                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28423                     esac
28424                   fi
28425                 fi
28426                 if test -z "$haveit"; then
28427                   for x in $CPPFLAGS $INCINTL; do
28428
28429   acl_save_prefix="$prefix"
28430   prefix="$acl_final_prefix"
28431   acl_save_exec_prefix="$exec_prefix"
28432   exec_prefix="$acl_final_exec_prefix"
28433   eval x=\"$x\"
28434   exec_prefix="$acl_save_exec_prefix"
28435   prefix="$acl_save_prefix"
28436
28437                     if test "X$x" = "X-I$additional_includedir"; then
28438                       haveit=yes
28439                       break
28440                     fi
28441                   done
28442                   if test -z "$haveit"; then
28443                     if test -d "$additional_includedir"; then
28444                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
28445                     fi
28446                   fi
28447                 fi
28448               fi
28449             fi
28450                         if test -n "$found_la"; then
28451                                                         save_libdir="$libdir"
28452               case "$found_la" in
28453                 */* | *\\*) . "$found_la" ;;
28454                 *) . "./$found_la" ;;
28455               esac
28456               libdir="$save_libdir"
28457                             for dep in $dependency_libs; do
28458                 case "$dep" in
28459                   -L*)
28460                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28461                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
28462                       haveit=
28463                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
28464                         if test -n "$GCC"; then
28465                           case $host_os in
28466                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28467                           esac
28468                         fi
28469                       fi
28470                       if test -z "$haveit"; then
28471                         haveit=
28472                         for x in $LDFLAGS $LIBINTL; do
28473
28474   acl_save_prefix="$prefix"
28475   prefix="$acl_final_prefix"
28476   acl_save_exec_prefix="$exec_prefix"
28477   exec_prefix="$acl_final_exec_prefix"
28478   eval x=\"$x\"
28479   exec_prefix="$acl_save_exec_prefix"
28480   prefix="$acl_save_prefix"
28481
28482                           if test "X$x" = "X-L$additional_libdir"; then
28483                             haveit=yes
28484                             break
28485                           fi
28486                         done
28487                         if test -z "$haveit"; then
28488                           if test -d "$additional_libdir"; then
28489                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
28490                           fi
28491                         fi
28492                         haveit=
28493                         for x in $LDFLAGS $LTLIBINTL; do
28494
28495   acl_save_prefix="$prefix"
28496   prefix="$acl_final_prefix"
28497   acl_save_exec_prefix="$exec_prefix"
28498   exec_prefix="$acl_final_exec_prefix"
28499   eval x=\"$x\"
28500   exec_prefix="$acl_save_exec_prefix"
28501   prefix="$acl_save_prefix"
28502
28503                           if test "X$x" = "X-L$additional_libdir"; then
28504                             haveit=yes
28505                             break
28506                           fi
28507                         done
28508                         if test -z "$haveit"; then
28509                           if test -d "$additional_libdir"; then
28510                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
28511                           fi
28512                         fi
28513                       fi
28514                     fi
28515                     ;;
28516                   -R*)
28517                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
28518                     if test "$enable_rpath" != no; then
28519                                                                   haveit=
28520                       for x in $rpathdirs; do
28521                         if test "X$x" = "X$dir"; then
28522                           haveit=yes
28523                           break
28524                         fi
28525                       done
28526                       if test -z "$haveit"; then
28527                         rpathdirs="$rpathdirs $dir"
28528                       fi
28529                                                                   haveit=
28530                       for x in $ltrpathdirs; do
28531                         if test "X$x" = "X$dir"; then
28532                           haveit=yes
28533                           break
28534                         fi
28535                       done
28536                       if test -z "$haveit"; then
28537                         ltrpathdirs="$ltrpathdirs $dir"
28538                       fi
28539                     fi
28540                     ;;
28541                   -l*)
28542                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28543                     ;;
28544                   *.la)
28545                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28546                     ;;
28547                   *)
28548                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
28549                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
28550                     ;;
28551                 esac
28552               done
28553             fi
28554           else
28555                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
28556             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
28557           fi
28558         fi
28559       fi
28560     done
28561   done
28562   if test "X$rpathdirs" != "X"; then
28563     if test -n "$hardcode_libdir_separator"; then
28564                         alldirs=
28565       for found_dir in $rpathdirs; do
28566         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
28567       done
28568             acl_save_libdir="$libdir"
28569       libdir="$alldirs"
28570       eval flag=\"$hardcode_libdir_flag_spec\"
28571       libdir="$acl_save_libdir"
28572       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
28573     else
28574             for found_dir in $rpathdirs; do
28575         acl_save_libdir="$libdir"
28576         libdir="$found_dir"
28577         eval flag=\"$hardcode_libdir_flag_spec\"
28578         libdir="$acl_save_libdir"
28579         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
28580       done
28581     fi
28582   fi
28583   if test "X$ltrpathdirs" != "X"; then
28584             for found_dir in $ltrpathdirs; do
28585       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
28586     done
28587   fi
28588
28589           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
28590 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
28591 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
28592   $as_echo_n "(cached) " >&6
28593 else
28594   gt_save_CPPFLAGS="$CPPFLAGS"
28595             CPPFLAGS="$CPPFLAGS $INCINTL"
28596             gt_save_LIBS="$LIBS"
28597             LIBS="$LIBS $LIBINTL"
28598                         cat >conftest.$ac_ext <<_ACEOF
28599 /* confdefs.h.  */
28600 _ACEOF
28601 cat confdefs.h >>conftest.$ac_ext
28602 cat >>conftest.$ac_ext <<_ACEOF
28603 /* end confdefs.h.  */
28604 #include <libintl.h>
28605 extern int _nl_msg_cat_cntr;
28606 extern
28607 #ifdef __cplusplus
28608 "C"
28609 #endif
28610 const char *_nl_expand_alias (const char *);
28611 int
28612 main ()
28613 {
28614 bindtextdomain ("", "");
28615 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
28616   ;
28617   return 0;
28618 }
28619 _ACEOF
28620 rm -f conftest.$ac_objext conftest$ac_exeext
28621 if { (ac_try="$ac_link"
28622 case "(($ac_try" in
28623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28624   *) ac_try_echo=$ac_try;;
28625 esac
28626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28627 $as_echo "$ac_try_echo") >&5
28628   (eval "$ac_link") 2>conftest.er1
28629   ac_status=$?
28630   grep -v '^ *+' conftest.er1 >conftest.err
28631   rm -f conftest.er1
28632   cat conftest.err >&5
28633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634   (exit $ac_status); } && {
28635          test -z "$ac_c_werror_flag" ||
28636          test ! -s conftest.err
28637        } && test -s conftest$ac_exeext && {
28638          test "$cross_compiling" = yes ||
28639          $as_test_x conftest$ac_exeext
28640        }; then
28641   gt_cv_func_gnugettext1_libintl=yes
28642 else
28643   $as_echo "$as_me: failed program was:" >&5
28644 sed 's/^/| /' conftest.$ac_ext >&5
28645
28646         gt_cv_func_gnugettext1_libintl=no
28647 fi
28648
28649 rm -rf conftest.dSYM
28650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28651       conftest$ac_exeext conftest.$ac_ext
28652                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
28653               LIBS="$LIBS $LIBICONV"
28654               cat >conftest.$ac_ext <<_ACEOF
28655 /* confdefs.h.  */
28656 _ACEOF
28657 cat confdefs.h >>conftest.$ac_ext
28658 cat >>conftest.$ac_ext <<_ACEOF
28659 /* end confdefs.h.  */
28660 #include <libintl.h>
28661 extern int _nl_msg_cat_cntr;
28662 extern
28663 #ifdef __cplusplus
28664 "C"
28665 #endif
28666 const char *_nl_expand_alias (const char *);
28667 int
28668 main ()
28669 {
28670 bindtextdomain ("", "");
28671 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
28672   ;
28673   return 0;
28674 }
28675 _ACEOF
28676 rm -f conftest.$ac_objext conftest$ac_exeext
28677 if { (ac_try="$ac_link"
28678 case "(($ac_try" in
28679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680   *) ac_try_echo=$ac_try;;
28681 esac
28682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28683 $as_echo "$ac_try_echo") >&5
28684   (eval "$ac_link") 2>conftest.er1
28685   ac_status=$?
28686   grep -v '^ *+' conftest.er1 >conftest.err
28687   rm -f conftest.er1
28688   cat conftest.err >&5
28689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690   (exit $ac_status); } && {
28691          test -z "$ac_c_werror_flag" ||
28692          test ! -s conftest.err
28693        } && test -s conftest$ac_exeext && {
28694          test "$cross_compiling" = yes ||
28695          $as_test_x conftest$ac_exeext
28696        }; then
28697   LIBINTL="$LIBINTL $LIBICONV"
28698                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
28699                 gt_cv_func_gnugettext1_libintl=yes
28700
28701 else
28702   $as_echo "$as_me: failed program was:" >&5
28703 sed 's/^/| /' conftest.$ac_ext >&5
28704
28705
28706 fi
28707
28708 rm -rf conftest.dSYM
28709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28710       conftest$ac_exeext conftest.$ac_ext
28711             fi
28712             CPPFLAGS="$gt_save_CPPFLAGS"
28713             LIBS="$gt_save_LIBS"
28714 fi
28715 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
28716 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
28717         fi
28718
28719                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
28720            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
28721                 && test "$PACKAGE" != gettext-runtime \
28722                 && test "$PACKAGE" != gettext-tools; }; then
28723           gt_use_preinstalled_gnugettext=yes
28724         else
28725                     LIBINTL=
28726           LTLIBINTL=
28727           INCINTL=
28728         fi
28729
28730
28731
28732     if test -n "$INTL_MACOSX_LIBS"; then
28733       if test "$gt_use_preinstalled_gnugettext" = "yes" \
28734          || test "$nls_cv_use_gnu_gettext" = "yes"; then
28735                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
28736         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
28737       fi
28738     fi
28739
28740     if test "$gt_use_preinstalled_gnugettext" = "yes" \
28741        || test "$nls_cv_use_gnu_gettext" = "yes"; then
28742
28743 cat >>confdefs.h <<\_ACEOF
28744 #define ENABLE_NLS 1
28745 _ACEOF
28746
28747     else
28748       USE_NLS=no
28749     fi
28750   fi
28751
28752   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
28753 $as_echo_n "checking whether to use NLS... " >&6; }
28754   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
28755 $as_echo "$USE_NLS" >&6; }
28756   if test "$USE_NLS" = "yes"; then
28757     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
28758 $as_echo_n "checking where the gettext function comes from... " >&6; }
28759     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
28760       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
28761         gt_source="external libintl"
28762       else
28763         gt_source="libc"
28764       fi
28765     else
28766       gt_source="included intl directory"
28767     fi
28768     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
28769 $as_echo "$gt_source" >&6; }
28770   fi
28771
28772   if test "$USE_NLS" = "yes"; then
28773
28774     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
28775       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
28776         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
28777 $as_echo_n "checking how to link with libintl... " >&6; }
28778         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
28779 $as_echo "$LIBINTL" >&6; }
28780
28781   for element in $INCINTL; do
28782     haveit=
28783     for x in $CPPFLAGS; do
28784
28785   acl_save_prefix="$prefix"
28786   prefix="$acl_final_prefix"
28787   acl_save_exec_prefix="$exec_prefix"
28788   exec_prefix="$acl_final_exec_prefix"
28789   eval x=\"$x\"
28790   exec_prefix="$acl_save_exec_prefix"
28791   prefix="$acl_save_prefix"
28792
28793       if test "X$x" = "X$element"; then
28794         haveit=yes
28795         break
28796       fi
28797     done
28798     if test -z "$haveit"; then
28799       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
28800     fi
28801   done
28802
28803       fi
28804
28805
28806 cat >>confdefs.h <<\_ACEOF
28807 #define HAVE_GETTEXT 1
28808 _ACEOF
28809
28810
28811 cat >>confdefs.h <<\_ACEOF
28812 #define HAVE_DCGETTEXT 1
28813 _ACEOF
28814
28815     fi
28816
28817         POSUB=po
28818   fi
28819
28820
28821
28822     INTLLIBS="$LIBINTL"
28823
28824
28825
28826
28827
28828
28829
28830 #
28831 # Devices
28832 #
28833
28834     case "$target" in
28835         sparc-sun-solaris2.10) # Solaris 10
28836         # curl is not in the LD_LIBRARY_PATH on Solaris 10, so we search
28837         # for it in a few common paths; we then extract the -L flags and
28838         # translate them to -R flags, as required by the runtime linker.
28839         # Extract the first word of "curl-config", so it can be a program name with args.
28840 set dummy curl-config; ac_word=$2
28841 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28842 $as_echo_n "checking for $ac_word... " >&6; }
28843 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
28844   $as_echo_n "(cached) " >&6
28845 else
28846   case $CURL_CONFIG in
28847   [\\/]* | ?:[\\/]*)
28848   ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
28849   ;;
28850   *)
28851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28852 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
28853 for as_dir in $as_dummy
28854 do
28855   IFS=$as_save_IFS
28856   test -z "$as_dir" && as_dir=.
28857   for ac_exec_ext in '' $ac_executable_extensions; do
28858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28859     ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28860     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28861     break 2
28862   fi
28863 done
28864 done
28865 IFS=$as_save_IFS
28866
28867   ;;
28868 esac
28869 fi
28870 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
28871 if test -n "$CURL_CONFIG"; then
28872   { $as_echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
28873 $as_echo "$CURL_CONFIG" >&6; }
28874 else
28875   { $as_echo "$as_me:$LINENO: result: no" >&5
28876 $as_echo "no" >&6; }
28877 fi
28878
28879
28880         if test -n "$CURL_CONFIG"; then
28881             curlflags=`$CURL_CONFIG --libs 2>/dev/null`
28882             for flag in curlflags; do
28883                 case $flag in
28884                     -L*) LDFLAGS="$LDFLAGS "`echo "x$flag" | sed -e 's/^x-L/-R/'`;;
28885                 esac
28886             done
28887         fi
28888         ;;
28889     esac
28890
28891
28892
28893
28894
28895
28896
28897
28898
28899
28900
28901
28902
28903
28904
28905
28906
28907
28908
28909
28910
28911
28912
28913
28914
28915
28916
28917
28918
28919
28920
28921
28922
28923
28924
28925
28926
28927
28928
28929 # Check whether --with-libcurl was given.
28930 if test "${with_libcurl+set}" = set; then
28931   withval=$with_libcurl; _libcurl_with=$withval
28932 else
28933   _libcurl_with=yes
28934 fi
28935
28936
28937   if test "$_libcurl_with" != "no" ; then
28938
28939      for ac_prog in gawk mawk nawk awk
28940 do
28941   # Extract the first word of "$ac_prog", so it can be a program name with args.
28942 set dummy $ac_prog; ac_word=$2
28943 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28944 $as_echo_n "checking for $ac_word... " >&6; }
28945 if test "${ac_cv_prog_AWK+set}" = set; then
28946   $as_echo_n "(cached) " >&6
28947 else
28948   if test -n "$AWK"; then
28949   ac_cv_prog_AWK="$AWK" # Let the user override the test.
28950 else
28951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28952 for as_dir in $PATH
28953 do
28954   IFS=$as_save_IFS
28955   test -z "$as_dir" && as_dir=.
28956   for ac_exec_ext in '' $ac_executable_extensions; do
28957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28958     ac_cv_prog_AWK="$ac_prog"
28959     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28960     break 2
28961   fi
28962 done
28963 done
28964 IFS=$as_save_IFS
28965
28966 fi
28967 fi
28968 AWK=$ac_cv_prog_AWK
28969 if test -n "$AWK"; then
28970   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
28971 $as_echo "$AWK" >&6; }
28972 else
28973   { $as_echo "$as_me:$LINENO: result: no" >&5
28974 $as_echo "no" >&6; }
28975 fi
28976
28977
28978   test -n "$AWK" && break
28979 done
28980
28981
28982      _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
28983
28984      _libcurl_try_link=yes
28985
28986      if test -d "$_libcurl_with" ; then
28987         LIBCURL_CPPFLAGS="-I$withval/include"
28988         _libcurl_ldflags="-L$withval/lib"
28989         # Extract the first word of "curl-config", so it can be a program name with args.
28990 set dummy curl-config; ac_word=$2
28991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28992 $as_echo_n "checking for $ac_word... " >&6; }
28993 if test "${ac_cv_path__libcurl_config+set}" = set; then
28994   $as_echo_n "(cached) " >&6
28995 else
28996   case $_libcurl_config in
28997   [\\/]* | ?:[\\/]*)
28998   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
28999   ;;
29000   *)
29001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29002 for as_dir in "$withval/bin"
29003 do
29004   IFS=$as_save_IFS
29005   test -z "$as_dir" && as_dir=.
29006   for ac_exec_ext in '' $ac_executable_extensions; do
29007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29008     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
29009     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29010     break 2
29011   fi
29012 done
29013 done
29014 IFS=$as_save_IFS
29015
29016   test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
29017   ;;
29018 esac
29019 fi
29020 _libcurl_config=$ac_cv_path__libcurl_config
29021 if test -n "$_libcurl_config"; then
29022   { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
29023 $as_echo "$_libcurl_config" >&6; }
29024 else
29025   { $as_echo "$as_me:$LINENO: result: no" >&5
29026 $as_echo "no" >&6; }
29027 fi
29028
29029
29030      else
29031         # Extract the first word of "curl-config", so it can be a program name with args.
29032 set dummy curl-config; ac_word=$2
29033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29034 $as_echo_n "checking for $ac_word... " >&6; }
29035 if test "${ac_cv_path__libcurl_config+set}" = set; then
29036   $as_echo_n "(cached) " >&6
29037 else
29038   case $_libcurl_config in
29039   [\\/]* | ?:[\\/]*)
29040   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
29041   ;;
29042   *)
29043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29044 for as_dir in $PATH
29045 do
29046   IFS=$as_save_IFS
29047   test -z "$as_dir" && as_dir=.
29048   for ac_exec_ext in '' $ac_executable_extensions; do
29049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29050     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
29051     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29052     break 2
29053   fi
29054 done
29055 done
29056 IFS=$as_save_IFS
29057
29058   ;;
29059 esac
29060 fi
29061 _libcurl_config=$ac_cv_path__libcurl_config
29062 if test -n "$_libcurl_config"; then
29063   { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
29064 $as_echo "$_libcurl_config" >&6; }
29065 else
29066   { $as_echo "$as_me:$LINENO: result: no" >&5
29067 $as_echo "no" >&6; }
29068 fi
29069
29070
29071      fi
29072
29073      if test x$_libcurl_config != "x" ; then
29074         { $as_echo "$as_me:$LINENO: checking for the version of libcurl" >&5
29075 $as_echo_n "checking for the version of libcurl... " >&6; }
29076 if test "${libcurl_cv_lib_curl_version+set}" = set; then
29077   $as_echo_n "(cached) " >&6
29078 else
29079   libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
29080 fi
29081 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_version" >&5
29082 $as_echo "$libcurl_cv_lib_curl_version" >&6; }
29083
29084         _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
29085         _libcurl_wanted=`echo 7.10.0 | $_libcurl_version_parse`
29086
29087         if test $_libcurl_wanted -gt 0 ; then
29088            { $as_echo "$as_me:$LINENO: checking for libcurl >= version 7.10.0" >&5
29089 $as_echo_n "checking for libcurl >= version 7.10.0... " >&6; }
29090 if test "${libcurl_cv_lib_version_ok+set}" = set; then
29091   $as_echo_n "(cached) " >&6
29092 else
29093
29094               if test $_libcurl_version -ge $_libcurl_wanted ; then
29095                  libcurl_cv_lib_version_ok=yes
29096               else
29097                  libcurl_cv_lib_version_ok=no
29098               fi
29099
29100 fi
29101 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_version_ok" >&5
29102 $as_echo "$libcurl_cv_lib_version_ok" >&6; }
29103         fi
29104
29105         if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
29106            if test x"$LIBCURL_CPPFLAGS" = "x" ; then
29107               LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
29108            fi
29109            if test x"$LIBCURL" = "x" ; then
29110               LIBCURL=`$_libcurl_config --libs`
29111
29112               # This is so silly, but Apple actually has a bug in their
29113               # curl-config script.  Fixed in Tiger, but there are still
29114               # lots of Panther installs around.
29115               case "${host}" in
29116                  powerpc-apple-darwin7*)
29117                     LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
29118                  ;;
29119               esac
29120            fi
29121
29122            # All curl-config scripts support --feature
29123            _libcurl_features=`$_libcurl_config --feature`
29124
29125            # Is it modern enough to have --protocols? (7.12.4)
29126            if test $_libcurl_version -ge 461828 ; then
29127               _libcurl_protocols=`$_libcurl_config --protocols`
29128            fi
29129         else
29130            _libcurl_try_link=no
29131         fi
29132
29133         unset _libcurl_wanted
29134      fi
29135
29136      if test $_libcurl_try_link = yes ; then
29137
29138         # we didn't find curl-config, so let's see if the user-supplied
29139         # link line (or failing that, "-lcurl") is enough.
29140         LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
29141
29142         { $as_echo "$as_me:$LINENO: checking whether libcurl is usable" >&5
29143 $as_echo_n "checking whether libcurl is usable... " >&6; }
29144 if test "${libcurl_cv_lib_curl_usable+set}" = set; then
29145   $as_echo_n "(cached) " >&6
29146 else
29147
29148            _libcurl_save_cppflags=$CPPFLAGS
29149            CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
29150            _libcurl_save_libs=$LIBS
29151            LIBS="$LIBCURL $LIBS"
29152
29153            cat >conftest.$ac_ext <<_ACEOF
29154 /* confdefs.h.  */
29155 _ACEOF
29156 cat confdefs.h >>conftest.$ac_ext
29157 cat >>conftest.$ac_ext <<_ACEOF
29158 /* end confdefs.h.  */
29159 #include <curl/curl.h>
29160 int
29161 main ()
29162 {
29163
29164 /* Try and use a few common options to force a failure if we are
29165    missing symbols or can't link. */
29166 int x;
29167 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
29168 x=CURL_ERROR_SIZE;
29169 x=CURLOPT_WRITEFUNCTION;
29170 x=CURLOPT_FILE;
29171 x=CURLOPT_ERRORBUFFER;
29172 x=CURLOPT_STDERR;
29173 x=CURLOPT_VERBOSE;
29174
29175   ;
29176   return 0;
29177 }
29178 _ACEOF
29179 rm -f conftest.$ac_objext conftest$ac_exeext
29180 if { (ac_try="$ac_link"
29181 case "(($ac_try" in
29182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29183   *) ac_try_echo=$ac_try;;
29184 esac
29185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29186 $as_echo "$ac_try_echo") >&5
29187   (eval "$ac_link") 2>conftest.er1
29188   ac_status=$?
29189   grep -v '^ *+' conftest.er1 >conftest.err
29190   rm -f conftest.er1
29191   cat conftest.err >&5
29192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193   (exit $ac_status); } && {
29194          test -z "$ac_c_werror_flag" ||
29195          test ! -s conftest.err
29196        } && test -s conftest$ac_exeext && {
29197          test "$cross_compiling" = yes ||
29198          $as_test_x conftest$ac_exeext
29199        }; then
29200   libcurl_cv_lib_curl_usable=yes
29201 else
29202   $as_echo "$as_me: failed program was:" >&5
29203 sed 's/^/| /' conftest.$ac_ext >&5
29204
29205         libcurl_cv_lib_curl_usable=no
29206 fi
29207
29208 rm -rf conftest.dSYM
29209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29210       conftest$ac_exeext conftest.$ac_ext
29211
29212            CPPFLAGS=$_libcurl_save_cppflags
29213            LIBS=$_libcurl_save_libs
29214            unset _libcurl_save_cppflags
29215            unset _libcurl_save_libs
29216
29217 fi
29218 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_usable" >&5
29219 $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
29220
29221         if test $libcurl_cv_lib_curl_usable = yes ; then
29222
29223            # Does curl_free() exist in this version of libcurl?
29224            # If not, fake it with free()
29225
29226            _libcurl_save_cppflags=$CPPFLAGS
29227            CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
29228            _libcurl_save_libs=$LIBS
29229            LIBS="$LIBS $LIBCURL"
29230
29231            { $as_echo "$as_me:$LINENO: checking for curl_free" >&5
29232 $as_echo_n "checking for curl_free... " >&6; }
29233 if test "${ac_cv_func_curl_free+set}" = set; then
29234   $as_echo_n "(cached) " >&6
29235 else
29236   cat >conftest.$ac_ext <<_ACEOF
29237 /* confdefs.h.  */
29238 _ACEOF
29239 cat confdefs.h >>conftest.$ac_ext
29240 cat >>conftest.$ac_ext <<_ACEOF
29241 /* end confdefs.h.  */
29242 /* Define curl_free to an innocuous variant, in case <limits.h> declares curl_free.
29243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29244 #define curl_free innocuous_curl_free
29245
29246 /* System header to define __stub macros and hopefully few prototypes,
29247     which can conflict with char curl_free (); below.
29248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29249     <limits.h> exists even on freestanding compilers.  */
29250
29251 #ifdef __STDC__
29252 # include <limits.h>
29253 #else
29254 # include <assert.h>
29255 #endif
29256
29257 #undef curl_free
29258
29259 /* Override any GCC internal prototype to avoid an error.
29260    Use char because int might match the return type of a GCC
29261    builtin and then its argument prototype would still apply.  */
29262 #ifdef __cplusplus
29263 extern "C"
29264 #endif
29265 char curl_free ();
29266 /* The GNU C library defines this for functions which it implements
29267     to always fail with ENOSYS.  Some functions are actually named
29268     something starting with __ and the normal name is an alias.  */
29269 #if defined __stub_curl_free || defined __stub___curl_free
29270 choke me
29271 #endif
29272
29273 int
29274 main ()
29275 {
29276 return curl_free ();
29277   ;
29278   return 0;
29279 }
29280 _ACEOF
29281 rm -f conftest.$ac_objext conftest$ac_exeext
29282 if { (ac_try="$ac_link"
29283 case "(($ac_try" in
29284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29285   *) ac_try_echo=$ac_try;;
29286 esac
29287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29288 $as_echo "$ac_try_echo") >&5
29289   (eval "$ac_link") 2>conftest.er1
29290   ac_status=$?
29291   grep -v '^ *+' conftest.er1 >conftest.err
29292   rm -f conftest.er1
29293   cat conftest.err >&5
29294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295   (exit $ac_status); } && {
29296          test -z "$ac_c_werror_flag" ||
29297          test ! -s conftest.err
29298        } && test -s conftest$ac_exeext && {
29299          test "$cross_compiling" = yes ||
29300          $as_test_x conftest$ac_exeext
29301        }; then
29302   ac_cv_func_curl_free=yes
29303 else
29304   $as_echo "$as_me: failed program was:" >&5
29305 sed 's/^/| /' conftest.$ac_ext >&5
29306
29307         ac_cv_func_curl_free=no
29308 fi
29309
29310 rm -rf conftest.dSYM
29311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29312       conftest$ac_exeext conftest.$ac_ext
29313 fi
29314 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_curl_free" >&5
29315 $as_echo "$ac_cv_func_curl_free" >&6; }
29316 if test "x$ac_cv_func_curl_free" = x""yes; then
29317   :
29318 else
29319
29320 cat >>confdefs.h <<\_ACEOF
29321 #define curl_free free
29322 _ACEOF
29323
29324 fi
29325
29326
29327            CPPFLAGS=$_libcurl_save_cppflags
29328            LIBS=$_libcurl_save_libs
29329            unset _libcurl_save_cppflags
29330            unset _libcurl_save_libs
29331
29332
29333 cat >>confdefs.h <<\_ACEOF
29334 #define HAVE_LIBCURL 1
29335 _ACEOF
29336
29337
29338
29339
29340            for _libcurl_feature in $_libcurl_features ; do
29341               cat >>confdefs.h <<_ACEOF
29342 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
29343 _ACEOF
29344
29345               eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
29346            done
29347
29348            if test "x$_libcurl_protocols" = "x" ; then
29349
29350               # We don't have --protocols, so just assume that all
29351               # protocols are available
29352               _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
29353
29354               if test x$libcurl_feature_SSL = xyes ; then
29355                  _libcurl_protocols="$_libcurl_protocols HTTPS"
29356
29357                  # FTPS wasn't standards-compliant until version
29358                  # 7.11.0
29359                  if test $_libcurl_version -ge 461568; then
29360                     _libcurl_protocols="$_libcurl_protocols FTPS"
29361                  fi
29362               fi
29363            fi
29364
29365            for _libcurl_protocol in $_libcurl_protocols ; do
29366               cat >>confdefs.h <<_ACEOF
29367 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
29368 _ACEOF
29369
29370               eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
29371            done
29372         else
29373            unset LIBCURL
29374            unset LIBCURL_CPPFLAGS
29375         fi
29376      fi
29377
29378      unset _libcurl_try_link
29379      unset _libcurl_version_parse
29380      unset _libcurl_config
29381      unset _libcurl_feature
29382      unset _libcurl_features
29383      unset _libcurl_protocol
29384      unset _libcurl_protocols
29385      unset _libcurl_version
29386      unset _libcurl_ldflags
29387   fi
29388
29389   if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
29390      # This is the IF-NO path
29391      HAVE_CURL=no
29392   else
29393      # This is the IF-YES path
29394      HAVE_CURL=yes
29395   fi
29396
29397   unset _libcurl_with
29398
29399     if test x"$HAVE_CURL" = x"yes"; then
29400         LIBS="$LIBCURL $LIBS"
29401
29402         CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
29403
29404
29405
29406
29407     { $as_echo "$as_me:$LINENO: checking for curl_off_t" >&5
29408 $as_echo_n "checking for curl_off_t... " >&6; }
29409 if test "${ac_cv_type_curl_off_t+set}" = set; then
29410   $as_echo_n "(cached) " >&6
29411 else
29412   ac_cv_type_curl_off_t=no
29413 cat >conftest.$ac_ext <<_ACEOF
29414 /* confdefs.h.  */
29415 _ACEOF
29416 cat confdefs.h >>conftest.$ac_ext
29417 cat >>conftest.$ac_ext <<_ACEOF
29418 /* end confdefs.h.  */
29419
29420 #ifdef HAVE_SYS_TYPES_H
29421 #include <sys/types.h>
29422 #endif
29423 #ifdef STDC_HEADERS
29424 #include <stdlib.h>
29425 #include <stddef.h>
29426 #endif
29427 #include <curl/curl.h>
29428
29429
29430
29431 int
29432 main ()
29433 {
29434 if (sizeof (curl_off_t))
29435        return 0;
29436   ;
29437   return 0;
29438 }
29439 _ACEOF
29440 rm -f conftest.$ac_objext
29441 if { (ac_try="$ac_compile"
29442 case "(($ac_try" in
29443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29444   *) ac_try_echo=$ac_try;;
29445 esac
29446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29447 $as_echo "$ac_try_echo") >&5
29448   (eval "$ac_compile") 2>conftest.er1
29449   ac_status=$?
29450   grep -v '^ *+' conftest.er1 >conftest.err
29451   rm -f conftest.er1
29452   cat conftest.err >&5
29453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454   (exit $ac_status); } && {
29455          test -z "$ac_c_werror_flag" ||
29456          test ! -s conftest.err
29457        } && test -s conftest.$ac_objext; then
29458   cat >conftest.$ac_ext <<_ACEOF
29459 /* confdefs.h.  */
29460 _ACEOF
29461 cat confdefs.h >>conftest.$ac_ext
29462 cat >>conftest.$ac_ext <<_ACEOF
29463 /* end confdefs.h.  */
29464
29465 #ifdef HAVE_SYS_TYPES_H
29466 #include <sys/types.h>
29467 #endif
29468 #ifdef STDC_HEADERS
29469 #include <stdlib.h>
29470 #include <stddef.h>
29471 #endif
29472 #include <curl/curl.h>
29473
29474
29475
29476 int
29477 main ()
29478 {
29479 if (sizeof ((curl_off_t)))
29480           return 0;
29481   ;
29482   return 0;
29483 }
29484 _ACEOF
29485 rm -f conftest.$ac_objext
29486 if { (ac_try="$ac_compile"
29487 case "(($ac_try" in
29488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29489   *) ac_try_echo=$ac_try;;
29490 esac
29491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29492 $as_echo "$ac_try_echo") >&5
29493   (eval "$ac_compile") 2>conftest.er1
29494   ac_status=$?
29495   grep -v '^ *+' conftest.er1 >conftest.err
29496   rm -f conftest.er1
29497   cat conftest.err >&5
29498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499   (exit $ac_status); } && {
29500          test -z "$ac_c_werror_flag" ||
29501          test ! -s conftest.err
29502        } && test -s conftest.$ac_objext; then
29503   :
29504 else
29505   $as_echo "$as_me: failed program was:" >&5
29506 sed 's/^/| /' conftest.$ac_ext >&5
29507
29508         ac_cv_type_curl_off_t=yes
29509 fi
29510
29511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29512 else
29513   $as_echo "$as_me: failed program was:" >&5
29514 sed 's/^/| /' conftest.$ac_ext >&5
29515
29516
29517 fi
29518
29519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29520 fi
29521 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_curl_off_t" >&5
29522 $as_echo "$ac_cv_type_curl_off_t" >&6; }
29523 if test "x$ac_cv_type_curl_off_t" = x""yes; then
29524   :
29525 else
29526
29527
29528 cat >>confdefs.h <<\_ACEOF
29529 #define curl_off_t off_t
29530 _ACEOF
29531
29532
29533 fi
29534
29535
29536     fi
29537
29538
29539     HAVE_HMAC=yes
29540
29541 { $as_echo "$as_me:$LINENO: checking for HMAC_CTX_init in -lcrypto" >&5
29542 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
29543 if test "${ac_cv_lib_crypto_HMAC_CTX_init+set}" = set; then
29544   $as_echo_n "(cached) " >&6
29545 else
29546   ac_check_lib_save_LIBS=$LIBS
29547 LIBS="-lcrypto  $LIBS"
29548 cat >conftest.$ac_ext <<_ACEOF
29549 /* confdefs.h.  */
29550 _ACEOF
29551 cat confdefs.h >>conftest.$ac_ext
29552 cat >>conftest.$ac_ext <<_ACEOF
29553 /* end confdefs.h.  */
29554
29555 /* Override any GCC internal prototype to avoid an error.
29556    Use char because int might match the return type of a GCC
29557    builtin and then its argument prototype would still apply.  */
29558 #ifdef __cplusplus
29559 extern "C"
29560 #endif
29561 char HMAC_CTX_init ();
29562 int
29563 main ()
29564 {
29565 return HMAC_CTX_init ();
29566   ;
29567   return 0;
29568 }
29569 _ACEOF
29570 rm -f conftest.$ac_objext conftest$ac_exeext
29571 if { (ac_try="$ac_link"
29572 case "(($ac_try" in
29573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29574   *) ac_try_echo=$ac_try;;
29575 esac
29576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29577 $as_echo "$ac_try_echo") >&5
29578   (eval "$ac_link") 2>conftest.er1
29579   ac_status=$?
29580   grep -v '^ *+' conftest.er1 >conftest.err
29581   rm -f conftest.er1
29582   cat conftest.err >&5
29583   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584   (exit $ac_status); } && {
29585          test -z "$ac_c_werror_flag" ||
29586          test ! -s conftest.err
29587        } && test -s conftest$ac_exeext && {
29588          test "$cross_compiling" = yes ||
29589          $as_test_x conftest$ac_exeext
29590        }; then
29591   ac_cv_lib_crypto_HMAC_CTX_init=yes
29592 else
29593   $as_echo "$as_me: failed program was:" >&5
29594 sed 's/^/| /' conftest.$ac_ext >&5
29595
29596         ac_cv_lib_crypto_HMAC_CTX_init=no
29597 fi
29598
29599 rm -rf conftest.dSYM
29600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29601       conftest$ac_exeext conftest.$ac_ext
29602 LIBS=$ac_check_lib_save_LIBS
29603 fi
29604 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
29605 $as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
29606 if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = x""yes; then
29607   cat >>confdefs.h <<_ACEOF
29608 #define HAVE_LIBCRYPTO 1
29609 _ACEOF
29610
29611   LIBS="-lcrypto $LIBS"
29612
29613 else
29614   HAVE_HMAC=no
29615 fi
29616
29617
29618     found_hmac_h=no
29619
29620
29621
29622 for ac_header in openssl/hmac.h crypto/hmac.h hmac.h
29623 do
29624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29626   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29627 $as_echo_n "checking for $ac_header... " >&6; }
29628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29629   $as_echo_n "(cached) " >&6
29630 fi
29631 ac_res=`eval 'as_val=${'$as_ac_Header'}
29632                  $as_echo "$as_val"'`
29633                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29634 $as_echo "$ac_res" >&6; }
29635 else
29636   # Is the header compilable?
29637 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29638 $as_echo_n "checking $ac_header usability... " >&6; }
29639 cat >conftest.$ac_ext <<_ACEOF
29640 /* confdefs.h.  */
29641 _ACEOF
29642 cat confdefs.h >>conftest.$ac_ext
29643 cat >>conftest.$ac_ext <<_ACEOF
29644 /* end confdefs.h.  */
29645 $ac_includes_default
29646 #include <$ac_header>
29647 _ACEOF
29648 rm -f conftest.$ac_objext
29649 if { (ac_try="$ac_compile"
29650 case "(($ac_try" in
29651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29652   *) ac_try_echo=$ac_try;;
29653 esac
29654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29655 $as_echo "$ac_try_echo") >&5
29656   (eval "$ac_compile") 2>conftest.er1
29657   ac_status=$?
29658   grep -v '^ *+' conftest.er1 >conftest.err
29659   rm -f conftest.er1
29660   cat conftest.err >&5
29661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662   (exit $ac_status); } && {
29663          test -z "$ac_c_werror_flag" ||
29664          test ! -s conftest.err
29665        } && test -s conftest.$ac_objext; then
29666   ac_header_compiler=yes
29667 else
29668   $as_echo "$as_me: failed program was:" >&5
29669 sed 's/^/| /' conftest.$ac_ext >&5
29670
29671         ac_header_compiler=no
29672 fi
29673
29674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29675 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29676 $as_echo "$ac_header_compiler" >&6; }
29677
29678 # Is the header present?
29679 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29680 $as_echo_n "checking $ac_header presence... " >&6; }
29681 cat >conftest.$ac_ext <<_ACEOF
29682 /* confdefs.h.  */
29683 _ACEOF
29684 cat confdefs.h >>conftest.$ac_ext
29685 cat >>conftest.$ac_ext <<_ACEOF
29686 /* end confdefs.h.  */
29687 #include <$ac_header>
29688 _ACEOF
29689 if { (ac_try="$ac_cpp conftest.$ac_ext"
29690 case "(($ac_try" in
29691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29692   *) ac_try_echo=$ac_try;;
29693 esac
29694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29695 $as_echo "$ac_try_echo") >&5
29696   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29697   ac_status=$?
29698   grep -v '^ *+' conftest.er1 >conftest.err
29699   rm -f conftest.er1
29700   cat conftest.err >&5
29701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29702   (exit $ac_status); } >/dev/null && {
29703          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29704          test ! -s conftest.err
29705        }; then
29706   ac_header_preproc=yes
29707 else
29708   $as_echo "$as_me: failed program was:" >&5
29709 sed 's/^/| /' conftest.$ac_ext >&5
29710
29711   ac_header_preproc=no
29712 fi
29713
29714 rm -f conftest.err conftest.$ac_ext
29715 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29716 $as_echo "$ac_header_preproc" >&6; }
29717
29718 # So?  What about this header?
29719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29720   yes:no: )
29721     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29722 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29723     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29724 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29725     ac_header_preproc=yes
29726     ;;
29727   no:yes:* )
29728     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29729 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29730     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29731 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29732     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29733 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29734     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29735 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29736     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29737 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29738     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29739 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29740
29741     ;;
29742 esac
29743 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29744 $as_echo_n "checking for $ac_header... " >&6; }
29745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29746   $as_echo_n "(cached) " >&6
29747 else
29748   eval "$as_ac_Header=\$ac_header_preproc"
29749 fi
29750 ac_res=`eval 'as_val=${'$as_ac_Header'}
29751                  $as_echo "$as_val"'`
29752                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29753 $as_echo "$ac_res" >&6; }
29754
29755 fi
29756 as_val=`eval 'as_val=${'$as_ac_Header'}
29757                  $as_echo "$as_val"'`
29758    if test "x$as_val" = x""yes; then
29759   cat >>confdefs.h <<_ACEOF
29760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29761 _ACEOF
29762  found_hmac_h=yes; break
29763 fi
29764
29765 done
29766
29767     if test x"$found_hmac_h" != x"yes"; then
29768         HAVE_HMAC=no
29769     fi
29770
29771
29772
29773
29774
29775     # Check whether --enable-s3-device was given.
29776 if test "${enable_s3_device+set}" = set; then
29777   enableval=$enable_s3_device;  WANT_S3_DEVICE=$enableval
29778 else
29779    WANT_S3_DEVICE=maybe
29780 fi
29781
29782
29783     { $as_echo "$as_me:$LINENO: checking whether to include the Amazon S3 device" >&5
29784 $as_echo_n "checking whether to include the Amazon S3 device... " >&6; }
29785     # if the user didn't specify 'no', then check for support
29786     if test x"$WANT_S3_DEVICE" != x"no"; then
29787         if test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"; then
29788             WANT_S3_DEVICE=yes
29789         else
29790             # no support -- if the user explicitly enabled the device,
29791             # then this is an error
29792             if test x"$WANT_S3_DEVICE" = x"yes"; then
29793                 { $as_echo "$as_me:$LINENO: result: no" >&5
29794 $as_echo "no" >&6; }
29795                 { { $as_echo "$as_me:$LINENO: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&5
29796 $as_echo "$as_me: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&2;}
29797    { (exit 1); exit 1; }; }
29798             else
29799                 WANT_S3_DEVICE=no
29800             fi
29801         fi
29802     fi
29803     { $as_echo "$as_me:$LINENO: result: $WANT_S3_DEVICE" >&5
29804 $as_echo "$WANT_S3_DEVICE" >&6; }
29805
29806      if test x"$WANT_S3_DEVICE" = x"yes"; then
29807   WANT_S3_DEVICE_TRUE=
29808   WANT_S3_DEVICE_FALSE='#'
29809 else
29810   WANT_S3_DEVICE_TRUE='#'
29811   WANT_S3_DEVICE_FALSE=
29812 fi
29813
29814
29815     # Now handle any setup for S3, if we want it.
29816     if test x"$WANT_S3_DEVICE" = x"yes"; then
29817
29818 cat >>confdefs.h <<\_ACEOF
29819 #define WANT_S3_DEVICE /**/
29820 _ACEOF
29821
29822     fi
29823
29824
29825
29826
29827
29828 for ac_header in \
29829         linux/zftape.h \
29830         sys/tape.h \
29831         sys/mtio.h \
29832
29833 do
29834 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29836   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29837 $as_echo_n "checking for $ac_header... " >&6; }
29838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29839   $as_echo_n "(cached) " >&6
29840 fi
29841 ac_res=`eval 'as_val=${'$as_ac_Header'}
29842                  $as_echo "$as_val"'`
29843                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29844 $as_echo "$ac_res" >&6; }
29845 else
29846   # Is the header compilable?
29847 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29848 $as_echo_n "checking $ac_header usability... " >&6; }
29849 cat >conftest.$ac_ext <<_ACEOF
29850 /* confdefs.h.  */
29851 _ACEOF
29852 cat confdefs.h >>conftest.$ac_ext
29853 cat >>conftest.$ac_ext <<_ACEOF
29854 /* end confdefs.h.  */
29855 $ac_includes_default
29856 #include <$ac_header>
29857 _ACEOF
29858 rm -f conftest.$ac_objext
29859 if { (ac_try="$ac_compile"
29860 case "(($ac_try" in
29861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29862   *) ac_try_echo=$ac_try;;
29863 esac
29864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29865 $as_echo "$ac_try_echo") >&5
29866   (eval "$ac_compile") 2>conftest.er1
29867   ac_status=$?
29868   grep -v '^ *+' conftest.er1 >conftest.err
29869   rm -f conftest.er1
29870   cat conftest.err >&5
29871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872   (exit $ac_status); } && {
29873          test -z "$ac_c_werror_flag" ||
29874          test ! -s conftest.err
29875        } && test -s conftest.$ac_objext; then
29876   ac_header_compiler=yes
29877 else
29878   $as_echo "$as_me: failed program was:" >&5
29879 sed 's/^/| /' conftest.$ac_ext >&5
29880
29881         ac_header_compiler=no
29882 fi
29883
29884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29885 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29886 $as_echo "$ac_header_compiler" >&6; }
29887
29888 # Is the header present?
29889 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29890 $as_echo_n "checking $ac_header presence... " >&6; }
29891 cat >conftest.$ac_ext <<_ACEOF
29892 /* confdefs.h.  */
29893 _ACEOF
29894 cat confdefs.h >>conftest.$ac_ext
29895 cat >>conftest.$ac_ext <<_ACEOF
29896 /* end confdefs.h.  */
29897 #include <$ac_header>
29898 _ACEOF
29899 if { (ac_try="$ac_cpp conftest.$ac_ext"
29900 case "(($ac_try" in
29901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29902   *) ac_try_echo=$ac_try;;
29903 esac
29904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29905 $as_echo "$ac_try_echo") >&5
29906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29907   ac_status=$?
29908   grep -v '^ *+' conftest.er1 >conftest.err
29909   rm -f conftest.er1
29910   cat conftest.err >&5
29911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29912   (exit $ac_status); } >/dev/null && {
29913          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29914          test ! -s conftest.err
29915        }; then
29916   ac_header_preproc=yes
29917 else
29918   $as_echo "$as_me: failed program was:" >&5
29919 sed 's/^/| /' conftest.$ac_ext >&5
29920
29921   ac_header_preproc=no
29922 fi
29923
29924 rm -f conftest.err conftest.$ac_ext
29925 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29926 $as_echo "$ac_header_preproc" >&6; }
29927
29928 # So?  What about this header?
29929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29930   yes:no: )
29931     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29932 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29933     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29934 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29935     ac_header_preproc=yes
29936     ;;
29937   no:yes:* )
29938     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29939 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29940     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29941 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29942     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29943 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29944     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29945 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29946     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29947 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29948     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29949 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29950
29951     ;;
29952 esac
29953 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29954 $as_echo_n "checking for $ac_header... " >&6; }
29955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29956   $as_echo_n "(cached) " >&6
29957 else
29958   eval "$as_ac_Header=\$ac_header_preproc"
29959 fi
29960 ac_res=`eval 'as_val=${'$as_ac_Header'}
29961                  $as_echo "$as_val"'`
29962                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29963 $as_echo "$ac_res" >&6; }
29964
29965 fi
29966 as_val=`eval 'as_val=${'$as_ac_Header'}
29967                  $as_echo "$as_val"'`
29968    if test "x$as_val" = x""yes; then
29969   cat >>confdefs.h <<_ACEOF
29970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29971 _ACEOF
29972
29973 fi
29974
29975 done
29976
29977
29978     # check for MTIOCTOP, an indicator of POSIX tape support
29979     { $as_echo "$as_me:$LINENO: checking for MTIOCTOP" >&5
29980 $as_echo_n "checking for MTIOCTOP... " >&6; }
29981 if test "${amanda_cv_HAVE_MTIOCTOP+set}" = set; then
29982   $as_echo_n "(cached) " >&6
29983 else
29984
29985         cat >conftest.$ac_ext <<_ACEOF
29986 /* confdefs.h.  */
29987 _ACEOF
29988 cat confdefs.h >>conftest.$ac_ext
29989 cat >>conftest.$ac_ext <<_ACEOF
29990 /* end confdefs.h.  */
29991
29992 #ifdef HAVE_SYS_TAPE_H
29993 # include <sys/tape.h>
29994 #endif
29995 #ifdef HAVE_SYS_MTIO_H
29996 # include <sys/mtio.h>
29997 #endif
29998 #ifndef MTIOCTOP
29999 #error MTIOCTOP not defined
30000 #endif
30001
30002 int
30003 main ()
30004 {
30005  int dummy = 0;
30006   ;
30007   return 0;
30008 }
30009 _ACEOF
30010 rm -f conftest.$ac_objext
30011 if { (ac_try="$ac_compile"
30012 case "(($ac_try" in
30013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30014   *) ac_try_echo=$ac_try;;
30015 esac
30016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30017 $as_echo "$ac_try_echo") >&5
30018   (eval "$ac_compile") 2>conftest.er1
30019   ac_status=$?
30020   grep -v '^ *+' conftest.er1 >conftest.err
30021   rm -f conftest.er1
30022   cat conftest.err >&5
30023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30024   (exit $ac_status); } && {
30025          test -z "$ac_c_werror_flag" ||
30026          test ! -s conftest.err
30027        } && test -s conftest.$ac_objext; then
30028   amanda_cv_HAVE_MTIOCTOP=yes
30029 else
30030   $as_echo "$as_me: failed program was:" >&5
30031 sed 's/^/| /' conftest.$ac_ext >&5
30032
30033         amanda_cv_HAVE_MTIOCTOP=no
30034 fi
30035
30036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30037
30038         HAVE_MTIOCTOP=$amanda_cv_HAVE_MTIOCTOP
30039
30040 fi
30041 { $as_echo "$as_me:$LINENO: result: $amanda_cv_HAVE_MTIOCTOP" >&5
30042 $as_echo "$amanda_cv_HAVE_MTIOCTOP" >&6; }
30043
30044     # decide which tape device to compile (arranged in such a way that
30045     # only one actually gets compiled)
30046     case "$target" in
30047       *-ibm-aix*) aix_tapeio=yes ;;
30048       *-sysv4.2uw2*) uware_tapeio=yes ;;
30049       *-sco3.2v5*) xenix_tapeio=yes ;;
30050       i386-pc-isc4*) xenix_tapeio=yes ;;
30051     esac
30052
30053     # maybe we have no tape device at all (e.g., Mac OS X)?
30054     if test -n "$xenix_tapeio" ||
30055        test -n "$aix_tapeio" ||
30056        test -n "$uware_tapeio" ||
30057        test -n "$HAVE_MTIOCTOP"; then
30058         want_tape_device=yes
30059
30060 cat >>confdefs.h <<\_ACEOF
30061 #define WANT_TAPE_DEVICE 1
30062 _ACEOF
30063
30064     fi
30065
30066      if test -n "$xenix_tapeio"; then
30067   WANT_TAPE_XENIX_TRUE=
30068   WANT_TAPE_XENIX_FALSE='#'
30069 else
30070   WANT_TAPE_XENIX_TRUE='#'
30071   WANT_TAPE_XENIX_FALSE=
30072 fi
30073
30074      if test -n "$aix_tapeio"; then
30075   WANT_TAPE_AIX_TRUE=
30076   WANT_TAPE_AIX_FALSE='#'
30077 else
30078   WANT_TAPE_AIX_TRUE='#'
30079   WANT_TAPE_AIX_FALSE=
30080 fi
30081
30082      if test -n "$uware_tapeio"; then
30083   WANT_TAPE_UWARE_TRUE=
30084   WANT_TAPE_UWARE_FALSE='#'
30085 else
30086   WANT_TAPE_UWARE_TRUE='#'
30087   WANT_TAPE_UWARE_FALSE=
30088 fi
30089
30090      if test -n "$HAVE_MTIOCTOP"; then
30091   WANT_TAPE_POSIX_TRUE=
30092   WANT_TAPE_POSIX_FALSE='#'
30093 else
30094   WANT_TAPE_POSIX_TRUE='#'
30095   WANT_TAPE_POSIX_FALSE=
30096 fi
30097
30098      if test -n "$want_tape_device"; then
30099   WANT_TAPE_DEVICE_TRUE=
30100   WANT_TAPE_DEVICE_FALSE='#'
30101 else
30102   WANT_TAPE_DEVICE_TRUE='#'
30103   WANT_TAPE_DEVICE_FALSE=
30104 fi
30105
30106
30107     if test -n "$xenix_tapeio"; then
30108
30109 cat >>confdefs.h <<\_ACEOF
30110 #define WANT_TAPE_XENIX 1
30111 _ACEOF
30112
30113     fi
30114
30115     if test -n "$aix_tapeio"; then
30116
30117 cat >>confdefs.h <<\_ACEOF
30118 #define WANT_TAPE_AIX 1
30119 _ACEOF
30120
30121     fi
30122
30123     if test -n "$uware_tapeio"; then
30124
30125 cat >>confdefs.h <<\_ACEOF
30126 #define WANT_TAPE_UWARE 1
30127 _ACEOF
30128
30129     fi
30130
30131     #
30132     # Check for various "mt status" related structure elements.
30133     #
30134     { $as_echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
30135 $as_echo_n "checking for mt_flags mtget structure element... " >&6; }
30136     cat >conftest.$ac_ext <<_ACEOF
30137 /* confdefs.h.  */
30138 _ACEOF
30139 cat confdefs.h >>conftest.$ac_ext
30140 cat >>conftest.$ac_ext <<_ACEOF
30141 /* end confdefs.h.  */
30142
30143 #include <stdio.h>
30144 #include <sys/types.h>
30145 #include <sys/mtio.h>
30146
30147 int
30148 main ()
30149 {
30150
30151             struct mtget buf;
30152             long ds;
30153
30154             ds = buf.mt_flags;
30155
30156   ;
30157   return 0;
30158 }
30159 _ACEOF
30160 rm -f conftest.$ac_objext
30161 if { (ac_try="$ac_compile"
30162 case "(($ac_try" in
30163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30164   *) ac_try_echo=$ac_try;;
30165 esac
30166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30167 $as_echo "$ac_try_echo") >&5
30168   (eval "$ac_compile") 2>conftest.er1
30169   ac_status=$?
30170   grep -v '^ *+' conftest.er1 >conftest.err
30171   rm -f conftest.er1
30172   cat conftest.err >&5
30173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174   (exit $ac_status); } && {
30175          test -z "$ac_c_werror_flag" ||
30176          test ! -s conftest.err
30177        } && test -s conftest.$ac_objext; then
30178
30179             { $as_echo "$as_me:$LINENO: result: yes" >&5
30180 $as_echo "yes" >&6; }
30181
30182 cat >>confdefs.h <<\_ACEOF
30183 #define HAVE_MT_FLAGS 1
30184 _ACEOF
30185
30186
30187 else
30188   $as_echo "$as_me: failed program was:" >&5
30189 sed 's/^/| /' conftest.$ac_ext >&5
30190
30191
30192             { $as_echo "$as_me:$LINENO: result: no" >&5
30193 $as_echo "no" >&6; }
30194
30195 fi
30196
30197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30198
30199     { $as_echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
30200 $as_echo_n "checking for mt_fileno mtget structure element... " >&6; }
30201     mt_fileno_result="found"
30202     cat >conftest.$ac_ext <<_ACEOF
30203 /* confdefs.h.  */
30204 _ACEOF
30205 cat confdefs.h >>conftest.$ac_ext
30206 cat >>conftest.$ac_ext <<_ACEOF
30207 /* end confdefs.h.  */
30208
30209 #include <stdio.h>
30210 #include <sys/types.h>
30211 #include <sys/mtio.h>
30212
30213 int
30214 main ()
30215 {
30216
30217             struct mtget buf;
30218             long ds;
30219
30220             ds = buf.mt_fileno;
30221
30222   ;
30223   return 0;
30224 }
30225 _ACEOF
30226 rm -f conftest.$ac_objext
30227 if { (ac_try="$ac_compile"
30228 case "(($ac_try" in
30229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30230   *) ac_try_echo=$ac_try;;
30231 esac
30232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30233 $as_echo "$ac_try_echo") >&5
30234   (eval "$ac_compile") 2>conftest.er1
30235   ac_status=$?
30236   grep -v '^ *+' conftest.er1 >conftest.err
30237   rm -f conftest.er1
30238   cat conftest.err >&5
30239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30240   (exit $ac_status); } && {
30241          test -z "$ac_c_werror_flag" ||
30242          test ! -s conftest.err
30243        } && test -s conftest.$ac_objext; then
30244
30245             { $as_echo "$as_me:$LINENO: result: yes" >&5
30246 $as_echo "yes" >&6; }
30247
30248 cat >>confdefs.h <<\_ACEOF
30249 #define HAVE_MT_FILENO 1
30250 _ACEOF
30251
30252
30253 else
30254   $as_echo "$as_me: failed program was:" >&5
30255 sed 's/^/| /' conftest.$ac_ext >&5
30256
30257
30258             { $as_echo "$as_me:$LINENO: result: no" >&5
30259 $as_echo "no" >&6; }
30260
30261 fi
30262
30263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30264
30265     { $as_echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
30266 $as_echo_n "checking for mt_blkno mtget structure element... " >&6; }
30267     cat >conftest.$ac_ext <<_ACEOF
30268 /* confdefs.h.  */
30269 _ACEOF
30270 cat confdefs.h >>conftest.$ac_ext
30271 cat >>conftest.$ac_ext <<_ACEOF
30272 /* end confdefs.h.  */
30273
30274 #include <stdio.h>
30275 #include <sys/types.h>
30276 #include <sys/mtio.h>
30277
30278 int
30279 main ()
30280 {
30281
30282             struct mtget buf;
30283             long ds;
30284
30285             ds = buf.mt_blkno;
30286
30287   ;
30288   return 0;
30289 }
30290 _ACEOF
30291 rm -f conftest.$ac_objext
30292 if { (ac_try="$ac_compile"
30293 case "(($ac_try" in
30294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30295   *) ac_try_echo=$ac_try;;
30296 esac
30297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30298 $as_echo "$ac_try_echo") >&5
30299   (eval "$ac_compile") 2>conftest.er1
30300   ac_status=$?
30301   grep -v '^ *+' conftest.er1 >conftest.err
30302   rm -f conftest.er1
30303   cat conftest.err >&5
30304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305   (exit $ac_status); } && {
30306          test -z "$ac_c_werror_flag" ||
30307          test ! -s conftest.err
30308        } && test -s conftest.$ac_objext; then
30309
30310             { $as_echo "$as_me:$LINENO: result: yes" >&5
30311 $as_echo "yes" >&6; }
30312
30313 cat >>confdefs.h <<\_ACEOF
30314 #define HAVE_MT_BLKNO 1
30315 _ACEOF
30316
30317
30318 else
30319   $as_echo "$as_me: failed program was:" >&5
30320 sed 's/^/| /' conftest.$ac_ext >&5
30321
30322
30323             { $as_echo "$as_me:$LINENO: result: no" >&5
30324 $as_echo "no" >&6; }
30325
30326 fi
30327
30328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30329
30330     { $as_echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
30331 $as_echo_n "checking for mt_dsreg mtget structure element... " >&6; }
30332     cat >conftest.$ac_ext <<_ACEOF
30333 /* confdefs.h.  */
30334 _ACEOF
30335 cat confdefs.h >>conftest.$ac_ext
30336 cat >>conftest.$ac_ext <<_ACEOF
30337 /* end confdefs.h.  */
30338
30339 #include <stdio.h>
30340 #include <sys/types.h>
30341 #include <sys/mtio.h>
30342
30343 int
30344 main ()
30345 {
30346
30347             struct mtget buf;
30348             long ds;
30349
30350             ds = buf.mt_dsreg;
30351
30352   ;
30353   return 0;
30354 }
30355 _ACEOF
30356 rm -f conftest.$ac_objext
30357 if { (ac_try="$ac_compile"
30358 case "(($ac_try" in
30359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30360   *) ac_try_echo=$ac_try;;
30361 esac
30362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30363 $as_echo "$ac_try_echo") >&5
30364   (eval "$ac_compile") 2>conftest.er1
30365   ac_status=$?
30366   grep -v '^ *+' conftest.er1 >conftest.err
30367   rm -f conftest.er1
30368   cat conftest.err >&5
30369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370   (exit $ac_status); } && {
30371          test -z "$ac_c_werror_flag" ||
30372          test ! -s conftest.err
30373        } && test -s conftest.$ac_objext; then
30374
30375             { $as_echo "$as_me:$LINENO: result: yes" >&5
30376 $as_echo "yes" >&6; }
30377
30378 cat >>confdefs.h <<\_ACEOF
30379 #define HAVE_MT_DSREG 1
30380 _ACEOF
30381
30382
30383 else
30384   $as_echo "$as_me: failed program was:" >&5
30385 sed 's/^/| /' conftest.$ac_ext >&5
30386
30387
30388             { $as_echo "$as_me:$LINENO: result: no" >&5
30389 $as_echo "no" >&6; }
30390
30391 fi
30392
30393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30394
30395     { $as_echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
30396 $as_echo_n "checking for mt_erreg mtget structure element... " >&6; }
30397     cat >conftest.$ac_ext <<_ACEOF
30398 /* confdefs.h.  */
30399 _ACEOF
30400 cat confdefs.h >>conftest.$ac_ext
30401 cat >>conftest.$ac_ext <<_ACEOF
30402 /* end confdefs.h.  */
30403
30404 #include <stdio.h>
30405 #include <sys/types.h>
30406 #include <sys/mtio.h>
30407
30408 int
30409 main ()
30410 {
30411
30412             struct mtget buf;
30413             long ds;
30414
30415             ds = buf.mt_erreg;
30416
30417   ;
30418   return 0;
30419 }
30420 _ACEOF
30421 rm -f conftest.$ac_objext
30422 if { (ac_try="$ac_compile"
30423 case "(($ac_try" in
30424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30425   *) ac_try_echo=$ac_try;;
30426 esac
30427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30428 $as_echo "$ac_try_echo") >&5
30429   (eval "$ac_compile") 2>conftest.er1
30430   ac_status=$?
30431   grep -v '^ *+' conftest.er1 >conftest.err
30432   rm -f conftest.er1
30433   cat conftest.err >&5
30434   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435   (exit $ac_status); } && {
30436          test -z "$ac_c_werror_flag" ||
30437          test ! -s conftest.err
30438        } && test -s conftest.$ac_objext; then
30439
30440             { $as_echo "$as_me:$LINENO: result: yes" >&5
30441 $as_echo "yes" >&6; }
30442
30443 cat >>confdefs.h <<\_ACEOF
30444 #define HAVE_MT_ERREG 1
30445 _ACEOF
30446
30447
30448 else
30449   $as_echo "$as_me: failed program was:" >&5
30450 sed 's/^/| /' conftest.$ac_ext >&5
30451
30452
30453             { $as_echo "$as_me:$LINENO: result: no" >&5
30454 $as_echo "no" >&6; }
30455
30456 fi
30457
30458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30459
30460     case "$target" in
30461         *linux*)
30462 cat >>confdefs.h <<\_ACEOF
30463 #define DEFAULT_TAPE_NON_BLOCKING_OPEN 1
30464 _ACEOF
30465 ;;
30466     esac
30467
30468
30469 #
30470 # Security (authentication) mechansims
30471 #
30472
30473     BSD_SECURITY="yes"
30474
30475 # Check whether --with-bsd-security was given.
30476 if test "${with_bsd_security+set}" = set; then
30477   withval=$with_bsd_security;
30478             case "$withval" in
30479                 n | no) BSD_SECURITY=no ;;
30480                 y |  ye | yes) BSD_SECURITY=yes ;;
30481                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-bsd-security." >&5
30482 $as_echo "$as_me: error: *** You must not supply an argument to --without-bsd-security." >&2;}
30483    { (exit 1); exit 1; }; }
30484                     ;;
30485             esac
30486
30487 fi
30488
30489
30490     USE_AMANDAHOSTS=yes
30491
30492 # Check whether --with-amandahosts was given.
30493 if test "${with_amandahosts+set}" = set; then
30494   withval=$with_amandahosts;
30495             case "$withval" in
30496                 n | no ) USE_AMANDAHOSTS=no ;;
30497                 y |  ye | yes) USE_AMANDAHOSTS=yes ;;
30498                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-amandahosts option." >&5
30499 $as_echo "$as_me: error: *** You must not supply an argument to --without-amandahosts option." >&2;}
30500    { (exit 1); exit 1; }; }
30501                   ;;
30502             esac
30503
30504
30505 fi
30506
30507
30508     if test "x$BSD_SECURITY" = "xyes"; then
30509
30510 cat >>confdefs.h <<\_ACEOF
30511 #define BSD_SECURITY 1
30512 _ACEOF
30513
30514         if test "x$USE_AMANDAHOSTS" = "xyes"; then
30515
30516 cat >>confdefs.h <<\_ACEOF
30517 #define USE_AMANDAHOSTS 1
30518 _ACEOF
30519
30520         fi
30521     fi
30522
30523      if test x"$BSD_SECURITY" = x"yes"; then
30524   WANT_BSD_SECURITY_TRUE=
30525   WANT_BSD_SECURITY_FALSE='#'
30526 else
30527   WANT_BSD_SECURITY_TRUE='#'
30528   WANT_BSD_SECURITY_FALSE=
30529 fi
30530
30531
30532
30533
30534
30535     BSDTCP_SECURITY="yes"
30536
30537 # Check whether --with-bsdtcp-security was given.
30538 if test "${with_bsdtcp_security+set}" = set; then
30539   withval=$with_bsdtcp_security;
30540             case "$withval" in
30541                 n | no) BSDTCP_SECURITY=no ;;
30542                 y |  ye | yes) BSDTCP_SECURITY=yes ;;
30543                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdtcp-security." >&5
30544 $as_echo "$as_me: error: *** You must not supply an argument to --with-bsdtcp-security." >&2;}
30545    { (exit 1); exit 1; }; }
30546               ;;
30547             esac
30548
30549 fi
30550
30551
30552     if test "x$BSDTCP_SECURITY" = "xyes"; then
30553
30554 cat >>confdefs.h <<\_ACEOF
30555 #define BSDTCP_SECURITY 1
30556 _ACEOF
30557
30558     fi
30559
30560      if test x"$BSDTCP_SECURITY" = x"yes"; then
30561   WANT_BSDTCP_SECURITY_TRUE=
30562   WANT_BSDTCP_SECURITY_FALSE='#'
30563 else
30564   WANT_BSDTCP_SECURITY_TRUE='#'
30565   WANT_BSDTCP_SECURITY_FALSE=
30566 fi
30567
30568
30569
30570
30571     BSDUDP_SECURITY="no"
30572
30573 # Check whether --with-bsdudp-security was given.
30574 if test "${with_bsdudp_security+set}" = set; then
30575   withval=$with_bsdudp_security;
30576             case "$withval" in
30577                 n | no) : ;;
30578                 y |  ye | yes) BSDUDP_SECURITY=yes ;;
30579                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdudp-security." >&5
30580 $as_echo "$as_me: error: *** You must not supply an argument to --with-bsdudp-security." >&2;}
30581    { (exit 1); exit 1; }; }
30582               ;;
30583             esac
30584
30585 fi
30586
30587
30588     if test "x$BSDUDP_SECURITY" = "xyes"; then
30589
30590 cat >>confdefs.h <<\_ACEOF
30591 #define BSDUDP_SECURITY 1
30592 _ACEOF
30593
30594     fi
30595
30596      if test x"$BSDUDP_SECURITY" = x"yes"; then
30597   WANT_BSDUDP_SECURITY_TRUE=
30598   WANT_BSDUDP_SECURITY_FALSE='#'
30599 else
30600   WANT_BSDUDP_SECURITY_TRUE='#'
30601   WANT_BSDUDP_SECURITY_FALSE=
30602 fi
30603
30604
30605
30606
30607     RSH_SECURITY=no
30608
30609 # Check whether --with-rsh-security was given.
30610 if test "${with_rsh_security+set}" = set; then
30611   withval=$with_rsh_security;
30612             case "$withval" in
30613                 n | no) : ;;
30614                 y |  ye | yes) RSH_SECURITY=yes ;;
30615                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rsh-security." >&5
30616 $as_echo "$as_me: error: *** You must not supply an argument to --with-rsh-security." >&2;}
30617    { (exit 1); exit 1; }; }
30618               ;;
30619             esac
30620
30621 fi
30622
30623
30624     if test "x$RSH_SECURITY" = "xyes"; then
30625
30626 cat >>confdefs.h <<\_ACEOF
30627 #define RSH_SECURITY 1
30628 _ACEOF
30629
30630     fi
30631      if test x"$RSH_SECURITY" = x"yes"; then
30632   WANT_RSH_SECURITY_TRUE=
30633   WANT_RSH_SECURITY_FALSE='#'
30634 else
30635   WANT_RSH_SECURITY_TRUE='#'
30636   WANT_RSH_SECURITY_FALSE=
30637 fi
30638
30639
30640
30641
30642     SSH_SECURITY=yes
30643
30644 # Check whether --with-ssh-security was given.
30645 if test "${with_ssh_security+set}" = set; then
30646   withval=$with_ssh_security;
30647             case "$withval" in
30648                 n | no) SSH_SECURITY=no ;;
30649                 y |  ye | yes) SSH_SECURITY=yes ;;
30650                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ssh-security." >&5
30651 $as_echo "$as_me: error: *** You must not supply an argument to --with-ssh-security." >&2;}
30652    { (exit 1); exit 1; }; }
30653               ;;
30654             esac
30655
30656 fi
30657
30658
30659     if test "x$SSH_SECURITY" = "xyes"; then
30660         # find the SSH binary
30661         for ac_prog in ssh
30662 do
30663   # Extract the first word of "$ac_prog", so it can be a program name with args.
30664 set dummy $ac_prog; ac_word=$2
30665 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30666 $as_echo_n "checking for $ac_word... " >&6; }
30667 if test "${ac_cv_path_SSH+set}" = set; then
30668   $as_echo_n "(cached) " >&6
30669 else
30670   case $SSH in
30671   [\\/]* | ?:[\\/]*)
30672   ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
30673   ;;
30674   *)
30675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30676 for as_dir in $LOCSYSPATH
30677 do
30678   IFS=$as_save_IFS
30679   test -z "$as_dir" && as_dir=.
30680   for ac_exec_ext in '' $ac_executable_extensions; do
30681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30682     ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
30683     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30684     break 2
30685   fi
30686 done
30687 done
30688 IFS=$as_save_IFS
30689
30690   ;;
30691 esac
30692 fi
30693 SSH=$ac_cv_path_SSH
30694 if test -n "$SSH"; then
30695   { $as_echo "$as_me:$LINENO: result: $SSH" >&5
30696 $as_echo "$SSH" >&6; }
30697 else
30698   { $as_echo "$as_me:$LINENO: result: no" >&5
30699 $as_echo "no" >&6; }
30700 fi
30701
30702
30703   test -n "$SSH" && break
30704 done
30705
30706
30707         # see what options we should use
30708
30709 # Check whether --with-ssh-options was given.
30710 if test "${with_ssh_options+set}" = set; then
30711   withval=$with_ssh_options;  SSH_OPTIONS="$withval"
30712 else
30713    SSH_OPTIONS=''
30714
30715 fi
30716
30717
30718         case "$SSH_OPTIONS" in
30719             y | ye | yes | n | no)
30720                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to --with-ssh-options." >&5
30721 $as_echo "$as_me: error: *** You must supply an argument to --with-ssh-options." >&2;}
30722    { (exit 1); exit 1; }; };;
30723             *) : ;;
30724         esac
30725
30726         { $as_echo "$as_me:$LINENO: checking SSH options" >&5
30727 $as_echo_n "checking SSH options... " >&6; }
30728         # if we didn't get SSH options from the user, figure them out for ourselves
30729         if test -z "$SSH_OPTIONS"; then
30730             case `$SSH -V 2>&1` in
30731                 OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
30732                 *) SSH_OPTIONS='-x -o BatchMode=yes' ;;
30733             esac
30734         fi
30735
30736         # now convert that to a comma-separated list of C strings
30737         eval "set dummy ${SSH_OPTIONS}"; shift
30738         SSH_OPTIONS=''
30739         for i in "${@}"; do
30740             quoted="\"`echo "$i" | sed -e 's/\"/\\\"/'`\""
30741             SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }$quoted";
30742         done
30743         { $as_echo "$as_me:$LINENO: result: $SSH_OPTIONS" >&5
30744 $as_echo "$SSH_OPTIONS" >&6; }
30745
30746         # finally, make the various outputs for all of this
30747
30748 cat >>confdefs.h <<\_ACEOF
30749 #define SSH_SECURITY 1
30750 _ACEOF
30751
30752
30753 cat >>confdefs.h <<_ACEOF
30754 #define SSH "$SSH"
30755 _ACEOF
30756
30757
30758 cat >>confdefs.h <<_ACEOF
30759 #define SSH_OPTIONS $SSH_OPTIONS
30760 _ACEOF
30761
30762     fi
30763      if test x"$SSH_SECURITY" = x"yes"; then
30764   WANT_SSH_SECURITY_TRUE=
30765   WANT_SSH_SECURITY_FALSE='#'
30766 else
30767   WANT_SSH_SECURITY_TRUE='#'
30768   WANT_SSH_SECURITY_FALSE=
30769 fi
30770
30771
30772
30773     # (note -- don't just substitute SSH_OPTIONS -- shell quoting will break)
30774
30775
30776     # Specify --with-krb4-security if Kerberos software is in somewhere
30777     # other than the listed KRB4_SPOTS.  We only compile kerberos support in
30778     # if the right files are there.
30779
30780     : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
30781
30782     KRB4_SECURITY="no"
30783
30784 # Check whether --with-krb4-security was given.
30785 if test "${with_krb4_security+set}" = set; then
30786   withval=$with_krb4_security;
30787             case "$withval" in
30788                 n | no) ;;
30789                 y | ye | yes) KRB4_SECURITY="yes" ;;
30790                 *) KRB4_SPOTS="$KRB4_SECURITY"
30791                    KRB4_SECURITY="yes"
30792                    ;;
30793             esac
30794
30795 fi
30796
30797
30798     # check the remaining, subsidiary options
30799
30800     { $as_echo "$as_me:$LINENO: checking host principal" >&5
30801 $as_echo_n "checking host principal... " >&6; }
30802
30803 # Check whether --with-server-principal was given.
30804 if test "${with_server_principal+set}" = set; then
30805   withval=$with_server_principal;
30806             case "$withval" in
30807                 "" | y | ye | yes | n | no)
30808                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-principal option." >&5
30809 $as_echo "$as_me: error: *** You must supply an argument to the --with-server-principal option." >&2;}
30810    { (exit 1); exit 1; }; }
30811                   ;;
30812                 *) SERVER_HOST_PRINCIPAL="$withval" ;;
30813             esac
30814
30815 else
30816    : ${SERVER_HOST_PRINCIPAL="amanda"}
30817
30818 fi
30819
30820     { $as_echo "$as_me:$LINENO: result: $SERVER_HOST_PRINCIPAL" >&5
30821 $as_echo "$SERVER_HOST_PRINCIPAL" >&6; }
30822
30823     { $as_echo "$as_me:$LINENO: checking server host instance" >&5
30824 $as_echo_n "checking server host instance... " >&6; }
30825
30826 # Check whether --with-server-instance was given.
30827 if test "${with_server_instance+set}" = set; then
30828   withval=$with_server_instance;
30829             case "$withval" in
30830                 "" | y | ye | yes | n | no)
30831                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-instance option." >&5
30832 $as_echo "$as_me: error: *** You must supply an argument to the --with-server-instance option." >&2;}
30833    { (exit 1); exit 1; }; }
30834                   ;;
30835                 *) SERVER_HOST_INSTANCE="$withval" ;;
30836             esac
30837
30838 else
30839    : ${SERVER_HOST_INSTANCE="amanda"}
30840
30841 fi
30842
30843     { $as_echo "$as_me:$LINENO: result: $SERVER_HOST_INSTANCE" >&5
30844 $as_echo "$SERVER_HOST_INSTANCE" >&6; }
30845
30846     { $as_echo "$as_me:$LINENO: checking server host key file" >&5
30847 $as_echo_n "checking server host key file... " >&6; }
30848
30849 # Check whether --with-server-keyfile was given.
30850 if test "${with_server_keyfile+set}" = set; then
30851   withval=$with_server_keyfile;
30852             case "$withval" in
30853                 "" | y | ye | yes | n | no)
30854                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-keyfile option." >&5
30855 $as_echo "$as_me: error: *** You must supply an argument to the --with-server-keyfile option." >&2;}
30856    { (exit 1); exit 1; }; }
30857                   ;;
30858                 *) SERVER_HOST_KEY_FILE="$withval" ;;
30859             esac
30860
30861 else
30862    : ${SERVER_HOST_KEY_FILE="/.amanda"}
30863
30864 fi
30865
30866     { $as_echo "$as_me:$LINENO: result: $SERVER_HOST_KEY_FILE" >&5
30867 $as_echo "$SERVER_HOST_KEY_FILE" >&6; }
30868
30869     { $as_echo "$as_me:$LINENO: checking client host principle" >&5
30870 $as_echo_n "checking client host principle... " >&6; }
30871
30872 # Check whether --with-client-principal was given.
30873 if test "${with_client_principal+set}" = set; then
30874   withval=$with_client_principal;
30875             case "$withval" in
30876                 "" | y | ye | yes | n | no)
30877                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-principal option." >&5
30878 $as_echo "$as_me: error: *** You must supply an argument to the --with-client-principal option." >&2;}
30879    { (exit 1); exit 1; }; }
30880                   ;;
30881                 *) CLIENT_HOST_PRINCIPAL="$withval" ;;
30882             esac
30883
30884 else
30885    : ${CLIENT_HOST_PRINCIPAL="rcmd"}
30886
30887 fi
30888
30889     { $as_echo "$as_me:$LINENO: result: $CLIENT_HOST_PRINCIPAL" >&5
30890 $as_echo "$CLIENT_HOST_PRINCIPAL" >&6; }
30891
30892     { $as_echo "$as_me:$LINENO: checking client host instance" >&5
30893 $as_echo_n "checking client host instance... " >&6; }
30894
30895 # Check whether --with-client-instance was given.
30896 if test "${with_client_instance+set}" = set; then
30897   withval=$with_client_instance;
30898             case "$withval" in
30899                 "" | y | ye | yes | n | no)
30900                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-instance option." >&5
30901 $as_echo "$as_me: error: *** You must supply an argument to the --with-client-instance option." >&2;}
30902    { (exit 1); exit 1; }; }
30903                   ;;
30904                 *) CLIENT_HOST_INSTANCE="$withval" ;;
30905             esac
30906
30907 else
30908    : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
30909
30910 fi
30911
30912     { $as_echo "$as_me:$LINENO: result: $CLIENT_HOST_INSTANCE" >&5
30913 $as_echo "$CLIENT_HOST_INSTANCE" >&6; }
30914
30915     { $as_echo "$as_me:$LINENO: checking client host key file" >&5
30916 $as_echo_n "checking client host key file... " >&6; }
30917
30918 # Check whether --with-client-keyfile was given.
30919 if test "${with_client_keyfile+set}" = set; then
30920   withval=$with_client_keyfile;
30921             case "$withval" in
30922                 "" | y | ye | yes | n | no)
30923                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-keyfile option." >&5
30924 $as_echo "$as_me: error: *** You must supply an argument to the --with-client-keyfile option." >&2;}
30925    { (exit 1); exit 1; }; }
30926                   ;;
30927                 *) CLIENT_HOST_KEY_FILE="$withval" ;;
30928             esac
30929
30930 else
30931    : ${CLIENT_HOST_KEY_FILE=KEYFILE}
30932
30933 fi
30934
30935     # Assume it's either KEYFILE (defined in krb.h), or a string filename...
30936     if test "x$CLIENT_HOST_KEY_FILE" != "xKEYFILE"; then
30937       # add quotes
30938       CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
30939     fi
30940     { $as_echo "$as_me:$LINENO: result: $CLIENT_HOST_KEY_FILE" >&5
30941 $as_echo "$CLIENT_HOST_KEY_FILE" >&6; }
30942
30943     { $as_echo "$as_me:$LINENO: checking ticket lifetime" >&5
30944 $as_echo_n "checking ticket lifetime... " >&6; }
30945
30946 # Check whether --with-ticket-lifetime was given.
30947 if test "${with_ticket_lifetime+set}" = set; then
30948   withval=$with_ticket_lifetime;
30949             case "$withval" in
30950             "" | y | ye | yes | n | no)
30951                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ticket-lifetime option." >&5
30952 $as_echo "$as_me: error: *** You must supply an argument to the --with-ticket-lifetime option." >&2;}
30953    { (exit 1); exit 1; }; }
30954               ;;
30955             *) TICKET_LIFETIME="$withval" ;;
30956             esac
30957
30958 else
30959    : ${TICKET_LIFETIME=128}
30960
30961 fi
30962
30963     { $as_echo "$as_me:$LINENO: result: $TICKET_LIFETIME" >&5
30964 $as_echo "$TICKET_LIFETIME" >&6; }
30965
30966
30967     if test "x${KRB4_SECURITY}" = "xyes"; then
30968         { $as_echo "$as_me:$LINENO: checking for Kerberos and Amanda kerberos4 bits" >&5
30969 $as_echo_n "checking for Kerberos and Amanda kerberos4 bits... " >&6; }
30970         found="no"
30971         for dir in $KRB4_SPOTS; do
30972             if test \( -f ${dir}/lib/libkrb.a -o -f ${dir}/lib/libkrb.so \) -a \( -f ${dir}/lib/libdes.a -o -f ${dir}/lib/libdes.so \) ; then
30973                 #
30974                 # This is the original Kerberos 4.
30975                 #
30976                 { $as_echo "$as_me:$LINENO: result: found in $dir" >&5
30977 $as_echo "found in $dir" >&6; }
30978                 found="yes"
30979
30980                 #
30981                 # This handles BSD/OS.
30982                 #
30983                 if test -d $dir/include/kerberosIV ; then
30984                     CPPFLAGS="$CPPFLAGS -I$dir/include/kerberosIV"
30985
30986                 else
30987                     CPPFLAGS="$CPPFLAGS -I$dir/include"
30988
30989                 fi
30990                 LDFLAGS="$LDFLAGS -L$dir/lib"
30991
30992                 LIBS="-lkrb -ldes $LIBS"
30993
30994                 if test -f ${dir}/lib/libcom_err.a; then
30995                     LIBS="-lcom_err $LIBS"
30996
30997                 fi
30998                 break
30999             elif test \( -f ${dir}/lib/libkrb4.a -o -f ${dir}/lib/libkrb4.so \) &&
31000                  test \( -f ${dir}/lib/libcrypto.a -o -f ${dir}/lib/libcrypto.so \) &&
31001                  test \( -f ${dir}/lib/libdes425.a -o -f ${dir}/lib/libdes425.so \) ; then
31002                 #
31003                 # This is Kerberos 5 with Kerberos 4 back-support.
31004                 #
31005                 { $as_echo "$as_me:$LINENO: result: found in $dir" >&5
31006 $as_echo "found in $dir" >&6; }
31007                 found="yes"
31008                 CPPFLAGS="$CPPFLAGS -I$dir/include -I$dir/include/kerberosIV"
31009
31010                 LDFLAGS="$LDFLAGS -L$dir/lib"
31011
31012                 if test \( -f ${dir}/lib/libkrb5.a -o -f ${dir}/lib/libkrb5.so \) &&
31013                    test \( -f ${dir}/lib/libcom_err.a -o -f ${dir}/lib/libcom_err.so \) ; then
31014                     LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err $LIBS"
31015
31016                 else
31017                     LIBS="-lkrb4 -lcrypto -ldes425 $LIBS"
31018
31019                 fi
31020                 break
31021             fi
31022         done
31023
31024         if test "x$found" = "xno" ; then
31025             { $as_echo "$as_me:$LINENO: result: no libraries found" >&5
31026 $as_echo "no libraries found" >&6; }
31027
31028     { $as_echo "$as_me:$LINENO: WARNING: No Kerberos IV libraries were found on your system; disabling krb4-security" >&5
31029 $as_echo "$as_me: WARNING: No Kerberos IV libraries were found on your system; disabling krb4-security" >&2;}
31030
31031
31032     cat <<AAW_EOF >>config.warnings
31033 No Kerberos IV libraries were found on your system; disabling krb4-security
31034 AAW_EOF
31035
31036
31037             KRB4_SECURITY="no"
31038         else
31039
31040 cat >>confdefs.h <<\_ACEOF
31041 #define KRB4_SECURITY 1
31042 _ACEOF
31043
31044
31045 cat >>confdefs.h <<_ACEOF
31046 #define SERVER_HOST_PRINCIPAL "$SERVER_HOST_PRINCIPAL"
31047 _ACEOF
31048
31049
31050 cat >>confdefs.h <<_ACEOF
31051 #define SERVER_HOST_INSTANCE "$SERVER_HOST_INSTANCE"
31052 _ACEOF
31053
31054
31055 cat >>confdefs.h <<_ACEOF
31056 #define SERVER_HOST_KEY_FILE "$SERVER_HOST_KEY_FILE"
31057 _ACEOF
31058
31059
31060 cat >>confdefs.h <<_ACEOF
31061 #define CLIENT_HOST_PRINCIPAL "$CLIENT_HOST_PRINCIPAL"
31062 _ACEOF
31063
31064
31065 cat >>confdefs.h <<_ACEOF
31066 #define CLIENT_HOST_INSTANCE $CLIENT_HOST_INSTANCE
31067 _ACEOF
31068
31069
31070 cat >>confdefs.h <<_ACEOF
31071 #define CLIENT_HOST_KEY_FILE $CLIENT_HOST_KEY_FILE
31072 _ACEOF
31073
31074
31075 cat >>confdefs.h <<_ACEOF
31076 #define TICKET_LIFETIME $TICKET_LIFETIME
31077 _ACEOF
31078
31079         fi
31080     fi
31081      if test x"$KRB4_SECURITY" = x"yes"; then
31082   WANT_KRB4_SECURITY_TRUE=
31083   WANT_KRB4_SECURITY_FALSE='#'
31084 else
31085   WANT_KRB4_SECURITY_TRUE='#'
31086   WANT_KRB4_SECURITY_FALSE=
31087 fi
31088
31089
31090
31091
31092
31093
31094
31095
31096
31097
31098
31099
31100
31101     # Specify --with-krb5-security if Kerberos software is in somewhere
31102     # other than the listed KRB5_SPOTS.  We only compile kerberos support in
31103     # if the right files are there.
31104
31105     KRB5_SECURITY="no"
31106     : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
31107
31108
31109 # Check whether --with-krb5-security was given.
31110 if test "${with_krb5_security+set}" = set; then
31111   withval=$with_krb5_security;
31112             case "$withval" in
31113                 n | no) KRB5_SECURITY=no ;;
31114                 y | ye | yes) KRB5_SECURITY=yes ;;
31115                 *) KRB5_SPOTS="$KRB5_SECURITY"
31116                    KRB5_SECURITY=yes
31117                    ;;
31118             esac
31119
31120
31121 fi
31122
31123
31124     if test "x$KRB5_SECURITY" = "xyes"; then
31125         # if found, force the static versions of these libs (.a) by linking directly
31126         # with the .a files.  I don't know how to get -R dependancies checked
31127         # in autoconf at this time. -kashmir
31128         { $as_echo "$as_me:$LINENO: checking for Kerberos V libraries" >&5
31129 $as_echo_n "checking for Kerberos V libraries... " >&6; }
31130         KRB5_DIR_FOUND=""
31131         for dir in $KRB5_SPOTS; do
31132           for lib in lib lib64; do
31133             k5libdir=${dir}/${lib}
31134             if test \( -f ${k5libdir}/libkrb5.a -o -f ${k5libdir}/libkrb5.so \) -a \( -f ${k5libdir}/libgssapi_krb5.so -o -f ${k5libdir}/libgssapi_krb5.a \) -a \( -f ${k5libdir}/libcom_err.a -o -f ${k5libdir}/libcom_err.so \); then
31135                 if test -f ${k5libdir}/libk5crypto.a -o -f ${k5libdir}/libk5crypto.so; then
31136                     K5CRYPTO=-lk5crypto
31137                 elif test -f ${k5libdir}/libcrypto.a -o -f ${k5libdir}/libcrypto.so; then
31138                     K5CRYPTO=-lcrypto
31139                 else
31140                     K5CRYPTO=""
31141                 fi
31142                 if test -f ${k5libdir}/libkrb5support.a -o -f ${k5libdir}/libkrb5support.so; then
31143                     K5SUPPORT=-lkrb5support
31144                 else
31145                     K5SUPPORT=""
31146                 fi
31147                 KRB5_DIR_FOUND=$dir
31148                 KRB5_LIBDIR_FOUND=$k5libdir
31149                 LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err $LIBS"
31150
31151                 break
31152             elif test \( -f ${k5libdir}/libkrb5.a -o -f ${k5libdir}/libkrb5.so \) -a \( -f ${k5libdir}/libasn1.a -o -f ${k5libdir}/libasn1.so \) -a \( -f ${k5libdir}/libgssapi.a -o -f ${k5libdir}/libgssapi.so \); then
31153                 LIBS="-lgssapi -lkrb5 -lasn1 $LIBS"
31154
31155                 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL_INCLUDES"
31156
31157                 break
31158             fi
31159           done
31160         done
31161
31162         if test "$KRB5_DIR_FOUND"; then
31163             { $as_echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
31164 $as_echo "found in $KRB5_DIR_FOUND" >&6; }
31165             #
31166             # some OS's, such as NetBSD, stick krb5 includes out of the way...
31167             # should probably just use autoconf to look for various include
31168             # options and set them, but don't quite want to do that until I've
31169             # dug into it a bit more.
31170             #
31171             if test -d "$KRB5_DIR_FOUND/krb5" ; then
31172                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include/krb5"
31173
31174             else
31175                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include"
31176
31177             fi
31178
31179 { $as_echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
31180 $as_echo_n "checking for main in -lkrb5support... " >&6; }
31181 if test "${ac_cv_lib_krb5support_main+set}" = set; then
31182   $as_echo_n "(cached) " >&6
31183 else
31184   ac_check_lib_save_LIBS=$LIBS
31185 LIBS="-lkrb5support  $LIBS"
31186 cat >conftest.$ac_ext <<_ACEOF
31187 /* confdefs.h.  */
31188 _ACEOF
31189 cat confdefs.h >>conftest.$ac_ext
31190 cat >>conftest.$ac_ext <<_ACEOF
31191 /* end confdefs.h.  */
31192
31193
31194 int
31195 main ()
31196 {
31197 return main ();
31198   ;
31199   return 0;
31200 }
31201 _ACEOF
31202 rm -f conftest.$ac_objext conftest$ac_exeext
31203 if { (ac_try="$ac_link"
31204 case "(($ac_try" in
31205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31206   *) ac_try_echo=$ac_try;;
31207 esac
31208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31209 $as_echo "$ac_try_echo") >&5
31210   (eval "$ac_link") 2>conftest.er1
31211   ac_status=$?
31212   grep -v '^ *+' conftest.er1 >conftest.err
31213   rm -f conftest.er1
31214   cat conftest.err >&5
31215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216   (exit $ac_status); } && {
31217          test -z "$ac_c_werror_flag" ||
31218          test ! -s conftest.err
31219        } && test -s conftest$ac_exeext && {
31220          test "$cross_compiling" = yes ||
31221          $as_test_x conftest$ac_exeext
31222        }; then
31223   ac_cv_lib_krb5support_main=yes
31224 else
31225   $as_echo "$as_me: failed program was:" >&5
31226 sed 's/^/| /' conftest.$ac_ext >&5
31227
31228         ac_cv_lib_krb5support_main=no
31229 fi
31230
31231 rm -rf conftest.dSYM
31232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31233       conftest$ac_exeext conftest.$ac_ext
31234 LIBS=$ac_check_lib_save_LIBS
31235 fi
31236 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
31237 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
31238 if test "x$ac_cv_lib_krb5support_main" = x""yes; then
31239   cat >>confdefs.h <<_ACEOF
31240 #define HAVE_LIBKRB5SUPPORT 1
31241 _ACEOF
31242
31243   LIBS="-lkrb5support $LIBS"
31244
31245 fi
31246
31247             LDFLAGS="$LDFLAGS -L$KRB5_LIBDIR_FOUND"
31248
31249
31250
31251 cat >>confdefs.h <<\_ACEOF
31252 #define KRB5_SECURITY 1
31253 _ACEOF
31254
31255         else
31256             { $as_echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
31257 $as_echo "no krb5 system libraries found" >&6; }
31258             { { $as_echo "$as_me:$LINENO: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&5
31259 $as_echo "$as_me: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&2;}
31260    { (exit 1); exit 1; }; }
31261             KRB5_SECURITY="no"
31262         fi
31263     fi
31264
31265      if test x"$KRB5_SECURITY" = x"yes"; then
31266   WANT_KRB5_SECURITY_TRUE=
31267   WANT_KRB5_SECURITY_FALSE='#'
31268 else
31269   WANT_KRB5_SECURITY_TRUE='#'
31270   WANT_KRB5_SECURITY_FALSE=
31271 fi
31272
31273
31274
31275
31276 #
31277 # Dumpers
31278 #
31279
31280
31281
31282     for ac_prog in xfsdump
31283 do
31284   # Extract the first word of "$ac_prog", so it can be a program name with args.
31285 set dummy $ac_prog; ac_word=$2
31286 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31287 $as_echo_n "checking for $ac_word... " >&6; }
31288 if test "${ac_cv_path_XFSDUMP+set}" = set; then
31289   $as_echo_n "(cached) " >&6
31290 else
31291   case $XFSDUMP in
31292   [\\/]* | ?:[\\/]*)
31293   ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
31294   ;;
31295   *)
31296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31297 for as_dir in $SYSLOCPATH
31298 do
31299   IFS=$as_save_IFS
31300   test -z "$as_dir" && as_dir=.
31301   for ac_exec_ext in '' $ac_executable_extensions; do
31302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31303     ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
31304     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31305     break 2
31306   fi
31307 done
31308 done
31309 IFS=$as_save_IFS
31310
31311   ;;
31312 esac
31313 fi
31314 XFSDUMP=$ac_cv_path_XFSDUMP
31315 if test -n "$XFSDUMP"; then
31316   { $as_echo "$as_me:$LINENO: result: $XFSDUMP" >&5
31317 $as_echo "$XFSDUMP" >&6; }
31318 else
31319   { $as_echo "$as_me:$LINENO: result: no" >&5
31320 $as_echo "no" >&6; }
31321 fi
31322
31323
31324   test -n "$XFSDUMP" && break
31325 done
31326
31327     for ac_prog in xfsrestore
31328 do
31329   # Extract the first word of "$ac_prog", so it can be a program name with args.
31330 set dummy $ac_prog; ac_word=$2
31331 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31332 $as_echo_n "checking for $ac_word... " >&6; }
31333 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
31334   $as_echo_n "(cached) " >&6
31335 else
31336   case $XFSRESTORE in
31337   [\\/]* | ?:[\\/]*)
31338   ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
31339   ;;
31340   *)
31341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31342 for as_dir in $SYSLOCPATH
31343 do
31344   IFS=$as_save_IFS
31345   test -z "$as_dir" && as_dir=.
31346   for ac_exec_ext in '' $ac_executable_extensions; do
31347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31348     ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
31349     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31350     break 2
31351   fi
31352 done
31353 done
31354 IFS=$as_save_IFS
31355
31356   ;;
31357 esac
31358 fi
31359 XFSRESTORE=$ac_cv_path_XFSRESTORE
31360 if test -n "$XFSRESTORE"; then
31361   { $as_echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
31362 $as_echo "$XFSRESTORE" >&6; }
31363 else
31364   { $as_echo "$as_me:$LINENO: result: no" >&5
31365 $as_echo "no" >&6; }
31366 fi
31367
31368
31369   test -n "$XFSRESTORE" && break
31370 done
31371
31372     if test "$XFSDUMP" -a "$XFSRESTORE"; then
31373
31374 cat >>confdefs.h <<_ACEOF
31375 #define XFSDUMP "$XFSDUMP"
31376 _ACEOF
31377
31378
31379 cat >>confdefs.h <<_ACEOF
31380 #define XFSRESTORE "$XFSRESTORE"
31381 _ACEOF
31382
31383
31384     { $as_echo "$as_me:$LINENO: WARNING: xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h" >&5
31385 $as_echo "$as_me: WARNING: xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h" >&2;}
31386
31387
31388     cat <<AAW_EOF >>config.warnings
31389 xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h
31390 AAW_EOF
31391
31392
31393     fi
31394
31395
31396
31397
31398     # Extract the first word of "vxdump", so it can be a program name with args.
31399 set dummy vxdump; ac_word=$2
31400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31401 $as_echo_n "checking for $ac_word... " >&6; }
31402 if test "${ac_cv_path_VXDUMP+set}" = set; then
31403   $as_echo_n "(cached) " >&6
31404 else
31405   case $VXDUMP in
31406   [\\/]* | ?:[\\/]*)
31407   ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
31408   ;;
31409   *)
31410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31411 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
31412 for as_dir in $as_dummy
31413 do
31414   IFS=$as_save_IFS
31415   test -z "$as_dir" && as_dir=.
31416   for ac_exec_ext in '' $ac_executable_extensions; do
31417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31418     ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
31419     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31420     break 2
31421   fi
31422 done
31423 done
31424 IFS=$as_save_IFS
31425
31426   ;;
31427 esac
31428 fi
31429 VXDUMP=$ac_cv_path_VXDUMP
31430 if test -n "$VXDUMP"; then
31431   { $as_echo "$as_me:$LINENO: result: $VXDUMP" >&5
31432 $as_echo "$VXDUMP" >&6; }
31433 else
31434   { $as_echo "$as_me:$LINENO: result: no" >&5
31435 $as_echo "no" >&6; }
31436 fi
31437
31438
31439     # Extract the first word of "vxrestore", so it can be a program name with args.
31440 set dummy vxrestore; ac_word=$2
31441 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31442 $as_echo_n "checking for $ac_word... " >&6; }
31443 if test "${ac_cv_path_VXRESTORE+set}" = set; then
31444   $as_echo_n "(cached) " >&6
31445 else
31446   case $VXRESTORE in
31447   [\\/]* | ?:[\\/]*)
31448   ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
31449   ;;
31450   *)
31451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31452 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
31453 for as_dir in $as_dummy
31454 do
31455   IFS=$as_save_IFS
31456   test -z "$as_dir" && as_dir=.
31457   for ac_exec_ext in '' $ac_executable_extensions; do
31458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31459     ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
31460     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31461     break 2
31462   fi
31463 done
31464 done
31465 IFS=$as_save_IFS
31466
31467   ;;
31468 esac
31469 fi
31470 VXRESTORE=$ac_cv_path_VXRESTORE
31471 if test -n "$VXRESTORE"; then
31472   { $as_echo "$as_me:$LINENO: result: $VXRESTORE" >&5
31473 $as_echo "$VXRESTORE" >&6; }
31474 else
31475   { $as_echo "$as_me:$LINENO: result: no" >&5
31476 $as_echo "no" >&6; }
31477 fi
31478
31479
31480     if test "$VXDUMP" -a "$VXRESTORE"; then
31481
31482 cat >>confdefs.h <<_ACEOF
31483 #define VXDUMP "$VXDUMP"
31484 _ACEOF
31485
31486
31487 cat >>confdefs.h <<_ACEOF
31488 #define VXRESTORE "$VXRESTORE"
31489 _ACEOF
31490
31491     fi
31492
31493
31494
31495
31496     # Extract the first word of "vdump", so it can be a program name with args.
31497 set dummy vdump; ac_word=$2
31498 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31499 $as_echo_n "checking for $ac_word... " >&6; }
31500 if test "${ac_cv_path_VDUMP+set}" = set; then
31501   $as_echo_n "(cached) " >&6
31502 else
31503   case $VDUMP in
31504   [\\/]* | ?:[\\/]*)
31505   ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
31506   ;;
31507   *)
31508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31509 for as_dir in $SYSLOCPATH
31510 do
31511   IFS=$as_save_IFS
31512   test -z "$as_dir" && as_dir=.
31513   for ac_exec_ext in '' $ac_executable_extensions; do
31514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31515     ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
31516     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31517     break 2
31518   fi
31519 done
31520 done
31521 IFS=$as_save_IFS
31522
31523   ;;
31524 esac
31525 fi
31526 VDUMP=$ac_cv_path_VDUMP
31527 if test -n "$VDUMP"; then
31528   { $as_echo "$as_me:$LINENO: result: $VDUMP" >&5
31529 $as_echo "$VDUMP" >&6; }
31530 else
31531   { $as_echo "$as_me:$LINENO: result: no" >&5
31532 $as_echo "no" >&6; }
31533 fi
31534
31535
31536     # Extract the first word of "vrestore", so it can be a program name with args.
31537 set dummy vrestore; ac_word=$2
31538 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31539 $as_echo_n "checking for $ac_word... " >&6; }
31540 if test "${ac_cv_path_VRESTORE+set}" = set; then
31541   $as_echo_n "(cached) " >&6
31542 else
31543   case $VRESTORE in
31544   [\\/]* | ?:[\\/]*)
31545   ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
31546   ;;
31547   *)
31548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31549 for as_dir in $SYSLOCPATH
31550 do
31551   IFS=$as_save_IFS
31552   test -z "$as_dir" && as_dir=.
31553   for ac_exec_ext in '' $ac_executable_extensions; do
31554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31555     ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
31556     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31557     break 2
31558   fi
31559 done
31560 done
31561 IFS=$as_save_IFS
31562
31563   ;;
31564 esac
31565 fi
31566 VRESTORE=$ac_cv_path_VRESTORE
31567 if test -n "$VRESTORE"; then
31568   { $as_echo "$as_me:$LINENO: result: $VRESTORE" >&5
31569 $as_echo "$VRESTORE" >&6; }
31570 else
31571   { $as_echo "$as_me:$LINENO: result: no" >&5
31572 $as_echo "no" >&6; }
31573 fi
31574
31575
31576     if test "$VDUMP" -a "$VRESTORE"; then
31577
31578 cat >>confdefs.h <<_ACEOF
31579 #define VDUMP "$VDUMP"
31580 _ACEOF
31581
31582
31583 cat >>confdefs.h <<_ACEOF
31584 #define VRESTORE "$VRESTORE"
31585 _ACEOF
31586
31587     fi
31588
31589
31590
31591     # Extract the first word of "grep", so it can be a program name with args.
31592 set dummy grep; ac_word=$2
31593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31594 $as_echo_n "checking for $ac_word... " >&6; }
31595 if test "${ac_cv_path_GREP+set}" = set; then
31596   $as_echo_n "(cached) " >&6
31597 else
31598   case $GREP in
31599   [\\/]* | ?:[\\/]*)
31600   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
31601   ;;
31602   *)
31603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31604 for as_dir in $LOCSYSPATH
31605 do
31606   IFS=$as_save_IFS
31607   test -z "$as_dir" && as_dir=.
31608   for ac_exec_ext in '' $ac_executable_extensions; do
31609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31610     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
31611     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31612     break 2
31613   fi
31614 done
31615 done
31616 IFS=$as_save_IFS
31617
31618   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
31619   ;;
31620 esac
31621 fi
31622 GREP=$ac_cv_path_GREP
31623 if test -n "$GREP"; then
31624   { $as_echo "$as_me:$LINENO: result: $GREP" >&5
31625 $as_echo "$GREP" >&6; }
31626 else
31627   { $as_echo "$as_me:$LINENO: result: no" >&5
31628 $as_echo "no" >&6; }
31629 fi
31630
31631
31632
31633 cat >>confdefs.h <<_ACEOF
31634 #define GREP "$GREP"
31635 _ACEOF
31636
31637
31638
31639
31640
31641
31642     # Set the order of dump programs to look for.  Finding the proper file
31643     # system dumping program is problematic.  Some systems, notably HP-UX
31644     # and AIX, have both the backup and dump programs.  HP-UX can't use the
31645     # the backup program while AIX systems can't use the dump program.  So
31646     # a variable is set up here to specify the order of dump programs to
31647     # search for on the system.
31648     DUMP_PROGRAMS="ufsdump dump backup"
31649     DUMP_RETURNS_1=
31650     AIX_BACKUP=
31651     case "$target" in
31652         *-dg-*)
31653             DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
31654             DUMP_RETURNS_1=1
31655             ;;
31656       *-ibm-aix*)
31657             DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
31658             AIX_BACKUP=1
31659
31660 cat >>confdefs.h <<\_ACEOF
31661 #define AIX_BACKUP 1
31662 _ACEOF
31663
31664             ;;
31665       *-ultrix*)
31666             DUMP_RETURNS_1=1
31667             ;;
31668     esac
31669
31670     if test -n "$DUMP_RETURNS_1"; then
31671
31672 cat >>confdefs.h <<\_ACEOF
31673 #define DUMP_RETURNS_1 1
31674 _ACEOF
31675
31676     fi
31677
31678     for ac_prog in $DUMP_PROGRAMS
31679 do
31680   # Extract the first word of "$ac_prog", so it can be a program name with args.
31681 set dummy $ac_prog; ac_word=$2
31682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31683 $as_echo_n "checking for $ac_word... " >&6; }
31684 if test "${ac_cv_path_DUMP+set}" = set; then
31685   $as_echo_n "(cached) " >&6
31686 else
31687   case $DUMP in
31688   [\\/]* | ?:[\\/]*)
31689   ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
31690   ;;
31691   *)
31692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31693 for as_dir in $SYSLOCPATH
31694 do
31695   IFS=$as_save_IFS
31696   test -z "$as_dir" && as_dir=.
31697   for ac_exec_ext in '' $ac_executable_extensions; do
31698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31699     ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
31700     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31701     break 2
31702   fi
31703 done
31704 done
31705 IFS=$as_save_IFS
31706
31707   ;;
31708 esac
31709 fi
31710 DUMP=$ac_cv_path_DUMP
31711 if test -n "$DUMP"; then
31712   { $as_echo "$as_me:$LINENO: result: $DUMP" >&5
31713 $as_echo "$DUMP" >&6; }
31714 else
31715   { $as_echo "$as_me:$LINENO: result: no" >&5
31716 $as_echo "no" >&6; }
31717 fi
31718
31719
31720   test -n "$DUMP" && break
31721 done
31722
31723     for ac_prog in ufsrestore restore
31724 do
31725   # Extract the first word of "$ac_prog", so it can be a program name with args.
31726 set dummy $ac_prog; ac_word=$2
31727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31728 $as_echo_n "checking for $ac_word... " >&6; }
31729 if test "${ac_cv_path_RESTORE+set}" = set; then
31730   $as_echo_n "(cached) " >&6
31731 else
31732   case $RESTORE in
31733   [\\/]* | ?:[\\/]*)
31734   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
31735   ;;
31736   *)
31737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31738 for as_dir in $SYSLOCPATH
31739 do
31740   IFS=$as_save_IFS
31741   test -z "$as_dir" && as_dir=.
31742   for ac_exec_ext in '' $ac_executable_extensions; do
31743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31744     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
31745     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31746     break 2
31747   fi
31748 done
31749 done
31750 IFS=$as_save_IFS
31751
31752   ;;
31753 esac
31754 fi
31755 RESTORE=$ac_cv_path_RESTORE
31756 if test -n "$RESTORE"; then
31757   { $as_echo "$as_me:$LINENO: result: $RESTORE" >&5
31758 $as_echo "$RESTORE" >&6; }
31759 else
31760   { $as_echo "$as_me:$LINENO: result: no" >&5
31761 $as_echo "no" >&6; }
31762 fi
31763
31764
31765   test -n "$RESTORE" && break
31766 done
31767
31768
31769     # newer versions of GNU tar include a program named 'backup' which
31770     # does *not* implement the expected 'dump' interface.  Detect that here
31771     # and pretend we never saw it.
31772     if test -n "$DUMP"; then
31773       if test "`basename $DUMP`" = "backup"; then
31774         backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
31775         if test $? -eq 0; then
31776           DUMP=
31777         fi
31778       fi
31779     fi
31780
31781     if test "$DUMP" -a "$RESTORE"; then
31782
31783 cat >>confdefs.h <<_ACEOF
31784 #define DUMP "$DUMP"
31785 _ACEOF
31786
31787
31788 cat >>confdefs.h <<_ACEOF
31789 #define RESTORE "$RESTORE"
31790 _ACEOF
31791
31792
31793         # check for an estimate flag
31794         if test -x $DUMP; then
31795             { $as_echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
31796 $as_echo_n "checking whether $DUMP supports -E or -S for estimates... " >&6; }
31797 if test "${amanda_cv_dump_estimate+set}" = set; then
31798   $as_echo_n "(cached) " >&6
31799 else
31800
31801                     case "$DUMP" in
31802                     *dump)
31803                         { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
31804                             | $GREP -v Dumping
31805                             | $GREP -v Date
31806                             | $GREP -v Label >conftest.d-E 2>&1'
31807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31808   (eval $ac_try) 2>&5
31809   ac_status=$?
31810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31811   (exit $ac_status); }; }
31812                         cat conftest.d-E >&5
31813                         { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
31814                             | $GREP -v Dumping
31815                             | $GREP -v Date
31816                             | $GREP -v Label >conftest.d-S 2>&1'
31817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31818   (eval $ac_try) 2>&5
31819   ac_status=$?
31820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821   (exit $ac_status); }; }
31822                         cat conftest.d-S >&5
31823                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
31824                             | $GREP -v Dumping
31825                             | $GREP -v Date
31826                             | $GREP -v Label >conftest.d 2>&1'
31827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31828   (eval $ac_try) 2>&5
31829   ac_status=$?
31830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831   (exit $ac_status); }; }
31832                         cat conftest.d >&5
31833                         if { ac_try='cmp conftest.d-E conftest.d 1>&2'
31834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31835   (eval $ac_try) 2>&5
31836   ac_status=$?
31837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838   (exit $ac_status); }; }; then
31839                             amanda_cv_dump_estimate=E
31840                         elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
31841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31842   (eval $ac_try) 2>&5
31843   ac_status=$?
31844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845   (exit $ac_status); }; }; then
31846                             amanda_cv_dump_estimate=S
31847                         else
31848                             amanda_cv_dump_estimate=no
31849                         fi
31850                         rm -f conftest.d conftest.d-E conftest.d-S
31851                       ;;
31852                     *) amanda_cv_dump_estimate=no
31853                       ;;
31854                     esac
31855
31856 fi
31857 { $as_echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
31858 $as_echo "$amanda_cv_dump_estimate" >&6; }
31859         else
31860
31861     { $as_echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -E/-S test" >&5
31862 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -E/-S test" >&2;}
31863
31864
31865     cat <<AAW_EOF >>config.warnings
31866 $DUMP is not executable, cannot run -E/-S test
31867 AAW_EOF
31868
31869
31870             amanda_cv_dump_estimate=no
31871         fi
31872         if test "x$amanda_cv_dump_estimate" != xno; then
31873
31874 cat >>confdefs.h <<_ACEOF
31875 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
31876 _ACEOF
31877
31878         fi
31879
31880
31881 # Check whether --with-dump-honor-nodump was given.
31882 if test "${with_dump_honor_nodump+set}" = set; then
31883   withval=$with_dump_honor_nodump;
31884             if test -x $DUMP; then
31885                 { $as_echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
31886 $as_echo_n "checking whether $DUMP supports -h (honor nodump flag)... " >&6; }
31887 if test "${amanda_cv_honor_nodump+set}" = set; then
31888   $as_echo_n "(cached) " >&6
31889 else
31890
31891                     case "$DUMP" in
31892                     *dump)
31893                         { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
31894                             | $GREP -v Dumping
31895                             | $GREP -v Date
31896                             | $GREP -v Label >conftest.d-h 2>&1'
31897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31898   (eval $ac_try) 2>&5
31899   ac_status=$?
31900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901   (exit $ac_status); }; }
31902                         cat conftest.d-h >&5
31903                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
31904                             | $GREP -v Dumping
31905                             | $GREP -v Date
31906                             | $GREP -v Label >conftest.d 2>&1'
31907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31908   (eval $ac_try) 2>&5
31909   ac_status=$?
31910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911   (exit $ac_status); }; }
31912                         cat conftest.d >&5
31913                         if { ac_try='diff conftest.d-h conftest.d 1>&2'
31914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31915   (eval $ac_try) 2>&5
31916   ac_status=$?
31917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918   (exit $ac_status); }; }; then
31919                             amanda_cv_honor_nodump=yes
31920                         else
31921                             amanda_cv_honor_nodump=no
31922                         fi
31923                         rm -f conftest.d conftest.d-h
31924                       ;;
31925                     *) amanda_cv_honor_nodump=no
31926                       ;;
31927                     esac
31928
31929 fi
31930 { $as_echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
31931 $as_echo "$amanda_cv_honor_nodump" >&6; }
31932             else
31933
31934     { $as_echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -h test" >&5
31935 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -h test" >&2;}
31936
31937
31938     cat <<AAW_EOF >>config.warnings
31939 $DUMP is not executable, cannot run -h test
31940 AAW_EOF
31941
31942
31943                 amanda_cv_honor_nodump=no
31944             fi
31945             if test "x$amanda_cv_honor_nodump" = xyes; then
31946
31947 cat >>confdefs.h <<\_ACEOF
31948 #define HAVE_HONOR_NODUMP 1
31949 _ACEOF
31950
31951             fi
31952
31953 fi
31954
31955     fi
31956
31957
31958
31959
31960
31961
31962
31963     # call with
31964
31965 # Check whether --with-gnutar was given.
31966 if test "${with_gnutar+set}" = set; then
31967   withval=$with_gnutar;
31968             # check withval
31969             case "$withval" in
31970                 /*) GNUTAR="$withval";;
31971                 y|ye|yes) :;;
31972                 n|no) GNUTAR=no ;;
31973                 *)  { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
31974 $as_echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
31975    { (exit 1); exit 1; }; };;
31976             esac
31977             # done
31978
31979
31980 fi
31981
31982
31983     if test "x$GNUTAR" = "xno"; then
31984         GNUTAR=
31985     else
31986         for gnutar_name in gtar gnutar tar; do
31987             for ac_prog in $gnutar_name
31988 do
31989   # Extract the first word of "$ac_prog", so it can be a program name with args.
31990 set dummy $ac_prog; ac_word=$2
31991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31992 $as_echo_n "checking for $ac_word... " >&6; }
31993 if test "${ac_cv_path_GNUTAR+set}" = set; then
31994   $as_echo_n "(cached) " >&6
31995 else
31996   case $GNUTAR in
31997   [\\/]* | ?:[\\/]*)
31998   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
31999   ;;
32000   *)
32001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32002 for as_dir in $LOCSYSPATH
32003 do
32004   IFS=$as_save_IFS
32005   test -z "$as_dir" && as_dir=.
32006   for ac_exec_ext in '' $ac_executable_extensions; do
32007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32008     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
32009     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32010     break 2
32011   fi
32012 done
32013 done
32014 IFS=$as_save_IFS
32015
32016   ;;
32017 esac
32018 fi
32019 GNUTAR=$ac_cv_path_GNUTAR
32020 if test -n "$GNUTAR"; then
32021   { $as_echo "$as_me:$LINENO: result: $GNUTAR" >&5
32022 $as_echo "$GNUTAR" >&6; }
32023 else
32024   { $as_echo "$as_me:$LINENO: result: no" >&5
32025 $as_echo "no" >&6; }
32026 fi
32027
32028
32029   test -n "$GNUTAR" && break
32030 done
32031
32032             if test -n "$GNUTAR"; then
32033               case "`\"$GNUTAR\" --version 2>&1`" in
32034                *GNU*tar* | *Free*paxutils* )
32035                             # OK, it is GNU tar
32036                             break
32037                             ;;
32038                *)
32039                             # warning..
32040
32041     { $as_echo "$as_me:$LINENO: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&5
32042 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&2;}
32043
32044
32045     cat <<AAW_EOF >>config.warnings
32046 $GNUTAR is not GNU tar, so it will not be used.
32047 AAW_EOF
32048
32049
32050                             # reset the cache for GNUTAR so AC_PATH_PROGS will search again
32051                             GNUTAR=''
32052                             unset ac_cv_path_GNUTAR
32053                             ;;
32054               esac
32055             fi
32056         done
32057     fi
32058
32059     if test "x$GNUTAR" != "x"; then
32060         # define unquoted
32061
32062 cat >>confdefs.h <<_ACEOF
32063 #define GNUTAR "$GNUTAR"
32064 _ACEOF
32065
32066     fi
32067
32068
32069
32070
32071
32072
32073
32074 # Check whether --with-smbclient was given.
32075 if test "${with_smbclient+set}" = set; then
32076   withval=$with_smbclient;
32077             case "$withval" in
32078                 /*) SAMBA_CLIENT="$withval";;
32079                 y|ye|yes) :;;
32080                 n|no) SAMBA_CLIENT=no ;;
32081                 *)  { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
32082 $as_echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
32083    { (exit 1); exit 1; }; };;
32084             esac
32085
32086
32087 fi
32088
32089
32090
32091 # Check whether --with-samba-user was given.
32092 if test "${with_samba_user+set}" = set; then
32093   withval=$with_samba_user;  { { $as_echo "$as_me:$LINENO: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&5
32094 $as_echo "$as_me: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&2;}
32095    { (exit 1); exit 1; }; }
32096
32097 fi
32098
32099
32100     if test "x$SAMBA_CLIENT" != "xno"; then
32101       # Extract the first word of "smbclient", so it can be a program name with args.
32102 set dummy smbclient; ac_word=$2
32103 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32104 $as_echo_n "checking for $ac_word... " >&6; }
32105 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
32106   $as_echo_n "(cached) " >&6
32107 else
32108   case $SAMBA_CLIENT in
32109   [\\/]* | ?:[\\/]*)
32110   ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
32111   ;;
32112   *)
32113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32114 for as_dir in $LOCSYSPATH
32115 do
32116   IFS=$as_save_IFS
32117   test -z "$as_dir" && as_dir=.
32118   for ac_exec_ext in '' $ac_executable_extensions; do
32119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32120     ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
32121     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32122     break 2
32123   fi
32124 done
32125 done
32126 IFS=$as_save_IFS
32127
32128   ;;
32129 esac
32130 fi
32131 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
32132 if test -n "$SAMBA_CLIENT"; then
32133   { $as_echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
32134 $as_echo "$SAMBA_CLIENT" >&6; }
32135 else
32136   { $as_echo "$as_me:$LINENO: result: no" >&5
32137 $as_echo "no" >&6; }
32138 fi
32139
32140
32141       smbversion=0
32142       if test ! -z "$SAMBA_CLIENT"; then
32143         case "`\"$SAMBA_CLIENT\" '\\\\nosuchhost.amanda.org\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
32144         *"Unknown host"*)
32145                       smbversion=1
32146                       ;;
32147         *"Connection to nosuchhost.amanda.org failed"*)
32148                       smbversion=2
32149                       ;;
32150         *)
32151
32152     { $as_echo "$as_me:$LINENO: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
32153 $as_echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
32154
32155
32156     cat <<AAW_EOF >>config.warnings
32157 $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.
32158 AAW_EOF
32159
32160
32161                       SAMBA_CLIENT=
32162                       ;;
32163         esac
32164         if test -n "$SAMBA_CLIENT"; then
32165
32166 cat >>confdefs.h <<_ACEOF
32167 #define SAMBA_CLIENT "$SAMBA_CLIENT"
32168 _ACEOF
32169
32170
32171 cat >>confdefs.h <<_ACEOF
32172 #define SAMBA_VERSION $smbversion
32173 _ACEOF
32174
32175         fi
32176       fi
32177     fi
32178
32179      if test -n "$SAMBA_CLIENT"; then
32180   WANT_SAMBA_TRUE=
32181   WANT_SAMBA_FALSE='#'
32182 else
32183   WANT_SAMBA_TRUE='#'
32184   WANT_SAMBA_FALSE=
32185 fi
32186
32187
32188
32189     USE_RUNDUMP=no
32190
32191     # some systems require rundump unconditionally
32192     case "$target" in
32193         *-ultrix*) USE_RUNDUMP=yes ;;
32194         *-dg-*) USE_RUNDUMP=yes ;;
32195     esac
32196
32197
32198 # Check whether --with-rundump was given.
32199 if test "${with_rundump+set}" = set; then
32200   withval=$with_rundump;
32201         case "$withval" in
32202             n | no) USE_RUNDUMP=no ;;
32203             y | ye | yes) USE_RUNDUMP=yes ;;
32204             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-rundump option." >&5
32205 $as_echo "$as_me: error: You must not supply an argument to --with-rundump option." >&2;}
32206    { (exit 1); exit 1; }; };;
32207         esac
32208
32209 fi
32210
32211
32212     if test x"$USE_RUNDUMP" = x"yes"; then
32213         USE_RUNDUMP=1
32214
32215 cat >>confdefs.h <<\_ACEOF
32216 #define USE_RUNDUMP 1
32217 _ACEOF
32218
32219     else
32220         USE_RUNDUMP=
32221     fi
32222
32223
32224
32225
32226 #
32227 # Look for other programs Amanda will use
32228 #
32229
32230
32231     # Extract the first word of "grep", so it can be a program name with args.
32232 set dummy grep; ac_word=$2
32233 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32234 $as_echo_n "checking for $ac_word... " >&6; }
32235 if test "${ac_cv_path_GREP+set}" = set; then
32236   $as_echo_n "(cached) " >&6
32237 else
32238   case $GREP in
32239   [\\/]* | ?:[\\/]*)
32240   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
32241   ;;
32242   *)
32243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32244 for as_dir in $LOCSYSPATH
32245 do
32246   IFS=$as_save_IFS
32247   test -z "$as_dir" && as_dir=.
32248   for ac_exec_ext in '' $ac_executable_extensions; do
32249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32250     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
32251     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32252     break 2
32253   fi
32254 done
32255 done
32256 IFS=$as_save_IFS
32257
32258   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
32259   ;;
32260 esac
32261 fi
32262 GREP=$ac_cv_path_GREP
32263 if test -n "$GREP"; then
32264   { $as_echo "$as_me:$LINENO: result: $GREP" >&5
32265 $as_echo "$GREP" >&6; }
32266 else
32267   { $as_echo "$as_me:$LINENO: result: no" >&5
32268 $as_echo "no" >&6; }
32269 fi
32270
32271
32272
32273 cat >>confdefs.h <<_ACEOF
32274 #define GREP "$GREP"
32275 _ACEOF
32276
32277
32278 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
32279 $as_echo_n "checking for egrep... " >&6; }
32280 if test "${ac_cv_path_EGREP+set}" = set; then
32281   $as_echo_n "(cached) " >&6
32282 else
32283   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
32284    then ac_cv_path_EGREP="$GREP -E"
32285    else
32286      if test -z "$EGREP"; then
32287   ac_path_EGREP_found=false
32288   # Loop through the user's path and test for each of PROGNAME-LIST
32289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32290 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
32291 do
32292   IFS=$as_save_IFS
32293   test -z "$as_dir" && as_dir=.
32294   for ac_prog in egrep; do
32295     for ac_exec_ext in '' $ac_executable_extensions; do
32296       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
32297       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
32298 # Check for GNU ac_path_EGREP and select it if it is found.
32299   # Check for GNU $ac_path_EGREP
32300 case `"$ac_path_EGREP" --version 2>&1` in
32301 *GNU*)
32302   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
32303 *)
32304   ac_count=0
32305   $as_echo_n 0123456789 >"conftest.in"
32306   while :
32307   do
32308     cat "conftest.in" "conftest.in" >"conftest.tmp"
32309     mv "conftest.tmp" "conftest.in"
32310     cp "conftest.in" "conftest.nl"
32311     $as_echo 'EGREP' >> "conftest.nl"
32312     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
32313     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
32314     ac_count=`expr $ac_count + 1`
32315     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
32316       # Best one so far, save it but keep looking for a better one
32317       ac_cv_path_EGREP="$ac_path_EGREP"
32318       ac_path_EGREP_max=$ac_count
32319     fi
32320     # 10*(2^10) chars as input seems more than enough
32321     test $ac_count -gt 10 && break
32322   done
32323   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
32324 esac
32325
32326       $ac_path_EGREP_found && break 3
32327     done
32328   done
32329 done
32330 IFS=$as_save_IFS
32331   if test -z "$ac_cv_path_EGREP"; then
32332     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
32333 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
32334    { (exit 1); exit 1; }; }
32335   fi
32336 else
32337   ac_cv_path_EGREP=$EGREP
32338 fi
32339
32340    fi
32341 fi
32342 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
32343 $as_echo "$ac_cv_path_EGREP" >&6; }
32344  EGREP="$ac_cv_path_EGREP"
32345
32346
32347
32348
32349
32350
32351     # Extract the first word of "lint", so it can be a program name with args.
32352 set dummy lint; ac_word=$2
32353 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32354 $as_echo_n "checking for $ac_word... " >&6; }
32355 if test "${ac_cv_path_AMLINT+set}" = set; then
32356   $as_echo_n "(cached) " >&6
32357 else
32358   case $AMLINT in
32359   [\\/]* | ?:[\\/]*)
32360   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
32361   ;;
32362   *)
32363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32364 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
32365 for as_dir in $as_dummy
32366 do
32367   IFS=$as_save_IFS
32368   test -z "$as_dir" && as_dir=.
32369   for ac_exec_ext in '' $ac_executable_extensions; do
32370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32371     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
32372     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32373     break 2
32374   fi
32375 done
32376 done
32377 IFS=$as_save_IFS
32378
32379   ;;
32380 esac
32381 fi
32382 AMLINT=$ac_cv_path_AMLINT
32383 if test -n "$AMLINT"; then
32384   { $as_echo "$as_me:$LINENO: result: $AMLINT" >&5
32385 $as_echo "$AMLINT" >&6; }
32386 else
32387   { $as_echo "$as_me:$LINENO: result: no" >&5
32388 $as_echo "no" >&6; }
32389 fi
32390
32391
32392     if test ! -z "$AMLINT"; then
32393       $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
32394       if test $? -eq 0; then
32395         AMLINTFLAGS="-n -s -u -m -x"
32396         AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
32397         AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
32398         AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
32399         AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
32400         AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
32401         AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
32402         AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
32403         AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
32404         AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
32405         AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
32406         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
32407         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
32408         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
32409         AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
32410         AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
32411         AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
32412         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
32413         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
32414         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
32415         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
32416         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
32417         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
32418         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
32419         AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
32420         AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
32421         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
32422         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
32423         AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
32424         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
32425         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
32426         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
32427         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
32428         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
32429         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
32430         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
32431         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
32432         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
32433         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
32434         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
32435         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
32436         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
32437         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
32438         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
32439         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
32440         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
32441         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
32442         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
32443         AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
32444         AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
32445         AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
32446       else
32447         AMLINTFLAGS=""
32448       fi
32449     else
32450       # Extract the first word of "splint", so it can be a program name with args.
32451 set dummy splint; ac_word=$2
32452 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32453 $as_echo_n "checking for $ac_word... " >&6; }
32454 if test "${ac_cv_path_AMLINT+set}" = set; then
32455   $as_echo_n "(cached) " >&6
32456 else
32457   case $AMLINT in
32458   [\\/]* | ?:[\\/]*)
32459   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
32460   ;;
32461   *)
32462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32463 for as_dir in $SYSLOCPATH
32464 do
32465   IFS=$as_save_IFS
32466   test -z "$as_dir" && as_dir=.
32467   for ac_exec_ext in '' $ac_executable_extensions; do
32468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32469     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
32470     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32471     break 2
32472   fi
32473 done
32474 done
32475 IFS=$as_save_IFS
32476
32477   ;;
32478 esac
32479 fi
32480 AMLINT=$ac_cv_path_AMLINT
32481 if test -n "$AMLINT"; then
32482   { $as_echo "$as_me:$LINENO: result: $AMLINT" >&5
32483 $as_echo "$AMLINT" >&6; }
32484 else
32485   { $as_echo "$as_me:$LINENO: result: no" >&5
32486 $as_echo "no" >&6; }
32487 fi
32488
32489
32490       if test ! -z "$AMLINT"; then
32491         AMLINT="splint"
32492         AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
32493       else
32494         AMLINT='echo "Error: LINT is not installed" ; false'
32495         AMLINTFLAGS=''
32496       fi
32497     fi
32498
32499
32500 for ac_prog in flex lex
32501 do
32502   # Extract the first word of "$ac_prog", so it can be a program name with args.
32503 set dummy $ac_prog; ac_word=$2
32504 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32505 $as_echo_n "checking for $ac_word... " >&6; }
32506 if test "${ac_cv_prog_LEX+set}" = set; then
32507   $as_echo_n "(cached) " >&6
32508 else
32509   if test -n "$LEX"; then
32510   ac_cv_prog_LEX="$LEX" # Let the user override the test.
32511 else
32512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32513 for as_dir in $PATH
32514 do
32515   IFS=$as_save_IFS
32516   test -z "$as_dir" && as_dir=.
32517   for ac_exec_ext in '' $ac_executable_extensions; do
32518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32519     ac_cv_prog_LEX="$ac_prog"
32520     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32521     break 2
32522   fi
32523 done
32524 done
32525 IFS=$as_save_IFS
32526
32527 fi
32528 fi
32529 LEX=$ac_cv_prog_LEX
32530 if test -n "$LEX"; then
32531   { $as_echo "$as_me:$LINENO: result: $LEX" >&5
32532 $as_echo "$LEX" >&6; }
32533 else
32534   { $as_echo "$as_me:$LINENO: result: no" >&5
32535 $as_echo "no" >&6; }
32536 fi
32537
32538
32539   test -n "$LEX" && break
32540 done
32541 test -n "$LEX" || LEX=":"
32542
32543 if test "x$LEX" != "x:"; then
32544   cat >conftest.l <<_ACEOF
32545 %%
32546 a { ECHO; }
32547 b { REJECT; }
32548 c { yymore (); }
32549 d { yyless (1); }
32550 e { yyless (input () != 0); }
32551 f { unput (yytext[0]); }
32552 . { BEGIN INITIAL; }
32553 %%
32554 #ifdef YYTEXT_POINTER
32555 extern char *yytext;
32556 #endif
32557 int
32558 main (void)
32559 {
32560   return ! yylex () + ! yywrap ();
32561 }
32562 _ACEOF
32563 { (ac_try="$LEX conftest.l"
32564 case "(($ac_try" in
32565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32566   *) ac_try_echo=$ac_try;;
32567 esac
32568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32569 $as_echo "$ac_try_echo") >&5
32570   (eval "$LEX conftest.l") 2>&5
32571   ac_status=$?
32572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32573   (exit $ac_status); }
32574 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
32575 $as_echo_n "checking lex output file root... " >&6; }
32576 if test "${ac_cv_prog_lex_root+set}" = set; then
32577   $as_echo_n "(cached) " >&6
32578 else
32579
32580 if test -f lex.yy.c; then
32581   ac_cv_prog_lex_root=lex.yy
32582 elif test -f lexyy.c; then
32583   ac_cv_prog_lex_root=lexyy
32584 else
32585   { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
32586 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
32587    { (exit 1); exit 1; }; }
32588 fi
32589 fi
32590 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
32591 $as_echo "$ac_cv_prog_lex_root" >&6; }
32592 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
32593
32594 if test -z "${LEXLIB+set}"; then
32595   { $as_echo "$as_me:$LINENO: checking lex library" >&5
32596 $as_echo_n "checking lex library... " >&6; }
32597 if test "${ac_cv_lib_lex+set}" = set; then
32598   $as_echo_n "(cached) " >&6
32599 else
32600
32601     ac_save_LIBS=$LIBS
32602     ac_cv_lib_lex='none needed'
32603     for ac_lib in '' -lfl -ll; do
32604       LIBS="$ac_lib $ac_save_LIBS"
32605       cat >conftest.$ac_ext <<_ACEOF
32606 `cat $LEX_OUTPUT_ROOT.c`
32607 _ACEOF
32608 rm -f conftest.$ac_objext conftest$ac_exeext
32609 if { (ac_try="$ac_link"
32610 case "(($ac_try" in
32611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32612   *) ac_try_echo=$ac_try;;
32613 esac
32614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32615 $as_echo "$ac_try_echo") >&5
32616   (eval "$ac_link") 2>conftest.er1
32617   ac_status=$?
32618   grep -v '^ *+' conftest.er1 >conftest.err
32619   rm -f conftest.er1
32620   cat conftest.err >&5
32621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32622   (exit $ac_status); } && {
32623          test -z "$ac_c_werror_flag" ||
32624          test ! -s conftest.err
32625        } && test -s conftest$ac_exeext && {
32626          test "$cross_compiling" = yes ||
32627          $as_test_x conftest$ac_exeext
32628        }; then
32629   ac_cv_lib_lex=$ac_lib
32630 else
32631   $as_echo "$as_me: failed program was:" >&5
32632 sed 's/^/| /' conftest.$ac_ext >&5
32633
32634
32635 fi
32636
32637 rm -rf conftest.dSYM
32638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32639       conftest$ac_exeext conftest.$ac_ext
32640       test "$ac_cv_lib_lex" != 'none needed' && break
32641     done
32642     LIBS=$ac_save_LIBS
32643
32644 fi
32645 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
32646 $as_echo "$ac_cv_lib_lex" >&6; }
32647   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
32648 fi
32649
32650
32651 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
32652 $as_echo_n "checking whether yytext is a pointer... " >&6; }
32653 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
32654   $as_echo_n "(cached) " >&6
32655 else
32656   # POSIX says lex can declare yytext either as a pointer or an array; the
32657 # default is implementation-dependent.  Figure out which it is, since
32658 # not all implementations provide the %pointer and %array declarations.
32659 ac_cv_prog_lex_yytext_pointer=no
32660 ac_save_LIBS=$LIBS
32661 LIBS="$LEXLIB $ac_save_LIBS"
32662 cat >conftest.$ac_ext <<_ACEOF
32663 #define YYTEXT_POINTER 1
32664 `cat $LEX_OUTPUT_ROOT.c`
32665 _ACEOF
32666 rm -f conftest.$ac_objext conftest$ac_exeext
32667 if { (ac_try="$ac_link"
32668 case "(($ac_try" in
32669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32670   *) ac_try_echo=$ac_try;;
32671 esac
32672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32673 $as_echo "$ac_try_echo") >&5
32674   (eval "$ac_link") 2>conftest.er1
32675   ac_status=$?
32676   grep -v '^ *+' conftest.er1 >conftest.err
32677   rm -f conftest.er1
32678   cat conftest.err >&5
32679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680   (exit $ac_status); } && {
32681          test -z "$ac_c_werror_flag" ||
32682          test ! -s conftest.err
32683        } && test -s conftest$ac_exeext && {
32684          test "$cross_compiling" = yes ||
32685          $as_test_x conftest$ac_exeext
32686        }; then
32687   ac_cv_prog_lex_yytext_pointer=yes
32688 else
32689   $as_echo "$as_me: failed program was:" >&5
32690 sed 's/^/| /' conftest.$ac_ext >&5
32691
32692
32693 fi
32694
32695 rm -rf conftest.dSYM
32696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32697       conftest$ac_exeext conftest.$ac_ext
32698 LIBS=$ac_save_LIBS
32699
32700 fi
32701 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
32702 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
32703 if test $ac_cv_prog_lex_yytext_pointer = yes; then
32704
32705 cat >>confdefs.h <<\_ACEOF
32706 #define YYTEXT_POINTER 1
32707 _ACEOF
32708
32709 fi
32710 rm -f conftest.l $LEX_OUTPUT_ROOT.c
32711
32712 fi
32713 if test "$LEX" = :; then
32714   LEX=${am_missing_run}flex
32715 fi
32716
32717
32718     # Extract the first word of "ar", so it can be a program name with args.
32719 set dummy ar; ac_word=$2
32720 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32721 $as_echo_n "checking for $ac_word... " >&6; }
32722 if test "${ac_cv_path_AR+set}" = set; then
32723   $as_echo_n "(cached) " >&6
32724 else
32725   case $AR in
32726   [\\/]* | ?:[\\/]*)
32727   ac_cv_path_AR="$AR" # Let the user override the test with a path.
32728   ;;
32729   *)
32730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32731 for as_dir in $LOCSYSPATH
32732 do
32733   IFS=$as_save_IFS
32734   test -z "$as_dir" && as_dir=.
32735   for ac_exec_ext in '' $ac_executable_extensions; do
32736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32737     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
32738     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32739     break 2
32740   fi
32741 done
32742 done
32743 IFS=$as_save_IFS
32744
32745   ;;
32746 esac
32747 fi
32748 AR=$ac_cv_path_AR
32749 if test -n "$AR"; then
32750   { $as_echo "$as_me:$LINENO: result: $AR" >&5
32751 $as_echo "$AR" >&6; }
32752 else
32753   { $as_echo "$as_me:$LINENO: result: no" >&5
32754 $as_echo "no" >&6; }
32755 fi
32756
32757
32758
32759
32760
32761     # Extract the first word of "gettext", so it can be a program name with args.
32762 set dummy gettext; ac_word=$2
32763 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32764 $as_echo_n "checking for $ac_word... " >&6; }
32765 if test "${ac_cv_path_GETTEXT+set}" = set; then
32766   $as_echo_n "(cached) " >&6
32767 else
32768   case $GETTEXT in
32769   [\\/]* | ?:[\\/]*)
32770   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
32771   ;;
32772   *)
32773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32774 for as_dir in $LOCSYSPATH
32775 do
32776   IFS=$as_save_IFS
32777   test -z "$as_dir" && as_dir=.
32778   for ac_exec_ext in '' $ac_executable_extensions; do
32779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32780     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
32781     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32782     break 2
32783   fi
32784 done
32785 done
32786 IFS=$as_save_IFS
32787
32788   ;;
32789 esac
32790 fi
32791 GETTEXT=$ac_cv_path_GETTEXT
32792 if test -n "$GETTEXT"; then
32793   { $as_echo "$as_me:$LINENO: result: $GETTEXT" >&5
32794 $as_echo "$GETTEXT" >&6; }
32795 else
32796   { $as_echo "$as_me:$LINENO: result: no" >&5
32797 $as_echo "no" >&6; }
32798 fi
32799
32800
32801
32802 for ac_prog in gawk mawk nawk awk
32803 do
32804   # Extract the first word of "$ac_prog", so it can be a program name with args.
32805 set dummy $ac_prog; ac_word=$2
32806 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32807 $as_echo_n "checking for $ac_word... " >&6; }
32808 if test "${ac_cv_prog_AWK+set}" = set; then
32809   $as_echo_n "(cached) " >&6
32810 else
32811   if test -n "$AWK"; then
32812   ac_cv_prog_AWK="$AWK" # Let the user override the test.
32813 else
32814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32815 for as_dir in $PATH
32816 do
32817   IFS=$as_save_IFS
32818   test -z "$as_dir" && as_dir=.
32819   for ac_exec_ext in '' $ac_executable_extensions; do
32820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32821     ac_cv_prog_AWK="$ac_prog"
32822     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32823     break 2
32824   fi
32825 done
32826 done
32827 IFS=$as_save_IFS
32828
32829 fi
32830 fi
32831 AWK=$ac_cv_prog_AWK
32832 if test -n "$AWK"; then
32833   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
32834 $as_echo "$AWK" >&6; }
32835 else
32836   { $as_echo "$as_me:$LINENO: result: no" >&5
32837 $as_echo "no" >&6; }
32838 fi
32839
32840
32841   test -n "$AWK" && break
32842 done
32843
32844 for ac_prog in 'bison -y' byacc
32845 do
32846   # Extract the first word of "$ac_prog", so it can be a program name with args.
32847 set dummy $ac_prog; ac_word=$2
32848 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32849 $as_echo_n "checking for $ac_word... " >&6; }
32850 if test "${ac_cv_prog_YACC+set}" = set; then
32851   $as_echo_n "(cached) " >&6
32852 else
32853   if test -n "$YACC"; then
32854   ac_cv_prog_YACC="$YACC" # Let the user override the test.
32855 else
32856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32857 for as_dir in $PATH
32858 do
32859   IFS=$as_save_IFS
32860   test -z "$as_dir" && as_dir=.
32861   for ac_exec_ext in '' $ac_executable_extensions; do
32862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32863     ac_cv_prog_YACC="$ac_prog"
32864     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32865     break 2
32866   fi
32867 done
32868 done
32869 IFS=$as_save_IFS
32870
32871 fi
32872 fi
32873 YACC=$ac_cv_prog_YACC
32874 if test -n "$YACC"; then
32875   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
32876 $as_echo "$YACC" >&6; }
32877 else
32878   { $as_echo "$as_me:$LINENO: result: no" >&5
32879 $as_echo "no" >&6; }
32880 fi
32881
32882
32883   test -n "$YACC" && break
32884 done
32885 test -n "$YACC" || YACC="yacc"
32886
32887 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
32888 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
32889 if test -z "$MKDIR_P"; then
32890   if test "${ac_cv_path_mkdir+set}" = set; then
32891   $as_echo_n "(cached) " >&6
32892 else
32893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32894 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
32895 do
32896   IFS=$as_save_IFS
32897   test -z "$as_dir" && as_dir=.
32898   for ac_prog in mkdir gmkdir; do
32899          for ac_exec_ext in '' $ac_executable_extensions; do
32900            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
32901            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
32902              'mkdir (GNU coreutils) '* | \
32903              'mkdir (coreutils) '* | \
32904              'mkdir (fileutils) '4.1*)
32905                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
32906                break 3;;
32907            esac
32908          done
32909        done
32910 done
32911 IFS=$as_save_IFS
32912
32913 fi
32914
32915   if test "${ac_cv_path_mkdir+set}" = set; then
32916     MKDIR_P="$ac_cv_path_mkdir -p"
32917   else
32918     # As a last resort, use the slow shell script.  Don't cache a
32919     # value for MKDIR_P within a source directory, because that will
32920     # break other packages using the cache if that directory is
32921     # removed, or if the value is a relative name.
32922     test -d ./--version && rmdir ./--version
32923     MKDIR_P="$ac_install_sh -d"
32924   fi
32925 fi
32926 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
32927 $as_echo "$MKDIR_P" >&6; }
32928
32929
32930
32931     # Extract the first word of "dd", so it can be a program name with args.
32932 set dummy dd; ac_word=$2
32933 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32934 $as_echo_n "checking for $ac_word... " >&6; }
32935 if test "${ac_cv_path_DD+set}" = set; then
32936   $as_echo_n "(cached) " >&6
32937 else
32938   case $DD in
32939   [\\/]* | ?:[\\/]*)
32940   ac_cv_path_DD="$DD" # Let the user override the test with a path.
32941   ;;
32942   *)
32943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32944 for as_dir in $LOCSYSPATH
32945 do
32946   IFS=$as_save_IFS
32947   test -z "$as_dir" && as_dir=.
32948   for ac_exec_ext in '' $ac_executable_extensions; do
32949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32950     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
32951     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32952     break 2
32953   fi
32954 done
32955 done
32956 IFS=$as_save_IFS
32957
32958   ;;
32959 esac
32960 fi
32961 DD=$ac_cv_path_DD
32962 if test -n "$DD"; then
32963   { $as_echo "$as_me:$LINENO: result: $DD" >&5
32964 $as_echo "$DD" >&6; }
32965 else
32966   { $as_echo "$as_me:$LINENO: result: no" >&5
32967 $as_echo "no" >&6; }
32968 fi
32969
32970
32971
32972
32973
32974     # Extract the first word of "bash", so it can be a program name with args.
32975 set dummy bash; ac_word=$2
32976 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32977 $as_echo_n "checking for $ac_word... " >&6; }
32978 if test "${ac_cv_path_BASH+set}" = set; then
32979   $as_echo_n "(cached) " >&6
32980 else
32981   case $BASH in
32982   [\\/]* | ?:[\\/]*)
32983   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
32984   ;;
32985   *)
32986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32987 for as_dir in $SYSPATH
32988 do
32989   IFS=$as_save_IFS
32990   test -z "$as_dir" && as_dir=.
32991   for ac_exec_ext in '' $ac_executable_extensions; do
32992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32993     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
32994     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32995     break 2
32996   fi
32997 done
32998 done
32999 IFS=$as_save_IFS
33000
33001   ;;
33002 esac
33003 fi
33004 BASH=$ac_cv_path_BASH
33005 if test -n "$BASH"; then
33006   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
33007 $as_echo "$BASH" >&6; }
33008 else
33009   { $as_echo "$as_me:$LINENO: result: no" >&5
33010 $as_echo "no" >&6; }
33011 fi
33012
33013
33014
33015
33016
33017
33018
33019     # Extract the first word of "sort", so it can be a program name with args.
33020 set dummy sort; ac_word=$2
33021 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33022 $as_echo_n "checking for $ac_word... " >&6; }
33023 if test "${ac_cv_path_SORT+set}" = set; then
33024   $as_echo_n "(cached) " >&6
33025 else
33026   case $SORT in
33027   [\\/]* | ?:[\\/]*)
33028   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
33029   ;;
33030   *)
33031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33032 for as_dir in $LOCSYSPATH
33033 do
33034   IFS=$as_save_IFS
33035   test -z "$as_dir" && as_dir=.
33036   for ac_exec_ext in '' $ac_executable_extensions; do
33037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33038     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
33039     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33040     break 2
33041   fi
33042 done
33043 done
33044 IFS=$as_save_IFS
33045
33046   test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
33047   ;;
33048 esac
33049 fi
33050 SORT=$ac_cv_path_SORT
33051 if test -n "$SORT"; then
33052   { $as_echo "$as_me:$LINENO: result: $SORT" >&5
33053 $as_echo "$SORT" >&6; }
33054 else
33055   { $as_echo "$as_me:$LINENO: result: no" >&5
33056 $as_echo "no" >&6; }
33057 fi
33058
33059
33060
33061     # sort is only needed in the server build
33062     if test x"$SORT" = x"NONE" && $WANT_SERVER; then
33063         { { $as_echo "$as_me:$LINENO: error: Set SORT to the path of the sort program." >&5
33064 $as_echo "$as_me: error: Set SORT to the path of the sort program." >&2;}
33065    { (exit 1); exit 1; }; }
33066     fi
33067
33068
33069 cat >>confdefs.h <<_ACEOF
33070 #define SORT_PATH "$SORT"
33071 _ACEOF
33072
33073
33074
33075
33076     for ac_prog in Mail mailx mail
33077 do
33078   # Extract the first word of "$ac_prog", so it can be a program name with args.
33079 set dummy $ac_prog; ac_word=$2
33080 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33081 $as_echo_n "checking for $ac_word... " >&6; }
33082 if test "${ac_cv_path_MAILER+set}" = set; then
33083   $as_echo_n "(cached) " >&6
33084 else
33085   case $MAILER in
33086   [\\/]* | ?:[\\/]*)
33087   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
33088   ;;
33089   *)
33090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33091 for as_dir in $PATH
33092 do
33093   IFS=$as_save_IFS
33094   test -z "$as_dir" && as_dir=.
33095   for ac_exec_ext in '' $ac_executable_extensions; do
33096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33097     ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
33098     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33099     break 2
33100   fi
33101 done
33102 done
33103 IFS=$as_save_IFS
33104
33105   ;;
33106 esac
33107 fi
33108 MAILER=$ac_cv_path_MAILER
33109 if test -n "$MAILER"; then
33110   { $as_echo "$as_me:$LINENO: result: $MAILER" >&5
33111 $as_echo "$MAILER" >&6; }
33112 else
33113   { $as_echo "$as_me:$LINENO: result: no" >&5
33114 $as_echo "no" >&6; }
33115 fi
33116
33117
33118   test -n "$MAILER" && break
33119 done
33120 test -n "$MAILER" || MAILER="NONE"
33121
33122     if test x"$MAILER" = x"NONE"; then
33123
33124     { $as_echo "$as_me:$LINENO: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
33125 $as_echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
33126
33127
33128     cat <<AAW_EOF >>config.warnings
33129 WARNING: Amanda cannot send mail reports without a mailer.
33130 AAW_EOF
33131
33132
33133         DEFAULT_MAILER=""
33134     else
33135         DEFAULT_MAILER="$MAILER"
33136     fi
33137
33138 cat >>confdefs.h <<_ACEOF
33139 #define DEFAULT_MAILER "$DEFAULT_MAILER"
33140 _ACEOF
33141
33142
33143
33144
33145
33146     # Extract the first word of "mt", so it can be a program name with args.
33147 set dummy mt; ac_word=$2
33148 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33149 $as_echo_n "checking for $ac_word... " >&6; }
33150 if test "${ac_cv_path_MT+set}" = set; then
33151   $as_echo_n "(cached) " >&6
33152 else
33153   case $MT in
33154   [\\/]* | ?:[\\/]*)
33155   ac_cv_path_MT="$MT" # Let the user override the test with a path.
33156   ;;
33157   *)
33158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33159 for as_dir in $LOCSYSPATH
33160 do
33161   IFS=$as_save_IFS
33162   test -z "$as_dir" && as_dir=.
33163   for ac_exec_ext in '' $ac_executable_extensions; do
33164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33165     ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
33166     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33167     break 2
33168   fi
33169 done
33170 done
33171 IFS=$as_save_IFS
33172
33173   test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
33174   ;;
33175 esac
33176 fi
33177 MT=$ac_cv_path_MT
33178 if test -n "$MT"; then
33179   { $as_echo "$as_me:$LINENO: result: $MT" >&5
33180 $as_echo "$MT" >&6; }
33181 else
33182   { $as_echo "$as_me:$LINENO: result: no" >&5
33183 $as_echo "no" >&6; }
33184 fi
33185
33186
33187
33188     case "$target" in
33189         *-hp-*) MT_FILE_FLAG="-t" ;;
33190         *) MT_FILE_FLAG="-f" ;;
33191     esac
33192
33193
33194
33195 cat >>confdefs.h <<_ACEOF
33196 #define MT_FILE_FLAG "$MT_FILE_FLAG"
33197 _ACEOF
33198
33199
33200
33201
33202
33203     for ac_prog in lpr lp
33204 do
33205   # Extract the first word of "$ac_prog", so it can be a program name with args.
33206 set dummy $ac_prog; ac_word=$2
33207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33208 $as_echo_n "checking for $ac_word... " >&6; }
33209 if test "${ac_cv_path_PRINT+set}" = set; then
33210   $as_echo_n "(cached) " >&6
33211 else
33212   case $PRINT in
33213   [\\/]* | ?:[\\/]*)
33214   ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
33215   ;;
33216   *)
33217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33218 for as_dir in $PATH
33219 do
33220   IFS=$as_save_IFS
33221   test -z "$as_dir" && as_dir=.
33222   for ac_exec_ext in '' $ac_executable_extensions; do
33223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33224     ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
33225     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33226     break 2
33227   fi
33228 done
33229 done
33230 IFS=$as_save_IFS
33231
33232   ;;
33233 esac
33234 fi
33235 PRINT=$ac_cv_path_PRINT
33236 if test -n "$PRINT"; then
33237   { $as_echo "$as_me:$LINENO: result: $PRINT" >&5
33238 $as_echo "$PRINT" >&6; }
33239 else
33240   { $as_echo "$as_me:$LINENO: result: no" >&5
33241 $as_echo "no" >&6; }
33242 fi
33243
33244
33245   test -n "$PRINT" && break
33246 done
33247
33248     if test ! -z "$PRINT"; then
33249
33250 cat >>confdefs.h <<_ACEOF
33251 #define LPRCMD "$PRINT"
33252 _ACEOF
33253
33254
33255         { $as_echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
33256 $as_echo_n "checking which flag to use to select a printer... " >&6; }
33257 if test "${amanda_cv_printer_flag+set}" = set; then
33258   $as_echo_n "(cached) " >&6
33259 else
33260
33261             amanda_cv_printer_flag=$PRINTER_FLAG
33262             case "$PRINT" in
33263                 lpr|*/lpr) amanda_cv_printer_flag="-P";;
33264                 lp|*/lp) amanda_cv_printer_flag="-d";;
33265             esac
33266
33267 fi
33268 { $as_echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
33269 $as_echo "$amanda_cv_printer_flag" >&6; }
33270         if test ! -z "$amanda_cv_printer_flag"; then
33271
33272 cat >>confdefs.h <<_ACEOF
33273 #define LPRFLAG "$amanda_cv_printer_flag"
33274 _ACEOF
33275
33276         else
33277
33278     { $as_echo "$as_me:$LINENO: WARNING: WARNING: amanda will always print to the default printer" >&5
33279 $as_echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
33280
33281
33282     cat <<AAW_EOF >>config.warnings
33283 WARNING: amanda will always print to the default printer
33284 AAW_EOF
33285
33286
33287         fi
33288     fi
33289
33290
33291
33292     # Extract the first word of "pcat", so it can be a program name with args.
33293 set dummy pcat; ac_word=$2
33294 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33295 $as_echo_n "checking for $ac_word... " >&6; }
33296 if test "${ac_cv_path_PCAT+set}" = set; then
33297   $as_echo_n "(cached) " >&6
33298 else
33299   case $PCAT in
33300   [\\/]* | ?:[\\/]*)
33301   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
33302   ;;
33303   *)
33304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33305 for as_dir in $LOCSYSPATH
33306 do
33307   IFS=$as_save_IFS
33308   test -z "$as_dir" && as_dir=.
33309   for ac_exec_ext in '' $ac_executable_extensions; do
33310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33311     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
33312     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33313     break 2
33314   fi
33315 done
33316 done
33317 IFS=$as_save_IFS
33318
33319   ;;
33320 esac
33321 fi
33322 PCAT=$ac_cv_path_PCAT
33323 if test -n "$PCAT"; then
33324   { $as_echo "$as_me:$LINENO: result: $PCAT" >&5
33325 $as_echo "$PCAT" >&6; }
33326 else
33327   { $as_echo "$as_me:$LINENO: result: no" >&5
33328 $as_echo "no" >&6; }
33329 fi
33330
33331
33332
33333
33334
33335     for ac_prog in perl5 perl
33336 do
33337   # Extract the first word of "$ac_prog", so it can be a program name with args.
33338 set dummy $ac_prog; ac_word=$2
33339 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33340 $as_echo_n "checking for $ac_word... " >&6; }
33341 if test "${ac_cv_path_PERL+set}" = set; then
33342   $as_echo_n "(cached) " >&6
33343 else
33344   case $PERL in
33345   [\\/]* | ?:[\\/]*)
33346   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33347   ;;
33348   *)
33349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33350 for as_dir in $LOCSYSPATH
33351 do
33352   IFS=$as_save_IFS
33353   test -z "$as_dir" && as_dir=.
33354   for ac_exec_ext in '' $ac_executable_extensions; do
33355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33356     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
33357     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33358     break 2
33359   fi
33360 done
33361 done
33362 IFS=$as_save_IFS
33363
33364   ;;
33365 esac
33366 fi
33367 PERL=$ac_cv_path_PERL
33368 if test -n "$PERL"; then
33369   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
33370 $as_echo "$PERL" >&6; }
33371 else
33372   { $as_echo "$as_me:$LINENO: result: no" >&5
33373 $as_echo "no" >&6; }
33374 fi
33375
33376
33377   test -n "$PERL" && break
33378 done
33379
33380
33381     # Make sure we have perl
33382 if test -z "$PERL"; then
33383 # Extract the first word of "perl", so it can be a program name with args.
33384 set dummy perl; ac_word=$2
33385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33386 $as_echo_n "checking for $ac_word... " >&6; }
33387 if test "${ac_cv_prog_PERL+set}" = set; then
33388   $as_echo_n "(cached) " >&6
33389 else
33390   if test -n "$PERL"; then
33391   ac_cv_prog_PERL="$PERL" # Let the user override the test.
33392 else
33393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33394 for as_dir in $PATH
33395 do
33396   IFS=$as_save_IFS
33397   test -z "$as_dir" && as_dir=.
33398   for ac_exec_ext in '' $ac_executable_extensions; do
33399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33400     ac_cv_prog_PERL="perl"
33401     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33402     break 2
33403   fi
33404 done
33405 done
33406 IFS=$as_save_IFS
33407
33408 fi
33409 fi
33410 PERL=$ac_cv_prog_PERL
33411 if test -n "$PERL"; then
33412   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
33413 $as_echo "$PERL" >&6; }
33414 else
33415   { $as_echo "$as_me:$LINENO: result: no" >&5
33416 $as_echo "no" >&6; }
33417 fi
33418
33419
33420 fi
33421
33422 # Check if version of Perl is sufficient
33423 ac_perl_version="5.6.0"
33424
33425 if test "x$PERL" != "x"; then
33426   { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
33427 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
33428   # NB: It would be nice to log the error if there is one, but we cannot rely
33429   # on autoconf internals
33430   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
33431   if test $? -ne 0; then
33432     { $as_echo "$as_me:$LINENO: result: no" >&5
33433 $as_echo "no" >&6; };
33434
33435         { { $as_echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
33436 $as_echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
33437    { (exit 1); exit 1; }; }
33438
33439   else
33440     { $as_echo "$as_me:$LINENO: result: ok" >&5
33441 $as_echo "ok" >&6; };
33442
33443   fi
33444 else
33445   { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
33446 $as_echo "$as_me: WARNING: could not find perl" >&2;}
33447 fi
33448
33449
33450
33451
33452     for ac_prog in swig
33453 do
33454   # Extract the first word of "$ac_prog", so it can be a program name with args.
33455 set dummy $ac_prog; ac_word=$2
33456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33457 $as_echo_n "checking for $ac_word... " >&6; }
33458 if test "${ac_cv_path_SWIG+set}" = set; then
33459   $as_echo_n "(cached) " >&6
33460 else
33461   case $SWIG in
33462   [\\/]* | ?:[\\/]*)
33463   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
33464   ;;
33465   *)
33466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33467 for as_dir in $LOCSYSPATH
33468 do
33469   IFS=$as_save_IFS
33470   test -z "$as_dir" && as_dir=.
33471   for ac_exec_ext in '' $ac_executable_extensions; do
33472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33473     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
33474     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33475     break 2
33476   fi
33477 done
33478 done
33479 IFS=$as_save_IFS
33480
33481   ;;
33482 esac
33483 fi
33484 SWIG=$ac_cv_path_SWIG
33485 if test -n "$SWIG"; then
33486   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
33487 $as_echo "$SWIG" >&6; }
33488 else
33489   { $as_echo "$as_me:$LINENO: result: no" >&5
33490 $as_echo "no" >&6; }
33491 fi
33492
33493
33494   test -n "$SWIG" && break
33495 done
33496
33497
33498
33499         # Extract the first word of "swig", so it can be a program name with args.
33500 set dummy swig; ac_word=$2
33501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33502 $as_echo_n "checking for $ac_word... " >&6; }
33503 if test "${ac_cv_path_SWIG+set}" = set; then
33504   $as_echo_n "(cached) " >&6
33505 else
33506   case $SWIG in
33507   [\\/]* | ?:[\\/]*)
33508   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
33509   ;;
33510   *)
33511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33512 for as_dir in $PATH
33513 do
33514   IFS=$as_save_IFS
33515   test -z "$as_dir" && as_dir=.
33516   for ac_exec_ext in '' $ac_executable_extensions; do
33517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33518     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
33519     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33520     break 2
33521   fi
33522 done
33523 done
33524 IFS=$as_save_IFS
33525
33526   ;;
33527 esac
33528 fi
33529 SWIG=$ac_cv_path_SWIG
33530 if test -n "$SWIG"; then
33531   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
33532 $as_echo "$SWIG" >&6; }
33533 else
33534   { $as_echo "$as_me:$LINENO: result: no" >&5
33535 $as_echo "no" >&6; }
33536 fi
33537
33538
33539         if test -z "$SWIG" ; then
33540                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
33541         elif test -n "1.3.28" ; then
33542                 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
33543 $as_echo_n "checking for SWIG version... " >&6; }
33544                 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
33545                 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
33546 $as_echo "$swig_version" >&6; }
33547                 if test -n "$swig_version" ; then
33548                         # Calculate the required version number components
33549                         required=1.3.28
33550                         required_major=`echo $required | sed 's/[^0-9].*//'`
33551                         if test -z "$required_major" ; then
33552                                 required_major=0
33553                         fi
33554                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
33555                         required_minor=`echo $required | sed 's/[^0-9].*//'`
33556                         if test -z "$required_minor" ; then
33557                                 required_minor=0
33558                         fi
33559                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
33560                         required_patch=`echo $required | sed 's/[^0-9].*//'`
33561                         if test -z "$required_patch" ; then
33562                                 required_patch=0
33563                         fi
33564                         # Calculate the available version number components
33565                         available=$swig_version
33566                         available_major=`echo $available | sed 's/[^0-9].*//'`
33567                         if test -z "$available_major" ; then
33568                                 available_major=0
33569                         fi
33570                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
33571                         available_minor=`echo $available | sed 's/[^0-9].*//'`
33572                         if test -z "$available_minor" ; then
33573                                 available_minor=0
33574                         fi
33575                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
33576                         available_patch=`echo $available | sed 's/[^0-9].*//'`
33577                         if test -z "$available_patch" ; then
33578                                 available_patch=0
33579                         fi
33580                         if test $available_major -ne $required_major \
33581                                 -o $available_minor -ne $required_minor \
33582                                 -o $available_patch -lt $required_patch ; then
33583                                 SWIG='echo "Error: SWIG version >= 1.3.28 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
33584                         else
33585                                 SWIG_LIB=`$SWIG -swiglib`
33586                         fi
33587                 else
33588                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
33589                 fi
33590         fi
33591
33592
33593
33594
33595     # Extract the first word of "ps", so it can be a program name with args.
33596 set dummy ps; ac_word=$2
33597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33598 $as_echo_n "checking for $ac_word... " >&6; }
33599 if test "${ac_cv_path_PS+set}" = set; then
33600   $as_echo_n "(cached) " >&6
33601 else
33602   case $PS in
33603   [\\/]* | ?:[\\/]*)
33604   ac_cv_path_PS="$PS" # Let the user override the test with a path.
33605   ;;
33606   *)
33607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33608 for as_dir in $PATH
33609 do
33610   IFS=$as_save_IFS
33611   test -z "$as_dir" && as_dir=.
33612   for ac_exec_ext in '' $ac_executable_extensions; do
33613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33614     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
33615     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33616     break 2
33617   fi
33618 done
33619 done
33620 IFS=$as_save_IFS
33621
33622   ;;
33623 esac
33624 fi
33625 PS=$ac_cv_path_PS
33626 if test -n "$PS"; then
33627   { $as_echo "$as_me:$LINENO: result: $PS" >&5
33628 $as_echo "$PS" >&6; }
33629 else
33630   { $as_echo "$as_me:$LINENO: result: no" >&5
33631 $as_echo "no" >&6; }
33632 fi
33633
33634
33635     { $as_echo "$as_me:$LINENO: checking ps argument to use" >&5
33636 $as_echo_n "checking ps argument to use... " >&6; }
33637     PS_ARGUMENT=
33638
33639     # ps is *very* non-portable, and across many systems, the same option
33640     # (e.g., -e) can mean different things.  So this macro tries to
33641     # special-case most known systems, and makes an effort to detect unknown
33642     # systems
33643     case "$target" in
33644         *-*-solaris*)
33645             PS_ARGUMENT="-eo pid,ppid,comm"
33646             ;;
33647
33648         *-*-linux-*)
33649             PS_ARGUMENT="-eo pid,ppid,command"
33650             ;;
33651
33652         *-*-*bsd*)
33653             PS_ARGUMENT="-axo pid,ppid,command"
33654             ;;
33655
33656         *-apple-darwin*)
33657             PS_ARGUMENT="-aAco pid,ppid,command"
33658             ;;
33659
33660         *-pc-cygwin)
33661             # Cygwin is special-cased in Amanda::Process
33662             PS_ARGUMENT=CYGWIN
33663             ;;
33664
33665         *-*-hpux*)
33666             # HPUX's 'PS' needs the env var UNIX95 to run in "xpg4" mode
33667             PS="UNIX95=1 $PS"
33668             PS_ARGUMENT="-eo pid,ppid,comm"
33669             ;;
33670
33671         *)
33672             for try in \
33673                 "-axo pid,ppid,command" \
33674                 "-aAco pid,ppid,command" \
33675                 "-eo pid,ppid,comm"
33676             do
33677                 ps $try >/dev/null 2>/dev/null
33678                 if test $? -eq 0; then
33679                     PS_ARGUMENT="$try"
33680                     break
33681                 fi
33682             done
33683             if test -z "$PS_ARGUMENT"; then
33684                 { { $as_echo "$as_me:$LINENO: error: Can't find ps argument to use." >&5
33685 $as_echo "$as_me: error: Can't find ps argument to use." >&2;}
33686    { (exit 1); exit 1; }; }
33687             fi
33688             ;;
33689     esac
33690
33691     { $as_echo "$as_me:$LINENO: result: $PS_ARGUMENT" >&5
33692 $as_echo "$PS_ARGUMENT" >&6; }
33693
33694
33695
33696
33697 #
33698 # Compiler / system characteristics
33699 #
33700
33701 #
33702 # compiler
33703 #
33704 if test $ac_cv_c_compiler_gnu = yes; then
33705     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
33706 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
33707 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
33708   $as_echo_n "(cached) " >&6
33709 else
33710     ac_pattern="Autoconf.*'x'"
33711   cat >conftest.$ac_ext <<_ACEOF
33712 /* confdefs.h.  */
33713 _ACEOF
33714 cat confdefs.h >>conftest.$ac_ext
33715 cat >>conftest.$ac_ext <<_ACEOF
33716 /* end confdefs.h.  */
33717 #include <sgtty.h>
33718 Autoconf TIOCGETP
33719 _ACEOF
33720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33721   $EGREP "$ac_pattern" >/dev/null 2>&1; then
33722   ac_cv_prog_gcc_traditional=yes
33723 else
33724   ac_cv_prog_gcc_traditional=no
33725 fi
33726 rm -f conftest*
33727
33728
33729   if test $ac_cv_prog_gcc_traditional = no; then
33730     cat >conftest.$ac_ext <<_ACEOF
33731 /* confdefs.h.  */
33732 _ACEOF
33733 cat confdefs.h >>conftest.$ac_ext
33734 cat >>conftest.$ac_ext <<_ACEOF
33735 /* end confdefs.h.  */
33736 #include <termio.h>
33737 Autoconf TCGETA
33738 _ACEOF
33739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33740   $EGREP "$ac_pattern" >/dev/null 2>&1; then
33741   ac_cv_prog_gcc_traditional=yes
33742 fi
33743 rm -f conftest*
33744
33745   fi
33746 fi
33747 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
33748 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
33749   if test $ac_cv_prog_gcc_traditional = yes; then
33750     CC="$CC -traditional"
33751   fi
33752 fi
33753
33754 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33755 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
33756 if test "${ac_cv_c_const+set}" = set; then
33757   $as_echo_n "(cached) " >&6
33758 else
33759   cat >conftest.$ac_ext <<_ACEOF
33760 /* confdefs.h.  */
33761 _ACEOF
33762 cat confdefs.h >>conftest.$ac_ext
33763 cat >>conftest.$ac_ext <<_ACEOF
33764 /* end confdefs.h.  */
33765
33766 int
33767 main ()
33768 {
33769 /* FIXME: Include the comments suggested by Paul. */
33770 #ifndef __cplusplus
33771   /* Ultrix mips cc rejects this.  */
33772   typedef int charset[2];
33773   const charset cs;
33774   /* SunOS 4.1.1 cc rejects this.  */
33775   char const *const *pcpcc;
33776   char **ppc;
33777   /* NEC SVR4.0.2 mips cc rejects this.  */
33778   struct point {int x, y;};
33779   static struct point const zero = {0,0};
33780   /* AIX XL C 1.02.0.0 rejects this.
33781      It does not let you subtract one const X* pointer from another in
33782      an arm of an if-expression whose if-part is not a constant
33783      expression */
33784   const char *g = "string";
33785   pcpcc = &g + (g ? g-g : 0);
33786   /* HPUX 7.0 cc rejects these. */
33787   ++pcpcc;
33788   ppc = (char**) pcpcc;
33789   pcpcc = (char const *const *) ppc;
33790   { /* SCO 3.2v4 cc rejects this.  */
33791     char *t;
33792     char const *s = 0 ? (char *) 0 : (char const *) 0;
33793
33794     *t++ = 0;
33795     if (s) return 0;
33796   }
33797   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33798     int x[] = {25, 17};
33799     const int *foo = &x[0];
33800     ++foo;
33801   }
33802   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33803     typedef const int *iptr;
33804     iptr p = 0;
33805     ++p;
33806   }
33807   { /* AIX XL C 1.02.0.0 rejects this saying
33808        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33809     struct s { int j; const int *ap[3]; };
33810     struct s *b; b->j = 5;
33811   }
33812   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33813     const int foo = 10;
33814     if (!foo) return 0;
33815   }
33816   return !cs[0] && !zero.x;
33817 #endif
33818
33819   ;
33820   return 0;
33821 }
33822 _ACEOF
33823 rm -f conftest.$ac_objext
33824 if { (ac_try="$ac_compile"
33825 case "(($ac_try" in
33826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33827   *) ac_try_echo=$ac_try;;
33828 esac
33829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33830 $as_echo "$ac_try_echo") >&5
33831   (eval "$ac_compile") 2>conftest.er1
33832   ac_status=$?
33833   grep -v '^ *+' conftest.er1 >conftest.err
33834   rm -f conftest.er1
33835   cat conftest.err >&5
33836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33837   (exit $ac_status); } && {
33838          test -z "$ac_c_werror_flag" ||
33839          test ! -s conftest.err
33840        } && test -s conftest.$ac_objext; then
33841   ac_cv_c_const=yes
33842 else
33843   $as_echo "$as_me: failed program was:" >&5
33844 sed 's/^/| /' conftest.$ac_ext >&5
33845
33846         ac_cv_c_const=no
33847 fi
33848
33849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33850 fi
33851 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33852 $as_echo "$ac_cv_c_const" >&6; }
33853 if test $ac_cv_c_const = no; then
33854
33855 cat >>confdefs.h <<\_ACEOF
33856 #define const /**/
33857 _ACEOF
33858
33859 fi
33860
33861
33862  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33863 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
33864 if test "${ac_cv_c_bigendian+set}" = set; then
33865   $as_echo_n "(cached) " >&6
33866 else
33867   ac_cv_c_bigendian=unknown
33868     # See if we're dealing with a universal compiler.
33869     cat >conftest.$ac_ext <<_ACEOF
33870 /* confdefs.h.  */
33871 _ACEOF
33872 cat confdefs.h >>conftest.$ac_ext
33873 cat >>conftest.$ac_ext <<_ACEOF
33874 /* end confdefs.h.  */
33875 #ifndef __APPLE_CC__
33876                not a universal capable compiler
33877              #endif
33878              typedef int dummy;
33879
33880 _ACEOF
33881 rm -f conftest.$ac_objext
33882 if { (ac_try="$ac_compile"
33883 case "(($ac_try" in
33884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33885   *) ac_try_echo=$ac_try;;
33886 esac
33887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33888 $as_echo "$ac_try_echo") >&5
33889   (eval "$ac_compile") 2>conftest.er1
33890   ac_status=$?
33891   grep -v '^ *+' conftest.er1 >conftest.err
33892   rm -f conftest.er1
33893   cat conftest.err >&5
33894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895   (exit $ac_status); } && {
33896          test -z "$ac_c_werror_flag" ||
33897          test ! -s conftest.err
33898        } && test -s conftest.$ac_objext; then
33899
33900         # Check for potential -arch flags.  It is not universal unless
33901         # there are some -arch flags.  Note that *ppc* also matches
33902         # ppc64.  This check is also rather less than ideal.
33903         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
33904           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
33905         esac
33906 else
33907   $as_echo "$as_me: failed program was:" >&5
33908 sed 's/^/| /' conftest.$ac_ext >&5
33909
33910
33911 fi
33912
33913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33914     if test $ac_cv_c_bigendian = unknown; then
33915       # See if sys/param.h defines the BYTE_ORDER macro.
33916       cat >conftest.$ac_ext <<_ACEOF
33917 /* confdefs.h.  */
33918 _ACEOF
33919 cat confdefs.h >>conftest.$ac_ext
33920 cat >>conftest.$ac_ext <<_ACEOF
33921 /* end confdefs.h.  */
33922 #include <sys/types.h>
33923              #include <sys/param.h>
33924
33925 int
33926 main ()
33927 {
33928 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
33929                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
33930                      && LITTLE_ENDIAN)
33931               bogus endian macros
33932              #endif
33933
33934   ;
33935   return 0;
33936 }
33937 _ACEOF
33938 rm -f conftest.$ac_objext
33939 if { (ac_try="$ac_compile"
33940 case "(($ac_try" in
33941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33942   *) ac_try_echo=$ac_try;;
33943 esac
33944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33945 $as_echo "$ac_try_echo") >&5
33946   (eval "$ac_compile") 2>conftest.er1
33947   ac_status=$?
33948   grep -v '^ *+' conftest.er1 >conftest.err
33949   rm -f conftest.er1
33950   cat conftest.err >&5
33951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33952   (exit $ac_status); } && {
33953          test -z "$ac_c_werror_flag" ||
33954          test ! -s conftest.err
33955        } && test -s conftest.$ac_objext; then
33956   # It does; now see whether it defined to BIG_ENDIAN or not.
33957          cat >conftest.$ac_ext <<_ACEOF
33958 /* confdefs.h.  */
33959 _ACEOF
33960 cat confdefs.h >>conftest.$ac_ext
33961 cat >>conftest.$ac_ext <<_ACEOF
33962 /* end confdefs.h.  */
33963 #include <sys/types.h>
33964                 #include <sys/param.h>
33965
33966 int
33967 main ()
33968 {
33969 #if BYTE_ORDER != BIG_ENDIAN
33970                  not big endian
33971                 #endif
33972
33973   ;
33974   return 0;
33975 }
33976 _ACEOF
33977 rm -f conftest.$ac_objext
33978 if { (ac_try="$ac_compile"
33979 case "(($ac_try" in
33980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33981   *) ac_try_echo=$ac_try;;
33982 esac
33983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33984 $as_echo "$ac_try_echo") >&5
33985   (eval "$ac_compile") 2>conftest.er1
33986   ac_status=$?
33987   grep -v '^ *+' conftest.er1 >conftest.err
33988   rm -f conftest.er1
33989   cat conftest.err >&5
33990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991   (exit $ac_status); } && {
33992          test -z "$ac_c_werror_flag" ||
33993          test ! -s conftest.err
33994        } && test -s conftest.$ac_objext; then
33995   ac_cv_c_bigendian=yes
33996 else
33997   $as_echo "$as_me: failed program was:" >&5
33998 sed 's/^/| /' conftest.$ac_ext >&5
33999
34000         ac_cv_c_bigendian=no
34001 fi
34002
34003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34004 else
34005   $as_echo "$as_me: failed program was:" >&5
34006 sed 's/^/| /' conftest.$ac_ext >&5
34007
34008
34009 fi
34010
34011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34012     fi
34013     if test $ac_cv_c_bigendian = unknown; then
34014       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
34015       cat >conftest.$ac_ext <<_ACEOF
34016 /* confdefs.h.  */
34017 _ACEOF
34018 cat confdefs.h >>conftest.$ac_ext
34019 cat >>conftest.$ac_ext <<_ACEOF
34020 /* end confdefs.h.  */
34021 #include <limits.h>
34022
34023 int
34024 main ()
34025 {
34026 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
34027               bogus endian macros
34028              #endif
34029
34030   ;
34031   return 0;
34032 }
34033 _ACEOF
34034 rm -f conftest.$ac_objext
34035 if { (ac_try="$ac_compile"
34036 case "(($ac_try" in
34037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34038   *) ac_try_echo=$ac_try;;
34039 esac
34040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34041 $as_echo "$ac_try_echo") >&5
34042   (eval "$ac_compile") 2>conftest.er1
34043   ac_status=$?
34044   grep -v '^ *+' conftest.er1 >conftest.err
34045   rm -f conftest.er1
34046   cat conftest.err >&5
34047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34048   (exit $ac_status); } && {
34049          test -z "$ac_c_werror_flag" ||
34050          test ! -s conftest.err
34051        } && test -s conftest.$ac_objext; then
34052   # It does; now see whether it defined to _BIG_ENDIAN or not.
34053          cat >conftest.$ac_ext <<_ACEOF
34054 /* confdefs.h.  */
34055 _ACEOF
34056 cat confdefs.h >>conftest.$ac_ext
34057 cat >>conftest.$ac_ext <<_ACEOF
34058 /* end confdefs.h.  */
34059 #include <limits.h>
34060
34061 int
34062 main ()
34063 {
34064 #ifndef _BIG_ENDIAN
34065                  not big endian
34066                 #endif
34067
34068   ;
34069   return 0;
34070 }
34071 _ACEOF
34072 rm -f conftest.$ac_objext
34073 if { (ac_try="$ac_compile"
34074 case "(($ac_try" in
34075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34076   *) ac_try_echo=$ac_try;;
34077 esac
34078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34079 $as_echo "$ac_try_echo") >&5
34080   (eval "$ac_compile") 2>conftest.er1
34081   ac_status=$?
34082   grep -v '^ *+' conftest.er1 >conftest.err
34083   rm -f conftest.er1
34084   cat conftest.err >&5
34085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34086   (exit $ac_status); } && {
34087          test -z "$ac_c_werror_flag" ||
34088          test ! -s conftest.err
34089        } && test -s conftest.$ac_objext; then
34090   ac_cv_c_bigendian=yes
34091 else
34092   $as_echo "$as_me: failed program was:" >&5
34093 sed 's/^/| /' conftest.$ac_ext >&5
34094
34095         ac_cv_c_bigendian=no
34096 fi
34097
34098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34099 else
34100   $as_echo "$as_me: failed program was:" >&5
34101 sed 's/^/| /' conftest.$ac_ext >&5
34102
34103
34104 fi
34105
34106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34107     fi
34108     if test $ac_cv_c_bigendian = unknown; then
34109       # Compile a test program.
34110       if test "$cross_compiling" = yes; then
34111   # Try to guess by grepping values from an object file.
34112          cat >conftest.$ac_ext <<_ACEOF
34113 /* confdefs.h.  */
34114 _ACEOF
34115 cat confdefs.h >>conftest.$ac_ext
34116 cat >>conftest.$ac_ext <<_ACEOF
34117 /* end confdefs.h.  */
34118 short int ascii_mm[] =
34119                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
34120                 short int ascii_ii[] =
34121                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
34122                 int use_ascii (int i) {
34123                   return ascii_mm[i] + ascii_ii[i];
34124                 }
34125                 short int ebcdic_ii[] =
34126                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
34127                 short int ebcdic_mm[] =
34128                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
34129                 int use_ebcdic (int i) {
34130                   return ebcdic_mm[i] + ebcdic_ii[i];
34131                 }
34132                 extern int foo;
34133
34134 int
34135 main ()
34136 {
34137 return use_ascii (foo) == use_ebcdic (foo);
34138   ;
34139   return 0;
34140 }
34141 _ACEOF
34142 rm -f conftest.$ac_objext
34143 if { (ac_try="$ac_compile"
34144 case "(($ac_try" in
34145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34146   *) ac_try_echo=$ac_try;;
34147 esac
34148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34149 $as_echo "$ac_try_echo") >&5
34150   (eval "$ac_compile") 2>conftest.er1
34151   ac_status=$?
34152   grep -v '^ *+' conftest.er1 >conftest.err
34153   rm -f conftest.er1
34154   cat conftest.err >&5
34155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34156   (exit $ac_status); } && {
34157          test -z "$ac_c_werror_flag" ||
34158          test ! -s conftest.err
34159        } && test -s conftest.$ac_objext; then
34160   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
34161               ac_cv_c_bigendian=yes
34162             fi
34163             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
34164               if test "$ac_cv_c_bigendian" = unknown; then
34165                 ac_cv_c_bigendian=no
34166               else
34167                 # finding both strings is unlikely to happen, but who knows?
34168                 ac_cv_c_bigendian=unknown
34169               fi
34170             fi
34171 else
34172   $as_echo "$as_me: failed program was:" >&5
34173 sed 's/^/| /' conftest.$ac_ext >&5
34174
34175
34176 fi
34177
34178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34179 else
34180   cat >conftest.$ac_ext <<_ACEOF
34181 /* confdefs.h.  */
34182 _ACEOF
34183 cat confdefs.h >>conftest.$ac_ext
34184 cat >>conftest.$ac_ext <<_ACEOF
34185 /* end confdefs.h.  */
34186 $ac_includes_default
34187 int
34188 main ()
34189 {
34190
34191              /* Are we little or big endian?  From Harbison&Steele.  */
34192              union
34193              {
34194                long int l;
34195                char c[sizeof (long int)];
34196              } u;
34197              u.l = 1;
34198              return u.c[sizeof (long int) - 1] == 1;
34199
34200   ;
34201   return 0;
34202 }
34203 _ACEOF
34204 rm -f conftest$ac_exeext
34205 if { (ac_try="$ac_link"
34206 case "(($ac_try" in
34207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34208   *) ac_try_echo=$ac_try;;
34209 esac
34210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34211 $as_echo "$ac_try_echo") >&5
34212   (eval "$ac_link") 2>&5
34213   ac_status=$?
34214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34215   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34216   { (case "(($ac_try" in
34217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34218   *) ac_try_echo=$ac_try;;
34219 esac
34220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34221 $as_echo "$ac_try_echo") >&5
34222   (eval "$ac_try") 2>&5
34223   ac_status=$?
34224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34225   (exit $ac_status); }; }; then
34226   ac_cv_c_bigendian=no
34227 else
34228   $as_echo "$as_me: program exited with status $ac_status" >&5
34229 $as_echo "$as_me: failed program was:" >&5
34230 sed 's/^/| /' conftest.$ac_ext >&5
34231
34232 ( exit $ac_status )
34233 ac_cv_c_bigendian=yes
34234 fi
34235 rm -rf conftest.dSYM
34236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34237 fi
34238
34239
34240     fi
34241 fi
34242 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
34243 $as_echo "$ac_cv_c_bigendian" >&6; }
34244  case $ac_cv_c_bigendian in #(
34245    yes)
34246      cat >>confdefs.h <<\_ACEOF
34247 #define WORDS_BIGENDIAN 1
34248 _ACEOF
34249 ;; #(
34250    no)
34251       ;; #(
34252    universal)
34253
34254 cat >>confdefs.h <<\_ACEOF
34255 #define AC_APPLE_UNIVERSAL_BUILD 1
34256 _ACEOF
34257
34258      ;; #(
34259    *)
34260      { { $as_echo "$as_me:$LINENO: error: unknown endianness
34261  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
34262 $as_echo "$as_me: error: unknown endianness
34263  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
34264    { (exit 1); exit 1; }; } ;;
34265  esac
34266
34267
34268 # GCC_COMPILER is needed in the gnulib Makefile to silence errors
34269  if test "x$GCC" = "xyes"; then
34270   GCC_COMPILER_TRUE=
34271   GCC_COMPILER_FALSE='#'
34272 else
34273   GCC_COMPILER_TRUE='#'
34274   GCC_COMPILER_FALSE=
34275 fi
34276
34277
34278 #
34279 # Warnings
34280 #
34281
34282
34283
34284
34285     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wparentheses" >&5
34286 $as_echo_n "checking for gcc flag -Wparentheses... " >&6; }
34287     if test "x$GCC" = "xyes"; then
34288                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34289            $CC -v --help 2>&1) |
34290          $EGREP -- '[^[:alnum:]]-Wparentheses[^[:alnum:]-]' 2>&1 > /dev/null
34291                 if test $? -eq 0; then
34292             found_warning=yes
34293             { $as_echo "$as_me:$LINENO: result: yes" >&5
34294 $as_echo "yes" >&6; }
34295         else
34296             found_warning=no
34297             { $as_echo "$as_me:$LINENO: result: no" >&5
34298 $as_echo "no" >&6; }
34299         fi
34300     else
34301         found_warning=no
34302         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34303 $as_echo "no (not using gcc)" >&6; }
34304     fi
34305
34306     if test x"$found_warning" = x"yes"; then
34307         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
34308
34309
34310     else
34311         :
34312     fi
34313
34314
34315
34316
34317
34318
34319     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wdeclaration-after-statement" >&5
34320 $as_echo_n "checking for gcc flag -Wdeclaration-after-statement... " >&6; }
34321     if test "x$GCC" = "xyes"; then
34322                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34323            $CC -v --help 2>&1) |
34324          $EGREP -- '[^[:alnum:]]-Wdeclaration-after-statement[^[:alnum:]-]' 2>&1 > /dev/null
34325                 if test $? -eq 0; then
34326             found_warning=yes
34327             { $as_echo "$as_me:$LINENO: result: yes" >&5
34328 $as_echo "yes" >&6; }
34329         else
34330             found_warning=no
34331             { $as_echo "$as_me:$LINENO: result: no" >&5
34332 $as_echo "no" >&6; }
34333         fi
34334     else
34335         found_warning=no
34336         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34337 $as_echo "no (not using gcc)" >&6; }
34338     fi
34339
34340     if test x"$found_warning" = x"yes"; then
34341         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
34342
34343
34344     else
34345         :
34346     fi
34347
34348
34349
34350
34351
34352
34353     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wmissing-prototypes" >&5
34354 $as_echo_n "checking for gcc flag -Wmissing-prototypes... " >&6; }
34355     if test "x$GCC" = "xyes"; then
34356                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34357            $CC -v --help 2>&1) |
34358          $EGREP -- '[^[:alnum:]]-Wmissing-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
34359                 if test $? -eq 0; then
34360             found_warning=yes
34361             { $as_echo "$as_me:$LINENO: result: yes" >&5
34362 $as_echo "yes" >&6; }
34363         else
34364             found_warning=no
34365             { $as_echo "$as_me:$LINENO: result: no" >&5
34366 $as_echo "no" >&6; }
34367         fi
34368     else
34369         found_warning=no
34370         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34371 $as_echo "no (not using gcc)" >&6; }
34372     fi
34373
34374     if test x"$found_warning" = x"yes"; then
34375         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
34376
34377
34378     else
34379         :
34380     fi
34381
34382
34383
34384
34385
34386
34387     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wstrict-prototypes" >&5
34388 $as_echo_n "checking for gcc flag -Wstrict-prototypes... " >&6; }
34389     if test "x$GCC" = "xyes"; then
34390                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34391            $CC -v --help 2>&1) |
34392          $EGREP -- '[^[:alnum:]]-Wstrict-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
34393                 if test $? -eq 0; then
34394             found_warning=yes
34395             { $as_echo "$as_me:$LINENO: result: yes" >&5
34396 $as_echo "yes" >&6; }
34397         else
34398             found_warning=no
34399             { $as_echo "$as_me:$LINENO: result: no" >&5
34400 $as_echo "no" >&6; }
34401         fi
34402     else
34403         found_warning=no
34404         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34405 $as_echo "no (not using gcc)" >&6; }
34406     fi
34407
34408     if test x"$found_warning" = x"yes"; then
34409         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
34410
34411
34412     else
34413         :
34414     fi
34415
34416
34417
34418
34419
34420
34421     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wmissing-declarations" >&5
34422 $as_echo_n "checking for gcc flag -Wmissing-declarations... " >&6; }
34423     if test "x$GCC" = "xyes"; then
34424                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34425            $CC -v --help 2>&1) |
34426          $EGREP -- '[^[:alnum:]]-Wmissing-declarations[^[:alnum:]-]' 2>&1 > /dev/null
34427                 if test $? -eq 0; then
34428             found_warning=yes
34429             { $as_echo "$as_me:$LINENO: result: yes" >&5
34430 $as_echo "yes" >&6; }
34431         else
34432             found_warning=no
34433             { $as_echo "$as_me:$LINENO: result: no" >&5
34434 $as_echo "no" >&6; }
34435         fi
34436     else
34437         found_warning=no
34438         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34439 $as_echo "no (not using gcc)" >&6; }
34440     fi
34441
34442     if test x"$found_warning" = x"yes"; then
34443         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
34444
34445
34446     else
34447         :
34448     fi
34449
34450
34451
34452
34453
34454
34455     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wformat" >&5
34456 $as_echo_n "checking for gcc flag -Wformat... " >&6; }
34457     if test "x$GCC" = "xyes"; then
34458                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34459            $CC -v --help 2>&1) |
34460          $EGREP -- '[^[:alnum:]]-Wformat[^[:alnum:]-]' 2>&1 > /dev/null
34461                 if test $? -eq 0; then
34462             found_warning=yes
34463             { $as_echo "$as_me:$LINENO: result: yes" >&5
34464 $as_echo "yes" >&6; }
34465         else
34466             found_warning=no
34467             { $as_echo "$as_me:$LINENO: result: no" >&5
34468 $as_echo "no" >&6; }
34469         fi
34470     else
34471         found_warning=no
34472         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34473 $as_echo "no (not using gcc)" >&6; }
34474     fi
34475
34476     if test x"$found_warning" = x"yes"; then
34477         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
34478
34479
34480     else
34481         :
34482     fi
34483
34484
34485
34486
34487
34488
34489     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wformat-security" >&5
34490 $as_echo_n "checking for gcc flag -Wformat-security... " >&6; }
34491     if test "x$GCC" = "xyes"; then
34492                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34493            $CC -v --help 2>&1) |
34494          $EGREP -- '[^[:alnum:]]-Wformat-security[^[:alnum:]-]' 2>&1 > /dev/null
34495                 if test $? -eq 0; then
34496             found_warning=yes
34497             { $as_echo "$as_me:$LINENO: result: yes" >&5
34498 $as_echo "yes" >&6; }
34499         else
34500             found_warning=no
34501             { $as_echo "$as_me:$LINENO: result: no" >&5
34502 $as_echo "no" >&6; }
34503         fi
34504     else
34505         found_warning=no
34506         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34507 $as_echo "no (not using gcc)" >&6; }
34508     fi
34509
34510     if test x"$found_warning" = x"yes"; then
34511         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat-security"
34512
34513
34514     else
34515         :
34516     fi
34517
34518
34519
34520
34521
34522
34523     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wsign-compare" >&5
34524 $as_echo_n "checking for gcc flag -Wsign-compare... " >&6; }
34525     if test "x$GCC" = "xyes"; then
34526                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34527            $CC -v --help 2>&1) |
34528          $EGREP -- '[^[:alnum:]]-Wsign-compare[^[:alnum:]-]' 2>&1 > /dev/null
34529                 if test $? -eq 0; then
34530             found_warning=yes
34531             { $as_echo "$as_me:$LINENO: result: yes" >&5
34532 $as_echo "yes" >&6; }
34533         else
34534             found_warning=no
34535             { $as_echo "$as_me:$LINENO: result: no" >&5
34536 $as_echo "no" >&6; }
34537         fi
34538     else
34539         found_warning=no
34540         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34541 $as_echo "no (not using gcc)" >&6; }
34542     fi
34543
34544     if test x"$found_warning" = x"yes"; then
34545         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
34546
34547
34548     else
34549         :
34550     fi
34551
34552
34553
34554
34555
34556
34557     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wfloat-equal" >&5
34558 $as_echo_n "checking for gcc flag -Wfloat-equal... " >&6; }
34559     if test "x$GCC" = "xyes"; then
34560                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34561            $CC -v --help 2>&1) |
34562          $EGREP -- '[^[:alnum:]]-Wfloat-equal[^[:alnum:]-]' 2>&1 > /dev/null
34563                 if test $? -eq 0; then
34564             found_warning=yes
34565             { $as_echo "$as_me:$LINENO: result: yes" >&5
34566 $as_echo "yes" >&6; }
34567         else
34568             found_warning=no
34569             { $as_echo "$as_me:$LINENO: result: no" >&5
34570 $as_echo "no" >&6; }
34571         fi
34572     else
34573         found_warning=no
34574         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34575 $as_echo "no (not using gcc)" >&6; }
34576     fi
34577
34578     if test x"$found_warning" = x"yes"; then
34579         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
34580
34581
34582     else
34583         :
34584     fi
34585
34586
34587
34588
34589
34590
34591     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wold-style-definition" >&5
34592 $as_echo_n "checking for gcc flag -Wold-style-definition... " >&6; }
34593     if test "x$GCC" = "xyes"; then
34594                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34595            $CC -v --help 2>&1) |
34596          $EGREP -- '[^[:alnum:]]-Wold-style-definition[^[:alnum:]-]' 2>&1 > /dev/null
34597                 if test $? -eq 0; then
34598             found_warning=yes
34599             { $as_echo "$as_me:$LINENO: result: yes" >&5
34600 $as_echo "yes" >&6; }
34601         else
34602             found_warning=no
34603             { $as_echo "$as_me:$LINENO: result: no" >&5
34604 $as_echo "no" >&6; }
34605         fi
34606     else
34607         found_warning=no
34608         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34609 $as_echo "no (not using gcc)" >&6; }
34610     fi
34611
34612     if test x"$found_warning" = x"yes"; then
34613         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
34614
34615
34616     else
34617         :
34618     fi
34619
34620
34621
34622     # test for -W'warning', then add the 'no-' version.
34623
34624
34625
34626     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wstrict-aliasing" >&5
34627 $as_echo_n "checking for gcc flag -Wstrict-aliasing... " >&6; }
34628     if test "x$GCC" = "xyes"; then
34629                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34630            $CC -v --help 2>&1) |
34631          $EGREP -- '[^[:alnum:]]-Wstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
34632                 if test $? -eq 0; then
34633             found_warning=yes
34634             { $as_echo "$as_me:$LINENO: result: yes" >&5
34635 $as_echo "yes" >&6; }
34636         else
34637             found_warning=no
34638             { $as_echo "$as_me:$LINENO: result: no" >&5
34639 $as_echo "no" >&6; }
34640         fi
34641     else
34642         found_warning=no
34643         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34644 $as_echo "no (not using gcc)" >&6; }
34645     fi
34646
34647     if test x"$found_warning" = x"yes"; then
34648         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
34649
34650
34651     else
34652         :
34653     fi
34654
34655
34656
34657     # test for -W'warning', then add the 'no-' version.
34658
34659
34660
34661     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wunknown-pragmas" >&5
34662 $as_echo_n "checking for gcc flag -Wunknown-pragmas... " >&6; }
34663     if test "x$GCC" = "xyes"; then
34664                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34665            $CC -v --help 2>&1) |
34666          $EGREP -- '[^[:alnum:]]-Wunknown-pragmas[^[:alnum:]-]' 2>&1 > /dev/null
34667                 if test $? -eq 0; then
34668             found_warning=yes
34669             { $as_echo "$as_me:$LINENO: result: yes" >&5
34670 $as_echo "yes" >&6; }
34671         else
34672             found_warning=no
34673             { $as_echo "$as_me:$LINENO: result: no" >&5
34674 $as_echo "no" >&6; }
34675         fi
34676     else
34677         found_warning=no
34678         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34679 $as_echo "no (not using gcc)" >&6; }
34680     fi
34681
34682     if test x"$found_warning" = x"yes"; then
34683         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
34684
34685
34686     else
34687         :
34688     fi
34689
34690
34691
34692
34693 #
34694 # Libtool
34695 #
34696 # Check whether --enable-shared was given.
34697 if test "${enable_shared+set}" = set; then
34698   enableval=$enable_shared; p=${PACKAGE-default}
34699     case $enableval in
34700     yes) enable_shared=yes ;;
34701     no) enable_shared=no ;;
34702     *)
34703       enable_shared=no
34704       # Look at the argument we got.  We use all the common list separators.
34705       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
34706       for pkg in $enableval; do
34707         IFS="$lt_save_ifs"
34708         if test "X$pkg" = "X$p"; then
34709           enable_shared=yes
34710         fi
34711       done
34712       IFS="$lt_save_ifs"
34713       ;;
34714     esac
34715 else
34716   enable_shared=yes
34717 fi
34718
34719
34720 # Check whether --enable-static was given.
34721 if test "${enable_static+set}" = set; then
34722   enableval=$enable_static; p=${PACKAGE-default}
34723     case $enableval in
34724     yes) enable_static=yes ;;
34725     no) enable_static=no ;;
34726     *)
34727      enable_static=no
34728       # Look at the argument we got.  We use all the common list separators.
34729       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
34730       for pkg in $enableval; do
34731         IFS="$lt_save_ifs"
34732         if test "X$pkg" = "X$p"; then
34733           enable_static=yes
34734         fi
34735       done
34736       IFS="$lt_save_ifs"
34737       ;;
34738     esac
34739 else
34740   enable_static=yes
34741 fi
34742
34743
34744 # Check whether --enable-fast-install was given.
34745 if test "${enable_fast_install+set}" = set; then
34746   enableval=$enable_fast_install; p=${PACKAGE-default}
34747     case $enableval in
34748     yes) enable_fast_install=yes ;;
34749     no) enable_fast_install=no ;;
34750     *)
34751       enable_fast_install=no
34752       # Look at the argument we got.  We use all the common list separators.
34753       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
34754       for pkg in $enableval; do
34755         IFS="$lt_save_ifs"
34756         if test "X$pkg" = "X$p"; then
34757           enable_fast_install=yes
34758         fi
34759       done
34760       IFS="$lt_save_ifs"
34761       ;;
34762     esac
34763 else
34764   enable_fast_install=yes
34765 fi
34766
34767
34768 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
34769 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
34770 if test "${lt_cv_path_SED+set}" = set; then
34771   $as_echo_n "(cached) " >&6
34772 else
34773   # Loop through the user's path and test for sed and gsed.
34774 # Then use that list of sed's as ones to test for truncation.
34775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34776 for as_dir in $PATH
34777 do
34778   IFS=$as_save_IFS
34779   test -z "$as_dir" && as_dir=.
34780   for lt_ac_prog in sed gsed; do
34781     for ac_exec_ext in '' $ac_executable_extensions; do
34782       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
34783         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
34784       fi
34785     done
34786   done
34787 done
34788 lt_ac_max=0
34789 lt_ac_count=0
34790 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
34791 # along with /bin/sed that truncates output.
34792 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
34793   test ! -f $lt_ac_sed && continue
34794   cat /dev/null > conftest.in
34795   lt_ac_count=0
34796   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
34797   # Check for GNU sed and select it if it is found.
34798   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
34799     lt_cv_path_SED=$lt_ac_sed
34800     break
34801   fi
34802   while true; do
34803     cat conftest.in conftest.in >conftest.tmp
34804     mv conftest.tmp conftest.in
34805     cp conftest.in conftest.nl
34806     echo >>conftest.nl
34807     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
34808     cmp -s conftest.out conftest.nl || break
34809     # 10000 chars as input seems more than enough
34810     test $lt_ac_count -gt 10 && break
34811     lt_ac_count=`expr $lt_ac_count + 1`
34812     if test $lt_ac_count -gt $lt_ac_max; then
34813       lt_ac_max=$lt_ac_count
34814       lt_cv_path_SED=$lt_ac_sed
34815     fi
34816   done
34817 done
34818
34819 fi
34820
34821 SED=$lt_cv_path_SED
34822 { $as_echo "$as_me:$LINENO: result: $SED" >&5
34823 $as_echo "$SED" >&6; }
34824
34825
34826 # Check whether --with-gnu-ld was given.
34827 if test "${with_gnu_ld+set}" = set; then
34828   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
34829 else
34830   with_gnu_ld=no
34831 fi
34832
34833 ac_prog=ld
34834 if test "$GCC" = yes; then
34835   # Check if gcc -print-prog-name=ld gives a path.
34836   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
34837 $as_echo_n "checking for ld used by $CC... " >&6; }
34838   case $host in
34839   *-*-mingw*)
34840     # gcc leaves a trailing carriage return which upsets mingw
34841     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
34842   *)
34843     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
34844   esac
34845   case $ac_prog in
34846     # Accept absolute paths.
34847     [\\/]* | ?:[\\/]*)
34848       re_direlt='/[^/][^/]*/\.\./'
34849       # Canonicalize the pathname of ld
34850       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
34851       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
34852         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
34853       done
34854       test -z "$LD" && LD="$ac_prog"
34855       ;;
34856   "")
34857     # If it fails, then pretend we aren't using GCC.
34858     ac_prog=ld
34859     ;;
34860   *)
34861     # If it is relative, then search for the first ld in PATH.
34862     with_gnu_ld=unknown
34863     ;;
34864   esac
34865 elif test "$with_gnu_ld" = yes; then
34866   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
34867 $as_echo_n "checking for GNU ld... " >&6; }
34868 else
34869   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
34870 $as_echo_n "checking for non-GNU ld... " >&6; }
34871 fi
34872 if test "${lt_cv_path_LD+set}" = set; then
34873   $as_echo_n "(cached) " >&6
34874 else
34875   if test -z "$LD"; then
34876   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
34877   for ac_dir in $PATH; do
34878     IFS="$lt_save_ifs"
34879     test -z "$ac_dir" && ac_dir=.
34880     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
34881       lt_cv_path_LD="$ac_dir/$ac_prog"
34882       # Check to see if the program is GNU ld.  I'd rather use --version,
34883       # but apparently some variants of GNU ld only accept -v.
34884       # Break only if it was the GNU/non-GNU ld that we prefer.
34885       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
34886       *GNU* | *'with BFD'*)
34887         test "$with_gnu_ld" != no && break
34888         ;;
34889       *)
34890         test "$with_gnu_ld" != yes && break
34891         ;;
34892       esac
34893     fi
34894   done
34895   IFS="$lt_save_ifs"
34896 else
34897   lt_cv_path_LD="$LD" # Let the user override the test with a path.
34898 fi
34899 fi
34900
34901 LD="$lt_cv_path_LD"
34902 if test -n "$LD"; then
34903   { $as_echo "$as_me:$LINENO: result: $LD" >&5
34904 $as_echo "$LD" >&6; }
34905 else
34906   { $as_echo "$as_me:$LINENO: result: no" >&5
34907 $as_echo "no" >&6; }
34908 fi
34909 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
34910 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
34911    { (exit 1); exit 1; }; }
34912 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
34913 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
34914 if test "${lt_cv_prog_gnu_ld+set}" = set; then
34915   $as_echo_n "(cached) " >&6
34916 else
34917   # I'd rather use --version here, but apparently some GNU lds only accept -v.
34918 case `$LD -v 2>&1 </dev/null` in
34919 *GNU* | *'with BFD'*)
34920   lt_cv_prog_gnu_ld=yes
34921   ;;
34922 *)
34923   lt_cv_prog_gnu_ld=no
34924   ;;
34925 esac
34926 fi
34927 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
34928 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
34929 with_gnu_ld=$lt_cv_prog_gnu_ld
34930
34931
34932 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
34933 $as_echo_n "checking for $LD option to reload object files... " >&6; }
34934 if test "${lt_cv_ld_reload_flag+set}" = set; then
34935   $as_echo_n "(cached) " >&6
34936 else
34937   lt_cv_ld_reload_flag='-r'
34938 fi
34939 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
34940 $as_echo "$lt_cv_ld_reload_flag" >&6; }
34941 reload_flag=$lt_cv_ld_reload_flag
34942 case $reload_flag in
34943 "" | " "*) ;;
34944 *) reload_flag=" $reload_flag" ;;
34945 esac
34946 reload_cmds='$LD$reload_flag -o $output$reload_objs'
34947 case $host_os in
34948   darwin*)
34949     if test "$GCC" = yes; then
34950       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
34951     else
34952       reload_cmds='$LD$reload_flag -o $output$reload_objs'
34953     fi
34954     ;;
34955 esac
34956
34957 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
34958 $as_echo_n "checking for BSD-compatible nm... " >&6; }
34959 if test "${lt_cv_path_NM+set}" = set; then
34960   $as_echo_n "(cached) " >&6
34961 else
34962   if test -n "$NM"; then
34963   # Let the user override the test.
34964   lt_cv_path_NM="$NM"
34965 else
34966   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
34967   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
34968     IFS="$lt_save_ifs"
34969     test -z "$ac_dir" && ac_dir=.
34970     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
34971     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
34972       # Check to see if the nm accepts a BSD-compat flag.
34973       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
34974       #   nm: unknown option "B" ignored
34975       # Tru64's nm complains that /dev/null is an invalid object file
34976       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
34977       */dev/null* | *'Invalid file or object type'*)
34978         lt_cv_path_NM="$tmp_nm -B"
34979         break
34980         ;;
34981       *)
34982         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
34983         */dev/null*)
34984           lt_cv_path_NM="$tmp_nm -p"
34985           break
34986           ;;
34987         *)
34988           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
34989           continue # so that we can try to find one that supports BSD flags
34990           ;;
34991         esac
34992       esac
34993     fi
34994   done
34995   IFS="$lt_save_ifs"
34996   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
34997 fi
34998 fi
34999 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
35000 $as_echo "$lt_cv_path_NM" >&6; }
35001 NM="$lt_cv_path_NM"
35002
35003 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
35004 $as_echo_n "checking whether ln -s works... " >&6; }
35005 LN_S=$as_ln_s
35006 if test "$LN_S" = "ln -s"; then
35007   { $as_echo "$as_me:$LINENO: result: yes" >&5
35008 $as_echo "yes" >&6; }
35009 else
35010   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
35011 $as_echo "no, using $LN_S" >&6; }
35012 fi
35013
35014 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
35015 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
35016 if test "${lt_cv_deplibs_check_method+set}" = set; then
35017   $as_echo_n "(cached) " >&6
35018 else
35019   lt_cv_file_magic_cmd='$MAGIC_CMD'
35020 lt_cv_file_magic_test_file=
35021 lt_cv_deplibs_check_method='unknown'
35022 # Need to set the preceding variable on all platforms that support
35023 # interlibrary dependencies.
35024 # 'none' -- dependencies not supported.
35025 # `unknown' -- same as none, but documents that we really don't know.
35026 # 'pass_all' -- all dependencies passed with no checks.
35027 # 'test_compile' -- check by making test program.
35028 # 'file_magic [[regex]]' -- check by looking for files in library path
35029 # which responds to the $file_magic_cmd with a given extended regex.
35030 # If you have `file' or equivalent on your system and you're not sure
35031 # whether `pass_all' will *always* work, you probably want this one.
35032
35033 case $host_os in
35034 aix4* | aix5*)
35035   lt_cv_deplibs_check_method=pass_all
35036   ;;
35037
35038 beos*)
35039   lt_cv_deplibs_check_method=pass_all
35040   ;;
35041
35042 bsdi[45]*)
35043   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
35044   lt_cv_file_magic_cmd='/usr/bin/file -L'
35045   lt_cv_file_magic_test_file=/shlib/libc.so
35046   ;;
35047
35048 cygwin*)
35049   # func_win32_libid is a shell function defined in ltmain.sh
35050   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
35051   lt_cv_file_magic_cmd='func_win32_libid'
35052   ;;
35053
35054 mingw* | pw32*)
35055   # Base MSYS/MinGW do not provide the 'file' command needed by
35056   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
35057   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
35058   lt_cv_file_magic_cmd='$OBJDUMP -f'
35059   ;;
35060
35061 darwin* | rhapsody*)
35062   lt_cv_deplibs_check_method=pass_all
35063   ;;
35064
35065 freebsd* | kfreebsd*-gnu | dragonfly*)
35066   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
35067     case $host_cpu in
35068     i*86 )
35069       # Not sure whether the presence of OpenBSD here was a mistake.
35070       # Let's accept both of them until this is cleared up.
35071       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
35072       lt_cv_file_magic_cmd=/usr/bin/file
35073       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
35074       ;;
35075     esac
35076   else
35077     lt_cv_deplibs_check_method=pass_all
35078   fi
35079   ;;
35080
35081 gnu*)
35082   lt_cv_deplibs_check_method=pass_all
35083   ;;
35084
35085 hpux10.20* | hpux11*)
35086   lt_cv_file_magic_cmd=/usr/bin/file
35087   case $host_cpu in
35088   ia64*)
35089     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
35090     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
35091     ;;
35092   hppa*64*)
35093     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]'
35094     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
35095     ;;
35096   *)
35097     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
35098     lt_cv_file_magic_test_file=/usr/lib/libc.sl
35099     ;;
35100   esac
35101   ;;
35102
35103 irix5* | irix6* | nonstopux*)
35104   case $LD in
35105   *-32|*"-32 ") libmagic=32-bit;;
35106   *-n32|*"-n32 ") libmagic=N32;;
35107   *-64|*"-64 ") libmagic=64-bit;;
35108   *) libmagic=never-match;;
35109   esac
35110   lt_cv_deplibs_check_method=pass_all
35111   ;;
35112
35113 # This must be Linux ELF.
35114 linux*)
35115   lt_cv_deplibs_check_method=pass_all
35116   ;;
35117
35118 netbsd*)
35119   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
35120     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
35121   else
35122     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
35123   fi
35124   ;;
35125
35126 newos6*)
35127   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
35128   lt_cv_file_magic_cmd=/usr/bin/file
35129   lt_cv_file_magic_test_file=/usr/lib/libnls.so
35130   ;;
35131
35132 nto-qnx*)
35133   lt_cv_deplibs_check_method=unknown
35134   ;;
35135
35136 openbsd*)
35137   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
35138     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
35139   else
35140     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
35141   fi
35142   ;;
35143
35144 osf3* | osf4* | osf5*)
35145   lt_cv_deplibs_check_method=pass_all
35146   ;;
35147
35148 sco3.2v5*)
35149   lt_cv_deplibs_check_method=pass_all
35150   ;;
35151
35152 solaris*)
35153   lt_cv_deplibs_check_method=pass_all
35154   ;;
35155
35156 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
35157   case $host_vendor in
35158   motorola)
35159     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]'
35160     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
35161     ;;
35162   ncr)
35163     lt_cv_deplibs_check_method=pass_all
35164     ;;
35165   sequent)
35166     lt_cv_file_magic_cmd='/bin/file'
35167     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
35168     ;;
35169   sni)
35170     lt_cv_file_magic_cmd='/bin/file'
35171     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
35172     lt_cv_file_magic_test_file=/lib/libc.so
35173     ;;
35174   siemens)
35175     lt_cv_deplibs_check_method=pass_all
35176     ;;
35177   esac
35178   ;;
35179
35180 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
35181   lt_cv_deplibs_check_method=pass_all
35182   ;;
35183 esac
35184
35185 fi
35186 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
35187 $as_echo "$lt_cv_deplibs_check_method" >&6; }
35188 file_magic_cmd=$lt_cv_file_magic_cmd
35189 deplibs_check_method=$lt_cv_deplibs_check_method
35190 test -z "$deplibs_check_method" && deplibs_check_method=unknown
35191
35192
35193 # If no C compiler was specified, use CC.
35194 LTCC=${LTCC-"$CC"}
35195
35196 # Allow CC to be a program name with arguments.
35197 compiler=$CC
35198
35199 # Check whether --enable-libtool-lock was given.
35200 if test "${enable_libtool_lock+set}" = set; then
35201   enableval=$enable_libtool_lock;
35202 fi
35203
35204 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
35205
35206 # Some flags need to be propagated to the compiler or linker for good
35207 # libtool support.
35208 case $host in
35209 ia64-*-hpux*)
35210   # Find out which ABI we are using.
35211   echo 'int i;' > conftest.$ac_ext
35212   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35213   (eval $ac_compile) 2>&5
35214   ac_status=$?
35215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35216   (exit $ac_status); }; then
35217     case `/usr/bin/file conftest.$ac_objext` in
35218     *ELF-32*)
35219       HPUX_IA64_MODE="32"
35220       ;;
35221     *ELF-64*)
35222       HPUX_IA64_MODE="64"
35223       ;;
35224     esac
35225   fi
35226   rm -rf conftest*
35227   ;;
35228 *-*-irix6*)
35229   # Find out which ABI we are using.
35230   echo '#line 35230 "configure"' > conftest.$ac_ext
35231   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35232   (eval $ac_compile) 2>&5
35233   ac_status=$?
35234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35235   (exit $ac_status); }; then
35236    if test "$lt_cv_prog_gnu_ld" = yes; then
35237     case `/usr/bin/file conftest.$ac_objext` in
35238     *32-bit*)
35239       LD="${LD-ld} -melf32bsmip"
35240       ;;
35241     *N32*)
35242       LD="${LD-ld} -melf32bmipn32"
35243       ;;
35244     *64-bit*)
35245       LD="${LD-ld} -melf64bmip"
35246       ;;
35247     esac
35248    else
35249     case `/usr/bin/file conftest.$ac_objext` in
35250     *32-bit*)
35251       LD="${LD-ld} -32"
35252       ;;
35253     *N32*)
35254       LD="${LD-ld} -n32"
35255       ;;
35256     *64-bit*)
35257       LD="${LD-ld} -64"
35258       ;;
35259     esac
35260    fi
35261   fi
35262   rm -rf conftest*
35263   ;;
35264
35265 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
35266   # Find out which ABI we are using.
35267   echo 'int i;' > conftest.$ac_ext
35268   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35269   (eval $ac_compile) 2>&5
35270   ac_status=$?
35271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272   (exit $ac_status); }; then
35273     case `/usr/bin/file conftest.o` in
35274     *32-bit*)
35275       case $host in
35276         x86_64-*linux*)
35277           LD="${LD-ld} -m elf_i386"
35278           ;;
35279         ppc64-*linux*|powerpc64-*linux*)
35280           LD="${LD-ld} -m elf32ppclinux"
35281           ;;
35282         s390x-*linux*)
35283           LD="${LD-ld} -m elf_s390"
35284           ;;
35285         sparc64-*linux*)
35286           LD="${LD-ld} -m elf32_sparc"
35287           ;;
35288       esac
35289       ;;
35290     *64-bit*)
35291       case $host in
35292         x86_64-*linux*)
35293           LD="${LD-ld} -m elf_x86_64"
35294           ;;
35295         ppc*-*linux*|powerpc*-*linux*)
35296           LD="${LD-ld} -m elf64ppc"
35297           ;;
35298         s390*-*linux*)
35299           LD="${LD-ld} -m elf64_s390"
35300           ;;
35301         sparc*-*linux*)
35302           LD="${LD-ld} -m elf64_sparc"
35303           ;;
35304       esac
35305       ;;
35306     esac
35307   fi
35308   rm -rf conftest*
35309   ;;
35310
35311 *-*-sco3.2v5*)
35312   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
35313   SAVE_CFLAGS="$CFLAGS"
35314   CFLAGS="$CFLAGS -belf"
35315   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
35316 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
35317 if test "${lt_cv_cc_needs_belf+set}" = set; then
35318   $as_echo_n "(cached) " >&6
35319 else
35320   ac_ext=c
35321 ac_cpp='$CPP $CPPFLAGS'
35322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35325
35326      cat >conftest.$ac_ext <<_ACEOF
35327 /* confdefs.h.  */
35328 _ACEOF
35329 cat confdefs.h >>conftest.$ac_ext
35330 cat >>conftest.$ac_ext <<_ACEOF
35331 /* end confdefs.h.  */
35332
35333 int
35334 main ()
35335 {
35336
35337   ;
35338   return 0;
35339 }
35340 _ACEOF
35341 rm -f conftest.$ac_objext conftest$ac_exeext
35342 if { (ac_try="$ac_link"
35343 case "(($ac_try" in
35344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35345   *) ac_try_echo=$ac_try;;
35346 esac
35347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35348 $as_echo "$ac_try_echo") >&5
35349   (eval "$ac_link") 2>conftest.er1
35350   ac_status=$?
35351   grep -v '^ *+' conftest.er1 >conftest.err
35352   rm -f conftest.er1
35353   cat conftest.err >&5
35354   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35355   (exit $ac_status); } && {
35356          test -z "$ac_c_werror_flag" ||
35357          test ! -s conftest.err
35358        } && test -s conftest$ac_exeext && {
35359          test "$cross_compiling" = yes ||
35360          $as_test_x conftest$ac_exeext
35361        }; then
35362   lt_cv_cc_needs_belf=yes
35363 else
35364   $as_echo "$as_me: failed program was:" >&5
35365 sed 's/^/| /' conftest.$ac_ext >&5
35366
35367         lt_cv_cc_needs_belf=no
35368 fi
35369
35370 rm -rf conftest.dSYM
35371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35372       conftest$ac_exeext conftest.$ac_ext
35373      ac_ext=c
35374 ac_cpp='$CPP $CPPFLAGS'
35375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35378
35379 fi
35380 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
35381 $as_echo "$lt_cv_cc_needs_belf" >&6; }
35382   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
35383     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
35384     CFLAGS="$SAVE_CFLAGS"
35385   fi
35386   ;;
35387
35388 esac
35389
35390 need_locks="$enable_libtool_lock"
35391
35392
35393
35394 for ac_header in dlfcn.h
35395 do
35396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35398   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35399 $as_echo_n "checking for $ac_header... " >&6; }
35400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35401   $as_echo_n "(cached) " >&6
35402 fi
35403 ac_res=`eval 'as_val=${'$as_ac_Header'}
35404                  $as_echo "$as_val"'`
35405                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35406 $as_echo "$ac_res" >&6; }
35407 else
35408   # Is the header compilable?
35409 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35410 $as_echo_n "checking $ac_header usability... " >&6; }
35411 cat >conftest.$ac_ext <<_ACEOF
35412 /* confdefs.h.  */
35413 _ACEOF
35414 cat confdefs.h >>conftest.$ac_ext
35415 cat >>conftest.$ac_ext <<_ACEOF
35416 /* end confdefs.h.  */
35417 $ac_includes_default
35418 #include <$ac_header>
35419 _ACEOF
35420 rm -f conftest.$ac_objext
35421 if { (ac_try="$ac_compile"
35422 case "(($ac_try" in
35423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35424   *) ac_try_echo=$ac_try;;
35425 esac
35426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35427 $as_echo "$ac_try_echo") >&5
35428   (eval "$ac_compile") 2>conftest.er1
35429   ac_status=$?
35430   grep -v '^ *+' conftest.er1 >conftest.err
35431   rm -f conftest.er1
35432   cat conftest.err >&5
35433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35434   (exit $ac_status); } && {
35435          test -z "$ac_c_werror_flag" ||
35436          test ! -s conftest.err
35437        } && test -s conftest.$ac_objext; then
35438   ac_header_compiler=yes
35439 else
35440   $as_echo "$as_me: failed program was:" >&5
35441 sed 's/^/| /' conftest.$ac_ext >&5
35442
35443         ac_header_compiler=no
35444 fi
35445
35446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35447 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35448 $as_echo "$ac_header_compiler" >&6; }
35449
35450 # Is the header present?
35451 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35452 $as_echo_n "checking $ac_header presence... " >&6; }
35453 cat >conftest.$ac_ext <<_ACEOF
35454 /* confdefs.h.  */
35455 _ACEOF
35456 cat confdefs.h >>conftest.$ac_ext
35457 cat >>conftest.$ac_ext <<_ACEOF
35458 /* end confdefs.h.  */
35459 #include <$ac_header>
35460 _ACEOF
35461 if { (ac_try="$ac_cpp conftest.$ac_ext"
35462 case "(($ac_try" in
35463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35464   *) ac_try_echo=$ac_try;;
35465 esac
35466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35467 $as_echo "$ac_try_echo") >&5
35468   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35469   ac_status=$?
35470   grep -v '^ *+' conftest.er1 >conftest.err
35471   rm -f conftest.er1
35472   cat conftest.err >&5
35473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35474   (exit $ac_status); } >/dev/null && {
35475          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35476          test ! -s conftest.err
35477        }; then
35478   ac_header_preproc=yes
35479 else
35480   $as_echo "$as_me: failed program was:" >&5
35481 sed 's/^/| /' conftest.$ac_ext >&5
35482
35483   ac_header_preproc=no
35484 fi
35485
35486 rm -f conftest.err conftest.$ac_ext
35487 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35488 $as_echo "$ac_header_preproc" >&6; }
35489
35490 # So?  What about this header?
35491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35492   yes:no: )
35493     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35494 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35495     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35496 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35497     ac_header_preproc=yes
35498     ;;
35499   no:yes:* )
35500     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35501 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35502     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35503 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35504     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35505 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35506     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35507 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35508     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35509 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35510     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35511 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35512
35513     ;;
35514 esac
35515 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35516 $as_echo_n "checking for $ac_header... " >&6; }
35517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35518   $as_echo_n "(cached) " >&6
35519 else
35520   eval "$as_ac_Header=\$ac_header_preproc"
35521 fi
35522 ac_res=`eval 'as_val=${'$as_ac_Header'}
35523                  $as_echo "$as_val"'`
35524                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35525 $as_echo "$ac_res" >&6; }
35526
35527 fi
35528 as_val=`eval 'as_val=${'$as_ac_Header'}
35529                  $as_echo "$as_val"'`
35530    if test "x$as_val" = x""yes; then
35531   cat >>confdefs.h <<_ACEOF
35532 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35533 _ACEOF
35534
35535 fi
35536
35537 done
35538
35539 ac_ext=cpp
35540 ac_cpp='$CXXCPP $CPPFLAGS'
35541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35544 if test -z "$CXX"; then
35545   if test -n "$CCC"; then
35546     CXX=$CCC
35547   else
35548     if test -n "$ac_tool_prefix"; then
35549   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
35550   do
35551     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
35552 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
35553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35554 $as_echo_n "checking for $ac_word... " >&6; }
35555 if test "${ac_cv_prog_CXX+set}" = set; then
35556   $as_echo_n "(cached) " >&6
35557 else
35558   if test -n "$CXX"; then
35559   ac_cv_prog_CXX="$CXX" # Let the user override the test.
35560 else
35561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35562 for as_dir in $PATH
35563 do
35564   IFS=$as_save_IFS
35565   test -z "$as_dir" && as_dir=.
35566   for ac_exec_ext in '' $ac_executable_extensions; do
35567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35568     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
35569     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35570     break 2
35571   fi
35572 done
35573 done
35574 IFS=$as_save_IFS
35575
35576 fi
35577 fi
35578 CXX=$ac_cv_prog_CXX
35579 if test -n "$CXX"; then
35580   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
35581 $as_echo "$CXX" >&6; }
35582 else
35583   { $as_echo "$as_me:$LINENO: result: no" >&5
35584 $as_echo "no" >&6; }
35585 fi
35586
35587
35588     test -n "$CXX" && break
35589   done
35590 fi
35591 if test -z "$CXX"; then
35592   ac_ct_CXX=$CXX
35593   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
35594 do
35595   # Extract the first word of "$ac_prog", so it can be a program name with args.
35596 set dummy $ac_prog; ac_word=$2
35597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35598 $as_echo_n "checking for $ac_word... " >&6; }
35599 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
35600   $as_echo_n "(cached) " >&6
35601 else
35602   if test -n "$ac_ct_CXX"; then
35603   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
35604 else
35605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35606 for as_dir in $PATH
35607 do
35608   IFS=$as_save_IFS
35609   test -z "$as_dir" && as_dir=.
35610   for ac_exec_ext in '' $ac_executable_extensions; do
35611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35612     ac_cv_prog_ac_ct_CXX="$ac_prog"
35613     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35614     break 2
35615   fi
35616 done
35617 done
35618 IFS=$as_save_IFS
35619
35620 fi
35621 fi
35622 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
35623 if test -n "$ac_ct_CXX"; then
35624   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
35625 $as_echo "$ac_ct_CXX" >&6; }
35626 else
35627   { $as_echo "$as_me:$LINENO: result: no" >&5
35628 $as_echo "no" >&6; }
35629 fi
35630
35631
35632   test -n "$ac_ct_CXX" && break
35633 done
35634
35635   if test "x$ac_ct_CXX" = x; then
35636     CXX="g++"
35637   else
35638     case $cross_compiling:$ac_tool_warned in
35639 yes:)
35640 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
35641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
35642 ac_tool_warned=yes ;;
35643 esac
35644     CXX=$ac_ct_CXX
35645   fi
35646 fi
35647
35648   fi
35649 fi
35650 # Provide some information about the compiler.
35651 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
35652 set X $ac_compile
35653 ac_compiler=$2
35654 { (ac_try="$ac_compiler --version >&5"
35655 case "(($ac_try" in
35656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35657   *) ac_try_echo=$ac_try;;
35658 esac
35659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35660 $as_echo "$ac_try_echo") >&5
35661   (eval "$ac_compiler --version >&5") 2>&5
35662   ac_status=$?
35663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664   (exit $ac_status); }
35665 { (ac_try="$ac_compiler -v >&5"
35666 case "(($ac_try" in
35667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35668   *) ac_try_echo=$ac_try;;
35669 esac
35670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35671 $as_echo "$ac_try_echo") >&5
35672   (eval "$ac_compiler -v >&5") 2>&5
35673   ac_status=$?
35674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35675   (exit $ac_status); }
35676 { (ac_try="$ac_compiler -V >&5"
35677 case "(($ac_try" in
35678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35679   *) ac_try_echo=$ac_try;;
35680 esac
35681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35682 $as_echo "$ac_try_echo") >&5
35683   (eval "$ac_compiler -V >&5") 2>&5
35684   ac_status=$?
35685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686   (exit $ac_status); }
35687
35688 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
35689 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
35690 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
35691   $as_echo_n "(cached) " >&6
35692 else
35693   cat >conftest.$ac_ext <<_ACEOF
35694 /* confdefs.h.  */
35695 _ACEOF
35696 cat confdefs.h >>conftest.$ac_ext
35697 cat >>conftest.$ac_ext <<_ACEOF
35698 /* end confdefs.h.  */
35699
35700 int
35701 main ()
35702 {
35703 #ifndef __GNUC__
35704        choke me
35705 #endif
35706
35707   ;
35708   return 0;
35709 }
35710 _ACEOF
35711 rm -f conftest.$ac_objext
35712 if { (ac_try="$ac_compile"
35713 case "(($ac_try" in
35714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35715   *) ac_try_echo=$ac_try;;
35716 esac
35717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35718 $as_echo "$ac_try_echo") >&5
35719   (eval "$ac_compile") 2>conftest.er1
35720   ac_status=$?
35721   grep -v '^ *+' conftest.er1 >conftest.err
35722   rm -f conftest.er1
35723   cat conftest.err >&5
35724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725   (exit $ac_status); } && {
35726          test -z "$ac_cxx_werror_flag" ||
35727          test ! -s conftest.err
35728        } && test -s conftest.$ac_objext; then
35729   ac_compiler_gnu=yes
35730 else
35731   $as_echo "$as_me: failed program was:" >&5
35732 sed 's/^/| /' conftest.$ac_ext >&5
35733
35734         ac_compiler_gnu=no
35735 fi
35736
35737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35738 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
35739
35740 fi
35741 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
35742 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
35743 if test $ac_compiler_gnu = yes; then
35744   GXX=yes
35745 else
35746   GXX=
35747 fi
35748 ac_test_CXXFLAGS=${CXXFLAGS+set}
35749 ac_save_CXXFLAGS=$CXXFLAGS
35750 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
35751 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
35752 if test "${ac_cv_prog_cxx_g+set}" = set; then
35753   $as_echo_n "(cached) " >&6
35754 else
35755   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
35756    ac_cxx_werror_flag=yes
35757    ac_cv_prog_cxx_g=no
35758    CXXFLAGS="-g"
35759    cat >conftest.$ac_ext <<_ACEOF
35760 /* confdefs.h.  */
35761 _ACEOF
35762 cat confdefs.h >>conftest.$ac_ext
35763 cat >>conftest.$ac_ext <<_ACEOF
35764 /* end confdefs.h.  */
35765
35766 int
35767 main ()
35768 {
35769
35770   ;
35771   return 0;
35772 }
35773 _ACEOF
35774 rm -f conftest.$ac_objext
35775 if { (ac_try="$ac_compile"
35776 case "(($ac_try" in
35777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35778   *) ac_try_echo=$ac_try;;
35779 esac
35780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35781 $as_echo "$ac_try_echo") >&5
35782   (eval "$ac_compile") 2>conftest.er1
35783   ac_status=$?
35784   grep -v '^ *+' conftest.er1 >conftest.err
35785   rm -f conftest.er1
35786   cat conftest.err >&5
35787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788   (exit $ac_status); } && {
35789          test -z "$ac_cxx_werror_flag" ||
35790          test ! -s conftest.err
35791        } && test -s conftest.$ac_objext; then
35792   ac_cv_prog_cxx_g=yes
35793 else
35794   $as_echo "$as_me: failed program was:" >&5
35795 sed 's/^/| /' conftest.$ac_ext >&5
35796
35797         CXXFLAGS=""
35798       cat >conftest.$ac_ext <<_ACEOF
35799 /* confdefs.h.  */
35800 _ACEOF
35801 cat confdefs.h >>conftest.$ac_ext
35802 cat >>conftest.$ac_ext <<_ACEOF
35803 /* end confdefs.h.  */
35804
35805 int
35806 main ()
35807 {
35808
35809   ;
35810   return 0;
35811 }
35812 _ACEOF
35813 rm -f conftest.$ac_objext
35814 if { (ac_try="$ac_compile"
35815 case "(($ac_try" in
35816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35817   *) ac_try_echo=$ac_try;;
35818 esac
35819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35820 $as_echo "$ac_try_echo") >&5
35821   (eval "$ac_compile") 2>conftest.er1
35822   ac_status=$?
35823   grep -v '^ *+' conftest.er1 >conftest.err
35824   rm -f conftest.er1
35825   cat conftest.err >&5
35826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35827   (exit $ac_status); } && {
35828          test -z "$ac_cxx_werror_flag" ||
35829          test ! -s conftest.err
35830        } && test -s conftest.$ac_objext; then
35831   :
35832 else
35833   $as_echo "$as_me: failed program was:" >&5
35834 sed 's/^/| /' conftest.$ac_ext >&5
35835
35836         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
35837          CXXFLAGS="-g"
35838          cat >conftest.$ac_ext <<_ACEOF
35839 /* confdefs.h.  */
35840 _ACEOF
35841 cat confdefs.h >>conftest.$ac_ext
35842 cat >>conftest.$ac_ext <<_ACEOF
35843 /* end confdefs.h.  */
35844
35845 int
35846 main ()
35847 {
35848
35849   ;
35850   return 0;
35851 }
35852 _ACEOF
35853 rm -f conftest.$ac_objext
35854 if { (ac_try="$ac_compile"
35855 case "(($ac_try" in
35856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35857   *) ac_try_echo=$ac_try;;
35858 esac
35859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35860 $as_echo "$ac_try_echo") >&5
35861   (eval "$ac_compile") 2>conftest.er1
35862   ac_status=$?
35863   grep -v '^ *+' conftest.er1 >conftest.err
35864   rm -f conftest.er1
35865   cat conftest.err >&5
35866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35867   (exit $ac_status); } && {
35868          test -z "$ac_cxx_werror_flag" ||
35869          test ! -s conftest.err
35870        } && test -s conftest.$ac_objext; then
35871   ac_cv_prog_cxx_g=yes
35872 else
35873   $as_echo "$as_me: failed program was:" >&5
35874 sed 's/^/| /' conftest.$ac_ext >&5
35875
35876
35877 fi
35878
35879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35880 fi
35881
35882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35883 fi
35884
35885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35886    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
35887 fi
35888 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
35889 $as_echo "$ac_cv_prog_cxx_g" >&6; }
35890 if test "$ac_test_CXXFLAGS" = set; then
35891   CXXFLAGS=$ac_save_CXXFLAGS
35892 elif test $ac_cv_prog_cxx_g = yes; then
35893   if test "$GXX" = yes; then
35894     CXXFLAGS="-g -O2"
35895   else
35896     CXXFLAGS="-g"
35897   fi
35898 else
35899   if test "$GXX" = yes; then
35900     CXXFLAGS="-O2"
35901   else
35902     CXXFLAGS=
35903   fi
35904 fi
35905 ac_ext=cpp
35906 ac_cpp='$CXXCPP $CPPFLAGS'
35907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35910
35911 depcc="$CXX"  am_compiler_list=
35912
35913 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
35914 $as_echo_n "checking dependency style of $depcc... " >&6; }
35915 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
35916   $as_echo_n "(cached) " >&6
35917 else
35918   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
35919   # We make a subdir and do the tests there.  Otherwise we can end up
35920   # making bogus files that we don't know about and never remove.  For
35921   # instance it was reported that on HP-UX the gcc test will end up
35922   # making a dummy file named `D' -- because `-MD' means `put the output
35923   # in D'.
35924   mkdir conftest.dir
35925   # Copy depcomp to subdir because otherwise we won't find it if we're
35926   # using a relative directory.
35927   cp "$am_depcomp" conftest.dir
35928   cd conftest.dir
35929   # We will build objects and dependencies in a subdirectory because
35930   # it helps to detect inapplicable dependency modes.  For instance
35931   # both Tru64's cc and ICC support -MD to output dependencies as a
35932   # side effect of compilation, but ICC will put the dependencies in
35933   # the current directory while Tru64 will put them in the object
35934   # directory.
35935   mkdir sub
35936
35937   am_cv_CXX_dependencies_compiler_type=none
35938   if test "$am_compiler_list" = ""; then
35939      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
35940   fi
35941   am__universal=false
35942   case " $depcc " in #(
35943      *\ -arch\ *\ -arch\ *) am__universal=true ;;
35944      esac
35945
35946   for depmode in $am_compiler_list; do
35947     # Setup a source with many dependencies, because some compilers
35948     # like to wrap large dependency lists on column 80 (with \), and
35949     # we should not choose a depcomp mode which is confused by this.
35950     #
35951     # We need to recreate these files for each test, as the compiler may
35952     # overwrite some of them when testing with obscure command lines.
35953     # This happens at least with the AIX C compiler.
35954     : > sub/conftest.c
35955     for i in 1 2 3 4 5 6; do
35956       echo '#include "conftst'$i'.h"' >> sub/conftest.c
35957       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
35958       # Solaris 8's {/usr,}/bin/sh.
35959       touch sub/conftst$i.h
35960     done
35961     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
35962
35963     # We check with `-c' and `-o' for the sake of the "dashmstdout"
35964     # mode.  It turns out that the SunPro C++ compiler does not properly
35965     # handle `-M -o', and we need to detect this.  Also, some Intel
35966     # versions had trouble with output in subdirs
35967     am__obj=sub/conftest.${OBJEXT-o}
35968     am__minus_obj="-o $am__obj"
35969     case $depmode in
35970     gcc)
35971       # This depmode causes a compiler race in universal mode.
35972       test "$am__universal" = false || continue
35973       ;;
35974     nosideeffect)
35975       # after this tag, mechanisms are not by side-effect, so they'll
35976       # only be used when explicitly requested
35977       if test "x$enable_dependency_tracking" = xyes; then
35978         continue
35979       else
35980         break
35981       fi
35982       ;;
35983     msvisualcpp | msvcmsys)
35984       # This compiler won't grok `-c -o', but also, the minuso test has
35985       # not run yet.  These depmodes are late enough in the game, and
35986       # so weak that their functioning should not be impacted.
35987       am__obj=conftest.${OBJEXT-o}
35988       am__minus_obj=
35989       ;;
35990     none) break ;;
35991     esac
35992     if depmode=$depmode \
35993        source=sub/conftest.c object=$am__obj \
35994        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
35995        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
35996          >/dev/null 2>conftest.err &&
35997        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
35998        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
35999        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
36000        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
36001       # icc doesn't choke on unknown options, it will just issue warnings
36002       # or remarks (even with -Werror).  So we grep stderr for any message
36003       # that says an option was ignored or not supported.
36004       # When given -MP, icc 7.0 and 7.1 complain thusly:
36005       #   icc: Command line warning: ignoring option '-M'; no argument required
36006       # The diagnosis changed in icc 8.0:
36007       #   icc: Command line remark: option '-MP' not supported
36008       if (grep 'ignoring option' conftest.err ||
36009           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
36010         am_cv_CXX_dependencies_compiler_type=$depmode
36011         break
36012       fi
36013     fi
36014   done
36015
36016   cd ..
36017   rm -rf conftest.dir
36018 else
36019   am_cv_CXX_dependencies_compiler_type=none
36020 fi
36021
36022 fi
36023 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
36024 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
36025 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
36026
36027  if
36028   test "x$enable_dependency_tracking" != xno \
36029   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
36030   am__fastdepCXX_TRUE=
36031   am__fastdepCXX_FALSE='#'
36032 else
36033   am__fastdepCXX_TRUE='#'
36034   am__fastdepCXX_FALSE=
36035 fi
36036
36037
36038
36039
36040 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
36041     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
36042     (test "X$CXX" != "Xg++"))) ; then
36043   ac_ext=cpp
36044 ac_cpp='$CXXCPP $CPPFLAGS'
36045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36048 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
36049 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
36050 if test -z "$CXXCPP"; then
36051   if test "${ac_cv_prog_CXXCPP+set}" = set; then
36052   $as_echo_n "(cached) " >&6
36053 else
36054       # Double quotes because CXXCPP needs to be expanded
36055     for CXXCPP in "$CXX -E" "/lib/cpp"
36056     do
36057       ac_preproc_ok=false
36058 for ac_cxx_preproc_warn_flag in '' yes
36059 do
36060   # Use a header file that comes with gcc, so configuring glibc
36061   # with a fresh cross-compiler works.
36062   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36063   # <limits.h> exists even on freestanding compilers.
36064   # On the NeXT, cc -E runs the code through the compiler's parser,
36065   # not just through cpp. "Syntax error" is here to catch this case.
36066   cat >conftest.$ac_ext <<_ACEOF
36067 /* confdefs.h.  */
36068 _ACEOF
36069 cat confdefs.h >>conftest.$ac_ext
36070 cat >>conftest.$ac_ext <<_ACEOF
36071 /* end confdefs.h.  */
36072 #ifdef __STDC__
36073 # include <limits.h>
36074 #else
36075 # include <assert.h>
36076 #endif
36077                      Syntax error
36078 _ACEOF
36079 if { (ac_try="$ac_cpp conftest.$ac_ext"
36080 case "(($ac_try" in
36081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36082   *) ac_try_echo=$ac_try;;
36083 esac
36084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36085 $as_echo "$ac_try_echo") >&5
36086   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36087   ac_status=$?
36088   grep -v '^ *+' conftest.er1 >conftest.err
36089   rm -f conftest.er1
36090   cat conftest.err >&5
36091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36092   (exit $ac_status); } >/dev/null && {
36093          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
36094          test ! -s conftest.err
36095        }; then
36096   :
36097 else
36098   $as_echo "$as_me: failed program was:" >&5
36099 sed 's/^/| /' conftest.$ac_ext >&5
36100
36101   # Broken: fails on valid input.
36102 continue
36103 fi
36104
36105 rm -f conftest.err conftest.$ac_ext
36106
36107   # OK, works on sane cases.  Now check whether nonexistent headers
36108   # can be detected and how.
36109   cat >conftest.$ac_ext <<_ACEOF
36110 /* confdefs.h.  */
36111 _ACEOF
36112 cat confdefs.h >>conftest.$ac_ext
36113 cat >>conftest.$ac_ext <<_ACEOF
36114 /* end confdefs.h.  */
36115 #include <ac_nonexistent.h>
36116 _ACEOF
36117 if { (ac_try="$ac_cpp conftest.$ac_ext"
36118 case "(($ac_try" in
36119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36120   *) ac_try_echo=$ac_try;;
36121 esac
36122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36123 $as_echo "$ac_try_echo") >&5
36124   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36125   ac_status=$?
36126   grep -v '^ *+' conftest.er1 >conftest.err
36127   rm -f conftest.er1
36128   cat conftest.err >&5
36129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36130   (exit $ac_status); } >/dev/null && {
36131          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
36132          test ! -s conftest.err
36133        }; then
36134   # Broken: success on invalid input.
36135 continue
36136 else
36137   $as_echo "$as_me: failed program was:" >&5
36138 sed 's/^/| /' conftest.$ac_ext >&5
36139
36140   # Passes both tests.
36141 ac_preproc_ok=:
36142 break
36143 fi
36144
36145 rm -f conftest.err conftest.$ac_ext
36146
36147 done
36148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
36149 rm -f conftest.err conftest.$ac_ext
36150 if $ac_preproc_ok; then
36151   break
36152 fi
36153
36154     done
36155     ac_cv_prog_CXXCPP=$CXXCPP
36156
36157 fi
36158   CXXCPP=$ac_cv_prog_CXXCPP
36159 else
36160   ac_cv_prog_CXXCPP=$CXXCPP
36161 fi
36162 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
36163 $as_echo "$CXXCPP" >&6; }
36164 ac_preproc_ok=false
36165 for ac_cxx_preproc_warn_flag in '' yes
36166 do
36167   # Use a header file that comes with gcc, so configuring glibc
36168   # with a fresh cross-compiler works.
36169   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36170   # <limits.h> exists even on freestanding compilers.
36171   # On the NeXT, cc -E runs the code through the compiler's parser,
36172   # not just through cpp. "Syntax error" is here to catch this case.
36173   cat >conftest.$ac_ext <<_ACEOF
36174 /* confdefs.h.  */
36175 _ACEOF
36176 cat confdefs.h >>conftest.$ac_ext
36177 cat >>conftest.$ac_ext <<_ACEOF
36178 /* end confdefs.h.  */
36179 #ifdef __STDC__
36180 # include <limits.h>
36181 #else
36182 # include <assert.h>
36183 #endif
36184                      Syntax error
36185 _ACEOF
36186 if { (ac_try="$ac_cpp conftest.$ac_ext"
36187 case "(($ac_try" in
36188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36189   *) ac_try_echo=$ac_try;;
36190 esac
36191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36192 $as_echo "$ac_try_echo") >&5
36193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36194   ac_status=$?
36195   grep -v '^ *+' conftest.er1 >conftest.err
36196   rm -f conftest.er1
36197   cat conftest.err >&5
36198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36199   (exit $ac_status); } >/dev/null && {
36200          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
36201          test ! -s conftest.err
36202        }; then
36203   :
36204 else
36205   $as_echo "$as_me: failed program was:" >&5
36206 sed 's/^/| /' conftest.$ac_ext >&5
36207
36208   # Broken: fails on valid input.
36209 continue
36210 fi
36211
36212 rm -f conftest.err conftest.$ac_ext
36213
36214   # OK, works on sane cases.  Now check whether nonexistent headers
36215   # can be detected and how.
36216   cat >conftest.$ac_ext <<_ACEOF
36217 /* confdefs.h.  */
36218 _ACEOF
36219 cat confdefs.h >>conftest.$ac_ext
36220 cat >>conftest.$ac_ext <<_ACEOF
36221 /* end confdefs.h.  */
36222 #include <ac_nonexistent.h>
36223 _ACEOF
36224 if { (ac_try="$ac_cpp conftest.$ac_ext"
36225 case "(($ac_try" in
36226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36227   *) ac_try_echo=$ac_try;;
36228 esac
36229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36230 $as_echo "$ac_try_echo") >&5
36231   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36232   ac_status=$?
36233   grep -v '^ *+' conftest.er1 >conftest.err
36234   rm -f conftest.er1
36235   cat conftest.err >&5
36236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237   (exit $ac_status); } >/dev/null && {
36238          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
36239          test ! -s conftest.err
36240        }; then
36241   # Broken: success on invalid input.
36242 continue
36243 else
36244   $as_echo "$as_me: failed program was:" >&5
36245 sed 's/^/| /' conftest.$ac_ext >&5
36246
36247   # Passes both tests.
36248 ac_preproc_ok=:
36249 break
36250 fi
36251
36252 rm -f conftest.err conftest.$ac_ext
36253
36254 done
36255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
36256 rm -f conftest.err conftest.$ac_ext
36257 if $ac_preproc_ok; then
36258   :
36259 else
36260   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36262 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
36263 See \`config.log' for more details." >&5
36264 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
36265 See \`config.log' for more details." >&2;}
36266    { (exit 1); exit 1; }; }; }
36267 fi
36268
36269 ac_ext=cpp
36270 ac_cpp='$CXXCPP $CPPFLAGS'
36271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36274
36275 fi
36276
36277
36278 ac_ext=f
36279 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
36280 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36281 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
36282 if test -n "$ac_tool_prefix"; then
36283   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
36284   do
36285     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
36286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
36287 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36288 $as_echo_n "checking for $ac_word... " >&6; }
36289 if test "${ac_cv_prog_F77+set}" = set; then
36290   $as_echo_n "(cached) " >&6
36291 else
36292   if test -n "$F77"; then
36293   ac_cv_prog_F77="$F77" # Let the user override the test.
36294 else
36295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36296 for as_dir in $PATH
36297 do
36298   IFS=$as_save_IFS
36299   test -z "$as_dir" && as_dir=.
36300   for ac_exec_ext in '' $ac_executable_extensions; do
36301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36302     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
36303     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36304     break 2
36305   fi
36306 done
36307 done
36308 IFS=$as_save_IFS
36309
36310 fi
36311 fi
36312 F77=$ac_cv_prog_F77
36313 if test -n "$F77"; then
36314   { $as_echo "$as_me:$LINENO: result: $F77" >&5
36315 $as_echo "$F77" >&6; }
36316 else
36317   { $as_echo "$as_me:$LINENO: result: no" >&5
36318 $as_echo "no" >&6; }
36319 fi
36320
36321
36322     test -n "$F77" && break
36323   done
36324 fi
36325 if test -z "$F77"; then
36326   ac_ct_F77=$F77
36327   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
36328 do
36329   # Extract the first word of "$ac_prog", so it can be a program name with args.
36330 set dummy $ac_prog; ac_word=$2
36331 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36332 $as_echo_n "checking for $ac_word... " >&6; }
36333 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
36334   $as_echo_n "(cached) " >&6
36335 else
36336   if test -n "$ac_ct_F77"; then
36337   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
36338 else
36339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36340 for as_dir in $PATH
36341 do
36342   IFS=$as_save_IFS
36343   test -z "$as_dir" && as_dir=.
36344   for ac_exec_ext in '' $ac_executable_extensions; do
36345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36346     ac_cv_prog_ac_ct_F77="$ac_prog"
36347     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36348     break 2
36349   fi
36350 done
36351 done
36352 IFS=$as_save_IFS
36353
36354 fi
36355 fi
36356 ac_ct_F77=$ac_cv_prog_ac_ct_F77
36357 if test -n "$ac_ct_F77"; then
36358   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
36359 $as_echo "$ac_ct_F77" >&6; }
36360 else
36361   { $as_echo "$as_me:$LINENO: result: no" >&5
36362 $as_echo "no" >&6; }
36363 fi
36364
36365
36366   test -n "$ac_ct_F77" && break
36367 done
36368
36369   if test "x$ac_ct_F77" = x; then
36370     F77=""
36371   else
36372     case $cross_compiling:$ac_tool_warned in
36373 yes:)
36374 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
36375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36376 ac_tool_warned=yes ;;
36377 esac
36378     F77=$ac_ct_F77
36379   fi
36380 fi
36381
36382
36383 # Provide some information about the compiler.
36384 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
36385 set X $ac_compile
36386 ac_compiler=$2
36387 { (ac_try="$ac_compiler --version >&5"
36388 case "(($ac_try" in
36389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36390   *) ac_try_echo=$ac_try;;
36391 esac
36392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36393 $as_echo "$ac_try_echo") >&5
36394   (eval "$ac_compiler --version >&5") 2>&5
36395   ac_status=$?
36396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36397   (exit $ac_status); }
36398 { (ac_try="$ac_compiler -v >&5"
36399 case "(($ac_try" in
36400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36401   *) ac_try_echo=$ac_try;;
36402 esac
36403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36404 $as_echo "$ac_try_echo") >&5
36405   (eval "$ac_compiler -v >&5") 2>&5
36406   ac_status=$?
36407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36408   (exit $ac_status); }
36409 { (ac_try="$ac_compiler -V >&5"
36410 case "(($ac_try" in
36411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36412   *) ac_try_echo=$ac_try;;
36413 esac
36414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36415 $as_echo "$ac_try_echo") >&5
36416   (eval "$ac_compiler -V >&5") 2>&5
36417   ac_status=$?
36418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36419   (exit $ac_status); }
36420 rm -f a.out
36421
36422 # If we don't use `.F' as extension, the preprocessor is not run on the
36423 # input file.  (Note that this only needs to work for GNU compilers.)
36424 ac_save_ext=$ac_ext
36425 ac_ext=F
36426 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
36427 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
36428 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
36429   $as_echo_n "(cached) " >&6
36430 else
36431   cat >conftest.$ac_ext <<_ACEOF
36432       program main
36433 #ifndef __GNUC__
36434        choke me
36435 #endif
36436
36437       end
36438 _ACEOF
36439 rm -f conftest.$ac_objext
36440 if { (ac_try="$ac_compile"
36441 case "(($ac_try" in
36442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36443   *) ac_try_echo=$ac_try;;
36444 esac
36445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36446 $as_echo "$ac_try_echo") >&5
36447   (eval "$ac_compile") 2>conftest.er1
36448   ac_status=$?
36449   grep -v '^ *+' conftest.er1 >conftest.err
36450   rm -f conftest.er1
36451   cat conftest.err >&5
36452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36453   (exit $ac_status); } && {
36454          test -z "$ac_f77_werror_flag" ||
36455          test ! -s conftest.err
36456        } && test -s conftest.$ac_objext; then
36457   ac_compiler_gnu=yes
36458 else
36459   $as_echo "$as_me: failed program was:" >&5
36460 sed 's/^/| /' conftest.$ac_ext >&5
36461
36462         ac_compiler_gnu=no
36463 fi
36464
36465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36466 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
36467
36468 fi
36469 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
36470 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
36471 ac_ext=$ac_save_ext
36472 ac_test_FFLAGS=${FFLAGS+set}
36473 ac_save_FFLAGS=$FFLAGS
36474 FFLAGS=
36475 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
36476 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
36477 if test "${ac_cv_prog_f77_g+set}" = set; then
36478   $as_echo_n "(cached) " >&6
36479 else
36480   FFLAGS=-g
36481 cat >conftest.$ac_ext <<_ACEOF
36482       program main
36483
36484       end
36485 _ACEOF
36486 rm -f conftest.$ac_objext
36487 if { (ac_try="$ac_compile"
36488 case "(($ac_try" in
36489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36490   *) ac_try_echo=$ac_try;;
36491 esac
36492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36493 $as_echo "$ac_try_echo") >&5
36494   (eval "$ac_compile") 2>conftest.er1
36495   ac_status=$?
36496   grep -v '^ *+' conftest.er1 >conftest.err
36497   rm -f conftest.er1
36498   cat conftest.err >&5
36499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36500   (exit $ac_status); } && {
36501          test -z "$ac_f77_werror_flag" ||
36502          test ! -s conftest.err
36503        } && test -s conftest.$ac_objext; then
36504   ac_cv_prog_f77_g=yes
36505 else
36506   $as_echo "$as_me: failed program was:" >&5
36507 sed 's/^/| /' conftest.$ac_ext >&5
36508
36509         ac_cv_prog_f77_g=no
36510 fi
36511
36512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36513
36514 fi
36515 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
36516 $as_echo "$ac_cv_prog_f77_g" >&6; }
36517 if test "$ac_test_FFLAGS" = set; then
36518   FFLAGS=$ac_save_FFLAGS
36519 elif test $ac_cv_prog_f77_g = yes; then
36520   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
36521     FFLAGS="-g -O2"
36522   else
36523     FFLAGS="-g"
36524   fi
36525 else
36526   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
36527     FFLAGS="-O2"
36528   else
36529     FFLAGS=
36530   fi
36531 fi
36532
36533 if test $ac_compiler_gnu = yes; then
36534   G77=yes
36535 else
36536   G77=
36537 fi
36538 ac_ext=c
36539 ac_cpp='$CPP $CPPFLAGS'
36540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36543
36544
36545
36546 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
36547
36548 # find the maximum length of command line arguments
36549 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
36550 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
36551 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
36552   $as_echo_n "(cached) " >&6
36553 else
36554     i=0
36555   teststring="ABCD"
36556
36557   case $build_os in
36558   msdosdjgpp*)
36559     # On DJGPP, this test can blow up pretty badly due to problems in libc
36560     # (any single argument exceeding 2000 bytes causes a buffer overrun
36561     # during glob expansion).  Even if it were fixed, the result of this
36562     # check would be larger than it should be.
36563     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
36564     ;;
36565
36566   gnu*)
36567     # Under GNU Hurd, this test is not required because there is
36568     # no limit to the length of command line arguments.
36569     # Libtool will interpret -1 as no limit whatsoever
36570     lt_cv_sys_max_cmd_len=-1;
36571     ;;
36572
36573   cygwin* | mingw*)
36574     # On Win9x/ME, this test blows up -- it succeeds, but takes
36575     # about 5 minutes as the teststring grows exponentially.
36576     # Worse, since 9x/ME are not pre-emptively multitasking,
36577     # you end up with a "frozen" computer, even though with patience
36578     # the test eventually succeeds (with a max line length of 256k).
36579     # Instead, let's just punt: use the minimum linelength reported by
36580     # all of the supported platforms: 8192 (on NT/2K/XP).
36581     lt_cv_sys_max_cmd_len=8192;
36582     ;;
36583
36584   amigaos*)
36585     # On AmigaOS with pdksh, this test takes hours, literally.
36586     # So we just punt and use a minimum line length of 8192.
36587     lt_cv_sys_max_cmd_len=8192;
36588     ;;
36589
36590   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
36591     # This has been around since 386BSD, at least.  Likely further.
36592     if test -x /sbin/sysctl; then
36593       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
36594     elif test -x /usr/sbin/sysctl; then
36595       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
36596     else
36597       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
36598     fi
36599     # And add a safety zone
36600     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
36601     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
36602     ;;
36603   osf*)
36604     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
36605     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
36606     # nice to cause kernel panics so lets avoid the loop below.
36607     # First set a reasonable default.
36608     lt_cv_sys_max_cmd_len=16384
36609     #
36610     if test -x /sbin/sysconfig; then
36611       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
36612         *1*) lt_cv_sys_max_cmd_len=-1 ;;
36613       esac
36614     fi
36615     ;;
36616   *)
36617     # If test is not a shell built-in, we'll probably end up computing a
36618     # maximum length that is only half of the actual maximum length, but
36619     # we can't tell.
36620     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
36621     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
36622                = "XX$teststring") >/dev/null 2>&1 &&
36623             new_result=`expr "X$teststring" : ".*" 2>&1` &&
36624             lt_cv_sys_max_cmd_len=$new_result &&
36625             test $i != 17 # 1/2 MB should be enough
36626     do
36627       i=`expr $i + 1`
36628       teststring=$teststring$teststring
36629     done
36630     teststring=
36631     # Add a significant safety factor because C++ compilers can tack on massive
36632     # amounts of additional arguments before passing them to the linker.
36633     # It appears as though 1/2 is a usable value.
36634     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
36635     ;;
36636   esac
36637
36638 fi
36639
36640 if test -n $lt_cv_sys_max_cmd_len ; then
36641   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
36642 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
36643 else
36644   { $as_echo "$as_me:$LINENO: result: none" >&5
36645 $as_echo "none" >&6; }
36646 fi
36647
36648
36649
36650
36651 # Check for command to grab the raw symbol name followed by C symbol from nm.
36652 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
36653 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
36654 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
36655   $as_echo_n "(cached) " >&6
36656 else
36657
36658 # These are sane defaults that work on at least a few old systems.
36659 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
36660
36661 # Character class describing NM global symbol codes.
36662 symcode='[BCDEGRST]'
36663
36664 # Regexp to match symbols that can be accessed directly from C.
36665 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
36666
36667 # Transform an extracted symbol line into a proper C declaration
36668 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
36669
36670 # Transform an extracted symbol line into symbol name and symbol address
36671 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
36672
36673 # Define system-specific variables.
36674 case $host_os in
36675 aix*)
36676   symcode='[BCDT]'
36677   ;;
36678 cygwin* | mingw* | pw32*)
36679   symcode='[ABCDGISTW]'
36680   ;;
36681 hpux*) # Its linker distinguishes data from code symbols
36682   if test "$host_cpu" = ia64; then
36683     symcode='[ABCDEGRST]'
36684   fi
36685   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
36686   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
36687   ;;
36688 linux*)
36689   if test "$host_cpu" = ia64; then
36690     symcode='[ABCDGIRSTW]'
36691     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
36692     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
36693   fi
36694   ;;
36695 irix* | nonstopux*)
36696   symcode='[BCDEGRST]'
36697   ;;
36698 osf*)
36699   symcode='[BCDEGQRST]'
36700   ;;
36701 solaris* | sysv5*)
36702   symcode='[BDRT]'
36703   ;;
36704 sysv4)
36705   symcode='[DFNSTU]'
36706   ;;
36707 esac
36708
36709 # Handle CRLF in mingw tool chain
36710 opt_cr=
36711 case $build_os in
36712 mingw*)
36713   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
36714   ;;
36715 esac
36716
36717 # If we're using GNU nm, then use its standard symbol codes.
36718 case `$NM -V 2>&1` in
36719 *GNU* | *'with BFD'*)
36720   symcode='[ABCDGIRSTW]' ;;
36721 esac
36722
36723 # Try without a prefix undercore, then with it.
36724 for ac_symprfx in "" "_"; do
36725
36726   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
36727   symxfrm="\\1 $ac_symprfx\\2 \\2"
36728
36729   # Write the raw and C identifiers.
36730   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
36731
36732   # Check to see that the pipe works correctly.
36733   pipe_works=no
36734
36735   rm -f conftest*
36736   cat > conftest.$ac_ext <<EOF
36737 #ifdef __cplusplus
36738 extern "C" {
36739 #endif
36740 char nm_test_var;
36741 void nm_test_func(){}
36742 #ifdef __cplusplus
36743 }
36744 #endif
36745 int main(){nm_test_var='a';nm_test_func();return(0);}
36746 EOF
36747
36748   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36749   (eval $ac_compile) 2>&5
36750   ac_status=$?
36751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36752   (exit $ac_status); }; then
36753     # Now try to grab the symbols.
36754     nlist=conftest.nm
36755     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
36756   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
36757   ac_status=$?
36758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759   (exit $ac_status); } && test -s "$nlist"; then
36760       # Try sorting and uniquifying the output.
36761       if sort "$nlist" | uniq > "$nlist"T; then
36762         mv -f "$nlist"T "$nlist"
36763       else
36764         rm -f "$nlist"T
36765       fi
36766
36767       # Make sure that we snagged all the symbols we need.
36768       if grep ' nm_test_var$' "$nlist" >/dev/null; then
36769         if grep ' nm_test_func$' "$nlist" >/dev/null; then
36770           cat <<EOF > conftest.$ac_ext
36771 #ifdef __cplusplus
36772 extern "C" {
36773 #endif
36774
36775 EOF
36776           # Now generate the symbol file.
36777           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
36778
36779           cat <<EOF >> conftest.$ac_ext
36780 #if defined (__STDC__) && __STDC__
36781 # define lt_ptr_t void *
36782 #else
36783 # define lt_ptr_t char *
36784 # define const
36785 #endif
36786
36787 /* The mapping between symbol names and symbols. */
36788 const struct {
36789   const char *name;
36790   lt_ptr_t address;
36791 }
36792 lt_preloaded_symbols[] =
36793 {
36794 EOF
36795           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
36796           cat <<\EOF >> conftest.$ac_ext
36797   {0, (lt_ptr_t) 0}
36798 };
36799
36800 #ifdef __cplusplus
36801 }
36802 #endif
36803 EOF
36804           # Now try linking the two files.
36805           mv conftest.$ac_objext conftstm.$ac_objext
36806           lt_save_LIBS="$LIBS"
36807           lt_save_CFLAGS="$CFLAGS"
36808           LIBS="conftstm.$ac_objext"
36809           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
36810           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36811   (eval $ac_link) 2>&5
36812   ac_status=$?
36813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36814   (exit $ac_status); } && test -s conftest${ac_exeext}; then
36815             pipe_works=yes
36816           fi
36817           LIBS="$lt_save_LIBS"
36818           CFLAGS="$lt_save_CFLAGS"
36819         else
36820           echo "cannot find nm_test_func in $nlist" >&5
36821         fi
36822       else
36823         echo "cannot find nm_test_var in $nlist" >&5
36824       fi
36825     else
36826       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
36827     fi
36828   else
36829     echo "$progname: failed program was:" >&5
36830     cat conftest.$ac_ext >&5
36831   fi
36832   rm -f conftest* conftst*
36833
36834   # Do not use the global_symbol_pipe unless it works.
36835   if test "$pipe_works" = yes; then
36836     break
36837   else
36838     lt_cv_sys_global_symbol_pipe=
36839   fi
36840 done
36841
36842 fi
36843
36844 if test -z "$lt_cv_sys_global_symbol_pipe"; then
36845   lt_cv_sys_global_symbol_to_cdecl=
36846 fi
36847 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
36848   { $as_echo "$as_me:$LINENO: result: failed" >&5
36849 $as_echo "failed" >&6; }
36850 else
36851   { $as_echo "$as_me:$LINENO: result: ok" >&5
36852 $as_echo "ok" >&6; }
36853 fi
36854
36855 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
36856 $as_echo_n "checking for objdir... " >&6; }
36857 if test "${lt_cv_objdir+set}" = set; then
36858   $as_echo_n "(cached) " >&6
36859 else
36860   rm -f .libs 2>/dev/null
36861 mkdir .libs 2>/dev/null
36862 if test -d .libs; then
36863   lt_cv_objdir=.libs
36864 else
36865   # MS-DOS does not allow filenames that begin with a dot.
36866   lt_cv_objdir=_libs
36867 fi
36868 rmdir .libs 2>/dev/null
36869 fi
36870 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
36871 $as_echo "$lt_cv_objdir" >&6; }
36872 objdir=$lt_cv_objdir
36873
36874
36875
36876
36877
36878 case $host_os in
36879 aix3*)
36880   # AIX sometimes has problems with the GCC collect2 program.  For some
36881   # reason, if we set the COLLECT_NAMES environment variable, the problems
36882   # vanish in a puff of smoke.
36883   if test "X${COLLECT_NAMES+set}" != Xset; then
36884     COLLECT_NAMES=
36885     export COLLECT_NAMES
36886   fi
36887   ;;
36888 esac
36889
36890 # Sed substitution that helps us do robust quoting.  It backslashifies
36891 # metacharacters that are still active within double-quoted strings.
36892 Xsed='sed -e 1s/^X//'
36893 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
36894
36895 # Same as above, but do not quote variable references.
36896 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
36897
36898 # Sed substitution to delay expansion of an escaped shell variable in a
36899 # double_quote_subst'ed string.
36900 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
36901
36902 # Sed substitution to avoid accidental globbing in evaled expressions
36903 no_glob_subst='s/\*/\\\*/g'
36904
36905 # Constants:
36906 rm="rm -f"
36907
36908 # Global variables:
36909 default_ofile=libtool
36910 can_build_shared=yes
36911
36912 # All known linkers require a `.a' archive for static linking (except MSVC,
36913 # which needs '.lib').
36914 libext=a
36915 ltmain="$ac_aux_dir/ltmain.sh"
36916 ofile="$default_ofile"
36917 with_gnu_ld="$lt_cv_prog_gnu_ld"
36918
36919 if test -n "$ac_tool_prefix"; then
36920   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
36921 set dummy ${ac_tool_prefix}ar; ac_word=$2
36922 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36923 $as_echo_n "checking for $ac_word... " >&6; }
36924 if test "${ac_cv_prog_AR+set}" = set; then
36925   $as_echo_n "(cached) " >&6
36926 else
36927   if test -n "$AR"; then
36928   ac_cv_prog_AR="$AR" # Let the user override the test.
36929 else
36930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36931 for as_dir in $PATH
36932 do
36933   IFS=$as_save_IFS
36934   test -z "$as_dir" && as_dir=.
36935   for ac_exec_ext in '' $ac_executable_extensions; do
36936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36937     ac_cv_prog_AR="${ac_tool_prefix}ar"
36938     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36939     break 2
36940   fi
36941 done
36942 done
36943 IFS=$as_save_IFS
36944
36945 fi
36946 fi
36947 AR=$ac_cv_prog_AR
36948 if test -n "$AR"; then
36949   { $as_echo "$as_me:$LINENO: result: $AR" >&5
36950 $as_echo "$AR" >&6; }
36951 else
36952   { $as_echo "$as_me:$LINENO: result: no" >&5
36953 $as_echo "no" >&6; }
36954 fi
36955
36956
36957 fi
36958 if test -z "$ac_cv_prog_AR"; then
36959   ac_ct_AR=$AR
36960   # Extract the first word of "ar", so it can be a program name with args.
36961 set dummy ar; ac_word=$2
36962 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36963 $as_echo_n "checking for $ac_word... " >&6; }
36964 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
36965   $as_echo_n "(cached) " >&6
36966 else
36967   if test -n "$ac_ct_AR"; then
36968   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
36969 else
36970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36971 for as_dir in $PATH
36972 do
36973   IFS=$as_save_IFS
36974   test -z "$as_dir" && as_dir=.
36975   for ac_exec_ext in '' $ac_executable_extensions; do
36976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36977     ac_cv_prog_ac_ct_AR="ar"
36978     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36979     break 2
36980   fi
36981 done
36982 done
36983 IFS=$as_save_IFS
36984
36985 fi
36986 fi
36987 ac_ct_AR=$ac_cv_prog_ac_ct_AR
36988 if test -n "$ac_ct_AR"; then
36989   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
36990 $as_echo "$ac_ct_AR" >&6; }
36991 else
36992   { $as_echo "$as_me:$LINENO: result: no" >&5
36993 $as_echo "no" >&6; }
36994 fi
36995
36996   if test "x$ac_ct_AR" = x; then
36997     AR="false"
36998   else
36999     case $cross_compiling:$ac_tool_warned in
37000 yes:)
37001 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
37002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37003 ac_tool_warned=yes ;;
37004 esac
37005     AR=$ac_ct_AR
37006   fi
37007 else
37008   AR="$ac_cv_prog_AR"
37009 fi
37010
37011 if test -n "$ac_tool_prefix"; then
37012   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37013 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37014 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37015 $as_echo_n "checking for $ac_word... " >&6; }
37016 if test "${ac_cv_prog_RANLIB+set}" = set; then
37017   $as_echo_n "(cached) " >&6
37018 else
37019   if test -n "$RANLIB"; then
37020   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37021 else
37022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37023 for as_dir in $PATH
37024 do
37025   IFS=$as_save_IFS
37026   test -z "$as_dir" && as_dir=.
37027   for ac_exec_ext in '' $ac_executable_extensions; do
37028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37029     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37030     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37031     break 2
37032   fi
37033 done
37034 done
37035 IFS=$as_save_IFS
37036
37037 fi
37038 fi
37039 RANLIB=$ac_cv_prog_RANLIB
37040 if test -n "$RANLIB"; then
37041   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
37042 $as_echo "$RANLIB" >&6; }
37043 else
37044   { $as_echo "$as_me:$LINENO: result: no" >&5
37045 $as_echo "no" >&6; }
37046 fi
37047
37048
37049 fi
37050 if test -z "$ac_cv_prog_RANLIB"; then
37051   ac_ct_RANLIB=$RANLIB
37052   # Extract the first word of "ranlib", so it can be a program name with args.
37053 set dummy ranlib; ac_word=$2
37054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37055 $as_echo_n "checking for $ac_word... " >&6; }
37056 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37057   $as_echo_n "(cached) " >&6
37058 else
37059   if test -n "$ac_ct_RANLIB"; then
37060   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37061 else
37062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37063 for as_dir in $PATH
37064 do
37065   IFS=$as_save_IFS
37066   test -z "$as_dir" && as_dir=.
37067   for ac_exec_ext in '' $ac_executable_extensions; do
37068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37069     ac_cv_prog_ac_ct_RANLIB="ranlib"
37070     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37071     break 2
37072   fi
37073 done
37074 done
37075 IFS=$as_save_IFS
37076
37077 fi
37078 fi
37079 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37080 if test -n "$ac_ct_RANLIB"; then
37081   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37082 $as_echo "$ac_ct_RANLIB" >&6; }
37083 else
37084   { $as_echo "$as_me:$LINENO: result: no" >&5
37085 $as_echo "no" >&6; }
37086 fi
37087
37088   if test "x$ac_ct_RANLIB" = x; then
37089     RANLIB=":"
37090   else
37091     case $cross_compiling:$ac_tool_warned in
37092 yes:)
37093 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
37094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37095 ac_tool_warned=yes ;;
37096 esac
37097     RANLIB=$ac_ct_RANLIB
37098   fi
37099 else
37100   RANLIB="$ac_cv_prog_RANLIB"
37101 fi
37102
37103 if test -n "$ac_tool_prefix"; then
37104   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37105 set dummy ${ac_tool_prefix}strip; ac_word=$2
37106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37107 $as_echo_n "checking for $ac_word... " >&6; }
37108 if test "${ac_cv_prog_STRIP+set}" = set; then
37109   $as_echo_n "(cached) " >&6
37110 else
37111   if test -n "$STRIP"; then
37112   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
37113 else
37114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37115 for as_dir in $PATH
37116 do
37117   IFS=$as_save_IFS
37118   test -z "$as_dir" && as_dir=.
37119   for ac_exec_ext in '' $ac_executable_extensions; do
37120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37121     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
37122     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37123     break 2
37124   fi
37125 done
37126 done
37127 IFS=$as_save_IFS
37128
37129 fi
37130 fi
37131 STRIP=$ac_cv_prog_STRIP
37132 if test -n "$STRIP"; then
37133   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
37134 $as_echo "$STRIP" >&6; }
37135 else
37136   { $as_echo "$as_me:$LINENO: result: no" >&5
37137 $as_echo "no" >&6; }
37138 fi
37139
37140
37141 fi
37142 if test -z "$ac_cv_prog_STRIP"; then
37143   ac_ct_STRIP=$STRIP
37144   # Extract the first word of "strip", so it can be a program name with args.
37145 set dummy strip; ac_word=$2
37146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37147 $as_echo_n "checking for $ac_word... " >&6; }
37148 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
37149   $as_echo_n "(cached) " >&6
37150 else
37151   if test -n "$ac_ct_STRIP"; then
37152   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37153 else
37154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37155 for as_dir in $PATH
37156 do
37157   IFS=$as_save_IFS
37158   test -z "$as_dir" && as_dir=.
37159   for ac_exec_ext in '' $ac_executable_extensions; do
37160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37161     ac_cv_prog_ac_ct_STRIP="strip"
37162     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37163     break 2
37164   fi
37165 done
37166 done
37167 IFS=$as_save_IFS
37168
37169 fi
37170 fi
37171 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37172 if test -n "$ac_ct_STRIP"; then
37173   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
37174 $as_echo "$ac_ct_STRIP" >&6; }
37175 else
37176   { $as_echo "$as_me:$LINENO: result: no" >&5
37177 $as_echo "no" >&6; }
37178 fi
37179
37180   if test "x$ac_ct_STRIP" = x; then
37181     STRIP=":"
37182   else
37183     case $cross_compiling:$ac_tool_warned in
37184 yes:)
37185 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
37186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37187 ac_tool_warned=yes ;;
37188 esac
37189     STRIP=$ac_ct_STRIP
37190   fi
37191 else
37192   STRIP="$ac_cv_prog_STRIP"
37193 fi
37194
37195
37196 old_CC="$CC"
37197 old_CFLAGS="$CFLAGS"
37198
37199 # Set sane defaults for various variables
37200 test -z "$AR" && AR=ar
37201 test -z "$AR_FLAGS" && AR_FLAGS=cru
37202 test -z "$AS" && AS=as
37203 test -z "$CC" && CC=cc
37204 test -z "$LTCC" && LTCC=$CC
37205 test -z "$DLLTOOL" && DLLTOOL=dlltool
37206 test -z "$LD" && LD=ld
37207 test -z "$LN_S" && LN_S="ln -s"
37208 test -z "$MAGIC_CMD" && MAGIC_CMD=file
37209 test -z "$NM" && NM=nm
37210 test -z "$SED" && SED=sed
37211 test -z "$OBJDUMP" && OBJDUMP=objdump
37212 test -z "$RANLIB" && RANLIB=:
37213 test -z "$STRIP" && STRIP=:
37214 test -z "$ac_objext" && ac_objext=o
37215
37216 # Determine commands to create old-style static archives.
37217 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
37218 old_postinstall_cmds='chmod 644 $oldlib'
37219 old_postuninstall_cmds=
37220
37221 if test -n "$RANLIB"; then
37222   case $host_os in
37223   openbsd*)
37224     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
37225     ;;
37226   *)
37227     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
37228     ;;
37229   esac
37230   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
37231 fi
37232
37233 for cc_temp in $compiler""; do
37234   case $cc_temp in
37235     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
37236     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
37237     \-*) ;;
37238     *) break;;
37239   esac
37240 done
37241 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
37242
37243
37244 # Only perform the check for file, if the check method requires it
37245 case $deplibs_check_method in
37246 file_magic*)
37247   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
37248     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
37249 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
37250 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
37251   $as_echo_n "(cached) " >&6
37252 else
37253   case $MAGIC_CMD in
37254 [\\/*] |  ?:[\\/]*)
37255   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
37256   ;;
37257 *)
37258   lt_save_MAGIC_CMD="$MAGIC_CMD"
37259   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
37260   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
37261   for ac_dir in $ac_dummy; do
37262     IFS="$lt_save_ifs"
37263     test -z "$ac_dir" && ac_dir=.
37264     if test -f $ac_dir/${ac_tool_prefix}file; then
37265       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
37266       if test -n "$file_magic_test_file"; then
37267         case $deplibs_check_method in
37268         "file_magic "*)
37269           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
37270           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
37271           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
37272             $EGREP "$file_magic_regex" > /dev/null; then
37273             :
37274           else
37275             cat <<EOF 1>&2
37276
37277 *** Warning: the command libtool uses to detect shared libraries,
37278 *** $file_magic_cmd, produces output that libtool cannot recognize.
37279 *** The result is that libtool may fail to recognize shared libraries
37280 *** as such.  This will affect the creation of libtool libraries that
37281 *** depend on shared libraries, but programs linked with such libtool
37282 *** libraries will work regardless of this problem.  Nevertheless, you
37283 *** may want to report the problem to your system manager and/or to
37284 *** bug-libtool@gnu.org
37285
37286 EOF
37287           fi ;;
37288         esac
37289       fi
37290       break
37291     fi
37292   done
37293   IFS="$lt_save_ifs"
37294   MAGIC_CMD="$lt_save_MAGIC_CMD"
37295   ;;
37296 esac
37297 fi
37298
37299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
37300 if test -n "$MAGIC_CMD"; then
37301   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
37302 $as_echo "$MAGIC_CMD" >&6; }
37303 else
37304   { $as_echo "$as_me:$LINENO: result: no" >&5
37305 $as_echo "no" >&6; }
37306 fi
37307
37308 if test -z "$lt_cv_path_MAGIC_CMD"; then
37309   if test -n "$ac_tool_prefix"; then
37310     { $as_echo "$as_me:$LINENO: checking for file" >&5
37311 $as_echo_n "checking for file... " >&6; }
37312 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
37313   $as_echo_n "(cached) " >&6
37314 else
37315   case $MAGIC_CMD in
37316 [\\/*] |  ?:[\\/]*)
37317   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
37318   ;;
37319 *)
37320   lt_save_MAGIC_CMD="$MAGIC_CMD"
37321   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
37322   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
37323   for ac_dir in $ac_dummy; do
37324     IFS="$lt_save_ifs"
37325     test -z "$ac_dir" && ac_dir=.
37326     if test -f $ac_dir/file; then
37327       lt_cv_path_MAGIC_CMD="$ac_dir/file"
37328       if test -n "$file_magic_test_file"; then
37329         case $deplibs_check_method in
37330         "file_magic "*)
37331           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
37332           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
37333           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
37334             $EGREP "$file_magic_regex" > /dev/null; then
37335             :
37336           else
37337             cat <<EOF 1>&2
37338
37339 *** Warning: the command libtool uses to detect shared libraries,
37340 *** $file_magic_cmd, produces output that libtool cannot recognize.
37341 *** The result is that libtool may fail to recognize shared libraries
37342 *** as such.  This will affect the creation of libtool libraries that
37343 *** depend on shared libraries, but programs linked with such libtool
37344 *** libraries will work regardless of this problem.  Nevertheless, you
37345 *** may want to report the problem to your system manager and/or to
37346 *** bug-libtool@gnu.org
37347
37348 EOF
37349           fi ;;
37350         esac
37351       fi
37352       break
37353     fi
37354   done
37355   IFS="$lt_save_ifs"
37356   MAGIC_CMD="$lt_save_MAGIC_CMD"
37357   ;;
37358 esac
37359 fi
37360
37361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
37362 if test -n "$MAGIC_CMD"; then
37363   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
37364 $as_echo "$MAGIC_CMD" >&6; }
37365 else
37366   { $as_echo "$as_me:$LINENO: result: no" >&5
37367 $as_echo "no" >&6; }
37368 fi
37369
37370   else
37371     MAGIC_CMD=:
37372   fi
37373 fi
37374
37375   fi
37376   ;;
37377 esac
37378
37379 enable_dlopen=no
37380 enable_win32_dll=no
37381
37382 # Check whether --enable-libtool-lock was given.
37383 if test "${enable_libtool_lock+set}" = set; then
37384   enableval=$enable_libtool_lock;
37385 fi
37386
37387 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
37388
37389
37390 # Check whether --with-pic was given.
37391 if test "${with_pic+set}" = set; then
37392   withval=$with_pic; pic_mode="$withval"
37393 else
37394   pic_mode=default
37395 fi
37396
37397 test -z "$pic_mode" && pic_mode=default
37398
37399 # Use C for the default configuration in the libtool script
37400 tagname=
37401 lt_save_CC="$CC"
37402 ac_ext=c
37403 ac_cpp='$CPP $CPPFLAGS'
37404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37407
37408
37409 # Source file extension for C test sources.
37410 ac_ext=c
37411
37412 # Object file extension for compiled C test sources.
37413 objext=o
37414 objext=$objext
37415
37416 # Code to be used in simple compile tests
37417 lt_simple_compile_test_code="int some_variable = 0;\n"
37418
37419 # Code to be used in simple link tests
37420 lt_simple_link_test_code='int main(){return(0);}\n'
37421
37422
37423 # If no C compiler was specified, use CC.
37424 LTCC=${LTCC-"$CC"}
37425
37426 # Allow CC to be a program name with arguments.
37427 compiler=$CC
37428
37429
37430 # save warnings/boilerplate of simple test code
37431 ac_outfile=conftest.$ac_objext
37432 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
37433 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
37434 _lt_compiler_boilerplate=`cat conftest.err`
37435 $rm conftest*
37436
37437 ac_outfile=conftest.$ac_objext
37438 printf "$lt_simple_link_test_code" >conftest.$ac_ext
37439 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
37440 _lt_linker_boilerplate=`cat conftest.err`
37441 $rm conftest*
37442
37443
37444 #
37445 # Check for any special shared library compilation flags.
37446 #
37447 lt_prog_cc_shlib=
37448 if test "$GCC" = no; then
37449   case $host_os in
37450   sco3.2v5*)
37451     lt_prog_cc_shlib='-belf'
37452     ;;
37453   esac
37454 fi
37455 if test -n "$lt_prog_cc_shlib"; then
37456
37457     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
37458 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
37459
37460
37461     cat <<AAW_EOF >>config.warnings
37462 \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries
37463 AAW_EOF
37464
37465
37466   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
37467   else
37468
37469     { $as_echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
37470 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
37471
37472
37473     cat <<AAW_EOF >>config.warnings
37474 add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure
37475 AAW_EOF
37476
37477
37478     lt_cv_prog_cc_can_build_shared=no
37479   fi
37480 fi
37481
37482
37483 #
37484 # Check to make sure the static flag actually works.
37485 #
37486 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
37487 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
37488 if test "${lt_prog_compiler_static_works+set}" = set; then
37489   $as_echo_n "(cached) " >&6
37490 else
37491   lt_prog_compiler_static_works=no
37492    save_LDFLAGS="$LDFLAGS"
37493    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
37494    printf "$lt_simple_link_test_code" > conftest.$ac_ext
37495    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
37496      # The linker can only warn and ignore the option if not recognized
37497      # So say no if there are warnings
37498      if test -s conftest.err; then
37499        # Append any errors to the config.log.
37500        cat conftest.err 1>&5
37501        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
37502        $SED '/^$/d' conftest.err >conftest.er2
37503        if diff conftest.exp conftest.er2 >/dev/null; then
37504          lt_prog_compiler_static_works=yes
37505        fi
37506      else
37507        lt_prog_compiler_static_works=yes
37508      fi
37509    fi
37510    $rm conftest*
37511    LDFLAGS="$save_LDFLAGS"
37512
37513 fi
37514 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
37515 $as_echo "$lt_prog_compiler_static_works" >&6; }
37516
37517 if test x"$lt_prog_compiler_static_works" = xyes; then
37518     :
37519 else
37520     lt_prog_compiler_static=
37521 fi
37522
37523
37524
37525 ## CAVEAT EMPTOR:
37526 ## There is no encapsulation within the following macros, do not change
37527 ## the running order or otherwise move them around unless you know exactly
37528 ## what you are doing...
37529
37530 lt_prog_compiler_no_builtin_flag=
37531
37532 if test "$GCC" = yes; then
37533   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
37534
37535
37536 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
37537 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
37538 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
37539   $as_echo_n "(cached) " >&6
37540 else
37541   lt_cv_prog_compiler_rtti_exceptions=no
37542   ac_outfile=conftest.$ac_objext
37543    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
37544    lt_compiler_flag="-fno-rtti -fno-exceptions"
37545    # Insert the option either (1) after the last *FLAGS variable, or
37546    # (2) before a word containing "conftest.", or (3) at the end.
37547    # Note that $ac_compile itself does not contain backslashes and begins
37548    # with a dollar sign (not a hyphen), so the echo should work correctly.
37549    # The option is referenced via a variable to avoid confusing sed.
37550    lt_compile=`echo "$ac_compile" | $SED \
37551    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
37552    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
37553    -e 's:$: $lt_compiler_flag:'`
37554    (eval echo "\"\$as_me:37554: $lt_compile\"" >&5)
37555    (eval "$lt_compile" 2>conftest.err)
37556    ac_status=$?
37557    cat conftest.err >&5
37558    echo "$as_me:37558: \$? = $ac_status" >&5
37559    if (exit $ac_status) && test -s "$ac_outfile"; then
37560      # The compiler can only warn and ignore the option if not recognized
37561      # So say no if there are warnings other than the usual output.
37562      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
37563      $SED '/^$/d' conftest.err >conftest.er2
37564      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
37565        lt_cv_prog_compiler_rtti_exceptions=yes
37566      fi
37567    fi
37568    $rm conftest*
37569
37570 fi
37571 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
37572 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
37573
37574 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
37575     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
37576 else
37577     :
37578 fi
37579
37580 fi
37581
37582 lt_prog_compiler_wl=
37583 lt_prog_compiler_pic=
37584 lt_prog_compiler_static=
37585
37586 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
37587 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
37588
37589   if test "$GCC" = yes; then
37590     lt_prog_compiler_wl='-Wl,'
37591     lt_prog_compiler_static='-static'
37592
37593     case $host_os in
37594       aix*)
37595       # All AIX code is PIC.
37596       if test "$host_cpu" = ia64; then
37597         # AIX 5 now supports IA64 processor
37598         lt_prog_compiler_static='-Bstatic'
37599       fi
37600       ;;
37601
37602     amigaos*)
37603       # FIXME: we need at least 68020 code to build shared libraries, but
37604       # adding the `-m68020' flag to GCC prevents building anything better,
37605       # like `-m68040'.
37606       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
37607       ;;
37608
37609     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
37610       # PIC is the default for these OSes.
37611       ;;
37612
37613     mingw* | pw32* | os2*)
37614       # This hack is so that the source file can tell whether it is being
37615       # built for inclusion in a dll (and should export symbols for example).
37616       lt_prog_compiler_pic='-DDLL_EXPORT'
37617       ;;
37618
37619     darwin* | rhapsody*)
37620       # PIC is the default on this platform
37621       # Common symbols not allowed in MH_DYLIB files
37622       lt_prog_compiler_pic='-fno-common'
37623       ;;
37624
37625     msdosdjgpp*)
37626       # Just because we use GCC doesn't mean we suddenly get shared libraries
37627       # on systems that don't support them.
37628       lt_prog_compiler_can_build_shared=no
37629       enable_shared=no
37630       ;;
37631
37632     sysv4*MP*)
37633       if test -d /usr/nec; then
37634         lt_prog_compiler_pic=-Kconform_pic
37635       fi
37636       ;;
37637
37638     hpux*)
37639       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
37640       # not for PA HP-UX.
37641       case $host_cpu in
37642       hppa*64*|ia64*)
37643         # +Z the default
37644         ;;
37645       *)
37646         lt_prog_compiler_pic='-fPIC'
37647         ;;
37648       esac
37649       ;;
37650
37651     *)
37652       lt_prog_compiler_pic='-fPIC'
37653       ;;
37654     esac
37655   else
37656     # PORTME Check for flag to pass linker flags through the system compiler.
37657     case $host_os in
37658     aix*)
37659       lt_prog_compiler_wl='-Wl,'
37660       if test "$host_cpu" = ia64; then
37661         # AIX 5 now supports IA64 processor
37662         lt_prog_compiler_static='-Bstatic'
37663       else
37664         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
37665       fi
37666       ;;
37667       darwin*)
37668         # PIC is the default on this platform
37669         # Common symbols not allowed in MH_DYLIB files
37670        case $cc_basename in
37671          xlc*)
37672          lt_prog_compiler_pic='-qnocommon'
37673          lt_prog_compiler_wl='-Wl,'
37674          ;;
37675        esac
37676        ;;
37677
37678     mingw* | pw32* | os2*)
37679       # This hack is so that the source file can tell whether it is being
37680       # built for inclusion in a dll (and should export symbols for example).
37681       lt_prog_compiler_pic='-DDLL_EXPORT'
37682       ;;
37683
37684     hpux9* | hpux10* | hpux11*)
37685       lt_prog_compiler_wl='-Wl,'
37686       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
37687       # not for PA HP-UX.
37688       case $host_cpu in
37689       hppa*64*|ia64*)
37690         # +Z the default
37691         ;;
37692       *)
37693         lt_prog_compiler_pic='+Z'
37694         ;;
37695       esac
37696       # Is there a better lt_prog_compiler_static that works with the bundled CC?
37697       lt_prog_compiler_static='${wl}-a ${wl}archive'
37698       ;;
37699
37700     irix5* | irix6* | nonstopux*)
37701       lt_prog_compiler_wl='-Wl,'
37702       # PIC (with -KPIC) is the default.
37703       lt_prog_compiler_static='-non_shared'
37704       ;;
37705
37706     newsos6)
37707       lt_prog_compiler_pic='-KPIC'
37708       lt_prog_compiler_static='-Bstatic'
37709       ;;
37710
37711     linux*)
37712       case $cc_basename in
37713       icc* | ecc*)
37714         lt_prog_compiler_wl='-Wl,'
37715         lt_prog_compiler_pic='-KPIC'
37716         lt_prog_compiler_static='-static'
37717         ;;
37718       pgcc* | pgf77* | pgf90* | pgf95*)
37719         # Portland Group compilers (*not* the Pentium gcc compiler,
37720         # which looks to be a dead project)
37721         lt_prog_compiler_wl='-Wl,'
37722         lt_prog_compiler_pic='-fpic'
37723         lt_prog_compiler_static='-Bstatic'
37724         ;;
37725       ccc*)
37726         lt_prog_compiler_wl='-Wl,'
37727         # All Alpha code is PIC.
37728         lt_prog_compiler_static='-non_shared'
37729         ;;
37730       esac
37731       ;;
37732
37733     osf3* | osf4* | osf5*)
37734       lt_prog_compiler_wl='-Wl,'
37735       # All OSF/1 code is PIC.
37736       lt_prog_compiler_static='-non_shared'
37737       ;;
37738
37739     sco3.2v5*)
37740       lt_prog_compiler_pic='-Kpic'
37741       lt_prog_compiler_static='-dn'
37742       ;;
37743
37744     solaris*)
37745       lt_prog_compiler_pic='-KPIC'
37746       lt_prog_compiler_static='-Bstatic'
37747       case $cc_basename in
37748       f77* | f90* | f95*)
37749         lt_prog_compiler_wl='-Qoption ld ';;
37750       *)
37751         lt_prog_compiler_wl='-Wl,';;
37752       esac
37753       ;;
37754
37755     sunos4*)
37756       lt_prog_compiler_wl='-Qoption ld '
37757       lt_prog_compiler_pic='-PIC'
37758       lt_prog_compiler_static='-Bstatic'
37759       ;;
37760
37761     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
37762       lt_prog_compiler_wl='-Wl,'
37763       lt_prog_compiler_pic='-KPIC'
37764       lt_prog_compiler_static='-Bstatic'
37765       ;;
37766
37767     sysv4*MP*)
37768       if test -d /usr/nec ;then
37769         lt_prog_compiler_pic='-Kconform_pic'
37770         lt_prog_compiler_static='-Bstatic'
37771       fi
37772       ;;
37773
37774     unicos*)
37775       lt_prog_compiler_wl='-Wl,'
37776       lt_prog_compiler_can_build_shared=no
37777       ;;
37778
37779     uts4*)
37780       lt_prog_compiler_pic='-pic'
37781       lt_prog_compiler_static='-Bstatic'
37782       ;;
37783
37784     *)
37785       lt_prog_compiler_can_build_shared=no
37786       ;;
37787     esac
37788   fi
37789
37790 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
37791 $as_echo "$lt_prog_compiler_pic" >&6; }
37792
37793 #
37794 # Check to make sure the PIC flag actually works.
37795 #
37796 if test -n "$lt_prog_compiler_pic"; then
37797
37798 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
37799 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
37800 if test "${lt_prog_compiler_pic_works+set}" = set; then
37801   $as_echo_n "(cached) " >&6
37802 else
37803   lt_prog_compiler_pic_works=no
37804   ac_outfile=conftest.$ac_objext
37805    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
37806    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
37807    # Insert the option either (1) after the last *FLAGS variable, or
37808    # (2) before a word containing "conftest.", or (3) at the end.
37809    # Note that $ac_compile itself does not contain backslashes and begins
37810    # with a dollar sign (not a hyphen), so the echo should work correctly.
37811    # The option is referenced via a variable to avoid confusing sed.
37812    lt_compile=`echo "$ac_compile" | $SED \
37813    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
37814    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
37815    -e 's:$: $lt_compiler_flag:'`
37816    (eval echo "\"\$as_me:37816: $lt_compile\"" >&5)
37817    (eval "$lt_compile" 2>conftest.err)
37818    ac_status=$?
37819    cat conftest.err >&5
37820    echo "$as_me:37820: \$? = $ac_status" >&5
37821    if (exit $ac_status) && test -s "$ac_outfile"; then
37822      # The compiler can only warn and ignore the option if not recognized
37823      # So say no if there are warnings other than the usual output.
37824      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
37825      $SED '/^$/d' conftest.err >conftest.er2
37826      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
37827        lt_prog_compiler_pic_works=yes
37828      fi
37829    fi
37830    $rm conftest*
37831
37832 fi
37833 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
37834 $as_echo "$lt_prog_compiler_pic_works" >&6; }
37835
37836 if test x"$lt_prog_compiler_pic_works" = xyes; then
37837     case $lt_prog_compiler_pic in
37838      "" | " "*) ;;
37839      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
37840      esac
37841 else
37842     lt_prog_compiler_pic=
37843      lt_prog_compiler_can_build_shared=no
37844 fi
37845
37846 fi
37847 case $host_os in
37848   # For platforms which do not support PIC, -DPIC is meaningless:
37849   *djgpp*)
37850     lt_prog_compiler_pic=
37851     ;;
37852   *)
37853     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
37854     ;;
37855 esac
37856
37857 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
37858 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
37859 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
37860   $as_echo_n "(cached) " >&6
37861 else
37862   lt_cv_prog_compiler_c_o=no
37863    $rm -r conftest 2>/dev/null
37864    mkdir conftest
37865    cd conftest
37866    mkdir out
37867    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
37868
37869    lt_compiler_flag="-o out/conftest2.$ac_objext"
37870    # Insert the option either (1) after the last *FLAGS variable, or
37871    # (2) before a word containing "conftest.", or (3) at the end.
37872    # Note that $ac_compile itself does not contain backslashes and begins
37873    # with a dollar sign (not a hyphen), so the echo should work correctly.
37874    lt_compile=`echo "$ac_compile" | $SED \
37875    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
37876    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
37877    -e 's:$: $lt_compiler_flag:'`
37878    (eval echo "\"\$as_me:37878: $lt_compile\"" >&5)
37879    (eval "$lt_compile" 2>out/conftest.err)
37880    ac_status=$?
37881    cat out/conftest.err >&5
37882    echo "$as_me:37882: \$? = $ac_status" >&5
37883    if (exit $ac_status) && test -s out/conftest2.$ac_objext
37884    then
37885      # The compiler can only warn and ignore the option if not recognized
37886      # So say no if there are warnings
37887      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
37888      $SED '/^$/d' out/conftest.err >out/conftest.er2
37889      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
37890        lt_cv_prog_compiler_c_o=yes
37891      fi
37892    fi
37893    chmod u+w . 2>&5
37894    $rm conftest*
37895    # SGI C++ compiler will create directory out/ii_files/ for
37896    # template instantiation
37897    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
37898    $rm out/* && rmdir out
37899    cd ..
37900    rmdir conftest
37901    $rm conftest*
37902
37903 fi
37904 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
37905 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
37906
37907
37908 hard_links="nottested"
37909 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
37910   # do not overwrite the value of need_locks provided by the user
37911   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
37912 $as_echo_n "checking if we can lock with hard links... " >&6; }
37913   hard_links=yes
37914   $rm conftest*
37915   ln conftest.a conftest.b 2>/dev/null && hard_links=no
37916   touch conftest.a
37917   ln conftest.a conftest.b 2>&5 || hard_links=no
37918   ln conftest.a conftest.b 2>/dev/null && hard_links=no
37919   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
37920 $as_echo "$hard_links" >&6; }
37921   if test "$hard_links" = no; then
37922
37923     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
37924 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
37925
37926
37927     cat <<AAW_EOF >>config.warnings
37928 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
37929 AAW_EOF
37930
37931
37932     need_locks=warn
37933   fi
37934 else
37935   need_locks=no
37936 fi
37937
37938 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
37939 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
37940
37941   runpath_var=
37942   allow_undefined_flag=
37943   enable_shared_with_static_runtimes=no
37944   archive_cmds=
37945   archive_expsym_cmds=
37946   old_archive_From_new_cmds=
37947   old_archive_from_expsyms_cmds=
37948   export_dynamic_flag_spec=
37949   whole_archive_flag_spec=
37950   thread_safe_flag_spec=
37951   hardcode_libdir_flag_spec=
37952   hardcode_libdir_flag_spec_ld=
37953   hardcode_libdir_separator=
37954   hardcode_direct=no
37955   hardcode_minus_L=no
37956   hardcode_shlibpath_var=unsupported
37957   link_all_deplibs=unknown
37958   hardcode_automatic=no
37959   module_cmds=
37960   module_expsym_cmds=
37961   always_export_symbols=no
37962   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
37963   # include_expsyms should be a list of space-separated symbols to be *always*
37964   # included in the symbol list
37965   include_expsyms=
37966   # exclude_expsyms can be an extended regexp of symbols to exclude
37967   # it will be wrapped by ` (' and `)$', so one must not match beginning or
37968   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
37969   # as well as any symbol that contains `d'.
37970   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
37971   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
37972   # platforms (ab)use it in PIC code, but their linkers get confused if
37973   # the symbol is explicitly referenced.  Since portable code cannot
37974   # rely on this symbol name, it's probably fine to never include it in
37975   # preloaded symbol tables.
37976   extract_expsyms_cmds=
37977   # Just being paranoid about ensuring that cc_basename is set.
37978   for cc_temp in $compiler""; do
37979   case $cc_temp in
37980     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
37981     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
37982     \-*) ;;
37983     *) break;;
37984   esac
37985 done
37986 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
37987
37988   case $host_os in
37989   cygwin* | mingw* | pw32*)
37990     # FIXME: the MSVC++ port hasn't been tested in a loooong time
37991     # When not using gcc, we currently assume that we are using
37992     # Microsoft Visual C++.
37993     if test "$GCC" != yes; then
37994       with_gnu_ld=no
37995     fi
37996     ;;
37997   openbsd*)
37998     with_gnu_ld=no
37999     ;;
38000   esac
38001
38002   ld_shlibs=yes
38003   if test "$with_gnu_ld" = yes; then
38004     # If archive_cmds runs LD, not CC, wlarc should be empty
38005     wlarc='${wl}'
38006
38007     # Set some defaults for GNU ld with shared library support. These
38008     # are reset later if shared libraries are not supported. Putting them
38009     # here allows them to be overridden if necessary.
38010     runpath_var=LD_RUN_PATH
38011     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
38012     export_dynamic_flag_spec='${wl}--export-dynamic'
38013     # ancient GNU ld didn't support --whole-archive et. al.
38014     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
38015         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
38016       else
38017         whole_archive_flag_spec=
38018     fi
38019     supports_anon_versioning=no
38020     case `$LD -v 2>/dev/null` in
38021       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
38022       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
38023       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
38024       *\ 2.11.*) ;; # other 2.11 versions
38025       *) supports_anon_versioning=yes ;;
38026     esac
38027
38028     # See if GNU ld supports shared libraries.
38029     case $host_os in
38030     aix3* | aix4* | aix5*)
38031       # On AIX/PPC, the GNU linker is very broken
38032       if test "$host_cpu" != ia64; then
38033         ld_shlibs=no
38034         cat <<EOF 1>&2
38035
38036 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
38037 *** to be unable to reliably create shared libraries on AIX.
38038 *** Therefore, libtool is disabling shared libraries support.  If you
38039 *** really care for shared libraries, you may want to modify your PATH
38040 *** so that a non-GNU linker is found, and then restart.
38041
38042 EOF
38043       fi
38044       ;;
38045
38046     amigaos*)
38047       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)'
38048       hardcode_libdir_flag_spec='-L$libdir'
38049       hardcode_minus_L=yes
38050
38051       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
38052       # that the semantics of dynamic libraries on AmigaOS, at least up
38053       # to version 4, is to share data among multiple programs linked
38054       # with the same dynamic library.  Since this doesn't match the
38055       # behavior of shared libraries on other platforms, we can't use
38056       # them.
38057       ld_shlibs=no
38058       ;;
38059
38060     beos*)
38061       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
38062         allow_undefined_flag=unsupported
38063         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
38064         # support --undefined.  This deserves some investigation.  FIXME
38065         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38066       else
38067         ld_shlibs=no
38068       fi
38069       ;;
38070
38071     cygwin* | mingw* | pw32*)
38072       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
38073       # as there is no search path for DLLs.
38074       hardcode_libdir_flag_spec='-L$libdir'
38075       allow_undefined_flag=unsupported
38076       always_export_symbols=no
38077       enable_shared_with_static_runtimes=yes
38078       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
38079
38080       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
38081         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
38082         # If the export-symbols file already is a .def file (1st line
38083         # is EXPORTS), use it as is; otherwise, prepend...
38084         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
38085           cp $export_symbols $output_objdir/$soname.def;
38086         else
38087           echo EXPORTS > $output_objdir/$soname.def;
38088           cat $export_symbols >> $output_objdir/$soname.def;
38089         fi~
38090         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
38091       else
38092         ld_shlibs=no
38093       fi
38094       ;;
38095
38096     linux*)
38097       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
38098         tmp_addflag=
38099         case $cc_basename,$host_cpu in
38100         pgcc*)                          # Portland Group C compiler
38101           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'
38102           tmp_addflag=' $pic_flag'
38103           ;;
38104         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
38105           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'
38106           tmp_addflag=' $pic_flag -Mnomain' ;;
38107         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
38108           tmp_addflag=' -i_dynamic' ;;
38109         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
38110           tmp_addflag=' -i_dynamic -nofor_main' ;;
38111         ifc* | ifort*)                  # Intel Fortran compiler
38112           tmp_addflag=' -nofor_main' ;;
38113         esac
38114         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38115
38116         if test $supports_anon_versioning = yes; then
38117           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
38118   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
38119   $echo "local: *; };" >> $output_objdir/$libname.ver~
38120           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
38121         fi
38122       else
38123         ld_shlibs=no
38124       fi
38125       ;;
38126
38127     netbsd*)
38128       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
38129         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
38130         wlarc=
38131       else
38132         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38133         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
38134       fi
38135       ;;
38136
38137     solaris* | sysv5*)
38138       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
38139         ld_shlibs=no
38140         cat <<EOF 1>&2
38141
38142 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
38143 *** create shared libraries on Solaris systems.  Therefore, libtool
38144 *** is disabling shared libraries support.  We urge you to upgrade GNU
38145 *** binutils to release 2.9.1 or newer.  Another option is to modify
38146 *** your PATH or compiler configuration so that the native linker is
38147 *** used, and then restart.
38148
38149 EOF
38150       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
38151         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38152         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
38153       else
38154         ld_shlibs=no
38155       fi
38156       ;;
38157
38158     sunos4*)
38159       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
38160       wlarc=
38161       hardcode_direct=yes
38162       hardcode_shlibpath_var=no
38163       ;;
38164
38165     *)
38166       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
38167         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38168         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
38169       else
38170         ld_shlibs=no
38171       fi
38172       ;;
38173     esac
38174
38175     if test "$ld_shlibs" = no; then
38176       runpath_var=
38177       hardcode_libdir_flag_spec=
38178       export_dynamic_flag_spec=
38179       whole_archive_flag_spec=
38180     fi
38181   else
38182     # PORTME fill in a description of your system's linker (not GNU ld)
38183     case $host_os in
38184     aix3*)
38185       allow_undefined_flag=unsupported
38186       always_export_symbols=yes
38187       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'
38188       # Note: this linker hardcodes the directories in LIBPATH if there
38189       # are no directories specified by -L.
38190       hardcode_minus_L=yes
38191       if test "$GCC" = yes && test -z "$link_static_flag"; then
38192         # Neither direct hardcoding nor static linking is supported with a
38193         # broken collect2.
38194         hardcode_direct=unsupported
38195       fi
38196       ;;
38197
38198     aix4* | aix5*)
38199       if test "$host_cpu" = ia64; then
38200         # On IA64, the linker does run time linking by default, so we don't
38201         # have to do anything special.
38202         aix_use_runtimelinking=no
38203         exp_sym_flag='-Bexport'
38204         no_entry_flag=""
38205       else
38206         # If we're using GNU nm, then we don't want the "-C" option.
38207         # -C means demangle to AIX nm, but means don't demangle with GNU nm
38208         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
38209           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'
38210         else
38211           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'
38212         fi
38213         aix_use_runtimelinking=no
38214
38215         # Test if we are trying to use run time linking or normal
38216         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
38217         # need to do runtime linking.
38218         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
38219           for ld_flag in $LDFLAGS; do
38220           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
38221             aix_use_runtimelinking=yes
38222             break
38223           fi
38224           done
38225         esac
38226
38227         exp_sym_flag='-bexport'
38228         no_entry_flag='-bnoentry'
38229       fi
38230
38231       # When large executables or shared objects are built, AIX ld can
38232       # have problems creating the table of contents.  If linking a library
38233       # or program results in "error TOC overflow" add -mminimal-toc to
38234       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
38235       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
38236
38237       archive_cmds=''
38238       hardcode_direct=yes
38239       hardcode_libdir_separator=':'
38240       link_all_deplibs=yes
38241
38242       if test "$GCC" = yes; then
38243         case $host_os in aix4.[012]|aix4.[012].*)
38244         # We only want to do this on AIX 4.2 and lower, the check
38245         # below for broken collect2 doesn't work under 4.3+
38246           collect2name=`${CC} -print-prog-name=collect2`
38247           if test -f "$collect2name" && \
38248            strings "$collect2name" | grep resolve_lib_name >/dev/null
38249           then
38250           # We have reworked collect2
38251           hardcode_direct=yes
38252           else
38253           # We have old collect2
38254           hardcode_direct=unsupported
38255           # It fails to find uninstalled libraries when the uninstalled
38256           # path is not listed in the libpath.  Setting hardcode_minus_L
38257           # to unsupported forces relinking
38258           hardcode_minus_L=yes
38259           hardcode_libdir_flag_spec='-L$libdir'
38260           hardcode_libdir_separator=
38261           fi
38262         esac
38263         shared_flag='-shared'
38264         if test "$aix_use_runtimelinking" = yes; then
38265           shared_flag="$shared_flag "'${wl}-G'
38266         fi
38267       else
38268         # not using gcc
38269         if test "$host_cpu" = ia64; then
38270         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
38271         # chokes on -Wl,-G. The following line is correct:
38272           shared_flag='-G'
38273         else
38274         if test "$aix_use_runtimelinking" = yes; then
38275             shared_flag='${wl}-G'
38276           else
38277             shared_flag='${wl}-bM:SRE'
38278         fi
38279         fi
38280       fi
38281
38282       # It seems that -bexpall does not export symbols beginning with
38283       # underscore (_), so it is better to generate a list of symbols to export.
38284       always_export_symbols=yes
38285       if test "$aix_use_runtimelinking" = yes; then
38286         # Warning - without using the other runtime loading flags (-brtl),
38287         # -berok will link without error, but may produce a broken library.
38288         allow_undefined_flag='-berok'
38289        # Determine the default libpath from the value encoded in an empty executable.
38290        cat >conftest.$ac_ext <<_ACEOF
38291 /* confdefs.h.  */
38292 _ACEOF
38293 cat confdefs.h >>conftest.$ac_ext
38294 cat >>conftest.$ac_ext <<_ACEOF
38295 /* end confdefs.h.  */
38296
38297 int
38298 main ()
38299 {
38300
38301   ;
38302   return 0;
38303 }
38304 _ACEOF
38305 rm -f conftest.$ac_objext conftest$ac_exeext
38306 if { (ac_try="$ac_link"
38307 case "(($ac_try" in
38308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38309   *) ac_try_echo=$ac_try;;
38310 esac
38311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38312 $as_echo "$ac_try_echo") >&5
38313   (eval "$ac_link") 2>conftest.er1
38314   ac_status=$?
38315   grep -v '^ *+' conftest.er1 >conftest.err
38316   rm -f conftest.er1
38317   cat conftest.err >&5
38318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38319   (exit $ac_status); } && {
38320          test -z "$ac_c_werror_flag" ||
38321          test ! -s conftest.err
38322        } && test -s conftest$ac_exeext && {
38323          test "$cross_compiling" = yes ||
38324          $as_test_x conftest$ac_exeext
38325        }; then
38326
38327 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
38328 }'`
38329 # Check for a 64-bit object if we didn't find anything.
38330 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
38331 }'`; fi
38332 else
38333   $as_echo "$as_me: failed program was:" >&5
38334 sed 's/^/| /' conftest.$ac_ext >&5
38335
38336
38337 fi
38338
38339 rm -rf conftest.dSYM
38340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38341       conftest$ac_exeext conftest.$ac_ext
38342 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
38343
38344        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
38345         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
38346        else
38347         if test "$host_cpu" = ia64; then
38348           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
38349           allow_undefined_flag="-z nodefs"
38350           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
38351         else
38352          # Determine the default libpath from the value encoded in an empty executable.
38353          cat >conftest.$ac_ext <<_ACEOF
38354 /* confdefs.h.  */
38355 _ACEOF
38356 cat confdefs.h >>conftest.$ac_ext
38357 cat >>conftest.$ac_ext <<_ACEOF
38358 /* end confdefs.h.  */
38359
38360 int
38361 main ()
38362 {
38363
38364   ;
38365   return 0;
38366 }
38367 _ACEOF
38368 rm -f conftest.$ac_objext conftest$ac_exeext
38369 if { (ac_try="$ac_link"
38370 case "(($ac_try" in
38371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38372   *) ac_try_echo=$ac_try;;
38373 esac
38374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38375 $as_echo "$ac_try_echo") >&5
38376   (eval "$ac_link") 2>conftest.er1
38377   ac_status=$?
38378   grep -v '^ *+' conftest.er1 >conftest.err
38379   rm -f conftest.er1
38380   cat conftest.err >&5
38381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38382   (exit $ac_status); } && {
38383          test -z "$ac_c_werror_flag" ||
38384          test ! -s conftest.err
38385        } && test -s conftest$ac_exeext && {
38386          test "$cross_compiling" = yes ||
38387          $as_test_x conftest$ac_exeext
38388        }; then
38389
38390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
38391 }'`
38392 # Check for a 64-bit object if we didn't find anything.
38393 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
38394 }'`; fi
38395 else
38396   $as_echo "$as_me: failed program was:" >&5
38397 sed 's/^/| /' conftest.$ac_ext >&5
38398
38399
38400 fi
38401
38402 rm -rf conftest.dSYM
38403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38404       conftest$ac_exeext conftest.$ac_ext
38405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
38406
38407          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
38408           # Warning - without using the other run time loading flags,
38409           # -berok will link without error, but may produce a broken library.
38410           no_undefined_flag=' ${wl}-bernotok'
38411           allow_undefined_flag=' ${wl}-berok'
38412           # -bexpall does not export symbols beginning with underscore (_)
38413           always_export_symbols=yes
38414           # Exported symbols can be pulled into shared objects from archives
38415           whole_archive_flag_spec=' '
38416           archive_cmds_need_lc=yes
38417           # This is similar to how AIX traditionally builds its shared libraries.
38418           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
38419         fi
38420       fi
38421       ;;
38422
38423     amigaos*)
38424       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)'
38425       hardcode_libdir_flag_spec='-L$libdir'
38426       hardcode_minus_L=yes
38427       # see comment about different semantics on the GNU ld section
38428       ld_shlibs=no
38429       ;;
38430
38431     bsdi[45]*)
38432       export_dynamic_flag_spec=-rdynamic
38433       ;;
38434
38435     cygwin* | mingw* | pw32*)
38436       # When not using gcc, we currently assume that we are using
38437       # Microsoft Visual C++.
38438       # hardcode_libdir_flag_spec is actually meaningless, as there is
38439       # no search path for DLLs.
38440       hardcode_libdir_flag_spec=' '
38441       allow_undefined_flag=unsupported
38442       # Tell ltmain to make .lib files, not .a files.
38443       libext=lib
38444       # Tell ltmain to make .dll files, not .so files.
38445       shrext_cmds=".dll"
38446       # FIXME: Setting linknames here is a bad hack.
38447       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
38448       # The linker will automatically build a .lib file if we build a DLL.
38449       old_archive_From_new_cmds='true'
38450       # FIXME: Should let the user specify the lib program.
38451       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
38452       fix_srcfile_path='`cygpath -w "$srcfile"`'
38453       enable_shared_with_static_runtimes=yes
38454       ;;
38455
38456     darwin* | rhapsody*)
38457       case $host_os in
38458         rhapsody* | darwin1.[012])
38459          allow_undefined_flag='${wl}-undefined ${wl}suppress'
38460          ;;
38461        *) # Darwin 1.3 on
38462          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
38463            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
38464          else
38465            case ${MACOSX_DEPLOYMENT_TARGET} in
38466              10.[012])
38467                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
38468                ;;
38469              10.*)
38470                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
38471                ;;
38472            esac
38473          fi
38474          ;;
38475       esac
38476       archive_cmds_need_lc=no
38477       hardcode_direct=no
38478       hardcode_automatic=yes
38479       hardcode_shlibpath_var=unsupported
38480       whole_archive_flag_spec=''
38481       link_all_deplibs=yes
38482     if test "$GCC" = yes ; then
38483         output_verbose_link_cmd='echo'
38484         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
38485       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
38486       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
38487       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
38488       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
38489     else
38490       case $cc_basename in
38491         xlc*)
38492          output_verbose_link_cmd='echo'
38493          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
38494          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
38495           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
38496          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
38497           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
38498           ;;
38499        *)
38500          ld_shlibs=no
38501           ;;
38502       esac
38503     fi
38504       ;;
38505
38506     dgux*)
38507       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38508       hardcode_libdir_flag_spec='-L$libdir'
38509       hardcode_shlibpath_var=no
38510       ;;
38511
38512     freebsd1*)
38513       ld_shlibs=no
38514       ;;
38515
38516     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
38517     # support.  Future versions do this automatically, but an explicit c++rt0.o
38518     # does not break anything, and helps significantly (at the cost of a little
38519     # extra space).
38520     freebsd2.2*)
38521       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
38522       hardcode_libdir_flag_spec='-R$libdir'
38523       hardcode_direct=yes
38524       hardcode_shlibpath_var=no
38525       ;;
38526
38527     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
38528     freebsd2*)
38529       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
38530       hardcode_direct=yes
38531       hardcode_minus_L=yes
38532       hardcode_shlibpath_var=no
38533       ;;
38534
38535     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
38536     freebsd* | kfreebsd*-gnu | dragonfly*)
38537       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
38538       hardcode_libdir_flag_spec='-R$libdir'
38539       hardcode_direct=yes
38540       hardcode_shlibpath_var=no
38541       ;;
38542
38543     hpux9*)
38544       if test "$GCC" = yes; then
38545         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'
38546       else
38547         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'
38548       fi
38549       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
38550       hardcode_libdir_separator=:
38551       hardcode_direct=yes
38552
38553       # hardcode_minus_L: Not really in the search PATH,
38554       # but as the default location of the library.
38555       hardcode_minus_L=yes
38556       export_dynamic_flag_spec='${wl}-E'
38557       ;;
38558
38559     hpux10* | hpux11*)
38560       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
38561         case $host_cpu in
38562         hppa*64*|ia64*)
38563           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38564           ;;
38565         *)
38566           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
38567           ;;
38568         esac
38569       else
38570         case $host_cpu in
38571         hppa*64*|ia64*)
38572           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
38573           ;;
38574         *)
38575           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
38576           ;;
38577         esac
38578       fi
38579       if test "$with_gnu_ld" = no; then
38580         case $host_cpu in
38581         hppa*64*)
38582           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
38583           hardcode_libdir_flag_spec_ld='+b $libdir'
38584           hardcode_libdir_separator=:
38585           hardcode_direct=no
38586           hardcode_shlibpath_var=no
38587           ;;
38588         ia64*)
38589           hardcode_libdir_flag_spec='-L$libdir'
38590           hardcode_direct=no
38591           hardcode_shlibpath_var=no
38592
38593           # hardcode_minus_L: Not really in the search PATH,
38594           # but as the default location of the library.
38595           hardcode_minus_L=yes
38596           ;;
38597         *)
38598           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
38599           hardcode_libdir_separator=:
38600           hardcode_direct=yes
38601           export_dynamic_flag_spec='${wl}-E'
38602
38603           # hardcode_minus_L: Not really in the search PATH,
38604           # but as the default location of the library.
38605           hardcode_minus_L=yes
38606           ;;
38607         esac
38608       fi
38609       ;;
38610
38611     irix5* | irix6* | nonstopux*)
38612       if test "$GCC" = yes; then
38613         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
38614       else
38615         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
38616         hardcode_libdir_flag_spec_ld='-rpath $libdir'
38617       fi
38618       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
38619       hardcode_libdir_separator=:
38620       link_all_deplibs=yes
38621       ;;
38622
38623     netbsd*)
38624       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
38625         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
38626       else
38627         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
38628       fi
38629       hardcode_libdir_flag_spec='-R$libdir'
38630       hardcode_direct=yes
38631       hardcode_shlibpath_var=no
38632       ;;
38633
38634     newsos6)
38635       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38636       hardcode_direct=yes
38637       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
38638       hardcode_libdir_separator=:
38639       hardcode_shlibpath_var=no
38640       ;;
38641
38642     openbsd*)
38643       hardcode_direct=yes
38644       hardcode_shlibpath_var=no
38645       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
38646         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
38647         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
38648         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
38649         export_dynamic_flag_spec='${wl}-E'
38650       else
38651        case $host_os in
38652          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
38653            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
38654            hardcode_libdir_flag_spec='-R$libdir'
38655            ;;
38656          *)
38657            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
38658            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
38659            ;;
38660        esac
38661       fi
38662       ;;
38663
38664     os2*)
38665       hardcode_libdir_flag_spec='-L$libdir'
38666       hardcode_minus_L=yes
38667       allow_undefined_flag=unsupported
38668       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'
38669       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
38670       ;;
38671
38672     osf3*)
38673       if test "$GCC" = yes; then
38674         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
38675         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
38676       else
38677         allow_undefined_flag=' -expect_unresolved \*'
38678         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
38679       fi
38680       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
38681       hardcode_libdir_separator=:
38682       ;;
38683
38684     osf4* | osf5*)      # as osf3* with the addition of -msym flag
38685       if test "$GCC" = yes; then
38686         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
38687         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
38688         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
38689       else
38690         allow_undefined_flag=' -expect_unresolved \*'
38691         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
38692         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
38693         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
38694
38695         # Both c and cxx compiler support -rpath directly
38696         hardcode_libdir_flag_spec='-rpath $libdir'
38697       fi
38698       hardcode_libdir_separator=:
38699       ;;
38700
38701     sco3.2v5*)
38702       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38703       hardcode_shlibpath_var=no
38704       export_dynamic_flag_spec='${wl}-Bexport'
38705       runpath_var=LD_RUN_PATH
38706       hardcode_runpath_var=yes
38707       ;;
38708
38709     solaris*)
38710       no_undefined_flag=' -z text'
38711       if test "x$archive_cmds" = "x"; then
38712         if test "$GCC" = yes; then
38713           wlarc='${wl}'
38714           if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
38715             archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38716             archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
38717             $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
38718           else
38719             archive_cmds='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38720             archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
38721             $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
38722           fi
38723         else
38724           wlarc=''
38725           lt_prog_compiler_static='-static'
38726           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
38727           archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
38728           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
38729           lt_prog_compiler_static='-static'
38730         fi
38731       fi
38732       hardcode_libdir_flag_spec='-R$libdir'
38733       hardcode_shlibpath_var=no
38734       case $host_os in
38735       solaris2.[0-5] | solaris2.[0-5].*) ;;
38736       *)
38737         # The compiler driver will combine linker options so we
38738         # cannot just pass the convience library names through
38739         # without $wl, iff we do not link with $LD.
38740         # Luckily, gcc supports the same syntax we need for Sun Studio.
38741         # Supported since Solaris 2.6 (maybe 2.5.1?)
38742         case $wlarc in
38743         '')
38744           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
38745         *)
38746           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
38747         esac ;;
38748       esac
38749       link_all_deplibs=yes
38750       ;;
38751
38752     sunos4*)
38753       if test "x$host_vendor" = xsequent; then
38754         # Use $CC to link under sequent, because it throws in some extra .o
38755         # files that make .init and .fini sections work.
38756         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
38757       else
38758         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
38759       fi
38760       hardcode_libdir_flag_spec='-L$libdir'
38761       hardcode_direct=yes
38762       hardcode_minus_L=yes
38763       hardcode_shlibpath_var=no
38764       ;;
38765
38766     sysv4)
38767       case $host_vendor in
38768         sni)
38769           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38770           hardcode_direct=yes # is this really true???
38771         ;;
38772         siemens)
38773           ## LD is ld it makes a PLAMLIB
38774           ## CC just makes a GrossModule.
38775           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
38776           reload_cmds='$CC -r -o $output$reload_objs'
38777           hardcode_direct=no
38778         ;;
38779         motorola)
38780           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38781           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
38782         ;;
38783       esac
38784       runpath_var='LD_RUN_PATH'
38785       hardcode_shlibpath_var=no
38786       ;;
38787
38788     sysv4.3*)
38789       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38790       hardcode_shlibpath_var=no
38791       export_dynamic_flag_spec='-Bexport'
38792       ;;
38793
38794     sysv4*MP*)
38795       if test -d /usr/nec; then
38796         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38797         hardcode_shlibpath_var=no
38798         runpath_var=LD_RUN_PATH
38799         hardcode_runpath_var=yes
38800         ld_shlibs=yes
38801       fi
38802       ;;
38803
38804     sysv4.2uw2*)
38805       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
38806       hardcode_direct=yes
38807       hardcode_minus_L=no
38808       hardcode_shlibpath_var=no
38809       hardcode_runpath_var=yes
38810       runpath_var=LD_RUN_PATH
38811       ;;
38812
38813    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
38814       no_undefined_flag='${wl}-z ${wl}text'
38815       if test "$GCC" = yes; then
38816         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38817       else
38818         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38819       fi
38820       runpath_var='LD_RUN_PATH'
38821       hardcode_shlibpath_var=no
38822       ;;
38823
38824     sysv5*)
38825       no_undefined_flag=' -z text'
38826       # $CC -shared without GNU ld will not create a library from C++
38827       # object files and a static libstdc++, better avoid it by now
38828       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
38829       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
38830                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
38831       hardcode_libdir_flag_spec=
38832       hardcode_shlibpath_var=no
38833       runpath_var='LD_RUN_PATH'
38834       ;;
38835
38836     uts4*)
38837       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38838       hardcode_libdir_flag_spec='-L$libdir'
38839       hardcode_shlibpath_var=no
38840       ;;
38841
38842     *)
38843       ld_shlibs=no
38844       ;;
38845     esac
38846   fi
38847
38848 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
38849 $as_echo "$ld_shlibs" >&6; }
38850 test "$ld_shlibs" = no && can_build_shared=no
38851
38852 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
38853 if test "$GCC" = yes; then
38854   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
38855 fi
38856
38857 #
38858 # Do we need to explicitly link libc?
38859 #
38860 case "x$archive_cmds_need_lc" in
38861 x|xyes)
38862   # Assume -lc should be added
38863   archive_cmds_need_lc=yes
38864
38865   if test "$enable_shared" = yes && test "$GCC" = yes; then
38866     case $archive_cmds in
38867     *'~'*)
38868       # FIXME: we may have to deal with multi-command sequences.
38869       ;;
38870     '$CC '*)
38871       # Test whether the compiler implicitly links with -lc since on some
38872       # systems, -lgcc has to come before -lc. If gcc already passes -lc
38873       # to ld, don't add -lc before -lgcc.
38874       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
38875 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
38876       $rm conftest*
38877       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
38878
38879       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38880   (eval $ac_compile) 2>&5
38881   ac_status=$?
38882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38883   (exit $ac_status); } 2>conftest.err; then
38884         soname=conftest
38885         lib=conftest
38886         libobjs=conftest.$ac_objext
38887         deplibs=
38888         wl=$lt_prog_compiler_wl
38889         compiler_flags=-v
38890         linker_flags=-v
38891         verstring=
38892         output_objdir=.
38893         libname=conftest
38894         lt_save_allow_undefined_flag=$allow_undefined_flag
38895         allow_undefined_flag=
38896         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
38897   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
38898   ac_status=$?
38899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38900   (exit $ac_status); }
38901         then
38902           archive_cmds_need_lc=no
38903         else
38904           archive_cmds_need_lc=yes
38905         fi
38906         allow_undefined_flag=$lt_save_allow_undefined_flag
38907       else
38908         cat conftest.err 1>&5
38909       fi
38910       $rm conftest*
38911       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
38912 $as_echo "$archive_cmds_need_lc" >&6; }
38913       ;;
38914     esac
38915   fi
38916   ;;
38917 esac
38918
38919 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
38920 $as_echo_n "checking dynamic linker characteristics... " >&6; }
38921 library_names_spec=
38922 libname_spec='lib$name'
38923 soname_spec=
38924 shrext_cmds=".so"
38925 postinstall_cmds=
38926 postuninstall_cmds=
38927 finish_cmds=
38928 finish_eval=
38929 shlibpath_var=
38930 shlibpath_overrides_runpath=unknown
38931 version_type=none
38932 dynamic_linker="$host_os ld.so"
38933 sys_lib_dlsearch_path_spec="/lib /usr/lib"
38934 if test "$GCC" = yes; then
38935   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
38936   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
38937     # if the path contains ";" then we assume it to be the separator
38938     # otherwise default to the standard path separator (i.e. ":") - it is
38939     # assumed that no part of a normal pathname contains ";" but that should
38940     # okay in the real world where ";" in dirpaths is itself problematic.
38941     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
38942   else
38943     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
38944   fi
38945 else
38946   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
38947 fi
38948 need_lib_prefix=unknown
38949 hardcode_into_libs=no
38950
38951 # when you set need_version to no, make sure it does not cause -set_version
38952 # flags to be left without arguments
38953 need_version=unknown
38954
38955 case $host_os in
38956 aix3*)
38957   version_type=linux
38958   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
38959   shlibpath_var=LIBPATH
38960
38961   # AIX 3 has no versioning support, so we append a major version to the name.
38962   soname_spec='${libname}${release}${shared_ext}$major'
38963   ;;
38964
38965 aix4* | aix5*)
38966   version_type=linux
38967   need_lib_prefix=no
38968   need_version=no
38969   hardcode_into_libs=yes
38970   if test "$host_cpu" = ia64; then
38971     # AIX 5 supports IA64
38972     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
38973     shlibpath_var=LD_LIBRARY_PATH
38974   else
38975     # With GCC up to 2.95.x, collect2 would create an import file
38976     # for dependence libraries.  The import file would start with
38977     # the line `#! .'.  This would cause the generated library to
38978     # depend on `.', always an invalid library.  This was fixed in
38979     # development snapshots of GCC prior to 3.0.
38980     case $host_os in
38981       aix4 | aix4.[01] | aix4.[01].*)
38982       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
38983            echo ' yes '
38984            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
38985         :
38986       else
38987         can_build_shared=no
38988       fi
38989       ;;
38990     esac
38991     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
38992     # soname into executable. Probably we can add versioning support to
38993     # collect2, so additional links can be useful in future.
38994     if test "$aix_use_runtimelinking" = yes; then
38995       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
38996       # instead of lib<name>.a to let people know that these are not
38997       # typical AIX shared libraries.
38998       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38999     else
39000       # We preserve .a as extension for shared libraries through AIX4.2
39001       # and later when we are not doing run time linking.
39002       library_names_spec='${libname}${release}.a $libname.a'
39003       soname_spec='${libname}${release}${shared_ext}$major'
39004     fi
39005     shlibpath_var=LIBPATH
39006   fi
39007   ;;
39008
39009 amigaos*)
39010   library_names_spec='$libname.ixlibrary $libname.a'
39011   # Create ${libname}_ixlibrary.a entries in /sys/libs.
39012   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'
39013   ;;
39014
39015 beos*)
39016   library_names_spec='${libname}${shared_ext}'
39017   dynamic_linker="$host_os ld.so"
39018   shlibpath_var=LIBRARY_PATH
39019   ;;
39020
39021 bsdi[45]*)
39022   version_type=linux
39023   need_version=no
39024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39025   soname_spec='${libname}${release}${shared_ext}$major'
39026   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
39027   shlibpath_var=LD_LIBRARY_PATH
39028   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
39029   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
39030   # the default ld.so.conf also contains /usr/contrib/lib and
39031   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
39032   # libtool to hard-code these into programs
39033   ;;
39034
39035 cygwin* | mingw* | pw32*)
39036   version_type=windows
39037   shrext_cmds=".dll"
39038   need_version=no
39039   need_lib_prefix=no
39040
39041   case $GCC,$host_os in
39042   yes,cygwin* | yes,mingw* | yes,pw32*)
39043     library_names_spec='$libname.dll.a'
39044     # DLL is installed to $(libdir)/../bin by postinstall_cmds
39045     postinstall_cmds='base_file=`basename \${file}`~
39046       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
39047       dldir=$destdir/`dirname \$dlpath`~
39048       test -d \$dldir || mkdir -p \$dldir~
39049       $install_prog $dir/$dlname \$dldir/$dlname~
39050       chmod a+x \$dldir/$dlname'
39051     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
39052       dlpath=$dir/\$dldll~
39053        $rm \$dlpath'
39054     shlibpath_overrides_runpath=yes
39055
39056     case $host_os in
39057     cygwin*)
39058       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
39059       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
39060       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
39061       ;;
39062     mingw*)
39063       # MinGW DLLs use traditional 'lib' prefix
39064       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
39065       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
39066       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
39067         # It is most probably a Windows format PATH printed by
39068         # mingw gcc, but we are running on Cygwin. Gcc prints its search
39069         # path with ; separators, and with drive letters. We can handle the
39070         # drive letters (cygwin fileutils understands them), so leave them,
39071         # especially as we might pass files found there to a mingw objdump,
39072         # which wouldn't understand a cygwinified path. Ahh.
39073         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
39074       else
39075         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
39076       fi
39077       ;;
39078     pw32*)
39079       # pw32 DLLs use 'pw' prefix rather than 'lib'
39080       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
39081       ;;
39082     esac
39083     ;;
39084
39085   *)
39086     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
39087     ;;
39088   esac
39089   dynamic_linker='Win32 ld.exe'
39090   # FIXME: first we should search . and the directory the executable is in
39091   shlibpath_var=PATH
39092   ;;
39093
39094 darwin* | rhapsody*)
39095   dynamic_linker="$host_os dyld"
39096   version_type=darwin
39097   need_lib_prefix=no
39098   need_version=no
39099   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
39100   soname_spec='${libname}${release}${major}$shared_ext'
39101   shlibpath_overrides_runpath=yes
39102   shlibpath_var=DYLD_LIBRARY_PATH
39103   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
39104   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
39105   if test "$GCC" = yes; then
39106     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
39107   else
39108     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
39109   fi
39110   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
39111   ;;
39112
39113 dgux*)
39114   version_type=linux
39115   need_lib_prefix=no
39116   need_version=no
39117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
39118   soname_spec='${libname}${release}${shared_ext}$major'
39119   shlibpath_var=LD_LIBRARY_PATH
39120   ;;
39121
39122 freebsd1*)
39123   dynamic_linker=no
39124   ;;
39125
39126 kfreebsd*-gnu)
39127   version_type=linux
39128   need_lib_prefix=no
39129   need_version=no
39130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
39131   soname_spec='${libname}${release}${shared_ext}$major'
39132   shlibpath_var=LD_LIBRARY_PATH
39133   shlibpath_overrides_runpath=no
39134   hardcode_into_libs=yes
39135   dynamic_linker='GNU ld.so'
39136   ;;
39137
39138 freebsd* | dragonfly*)
39139   # DragonFly does not have aout.  When/if they implement a new
39140   # versioning mechanism, adjust this.
39141   if test -x /usr/bin/objformat; then
39142     objformat=`/usr/bin/objformat`
39143   else
39144     case $host_os in
39145     freebsd[123]*) objformat=aout ;;
39146     *) objformat=elf ;;
39147     esac
39148   fi
39149   version_type=freebsd-$objformat
39150   case $version_type in
39151     freebsd-elf*)
39152       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
39153       need_version=no
39154       need_lib_prefix=no
39155       ;;
39156     freebsd-*)
39157       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
39158       need_version=yes
39159       ;;
39160   esac
39161   shlibpath_var=LD_LIBRARY_PATH
39162   case $host_os in
39163   freebsd2*)
39164     shlibpath_overrides_runpath=yes
39165     ;;
39166   freebsd3.[01]* | freebsdelf3.[01]*)
39167     shlibpath_overrides_runpath=yes
39168     hardcode_into_libs=yes
39169     ;;
39170   *) # from 3.2 on
39171     shlibpath_overrides_runpath=no
39172     hardcode_into_libs=yes
39173     ;;
39174   esac
39175   ;;
39176
39177 gnu*)
39178   version_type=linux
39179   need_lib_prefix=no
39180   need_version=no
39181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
39182   soname_spec='${libname}${release}${shared_ext}$major'
39183   shlibpath_var=LD_LIBRARY_PATH
39184   hardcode_into_libs=yes
39185   ;;
39186
39187 hpux9* | hpux10* | hpux11*)
39188   # Give a soname corresponding to the major version so that dld.sl refuses to
39189   # link against other versions.
39190   version_type=sunos
39191   need_lib_prefix=no
39192   need_version=no
39193   case $host_cpu in
39194   ia64*)
39195     shrext_cmds='.so'
39196     hardcode_into_libs=yes
39197     dynamic_linker="$host_os dld.so"
39198     shlibpath_var=LD_LIBRARY_PATH
39199     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
39200     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39201     soname_spec='${libname}${release}${shared_ext}$major'
39202     if test "X$HPUX_IA64_MODE" = X32; then
39203       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
39204     else
39205       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
39206     fi
39207     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
39208     ;;
39209    hppa*64*)
39210      shrext_cmds='.sl'
39211      hardcode_into_libs=yes
39212      dynamic_linker="$host_os dld.sl"
39213      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
39214      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
39215      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39216      soname_spec='${libname}${release}${shared_ext}$major'
39217      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
39218      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
39219      ;;
39220    *)
39221     shrext_cmds='.sl'
39222     dynamic_linker="$host_os dld.sl"
39223     shlibpath_var=SHLIB_PATH
39224     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
39225     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39226     soname_spec='${libname}${release}${shared_ext}$major'
39227     ;;
39228   esac
39229   # HP-UX runs *really* slowly unless shared libraries are mode 555.
39230   postinstall_cmds='chmod 555 $lib'
39231   ;;
39232
39233 irix5* | irix6* | nonstopux*)
39234   case $host_os in
39235     nonstopux*) version_type=nonstopux ;;
39236     *)
39237         if test "$lt_cv_prog_gnu_ld" = yes; then
39238                 version_type=linux
39239         else
39240                 version_type=irix
39241         fi ;;
39242   esac
39243   need_lib_prefix=no
39244   need_version=no
39245   soname_spec='${libname}${release}${shared_ext}$major'
39246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
39247   case $host_os in
39248   irix5* | nonstopux*)
39249     libsuff= shlibsuff=
39250     ;;
39251   *)
39252     case $LD in # libtool.m4 will add one of these switches to LD
39253     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
39254       libsuff= shlibsuff= libmagic=32-bit;;
39255     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
39256       libsuff=32 shlibsuff=N32 libmagic=N32;;
39257     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
39258       libsuff=64 shlibsuff=64 libmagic=64-bit;;
39259     *) libsuff= shlibsuff= libmagic=never-match;;
39260     esac
39261     ;;
39262   esac
39263   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
39264   shlibpath_overrides_runpath=no
39265   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
39266   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
39267   hardcode_into_libs=yes
39268   ;;
39269
39270 # No shared lib support for Linux oldld, aout, or coff.
39271 linux*oldld* | linux*aout* | linux*coff*)
39272   dynamic_linker=no
39273   ;;
39274
39275 # This must be Linux ELF.
39276 linux*)
39277   version_type=linux
39278   need_lib_prefix=no
39279   need_version=no
39280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39281   soname_spec='${libname}${release}${shared_ext}$major'
39282   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
39283   shlibpath_var=LD_LIBRARY_PATH
39284   shlibpath_overrides_runpath=no
39285   # This implies no fast_install, which is unacceptable.
39286   # Some rework will be needed to allow for fast_install
39287   # before this can be enabled.
39288   hardcode_into_libs=yes
39289
39290   # Append ld.so.conf contents to the search path
39291   if test -f /etc/ld.so.conf; then
39292     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
39293     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
39294   fi
39295
39296   # We used to test for /lib/ld.so.1 and disable shared libraries on
39297   # powerpc, because MkLinux only supported shared libraries with the
39298   # GNU dynamic linker.  Since this was broken with cross compilers,
39299   # most powerpc-linux boxes support dynamic linking these days and
39300   # people can always --disable-shared, the test was removed, and we
39301   # assume the GNU/Linux dynamic linker is in use.
39302   dynamic_linker='GNU/Linux ld.so'
39303   ;;
39304
39305 knetbsd*-gnu)
39306   version_type=linux
39307   need_lib_prefix=no
39308   need_version=no
39309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
39310   soname_spec='${libname}${release}${shared_ext}$major'
39311   shlibpath_var=LD_LIBRARY_PATH
39312   shlibpath_overrides_runpath=no
39313   hardcode_into_libs=yes
39314   dynamic_linker='GNU ld.so'
39315   ;;
39316
39317 netbsd*)
39318   version_type=sunos
39319   need_lib_prefix=no
39320   need_version=no
39321   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
39322     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
39323     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
39324     dynamic_linker='NetBSD (a.out) ld.so'
39325   else
39326     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
39327     soname_spec='${libname}${release}${shared_ext}$major'
39328     dynamic_linker='NetBSD ld.elf_so'
39329   fi
39330   shlibpath_var=LD_LIBRARY_PATH
39331   shlibpath_overrides_runpath=yes
39332   hardcode_into_libs=yes
39333   ;;
39334
39335 newsos6)
39336   version_type=linux
39337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39338   shlibpath_var=LD_LIBRARY_PATH
39339   shlibpath_overrides_runpath=yes
39340   ;;
39341
39342 nto-qnx*)
39343   version_type=linux
39344   need_lib_prefix=no
39345   need_version=no
39346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39347   soname_spec='${libname}${release}${shared_ext}$major'
39348   shlibpath_var=LD_LIBRARY_PATH
39349   shlibpath_overrides_runpath=yes
39350   ;;
39351
39352 openbsd*)
39353   version_type=sunos
39354   need_lib_prefix=no
39355   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
39356   case $host_os in
39357     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
39358     *)                         need_version=no  ;;
39359   esac
39360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
39361   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
39362   shlibpath_var=LD_LIBRARY_PATH
39363   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
39364     case $host_os in
39365       openbsd2.[89] | openbsd2.[89].*)
39366         shlibpath_overrides_runpath=no
39367         ;;
39368       *)
39369         shlibpath_overrides_runpath=yes
39370         ;;
39371       esac
39372   else
39373     shlibpath_overrides_runpath=yes
39374   fi
39375   ;;
39376
39377 os2*)
39378   libname_spec='$name'
39379   shrext_cmds=".dll"
39380   need_lib_prefix=no
39381   library_names_spec='$libname${shared_ext} $libname.a'
39382   dynamic_linker='OS/2 ld.exe'
39383   shlibpath_var=LIBPATH
39384   ;;
39385
39386 osf3* | osf4* | osf5*)
39387   version_type=osf
39388   need_lib_prefix=no
39389   need_version=no
39390   soname_spec='${libname}${release}${shared_ext}$major'
39391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39392   shlibpath_var=LD_LIBRARY_PATH
39393   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
39394   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
39395   ;;
39396
39397 sco3.2v5*)
39398   version_type=osf
39399   soname_spec='${libname}${release}${shared_ext}$major'
39400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39401   shlibpath_var=LD_LIBRARY_PATH
39402   ;;
39403
39404 solaris*)
39405   version_type=linux
39406   need_lib_prefix=no
39407   need_version=no
39408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39409   soname_spec='${libname}${release}${shared_ext}$major'
39410   shlibpath_var=LD_LIBRARY_PATH
39411   shlibpath_overrides_runpath=yes
39412   hardcode_into_libs=yes
39413   # ldd complains unless libraries are executable
39414   postinstall_cmds='chmod +x $lib'
39415   ;;
39416
39417 sunos4*)
39418   version_type=sunos
39419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
39420   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
39421   shlibpath_var=LD_LIBRARY_PATH
39422   shlibpath_overrides_runpath=yes
39423   if test "$with_gnu_ld" = yes; then
39424     need_lib_prefix=no
39425   fi
39426   need_version=yes
39427   ;;
39428
39429 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
39430   version_type=linux
39431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39432   soname_spec='${libname}${release}${shared_ext}$major'
39433   shlibpath_var=LD_LIBRARY_PATH
39434   case $host_vendor in
39435     sni)
39436       shlibpath_overrides_runpath=no
39437       need_lib_prefix=no
39438       export_dynamic_flag_spec='${wl}-Blargedynsym'
39439       runpath_var=LD_RUN_PATH
39440       ;;
39441     siemens)
39442       need_lib_prefix=no
39443       ;;
39444     motorola)
39445       need_lib_prefix=no
39446       need_version=no
39447       shlibpath_overrides_runpath=no
39448       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
39449       ;;
39450   esac
39451   ;;
39452
39453 sysv4*MP*)
39454   if test -d /usr/nec ;then
39455     version_type=linux
39456     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
39457     soname_spec='$libname${shared_ext}.$major'
39458     shlibpath_var=LD_LIBRARY_PATH
39459   fi
39460   ;;
39461
39462 uts4*)
39463   version_type=linux
39464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39465   soname_spec='${libname}${release}${shared_ext}$major'
39466   shlibpath_var=LD_LIBRARY_PATH
39467   ;;
39468
39469 *)
39470   dynamic_linker=no
39471   ;;
39472 esac
39473 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
39474 $as_echo "$dynamic_linker" >&6; }
39475 test "$dynamic_linker" = no && can_build_shared=no
39476
39477 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
39478 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
39479 hardcode_action=
39480 if test -n "$hardcode_libdir_flag_spec" || \
39481    test -n "$runpath_var" || \
39482    test "X$hardcode_automatic" = "Xyes" ; then
39483
39484   # We can hardcode non-existant directories.
39485   if test "$hardcode_direct" != no &&
39486      # If the only mechanism to avoid hardcoding is shlibpath_var, we
39487      # have to relink, otherwise we might link with an installed library
39488      # when we should be linking with a yet-to-be-installed one
39489      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
39490      test "$hardcode_minus_L" != no; then
39491     # Linking always hardcodes the temporary library directory.
39492     hardcode_action=relink
39493   else
39494     # We can link without hardcoding, and we can hardcode nonexisting dirs.
39495     hardcode_action=immediate
39496   fi
39497 else
39498   # We cannot hardcode anything, or else we can only hardcode existing
39499   # directories.
39500   hardcode_action=unsupported
39501 fi
39502 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
39503 $as_echo "$hardcode_action" >&6; }
39504
39505 if test "$hardcode_action" = relink; then
39506   # Fast installation is not supported
39507   enable_fast_install=no
39508 elif test "$shlibpath_overrides_runpath" = yes ||
39509      test "$enable_shared" = no; then
39510   # Fast installation is not necessary
39511   enable_fast_install=needless
39512 fi
39513
39514 striplib=
39515 old_striplib=
39516 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
39517 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
39518 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
39519   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
39520   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
39521   { $as_echo "$as_me:$LINENO: result: yes" >&5
39522 $as_echo "yes" >&6; }
39523 else
39524 # FIXME - insert some real tests, host_os isn't really good enough
39525   case $host_os in
39526    darwin*)
39527        if test -n "$STRIP" ; then
39528          striplib="$STRIP -x"
39529          { $as_echo "$as_me:$LINENO: result: yes" >&5
39530 $as_echo "yes" >&6; }
39531        else
39532   { $as_echo "$as_me:$LINENO: result: no" >&5
39533 $as_echo "no" >&6; }
39534 fi
39535        ;;
39536    *)
39537   { $as_echo "$as_me:$LINENO: result: no" >&5
39538 $as_echo "no" >&6; }
39539     ;;
39540   esac
39541 fi
39542
39543 if test "x$enable_dlopen" != xyes; then
39544   enable_dlopen=unknown
39545   enable_dlopen_self=unknown
39546   enable_dlopen_self_static=unknown
39547 else
39548   lt_cv_dlopen=no
39549   lt_cv_dlopen_libs=
39550
39551   case $host_os in
39552   beos*)
39553     lt_cv_dlopen="load_add_on"
39554     lt_cv_dlopen_libs=
39555     lt_cv_dlopen_self=yes
39556     ;;
39557
39558   mingw* | pw32*)
39559     lt_cv_dlopen="LoadLibrary"
39560     lt_cv_dlopen_libs=
39561    ;;
39562
39563   cygwin*)
39564     lt_cv_dlopen="dlopen"
39565     lt_cv_dlopen_libs=
39566    ;;
39567
39568   darwin*)
39569   # if libdl is installed we need to link against it
39570     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39571 $as_echo_n "checking for dlopen in -ldl... " >&6; }
39572 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39573   $as_echo_n "(cached) " >&6
39574 else
39575   ac_check_lib_save_LIBS=$LIBS
39576 LIBS="-ldl  $LIBS"
39577 cat >conftest.$ac_ext <<_ACEOF
39578 /* confdefs.h.  */
39579 _ACEOF
39580 cat confdefs.h >>conftest.$ac_ext
39581 cat >>conftest.$ac_ext <<_ACEOF
39582 /* end confdefs.h.  */
39583
39584 /* Override any GCC internal prototype to avoid an error.
39585    Use char because int might match the return type of a GCC
39586    builtin and then its argument prototype would still apply.  */
39587 #ifdef __cplusplus
39588 extern "C"
39589 #endif
39590 char dlopen ();
39591 int
39592 main ()
39593 {
39594 return dlopen ();
39595   ;
39596   return 0;
39597 }
39598 _ACEOF
39599 rm -f conftest.$ac_objext conftest$ac_exeext
39600 if { (ac_try="$ac_link"
39601 case "(($ac_try" in
39602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39603   *) ac_try_echo=$ac_try;;
39604 esac
39605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39606 $as_echo "$ac_try_echo") >&5
39607   (eval "$ac_link") 2>conftest.er1
39608   ac_status=$?
39609   grep -v '^ *+' conftest.er1 >conftest.err
39610   rm -f conftest.er1
39611   cat conftest.err >&5
39612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39613   (exit $ac_status); } && {
39614          test -z "$ac_c_werror_flag" ||
39615          test ! -s conftest.err
39616        } && test -s conftest$ac_exeext && {
39617          test "$cross_compiling" = yes ||
39618          $as_test_x conftest$ac_exeext
39619        }; then
39620   ac_cv_lib_dl_dlopen=yes
39621 else
39622   $as_echo "$as_me: failed program was:" >&5
39623 sed 's/^/| /' conftest.$ac_ext >&5
39624
39625         ac_cv_lib_dl_dlopen=no
39626 fi
39627
39628 rm -rf conftest.dSYM
39629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39630       conftest$ac_exeext conftest.$ac_ext
39631 LIBS=$ac_check_lib_save_LIBS
39632 fi
39633 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
39634 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
39635 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
39636   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
39637 else
39638
39639     lt_cv_dlopen="dyld"
39640     lt_cv_dlopen_libs=
39641     lt_cv_dlopen_self=yes
39642
39643 fi
39644
39645    ;;
39646
39647   *)
39648     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
39649 $as_echo_n "checking for shl_load... " >&6; }
39650 if test "${ac_cv_func_shl_load+set}" = set; then
39651   $as_echo_n "(cached) " >&6
39652 else
39653   cat >conftest.$ac_ext <<_ACEOF
39654 /* confdefs.h.  */
39655 _ACEOF
39656 cat confdefs.h >>conftest.$ac_ext
39657 cat >>conftest.$ac_ext <<_ACEOF
39658 /* end confdefs.h.  */
39659 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
39660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39661 #define shl_load innocuous_shl_load
39662
39663 /* System header to define __stub macros and hopefully few prototypes,
39664     which can conflict with char shl_load (); below.
39665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39666     <limits.h> exists even on freestanding compilers.  */
39667
39668 #ifdef __STDC__
39669 # include <limits.h>
39670 #else
39671 # include <assert.h>
39672 #endif
39673
39674 #undef shl_load
39675
39676 /* Override any GCC internal prototype to avoid an error.
39677    Use char because int might match the return type of a GCC
39678    builtin and then its argument prototype would still apply.  */
39679 #ifdef __cplusplus
39680 extern "C"
39681 #endif
39682 char shl_load ();
39683 /* The GNU C library defines this for functions which it implements
39684     to always fail with ENOSYS.  Some functions are actually named
39685     something starting with __ and the normal name is an alias.  */
39686 #if defined __stub_shl_load || defined __stub___shl_load
39687 choke me
39688 #endif
39689
39690 int
39691 main ()
39692 {
39693 return shl_load ();
39694   ;
39695   return 0;
39696 }
39697 _ACEOF
39698 rm -f conftest.$ac_objext conftest$ac_exeext
39699 if { (ac_try="$ac_link"
39700 case "(($ac_try" in
39701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39702   *) ac_try_echo=$ac_try;;
39703 esac
39704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39705 $as_echo "$ac_try_echo") >&5
39706   (eval "$ac_link") 2>conftest.er1
39707   ac_status=$?
39708   grep -v '^ *+' conftest.er1 >conftest.err
39709   rm -f conftest.er1
39710   cat conftest.err >&5
39711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39712   (exit $ac_status); } && {
39713          test -z "$ac_c_werror_flag" ||
39714          test ! -s conftest.err
39715        } && test -s conftest$ac_exeext && {
39716          test "$cross_compiling" = yes ||
39717          $as_test_x conftest$ac_exeext
39718        }; then
39719   ac_cv_func_shl_load=yes
39720 else
39721   $as_echo "$as_me: failed program was:" >&5
39722 sed 's/^/| /' conftest.$ac_ext >&5
39723
39724         ac_cv_func_shl_load=no
39725 fi
39726
39727 rm -rf conftest.dSYM
39728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39729       conftest$ac_exeext conftest.$ac_ext
39730 fi
39731 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
39732 $as_echo "$ac_cv_func_shl_load" >&6; }
39733 if test "x$ac_cv_func_shl_load" = x""yes; then
39734   lt_cv_dlopen="shl_load"
39735 else
39736   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
39737 $as_echo_n "checking for shl_load in -ldld... " >&6; }
39738 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
39739   $as_echo_n "(cached) " >&6
39740 else
39741   ac_check_lib_save_LIBS=$LIBS
39742 LIBS="-ldld  $LIBS"
39743 cat >conftest.$ac_ext <<_ACEOF
39744 /* confdefs.h.  */
39745 _ACEOF
39746 cat confdefs.h >>conftest.$ac_ext
39747 cat >>conftest.$ac_ext <<_ACEOF
39748 /* end confdefs.h.  */
39749
39750 /* Override any GCC internal prototype to avoid an error.
39751    Use char because int might match the return type of a GCC
39752    builtin and then its argument prototype would still apply.  */
39753 #ifdef __cplusplus
39754 extern "C"
39755 #endif
39756 char shl_load ();
39757 int
39758 main ()
39759 {
39760 return shl_load ();
39761   ;
39762   return 0;
39763 }
39764 _ACEOF
39765 rm -f conftest.$ac_objext conftest$ac_exeext
39766 if { (ac_try="$ac_link"
39767 case "(($ac_try" in
39768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39769   *) ac_try_echo=$ac_try;;
39770 esac
39771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39772 $as_echo "$ac_try_echo") >&5
39773   (eval "$ac_link") 2>conftest.er1
39774   ac_status=$?
39775   grep -v '^ *+' conftest.er1 >conftest.err
39776   rm -f conftest.er1
39777   cat conftest.err >&5
39778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39779   (exit $ac_status); } && {
39780          test -z "$ac_c_werror_flag" ||
39781          test ! -s conftest.err
39782        } && test -s conftest$ac_exeext && {
39783          test "$cross_compiling" = yes ||
39784          $as_test_x conftest$ac_exeext
39785        }; then
39786   ac_cv_lib_dld_shl_load=yes
39787 else
39788   $as_echo "$as_me: failed program was:" >&5
39789 sed 's/^/| /' conftest.$ac_ext >&5
39790
39791         ac_cv_lib_dld_shl_load=no
39792 fi
39793
39794 rm -rf conftest.dSYM
39795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39796       conftest$ac_exeext conftest.$ac_ext
39797 LIBS=$ac_check_lib_save_LIBS
39798 fi
39799 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
39800 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
39801 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
39802   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
39803 else
39804   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
39805 $as_echo_n "checking for dlopen... " >&6; }
39806 if test "${ac_cv_func_dlopen+set}" = set; then
39807   $as_echo_n "(cached) " >&6
39808 else
39809   cat >conftest.$ac_ext <<_ACEOF
39810 /* confdefs.h.  */
39811 _ACEOF
39812 cat confdefs.h >>conftest.$ac_ext
39813 cat >>conftest.$ac_ext <<_ACEOF
39814 /* end confdefs.h.  */
39815 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
39816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39817 #define dlopen innocuous_dlopen
39818
39819 /* System header to define __stub macros and hopefully few prototypes,
39820     which can conflict with char dlopen (); below.
39821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39822     <limits.h> exists even on freestanding compilers.  */
39823
39824 #ifdef __STDC__
39825 # include <limits.h>
39826 #else
39827 # include <assert.h>
39828 #endif
39829
39830 #undef dlopen
39831
39832 /* Override any GCC internal prototype to avoid an error.
39833    Use char because int might match the return type of a GCC
39834    builtin and then its argument prototype would still apply.  */
39835 #ifdef __cplusplus
39836 extern "C"
39837 #endif
39838 char dlopen ();
39839 /* The GNU C library defines this for functions which it implements
39840     to always fail with ENOSYS.  Some functions are actually named
39841     something starting with __ and the normal name is an alias.  */
39842 #if defined __stub_dlopen || defined __stub___dlopen
39843 choke me
39844 #endif
39845
39846 int
39847 main ()
39848 {
39849 return dlopen ();
39850   ;
39851   return 0;
39852 }
39853 _ACEOF
39854 rm -f conftest.$ac_objext conftest$ac_exeext
39855 if { (ac_try="$ac_link"
39856 case "(($ac_try" in
39857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39858   *) ac_try_echo=$ac_try;;
39859 esac
39860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39861 $as_echo "$ac_try_echo") >&5
39862   (eval "$ac_link") 2>conftest.er1
39863   ac_status=$?
39864   grep -v '^ *+' conftest.er1 >conftest.err
39865   rm -f conftest.er1
39866   cat conftest.err >&5
39867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39868   (exit $ac_status); } && {
39869          test -z "$ac_c_werror_flag" ||
39870          test ! -s conftest.err
39871        } && test -s conftest$ac_exeext && {
39872          test "$cross_compiling" = yes ||
39873          $as_test_x conftest$ac_exeext
39874        }; then
39875   ac_cv_func_dlopen=yes
39876 else
39877   $as_echo "$as_me: failed program was:" >&5
39878 sed 's/^/| /' conftest.$ac_ext >&5
39879
39880         ac_cv_func_dlopen=no
39881 fi
39882
39883 rm -rf conftest.dSYM
39884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39885       conftest$ac_exeext conftest.$ac_ext
39886 fi
39887 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
39888 $as_echo "$ac_cv_func_dlopen" >&6; }
39889 if test "x$ac_cv_func_dlopen" = x""yes; then
39890   lt_cv_dlopen="dlopen"
39891 else
39892   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39893 $as_echo_n "checking for dlopen in -ldl... " >&6; }
39894 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39895   $as_echo_n "(cached) " >&6
39896 else
39897   ac_check_lib_save_LIBS=$LIBS
39898 LIBS="-ldl  $LIBS"
39899 cat >conftest.$ac_ext <<_ACEOF
39900 /* confdefs.h.  */
39901 _ACEOF
39902 cat confdefs.h >>conftest.$ac_ext
39903 cat >>conftest.$ac_ext <<_ACEOF
39904 /* end confdefs.h.  */
39905
39906 /* Override any GCC internal prototype to avoid an error.
39907    Use char because int might match the return type of a GCC
39908    builtin and then its argument prototype would still apply.  */
39909 #ifdef __cplusplus
39910 extern "C"
39911 #endif
39912 char dlopen ();
39913 int
39914 main ()
39915 {
39916 return dlopen ();
39917   ;
39918   return 0;
39919 }
39920 _ACEOF
39921 rm -f conftest.$ac_objext conftest$ac_exeext
39922 if { (ac_try="$ac_link"
39923 case "(($ac_try" in
39924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39925   *) ac_try_echo=$ac_try;;
39926 esac
39927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39928 $as_echo "$ac_try_echo") >&5
39929   (eval "$ac_link") 2>conftest.er1
39930   ac_status=$?
39931   grep -v '^ *+' conftest.er1 >conftest.err
39932   rm -f conftest.er1
39933   cat conftest.err >&5
39934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39935   (exit $ac_status); } && {
39936          test -z "$ac_c_werror_flag" ||
39937          test ! -s conftest.err
39938        } && test -s conftest$ac_exeext && {
39939          test "$cross_compiling" = yes ||
39940          $as_test_x conftest$ac_exeext
39941        }; then
39942   ac_cv_lib_dl_dlopen=yes
39943 else
39944   $as_echo "$as_me: failed program was:" >&5
39945 sed 's/^/| /' conftest.$ac_ext >&5
39946
39947         ac_cv_lib_dl_dlopen=no
39948 fi
39949
39950 rm -rf conftest.dSYM
39951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39952       conftest$ac_exeext conftest.$ac_ext
39953 LIBS=$ac_check_lib_save_LIBS
39954 fi
39955 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
39956 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
39957 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
39958   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
39959 else
39960   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
39961 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
39962 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
39963   $as_echo_n "(cached) " >&6
39964 else
39965   ac_check_lib_save_LIBS=$LIBS
39966 LIBS="-lsvld  $LIBS"
39967 cat >conftest.$ac_ext <<_ACEOF
39968 /* confdefs.h.  */
39969 _ACEOF
39970 cat confdefs.h >>conftest.$ac_ext
39971 cat >>conftest.$ac_ext <<_ACEOF
39972 /* end confdefs.h.  */
39973
39974 /* Override any GCC internal prototype to avoid an error.
39975    Use char because int might match the return type of a GCC
39976    builtin and then its argument prototype would still apply.  */
39977 #ifdef __cplusplus
39978 extern "C"
39979 #endif
39980 char dlopen ();
39981 int
39982 main ()
39983 {
39984 return dlopen ();
39985   ;
39986   return 0;
39987 }
39988 _ACEOF
39989 rm -f conftest.$ac_objext conftest$ac_exeext
39990 if { (ac_try="$ac_link"
39991 case "(($ac_try" in
39992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39993   *) ac_try_echo=$ac_try;;
39994 esac
39995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39996 $as_echo "$ac_try_echo") >&5
39997   (eval "$ac_link") 2>conftest.er1
39998   ac_status=$?
39999   grep -v '^ *+' conftest.er1 >conftest.err
40000   rm -f conftest.er1
40001   cat conftest.err >&5
40002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40003   (exit $ac_status); } && {
40004          test -z "$ac_c_werror_flag" ||
40005          test ! -s conftest.err
40006        } && test -s conftest$ac_exeext && {
40007          test "$cross_compiling" = yes ||
40008          $as_test_x conftest$ac_exeext
40009        }; then
40010   ac_cv_lib_svld_dlopen=yes
40011 else
40012   $as_echo "$as_me: failed program was:" >&5
40013 sed 's/^/| /' conftest.$ac_ext >&5
40014
40015         ac_cv_lib_svld_dlopen=no
40016 fi
40017
40018 rm -rf conftest.dSYM
40019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40020       conftest$ac_exeext conftest.$ac_ext
40021 LIBS=$ac_check_lib_save_LIBS
40022 fi
40023 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
40024 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
40025 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
40026   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
40027 else
40028   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
40029 $as_echo_n "checking for dld_link in -ldld... " >&6; }
40030 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
40031   $as_echo_n "(cached) " >&6
40032 else
40033   ac_check_lib_save_LIBS=$LIBS
40034 LIBS="-ldld  $LIBS"
40035 cat >conftest.$ac_ext <<_ACEOF
40036 /* confdefs.h.  */
40037 _ACEOF
40038 cat confdefs.h >>conftest.$ac_ext
40039 cat >>conftest.$ac_ext <<_ACEOF
40040 /* end confdefs.h.  */
40041
40042 /* Override any GCC internal prototype to avoid an error.
40043    Use char because int might match the return type of a GCC
40044    builtin and then its argument prototype would still apply.  */
40045 #ifdef __cplusplus
40046 extern "C"
40047 #endif
40048 char dld_link ();
40049 int
40050 main ()
40051 {
40052 return dld_link ();
40053   ;
40054   return 0;
40055 }
40056 _ACEOF
40057 rm -f conftest.$ac_objext conftest$ac_exeext
40058 if { (ac_try="$ac_link"
40059 case "(($ac_try" in
40060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40061   *) ac_try_echo=$ac_try;;
40062 esac
40063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40064 $as_echo "$ac_try_echo") >&5
40065   (eval "$ac_link") 2>conftest.er1
40066   ac_status=$?
40067   grep -v '^ *+' conftest.er1 >conftest.err
40068   rm -f conftest.er1
40069   cat conftest.err >&5
40070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40071   (exit $ac_status); } && {
40072          test -z "$ac_c_werror_flag" ||
40073          test ! -s conftest.err
40074        } && test -s conftest$ac_exeext && {
40075          test "$cross_compiling" = yes ||
40076          $as_test_x conftest$ac_exeext
40077        }; then
40078   ac_cv_lib_dld_dld_link=yes
40079 else
40080   $as_echo "$as_me: failed program was:" >&5
40081 sed 's/^/| /' conftest.$ac_ext >&5
40082
40083         ac_cv_lib_dld_dld_link=no
40084 fi
40085
40086 rm -rf conftest.dSYM
40087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40088       conftest$ac_exeext conftest.$ac_ext
40089 LIBS=$ac_check_lib_save_LIBS
40090 fi
40091 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
40092 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
40093 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
40094   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
40095 fi
40096
40097
40098 fi
40099
40100
40101 fi
40102
40103
40104 fi
40105
40106
40107 fi
40108
40109
40110 fi
40111
40112     ;;
40113   esac
40114
40115   if test "x$lt_cv_dlopen" != xno; then
40116     enable_dlopen=yes
40117   else
40118     enable_dlopen=no
40119   fi
40120
40121   case $lt_cv_dlopen in
40122   dlopen)
40123     save_CPPFLAGS="$CPPFLAGS"
40124     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
40125
40126     save_LDFLAGS="$LDFLAGS"
40127     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
40128
40129     save_LIBS="$LIBS"
40130     LIBS="$lt_cv_dlopen_libs $LIBS"
40131
40132     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
40133 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
40134 if test "${lt_cv_dlopen_self+set}" = set; then
40135   $as_echo_n "(cached) " >&6
40136 else
40137           if test "$cross_compiling" = yes; then :
40138   lt_cv_dlopen_self=cross
40139 else
40140   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
40141   lt_status=$lt_dlunknown
40142   cat > conftest.$ac_ext <<EOF
40143 #line 40143 "configure"
40144 #include "confdefs.h"
40145
40146 #if HAVE_DLFCN_H
40147 #include <dlfcn.h>
40148 #endif
40149
40150 #include <stdio.h>
40151
40152 #ifdef RTLD_GLOBAL
40153 #  define LT_DLGLOBAL           RTLD_GLOBAL
40154 #else
40155 #  ifdef DL_GLOBAL
40156 #    define LT_DLGLOBAL         DL_GLOBAL
40157 #  else
40158 #    define LT_DLGLOBAL         0
40159 #  endif
40160 #endif
40161
40162 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
40163    find out it does not work in some platform. */
40164 #ifndef LT_DLLAZY_OR_NOW
40165 #  ifdef RTLD_LAZY
40166 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
40167 #  else
40168 #    ifdef DL_LAZY
40169 #      define LT_DLLAZY_OR_NOW          DL_LAZY
40170 #    else
40171 #      ifdef RTLD_NOW
40172 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
40173 #      else
40174 #        ifdef DL_NOW
40175 #          define LT_DLLAZY_OR_NOW      DL_NOW
40176 #        else
40177 #          define LT_DLLAZY_OR_NOW      0
40178 #        endif
40179 #      endif
40180 #    endif
40181 #  endif
40182 #endif
40183
40184 #ifdef __cplusplus
40185 extern "C" void exit (int);
40186 #endif
40187
40188 void fnord() { int i=42;}
40189 int main ()
40190 {
40191   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
40192   int status = $lt_dlunknown;
40193
40194   if (self)
40195     {
40196       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
40197       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
40198       /* dlclose (self); */
40199     }
40200
40201     exit (status);
40202 }
40203 EOF
40204   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40205   (eval $ac_link) 2>&5
40206   ac_status=$?
40207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40208   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
40209     (./conftest; exit; ) >&5 2>/dev/null
40210     lt_status=$?
40211     case x$lt_status in
40212       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
40213       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
40214       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
40215     esac
40216   else :
40217     # compilation failed
40218     lt_cv_dlopen_self=no
40219   fi
40220 fi
40221 rm -fr conftest*
40222
40223
40224 fi
40225 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
40226 $as_echo "$lt_cv_dlopen_self" >&6; }
40227
40228     if test "x$lt_cv_dlopen_self" = xyes; then
40229       LDFLAGS="$LDFLAGS $link_static_flag"
40230       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
40231 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
40232 if test "${lt_cv_dlopen_self_static+set}" = set; then
40233   $as_echo_n "(cached) " >&6
40234 else
40235           if test "$cross_compiling" = yes; then :
40236   lt_cv_dlopen_self_static=cross
40237 else
40238   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
40239   lt_status=$lt_dlunknown
40240   cat > conftest.$ac_ext <<EOF
40241 #line 40241 "configure"
40242 #include "confdefs.h"
40243
40244 #if HAVE_DLFCN_H
40245 #include <dlfcn.h>
40246 #endif
40247
40248 #include <stdio.h>
40249
40250 #ifdef RTLD_GLOBAL
40251 #  define LT_DLGLOBAL           RTLD_GLOBAL
40252 #else
40253 #  ifdef DL_GLOBAL
40254 #    define LT_DLGLOBAL         DL_GLOBAL
40255 #  else
40256 #    define LT_DLGLOBAL         0
40257 #  endif
40258 #endif
40259
40260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
40261    find out it does not work in some platform. */
40262 #ifndef LT_DLLAZY_OR_NOW
40263 #  ifdef RTLD_LAZY
40264 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
40265 #  else
40266 #    ifdef DL_LAZY
40267 #      define LT_DLLAZY_OR_NOW          DL_LAZY
40268 #    else
40269 #      ifdef RTLD_NOW
40270 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
40271 #      else
40272 #        ifdef DL_NOW
40273 #          define LT_DLLAZY_OR_NOW      DL_NOW
40274 #        else
40275 #          define LT_DLLAZY_OR_NOW      0
40276 #        endif
40277 #      endif
40278 #    endif
40279 #  endif
40280 #endif
40281
40282 #ifdef __cplusplus
40283 extern "C" void exit (int);
40284 #endif
40285
40286 void fnord() { int i=42;}
40287 int main ()
40288 {
40289   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
40290   int status = $lt_dlunknown;
40291
40292   if (self)
40293     {
40294       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
40295       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
40296       /* dlclose (self); */
40297     }
40298
40299     exit (status);
40300 }
40301 EOF
40302   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40303   (eval $ac_link) 2>&5
40304   ac_status=$?
40305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40306   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
40307     (./conftest; exit; ) >&5 2>/dev/null
40308     lt_status=$?
40309     case x$lt_status in
40310       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
40311       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
40312       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
40313     esac
40314   else :
40315     # compilation failed
40316     lt_cv_dlopen_self_static=no
40317   fi
40318 fi
40319 rm -fr conftest*
40320
40321
40322 fi
40323 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
40324 $as_echo "$lt_cv_dlopen_self_static" >&6; }
40325     fi
40326
40327     CPPFLAGS="$save_CPPFLAGS"
40328     LDFLAGS="$save_LDFLAGS"
40329     LIBS="$save_LIBS"
40330     ;;
40331   esac
40332
40333   case $lt_cv_dlopen_self in
40334   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
40335   *) enable_dlopen_self=unknown ;;
40336   esac
40337
40338   case $lt_cv_dlopen_self_static in
40339   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
40340   *) enable_dlopen_self_static=unknown ;;
40341   esac
40342 fi
40343
40344
40345 # Report which librarie types wil actually be built
40346 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
40347 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
40348 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
40349 $as_echo "$can_build_shared" >&6; }
40350
40351 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
40352 $as_echo_n "checking whether to build shared libraries... " >&6; }
40353 test "$can_build_shared" = "no" && enable_shared=no
40354
40355 # On AIX, shared libraries and static libraries use the same namespace, and
40356 # are all built from PIC.
40357 case $host_os in
40358 aix3*)
40359   test "$enable_shared" = yes && enable_static=no
40360   if test -n "$RANLIB"; then
40361     archive_cmds="$archive_cmds~\$RANLIB \$lib"
40362     postinstall_cmds='$RANLIB $lib'
40363   fi
40364   ;;
40365
40366 aix4* | aix5*)
40367   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
40368     test "$enable_shared" = yes && enable_static=no
40369   fi
40370     ;;
40371 esac
40372 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
40373 $as_echo "$enable_shared" >&6; }
40374
40375 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
40376 $as_echo_n "checking whether to build static libraries... " >&6; }
40377 # Make sure either enable_shared or enable_static is yes.
40378 test "$enable_shared" = yes || enable_static=yes
40379 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
40380 $as_echo "$enable_static" >&6; }
40381
40382 # The else clause should only fire when bootstrapping the
40383 # libtool distribution, otherwise you forgot to ship ltmain.sh
40384 # with your package, and you will get complaints that there are
40385 # no rules to generate ltmain.sh.
40386 if test -f "$ltmain"; then
40387   # See if we are running on zsh, and set the options which allow our commands through
40388   # without removal of \ escapes.
40389   if test -n "${ZSH_VERSION+set}" ; then
40390     setopt NO_GLOB_SUBST
40391   fi
40392   # Now quote all the things that may contain metacharacters while being
40393   # careful not to overquote the AC_SUBSTed values.  We take copies of the
40394   # variables and quote the copies for generation of the libtool script.
40395   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
40396     SED SHELL STRIP \
40397     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
40398     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
40399     deplibs_check_method reload_flag reload_cmds need_locks \
40400     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
40401     lt_cv_sys_global_symbol_to_c_name_address \
40402     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
40403     old_postinstall_cmds old_postuninstall_cmds \
40404     compiler \
40405     CC \
40406     LD \
40407     lt_prog_compiler_wl \
40408     lt_prog_compiler_pic \
40409     lt_prog_compiler_static \
40410     lt_prog_compiler_no_builtin_flag \
40411     export_dynamic_flag_spec \
40412     thread_safe_flag_spec \
40413     whole_archive_flag_spec \
40414     enable_shared_with_static_runtimes \
40415     old_archive_cmds \
40416     old_archive_from_new_cmds \
40417     predep_objects \
40418     postdep_objects \
40419     predeps \
40420     postdeps \
40421     compiler_lib_search_path \
40422     archive_cmds \
40423     archive_expsym_cmds \
40424     postinstall_cmds \
40425     postuninstall_cmds \
40426     old_archive_from_expsyms_cmds \
40427     allow_undefined_flag \
40428     no_undefined_flag \
40429     export_symbols_cmds \
40430     hardcode_libdir_flag_spec \
40431     hardcode_libdir_flag_spec_ld \
40432     hardcode_libdir_separator \
40433     hardcode_automatic \
40434     module_cmds \
40435     module_expsym_cmds \
40436     lt_cv_prog_compiler_c_o \
40437     exclude_expsyms \
40438     include_expsyms; do
40439
40440     case $var in
40441     old_archive_cmds | \
40442     old_archive_from_new_cmds | \
40443     archive_cmds | \
40444     archive_expsym_cmds | \
40445     module_cmds | \
40446     module_expsym_cmds | \
40447     old_archive_from_expsyms_cmds | \
40448     export_symbols_cmds | \
40449     extract_expsyms_cmds | reload_cmds | finish_cmds | \
40450     postinstall_cmds | postuninstall_cmds | \
40451     old_postinstall_cmds | old_postuninstall_cmds | \
40452     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
40453       # Double-quote double-evaled strings.
40454       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
40455       ;;
40456     *)
40457       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
40458       ;;
40459     esac
40460   done
40461
40462   case $lt_echo in
40463   *'\$0 --fallback-echo"')
40464     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
40465     ;;
40466   esac
40467
40468 cfgfile="${ofile}T"
40469   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
40470   $rm -f "$cfgfile"
40471   { $as_echo "$as_me:$LINENO: creating $ofile" >&5
40472 $as_echo "$as_me: creating $ofile" >&6;}
40473
40474   cat <<__EOF__ >> "$cfgfile"
40475 #! $SHELL
40476
40477 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
40478 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
40479 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
40480 #
40481 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
40482 # Free Software Foundation, Inc.
40483 #
40484 # This file is part of GNU Libtool:
40485 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
40486 #
40487 # This program is free software; you can redistribute it and/or modify
40488 # it under the terms of the GNU General Public License as published by
40489 # the Free Software Foundation; either version 2 of the License, or
40490 # (at your option) any later version.
40491 #
40492 # This program is distributed in the hope that it will be useful, but
40493 # WITHOUT ANY WARRANTY; without even the implied warranty of
40494 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
40495 # General Public License for more details.
40496 #
40497 # You should have received a copy of the GNU General Public License
40498 # along with this program; if not, write to the Free Software
40499 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
40500 #
40501 # As a special exception to the GNU General Public License, if you
40502 # distribute this file as part of a program that contains a
40503 # configuration script generated by Autoconf, you may include it under
40504 # the same distribution terms that you use for the rest of that program.
40505
40506 # A sed program that does not truncate output.
40507 SED=$lt_SED
40508
40509 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
40510 Xsed="$SED -e 1s/^X//"
40511
40512 # The HP-UX ksh and POSIX shell print the target directory to stdout
40513 # if CDPATH is set.
40514 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
40515
40516 # The names of the tagged configurations supported by this script.
40517 available_tags=
40518
40519 # ### BEGIN LIBTOOL CONFIG
40520
40521 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
40522
40523 # Shell to use when invoking shell scripts.
40524 SHELL=$lt_SHELL
40525
40526 # Whether or not to build shared libraries.
40527 build_libtool_libs=$enable_shared
40528
40529 # Whether or not to build static libraries.
40530 build_old_libs=$enable_static
40531
40532 # Whether or not to add -lc for building shared libraries.
40533 build_libtool_need_lc=$archive_cmds_need_lc
40534
40535 # Whether or not to disallow shared libs when runtime libs are static
40536 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
40537
40538 # Whether or not to optimize for fast installation.
40539 fast_install=$enable_fast_install
40540
40541 # The host system.
40542 host_alias=$host_alias
40543 host=$host
40544 host_os=$host_os
40545
40546 # The build system.
40547 build_alias=$build_alias
40548 build=$build
40549 build_os=$build_os
40550
40551 # An echo program that does not interpret backslashes.
40552 echo=$lt_echo
40553
40554 # The archiver.
40555 AR=$lt_AR
40556 AR_FLAGS=$lt_AR_FLAGS
40557
40558 # A C compiler.
40559 LTCC=$lt_LTCC
40560
40561 # A language-specific compiler.
40562 CC=$lt_compiler
40563
40564 # Is the compiler the GNU C compiler?
40565 with_gcc=$GCC
40566
40567 # An ERE matcher.
40568 EGREP=$lt_EGREP
40569
40570 # The linker used to build libraries.
40571 LD=$lt_LD
40572
40573 # Whether we need hard or soft links.
40574 LN_S=$lt_LN_S
40575
40576 # A BSD-compatible nm program.
40577 NM=$lt_NM
40578
40579 # A symbol stripping program
40580 STRIP=$lt_STRIP
40581
40582 # Used to examine libraries when file_magic_cmd begins "file"
40583 MAGIC_CMD=$MAGIC_CMD
40584
40585 # Used on cygwin: DLL creation program.
40586 DLLTOOL="$DLLTOOL"
40587
40588 # Used on cygwin: object dumper.
40589 OBJDUMP="$OBJDUMP"
40590
40591 # Used on cygwin: assembler.
40592 AS="$AS"
40593
40594 # The name of the directory that contains temporary libtool files.
40595 objdir=$objdir
40596
40597 # How to create reloadable object files.
40598 reload_flag=$lt_reload_flag
40599 reload_cmds=$lt_reload_cmds
40600
40601 # How to pass a linker flag through the compiler.
40602 wl=$lt_lt_prog_compiler_wl
40603
40604 # Object file suffix (normally "o").
40605 objext="$ac_objext"
40606
40607 # Old archive suffix (normally "a").
40608 libext="$libext"
40609
40610 # Shared library suffix (normally ".so").
40611 shrext_cmds='$shrext_cmds'
40612
40613 # Executable file suffix (normally "").
40614 exeext="$exeext"
40615
40616 # Additional compiler flags for building library objects.
40617 pic_flag=$lt_lt_prog_compiler_pic
40618 pic_mode=$pic_mode
40619
40620 # What is the maximum length of a command?
40621 max_cmd_len=$lt_cv_sys_max_cmd_len
40622
40623 # Does compiler simultaneously support -c and -o options?
40624 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
40625
40626 # Must we lock files when doing compilation?
40627 need_locks=$lt_need_locks
40628
40629 # Do we need the lib prefix for modules?
40630 need_lib_prefix=$need_lib_prefix
40631
40632 # Do we need a version for libraries?
40633 need_version=$need_version
40634
40635 # Whether dlopen is supported.
40636 dlopen_support=$enable_dlopen
40637
40638 # Whether dlopen of programs is supported.
40639 dlopen_self=$enable_dlopen_self
40640
40641 # Whether dlopen of statically linked programs is supported.
40642 dlopen_self_static=$enable_dlopen_self_static
40643
40644 # Compiler flag to prevent dynamic linking.
40645 link_static_flag=$lt_lt_prog_compiler_static
40646
40647 # Compiler flag to turn off builtin functions.
40648 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
40649
40650 # Compiler flag to allow reflexive dlopens.
40651 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
40652
40653 # Compiler flag to generate shared objects directly from archives.
40654 whole_archive_flag_spec=$lt_whole_archive_flag_spec
40655
40656 # Compiler flag to generate thread-safe objects.
40657 thread_safe_flag_spec=$lt_thread_safe_flag_spec
40658
40659 # Library versioning type.
40660 version_type=$version_type
40661
40662 # Format of library name prefix.
40663 libname_spec=$lt_libname_spec
40664
40665 # List of archive names.  First name is the real one, the rest are links.
40666 # The last name is the one that the linker finds with -lNAME.
40667 library_names_spec=$lt_library_names_spec
40668
40669 # The coded name of the library, if different from the real name.
40670 soname_spec=$lt_soname_spec
40671
40672 # Commands used to build and install an old-style archive.
40673 RANLIB=$lt_RANLIB
40674 old_archive_cmds=$lt_old_archive_cmds
40675 old_postinstall_cmds=$lt_old_postinstall_cmds
40676 old_postuninstall_cmds=$lt_old_postuninstall_cmds
40677
40678 # Create an old-style archive from a shared archive.
40679 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
40680
40681 # Create a temporary old-style archive to link instead of a shared archive.
40682 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
40683
40684 # Commands used to build and install a shared archive.
40685 archive_cmds=$lt_archive_cmds
40686 archive_expsym_cmds=$lt_archive_expsym_cmds
40687 postinstall_cmds=$lt_postinstall_cmds
40688 postuninstall_cmds=$lt_postuninstall_cmds
40689
40690 # Commands used to build a loadable module (assumed same as above if empty)
40691 module_cmds=$lt_module_cmds
40692 module_expsym_cmds=$lt_module_expsym_cmds
40693
40694 # Commands to strip libraries.
40695 old_striplib=$lt_old_striplib
40696 striplib=$lt_striplib
40697
40698 # Dependencies to place before the objects being linked to create a
40699 # shared library.
40700 predep_objects=$lt_predep_objects
40701
40702 # Dependencies to place after the objects being linked to create a
40703 # shared library.
40704 postdep_objects=$lt_postdep_objects
40705
40706 # Dependencies to place before the objects being linked to create a
40707 # shared library.
40708 predeps=$lt_predeps
40709
40710 # Dependencies to place after the objects being linked to create a
40711 # shared library.
40712 postdeps=$lt_postdeps
40713
40714 # The library search path used internally by the compiler when linking
40715 # a shared library.
40716 compiler_lib_search_path=$lt_compiler_lib_search_path
40717
40718 # Method to check whether dependent libraries are shared objects.
40719 deplibs_check_method=$lt_deplibs_check_method
40720
40721 # Command to use when deplibs_check_method == file_magic.
40722 file_magic_cmd=$lt_file_magic_cmd
40723
40724 # Flag that allows shared libraries with undefined symbols to be built.
40725 allow_undefined_flag=$lt_allow_undefined_flag
40726
40727 # Flag that forces no undefined symbols.
40728 no_undefined_flag=$lt_no_undefined_flag
40729
40730 # Commands used to finish a libtool library installation in a directory.
40731 finish_cmds=$lt_finish_cmds
40732
40733 # Same as above, but a single script fragment to be evaled but not shown.
40734 finish_eval=$lt_finish_eval
40735
40736 # Take the output of nm and produce a listing of raw symbols and C names.
40737 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
40738
40739 # Transform the output of nm in a proper C declaration
40740 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
40741
40742 # Transform the output of nm in a C name address pair
40743 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
40744
40745 # This is the shared library runtime path variable.
40746 runpath_var=$runpath_var
40747
40748 # This is the shared library path variable.
40749 shlibpath_var=$shlibpath_var
40750
40751 # Is shlibpath searched before the hard-coded library search path?
40752 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
40753
40754 # How to hardcode a shared library path into an executable.
40755 hardcode_action=$hardcode_action
40756
40757 # Whether we should hardcode library paths into libraries.
40758 hardcode_into_libs=$hardcode_into_libs
40759
40760 # Flag to hardcode \$libdir into a binary during linking.
40761 # This must work even if \$libdir does not exist.
40762 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
40763
40764 # If ld is used when linking, flag to hardcode \$libdir into
40765 # a binary during linking. This must work even if \$libdir does
40766 # not exist.
40767 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
40768
40769 # Whether we need a single -rpath flag with a separated argument.
40770 hardcode_libdir_separator=$lt_hardcode_libdir_separator
40771
40772 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
40773 # resulting binary.
40774 hardcode_direct=$hardcode_direct
40775
40776 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
40777 # resulting binary.
40778 hardcode_minus_L=$hardcode_minus_L
40779
40780 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
40781 # the resulting binary.
40782 hardcode_shlibpath_var=$hardcode_shlibpath_var
40783
40784 # Set to yes if building a shared library automatically hardcodes DIR into the library
40785 # and all subsequent libraries and executables linked against it.
40786 hardcode_automatic=$hardcode_automatic
40787
40788 # Variables whose values should be saved in libtool wrapper scripts and
40789 # restored at relink time.
40790 variables_saved_for_relink="$variables_saved_for_relink"
40791
40792 # Whether libtool must link a program against all its dependency libraries.
40793 link_all_deplibs=$link_all_deplibs
40794
40795 # Compile-time system search path for libraries
40796 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
40797
40798 # Run-time system search path for libraries
40799 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
40800
40801 # Fix the shell variable \$srcfile for the compiler.
40802 fix_srcfile_path="$fix_srcfile_path"
40803
40804 # Set to yes if exported symbols are required.
40805 always_export_symbols=$always_export_symbols
40806
40807 # The commands to list exported symbols.
40808 export_symbols_cmds=$lt_export_symbols_cmds
40809
40810 # The commands to extract the exported symbol list from a shared archive.
40811 extract_expsyms_cmds=$lt_extract_expsyms_cmds
40812
40813 # Symbols that should not be listed in the preloaded symbols.
40814 exclude_expsyms=$lt_exclude_expsyms
40815
40816 # Symbols that must always be exported.
40817 include_expsyms=$lt_include_expsyms
40818
40819 # ### END LIBTOOL CONFIG
40820
40821 __EOF__
40822
40823
40824   case $host_os in
40825   aix3*)
40826     cat <<\EOF >> "$cfgfile"
40827
40828 # AIX sometimes has problems with the GCC collect2 program.  For some
40829 # reason, if we set the COLLECT_NAMES environment variable, the problems
40830 # vanish in a puff of smoke.
40831 if test "X${COLLECT_NAMES+set}" != Xset; then
40832   COLLECT_NAMES=
40833   export COLLECT_NAMES
40834 fi
40835 EOF
40836     ;;
40837   esac
40838
40839   # We use sed instead of cat because bash on DJGPP gets confused if
40840   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
40841   # text mode, it properly converts lines to CR/LF.  This bash problem
40842   # is reportedly fixed, but why not run on old versions too?
40843   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
40844
40845   mv -f "$cfgfile" "$ofile" || \
40846     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
40847   chmod +x "$ofile"
40848
40849 else
40850   # If there is no Makefile yet, we rely on a make rule to execute
40851   # `config.status --recheck' to rerun these tests and create the
40852   # libtool script then.
40853   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
40854   if test -f "$ltmain_in"; then
40855     test -f Makefile && make "$ltmain"
40856   fi
40857 fi
40858
40859
40860 ac_ext=c
40861 ac_cpp='$CPP $CPPFLAGS'
40862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40865
40866 CC="$lt_save_CC"
40867
40868
40869 # Check whether --with-tags was given.
40870 if test "${with_tags+set}" = set; then
40871   withval=$with_tags; tagnames="$withval"
40872 fi
40873
40874
40875 if test -f "$ltmain" && test -n "$tagnames"; then
40876   if test ! -f "${ofile}"; then
40877
40878     { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
40879 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
40880
40881
40882     cat <<AAW_EOF >>config.warnings
40883 output file \`$ofile' does not exist
40884 AAW_EOF
40885
40886
40887   fi
40888
40889   if test -z "$LTCC"; then
40890     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
40891     if test -z "$LTCC"; then
40892
40893     { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
40894 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
40895
40896
40897     cat <<AAW_EOF >>config.warnings
40898 output file \`$ofile' does not look like a libtool script
40899 AAW_EOF
40900
40901
40902     else
40903
40904     { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
40905 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
40906
40907
40908     cat <<AAW_EOF >>config.warnings
40909 using \`LTCC=$LTCC', extracted from \`$ofile'
40910 AAW_EOF
40911
40912
40913     fi
40914   fi
40915
40916   # Extract list of available tagged configurations in $ofile.
40917   # Note that this assumes the entire list is on one line.
40918   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
40919
40920   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
40921   for tagname in $tagnames; do
40922     IFS="$lt_save_ifs"
40923     # Check whether tagname contains only valid characters
40924     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
40925     "") ;;
40926     *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
40927 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
40928    { (exit 1); exit 1; }; }
40929         ;;
40930     esac
40931
40932     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
40933     then
40934       { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
40935 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
40936    { (exit 1); exit 1; }; }
40937     fi
40938
40939     # Update the list of available tags.
40940     if test -n "$tagname"; then
40941       echo appending configuration tag \"$tagname\" to $ofile
40942
40943       case $tagname in
40944       CXX)
40945         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
40946             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
40947             (test "X$CXX" != "Xg++"))) ; then
40948           ac_ext=cpp
40949 ac_cpp='$CXXCPP $CPPFLAGS'
40950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40953
40954
40955
40956
40957 archive_cmds_need_lc_CXX=no
40958 allow_undefined_flag_CXX=
40959 always_export_symbols_CXX=no
40960 archive_expsym_cmds_CXX=
40961 export_dynamic_flag_spec_CXX=
40962 hardcode_direct_CXX=no
40963 hardcode_libdir_flag_spec_CXX=
40964 hardcode_libdir_flag_spec_ld_CXX=
40965 hardcode_libdir_separator_CXX=
40966 hardcode_minus_L_CXX=no
40967 hardcode_automatic_CXX=no
40968 module_cmds_CXX=
40969 module_expsym_cmds_CXX=
40970 link_all_deplibs_CXX=unknown
40971 old_archive_cmds_CXX=$old_archive_cmds
40972 no_undefined_flag_CXX=
40973 whole_archive_flag_spec_CXX=
40974 enable_shared_with_static_runtimes_CXX=no
40975
40976 # Dependencies to place before and after the object being linked:
40977 predep_objects_CXX=
40978 postdep_objects_CXX=
40979 predeps_CXX=
40980 postdeps_CXX=
40981 compiler_lib_search_path_CXX=
40982
40983 # Source file extension for C++ test sources.
40984 ac_ext=cpp
40985
40986 # Object file extension for compiled C++ test sources.
40987 objext=o
40988 objext_CXX=$objext
40989
40990 # Code to be used in simple compile tests
40991 lt_simple_compile_test_code="int some_variable = 0;\n"
40992
40993 # Code to be used in simple link tests
40994 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
40995
40996 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
40997
40998 # If no C compiler was specified, use CC.
40999 LTCC=${LTCC-"$CC"}
41000
41001 # Allow CC to be a program name with arguments.
41002 compiler=$CC
41003
41004
41005 # save warnings/boilerplate of simple test code
41006 ac_outfile=conftest.$ac_objext
41007 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
41008 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
41009 _lt_compiler_boilerplate=`cat conftest.err`
41010 $rm conftest*
41011
41012 ac_outfile=conftest.$ac_objext
41013 printf "$lt_simple_link_test_code" >conftest.$ac_ext
41014 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
41015 _lt_linker_boilerplate=`cat conftest.err`
41016 $rm conftest*
41017
41018
41019 # Allow CC to be a program name with arguments.
41020 lt_save_CC=$CC
41021 lt_save_LD=$LD
41022 lt_save_GCC=$GCC
41023 GCC=$GXX
41024 lt_save_with_gnu_ld=$with_gnu_ld
41025 lt_save_path_LD=$lt_cv_path_LD
41026 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
41027   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
41028 else
41029   unset lt_cv_prog_gnu_ld
41030 fi
41031 if test -n "${lt_cv_path_LDCXX+set}"; then
41032   lt_cv_path_LD=$lt_cv_path_LDCXX
41033 else
41034   unset lt_cv_path_LD
41035 fi
41036 test -z "${LDCXX+set}" || LD=$LDCXX
41037 CC=${CXX-"c++"}
41038 compiler=$CC
41039 compiler_CXX=$CC
41040 for cc_temp in $compiler""; do
41041   case $cc_temp in
41042     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
41043     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
41044     \-*) ;;
41045     *) break;;
41046   esac
41047 done
41048 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
41049
41050
41051 # We don't want -fno-exception wen compiling C++ code, so set the
41052 # no_builtin_flag separately
41053 if test "$GXX" = yes; then
41054   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
41055 else
41056   lt_prog_compiler_no_builtin_flag_CXX=
41057 fi
41058
41059 if test "$GXX" = yes; then
41060   # Set up default GNU C++ configuration
41061
41062
41063 # Check whether --with-gnu-ld was given.
41064 if test "${with_gnu_ld+set}" = set; then
41065   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
41066 else
41067   with_gnu_ld=no
41068 fi
41069
41070 ac_prog=ld
41071 if test "$GCC" = yes; then
41072   # Check if gcc -print-prog-name=ld gives a path.
41073   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
41074 $as_echo_n "checking for ld used by $CC... " >&6; }
41075   case $host in
41076   *-*-mingw*)
41077     # gcc leaves a trailing carriage return which upsets mingw
41078     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
41079   *)
41080     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
41081   esac
41082   case $ac_prog in
41083     # Accept absolute paths.
41084     [\\/]* | ?:[\\/]*)
41085       re_direlt='/[^/][^/]*/\.\./'
41086       # Canonicalize the pathname of ld
41087       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
41088       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
41089         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
41090       done
41091       test -z "$LD" && LD="$ac_prog"
41092       ;;
41093   "")
41094     # If it fails, then pretend we aren't using GCC.
41095     ac_prog=ld
41096     ;;
41097   *)
41098     # If it is relative, then search for the first ld in PATH.
41099     with_gnu_ld=unknown
41100     ;;
41101   esac
41102 elif test "$with_gnu_ld" = yes; then
41103   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
41104 $as_echo_n "checking for GNU ld... " >&6; }
41105 else
41106   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
41107 $as_echo_n "checking for non-GNU ld... " >&6; }
41108 fi
41109 if test "${lt_cv_path_LD+set}" = set; then
41110   $as_echo_n "(cached) " >&6
41111 else
41112   if test -z "$LD"; then
41113   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
41114   for ac_dir in $PATH; do
41115     IFS="$lt_save_ifs"
41116     test -z "$ac_dir" && ac_dir=.
41117     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
41118       lt_cv_path_LD="$ac_dir/$ac_prog"
41119       # Check to see if the program is GNU ld.  I'd rather use --version,
41120       # but apparently some variants of GNU ld only accept -v.
41121       # Break only if it was the GNU/non-GNU ld that we prefer.
41122       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
41123       *GNU* | *'with BFD'*)
41124         test "$with_gnu_ld" != no && break
41125         ;;
41126       *)
41127         test "$with_gnu_ld" != yes && break
41128         ;;
41129       esac
41130     fi
41131   done
41132   IFS="$lt_save_ifs"
41133 else
41134   lt_cv_path_LD="$LD" # Let the user override the test with a path.
41135 fi
41136 fi
41137
41138 LD="$lt_cv_path_LD"
41139 if test -n "$LD"; then
41140   { $as_echo "$as_me:$LINENO: result: $LD" >&5
41141 $as_echo "$LD" >&6; }
41142 else
41143   { $as_echo "$as_me:$LINENO: result: no" >&5
41144 $as_echo "no" >&6; }
41145 fi
41146 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
41147 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
41148    { (exit 1); exit 1; }; }
41149 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
41150 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
41151 if test "${lt_cv_prog_gnu_ld+set}" = set; then
41152   $as_echo_n "(cached) " >&6
41153 else
41154   # I'd rather use --version here, but apparently some GNU lds only accept -v.
41155 case `$LD -v 2>&1 </dev/null` in
41156 *GNU* | *'with BFD'*)
41157   lt_cv_prog_gnu_ld=yes
41158   ;;
41159 *)
41160   lt_cv_prog_gnu_ld=no
41161   ;;
41162 esac
41163 fi
41164 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
41165 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
41166 with_gnu_ld=$lt_cv_prog_gnu_ld
41167
41168
41169
41170   # Check if GNU C++ uses GNU ld as the underlying linker, since the
41171   # archiving commands below assume that GNU ld is being used.
41172   if test "$with_gnu_ld" = yes; then
41173     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
41174     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
41175
41176     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
41177     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
41178
41179     # If archive_cmds runs LD, not CC, wlarc should be empty
41180     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
41181     #     investigate it a little bit more. (MM)
41182     wlarc='${wl}'
41183
41184     # ancient GNU ld didn't support --whole-archive et. al.
41185     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
41186         grep 'no-whole-archive' > /dev/null; then
41187       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
41188     else
41189       whole_archive_flag_spec_CXX=
41190     fi
41191   else
41192     with_gnu_ld=no
41193     wlarc=
41194
41195     # A generic and very simple default shared library creation
41196     # command for GNU C++ for the case where it uses the native
41197     # linker, instead of GNU ld.  If possible, this setting should
41198     # overridden to take advantage of the native linker features on
41199     # the platform it is being used on.
41200     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
41201   fi
41202
41203   # Commands to make compiler produce verbose output that lists
41204   # what "hidden" libraries, object files and flags are used when
41205   # linking a shared library.
41206   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
41207
41208 else
41209   GXX=no
41210   with_gnu_ld=no
41211   wlarc=
41212 fi
41213
41214 # PORTME: fill in a description of your system's C++ link characteristics
41215 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
41216 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
41217 ld_shlibs_CXX=yes
41218 case $host_os in
41219   aix3*)
41220     # FIXME: insert proper C++ library support
41221     ld_shlibs_CXX=no
41222     ;;
41223   aix4* | aix5*)
41224     if test "$host_cpu" = ia64; then
41225       # On IA64, the linker does run time linking by default, so we don't
41226       # have to do anything special.
41227       aix_use_runtimelinking=no
41228       exp_sym_flag='-Bexport'
41229       no_entry_flag=""
41230     else
41231       aix_use_runtimelinking=no
41232
41233       # Test if we are trying to use run time linking or normal
41234       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
41235       # need to do runtime linking.
41236       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
41237         for ld_flag in $LDFLAGS; do
41238           case $ld_flag in
41239           *-brtl*)
41240             aix_use_runtimelinking=yes
41241             break
41242             ;;
41243           esac
41244         done
41245       esac
41246
41247       exp_sym_flag='-bexport'
41248       no_entry_flag='-bnoentry'
41249     fi
41250
41251     # When large executables or shared objects are built, AIX ld can
41252     # have problems creating the table of contents.  If linking a library
41253     # or program results in "error TOC overflow" add -mminimal-toc to
41254     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
41255     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
41256
41257     archive_cmds_CXX=''
41258     hardcode_direct_CXX=yes
41259     hardcode_libdir_separator_CXX=':'
41260     link_all_deplibs_CXX=yes
41261
41262     if test "$GXX" = yes; then
41263       case $host_os in aix4.[012]|aix4.[012].*)
41264       # We only want to do this on AIX 4.2 and lower, the check
41265       # below for broken collect2 doesn't work under 4.3+
41266         collect2name=`${CC} -print-prog-name=collect2`
41267         if test -f "$collect2name" && \
41268            strings "$collect2name" | grep resolve_lib_name >/dev/null
41269         then
41270           # We have reworked collect2
41271           hardcode_direct_CXX=yes
41272         else
41273           # We have old collect2
41274           hardcode_direct_CXX=unsupported
41275           # It fails to find uninstalled libraries when the uninstalled
41276           # path is not listed in the libpath.  Setting hardcode_minus_L
41277           # to unsupported forces relinking
41278           hardcode_minus_L_CXX=yes
41279           hardcode_libdir_flag_spec_CXX='-L$libdir'
41280           hardcode_libdir_separator_CXX=
41281         fi
41282       esac
41283       shared_flag='-shared'
41284       if test "$aix_use_runtimelinking" = yes; then
41285         shared_flag="$shared_flag "'${wl}-G'
41286       fi
41287     else
41288       # not using gcc
41289       if test "$host_cpu" = ia64; then
41290         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
41291         # chokes on -Wl,-G. The following line is correct:
41292         shared_flag='-G'
41293       else
41294         if test "$aix_use_runtimelinking" = yes; then
41295           shared_flag='${wl}-G'
41296         else
41297           shared_flag='${wl}-bM:SRE'
41298         fi
41299       fi
41300     fi
41301
41302     # It seems that -bexpall does not export symbols beginning with
41303     # underscore (_), so it is better to generate a list of symbols to export.
41304     always_export_symbols_CXX=yes
41305     if test "$aix_use_runtimelinking" = yes; then
41306       # Warning - without using the other runtime loading flags (-brtl),
41307       # -berok will link without error, but may produce a broken library.
41308       allow_undefined_flag_CXX='-berok'
41309       # Determine the default libpath from the value encoded in an empty executable.
41310       cat >conftest.$ac_ext <<_ACEOF
41311 /* confdefs.h.  */
41312 _ACEOF
41313 cat confdefs.h >>conftest.$ac_ext
41314 cat >>conftest.$ac_ext <<_ACEOF
41315 /* end confdefs.h.  */
41316
41317 int
41318 main ()
41319 {
41320
41321   ;
41322   return 0;
41323 }
41324 _ACEOF
41325 rm -f conftest.$ac_objext conftest$ac_exeext
41326 if { (ac_try="$ac_link"
41327 case "(($ac_try" in
41328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41329   *) ac_try_echo=$ac_try;;
41330 esac
41331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41332 $as_echo "$ac_try_echo") >&5
41333   (eval "$ac_link") 2>conftest.er1
41334   ac_status=$?
41335   grep -v '^ *+' conftest.er1 >conftest.err
41336   rm -f conftest.er1
41337   cat conftest.err >&5
41338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41339   (exit $ac_status); } && {
41340          test -z "$ac_cxx_werror_flag" ||
41341          test ! -s conftest.err
41342        } && test -s conftest$ac_exeext && {
41343          test "$cross_compiling" = yes ||
41344          $as_test_x conftest$ac_exeext
41345        }; then
41346
41347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
41348 }'`
41349 # Check for a 64-bit object if we didn't find anything.
41350 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
41351 }'`; fi
41352 else
41353   $as_echo "$as_me: failed program was:" >&5
41354 sed 's/^/| /' conftest.$ac_ext >&5
41355
41356
41357 fi
41358
41359 rm -rf conftest.dSYM
41360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41361       conftest$ac_exeext conftest.$ac_ext
41362 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
41363
41364       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
41365
41366       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
41367      else
41368       if test "$host_cpu" = ia64; then
41369         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
41370         allow_undefined_flag_CXX="-z nodefs"
41371         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
41372       else
41373         # Determine the default libpath from the value encoded in an empty executable.
41374         cat >conftest.$ac_ext <<_ACEOF
41375 /* confdefs.h.  */
41376 _ACEOF
41377 cat confdefs.h >>conftest.$ac_ext
41378 cat >>conftest.$ac_ext <<_ACEOF
41379 /* end confdefs.h.  */
41380
41381 int
41382 main ()
41383 {
41384
41385   ;
41386   return 0;
41387 }
41388 _ACEOF
41389 rm -f conftest.$ac_objext conftest$ac_exeext
41390 if { (ac_try="$ac_link"
41391 case "(($ac_try" in
41392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41393   *) ac_try_echo=$ac_try;;
41394 esac
41395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41396 $as_echo "$ac_try_echo") >&5
41397   (eval "$ac_link") 2>conftest.er1
41398   ac_status=$?
41399   grep -v '^ *+' conftest.er1 >conftest.err
41400   rm -f conftest.er1
41401   cat conftest.err >&5
41402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41403   (exit $ac_status); } && {
41404          test -z "$ac_cxx_werror_flag" ||
41405          test ! -s conftest.err
41406        } && test -s conftest$ac_exeext && {
41407          test "$cross_compiling" = yes ||
41408          $as_test_x conftest$ac_exeext
41409        }; then
41410
41411 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
41412 }'`
41413 # Check for a 64-bit object if we didn't find anything.
41414 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
41415 }'`; fi
41416 else
41417   $as_echo "$as_me: failed program was:" >&5
41418 sed 's/^/| /' conftest.$ac_ext >&5
41419
41420
41421 fi
41422
41423 rm -rf conftest.dSYM
41424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41425       conftest$ac_exeext conftest.$ac_ext
41426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
41427
41428         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
41429         # Warning - without using the other run time loading flags,
41430         # -berok will link without error, but may produce a broken library.
41431         no_undefined_flag_CXX=' ${wl}-bernotok'
41432         allow_undefined_flag_CXX=' ${wl}-berok'
41433         # -bexpall does not export symbols beginning with underscore (_)
41434         always_export_symbols_CXX=yes
41435         # Exported symbols can be pulled into shared objects from archives
41436         whole_archive_flag_spec_CXX=' '
41437         archive_cmds_need_lc_CXX=yes
41438         # This is similar to how AIX traditionally builds its shared libraries.
41439         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
41440       fi
41441     fi
41442     ;;
41443   chorus*)
41444     case $cc_basename in
41445       *)
41446         # FIXME: insert proper C++ library support
41447         ld_shlibs_CXX=no
41448         ;;
41449     esac
41450     ;;
41451
41452
41453   cygwin* | mingw* | pw32*)
41454     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
41455     # as there is no search path for DLLs.
41456     hardcode_libdir_flag_spec_CXX='-L$libdir'
41457     allow_undefined_flag_CXX=unsupported
41458     always_export_symbols_CXX=no
41459     enable_shared_with_static_runtimes_CXX=yes
41460
41461     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
41462       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
41463       # If the export-symbols file already is a .def file (1st line
41464       # is EXPORTS), use it as is; otherwise, prepend...
41465       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
41466         cp $export_symbols $output_objdir/$soname.def;
41467       else
41468         echo EXPORTS > $output_objdir/$soname.def;
41469         cat $export_symbols >> $output_objdir/$soname.def;
41470       fi~
41471       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
41472     else
41473       ld_shlibs_CXX=no
41474     fi
41475   ;;
41476       darwin* | rhapsody*)
41477         case $host_os in
41478         rhapsody* | darwin1.[012])
41479          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
41480          ;;
41481        *) # Darwin 1.3 on
41482          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
41483            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
41484          else
41485            case ${MACOSX_DEPLOYMENT_TARGET} in
41486              10.[012])
41487                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
41488                ;;
41489              10.*)
41490                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
41491                ;;
41492            esac
41493          fi
41494          ;;
41495         esac
41496       archive_cmds_need_lc_CXX=no
41497       hardcode_direct_CXX=no
41498       hardcode_automatic_CXX=yes
41499       hardcode_shlibpath_var_CXX=unsupported
41500       whole_archive_flag_spec_CXX=''
41501       link_all_deplibs_CXX=yes
41502
41503     if test "$GXX" = yes ; then
41504       lt_int_apple_cc_single_mod=no
41505       output_verbose_link_cmd='echo'
41506       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
41507        lt_int_apple_cc_single_mod=yes
41508       fi
41509       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
41510        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
41511       else
41512           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
41513         fi
41514         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
41515         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
41516           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
41517             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
41518           else
41519             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
41520           fi
41521             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
41522       else
41523       case $cc_basename in
41524         xlc*)
41525          output_verbose_link_cmd='echo'
41526           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
41527           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
41528           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
41529           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
41530           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
41531           ;;
41532        *)
41533          ld_shlibs_CXX=no
41534           ;;
41535       esac
41536       fi
41537         ;;
41538
41539   dgux*)
41540     case $cc_basename in
41541       ec++*)
41542         # FIXME: insert proper C++ library support
41543         ld_shlibs_CXX=no
41544         ;;
41545       ghcx*)
41546         # Green Hills C++ Compiler
41547         # FIXME: insert proper C++ library support
41548         ld_shlibs_CXX=no
41549         ;;
41550       *)
41551         # FIXME: insert proper C++ library support
41552         ld_shlibs_CXX=no
41553         ;;
41554     esac
41555     ;;
41556   freebsd[12]*)
41557     # C++ shared libraries reported to be fairly broken before switch to ELF
41558     ld_shlibs_CXX=no
41559     ;;
41560   freebsd-elf*)
41561     archive_cmds_need_lc_CXX=no
41562     ;;
41563   freebsd* | kfreebsd*-gnu | dragonfly*)
41564     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
41565     # conventions
41566     ld_shlibs_CXX=yes
41567     ;;
41568   gnu*)
41569     ;;
41570   hpux9*)
41571     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
41572     hardcode_libdir_separator_CXX=:
41573     export_dynamic_flag_spec_CXX='${wl}-E'
41574     hardcode_direct_CXX=yes
41575     hardcode_minus_L_CXX=yes # Not in the search PATH,
41576                                 # but as the default
41577                                 # location of the library.
41578
41579     case $cc_basename in
41580     CC*)
41581       # FIXME: insert proper C++ library support
41582       ld_shlibs_CXX=no
41583       ;;
41584     aCC*)
41585       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
41586       # Commands to make compiler produce verbose output that lists
41587       # what "hidden" libraries, object files and flags are used when
41588       # linking a shared library.
41589       #
41590       # There doesn't appear to be a way to prevent this compiler from
41591       # explicitly linking system object files so we need to strip them
41592       # from the output so that they don't get included in the library
41593       # dependencies.
41594       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
41595       ;;
41596     *)
41597       if test "$GXX" = yes; then
41598         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
41599       else
41600         # FIXME: insert proper C++ library support
41601         ld_shlibs_CXX=no
41602       fi
41603       ;;
41604     esac
41605     ;;
41606   hpux10*|hpux11*)
41607     if test $with_gnu_ld = no; then
41608       case $host_cpu in
41609       hppa*64*)
41610         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
41611         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
41612         hardcode_libdir_separator_CXX=:
41613         ;;
41614       ia64*)
41615         hardcode_libdir_flag_spec_CXX='-L$libdir'
41616         ;;
41617       *)
41618         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
41619         hardcode_libdir_separator_CXX=:
41620         export_dynamic_flag_spec_CXX='${wl}-E'
41621         ;;
41622       esac
41623     fi
41624     case $host_cpu in
41625     hppa*64*)
41626       hardcode_direct_CXX=no
41627       hardcode_shlibpath_var_CXX=no
41628       ;;
41629     ia64*)
41630       hardcode_direct_CXX=no
41631       hardcode_shlibpath_var_CXX=no
41632       hardcode_minus_L_CXX=yes # Not in the search PATH,
41633                                               # but as the default
41634                                               # location of the library.
41635       ;;
41636     *)
41637       hardcode_direct_CXX=yes
41638       hardcode_minus_L_CXX=yes # Not in the search PATH,
41639                                               # but as the default
41640                                               # location of the library.
41641       ;;
41642     esac
41643
41644     case $cc_basename in
41645       CC*)
41646         # FIXME: insert proper C++ library support
41647         ld_shlibs_CXX=no
41648         ;;
41649       aCC*)
41650         case $host_cpu in
41651         hppa*64*|ia64*)
41652           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
41653           ;;
41654         *)
41655           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
41656           ;;
41657         esac
41658         # Commands to make compiler produce verbose output that lists
41659         # what "hidden" libraries, object files and flags are used when
41660         # linking a shared library.
41661         #
41662         # There doesn't appear to be a way to prevent this compiler from
41663         # explicitly linking system object files so we need to strip them
41664         # from the output so that they don't get included in the library
41665         # dependencies.
41666         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
41667         ;;
41668       *)
41669         if test "$GXX" = yes; then
41670           if test $with_gnu_ld = no; then
41671             case $host_cpu in
41672             ia64*|hppa*64*)
41673               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
41674               ;;
41675             *)
41676               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
41677               ;;
41678             esac
41679           fi
41680         else
41681           # FIXME: insert proper C++ library support
41682           ld_shlibs_CXX=no
41683         fi
41684         ;;
41685     esac
41686     ;;
41687   irix5* | irix6*)
41688     case $cc_basename in
41689       CC*)
41690         # SGI C++
41691         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
41692
41693         # Archives containing C++ object files must be created using
41694         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
41695         # necessary to make sure instantiated templates are included
41696         # in the archive.
41697         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
41698         ;;
41699       *)
41700         if test "$GXX" = yes; then
41701           if test "$with_gnu_ld" = no; then
41702             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
41703           else
41704             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
41705           fi
41706         fi
41707         link_all_deplibs_CXX=yes
41708         ;;
41709     esac
41710     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
41711     hardcode_libdir_separator_CXX=:
41712     ;;
41713   linux*)
41714     case $cc_basename in
41715       KCC*)
41716         # Kuck and Associates, Inc. (KAI) C++ Compiler
41717
41718         # KCC will only create a shared library if the output file
41719         # ends with ".so" (or ".sl" for HP-UX), so rename the library
41720         # to its proper name (with version) after linking.
41721         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
41722         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
41723         # Commands to make compiler produce verbose output that lists
41724         # what "hidden" libraries, object files and flags are used when
41725         # linking a shared library.
41726         #
41727         # There doesn't appear to be a way to prevent this compiler from
41728         # explicitly linking system object files so we need to strip them
41729         # from the output so that they don't get included in the library
41730         # dependencies.
41731         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
41732
41733         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
41734         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
41735
41736         # Archives containing C++ object files must be created using
41737         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
41738         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
41739         ;;
41740       icpc*)
41741         # Intel C++
41742         with_gnu_ld=yes
41743         # version 8.0 and above of icpc choke on multiply defined symbols
41744         # if we add $predep_objects and $postdep_objects, however 7.1 and
41745         # earlier do not add the objects themselves.
41746         case `$CC -V 2>&1` in
41747         *"Version 7."*)
41748           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
41749           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
41750           ;;
41751         *)  # Version 8.0 or newer
41752           tmp_idyn=
41753           case $host_cpu in
41754             ia64*) tmp_idyn=' -i_dynamic';;
41755           esac
41756           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
41757           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
41758           ;;
41759         esac
41760         archive_cmds_need_lc_CXX=no
41761         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
41762         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
41763         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
41764         ;;
41765       pgCC*)
41766         # Portland Group C++ compiler
41767         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
41768         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
41769
41770         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
41771         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
41772         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
41773         ;;
41774       cxx*)
41775         # Compaq C++
41776         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
41777         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
41778
41779         runpath_var=LD_RUN_PATH
41780         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
41781         hardcode_libdir_separator_CXX=:
41782
41783         # Commands to make compiler produce verbose output that lists
41784         # what "hidden" libraries, object files and flags are used when
41785         # linking a shared library.
41786         #
41787         # There doesn't appear to be a way to prevent this compiler from
41788         # explicitly linking system object files so we need to strip them
41789         # from the output so that they don't get included in the library
41790         # dependencies.
41791         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
41792         ;;
41793     esac
41794     ;;
41795   lynxos*)
41796     # FIXME: insert proper C++ library support
41797     ld_shlibs_CXX=no
41798     ;;
41799   m88k*)
41800     # FIXME: insert proper C++ library support
41801     ld_shlibs_CXX=no
41802     ;;
41803   mvs*)
41804     case $cc_basename in
41805       cxx*)
41806         # FIXME: insert proper C++ library support
41807         ld_shlibs_CXX=no
41808         ;;
41809       *)
41810         # FIXME: insert proper C++ library support
41811         ld_shlibs_CXX=no
41812         ;;
41813     esac
41814     ;;
41815   netbsd*)
41816     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
41817       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
41818       wlarc=
41819       hardcode_libdir_flag_spec_CXX='-R$libdir'
41820       hardcode_direct_CXX=yes
41821       hardcode_shlibpath_var_CXX=no
41822     fi
41823     # Workaround some broken pre-1.5 toolchains
41824     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
41825     ;;
41826   openbsd2*)
41827     # C++ shared libraries are fairly broken
41828     ld_shlibs_CXX=no
41829     ;;
41830   openbsd*)
41831     hardcode_direct_CXX=yes
41832     hardcode_shlibpath_var_CXX=no
41833     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
41834     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
41835     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
41836       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
41837       export_dynamic_flag_spec_CXX='${wl}-E'
41838       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
41839     fi
41840     output_verbose_link_cmd='echo'
41841     ;;
41842   osf3*)
41843     case $cc_basename in
41844       KCC*)
41845         # Kuck and Associates, Inc. (KAI) C++ Compiler
41846
41847         # KCC will only create a shared library if the output file
41848         # ends with ".so" (or ".sl" for HP-UX), so rename the library
41849         # to its proper name (with version) after linking.
41850         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
41851
41852         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
41853         hardcode_libdir_separator_CXX=:
41854
41855         # Archives containing C++ object files must be created using
41856         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
41857         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
41858
41859         ;;
41860       RCC*)
41861         # Rational C++ 2.4.1
41862         # FIXME: insert proper C++ library support
41863         ld_shlibs_CXX=no
41864         ;;
41865       cxx*)
41866         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
41867         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
41868
41869         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
41870         hardcode_libdir_separator_CXX=:
41871
41872         # Commands to make compiler produce verbose output that lists
41873         # what "hidden" libraries, object files and flags are used when
41874         # linking a shared library.
41875         #
41876         # There doesn't appear to be a way to prevent this compiler from
41877         # explicitly linking system object files so we need to strip them
41878         # from the output so that they don't get included in the library
41879         # dependencies.
41880         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
41881         ;;
41882       *)
41883         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
41884           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
41885           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
41886
41887           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
41888           hardcode_libdir_separator_CXX=:
41889
41890           # Commands to make compiler produce verbose output that lists
41891           # what "hidden" libraries, object files and flags are used when
41892           # linking a shared library.
41893           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
41894
41895         else
41896           # FIXME: insert proper C++ library support
41897           ld_shlibs_CXX=no
41898         fi
41899         ;;
41900     esac
41901     ;;
41902   osf4* | osf5*)
41903     case $cc_basename in
41904       KCC*)
41905         # Kuck and Associates, Inc. (KAI) C++ Compiler
41906
41907         # KCC will only create a shared library if the output file
41908         # ends with ".so" (or ".sl" for HP-UX), so rename the library
41909         # to its proper name (with version) after linking.
41910         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
41911
41912         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
41913         hardcode_libdir_separator_CXX=:
41914
41915         # Archives containing C++ object files must be created using
41916         # the KAI C++ compiler.
41917         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
41918         ;;
41919       RCC*)
41920         # Rational C++ 2.4.1
41921         # FIXME: insert proper C++ library support
41922         ld_shlibs_CXX=no
41923         ;;
41924       cxx*)
41925         allow_undefined_flag_CXX=' -expect_unresolved \*'
41926         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
41927         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
41928           echo "-hidden">> $lib.exp~
41929           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
41930           $rm $lib.exp'
41931
41932         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
41933         hardcode_libdir_separator_CXX=:
41934
41935         # Commands to make compiler produce verbose output that lists
41936         # what "hidden" libraries, object files and flags are used when
41937         # linking a shared library.
41938         #
41939         # There doesn't appear to be a way to prevent this compiler from
41940         # explicitly linking system object files so we need to strip them
41941         # from the output so that they don't get included in the library
41942         # dependencies.
41943         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
41944         ;;
41945       *)
41946         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
41947           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
41948          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
41949
41950           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
41951           hardcode_libdir_separator_CXX=:
41952
41953           # Commands to make compiler produce verbose output that lists
41954           # what "hidden" libraries, object files and flags are used when
41955           # linking a shared library.
41956           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
41957
41958         else
41959           # FIXME: insert proper C++ library support
41960           ld_shlibs_CXX=no
41961         fi
41962         ;;
41963     esac
41964     ;;
41965   psos*)
41966     # FIXME: insert proper C++ library support
41967     ld_shlibs_CXX=no
41968     ;;
41969   sco*)
41970     archive_cmds_need_lc_CXX=no
41971     case $cc_basename in
41972       CC*)
41973         # FIXME: insert proper C++ library support
41974         ld_shlibs_CXX=no
41975         ;;
41976       *)
41977         # FIXME: insert proper C++ library support
41978         ld_shlibs_CXX=no
41979         ;;
41980     esac
41981     ;;
41982   sunos4*)
41983     case $cc_basename in
41984       CC*)
41985         # Sun C++ 4.x
41986         # FIXME: insert proper C++ library support
41987         ld_shlibs_CXX=no
41988         ;;
41989       lcc*)
41990         # Lucid
41991         # FIXME: insert proper C++ library support
41992         ld_shlibs_CXX=no
41993         ;;
41994       *)
41995         # FIXME: insert proper C++ library support
41996         ld_shlibs_CXX=no
41997         ;;
41998     esac
41999     ;;
42000   solaris*)
42001     case $cc_basename in
42002       CC*)
42003         # Sun C++ 4.2, 5.x and Centerline C++
42004         archive_cmds_need_lc_CXX=yes
42005         no_undefined_flag_CXX=' -zdefs'
42006         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
42007         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
42008         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
42009
42010         hardcode_libdir_flag_spec_CXX='-R$libdir'
42011         hardcode_shlibpath_var_CXX=no
42012         case $host_os in
42013           solaris2.[0-5] | solaris2.[0-5].*) ;;
42014           *)
42015             # The C++ compiler is used as linker so we must use $wl
42016             # flag to pass the commands to the underlying system
42017             # linker. We must also pass each convience library through
42018             # to the system linker between allextract/defaultextract.
42019             # The C++ compiler will combine linker options so we
42020             # cannot just pass the convience library names through
42021             # without $wl.
42022             # Supported since Solaris 2.6 (maybe 2.5.1?)
42023             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
42024             ;;
42025         esac
42026         link_all_deplibs_CXX=yes
42027
42028         output_verbose_link_cmd='echo'
42029
42030         # Archives containing C++ object files must be created using
42031         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
42032         # necessary to make sure instantiated templates are included
42033         # in the archive.
42034         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
42035         ;;
42036       gcx*)
42037         # Green Hills C++ Compiler
42038         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
42039
42040         # The C++ compiler must be used to create the archive.
42041         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
42042         ;;
42043       *)
42044         # GNU C++ compiler with Solaris linker
42045         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
42046           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
42047           if $CC --version | grep -v '^2\.7' > /dev/null; then
42048             if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
42049               archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
42050               archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
42051                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
42052
42053               # Commands to make compiler produce verbose output that lists
42054               # what "hidden" libraries, object files and flags are used when
42055               # linking a shared library.
42056               output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
42057               lt_prog_compiler_static_CXX='-static'
42058             else
42059               archive_cmds_CXX='$CC ${wl}-G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
42060               archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
42061                 $CC ${wl}-G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
42062
42063               # Commands to make compiler produce verbose output that lists
42064               # what "hidden" libraries, object files and flags are used when
42065               # linking a shared library.
42066               output_verbose_link_cmd="$CC ${wl}-G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
42067               lt_prog_compiler_static_CXX='${wl}-Bstatic'
42068             fi
42069           else
42070             # g++ 2.7 appears to require `-G' NOT `-shared' on this
42071             # platform.
42072             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
42073             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
42074                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
42075
42076             # Commands to make compiler produce verbose output that lists
42077             # what "hidden" libraries, object files and flags are used when
42078             # linking a shared library.
42079             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
42080           fi
42081
42082           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
42083         fi
42084         ;;
42085     esac
42086     ;;
42087   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
42088     archive_cmds_need_lc_CXX=no
42089     ;;
42090   tandem*)
42091     case $cc_basename in
42092       NCC*)
42093         # NonStop-UX NCC 3.20
42094         # FIXME: insert proper C++ library support
42095         ld_shlibs_CXX=no
42096         ;;
42097       *)
42098         # FIXME: insert proper C++ library support
42099         ld_shlibs_CXX=no
42100         ;;
42101     esac
42102     ;;
42103   vxworks*)
42104     # FIXME: insert proper C++ library support
42105     ld_shlibs_CXX=no
42106     ;;
42107   *)
42108     # FIXME: insert proper C++ library support
42109     ld_shlibs_CXX=no
42110     ;;
42111 esac
42112 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
42113 $as_echo "$ld_shlibs_CXX" >&6; }
42114 test "$ld_shlibs_CXX" = no && can_build_shared=no
42115
42116 GCC_CXX="$GXX"
42117 LD_CXX="$LD"
42118
42119 ## CAVEAT EMPTOR:
42120 ## There is no encapsulation within the following macros, do not change
42121 ## the running order or otherwise move them around unless you know exactly
42122 ## what you are doing...
42123
42124 cat > conftest.$ac_ext <<EOF
42125 class Foo
42126 {
42127 public:
42128   Foo (void) { a = 0; }
42129 private:
42130   int a;
42131 };
42132 EOF
42133
42134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42135   (eval $ac_compile) 2>&5
42136   ac_status=$?
42137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42138   (exit $ac_status); }; then
42139   # Parse the compiler output and extract the necessary
42140   # objects, libraries and library flags.
42141
42142   # Sentinel used to keep track of whether or not we are before
42143   # the conftest object file.
42144   pre_test_object_deps_done=no
42145
42146   # The `*' in the case matches for architectures that use `case' in
42147   # $output_verbose_cmd can trigger glob expansion during the loop
42148   # eval without this substitution.
42149   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
42150
42151   for p in `eval $output_verbose_link_cmd`; do
42152     case $p in
42153
42154     -L* | -R* | -l*)
42155        # Some compilers place space between "-{L,R}" and the path.
42156        # Remove the space.
42157        if test $p = "-L" \
42158           || test $p = "-R"; then
42159          prev=$p
42160          continue
42161        else
42162          prev=
42163        fi
42164
42165        if test "$pre_test_object_deps_done" = no; then
42166          case $p in
42167          -L* | -R*)
42168            # Internal compiler library paths should come after those
42169            # provided the user.  The postdeps already come after the
42170            # user supplied libs so there is no need to process them.
42171            if test -z "$compiler_lib_search_path_CXX"; then
42172              compiler_lib_search_path_CXX="${prev}${p}"
42173            else
42174              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
42175            fi
42176            ;;
42177          # The "-l" case would never come before the object being
42178          # linked, so don't bother handling this case.
42179          esac
42180        else
42181          if test -z "$postdeps_CXX"; then
42182            postdeps_CXX="${prev}${p}"
42183          else
42184            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
42185          fi
42186        fi
42187        ;;
42188
42189     *.$objext)
42190        # This assumes that the test object file only shows up
42191        # once in the compiler output.
42192        if test "$p" = "conftest.$objext"; then
42193          pre_test_object_deps_done=yes
42194          continue
42195        fi
42196
42197        if test "$pre_test_object_deps_done" = no; then
42198          if test -z "$predep_objects_CXX"; then
42199            predep_objects_CXX="$p"
42200          else
42201            predep_objects_CXX="$predep_objects_CXX $p"
42202          fi
42203        else
42204          if test -z "$postdep_objects_CXX"; then
42205            postdep_objects_CXX="$p"
42206          else
42207            postdep_objects_CXX="$postdep_objects_CXX $p"
42208          fi
42209        fi
42210        ;;
42211
42212     *) ;; # Ignore the rest.
42213
42214     esac
42215   done
42216
42217   # Clean up.
42218   rm -f a.out a.exe
42219 else
42220   echo "libtool.m4: error: problem compiling CXX test program"
42221 fi
42222
42223 $rm -f confest.$objext
42224
42225 # PORTME: override above test on systems where it is broken
42226 case $host_os in
42227 solaris*)
42228   case $cc_basename in
42229   CC*)
42230     # Adding this requires a known-good setup of shared libraries for
42231     # Sun compiler versions before 5.6, else PIC objects from an old
42232     # archive will be linked into the output, leading to subtle bugs.
42233     postdeps_CXX='-lCstd -lCrun'
42234     ;;
42235   esac
42236 esac
42237
42238
42239 case " $postdeps_CXX " in
42240 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
42241 esac
42242
42243 lt_prog_compiler_wl_CXX=
42244 lt_prog_compiler_pic_CXX=
42245 lt_prog_compiler_static_CXX=
42246
42247 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
42248 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
42249
42250   # C++ specific cases for pic, static, wl, etc.
42251   if test "$GXX" = yes; then
42252     lt_prog_compiler_wl_CXX='-Wl,'
42253     lt_prog_compiler_static_CXX='-static'
42254
42255     case $host_os in
42256     aix*)
42257       # All AIX code is PIC.
42258       if test "$host_cpu" = ia64; then
42259         # AIX 5 now supports IA64 processor
42260         lt_prog_compiler_static_CXX='-Bstatic'
42261       fi
42262       ;;
42263     amigaos*)
42264       # FIXME: we need at least 68020 code to build shared libraries, but
42265       # adding the `-m68020' flag to GCC prevents building anything better,
42266       # like `-m68040'.
42267       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
42268       ;;
42269     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
42270       # PIC is the default for these OSes.
42271       ;;
42272     mingw* | os2* | pw32*)
42273       # This hack is so that the source file can tell whether it is being
42274       # built for inclusion in a dll (and should export symbols for example).
42275       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
42276       ;;
42277     darwin* | rhapsody*)
42278       # PIC is the default on this platform
42279       # Common symbols not allowed in MH_DYLIB files
42280       lt_prog_compiler_pic_CXX='-fno-common'
42281       ;;
42282     *djgpp*)
42283       # DJGPP does not support shared libraries at all
42284       lt_prog_compiler_pic_CXX=
42285       ;;
42286     sysv4*MP*)
42287       if test -d /usr/nec; then
42288         lt_prog_compiler_pic_CXX=-Kconform_pic
42289       fi
42290       ;;
42291     hpux*)
42292       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
42293       # not for PA HP-UX.
42294       case $host_cpu in
42295       hppa*64*|ia64*)
42296         ;;
42297       *)
42298         lt_prog_compiler_pic_CXX='-fPIC'
42299         ;;
42300       esac
42301       ;;
42302     *)
42303       lt_prog_compiler_pic_CXX='-fPIC'
42304       ;;
42305     esac
42306   else
42307     case $host_os in
42308       aix4* | aix5*)
42309         # All AIX code is PIC.
42310         if test "$host_cpu" = ia64; then
42311           # AIX 5 now supports IA64 processor
42312           lt_prog_compiler_static_CXX='-Bstatic'
42313         else
42314           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
42315         fi
42316         ;;
42317       chorus*)
42318         case $cc_basename in
42319         cxch68*)
42320           # Green Hills C++ Compiler
42321           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
42322           ;;
42323         esac
42324         ;;
42325        darwin*)
42326          # PIC is the default on this platform
42327          # Common symbols not allowed in MH_DYLIB files
42328          case $cc_basename in
42329            xlc*)
42330            lt_prog_compiler_pic_CXX='-qnocommon'
42331            lt_prog_compiler_wl_CXX='-Wl,'
42332            ;;
42333          esac
42334        ;;
42335       dgux*)
42336         case $cc_basename in
42337           ec++*)
42338             lt_prog_compiler_pic_CXX='-KPIC'
42339             ;;
42340           ghcx*)
42341             # Green Hills C++ Compiler
42342             lt_prog_compiler_pic_CXX='-pic'
42343             ;;
42344           *)
42345             ;;
42346         esac
42347         ;;
42348       freebsd* | kfreebsd*-gnu | dragonfly*)
42349         # FreeBSD uses GNU C++
42350         ;;
42351       hpux9* | hpux10* | hpux11*)
42352         case $cc_basename in
42353           CC*)
42354             lt_prog_compiler_wl_CXX='-Wl,'
42355             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
42356             if test "$host_cpu" != ia64; then
42357               lt_prog_compiler_pic_CXX='+Z'
42358             fi
42359             ;;
42360           aCC*)
42361             lt_prog_compiler_wl_CXX='-Wl,'
42362             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
42363             case $host_cpu in
42364             hppa*64*|ia64*)
42365               # +Z the default
42366               ;;
42367             *)
42368               lt_prog_compiler_pic_CXX='+Z'
42369               ;;
42370             esac
42371             ;;
42372           *)
42373             ;;
42374         esac
42375         ;;
42376       irix5* | irix6* | nonstopux*)
42377         case $cc_basename in
42378           CC*)
42379             lt_prog_compiler_wl_CXX='-Wl,'
42380             lt_prog_compiler_static_CXX='-non_shared'
42381             # CC pic flag -KPIC is the default.
42382             ;;
42383           *)
42384             ;;
42385         esac
42386         ;;
42387       linux*)
42388         case $cc_basename in
42389           KCC*)
42390             # KAI C++ Compiler
42391             lt_prog_compiler_wl_CXX='--backend -Wl,'
42392             lt_prog_compiler_pic_CXX='-fPIC'
42393             ;;
42394           icpc* | ecpc*)
42395             # Intel C++
42396             lt_prog_compiler_wl_CXX='-Wl,'
42397             lt_prog_compiler_pic_CXX='-KPIC'
42398             lt_prog_compiler_static_CXX='-static'
42399             ;;
42400           pgCC*)
42401             # Portland Group C++ compiler.
42402             lt_prog_compiler_wl_CXX='-Wl,'
42403             lt_prog_compiler_pic_CXX='-fpic'
42404             lt_prog_compiler_static_CXX='-Bstatic'
42405             ;;
42406           cxx*)
42407             # Compaq C++
42408             # Make sure the PIC flag is empty.  It appears that all Alpha
42409             # Linux and Compaq Tru64 Unix objects are PIC.
42410             lt_prog_compiler_pic_CXX=
42411             lt_prog_compiler_static_CXX='-non_shared'
42412             ;;
42413           *)
42414             ;;
42415         esac
42416         ;;
42417       lynxos*)
42418         ;;
42419       m88k*)
42420         ;;
42421       mvs*)
42422         case $cc_basename in
42423           cxx*)
42424             lt_prog_compiler_pic_CXX='-W c,exportall'
42425             ;;
42426           *)
42427             ;;
42428         esac
42429         ;;
42430       netbsd*)
42431         ;;
42432       osf3* | osf4* | osf5*)
42433         case $cc_basename in
42434           KCC*)
42435             lt_prog_compiler_wl_CXX='--backend -Wl,'
42436             ;;
42437           RCC*)
42438             # Rational C++ 2.4.1
42439             lt_prog_compiler_pic_CXX='-pic'
42440             ;;
42441           cxx*)
42442             # Digital/Compaq C++
42443             lt_prog_compiler_wl_CXX='-Wl,'
42444             # Make sure the PIC flag is empty.  It appears that all Alpha
42445             # Linux and Compaq Tru64 Unix objects are PIC.
42446             lt_prog_compiler_pic_CXX=
42447             lt_prog_compiler_static_CXX='-non_shared'
42448             ;;
42449           *)
42450             ;;
42451         esac
42452         ;;
42453       psos*)
42454         ;;
42455       sco*)
42456         case $cc_basename in
42457           CC*)
42458             lt_prog_compiler_pic_CXX='-fPIC'
42459             ;;
42460           *)
42461             ;;
42462         esac
42463         ;;
42464       solaris*)
42465         case $cc_basename in
42466           CC*)
42467             # Sun C++ 4.2, 5.x and Centerline C++
42468             lt_prog_compiler_pic_CXX='-KPIC'
42469             lt_prog_compiler_static_CXX='-Bstatic'
42470             lt_prog_compiler_wl_CXX='-Qoption ld '
42471             ;;
42472           gcx*)
42473             # Green Hills C++ Compiler
42474             lt_prog_compiler_pic_CXX='-PIC'
42475             ;;
42476           *)
42477             if $CC -v --help 2>/dev/null | grep -- -static  > /dev/null 2> /dev/null; then
42478               lt_prog_compiler_static_CXX='-static'
42479             else
42480               # GCC with Sun linker
42481               lt_prog_compiler_pic_CXX='-KPIC'
42482               lt_prog_compiler_static_CXX='${wl}-Bstatic'
42483             fi
42484             ;;
42485         esac
42486         ;;
42487       sunos4*)
42488         case $cc_basename in
42489           CC*)
42490             # Sun C++ 4.x
42491             lt_prog_compiler_pic_CXX='-pic'
42492             lt_prog_compiler_static_CXX='-Bstatic'
42493             ;;
42494           lcc*)
42495             # Lucid
42496             lt_prog_compiler_pic_CXX='-pic'
42497             ;;
42498           *)
42499             ;;
42500         esac
42501         ;;
42502       tandem*)
42503         case $cc_basename in
42504           NCC*)
42505             # NonStop-UX NCC 3.20
42506             lt_prog_compiler_pic_CXX='-KPIC'
42507             ;;
42508           *)
42509             ;;
42510         esac
42511         ;;
42512       unixware*)
42513         ;;
42514       vxworks*)
42515         ;;
42516       *)
42517         lt_prog_compiler_can_build_shared_CXX=no
42518         ;;
42519     esac
42520   fi
42521
42522 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
42523 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
42524
42525 #
42526 # Check to make sure the PIC flag actually works.
42527 #
42528 if test -n "$lt_prog_compiler_pic_CXX"; then
42529
42530 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
42531 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
42532 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
42533   $as_echo_n "(cached) " >&6
42534 else
42535   lt_prog_compiler_pic_works_CXX=no
42536   ac_outfile=conftest.$ac_objext
42537    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
42538    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
42539    # Insert the option either (1) after the last *FLAGS variable, or
42540    # (2) before a word containing "conftest.", or (3) at the end.
42541    # Note that $ac_compile itself does not contain backslashes and begins
42542    # with a dollar sign (not a hyphen), so the echo should work correctly.
42543    # The option is referenced via a variable to avoid confusing sed.
42544    lt_compile=`echo "$ac_compile" | $SED \
42545    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
42546    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
42547    -e 's:$: $lt_compiler_flag:'`
42548    (eval echo "\"\$as_me:42548: $lt_compile\"" >&5)
42549    (eval "$lt_compile" 2>conftest.err)
42550    ac_status=$?
42551    cat conftest.err >&5
42552    echo "$as_me:42552: \$? = $ac_status" >&5
42553    if (exit $ac_status) && test -s "$ac_outfile"; then
42554      # The compiler can only warn and ignore the option if not recognized
42555      # So say no if there are warnings other than the usual output.
42556      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
42557      $SED '/^$/d' conftest.err >conftest.er2
42558      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
42559        lt_prog_compiler_pic_works_CXX=yes
42560      fi
42561    fi
42562    $rm conftest*
42563
42564 fi
42565 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
42566 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
42567
42568 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
42569     case $lt_prog_compiler_pic_CXX in
42570      "" | " "*) ;;
42571      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
42572      esac
42573 else
42574     lt_prog_compiler_pic_CXX=
42575      lt_prog_compiler_can_build_shared_CXX=no
42576 fi
42577
42578 fi
42579 case $host_os in
42580   # For platforms which do not support PIC, -DPIC is meaningless:
42581   *djgpp*)
42582     lt_prog_compiler_pic_CXX=
42583     ;;
42584   *)
42585     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
42586     ;;
42587 esac
42588
42589 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
42590 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
42591 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
42592   $as_echo_n "(cached) " >&6
42593 else
42594   lt_cv_prog_compiler_c_o_CXX=no
42595    $rm -r conftest 2>/dev/null
42596    mkdir conftest
42597    cd conftest
42598    mkdir out
42599    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
42600
42601    lt_compiler_flag="-o out/conftest2.$ac_objext"
42602    # Insert the option either (1) after the last *FLAGS variable, or
42603    # (2) before a word containing "conftest.", or (3) at the end.
42604    # Note that $ac_compile itself does not contain backslashes and begins
42605    # with a dollar sign (not a hyphen), so the echo should work correctly.
42606    lt_compile=`echo "$ac_compile" | $SED \
42607    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
42608    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
42609    -e 's:$: $lt_compiler_flag:'`
42610    (eval echo "\"\$as_me:42610: $lt_compile\"" >&5)
42611    (eval "$lt_compile" 2>out/conftest.err)
42612    ac_status=$?
42613    cat out/conftest.err >&5
42614    echo "$as_me:42614: \$? = $ac_status" >&5
42615    if (exit $ac_status) && test -s out/conftest2.$ac_objext
42616    then
42617      # The compiler can only warn and ignore the option if not recognized
42618      # So say no if there are warnings
42619      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
42620      $SED '/^$/d' out/conftest.err >out/conftest.er2
42621      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
42622        lt_cv_prog_compiler_c_o_CXX=yes
42623      fi
42624    fi
42625    chmod u+w . 2>&5
42626    $rm conftest*
42627    # SGI C++ compiler will create directory out/ii_files/ for
42628    # template instantiation
42629    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
42630    $rm out/* && rmdir out
42631    cd ..
42632    rmdir conftest
42633    $rm conftest*
42634
42635 fi
42636 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
42637 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
42638
42639
42640 hard_links="nottested"
42641 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
42642   # do not overwrite the value of need_locks provided by the user
42643   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
42644 $as_echo_n "checking if we can lock with hard links... " >&6; }
42645   hard_links=yes
42646   $rm conftest*
42647   ln conftest.a conftest.b 2>/dev/null && hard_links=no
42648   touch conftest.a
42649   ln conftest.a conftest.b 2>&5 || hard_links=no
42650   ln conftest.a conftest.b 2>/dev/null && hard_links=no
42651   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
42652 $as_echo "$hard_links" >&6; }
42653   if test "$hard_links" = no; then
42654
42655     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
42656 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
42657
42658
42659     cat <<AAW_EOF >>config.warnings
42660 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
42661 AAW_EOF
42662
42663
42664     need_locks=warn
42665   fi
42666 else
42667   need_locks=no
42668 fi
42669
42670 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
42671 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
42672
42673   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
42674   case $host_os in
42675   aix4* | aix5*)
42676     # If we're using GNU nm, then we don't want the "-C" option.
42677     # -C means demangle to AIX nm, but means don't demangle with GNU nm
42678     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
42679       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
42680     else
42681       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
42682     fi
42683     ;;
42684   pw32*)
42685     export_symbols_cmds_CXX="$ltdll_cmds"
42686   ;;
42687   cygwin* | mingw*)
42688     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
42689   ;;
42690   *)
42691     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
42692   ;;
42693   esac
42694
42695 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
42696 $as_echo "$ld_shlibs_CXX" >&6; }
42697 test "$ld_shlibs_CXX" = no && can_build_shared=no
42698
42699 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
42700 if test "$GCC" = yes; then
42701   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
42702 fi
42703
42704 #
42705 # Do we need to explicitly link libc?
42706 #
42707 case "x$archive_cmds_need_lc_CXX" in
42708 x|xyes)
42709   # Assume -lc should be added
42710   archive_cmds_need_lc_CXX=yes
42711
42712   if test "$enable_shared" = yes && test "$GCC" = yes; then
42713     case $archive_cmds_CXX in
42714     *'~'*)
42715       # FIXME: we may have to deal with multi-command sequences.
42716       ;;
42717     '$CC '*)
42718       # Test whether the compiler implicitly links with -lc since on some
42719       # systems, -lgcc has to come before -lc. If gcc already passes -lc
42720       # to ld, don't add -lc before -lgcc.
42721       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
42722 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
42723       $rm conftest*
42724       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
42725
42726       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42727   (eval $ac_compile) 2>&5
42728   ac_status=$?
42729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42730   (exit $ac_status); } 2>conftest.err; then
42731         soname=conftest
42732         lib=conftest
42733         libobjs=conftest.$ac_objext
42734         deplibs=
42735         wl=$lt_prog_compiler_wl_CXX
42736         compiler_flags=-v
42737         linker_flags=-v
42738         verstring=
42739         output_objdir=.
42740         libname=conftest
42741         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
42742         allow_undefined_flag_CXX=
42743         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
42744   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
42745   ac_status=$?
42746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42747   (exit $ac_status); }
42748         then
42749           archive_cmds_need_lc_CXX=no
42750         else
42751           archive_cmds_need_lc_CXX=yes
42752         fi
42753         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
42754       else
42755         cat conftest.err 1>&5
42756       fi
42757       $rm conftest*
42758       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
42759 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
42760       ;;
42761     esac
42762   fi
42763   ;;
42764 esac
42765
42766 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
42767 $as_echo_n "checking dynamic linker characteristics... " >&6; }
42768 library_names_spec=
42769 libname_spec='lib$name'
42770 soname_spec=
42771 shrext_cmds=".so"
42772 postinstall_cmds=
42773 postuninstall_cmds=
42774 finish_cmds=
42775 finish_eval=
42776 shlibpath_var=
42777 shlibpath_overrides_runpath=unknown
42778 version_type=none
42779 dynamic_linker="$host_os ld.so"
42780 sys_lib_dlsearch_path_spec="/lib /usr/lib"
42781 if test "$GCC" = yes; then
42782   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
42783   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
42784     # if the path contains ";" then we assume it to be the separator
42785     # otherwise default to the standard path separator (i.e. ":") - it is
42786     # assumed that no part of a normal pathname contains ";" but that should
42787     # okay in the real world where ";" in dirpaths is itself problematic.
42788     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
42789   else
42790     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
42791   fi
42792 else
42793   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
42794 fi
42795 need_lib_prefix=unknown
42796 hardcode_into_libs=no
42797
42798 # when you set need_version to no, make sure it does not cause -set_version
42799 # flags to be left without arguments
42800 need_version=unknown
42801
42802 case $host_os in
42803 aix3*)
42804   version_type=linux
42805   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
42806   shlibpath_var=LIBPATH
42807
42808   # AIX 3 has no versioning support, so we append a major version to the name.
42809   soname_spec='${libname}${release}${shared_ext}$major'
42810   ;;
42811
42812 aix4* | aix5*)
42813   version_type=linux
42814   need_lib_prefix=no
42815   need_version=no
42816   hardcode_into_libs=yes
42817   if test "$host_cpu" = ia64; then
42818     # AIX 5 supports IA64
42819     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
42820     shlibpath_var=LD_LIBRARY_PATH
42821   else
42822     # With GCC up to 2.95.x, collect2 would create an import file
42823     # for dependence libraries.  The import file would start with
42824     # the line `#! .'.  This would cause the generated library to
42825     # depend on `.', always an invalid library.  This was fixed in
42826     # development snapshots of GCC prior to 3.0.
42827     case $host_os in
42828       aix4 | aix4.[01] | aix4.[01].*)
42829       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
42830            echo ' yes '
42831            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
42832         :
42833       else
42834         can_build_shared=no
42835       fi
42836       ;;
42837     esac
42838     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
42839     # soname into executable. Probably we can add versioning support to
42840     # collect2, so additional links can be useful in future.
42841     if test "$aix_use_runtimelinking" = yes; then
42842       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
42843       # instead of lib<name>.a to let people know that these are not
42844       # typical AIX shared libraries.
42845       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42846     else
42847       # We preserve .a as extension for shared libraries through AIX4.2
42848       # and later when we are not doing run time linking.
42849       library_names_spec='${libname}${release}.a $libname.a'
42850       soname_spec='${libname}${release}${shared_ext}$major'
42851     fi
42852     shlibpath_var=LIBPATH
42853   fi
42854   ;;
42855
42856 amigaos*)
42857   library_names_spec='$libname.ixlibrary $libname.a'
42858   # Create ${libname}_ixlibrary.a entries in /sys/libs.
42859   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'
42860   ;;
42861
42862 beos*)
42863   library_names_spec='${libname}${shared_ext}'
42864   dynamic_linker="$host_os ld.so"
42865   shlibpath_var=LIBRARY_PATH
42866   ;;
42867
42868 bsdi[45]*)
42869   version_type=linux
42870   need_version=no
42871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42872   soname_spec='${libname}${release}${shared_ext}$major'
42873   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
42874   shlibpath_var=LD_LIBRARY_PATH
42875   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
42876   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
42877   # the default ld.so.conf also contains /usr/contrib/lib and
42878   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
42879   # libtool to hard-code these into programs
42880   ;;
42881
42882 cygwin* | mingw* | pw32*)
42883   version_type=windows
42884   shrext_cmds=".dll"
42885   need_version=no
42886   need_lib_prefix=no
42887
42888   case $GCC,$host_os in
42889   yes,cygwin* | yes,mingw* | yes,pw32*)
42890     library_names_spec='$libname.dll.a'
42891     # DLL is installed to $(libdir)/../bin by postinstall_cmds
42892     postinstall_cmds='base_file=`basename \${file}`~
42893       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
42894       dldir=$destdir/`dirname \$dlpath`~
42895       test -d \$dldir || mkdir -p \$dldir~
42896       $install_prog $dir/$dlname \$dldir/$dlname~
42897       chmod a+x \$dldir/$dlname'
42898     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
42899       dlpath=$dir/\$dldll~
42900        $rm \$dlpath'
42901     shlibpath_overrides_runpath=yes
42902
42903     case $host_os in
42904     cygwin*)
42905       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
42906       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
42907       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
42908       ;;
42909     mingw*)
42910       # MinGW DLLs use traditional 'lib' prefix
42911       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
42912       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
42913       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
42914         # It is most probably a Windows format PATH printed by
42915         # mingw gcc, but we are running on Cygwin. Gcc prints its search
42916         # path with ; separators, and with drive letters. We can handle the
42917         # drive letters (cygwin fileutils understands them), so leave them,
42918         # especially as we might pass files found there to a mingw objdump,
42919         # which wouldn't understand a cygwinified path. Ahh.
42920         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
42921       else
42922         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
42923       fi
42924       ;;
42925     pw32*)
42926       # pw32 DLLs use 'pw' prefix rather than 'lib'
42927       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
42928       ;;
42929     esac
42930     ;;
42931
42932   *)
42933     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
42934     ;;
42935   esac
42936   dynamic_linker='Win32 ld.exe'
42937   # FIXME: first we should search . and the directory the executable is in
42938   shlibpath_var=PATH
42939   ;;
42940
42941 darwin* | rhapsody*)
42942   dynamic_linker="$host_os dyld"
42943   version_type=darwin
42944   need_lib_prefix=no
42945   need_version=no
42946   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
42947   soname_spec='${libname}${release}${major}$shared_ext'
42948   shlibpath_overrides_runpath=yes
42949   shlibpath_var=DYLD_LIBRARY_PATH
42950   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
42951   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
42952   if test "$GCC" = yes; then
42953     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
42954   else
42955     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
42956   fi
42957   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
42958   ;;
42959
42960 dgux*)
42961   version_type=linux
42962   need_lib_prefix=no
42963   need_version=no
42964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
42965   soname_spec='${libname}${release}${shared_ext}$major'
42966   shlibpath_var=LD_LIBRARY_PATH
42967   ;;
42968
42969 freebsd1*)
42970   dynamic_linker=no
42971   ;;
42972
42973 kfreebsd*-gnu)
42974   version_type=linux
42975   need_lib_prefix=no
42976   need_version=no
42977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
42978   soname_spec='${libname}${release}${shared_ext}$major'
42979   shlibpath_var=LD_LIBRARY_PATH
42980   shlibpath_overrides_runpath=no
42981   hardcode_into_libs=yes
42982   dynamic_linker='GNU ld.so'
42983   ;;
42984
42985 freebsd* | dragonfly*)
42986   # DragonFly does not have aout.  When/if they implement a new
42987   # versioning mechanism, adjust this.
42988   if test -x /usr/bin/objformat; then
42989     objformat=`/usr/bin/objformat`
42990   else
42991     case $host_os in
42992     freebsd[123]*) objformat=aout ;;
42993     *) objformat=elf ;;
42994     esac
42995   fi
42996   version_type=freebsd-$objformat
42997   case $version_type in
42998     freebsd-elf*)
42999       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
43000       need_version=no
43001       need_lib_prefix=no
43002       ;;
43003     freebsd-*)
43004       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
43005       need_version=yes
43006       ;;
43007   esac
43008   shlibpath_var=LD_LIBRARY_PATH
43009   case $host_os in
43010   freebsd2*)
43011     shlibpath_overrides_runpath=yes
43012     ;;
43013   freebsd3.[01]* | freebsdelf3.[01]*)
43014     shlibpath_overrides_runpath=yes
43015     hardcode_into_libs=yes
43016     ;;
43017   *) # from 3.2 on
43018     shlibpath_overrides_runpath=no
43019     hardcode_into_libs=yes
43020     ;;
43021   esac
43022   ;;
43023
43024 gnu*)
43025   version_type=linux
43026   need_lib_prefix=no
43027   need_version=no
43028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
43029   soname_spec='${libname}${release}${shared_ext}$major'
43030   shlibpath_var=LD_LIBRARY_PATH
43031   hardcode_into_libs=yes
43032   ;;
43033
43034 hpux9* | hpux10* | hpux11*)
43035   # Give a soname corresponding to the major version so that dld.sl refuses to
43036   # link against other versions.
43037   version_type=sunos
43038   need_lib_prefix=no
43039   need_version=no
43040   case $host_cpu in
43041   ia64*)
43042     shrext_cmds='.so'
43043     hardcode_into_libs=yes
43044     dynamic_linker="$host_os dld.so"
43045     shlibpath_var=LD_LIBRARY_PATH
43046     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
43047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43048     soname_spec='${libname}${release}${shared_ext}$major'
43049     if test "X$HPUX_IA64_MODE" = X32; then
43050       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
43051     else
43052       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
43053     fi
43054     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
43055     ;;
43056    hppa*64*)
43057      shrext_cmds='.sl'
43058      hardcode_into_libs=yes
43059      dynamic_linker="$host_os dld.sl"
43060      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
43061      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
43062      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43063      soname_spec='${libname}${release}${shared_ext}$major'
43064      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
43065      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
43066      ;;
43067    *)
43068     shrext_cmds='.sl'
43069     dynamic_linker="$host_os dld.sl"
43070     shlibpath_var=SHLIB_PATH
43071     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
43072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43073     soname_spec='${libname}${release}${shared_ext}$major'
43074     ;;
43075   esac
43076   # HP-UX runs *really* slowly unless shared libraries are mode 555.
43077   postinstall_cmds='chmod 555 $lib'
43078   ;;
43079
43080 irix5* | irix6* | nonstopux*)
43081   case $host_os in
43082     nonstopux*) version_type=nonstopux ;;
43083     *)
43084         if test "$lt_cv_prog_gnu_ld" = yes; then
43085                 version_type=linux
43086         else
43087                 version_type=irix
43088         fi ;;
43089   esac
43090   need_lib_prefix=no
43091   need_version=no
43092   soname_spec='${libname}${release}${shared_ext}$major'
43093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
43094   case $host_os in
43095   irix5* | nonstopux*)
43096     libsuff= shlibsuff=
43097     ;;
43098   *)
43099     case $LD in # libtool.m4 will add one of these switches to LD
43100     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
43101       libsuff= shlibsuff= libmagic=32-bit;;
43102     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
43103       libsuff=32 shlibsuff=N32 libmagic=N32;;
43104     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
43105       libsuff=64 shlibsuff=64 libmagic=64-bit;;
43106     *) libsuff= shlibsuff= libmagic=never-match;;
43107     esac
43108     ;;
43109   esac
43110   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
43111   shlibpath_overrides_runpath=no
43112   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
43113   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
43114   hardcode_into_libs=yes
43115   ;;
43116
43117 # No shared lib support for Linux oldld, aout, or coff.
43118 linux*oldld* | linux*aout* | linux*coff*)
43119   dynamic_linker=no
43120   ;;
43121
43122 # This must be Linux ELF.
43123 linux*)
43124   version_type=linux
43125   need_lib_prefix=no
43126   need_version=no
43127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43128   soname_spec='${libname}${release}${shared_ext}$major'
43129   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
43130   shlibpath_var=LD_LIBRARY_PATH
43131   shlibpath_overrides_runpath=no
43132   # This implies no fast_install, which is unacceptable.
43133   # Some rework will be needed to allow for fast_install
43134   # before this can be enabled.
43135   hardcode_into_libs=yes
43136
43137   # Append ld.so.conf contents to the search path
43138   if test -f /etc/ld.so.conf; then
43139     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
43140     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
43141   fi
43142
43143   # We used to test for /lib/ld.so.1 and disable shared libraries on
43144   # powerpc, because MkLinux only supported shared libraries with the
43145   # GNU dynamic linker.  Since this was broken with cross compilers,
43146   # most powerpc-linux boxes support dynamic linking these days and
43147   # people can always --disable-shared, the test was removed, and we
43148   # assume the GNU/Linux dynamic linker is in use.
43149   dynamic_linker='GNU/Linux ld.so'
43150   ;;
43151
43152 knetbsd*-gnu)
43153   version_type=linux
43154   need_lib_prefix=no
43155   need_version=no
43156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
43157   soname_spec='${libname}${release}${shared_ext}$major'
43158   shlibpath_var=LD_LIBRARY_PATH
43159   shlibpath_overrides_runpath=no
43160   hardcode_into_libs=yes
43161   dynamic_linker='GNU ld.so'
43162   ;;
43163
43164 netbsd*)
43165   version_type=sunos
43166   need_lib_prefix=no
43167   need_version=no
43168   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
43169     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
43170     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
43171     dynamic_linker='NetBSD (a.out) ld.so'
43172   else
43173     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
43174     soname_spec='${libname}${release}${shared_ext}$major'
43175     dynamic_linker='NetBSD ld.elf_so'
43176   fi
43177   shlibpath_var=LD_LIBRARY_PATH
43178   shlibpath_overrides_runpath=yes
43179   hardcode_into_libs=yes
43180   ;;
43181
43182 newsos6)
43183   version_type=linux
43184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43185   shlibpath_var=LD_LIBRARY_PATH
43186   shlibpath_overrides_runpath=yes
43187   ;;
43188
43189 nto-qnx*)
43190   version_type=linux
43191   need_lib_prefix=no
43192   need_version=no
43193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43194   soname_spec='${libname}${release}${shared_ext}$major'
43195   shlibpath_var=LD_LIBRARY_PATH
43196   shlibpath_overrides_runpath=yes
43197   ;;
43198
43199 openbsd*)
43200   version_type=sunos
43201   need_lib_prefix=no
43202   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
43203   case $host_os in
43204     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
43205     *)                         need_version=no  ;;
43206   esac
43207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
43208   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
43209   shlibpath_var=LD_LIBRARY_PATH
43210   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
43211     case $host_os in
43212       openbsd2.[89] | openbsd2.[89].*)
43213         shlibpath_overrides_runpath=no
43214         ;;
43215       *)
43216         shlibpath_overrides_runpath=yes
43217         ;;
43218       esac
43219   else
43220     shlibpath_overrides_runpath=yes
43221   fi
43222   ;;
43223
43224 os2*)
43225   libname_spec='$name'
43226   shrext_cmds=".dll"
43227   need_lib_prefix=no
43228   library_names_spec='$libname${shared_ext} $libname.a'
43229   dynamic_linker='OS/2 ld.exe'
43230   shlibpath_var=LIBPATH
43231   ;;
43232
43233 osf3* | osf4* | osf5*)
43234   version_type=osf
43235   need_lib_prefix=no
43236   need_version=no
43237   soname_spec='${libname}${release}${shared_ext}$major'
43238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43239   shlibpath_var=LD_LIBRARY_PATH
43240   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
43241   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
43242   ;;
43243
43244 sco3.2v5*)
43245   version_type=osf
43246   soname_spec='${libname}${release}${shared_ext}$major'
43247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43248   shlibpath_var=LD_LIBRARY_PATH
43249   ;;
43250
43251 solaris*)
43252   version_type=linux
43253   need_lib_prefix=no
43254   need_version=no
43255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43256   soname_spec='${libname}${release}${shared_ext}$major'
43257   shlibpath_var=LD_LIBRARY_PATH
43258   shlibpath_overrides_runpath=yes
43259   hardcode_into_libs=yes
43260   # ldd complains unless libraries are executable
43261   postinstall_cmds='chmod +x $lib'
43262   ;;
43263
43264 sunos4*)
43265   version_type=sunos
43266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
43267   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
43268   shlibpath_var=LD_LIBRARY_PATH
43269   shlibpath_overrides_runpath=yes
43270   if test "$with_gnu_ld" = yes; then
43271     need_lib_prefix=no
43272   fi
43273   need_version=yes
43274   ;;
43275
43276 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
43277   version_type=linux
43278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43279   soname_spec='${libname}${release}${shared_ext}$major'
43280   shlibpath_var=LD_LIBRARY_PATH
43281   case $host_vendor in
43282     sni)
43283       shlibpath_overrides_runpath=no
43284       need_lib_prefix=no
43285       export_dynamic_flag_spec='${wl}-Blargedynsym'
43286       runpath_var=LD_RUN_PATH
43287       ;;
43288     siemens)
43289       need_lib_prefix=no
43290       ;;
43291     motorola)
43292       need_lib_prefix=no
43293       need_version=no
43294       shlibpath_overrides_runpath=no
43295       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
43296       ;;
43297   esac
43298   ;;
43299
43300 sysv4*MP*)
43301   if test -d /usr/nec ;then
43302     version_type=linux
43303     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
43304     soname_spec='$libname${shared_ext}.$major'
43305     shlibpath_var=LD_LIBRARY_PATH
43306   fi
43307   ;;
43308
43309 uts4*)
43310   version_type=linux
43311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43312   soname_spec='${libname}${release}${shared_ext}$major'
43313   shlibpath_var=LD_LIBRARY_PATH
43314   ;;
43315
43316 *)
43317   dynamic_linker=no
43318   ;;
43319 esac
43320 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
43321 $as_echo "$dynamic_linker" >&6; }
43322 test "$dynamic_linker" = no && can_build_shared=no
43323
43324 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
43325 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
43326 hardcode_action_CXX=
43327 if test -n "$hardcode_libdir_flag_spec_CXX" || \
43328    test -n "$runpath_var_CXX" || \
43329    test "X$hardcode_automatic_CXX" = "Xyes" ; then
43330
43331   # We can hardcode non-existant directories.
43332   if test "$hardcode_direct_CXX" != no &&
43333      # If the only mechanism to avoid hardcoding is shlibpath_var, we
43334      # have to relink, otherwise we might link with an installed library
43335      # when we should be linking with a yet-to-be-installed one
43336      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
43337      test "$hardcode_minus_L_CXX" != no; then
43338     # Linking always hardcodes the temporary library directory.
43339     hardcode_action_CXX=relink
43340   else
43341     # We can link without hardcoding, and we can hardcode nonexisting dirs.
43342     hardcode_action_CXX=immediate
43343   fi
43344 else
43345   # We cannot hardcode anything, or else we can only hardcode existing
43346   # directories.
43347   hardcode_action_CXX=unsupported
43348 fi
43349 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
43350 $as_echo "$hardcode_action_CXX" >&6; }
43351
43352 if test "$hardcode_action_CXX" = relink; then
43353   # Fast installation is not supported
43354   enable_fast_install=no
43355 elif test "$shlibpath_overrides_runpath" = yes ||
43356      test "$enable_shared" = no; then
43357   # Fast installation is not necessary
43358   enable_fast_install=needless
43359 fi
43360
43361 striplib=
43362 old_striplib=
43363 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
43364 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
43365 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
43366   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
43367   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
43368   { $as_echo "$as_me:$LINENO: result: yes" >&5
43369 $as_echo "yes" >&6; }
43370 else
43371 # FIXME - insert some real tests, host_os isn't really good enough
43372   case $host_os in
43373    darwin*)
43374        if test -n "$STRIP" ; then
43375          striplib="$STRIP -x"
43376          { $as_echo "$as_me:$LINENO: result: yes" >&5
43377 $as_echo "yes" >&6; }
43378        else
43379   { $as_echo "$as_me:$LINENO: result: no" >&5
43380 $as_echo "no" >&6; }
43381 fi
43382        ;;
43383    *)
43384   { $as_echo "$as_me:$LINENO: result: no" >&5
43385 $as_echo "no" >&6; }
43386     ;;
43387   esac
43388 fi
43389
43390 if test "x$enable_dlopen" != xyes; then
43391   enable_dlopen=unknown
43392   enable_dlopen_self=unknown
43393   enable_dlopen_self_static=unknown
43394 else
43395   lt_cv_dlopen=no
43396   lt_cv_dlopen_libs=
43397
43398   case $host_os in
43399   beos*)
43400     lt_cv_dlopen="load_add_on"
43401     lt_cv_dlopen_libs=
43402     lt_cv_dlopen_self=yes
43403     ;;
43404
43405   mingw* | pw32*)
43406     lt_cv_dlopen="LoadLibrary"
43407     lt_cv_dlopen_libs=
43408    ;;
43409
43410   cygwin*)
43411     lt_cv_dlopen="dlopen"
43412     lt_cv_dlopen_libs=
43413    ;;
43414
43415   darwin*)
43416   # if libdl is installed we need to link against it
43417     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43418 $as_echo_n "checking for dlopen in -ldl... " >&6; }
43419 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43420   $as_echo_n "(cached) " >&6
43421 else
43422   ac_check_lib_save_LIBS=$LIBS
43423 LIBS="-ldl  $LIBS"
43424 cat >conftest.$ac_ext <<_ACEOF
43425 /* confdefs.h.  */
43426 _ACEOF
43427 cat confdefs.h >>conftest.$ac_ext
43428 cat >>conftest.$ac_ext <<_ACEOF
43429 /* end confdefs.h.  */
43430
43431 /* Override any GCC internal prototype to avoid an error.
43432    Use char because int might match the return type of a GCC
43433    builtin and then its argument prototype would still apply.  */
43434 #ifdef __cplusplus
43435 extern "C"
43436 #endif
43437 char dlopen ();
43438 int
43439 main ()
43440 {
43441 return dlopen ();
43442   ;
43443   return 0;
43444 }
43445 _ACEOF
43446 rm -f conftest.$ac_objext conftest$ac_exeext
43447 if { (ac_try="$ac_link"
43448 case "(($ac_try" in
43449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43450   *) ac_try_echo=$ac_try;;
43451 esac
43452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43453 $as_echo "$ac_try_echo") >&5
43454   (eval "$ac_link") 2>conftest.er1
43455   ac_status=$?
43456   grep -v '^ *+' conftest.er1 >conftest.err
43457   rm -f conftest.er1
43458   cat conftest.err >&5
43459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43460   (exit $ac_status); } && {
43461          test -z "$ac_cxx_werror_flag" ||
43462          test ! -s conftest.err
43463        } && test -s conftest$ac_exeext && {
43464          test "$cross_compiling" = yes ||
43465          $as_test_x conftest$ac_exeext
43466        }; then
43467   ac_cv_lib_dl_dlopen=yes
43468 else
43469   $as_echo "$as_me: failed program was:" >&5
43470 sed 's/^/| /' conftest.$ac_ext >&5
43471
43472         ac_cv_lib_dl_dlopen=no
43473 fi
43474
43475 rm -rf conftest.dSYM
43476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43477       conftest$ac_exeext conftest.$ac_ext
43478 LIBS=$ac_check_lib_save_LIBS
43479 fi
43480 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43481 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
43482 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
43483   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
43484 else
43485
43486     lt_cv_dlopen="dyld"
43487     lt_cv_dlopen_libs=
43488     lt_cv_dlopen_self=yes
43489
43490 fi
43491
43492    ;;
43493
43494   *)
43495     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
43496 $as_echo_n "checking for shl_load... " >&6; }
43497 if test "${ac_cv_func_shl_load+set}" = set; then
43498   $as_echo_n "(cached) " >&6
43499 else
43500   cat >conftest.$ac_ext <<_ACEOF
43501 /* confdefs.h.  */
43502 _ACEOF
43503 cat confdefs.h >>conftest.$ac_ext
43504 cat >>conftest.$ac_ext <<_ACEOF
43505 /* end confdefs.h.  */
43506 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
43507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43508 #define shl_load innocuous_shl_load
43509
43510 /* System header to define __stub macros and hopefully few prototypes,
43511     which can conflict with char shl_load (); below.
43512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43513     <limits.h> exists even on freestanding compilers.  */
43514
43515 #ifdef __STDC__
43516 # include <limits.h>
43517 #else
43518 # include <assert.h>
43519 #endif
43520
43521 #undef shl_load
43522
43523 /* Override any GCC internal prototype to avoid an error.
43524    Use char because int might match the return type of a GCC
43525    builtin and then its argument prototype would still apply.  */
43526 #ifdef __cplusplus
43527 extern "C"
43528 #endif
43529 char shl_load ();
43530 /* The GNU C library defines this for functions which it implements
43531     to always fail with ENOSYS.  Some functions are actually named
43532     something starting with __ and the normal name is an alias.  */
43533 #if defined __stub_shl_load || defined __stub___shl_load
43534 choke me
43535 #endif
43536
43537 int
43538 main ()
43539 {
43540 return shl_load ();
43541   ;
43542   return 0;
43543 }
43544 _ACEOF
43545 rm -f conftest.$ac_objext conftest$ac_exeext
43546 if { (ac_try="$ac_link"
43547 case "(($ac_try" in
43548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43549   *) ac_try_echo=$ac_try;;
43550 esac
43551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43552 $as_echo "$ac_try_echo") >&5
43553   (eval "$ac_link") 2>conftest.er1
43554   ac_status=$?
43555   grep -v '^ *+' conftest.er1 >conftest.err
43556   rm -f conftest.er1
43557   cat conftest.err >&5
43558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43559   (exit $ac_status); } && {
43560          test -z "$ac_cxx_werror_flag" ||
43561          test ! -s conftest.err
43562        } && test -s conftest$ac_exeext && {
43563          test "$cross_compiling" = yes ||
43564          $as_test_x conftest$ac_exeext
43565        }; then
43566   ac_cv_func_shl_load=yes
43567 else
43568   $as_echo "$as_me: failed program was:" >&5
43569 sed 's/^/| /' conftest.$ac_ext >&5
43570
43571         ac_cv_func_shl_load=no
43572 fi
43573
43574 rm -rf conftest.dSYM
43575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43576       conftest$ac_exeext conftest.$ac_ext
43577 fi
43578 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
43579 $as_echo "$ac_cv_func_shl_load" >&6; }
43580 if test "x$ac_cv_func_shl_load" = x""yes; then
43581   lt_cv_dlopen="shl_load"
43582 else
43583   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
43584 $as_echo_n "checking for shl_load in -ldld... " >&6; }
43585 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
43586   $as_echo_n "(cached) " >&6
43587 else
43588   ac_check_lib_save_LIBS=$LIBS
43589 LIBS="-ldld  $LIBS"
43590 cat >conftest.$ac_ext <<_ACEOF
43591 /* confdefs.h.  */
43592 _ACEOF
43593 cat confdefs.h >>conftest.$ac_ext
43594 cat >>conftest.$ac_ext <<_ACEOF
43595 /* end confdefs.h.  */
43596
43597 /* Override any GCC internal prototype to avoid an error.
43598    Use char because int might match the return type of a GCC
43599    builtin and then its argument prototype would still apply.  */
43600 #ifdef __cplusplus
43601 extern "C"
43602 #endif
43603 char shl_load ();
43604 int
43605 main ()
43606 {
43607 return shl_load ();
43608   ;
43609   return 0;
43610 }
43611 _ACEOF
43612 rm -f conftest.$ac_objext conftest$ac_exeext
43613 if { (ac_try="$ac_link"
43614 case "(($ac_try" in
43615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43616   *) ac_try_echo=$ac_try;;
43617 esac
43618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43619 $as_echo "$ac_try_echo") >&5
43620   (eval "$ac_link") 2>conftest.er1
43621   ac_status=$?
43622   grep -v '^ *+' conftest.er1 >conftest.err
43623   rm -f conftest.er1
43624   cat conftest.err >&5
43625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43626   (exit $ac_status); } && {
43627          test -z "$ac_cxx_werror_flag" ||
43628          test ! -s conftest.err
43629        } && test -s conftest$ac_exeext && {
43630          test "$cross_compiling" = yes ||
43631          $as_test_x conftest$ac_exeext
43632        }; then
43633   ac_cv_lib_dld_shl_load=yes
43634 else
43635   $as_echo "$as_me: failed program was:" >&5
43636 sed 's/^/| /' conftest.$ac_ext >&5
43637
43638         ac_cv_lib_dld_shl_load=no
43639 fi
43640
43641 rm -rf conftest.dSYM
43642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43643       conftest$ac_exeext conftest.$ac_ext
43644 LIBS=$ac_check_lib_save_LIBS
43645 fi
43646 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
43647 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
43648 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
43649   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
43650 else
43651   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
43652 $as_echo_n "checking for dlopen... " >&6; }
43653 if test "${ac_cv_func_dlopen+set}" = set; then
43654   $as_echo_n "(cached) " >&6
43655 else
43656   cat >conftest.$ac_ext <<_ACEOF
43657 /* confdefs.h.  */
43658 _ACEOF
43659 cat confdefs.h >>conftest.$ac_ext
43660 cat >>conftest.$ac_ext <<_ACEOF
43661 /* end confdefs.h.  */
43662 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
43663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43664 #define dlopen innocuous_dlopen
43665
43666 /* System header to define __stub macros and hopefully few prototypes,
43667     which can conflict with char dlopen (); below.
43668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43669     <limits.h> exists even on freestanding compilers.  */
43670
43671 #ifdef __STDC__
43672 # include <limits.h>
43673 #else
43674 # include <assert.h>
43675 #endif
43676
43677 #undef dlopen
43678
43679 /* Override any GCC internal prototype to avoid an error.
43680    Use char because int might match the return type of a GCC
43681    builtin and then its argument prototype would still apply.  */
43682 #ifdef __cplusplus
43683 extern "C"
43684 #endif
43685 char dlopen ();
43686 /* The GNU C library defines this for functions which it implements
43687     to always fail with ENOSYS.  Some functions are actually named
43688     something starting with __ and the normal name is an alias.  */
43689 #if defined __stub_dlopen || defined __stub___dlopen
43690 choke me
43691 #endif
43692
43693 int
43694 main ()
43695 {
43696 return dlopen ();
43697   ;
43698   return 0;
43699 }
43700 _ACEOF
43701 rm -f conftest.$ac_objext conftest$ac_exeext
43702 if { (ac_try="$ac_link"
43703 case "(($ac_try" in
43704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43705   *) ac_try_echo=$ac_try;;
43706 esac
43707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43708 $as_echo "$ac_try_echo") >&5
43709   (eval "$ac_link") 2>conftest.er1
43710   ac_status=$?
43711   grep -v '^ *+' conftest.er1 >conftest.err
43712   rm -f conftest.er1
43713   cat conftest.err >&5
43714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43715   (exit $ac_status); } && {
43716          test -z "$ac_cxx_werror_flag" ||
43717          test ! -s conftest.err
43718        } && test -s conftest$ac_exeext && {
43719          test "$cross_compiling" = yes ||
43720          $as_test_x conftest$ac_exeext
43721        }; then
43722   ac_cv_func_dlopen=yes
43723 else
43724   $as_echo "$as_me: failed program was:" >&5
43725 sed 's/^/| /' conftest.$ac_ext >&5
43726
43727         ac_cv_func_dlopen=no
43728 fi
43729
43730 rm -rf conftest.dSYM
43731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43732       conftest$ac_exeext conftest.$ac_ext
43733 fi
43734 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
43735 $as_echo "$ac_cv_func_dlopen" >&6; }
43736 if test "x$ac_cv_func_dlopen" = x""yes; then
43737   lt_cv_dlopen="dlopen"
43738 else
43739   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43740 $as_echo_n "checking for dlopen in -ldl... " >&6; }
43741 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43742   $as_echo_n "(cached) " >&6
43743 else
43744   ac_check_lib_save_LIBS=$LIBS
43745 LIBS="-ldl  $LIBS"
43746 cat >conftest.$ac_ext <<_ACEOF
43747 /* confdefs.h.  */
43748 _ACEOF
43749 cat confdefs.h >>conftest.$ac_ext
43750 cat >>conftest.$ac_ext <<_ACEOF
43751 /* end confdefs.h.  */
43752
43753 /* Override any GCC internal prototype to avoid an error.
43754    Use char because int might match the return type of a GCC
43755    builtin and then its argument prototype would still apply.  */
43756 #ifdef __cplusplus
43757 extern "C"
43758 #endif
43759 char dlopen ();
43760 int
43761 main ()
43762 {
43763 return dlopen ();
43764   ;
43765   return 0;
43766 }
43767 _ACEOF
43768 rm -f conftest.$ac_objext conftest$ac_exeext
43769 if { (ac_try="$ac_link"
43770 case "(($ac_try" in
43771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43772   *) ac_try_echo=$ac_try;;
43773 esac
43774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43775 $as_echo "$ac_try_echo") >&5
43776   (eval "$ac_link") 2>conftest.er1
43777   ac_status=$?
43778   grep -v '^ *+' conftest.er1 >conftest.err
43779   rm -f conftest.er1
43780   cat conftest.err >&5
43781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43782   (exit $ac_status); } && {
43783          test -z "$ac_cxx_werror_flag" ||
43784          test ! -s conftest.err
43785        } && test -s conftest$ac_exeext && {
43786          test "$cross_compiling" = yes ||
43787          $as_test_x conftest$ac_exeext
43788        }; then
43789   ac_cv_lib_dl_dlopen=yes
43790 else
43791   $as_echo "$as_me: failed program was:" >&5
43792 sed 's/^/| /' conftest.$ac_ext >&5
43793
43794         ac_cv_lib_dl_dlopen=no
43795 fi
43796
43797 rm -rf conftest.dSYM
43798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43799       conftest$ac_exeext conftest.$ac_ext
43800 LIBS=$ac_check_lib_save_LIBS
43801 fi
43802 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43803 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
43804 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
43805   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
43806 else
43807   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
43808 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
43809 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
43810   $as_echo_n "(cached) " >&6
43811 else
43812   ac_check_lib_save_LIBS=$LIBS
43813 LIBS="-lsvld  $LIBS"
43814 cat >conftest.$ac_ext <<_ACEOF
43815 /* confdefs.h.  */
43816 _ACEOF
43817 cat confdefs.h >>conftest.$ac_ext
43818 cat >>conftest.$ac_ext <<_ACEOF
43819 /* end confdefs.h.  */
43820
43821 /* Override any GCC internal prototype to avoid an error.
43822    Use char because int might match the return type of a GCC
43823    builtin and then its argument prototype would still apply.  */
43824 #ifdef __cplusplus
43825 extern "C"
43826 #endif
43827 char dlopen ();
43828 int
43829 main ()
43830 {
43831 return dlopen ();
43832   ;
43833   return 0;
43834 }
43835 _ACEOF
43836 rm -f conftest.$ac_objext conftest$ac_exeext
43837 if { (ac_try="$ac_link"
43838 case "(($ac_try" in
43839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43840   *) ac_try_echo=$ac_try;;
43841 esac
43842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43843 $as_echo "$ac_try_echo") >&5
43844   (eval "$ac_link") 2>conftest.er1
43845   ac_status=$?
43846   grep -v '^ *+' conftest.er1 >conftest.err
43847   rm -f conftest.er1
43848   cat conftest.err >&5
43849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43850   (exit $ac_status); } && {
43851          test -z "$ac_cxx_werror_flag" ||
43852          test ! -s conftest.err
43853        } && test -s conftest$ac_exeext && {
43854          test "$cross_compiling" = yes ||
43855          $as_test_x conftest$ac_exeext
43856        }; then
43857   ac_cv_lib_svld_dlopen=yes
43858 else
43859   $as_echo "$as_me: failed program was:" >&5
43860 sed 's/^/| /' conftest.$ac_ext >&5
43861
43862         ac_cv_lib_svld_dlopen=no
43863 fi
43864
43865 rm -rf conftest.dSYM
43866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43867       conftest$ac_exeext conftest.$ac_ext
43868 LIBS=$ac_check_lib_save_LIBS
43869 fi
43870 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
43871 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
43872 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
43873   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
43874 else
43875   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
43876 $as_echo_n "checking for dld_link in -ldld... " >&6; }
43877 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
43878   $as_echo_n "(cached) " >&6
43879 else
43880   ac_check_lib_save_LIBS=$LIBS
43881 LIBS="-ldld  $LIBS"
43882 cat >conftest.$ac_ext <<_ACEOF
43883 /* confdefs.h.  */
43884 _ACEOF
43885 cat confdefs.h >>conftest.$ac_ext
43886 cat >>conftest.$ac_ext <<_ACEOF
43887 /* end confdefs.h.  */
43888
43889 /* Override any GCC internal prototype to avoid an error.
43890    Use char because int might match the return type of a GCC
43891    builtin and then its argument prototype would still apply.  */
43892 #ifdef __cplusplus
43893 extern "C"
43894 #endif
43895 char dld_link ();
43896 int
43897 main ()
43898 {
43899 return dld_link ();
43900   ;
43901   return 0;
43902 }
43903 _ACEOF
43904 rm -f conftest.$ac_objext conftest$ac_exeext
43905 if { (ac_try="$ac_link"
43906 case "(($ac_try" in
43907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43908   *) ac_try_echo=$ac_try;;
43909 esac
43910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43911 $as_echo "$ac_try_echo") >&5
43912   (eval "$ac_link") 2>conftest.er1
43913   ac_status=$?
43914   grep -v '^ *+' conftest.er1 >conftest.err
43915   rm -f conftest.er1
43916   cat conftest.err >&5
43917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43918   (exit $ac_status); } && {
43919          test -z "$ac_cxx_werror_flag" ||
43920          test ! -s conftest.err
43921        } && test -s conftest$ac_exeext && {
43922          test "$cross_compiling" = yes ||
43923          $as_test_x conftest$ac_exeext
43924        }; then
43925   ac_cv_lib_dld_dld_link=yes
43926 else
43927   $as_echo "$as_me: failed program was:" >&5
43928 sed 's/^/| /' conftest.$ac_ext >&5
43929
43930         ac_cv_lib_dld_dld_link=no
43931 fi
43932
43933 rm -rf conftest.dSYM
43934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43935       conftest$ac_exeext conftest.$ac_ext
43936 LIBS=$ac_check_lib_save_LIBS
43937 fi
43938 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
43939 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
43940 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
43941   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
43942 fi
43943
43944
43945 fi
43946
43947
43948 fi
43949
43950
43951 fi
43952
43953
43954 fi
43955
43956
43957 fi
43958
43959     ;;
43960   esac
43961
43962   if test "x$lt_cv_dlopen" != xno; then
43963     enable_dlopen=yes
43964   else
43965     enable_dlopen=no
43966   fi
43967
43968   case $lt_cv_dlopen in
43969   dlopen)
43970     save_CPPFLAGS="$CPPFLAGS"
43971     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
43972
43973     save_LDFLAGS="$LDFLAGS"
43974     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
43975
43976     save_LIBS="$LIBS"
43977     LIBS="$lt_cv_dlopen_libs $LIBS"
43978
43979     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
43980 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
43981 if test "${lt_cv_dlopen_self+set}" = set; then
43982   $as_echo_n "(cached) " >&6
43983 else
43984           if test "$cross_compiling" = yes; then :
43985   lt_cv_dlopen_self=cross
43986 else
43987   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
43988   lt_status=$lt_dlunknown
43989   cat > conftest.$ac_ext <<EOF
43990 #line 43990 "configure"
43991 #include "confdefs.h"
43992
43993 #if HAVE_DLFCN_H
43994 #include <dlfcn.h>
43995 #endif
43996
43997 #include <stdio.h>
43998
43999 #ifdef RTLD_GLOBAL
44000 #  define LT_DLGLOBAL           RTLD_GLOBAL
44001 #else
44002 #  ifdef DL_GLOBAL
44003 #    define LT_DLGLOBAL         DL_GLOBAL
44004 #  else
44005 #    define LT_DLGLOBAL         0
44006 #  endif
44007 #endif
44008
44009 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
44010    find out it does not work in some platform. */
44011 #ifndef LT_DLLAZY_OR_NOW
44012 #  ifdef RTLD_LAZY
44013 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
44014 #  else
44015 #    ifdef DL_LAZY
44016 #      define LT_DLLAZY_OR_NOW          DL_LAZY
44017 #    else
44018 #      ifdef RTLD_NOW
44019 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
44020 #      else
44021 #        ifdef DL_NOW
44022 #          define LT_DLLAZY_OR_NOW      DL_NOW
44023 #        else
44024 #          define LT_DLLAZY_OR_NOW      0
44025 #        endif
44026 #      endif
44027 #    endif
44028 #  endif
44029 #endif
44030
44031 #ifdef __cplusplus
44032 extern "C" void exit (int);
44033 #endif
44034
44035 void fnord() { int i=42;}
44036 int main ()
44037 {
44038   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
44039   int status = $lt_dlunknown;
44040
44041   if (self)
44042     {
44043       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
44044       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
44045       /* dlclose (self); */
44046     }
44047
44048     exit (status);
44049 }
44050 EOF
44051   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44052   (eval $ac_link) 2>&5
44053   ac_status=$?
44054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44055   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
44056     (./conftest; exit; ) >&5 2>/dev/null
44057     lt_status=$?
44058     case x$lt_status in
44059       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
44060       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
44061       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
44062     esac
44063   else :
44064     # compilation failed
44065     lt_cv_dlopen_self=no
44066   fi
44067 fi
44068 rm -fr conftest*
44069
44070
44071 fi
44072 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
44073 $as_echo "$lt_cv_dlopen_self" >&6; }
44074
44075     if test "x$lt_cv_dlopen_self" = xyes; then
44076       LDFLAGS="$LDFLAGS $link_static_flag"
44077       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
44078 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
44079 if test "${lt_cv_dlopen_self_static+set}" = set; then
44080   $as_echo_n "(cached) " >&6
44081 else
44082           if test "$cross_compiling" = yes; then :
44083   lt_cv_dlopen_self_static=cross
44084 else
44085   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
44086   lt_status=$lt_dlunknown
44087   cat > conftest.$ac_ext <<EOF
44088 #line 44088 "configure"
44089 #include "confdefs.h"
44090
44091 #if HAVE_DLFCN_H
44092 #include <dlfcn.h>
44093 #endif
44094
44095 #include <stdio.h>
44096
44097 #ifdef RTLD_GLOBAL
44098 #  define LT_DLGLOBAL           RTLD_GLOBAL
44099 #else
44100 #  ifdef DL_GLOBAL
44101 #    define LT_DLGLOBAL         DL_GLOBAL
44102 #  else
44103 #    define LT_DLGLOBAL         0
44104 #  endif
44105 #endif
44106
44107 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
44108    find out it does not work in some platform. */
44109 #ifndef LT_DLLAZY_OR_NOW
44110 #  ifdef RTLD_LAZY
44111 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
44112 #  else
44113 #    ifdef DL_LAZY
44114 #      define LT_DLLAZY_OR_NOW          DL_LAZY
44115 #    else
44116 #      ifdef RTLD_NOW
44117 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
44118 #      else
44119 #        ifdef DL_NOW
44120 #          define LT_DLLAZY_OR_NOW      DL_NOW
44121 #        else
44122 #          define LT_DLLAZY_OR_NOW      0
44123 #        endif
44124 #      endif
44125 #    endif
44126 #  endif
44127 #endif
44128
44129 #ifdef __cplusplus
44130 extern "C" void exit (int);
44131 #endif
44132
44133 void fnord() { int i=42;}
44134 int main ()
44135 {
44136   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
44137   int status = $lt_dlunknown;
44138
44139   if (self)
44140     {
44141       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
44142       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
44143       /* dlclose (self); */
44144     }
44145
44146     exit (status);
44147 }
44148 EOF
44149   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44150   (eval $ac_link) 2>&5
44151   ac_status=$?
44152   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44153   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
44154     (./conftest; exit; ) >&5 2>/dev/null
44155     lt_status=$?
44156     case x$lt_status in
44157       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
44158       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
44159       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
44160     esac
44161   else :
44162     # compilation failed
44163     lt_cv_dlopen_self_static=no
44164   fi
44165 fi
44166 rm -fr conftest*
44167
44168
44169 fi
44170 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
44171 $as_echo "$lt_cv_dlopen_self_static" >&6; }
44172     fi
44173
44174     CPPFLAGS="$save_CPPFLAGS"
44175     LDFLAGS="$save_LDFLAGS"
44176     LIBS="$save_LIBS"
44177     ;;
44178   esac
44179
44180   case $lt_cv_dlopen_self in
44181   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
44182   *) enable_dlopen_self=unknown ;;
44183   esac
44184
44185   case $lt_cv_dlopen_self_static in
44186   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
44187   *) enable_dlopen_self_static=unknown ;;
44188   esac
44189 fi
44190
44191
44192 # The else clause should only fire when bootstrapping the
44193 # libtool distribution, otherwise you forgot to ship ltmain.sh
44194 # with your package, and you will get complaints that there are
44195 # no rules to generate ltmain.sh.
44196 if test -f "$ltmain"; then
44197   # See if we are running on zsh, and set the options which allow our commands through
44198   # without removal of \ escapes.
44199   if test -n "${ZSH_VERSION+set}" ; then
44200     setopt NO_GLOB_SUBST
44201   fi
44202   # Now quote all the things that may contain metacharacters while being
44203   # careful not to overquote the AC_SUBSTed values.  We take copies of the
44204   # variables and quote the copies for generation of the libtool script.
44205   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
44206     SED SHELL STRIP \
44207     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
44208     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
44209     deplibs_check_method reload_flag reload_cmds need_locks \
44210     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
44211     lt_cv_sys_global_symbol_to_c_name_address \
44212     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
44213     old_postinstall_cmds old_postuninstall_cmds \
44214     compiler_CXX \
44215     CC_CXX \
44216     LD_CXX \
44217     lt_prog_compiler_wl_CXX \
44218     lt_prog_compiler_pic_CXX \
44219     lt_prog_compiler_static_CXX \
44220     lt_prog_compiler_no_builtin_flag_CXX \
44221     export_dynamic_flag_spec_CXX \
44222     thread_safe_flag_spec_CXX \
44223     whole_archive_flag_spec_CXX \
44224     enable_shared_with_static_runtimes_CXX \
44225     old_archive_cmds_CXX \
44226     old_archive_from_new_cmds_CXX \
44227     predep_objects_CXX \
44228     postdep_objects_CXX \
44229     predeps_CXX \
44230     postdeps_CXX \
44231     compiler_lib_search_path_CXX \
44232     archive_cmds_CXX \
44233     archive_expsym_cmds_CXX \
44234     postinstall_cmds_CXX \
44235     postuninstall_cmds_CXX \
44236     old_archive_from_expsyms_cmds_CXX \
44237     allow_undefined_flag_CXX \
44238     no_undefined_flag_CXX \
44239     export_symbols_cmds_CXX \
44240     hardcode_libdir_flag_spec_CXX \
44241     hardcode_libdir_flag_spec_ld_CXX \
44242     hardcode_libdir_separator_CXX \
44243     hardcode_automatic_CXX \
44244     module_cmds_CXX \
44245     module_expsym_cmds_CXX \
44246     lt_cv_prog_compiler_c_o_CXX \
44247     exclude_expsyms_CXX \
44248     include_expsyms_CXX; do
44249
44250     case $var in
44251     old_archive_cmds_CXX | \
44252     old_archive_from_new_cmds_CXX | \
44253     archive_cmds_CXX | \
44254     archive_expsym_cmds_CXX | \
44255     module_cmds_CXX | \
44256     module_expsym_cmds_CXX | \
44257     old_archive_from_expsyms_cmds_CXX | \
44258     export_symbols_cmds_CXX | \
44259     extract_expsyms_cmds | reload_cmds | finish_cmds | \
44260     postinstall_cmds | postuninstall_cmds | \
44261     old_postinstall_cmds | old_postuninstall_cmds | \
44262     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
44263       # Double-quote double-evaled strings.
44264       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
44265       ;;
44266     *)
44267       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
44268       ;;
44269     esac
44270   done
44271
44272   case $lt_echo in
44273   *'\$0 --fallback-echo"')
44274     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
44275     ;;
44276   esac
44277
44278 cfgfile="$ofile"
44279
44280   cat <<__EOF__ >> "$cfgfile"
44281 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
44282
44283 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
44284
44285 # Shell to use when invoking shell scripts.
44286 SHELL=$lt_SHELL
44287
44288 # Whether or not to build shared libraries.
44289 build_libtool_libs=$enable_shared
44290
44291 # Whether or not to build static libraries.
44292 build_old_libs=$enable_static
44293
44294 # Whether or not to add -lc for building shared libraries.
44295 build_libtool_need_lc=$archive_cmds_need_lc_CXX
44296
44297 # Whether or not to disallow shared libs when runtime libs are static
44298 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
44299
44300 # Whether or not to optimize for fast installation.
44301 fast_install=$enable_fast_install
44302
44303 # The host system.
44304 host_alias=$host_alias
44305 host=$host
44306 host_os=$host_os
44307
44308 # The build system.
44309 build_alias=$build_alias
44310 build=$build
44311 build_os=$build_os
44312
44313 # An echo program that does not interpret backslashes.
44314 echo=$lt_echo
44315
44316 # The archiver.
44317 AR=$lt_AR
44318 AR_FLAGS=$lt_AR_FLAGS
44319
44320 # A C compiler.
44321 LTCC=$lt_LTCC
44322
44323 # A language-specific compiler.
44324 CC=$lt_compiler_CXX
44325
44326 # Is the compiler the GNU C compiler?
44327 with_gcc=$GCC_CXX
44328
44329 # An ERE matcher.
44330 EGREP=$lt_EGREP
44331
44332 # The linker used to build libraries.
44333 LD=$lt_LD_CXX
44334
44335 # Whether we need hard or soft links.
44336 LN_S=$lt_LN_S
44337
44338 # A BSD-compatible nm program.
44339 NM=$lt_NM
44340
44341 # A symbol stripping program
44342 STRIP=$lt_STRIP
44343
44344 # Used to examine libraries when file_magic_cmd begins "file"
44345 MAGIC_CMD=$MAGIC_CMD
44346
44347 # Used on cygwin: DLL creation program.
44348 DLLTOOL="$DLLTOOL"
44349
44350 # Used on cygwin: object dumper.
44351 OBJDUMP="$OBJDUMP"
44352
44353 # Used on cygwin: assembler.
44354 AS="$AS"
44355
44356 # The name of the directory that contains temporary libtool files.
44357 objdir=$objdir
44358
44359 # How to create reloadable object files.
44360 reload_flag=$lt_reload_flag
44361 reload_cmds=$lt_reload_cmds
44362
44363 # How to pass a linker flag through the compiler.
44364 wl=$lt_lt_prog_compiler_wl_CXX
44365
44366 # Object file suffix (normally "o").
44367 objext="$ac_objext"
44368
44369 # Old archive suffix (normally "a").
44370 libext="$libext"
44371
44372 # Shared library suffix (normally ".so").
44373 shrext_cmds='$shrext_cmds'
44374
44375 # Executable file suffix (normally "").
44376 exeext="$exeext"
44377
44378 # Additional compiler flags for building library objects.
44379 pic_flag=$lt_lt_prog_compiler_pic_CXX
44380 pic_mode=$pic_mode
44381
44382 # What is the maximum length of a command?
44383 max_cmd_len=$lt_cv_sys_max_cmd_len
44384
44385 # Does compiler simultaneously support -c and -o options?
44386 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
44387
44388 # Must we lock files when doing compilation?
44389 need_locks=$lt_need_locks
44390
44391 # Do we need the lib prefix for modules?
44392 need_lib_prefix=$need_lib_prefix
44393
44394 # Do we need a version for libraries?
44395 need_version=$need_version
44396
44397 # Whether dlopen is supported.
44398 dlopen_support=$enable_dlopen
44399
44400 # Whether dlopen of programs is supported.
44401 dlopen_self=$enable_dlopen_self
44402
44403 # Whether dlopen of statically linked programs is supported.
44404 dlopen_self_static=$enable_dlopen_self_static
44405
44406 # Compiler flag to prevent dynamic linking.
44407 link_static_flag=$lt_lt_prog_compiler_static_CXX
44408
44409 # Compiler flag to turn off builtin functions.
44410 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
44411
44412 # Compiler flag to allow reflexive dlopens.
44413 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
44414
44415 # Compiler flag to generate shared objects directly from archives.
44416 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
44417
44418 # Compiler flag to generate thread-safe objects.
44419 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
44420
44421 # Library versioning type.
44422 version_type=$version_type
44423
44424 # Format of library name prefix.
44425 libname_spec=$lt_libname_spec
44426
44427 # List of archive names.  First name is the real one, the rest are links.
44428 # The last name is the one that the linker finds with -lNAME.
44429 library_names_spec=$lt_library_names_spec
44430
44431 # The coded name of the library, if different from the real name.
44432 soname_spec=$lt_soname_spec
44433
44434 # Commands used to build and install an old-style archive.
44435 RANLIB=$lt_RANLIB
44436 old_archive_cmds=$lt_old_archive_cmds_CXX
44437 old_postinstall_cmds=$lt_old_postinstall_cmds
44438 old_postuninstall_cmds=$lt_old_postuninstall_cmds
44439
44440 # Create an old-style archive from a shared archive.
44441 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
44442
44443 # Create a temporary old-style archive to link instead of a shared archive.
44444 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
44445
44446 # Commands used to build and install a shared archive.
44447 archive_cmds=$lt_archive_cmds_CXX
44448 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
44449 postinstall_cmds=$lt_postinstall_cmds
44450 postuninstall_cmds=$lt_postuninstall_cmds
44451
44452 # Commands used to build a loadable module (assumed same as above if empty)
44453 module_cmds=$lt_module_cmds_CXX
44454 module_expsym_cmds=$lt_module_expsym_cmds_CXX
44455
44456 # Commands to strip libraries.
44457 old_striplib=$lt_old_striplib
44458 striplib=$lt_striplib
44459
44460 # Dependencies to place before the objects being linked to create a
44461 # shared library.
44462 predep_objects=$lt_predep_objects_CXX
44463
44464 # Dependencies to place after the objects being linked to create a
44465 # shared library.
44466 postdep_objects=$lt_postdep_objects_CXX
44467
44468 # Dependencies to place before the objects being linked to create a
44469 # shared library.
44470 predeps=$lt_predeps_CXX
44471
44472 # Dependencies to place after the objects being linked to create a
44473 # shared library.
44474 postdeps=$lt_postdeps_CXX
44475
44476 # The library search path used internally by the compiler when linking
44477 # a shared library.
44478 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
44479
44480 # Method to check whether dependent libraries are shared objects.
44481 deplibs_check_method=$lt_deplibs_check_method
44482
44483 # Command to use when deplibs_check_method == file_magic.
44484 file_magic_cmd=$lt_file_magic_cmd
44485
44486 # Flag that allows shared libraries with undefined symbols to be built.
44487 allow_undefined_flag=$lt_allow_undefined_flag_CXX
44488
44489 # Flag that forces no undefined symbols.
44490 no_undefined_flag=$lt_no_undefined_flag_CXX
44491
44492 # Commands used to finish a libtool library installation in a directory.
44493 finish_cmds=$lt_finish_cmds
44494
44495 # Same as above, but a single script fragment to be evaled but not shown.
44496 finish_eval=$lt_finish_eval
44497
44498 # Take the output of nm and produce a listing of raw symbols and C names.
44499 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
44500
44501 # Transform the output of nm in a proper C declaration
44502 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
44503
44504 # Transform the output of nm in a C name address pair
44505 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
44506
44507 # This is the shared library runtime path variable.
44508 runpath_var=$runpath_var
44509
44510 # This is the shared library path variable.
44511 shlibpath_var=$shlibpath_var
44512
44513 # Is shlibpath searched before the hard-coded library search path?
44514 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
44515
44516 # How to hardcode a shared library path into an executable.
44517 hardcode_action=$hardcode_action_CXX
44518
44519 # Whether we should hardcode library paths into libraries.
44520 hardcode_into_libs=$hardcode_into_libs
44521
44522 # Flag to hardcode \$libdir into a binary during linking.
44523 # This must work even if \$libdir does not exist.
44524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
44525
44526 # If ld is used when linking, flag to hardcode \$libdir into
44527 # a binary during linking. This must work even if \$libdir does
44528 # not exist.
44529 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
44530
44531 # Whether we need a single -rpath flag with a separated argument.
44532 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
44533
44534 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
44535 # resulting binary.
44536 hardcode_direct=$hardcode_direct_CXX
44537
44538 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
44539 # resulting binary.
44540 hardcode_minus_L=$hardcode_minus_L_CXX
44541
44542 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
44543 # the resulting binary.
44544 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
44545
44546 # Set to yes if building a shared library automatically hardcodes DIR into the library
44547 # and all subsequent libraries and executables linked against it.
44548 hardcode_automatic=$hardcode_automatic_CXX
44549
44550 # Variables whose values should be saved in libtool wrapper scripts and
44551 # restored at relink time.
44552 variables_saved_for_relink="$variables_saved_for_relink"
44553
44554 # Whether libtool must link a program against all its dependency libraries.
44555 link_all_deplibs=$link_all_deplibs_CXX
44556
44557 # Compile-time system search path for libraries
44558 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
44559
44560 # Run-time system search path for libraries
44561 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
44562
44563 # Fix the shell variable \$srcfile for the compiler.
44564 fix_srcfile_path="$fix_srcfile_path_CXX"
44565
44566 # Set to yes if exported symbols are required.
44567 always_export_symbols=$always_export_symbols_CXX
44568
44569 # The commands to list exported symbols.
44570 export_symbols_cmds=$lt_export_symbols_cmds_CXX
44571
44572 # The commands to extract the exported symbol list from a shared archive.
44573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
44574
44575 # Symbols that should not be listed in the preloaded symbols.
44576 exclude_expsyms=$lt_exclude_expsyms_CXX
44577
44578 # Symbols that must always be exported.
44579 include_expsyms=$lt_include_expsyms_CXX
44580
44581 # ### END LIBTOOL TAG CONFIG: $tagname
44582
44583 __EOF__
44584
44585
44586 else
44587   # If there is no Makefile yet, we rely on a make rule to execute
44588   # `config.status --recheck' to rerun these tests and create the
44589   # libtool script then.
44590   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
44591   if test -f "$ltmain_in"; then
44592     test -f Makefile && make "$ltmain"
44593   fi
44594 fi
44595
44596
44597 ac_ext=c
44598 ac_cpp='$CPP $CPPFLAGS'
44599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44602
44603 CC=$lt_save_CC
44604 LDCXX=$LD
44605 LD=$lt_save_LD
44606 GCC=$lt_save_GCC
44607 with_gnu_ldcxx=$with_gnu_ld
44608 with_gnu_ld=$lt_save_with_gnu_ld
44609 lt_cv_path_LDCXX=$lt_cv_path_LD
44610 lt_cv_path_LD=$lt_save_path_LD
44611 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
44612 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
44613
44614         else
44615           tagname=""
44616         fi
44617         ;;
44618
44619       F77)
44620         if test -n "$F77" && test "X$F77" != "Xno"; then
44621
44622 ac_ext=f
44623 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
44624 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44625 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
44626
44627
44628 archive_cmds_need_lc_F77=no
44629 allow_undefined_flag_F77=
44630 always_export_symbols_F77=no
44631 archive_expsym_cmds_F77=
44632 export_dynamic_flag_spec_F77=
44633 hardcode_direct_F77=no
44634 hardcode_libdir_flag_spec_F77=
44635 hardcode_libdir_flag_spec_ld_F77=
44636 hardcode_libdir_separator_F77=
44637 hardcode_minus_L_F77=no
44638 hardcode_automatic_F77=no
44639 module_cmds_F77=
44640 module_expsym_cmds_F77=
44641 link_all_deplibs_F77=unknown
44642 old_archive_cmds_F77=$old_archive_cmds
44643 no_undefined_flag_F77=
44644 whole_archive_flag_spec_F77=
44645 enable_shared_with_static_runtimes_F77=no
44646
44647 # Source file extension for f77 test sources.
44648 ac_ext=f
44649
44650 # Object file extension for compiled f77 test sources.
44651 objext=o
44652 objext_F77=$objext
44653
44654 # Code to be used in simple compile tests
44655 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
44656
44657 # Code to be used in simple link tests
44658 lt_simple_link_test_code="      program t\n      end\n"
44659
44660 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
44661
44662 # If no C compiler was specified, use CC.
44663 LTCC=${LTCC-"$CC"}
44664
44665 # Allow CC to be a program name with arguments.
44666 compiler=$CC
44667
44668
44669 # save warnings/boilerplate of simple test code
44670 ac_outfile=conftest.$ac_objext
44671 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
44672 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
44673 _lt_compiler_boilerplate=`cat conftest.err`
44674 $rm conftest*
44675
44676 ac_outfile=conftest.$ac_objext
44677 printf "$lt_simple_link_test_code" >conftest.$ac_ext
44678 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
44679 _lt_linker_boilerplate=`cat conftest.err`
44680 $rm conftest*
44681
44682
44683 # Allow CC to be a program name with arguments.
44684 lt_save_CC="$CC"
44685 CC=${F77-"f77"}
44686 compiler=$CC
44687 compiler_F77=$CC
44688 for cc_temp in $compiler""; do
44689   case $cc_temp in
44690     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
44691     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
44692     \-*) ;;
44693     *) break;;
44694   esac
44695 done
44696 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
44697
44698
44699 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
44700 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
44701 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
44702 $as_echo "$can_build_shared" >&6; }
44703
44704 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
44705 $as_echo_n "checking whether to build shared libraries... " >&6; }
44706 test "$can_build_shared" = "no" && enable_shared=no
44707
44708 # On AIX, shared libraries and static libraries use the same namespace, and
44709 # are all built from PIC.
44710 case $host_os in
44711 aix3*)
44712   test "$enable_shared" = yes && enable_static=no
44713   if test -n "$RANLIB"; then
44714     archive_cmds="$archive_cmds~\$RANLIB \$lib"
44715     postinstall_cmds='$RANLIB $lib'
44716   fi
44717   ;;
44718 aix4* | aix5*)
44719   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
44720     test "$enable_shared" = yes && enable_static=no
44721   fi
44722   ;;
44723 esac
44724 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
44725 $as_echo "$enable_shared" >&6; }
44726
44727 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
44728 $as_echo_n "checking whether to build static libraries... " >&6; }
44729 # Make sure either enable_shared or enable_static is yes.
44730 test "$enable_shared" = yes || enable_static=yes
44731 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
44732 $as_echo "$enable_static" >&6; }
44733
44734 test "$ld_shlibs_F77" = no && can_build_shared=no
44735
44736 GCC_F77="$G77"
44737 LD_F77="$LD"
44738
44739 lt_prog_compiler_wl_F77=
44740 lt_prog_compiler_pic_F77=
44741 lt_prog_compiler_static_F77=
44742
44743 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
44744 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
44745
44746   if test "$GCC" = yes; then
44747     lt_prog_compiler_wl_F77='-Wl,'
44748     lt_prog_compiler_static_F77='-static'
44749
44750     case $host_os in
44751       aix*)
44752       # All AIX code is PIC.
44753       if test "$host_cpu" = ia64; then
44754         # AIX 5 now supports IA64 processor
44755         lt_prog_compiler_static_F77='-Bstatic'
44756       fi
44757       ;;
44758
44759     amigaos*)
44760       # FIXME: we need at least 68020 code to build shared libraries, but
44761       # adding the `-m68020' flag to GCC prevents building anything better,
44762       # like `-m68040'.
44763       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
44764       ;;
44765
44766     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
44767       # PIC is the default for these OSes.
44768       ;;
44769
44770     mingw* | pw32* | os2*)
44771       # This hack is so that the source file can tell whether it is being
44772       # built for inclusion in a dll (and should export symbols for example).
44773       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
44774       ;;
44775
44776     darwin* | rhapsody*)
44777       # PIC is the default on this platform
44778       # Common symbols not allowed in MH_DYLIB files
44779       lt_prog_compiler_pic_F77='-fno-common'
44780       ;;
44781
44782     msdosdjgpp*)
44783       # Just because we use GCC doesn't mean we suddenly get shared libraries
44784       # on systems that don't support them.
44785       lt_prog_compiler_can_build_shared_F77=no
44786       enable_shared=no
44787       ;;
44788
44789     sysv4*MP*)
44790       if test -d /usr/nec; then
44791         lt_prog_compiler_pic_F77=-Kconform_pic
44792       fi
44793       ;;
44794
44795     hpux*)
44796       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
44797       # not for PA HP-UX.
44798       case $host_cpu in
44799       hppa*64*|ia64*)
44800         # +Z the default
44801         ;;
44802       *)
44803         lt_prog_compiler_pic_F77='-fPIC'
44804         ;;
44805       esac
44806       ;;
44807
44808     *)
44809       lt_prog_compiler_pic_F77='-fPIC'
44810       ;;
44811     esac
44812   else
44813     # PORTME Check for flag to pass linker flags through the system compiler.
44814     case $host_os in
44815     aix*)
44816       lt_prog_compiler_wl_F77='-Wl,'
44817       if test "$host_cpu" = ia64; then
44818         # AIX 5 now supports IA64 processor
44819         lt_prog_compiler_static_F77='-Bstatic'
44820       else
44821         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
44822       fi
44823       ;;
44824       darwin*)
44825         # PIC is the default on this platform
44826         # Common symbols not allowed in MH_DYLIB files
44827        case $cc_basename in
44828          xlc*)
44829          lt_prog_compiler_pic_F77='-qnocommon'
44830          lt_prog_compiler_wl_F77='-Wl,'
44831          ;;
44832        esac
44833        ;;
44834
44835     mingw* | pw32* | os2*)
44836       # This hack is so that the source file can tell whether it is being
44837       # built for inclusion in a dll (and should export symbols for example).
44838       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
44839       ;;
44840
44841     hpux9* | hpux10* | hpux11*)
44842       lt_prog_compiler_wl_F77='-Wl,'
44843       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
44844       # not for PA HP-UX.
44845       case $host_cpu in
44846       hppa*64*|ia64*)
44847         # +Z the default
44848         ;;
44849       *)
44850         lt_prog_compiler_pic_F77='+Z'
44851         ;;
44852       esac
44853       # Is there a better lt_prog_compiler_static that works with the bundled CC?
44854       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
44855       ;;
44856
44857     irix5* | irix6* | nonstopux*)
44858       lt_prog_compiler_wl_F77='-Wl,'
44859       # PIC (with -KPIC) is the default.
44860       lt_prog_compiler_static_F77='-non_shared'
44861       ;;
44862
44863     newsos6)
44864       lt_prog_compiler_pic_F77='-KPIC'
44865       lt_prog_compiler_static_F77='-Bstatic'
44866       ;;
44867
44868     linux*)
44869       case $cc_basename in
44870       icc* | ecc*)
44871         lt_prog_compiler_wl_F77='-Wl,'
44872         lt_prog_compiler_pic_F77='-KPIC'
44873         lt_prog_compiler_static_F77='-static'
44874         ;;
44875       pgcc* | pgf77* | pgf90* | pgf95*)
44876         # Portland Group compilers (*not* the Pentium gcc compiler,
44877         # which looks to be a dead project)
44878         lt_prog_compiler_wl_F77='-Wl,'
44879         lt_prog_compiler_pic_F77='-fpic'
44880         lt_prog_compiler_static_F77='-Bstatic'
44881         ;;
44882       ccc*)
44883         lt_prog_compiler_wl_F77='-Wl,'
44884         # All Alpha code is PIC.
44885         lt_prog_compiler_static_F77='-non_shared'
44886         ;;
44887       esac
44888       ;;
44889
44890     osf3* | osf4* | osf5*)
44891       lt_prog_compiler_wl_F77='-Wl,'
44892       # All OSF/1 code is PIC.
44893       lt_prog_compiler_static_F77='-non_shared'
44894       ;;
44895
44896     sco3.2v5*)
44897       lt_prog_compiler_pic_F77='-Kpic'
44898       lt_prog_compiler_static_F77='-dn'
44899       ;;
44900
44901     solaris*)
44902       lt_prog_compiler_pic_F77='-KPIC'
44903       lt_prog_compiler_static_F77='-Bstatic'
44904       case $cc_basename in
44905       f77* | f90* | f95*)
44906         lt_prog_compiler_wl_F77='-Qoption ld ';;
44907       *)
44908         lt_prog_compiler_wl_F77='-Wl,';;
44909       esac
44910       ;;
44911
44912     sunos4*)
44913       lt_prog_compiler_wl_F77='-Qoption ld '
44914       lt_prog_compiler_pic_F77='-PIC'
44915       lt_prog_compiler_static_F77='-Bstatic'
44916       ;;
44917
44918     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
44919       lt_prog_compiler_wl_F77='-Wl,'
44920       lt_prog_compiler_pic_F77='-KPIC'
44921       lt_prog_compiler_static_F77='-Bstatic'
44922       ;;
44923
44924     sysv4*MP*)
44925       if test -d /usr/nec ;then
44926         lt_prog_compiler_pic_F77='-Kconform_pic'
44927         lt_prog_compiler_static_F77='-Bstatic'
44928       fi
44929       ;;
44930
44931     unicos*)
44932       lt_prog_compiler_wl_F77='-Wl,'
44933       lt_prog_compiler_can_build_shared_F77=no
44934       ;;
44935
44936     uts4*)
44937       lt_prog_compiler_pic_F77='-pic'
44938       lt_prog_compiler_static_F77='-Bstatic'
44939       ;;
44940
44941     *)
44942       lt_prog_compiler_can_build_shared_F77=no
44943       ;;
44944     esac
44945   fi
44946
44947 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
44948 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
44949
44950 #
44951 # Check to make sure the PIC flag actually works.
44952 #
44953 if test -n "$lt_prog_compiler_pic_F77"; then
44954
44955 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
44956 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
44957 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
44958   $as_echo_n "(cached) " >&6
44959 else
44960   lt_prog_compiler_pic_works_F77=no
44961   ac_outfile=conftest.$ac_objext
44962    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
44963    lt_compiler_flag="$lt_prog_compiler_pic_F77"
44964    # Insert the option either (1) after the last *FLAGS variable, or
44965    # (2) before a word containing "conftest.", or (3) at the end.
44966    # Note that $ac_compile itself does not contain backslashes and begins
44967    # with a dollar sign (not a hyphen), so the echo should work correctly.
44968    # The option is referenced via a variable to avoid confusing sed.
44969    lt_compile=`echo "$ac_compile" | $SED \
44970    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
44971    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
44972    -e 's:$: $lt_compiler_flag:'`
44973    (eval echo "\"\$as_me:44973: $lt_compile\"" >&5)
44974    (eval "$lt_compile" 2>conftest.err)
44975    ac_status=$?
44976    cat conftest.err >&5
44977    echo "$as_me:44977: \$? = $ac_status" >&5
44978    if (exit $ac_status) && test -s "$ac_outfile"; then
44979      # The compiler can only warn and ignore the option if not recognized
44980      # So say no if there are warnings other than the usual output.
44981      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
44982      $SED '/^$/d' conftest.err >conftest.er2
44983      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
44984        lt_prog_compiler_pic_works_F77=yes
44985      fi
44986    fi
44987    $rm conftest*
44988
44989 fi
44990 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
44991 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
44992
44993 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
44994     case $lt_prog_compiler_pic_F77 in
44995      "" | " "*) ;;
44996      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
44997      esac
44998 else
44999     lt_prog_compiler_pic_F77=
45000      lt_prog_compiler_can_build_shared_F77=no
45001 fi
45002
45003 fi
45004 case $host_os in
45005   # For platforms which do not support PIC, -DPIC is meaningless:
45006   *djgpp*)
45007     lt_prog_compiler_pic_F77=
45008     ;;
45009   *)
45010     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
45011     ;;
45012 esac
45013
45014 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
45015 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
45016 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
45017   $as_echo_n "(cached) " >&6
45018 else
45019   lt_cv_prog_compiler_c_o_F77=no
45020    $rm -r conftest 2>/dev/null
45021    mkdir conftest
45022    cd conftest
45023    mkdir out
45024    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
45025
45026    lt_compiler_flag="-o out/conftest2.$ac_objext"
45027    # Insert the option either (1) after the last *FLAGS variable, or
45028    # (2) before a word containing "conftest.", or (3) at the end.
45029    # Note that $ac_compile itself does not contain backslashes and begins
45030    # with a dollar sign (not a hyphen), so the echo should work correctly.
45031    lt_compile=`echo "$ac_compile" | $SED \
45032    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
45033    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
45034    -e 's:$: $lt_compiler_flag:'`
45035    (eval echo "\"\$as_me:45035: $lt_compile\"" >&5)
45036    (eval "$lt_compile" 2>out/conftest.err)
45037    ac_status=$?
45038    cat out/conftest.err >&5
45039    echo "$as_me:45039: \$? = $ac_status" >&5
45040    if (exit $ac_status) && test -s out/conftest2.$ac_objext
45041    then
45042      # The compiler can only warn and ignore the option if not recognized
45043      # So say no if there are warnings
45044      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
45045      $SED '/^$/d' out/conftest.err >out/conftest.er2
45046      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
45047        lt_cv_prog_compiler_c_o_F77=yes
45048      fi
45049    fi
45050    chmod u+w . 2>&5
45051    $rm conftest*
45052    # SGI C++ compiler will create directory out/ii_files/ for
45053    # template instantiation
45054    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
45055    $rm out/* && rmdir out
45056    cd ..
45057    rmdir conftest
45058    $rm conftest*
45059
45060 fi
45061 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
45062 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
45063
45064
45065 hard_links="nottested"
45066 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
45067   # do not overwrite the value of need_locks provided by the user
45068   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
45069 $as_echo_n "checking if we can lock with hard links... " >&6; }
45070   hard_links=yes
45071   $rm conftest*
45072   ln conftest.a conftest.b 2>/dev/null && hard_links=no
45073   touch conftest.a
45074   ln conftest.a conftest.b 2>&5 || hard_links=no
45075   ln conftest.a conftest.b 2>/dev/null && hard_links=no
45076   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
45077 $as_echo "$hard_links" >&6; }
45078   if test "$hard_links" = no; then
45079
45080     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
45081 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
45082
45083
45084     cat <<AAW_EOF >>config.warnings
45085 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
45086 AAW_EOF
45087
45088
45089     need_locks=warn
45090   fi
45091 else
45092   need_locks=no
45093 fi
45094
45095 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
45096 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
45097
45098   runpath_var=
45099   allow_undefined_flag_F77=
45100   enable_shared_with_static_runtimes_F77=no
45101   archive_cmds_F77=
45102   archive_expsym_cmds_F77=
45103   old_archive_From_new_cmds_F77=
45104   old_archive_from_expsyms_cmds_F77=
45105   export_dynamic_flag_spec_F77=
45106   whole_archive_flag_spec_F77=
45107   thread_safe_flag_spec_F77=
45108   hardcode_libdir_flag_spec_F77=
45109   hardcode_libdir_flag_spec_ld_F77=
45110   hardcode_libdir_separator_F77=
45111   hardcode_direct_F77=no
45112   hardcode_minus_L_F77=no
45113   hardcode_shlibpath_var_F77=unsupported
45114   link_all_deplibs_F77=unknown
45115   hardcode_automatic_F77=no
45116   module_cmds_F77=
45117   module_expsym_cmds_F77=
45118   always_export_symbols_F77=no
45119   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
45120   # include_expsyms should be a list of space-separated symbols to be *always*
45121   # included in the symbol list
45122   include_expsyms_F77=
45123   # exclude_expsyms can be an extended regexp of symbols to exclude
45124   # it will be wrapped by ` (' and `)$', so one must not match beginning or
45125   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
45126   # as well as any symbol that contains `d'.
45127   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
45128   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
45129   # platforms (ab)use it in PIC code, but their linkers get confused if
45130   # the symbol is explicitly referenced.  Since portable code cannot
45131   # rely on this symbol name, it's probably fine to never include it in
45132   # preloaded symbol tables.
45133   extract_expsyms_cmds=
45134   # Just being paranoid about ensuring that cc_basename is set.
45135   for cc_temp in $compiler""; do
45136   case $cc_temp in
45137     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
45138     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
45139     \-*) ;;
45140     *) break;;
45141   esac
45142 done
45143 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
45144
45145   case $host_os in
45146   cygwin* | mingw* | pw32*)
45147     # FIXME: the MSVC++ port hasn't been tested in a loooong time
45148     # When not using gcc, we currently assume that we are using
45149     # Microsoft Visual C++.
45150     if test "$GCC" != yes; then
45151       with_gnu_ld=no
45152     fi
45153     ;;
45154   openbsd*)
45155     with_gnu_ld=no
45156     ;;
45157   esac
45158
45159   ld_shlibs_F77=yes
45160   if test "$with_gnu_ld" = yes; then
45161     # If archive_cmds runs LD, not CC, wlarc should be empty
45162     wlarc='${wl}'
45163
45164     # Set some defaults for GNU ld with shared library support. These
45165     # are reset later if shared libraries are not supported. Putting them
45166     # here allows them to be overridden if necessary.
45167     runpath_var=LD_RUN_PATH
45168     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
45169     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
45170     # ancient GNU ld didn't support --whole-archive et. al.
45171     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
45172         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
45173       else
45174         whole_archive_flag_spec_F77=
45175     fi
45176     supports_anon_versioning=no
45177     case `$LD -v 2>/dev/null` in
45178       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
45179       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
45180       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
45181       *\ 2.11.*) ;; # other 2.11 versions
45182       *) supports_anon_versioning=yes ;;
45183     esac
45184
45185     # See if GNU ld supports shared libraries.
45186     case $host_os in
45187     aix3* | aix4* | aix5*)
45188       # On AIX/PPC, the GNU linker is very broken
45189       if test "$host_cpu" != ia64; then
45190         ld_shlibs_F77=no
45191         cat <<EOF 1>&2
45192
45193 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
45194 *** to be unable to reliably create shared libraries on AIX.
45195 *** Therefore, libtool is disabling shared libraries support.  If you
45196 *** really care for shared libraries, you may want to modify your PATH
45197 *** so that a non-GNU linker is found, and then restart.
45198
45199 EOF
45200       fi
45201       ;;
45202
45203     amigaos*)
45204       archive_cmds_F77='$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)'
45205       hardcode_libdir_flag_spec_F77='-L$libdir'
45206       hardcode_minus_L_F77=yes
45207
45208       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
45209       # that the semantics of dynamic libraries on AmigaOS, at least up
45210       # to version 4, is to share data among multiple programs linked
45211       # with the same dynamic library.  Since this doesn't match the
45212       # behavior of shared libraries on other platforms, we can't use
45213       # them.
45214       ld_shlibs_F77=no
45215       ;;
45216
45217     beos*)
45218       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45219         allow_undefined_flag_F77=unsupported
45220         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
45221         # support --undefined.  This deserves some investigation.  FIXME
45222         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45223       else
45224         ld_shlibs_F77=no
45225       fi
45226       ;;
45227
45228     cygwin* | mingw* | pw32*)
45229       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
45230       # as there is no search path for DLLs.
45231       hardcode_libdir_flag_spec_F77='-L$libdir'
45232       allow_undefined_flag_F77=unsupported
45233       always_export_symbols_F77=no
45234       enable_shared_with_static_runtimes_F77=yes
45235       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
45236
45237       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
45238         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
45239         # If the export-symbols file already is a .def file (1st line
45240         # is EXPORTS), use it as is; otherwise, prepend...
45241         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
45242           cp $export_symbols $output_objdir/$soname.def;
45243         else
45244           echo EXPORTS > $output_objdir/$soname.def;
45245           cat $export_symbols >> $output_objdir/$soname.def;
45246         fi~
45247         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
45248       else
45249         ld_shlibs_F77=no
45250       fi
45251       ;;
45252
45253     linux*)
45254       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45255         tmp_addflag=
45256         case $cc_basename,$host_cpu in
45257         pgcc*)                          # Portland Group C compiler
45258           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
45259           tmp_addflag=' $pic_flag'
45260           ;;
45261         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
45262           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
45263           tmp_addflag=' $pic_flag -Mnomain' ;;
45264         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
45265           tmp_addflag=' -i_dynamic' ;;
45266         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
45267           tmp_addflag=' -i_dynamic -nofor_main' ;;
45268         ifc* | ifort*)                  # Intel Fortran compiler
45269           tmp_addflag=' -nofor_main' ;;
45270         esac
45271         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45272
45273         if test $supports_anon_versioning = yes; then
45274           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
45275   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
45276   $echo "local: *; };" >> $output_objdir/$libname.ver~
45277           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
45278         fi
45279       else
45280         ld_shlibs_F77=no
45281       fi
45282       ;;
45283
45284     netbsd*)
45285       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
45286         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
45287         wlarc=
45288       else
45289         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45290         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45291       fi
45292       ;;
45293
45294     solaris* | sysv5*)
45295       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
45296         ld_shlibs_F77=no
45297         cat <<EOF 1>&2
45298
45299 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
45300 *** create shared libraries on Solaris systems.  Therefore, libtool
45301 *** is disabling shared libraries support.  We urge you to upgrade GNU
45302 *** binutils to release 2.9.1 or newer.  Another option is to modify
45303 *** your PATH or compiler configuration so that the native linker is
45304 *** used, and then restart.
45305
45306 EOF
45307       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45308         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45309         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45310       else
45311         ld_shlibs_F77=no
45312       fi
45313       ;;
45314
45315     sunos4*)
45316       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45317       wlarc=
45318       hardcode_direct_F77=yes
45319       hardcode_shlibpath_var_F77=no
45320       ;;
45321
45322     *)
45323       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45324         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45325         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45326       else
45327         ld_shlibs_F77=no
45328       fi
45329       ;;
45330     esac
45331
45332     if test "$ld_shlibs_F77" = no; then
45333       runpath_var=
45334       hardcode_libdir_flag_spec_F77=
45335       export_dynamic_flag_spec_F77=
45336       whole_archive_flag_spec_F77=
45337     fi
45338   else
45339     # PORTME fill in a description of your system's linker (not GNU ld)
45340     case $host_os in
45341     aix3*)
45342       allow_undefined_flag_F77=unsupported
45343       always_export_symbols_F77=yes
45344       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
45345       # Note: this linker hardcodes the directories in LIBPATH if there
45346       # are no directories specified by -L.
45347       hardcode_minus_L_F77=yes
45348       if test "$GCC" = yes && test -z "$link_static_flag"; then
45349         # Neither direct hardcoding nor static linking is supported with a
45350         # broken collect2.
45351         hardcode_direct_F77=unsupported
45352       fi
45353       ;;
45354
45355     aix4* | aix5*)
45356       if test "$host_cpu" = ia64; then
45357         # On IA64, the linker does run time linking by default, so we don't
45358         # have to do anything special.
45359         aix_use_runtimelinking=no
45360         exp_sym_flag='-Bexport'
45361         no_entry_flag=""
45362       else
45363         # If we're using GNU nm, then we don't want the "-C" option.
45364         # -C means demangle to AIX nm, but means don't demangle with GNU nm
45365         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
45366           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
45367         else
45368           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
45369         fi
45370         aix_use_runtimelinking=no
45371
45372         # Test if we are trying to use run time linking or normal
45373         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
45374         # need to do runtime linking.
45375         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
45376           for ld_flag in $LDFLAGS; do
45377           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
45378             aix_use_runtimelinking=yes
45379             break
45380           fi
45381           done
45382         esac
45383
45384         exp_sym_flag='-bexport'
45385         no_entry_flag='-bnoentry'
45386       fi
45387
45388       # When large executables or shared objects are built, AIX ld can
45389       # have problems creating the table of contents.  If linking a library
45390       # or program results in "error TOC overflow" add -mminimal-toc to
45391       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
45392       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
45393
45394       archive_cmds_F77=''
45395       hardcode_direct_F77=yes
45396       hardcode_libdir_separator_F77=':'
45397       link_all_deplibs_F77=yes
45398
45399       if test "$GCC" = yes; then
45400         case $host_os in aix4.[012]|aix4.[012].*)
45401         # We only want to do this on AIX 4.2 and lower, the check
45402         # below for broken collect2 doesn't work under 4.3+
45403           collect2name=`${CC} -print-prog-name=collect2`
45404           if test -f "$collect2name" && \
45405            strings "$collect2name" | grep resolve_lib_name >/dev/null
45406           then
45407           # We have reworked collect2
45408           hardcode_direct_F77=yes
45409           else
45410           # We have old collect2
45411           hardcode_direct_F77=unsupported
45412           # It fails to find uninstalled libraries when the uninstalled
45413           # path is not listed in the libpath.  Setting hardcode_minus_L
45414           # to unsupported forces relinking
45415           hardcode_minus_L_F77=yes
45416           hardcode_libdir_flag_spec_F77='-L$libdir'
45417           hardcode_libdir_separator_F77=
45418           fi
45419         esac
45420         shared_flag='-shared'
45421         if test "$aix_use_runtimelinking" = yes; then
45422           shared_flag="$shared_flag "'${wl}-G'
45423         fi
45424       else
45425         # not using gcc
45426         if test "$host_cpu" = ia64; then
45427         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
45428         # chokes on -Wl,-G. The following line is correct:
45429           shared_flag='-G'
45430         else
45431         if test "$aix_use_runtimelinking" = yes; then
45432             shared_flag='${wl}-G'
45433           else
45434             shared_flag='${wl}-bM:SRE'
45435         fi
45436         fi
45437       fi
45438
45439       # It seems that -bexpall does not export symbols beginning with
45440       # underscore (_), so it is better to generate a list of symbols to export.
45441       always_export_symbols_F77=yes
45442       if test "$aix_use_runtimelinking" = yes; then
45443         # Warning - without using the other runtime loading flags (-brtl),
45444         # -berok will link without error, but may produce a broken library.
45445         allow_undefined_flag_F77='-berok'
45446        # Determine the default libpath from the value encoded in an empty executable.
45447        cat >conftest.$ac_ext <<_ACEOF
45448       program main
45449
45450       end
45451 _ACEOF
45452 rm -f conftest.$ac_objext conftest$ac_exeext
45453 if { (ac_try="$ac_link"
45454 case "(($ac_try" in
45455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45456   *) ac_try_echo=$ac_try;;
45457 esac
45458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45459 $as_echo "$ac_try_echo") >&5
45460   (eval "$ac_link") 2>conftest.er1
45461   ac_status=$?
45462   grep -v '^ *+' conftest.er1 >conftest.err
45463   rm -f conftest.er1
45464   cat conftest.err >&5
45465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45466   (exit $ac_status); } && {
45467          test -z "$ac_f77_werror_flag" ||
45468          test ! -s conftest.err
45469        } && test -s conftest$ac_exeext && {
45470          test "$cross_compiling" = yes ||
45471          $as_test_x conftest$ac_exeext
45472        }; then
45473
45474 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
45475 }'`
45476 # Check for a 64-bit object if we didn't find anything.
45477 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
45478 }'`; fi
45479 else
45480   $as_echo "$as_me: failed program was:" >&5
45481 sed 's/^/| /' conftest.$ac_ext >&5
45482
45483
45484 fi
45485
45486 rm -rf conftest.dSYM
45487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45488       conftest$ac_exeext conftest.$ac_ext
45489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
45490
45491        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
45492         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
45493        else
45494         if test "$host_cpu" = ia64; then
45495           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
45496           allow_undefined_flag_F77="-z nodefs"
45497           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
45498         else
45499          # Determine the default libpath from the value encoded in an empty executable.
45500          cat >conftest.$ac_ext <<_ACEOF
45501       program main
45502
45503       end
45504 _ACEOF
45505 rm -f conftest.$ac_objext conftest$ac_exeext
45506 if { (ac_try="$ac_link"
45507 case "(($ac_try" in
45508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45509   *) ac_try_echo=$ac_try;;
45510 esac
45511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45512 $as_echo "$ac_try_echo") >&5
45513   (eval "$ac_link") 2>conftest.er1
45514   ac_status=$?
45515   grep -v '^ *+' conftest.er1 >conftest.err
45516   rm -f conftest.er1
45517   cat conftest.err >&5
45518   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45519   (exit $ac_status); } && {
45520          test -z "$ac_f77_werror_flag" ||
45521          test ! -s conftest.err
45522        } && test -s conftest$ac_exeext && {
45523          test "$cross_compiling" = yes ||
45524          $as_test_x conftest$ac_exeext
45525        }; then
45526
45527 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
45528 }'`
45529 # Check for a 64-bit object if we didn't find anything.
45530 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
45531 }'`; fi
45532 else
45533   $as_echo "$as_me: failed program was:" >&5
45534 sed 's/^/| /' conftest.$ac_ext >&5
45535
45536
45537 fi
45538
45539 rm -rf conftest.dSYM
45540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45541       conftest$ac_exeext conftest.$ac_ext
45542 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
45543
45544          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
45545           # Warning - without using the other run time loading flags,
45546           # -berok will link without error, but may produce a broken library.
45547           no_undefined_flag_F77=' ${wl}-bernotok'
45548           allow_undefined_flag_F77=' ${wl}-berok'
45549           # -bexpall does not export symbols beginning with underscore (_)
45550           always_export_symbols_F77=yes
45551           # Exported symbols can be pulled into shared objects from archives
45552           whole_archive_flag_spec_F77=' '
45553           archive_cmds_need_lc_F77=yes
45554           # This is similar to how AIX traditionally builds its shared libraries.
45555           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
45556         fi
45557       fi
45558       ;;
45559
45560     amigaos*)
45561       archive_cmds_F77='$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)'
45562       hardcode_libdir_flag_spec_F77='-L$libdir'
45563       hardcode_minus_L_F77=yes
45564       # see comment about different semantics on the GNU ld section
45565       ld_shlibs_F77=no
45566       ;;
45567
45568     bsdi[45]*)
45569       export_dynamic_flag_spec_F77=-rdynamic
45570       ;;
45571
45572     cygwin* | mingw* | pw32*)
45573       # When not using gcc, we currently assume that we are using
45574       # Microsoft Visual C++.
45575       # hardcode_libdir_flag_spec is actually meaningless, as there is
45576       # no search path for DLLs.
45577       hardcode_libdir_flag_spec_F77=' '
45578       allow_undefined_flag_F77=unsupported
45579       # Tell ltmain to make .lib files, not .a files.
45580       libext=lib
45581       # Tell ltmain to make .dll files, not .so files.
45582       shrext_cmds=".dll"
45583       # FIXME: Setting linknames here is a bad hack.
45584       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
45585       # The linker will automatically build a .lib file if we build a DLL.
45586       old_archive_From_new_cmds_F77='true'
45587       # FIXME: Should let the user specify the lib program.
45588       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
45589       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
45590       enable_shared_with_static_runtimes_F77=yes
45591       ;;
45592
45593     darwin* | rhapsody*)
45594       case $host_os in
45595         rhapsody* | darwin1.[012])
45596          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
45597          ;;
45598        *) # Darwin 1.3 on
45599          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
45600            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
45601          else
45602            case ${MACOSX_DEPLOYMENT_TARGET} in
45603              10.[012])
45604                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
45605                ;;
45606              10.*)
45607                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
45608                ;;
45609            esac
45610          fi
45611          ;;
45612       esac
45613       archive_cmds_need_lc_F77=no
45614       hardcode_direct_F77=no
45615       hardcode_automatic_F77=yes
45616       hardcode_shlibpath_var_F77=unsupported
45617       whole_archive_flag_spec_F77=''
45618       link_all_deplibs_F77=yes
45619     if test "$GCC" = yes ; then
45620         output_verbose_link_cmd='echo'
45621         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
45622       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
45623       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
45624       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
45625       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
45626     else
45627       case $cc_basename in
45628         xlc*)
45629          output_verbose_link_cmd='echo'
45630          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
45631          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
45632           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
45633          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
45634           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
45635           ;;
45636        *)
45637          ld_shlibs_F77=no
45638           ;;
45639       esac
45640     fi
45641       ;;
45642
45643     dgux*)
45644       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45645       hardcode_libdir_flag_spec_F77='-L$libdir'
45646       hardcode_shlibpath_var_F77=no
45647       ;;
45648
45649     freebsd1*)
45650       ld_shlibs_F77=no
45651       ;;
45652
45653     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
45654     # support.  Future versions do this automatically, but an explicit c++rt0.o
45655     # does not break anything, and helps significantly (at the cost of a little
45656     # extra space).
45657     freebsd2.2*)
45658       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
45659       hardcode_libdir_flag_spec_F77='-R$libdir'
45660       hardcode_direct_F77=yes
45661       hardcode_shlibpath_var_F77=no
45662       ;;
45663
45664     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
45665     freebsd2*)
45666       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45667       hardcode_direct_F77=yes
45668       hardcode_minus_L_F77=yes
45669       hardcode_shlibpath_var_F77=no
45670       ;;
45671
45672     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
45673     freebsd* | kfreebsd*-gnu | dragonfly*)
45674       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
45675       hardcode_libdir_flag_spec_F77='-R$libdir'
45676       hardcode_direct_F77=yes
45677       hardcode_shlibpath_var_F77=no
45678       ;;
45679
45680     hpux9*)
45681       if test "$GCC" = yes; then
45682         archive_cmds_F77='$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'
45683       else
45684         archive_cmds_F77='$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'
45685       fi
45686       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
45687       hardcode_libdir_separator_F77=:
45688       hardcode_direct_F77=yes
45689
45690       # hardcode_minus_L: Not really in the search PATH,
45691       # but as the default location of the library.
45692       hardcode_minus_L_F77=yes
45693       export_dynamic_flag_spec_F77='${wl}-E'
45694       ;;
45695
45696     hpux10* | hpux11*)
45697       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
45698         case $host_cpu in
45699         hppa*64*|ia64*)
45700           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45701           ;;
45702         *)
45703           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
45704           ;;
45705         esac
45706       else
45707         case $host_cpu in
45708         hppa*64*|ia64*)
45709           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
45710           ;;
45711         *)
45712           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
45713           ;;
45714         esac
45715       fi
45716       if test "$with_gnu_ld" = no; then
45717         case $host_cpu in
45718         hppa*64*)
45719           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
45720           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
45721           hardcode_libdir_separator_F77=:
45722           hardcode_direct_F77=no
45723           hardcode_shlibpath_var_F77=no
45724           ;;
45725         ia64*)
45726           hardcode_libdir_flag_spec_F77='-L$libdir'
45727           hardcode_direct_F77=no
45728           hardcode_shlibpath_var_F77=no
45729
45730           # hardcode_minus_L: Not really in the search PATH,
45731           # but as the default location of the library.
45732           hardcode_minus_L_F77=yes
45733           ;;
45734         *)
45735           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
45736           hardcode_libdir_separator_F77=:
45737           hardcode_direct_F77=yes
45738           export_dynamic_flag_spec_F77='${wl}-E'
45739
45740           # hardcode_minus_L: Not really in the search PATH,
45741           # but as the default location of the library.
45742           hardcode_minus_L_F77=yes
45743           ;;
45744         esac
45745       fi
45746       ;;
45747
45748     irix5* | irix6* | nonstopux*)
45749       if test "$GCC" = yes; then
45750         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
45751       else
45752         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
45753         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
45754       fi
45755       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
45756       hardcode_libdir_separator_F77=:
45757       link_all_deplibs_F77=yes
45758       ;;
45759
45760     netbsd*)
45761       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
45762         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
45763       else
45764         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
45765       fi
45766       hardcode_libdir_flag_spec_F77='-R$libdir'
45767       hardcode_direct_F77=yes
45768       hardcode_shlibpath_var_F77=no
45769       ;;
45770
45771     newsos6)
45772       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45773       hardcode_direct_F77=yes
45774       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
45775       hardcode_libdir_separator_F77=:
45776       hardcode_shlibpath_var_F77=no
45777       ;;
45778
45779     openbsd*)
45780       hardcode_direct_F77=yes
45781       hardcode_shlibpath_var_F77=no
45782       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
45783         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
45784         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
45785         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
45786         export_dynamic_flag_spec_F77='${wl}-E'
45787       else
45788        case $host_os in
45789          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
45790            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45791            hardcode_libdir_flag_spec_F77='-R$libdir'
45792            ;;
45793          *)
45794            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
45795            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
45796            ;;
45797        esac
45798       fi
45799       ;;
45800
45801     os2*)
45802       hardcode_libdir_flag_spec_F77='-L$libdir'
45803       hardcode_minus_L_F77=yes
45804       allow_undefined_flag_F77=unsupported
45805       archive_cmds_F77='$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'
45806       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
45807       ;;
45808
45809     osf3*)
45810       if test "$GCC" = yes; then
45811         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
45812         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
45813       else
45814         allow_undefined_flag_F77=' -expect_unresolved \*'
45815         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
45816       fi
45817       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
45818       hardcode_libdir_separator_F77=:
45819       ;;
45820
45821     osf4* | osf5*)      # as osf3* with the addition of -msym flag
45822       if test "$GCC" = yes; then
45823         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
45824         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
45825         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
45826       else
45827         allow_undefined_flag_F77=' -expect_unresolved \*'
45828         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
45829         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
45830         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
45831
45832         # Both c and cxx compiler support -rpath directly
45833         hardcode_libdir_flag_spec_F77='-rpath $libdir'
45834       fi
45835       hardcode_libdir_separator_F77=:
45836       ;;
45837
45838     sco3.2v5*)
45839       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45840       hardcode_shlibpath_var_F77=no
45841       export_dynamic_flag_spec_F77='${wl}-Bexport'
45842       runpath_var=LD_RUN_PATH
45843       hardcode_runpath_var=yes
45844       ;;
45845
45846     solaris*)
45847       no_undefined_flag_F77=' -z text'
45848       if test "x$archive_cmds" = "x"; then
45849         if test "$GCC" = yes; then
45850           wlarc='${wl}'
45851           if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
45852             archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45853             archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45854             $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
45855           else
45856             archive_cmds_F77='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45857             archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45858             $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
45859           fi
45860         else
45861           wlarc=''
45862           lt_prog_compiler_static_F77='-static'
45863           archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
45864           archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45865           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
45866           lt_prog_compiler_static_F77='-static'
45867         fi
45868       fi
45869       hardcode_libdir_flag_spec_F77='-R$libdir'
45870       hardcode_shlibpath_var_F77=no
45871       case $host_os in
45872       solaris2.[0-5] | solaris2.[0-5].*) ;;
45873       *)
45874         # The compiler driver will combine linker options so we
45875         # cannot just pass the convience library names through
45876         # without $wl, iff we do not link with $LD.
45877         # Luckily, gcc supports the same syntax we need for Sun Studio.
45878         # Supported since Solaris 2.6 (maybe 2.5.1?)
45879         case $wlarc in
45880         '')
45881           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
45882         *)
45883           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
45884         esac ;;
45885       esac
45886       link_all_deplibs_F77=yes
45887       ;;
45888
45889     sunos4*)
45890       if test "x$host_vendor" = xsequent; then
45891         # Use $CC to link under sequent, because it throws in some extra .o
45892         # files that make .init and .fini sections work.
45893         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
45894       else
45895         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
45896       fi
45897       hardcode_libdir_flag_spec_F77='-L$libdir'
45898       hardcode_direct_F77=yes
45899       hardcode_minus_L_F77=yes
45900       hardcode_shlibpath_var_F77=no
45901       ;;
45902
45903     sysv4)
45904       case $host_vendor in
45905         sni)
45906           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45907           hardcode_direct_F77=yes # is this really true???
45908         ;;
45909         siemens)
45910           ## LD is ld it makes a PLAMLIB
45911           ## CC just makes a GrossModule.
45912           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
45913           reload_cmds_F77='$CC -r -o $output$reload_objs'
45914           hardcode_direct_F77=no
45915         ;;
45916         motorola)
45917           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45918           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
45919         ;;
45920       esac
45921       runpath_var='LD_RUN_PATH'
45922       hardcode_shlibpath_var_F77=no
45923       ;;
45924
45925     sysv4.3*)
45926       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45927       hardcode_shlibpath_var_F77=no
45928       export_dynamic_flag_spec_F77='-Bexport'
45929       ;;
45930
45931     sysv4*MP*)
45932       if test -d /usr/nec; then
45933         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45934         hardcode_shlibpath_var_F77=no
45935         runpath_var=LD_RUN_PATH
45936         hardcode_runpath_var=yes
45937         ld_shlibs_F77=yes
45938       fi
45939       ;;
45940
45941     sysv4.2uw2*)
45942       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
45943       hardcode_direct_F77=yes
45944       hardcode_minus_L_F77=no
45945       hardcode_shlibpath_var_F77=no
45946       hardcode_runpath_var=yes
45947       runpath_var=LD_RUN_PATH
45948       ;;
45949
45950    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
45951       no_undefined_flag_F77='${wl}-z ${wl}text'
45952       if test "$GCC" = yes; then
45953         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45954       else
45955         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45956       fi
45957       runpath_var='LD_RUN_PATH'
45958       hardcode_shlibpath_var_F77=no
45959       ;;
45960
45961     sysv5*)
45962       no_undefined_flag_F77=' -z text'
45963       # $CC -shared without GNU ld will not create a library from C++
45964       # object files and a static libstdc++, better avoid it by now
45965       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
45966       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45967                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
45968       hardcode_libdir_flag_spec_F77=
45969       hardcode_shlibpath_var_F77=no
45970       runpath_var='LD_RUN_PATH'
45971       ;;
45972
45973     uts4*)
45974       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45975       hardcode_libdir_flag_spec_F77='-L$libdir'
45976       hardcode_shlibpath_var_F77=no
45977       ;;
45978
45979     *)
45980       ld_shlibs_F77=no
45981       ;;
45982     esac
45983   fi
45984
45985 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
45986 $as_echo "$ld_shlibs_F77" >&6; }
45987 test "$ld_shlibs_F77" = no && can_build_shared=no
45988
45989 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
45990 if test "$GCC" = yes; then
45991   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
45992 fi
45993
45994 #
45995 # Do we need to explicitly link libc?
45996 #
45997 case "x$archive_cmds_need_lc_F77" in
45998 x|xyes)
45999   # Assume -lc should be added
46000   archive_cmds_need_lc_F77=yes
46001
46002   if test "$enable_shared" = yes && test "$GCC" = yes; then
46003     case $archive_cmds_F77 in
46004     *'~'*)
46005       # FIXME: we may have to deal with multi-command sequences.
46006       ;;
46007     '$CC '*)
46008       # Test whether the compiler implicitly links with -lc since on some
46009       # systems, -lgcc has to come before -lc. If gcc already passes -lc
46010       # to ld, don't add -lc before -lgcc.
46011       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
46012 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
46013       $rm conftest*
46014       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
46015
46016       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46017   (eval $ac_compile) 2>&5
46018   ac_status=$?
46019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46020   (exit $ac_status); } 2>conftest.err; then
46021         soname=conftest
46022         lib=conftest
46023         libobjs=conftest.$ac_objext
46024         deplibs=
46025         wl=$lt_prog_compiler_wl_F77
46026         compiler_flags=-v
46027         linker_flags=-v
46028         verstring=
46029         output_objdir=.
46030         libname=conftest
46031         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
46032         allow_undefined_flag_F77=
46033         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
46034   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
46035   ac_status=$?
46036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46037   (exit $ac_status); }
46038         then
46039           archive_cmds_need_lc_F77=no
46040         else
46041           archive_cmds_need_lc_F77=yes
46042         fi
46043         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
46044       else
46045         cat conftest.err 1>&5
46046       fi
46047       $rm conftest*
46048       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
46049 $as_echo "$archive_cmds_need_lc_F77" >&6; }
46050       ;;
46051     esac
46052   fi
46053   ;;
46054 esac
46055
46056 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
46057 $as_echo_n "checking dynamic linker characteristics... " >&6; }
46058 library_names_spec=
46059 libname_spec='lib$name'
46060 soname_spec=
46061 shrext_cmds=".so"
46062 postinstall_cmds=
46063 postuninstall_cmds=
46064 finish_cmds=
46065 finish_eval=
46066 shlibpath_var=
46067 shlibpath_overrides_runpath=unknown
46068 version_type=none
46069 dynamic_linker="$host_os ld.so"
46070 sys_lib_dlsearch_path_spec="/lib /usr/lib"
46071 if test "$GCC" = yes; then
46072   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
46073   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
46074     # if the path contains ";" then we assume it to be the separator
46075     # otherwise default to the standard path separator (i.e. ":") - it is
46076     # assumed that no part of a normal pathname contains ";" but that should
46077     # okay in the real world where ";" in dirpaths is itself problematic.
46078     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
46079   else
46080     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
46081   fi
46082 else
46083   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
46084 fi
46085 need_lib_prefix=unknown
46086 hardcode_into_libs=no
46087
46088 # when you set need_version to no, make sure it does not cause -set_version
46089 # flags to be left without arguments
46090 need_version=unknown
46091
46092 case $host_os in
46093 aix3*)
46094   version_type=linux
46095   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
46096   shlibpath_var=LIBPATH
46097
46098   # AIX 3 has no versioning support, so we append a major version to the name.
46099   soname_spec='${libname}${release}${shared_ext}$major'
46100   ;;
46101
46102 aix4* | aix5*)
46103   version_type=linux
46104   need_lib_prefix=no
46105   need_version=no
46106   hardcode_into_libs=yes
46107   if test "$host_cpu" = ia64; then
46108     # AIX 5 supports IA64
46109     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
46110     shlibpath_var=LD_LIBRARY_PATH
46111   else
46112     # With GCC up to 2.95.x, collect2 would create an import file
46113     # for dependence libraries.  The import file would start with
46114     # the line `#! .'.  This would cause the generated library to
46115     # depend on `.', always an invalid library.  This was fixed in
46116     # development snapshots of GCC prior to 3.0.
46117     case $host_os in
46118       aix4 | aix4.[01] | aix4.[01].*)
46119       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
46120            echo ' yes '
46121            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
46122         :
46123       else
46124         can_build_shared=no
46125       fi
46126       ;;
46127     esac
46128     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
46129     # soname into executable. Probably we can add versioning support to
46130     # collect2, so additional links can be useful in future.
46131     if test "$aix_use_runtimelinking" = yes; then
46132       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
46133       # instead of lib<name>.a to let people know that these are not
46134       # typical AIX shared libraries.
46135       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46136     else
46137       # We preserve .a as extension for shared libraries through AIX4.2
46138       # and later when we are not doing run time linking.
46139       library_names_spec='${libname}${release}.a $libname.a'
46140       soname_spec='${libname}${release}${shared_ext}$major'
46141     fi
46142     shlibpath_var=LIBPATH
46143   fi
46144   ;;
46145
46146 amigaos*)
46147   library_names_spec='$libname.ixlibrary $libname.a'
46148   # Create ${libname}_ixlibrary.a entries in /sys/libs.
46149   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'
46150   ;;
46151
46152 beos*)
46153   library_names_spec='${libname}${shared_ext}'
46154   dynamic_linker="$host_os ld.so"
46155   shlibpath_var=LIBRARY_PATH
46156   ;;
46157
46158 bsdi[45]*)
46159   version_type=linux
46160   need_version=no
46161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46162   soname_spec='${libname}${release}${shared_ext}$major'
46163   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
46164   shlibpath_var=LD_LIBRARY_PATH
46165   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
46166   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
46167   # the default ld.so.conf also contains /usr/contrib/lib and
46168   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
46169   # libtool to hard-code these into programs
46170   ;;
46171
46172 cygwin* | mingw* | pw32*)
46173   version_type=windows
46174   shrext_cmds=".dll"
46175   need_version=no
46176   need_lib_prefix=no
46177
46178   case $GCC,$host_os in
46179   yes,cygwin* | yes,mingw* | yes,pw32*)
46180     library_names_spec='$libname.dll.a'
46181     # DLL is installed to $(libdir)/../bin by postinstall_cmds
46182     postinstall_cmds='base_file=`basename \${file}`~
46183       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
46184       dldir=$destdir/`dirname \$dlpath`~
46185       test -d \$dldir || mkdir -p \$dldir~
46186       $install_prog $dir/$dlname \$dldir/$dlname~
46187       chmod a+x \$dldir/$dlname'
46188     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
46189       dlpath=$dir/\$dldll~
46190        $rm \$dlpath'
46191     shlibpath_overrides_runpath=yes
46192
46193     case $host_os in
46194     cygwin*)
46195       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
46196       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46197       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
46198       ;;
46199     mingw*)
46200       # MinGW DLLs use traditional 'lib' prefix
46201       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46202       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
46203       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
46204         # It is most probably a Windows format PATH printed by
46205         # mingw gcc, but we are running on Cygwin. Gcc prints its search
46206         # path with ; separators, and with drive letters. We can handle the
46207         # drive letters (cygwin fileutils understands them), so leave them,
46208         # especially as we might pass files found there to a mingw objdump,
46209         # which wouldn't understand a cygwinified path. Ahh.
46210         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
46211       else
46212         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
46213       fi
46214       ;;
46215     pw32*)
46216       # pw32 DLLs use 'pw' prefix rather than 'lib'
46217       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46218       ;;
46219     esac
46220     ;;
46221
46222   *)
46223     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
46224     ;;
46225   esac
46226   dynamic_linker='Win32 ld.exe'
46227   # FIXME: first we should search . and the directory the executable is in
46228   shlibpath_var=PATH
46229   ;;
46230
46231 darwin* | rhapsody*)
46232   dynamic_linker="$host_os dyld"
46233   version_type=darwin
46234   need_lib_prefix=no
46235   need_version=no
46236   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
46237   soname_spec='${libname}${release}${major}$shared_ext'
46238   shlibpath_overrides_runpath=yes
46239   shlibpath_var=DYLD_LIBRARY_PATH
46240   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
46241   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
46242   if test "$GCC" = yes; then
46243     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
46244   else
46245     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
46246   fi
46247   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
46248   ;;
46249
46250 dgux*)
46251   version_type=linux
46252   need_lib_prefix=no
46253   need_version=no
46254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
46255   soname_spec='${libname}${release}${shared_ext}$major'
46256   shlibpath_var=LD_LIBRARY_PATH
46257   ;;
46258
46259 freebsd1*)
46260   dynamic_linker=no
46261   ;;
46262
46263 kfreebsd*-gnu)
46264   version_type=linux
46265   need_lib_prefix=no
46266   need_version=no
46267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46268   soname_spec='${libname}${release}${shared_ext}$major'
46269   shlibpath_var=LD_LIBRARY_PATH
46270   shlibpath_overrides_runpath=no
46271   hardcode_into_libs=yes
46272   dynamic_linker='GNU ld.so'
46273   ;;
46274
46275 freebsd* | dragonfly*)
46276   # DragonFly does not have aout.  When/if they implement a new
46277   # versioning mechanism, adjust this.
46278   if test -x /usr/bin/objformat; then
46279     objformat=`/usr/bin/objformat`
46280   else
46281     case $host_os in
46282     freebsd[123]*) objformat=aout ;;
46283     *) objformat=elf ;;
46284     esac
46285   fi
46286   version_type=freebsd-$objformat
46287   case $version_type in
46288     freebsd-elf*)
46289       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
46290       need_version=no
46291       need_lib_prefix=no
46292       ;;
46293     freebsd-*)
46294       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
46295       need_version=yes
46296       ;;
46297   esac
46298   shlibpath_var=LD_LIBRARY_PATH
46299   case $host_os in
46300   freebsd2*)
46301     shlibpath_overrides_runpath=yes
46302     ;;
46303   freebsd3.[01]* | freebsdelf3.[01]*)
46304     shlibpath_overrides_runpath=yes
46305     hardcode_into_libs=yes
46306     ;;
46307   *) # from 3.2 on
46308     shlibpath_overrides_runpath=no
46309     hardcode_into_libs=yes
46310     ;;
46311   esac
46312   ;;
46313
46314 gnu*)
46315   version_type=linux
46316   need_lib_prefix=no
46317   need_version=no
46318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
46319   soname_spec='${libname}${release}${shared_ext}$major'
46320   shlibpath_var=LD_LIBRARY_PATH
46321   hardcode_into_libs=yes
46322   ;;
46323
46324 hpux9* | hpux10* | hpux11*)
46325   # Give a soname corresponding to the major version so that dld.sl refuses to
46326   # link against other versions.
46327   version_type=sunos
46328   need_lib_prefix=no
46329   need_version=no
46330   case $host_cpu in
46331   ia64*)
46332     shrext_cmds='.so'
46333     hardcode_into_libs=yes
46334     dynamic_linker="$host_os dld.so"
46335     shlibpath_var=LD_LIBRARY_PATH
46336     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
46337     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46338     soname_spec='${libname}${release}${shared_ext}$major'
46339     if test "X$HPUX_IA64_MODE" = X32; then
46340       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
46341     else
46342       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
46343     fi
46344     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
46345     ;;
46346    hppa*64*)
46347      shrext_cmds='.sl'
46348      hardcode_into_libs=yes
46349      dynamic_linker="$host_os dld.sl"
46350      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
46351      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
46352      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46353      soname_spec='${libname}${release}${shared_ext}$major'
46354      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
46355      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
46356      ;;
46357    *)
46358     shrext_cmds='.sl'
46359     dynamic_linker="$host_os dld.sl"
46360     shlibpath_var=SHLIB_PATH
46361     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
46362     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46363     soname_spec='${libname}${release}${shared_ext}$major'
46364     ;;
46365   esac
46366   # HP-UX runs *really* slowly unless shared libraries are mode 555.
46367   postinstall_cmds='chmod 555 $lib'
46368   ;;
46369
46370 irix5* | irix6* | nonstopux*)
46371   case $host_os in
46372     nonstopux*) version_type=nonstopux ;;
46373     *)
46374         if test "$lt_cv_prog_gnu_ld" = yes; then
46375                 version_type=linux
46376         else
46377                 version_type=irix
46378         fi ;;
46379   esac
46380   need_lib_prefix=no
46381   need_version=no
46382   soname_spec='${libname}${release}${shared_ext}$major'
46383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
46384   case $host_os in
46385   irix5* | nonstopux*)
46386     libsuff= shlibsuff=
46387     ;;
46388   *)
46389     case $LD in # libtool.m4 will add one of these switches to LD
46390     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
46391       libsuff= shlibsuff= libmagic=32-bit;;
46392     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
46393       libsuff=32 shlibsuff=N32 libmagic=N32;;
46394     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
46395       libsuff=64 shlibsuff=64 libmagic=64-bit;;
46396     *) libsuff= shlibsuff= libmagic=never-match;;
46397     esac
46398     ;;
46399   esac
46400   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
46401   shlibpath_overrides_runpath=no
46402   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
46403   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
46404   hardcode_into_libs=yes
46405   ;;
46406
46407 # No shared lib support for Linux oldld, aout, or coff.
46408 linux*oldld* | linux*aout* | linux*coff*)
46409   dynamic_linker=no
46410   ;;
46411
46412 # This must be Linux ELF.
46413 linux*)
46414   version_type=linux
46415   need_lib_prefix=no
46416   need_version=no
46417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46418   soname_spec='${libname}${release}${shared_ext}$major'
46419   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
46420   shlibpath_var=LD_LIBRARY_PATH
46421   shlibpath_overrides_runpath=no
46422   # This implies no fast_install, which is unacceptable.
46423   # Some rework will be needed to allow for fast_install
46424   # before this can be enabled.
46425   hardcode_into_libs=yes
46426
46427   # Append ld.so.conf contents to the search path
46428   if test -f /etc/ld.so.conf; then
46429     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
46430     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
46431   fi
46432
46433   # We used to test for /lib/ld.so.1 and disable shared libraries on
46434   # powerpc, because MkLinux only supported shared libraries with the
46435   # GNU dynamic linker.  Since this was broken with cross compilers,
46436   # most powerpc-linux boxes support dynamic linking these days and
46437   # people can always --disable-shared, the test was removed, and we
46438   # assume the GNU/Linux dynamic linker is in use.
46439   dynamic_linker='GNU/Linux ld.so'
46440   ;;
46441
46442 knetbsd*-gnu)
46443   version_type=linux
46444   need_lib_prefix=no
46445   need_version=no
46446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46447   soname_spec='${libname}${release}${shared_ext}$major'
46448   shlibpath_var=LD_LIBRARY_PATH
46449   shlibpath_overrides_runpath=no
46450   hardcode_into_libs=yes
46451   dynamic_linker='GNU ld.so'
46452   ;;
46453
46454 netbsd*)
46455   version_type=sunos
46456   need_lib_prefix=no
46457   need_version=no
46458   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
46459     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46460     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
46461     dynamic_linker='NetBSD (a.out) ld.so'
46462   else
46463     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46464     soname_spec='${libname}${release}${shared_ext}$major'
46465     dynamic_linker='NetBSD ld.elf_so'
46466   fi
46467   shlibpath_var=LD_LIBRARY_PATH
46468   shlibpath_overrides_runpath=yes
46469   hardcode_into_libs=yes
46470   ;;
46471
46472 newsos6)
46473   version_type=linux
46474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46475   shlibpath_var=LD_LIBRARY_PATH
46476   shlibpath_overrides_runpath=yes
46477   ;;
46478
46479 nto-qnx*)
46480   version_type=linux
46481   need_lib_prefix=no
46482   need_version=no
46483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46484   soname_spec='${libname}${release}${shared_ext}$major'
46485   shlibpath_var=LD_LIBRARY_PATH
46486   shlibpath_overrides_runpath=yes
46487   ;;
46488
46489 openbsd*)
46490   version_type=sunos
46491   need_lib_prefix=no
46492   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
46493   case $host_os in
46494     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
46495     *)                         need_version=no  ;;
46496   esac
46497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46498   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
46499   shlibpath_var=LD_LIBRARY_PATH
46500   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
46501     case $host_os in
46502       openbsd2.[89] | openbsd2.[89].*)
46503         shlibpath_overrides_runpath=no
46504         ;;
46505       *)
46506         shlibpath_overrides_runpath=yes
46507         ;;
46508       esac
46509   else
46510     shlibpath_overrides_runpath=yes
46511   fi
46512   ;;
46513
46514 os2*)
46515   libname_spec='$name'
46516   shrext_cmds=".dll"
46517   need_lib_prefix=no
46518   library_names_spec='$libname${shared_ext} $libname.a'
46519   dynamic_linker='OS/2 ld.exe'
46520   shlibpath_var=LIBPATH
46521   ;;
46522
46523 osf3* | osf4* | osf5*)
46524   version_type=osf
46525   need_lib_prefix=no
46526   need_version=no
46527   soname_spec='${libname}${release}${shared_ext}$major'
46528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46529   shlibpath_var=LD_LIBRARY_PATH
46530   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
46531   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
46532   ;;
46533
46534 sco3.2v5*)
46535   version_type=osf
46536   soname_spec='${libname}${release}${shared_ext}$major'
46537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46538   shlibpath_var=LD_LIBRARY_PATH
46539   ;;
46540
46541 solaris*)
46542   version_type=linux
46543   need_lib_prefix=no
46544   need_version=no
46545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46546   soname_spec='${libname}${release}${shared_ext}$major'
46547   shlibpath_var=LD_LIBRARY_PATH
46548   shlibpath_overrides_runpath=yes
46549   hardcode_into_libs=yes
46550   # ldd complains unless libraries are executable
46551   postinstall_cmds='chmod +x $lib'
46552   ;;
46553
46554 sunos4*)
46555   version_type=sunos
46556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46557   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
46558   shlibpath_var=LD_LIBRARY_PATH
46559   shlibpath_overrides_runpath=yes
46560   if test "$with_gnu_ld" = yes; then
46561     need_lib_prefix=no
46562   fi
46563   need_version=yes
46564   ;;
46565
46566 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
46567   version_type=linux
46568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46569   soname_spec='${libname}${release}${shared_ext}$major'
46570   shlibpath_var=LD_LIBRARY_PATH
46571   case $host_vendor in
46572     sni)
46573       shlibpath_overrides_runpath=no
46574       need_lib_prefix=no
46575       export_dynamic_flag_spec='${wl}-Blargedynsym'
46576       runpath_var=LD_RUN_PATH
46577       ;;
46578     siemens)
46579       need_lib_prefix=no
46580       ;;
46581     motorola)
46582       need_lib_prefix=no
46583       need_version=no
46584       shlibpath_overrides_runpath=no
46585       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
46586       ;;
46587   esac
46588   ;;
46589
46590 sysv4*MP*)
46591   if test -d /usr/nec ;then
46592     version_type=linux
46593     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
46594     soname_spec='$libname${shared_ext}.$major'
46595     shlibpath_var=LD_LIBRARY_PATH
46596   fi
46597   ;;
46598
46599 uts4*)
46600   version_type=linux
46601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46602   soname_spec='${libname}${release}${shared_ext}$major'
46603   shlibpath_var=LD_LIBRARY_PATH
46604   ;;
46605
46606 *)
46607   dynamic_linker=no
46608   ;;
46609 esac
46610 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
46611 $as_echo "$dynamic_linker" >&6; }
46612 test "$dynamic_linker" = no && can_build_shared=no
46613
46614 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
46615 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
46616 hardcode_action_F77=
46617 if test -n "$hardcode_libdir_flag_spec_F77" || \
46618    test -n "$runpath_var_F77" || \
46619    test "X$hardcode_automatic_F77" = "Xyes" ; then
46620
46621   # We can hardcode non-existant directories.
46622   if test "$hardcode_direct_F77" != no &&
46623      # If the only mechanism to avoid hardcoding is shlibpath_var, we
46624      # have to relink, otherwise we might link with an installed library
46625      # when we should be linking with a yet-to-be-installed one
46626      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
46627      test "$hardcode_minus_L_F77" != no; then
46628     # Linking always hardcodes the temporary library directory.
46629     hardcode_action_F77=relink
46630   else
46631     # We can link without hardcoding, and we can hardcode nonexisting dirs.
46632     hardcode_action_F77=immediate
46633   fi
46634 else
46635   # We cannot hardcode anything, or else we can only hardcode existing
46636   # directories.
46637   hardcode_action_F77=unsupported
46638 fi
46639 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
46640 $as_echo "$hardcode_action_F77" >&6; }
46641
46642 if test "$hardcode_action_F77" = relink; then
46643   # Fast installation is not supported
46644   enable_fast_install=no
46645 elif test "$shlibpath_overrides_runpath" = yes ||
46646      test "$enable_shared" = no; then
46647   # Fast installation is not necessary
46648   enable_fast_install=needless
46649 fi
46650
46651 striplib=
46652 old_striplib=
46653 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
46654 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
46655 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
46656   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
46657   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
46658   { $as_echo "$as_me:$LINENO: result: yes" >&5
46659 $as_echo "yes" >&6; }
46660 else
46661 # FIXME - insert some real tests, host_os isn't really good enough
46662   case $host_os in
46663    darwin*)
46664        if test -n "$STRIP" ; then
46665          striplib="$STRIP -x"
46666          { $as_echo "$as_me:$LINENO: result: yes" >&5
46667 $as_echo "yes" >&6; }
46668        else
46669   { $as_echo "$as_me:$LINENO: result: no" >&5
46670 $as_echo "no" >&6; }
46671 fi
46672        ;;
46673    *)
46674   { $as_echo "$as_me:$LINENO: result: no" >&5
46675 $as_echo "no" >&6; }
46676     ;;
46677   esac
46678 fi
46679
46680
46681
46682 # The else clause should only fire when bootstrapping the
46683 # libtool distribution, otherwise you forgot to ship ltmain.sh
46684 # with your package, and you will get complaints that there are
46685 # no rules to generate ltmain.sh.
46686 if test -f "$ltmain"; then
46687   # See if we are running on zsh, and set the options which allow our commands through
46688   # without removal of \ escapes.
46689   if test -n "${ZSH_VERSION+set}" ; then
46690     setopt NO_GLOB_SUBST
46691   fi
46692   # Now quote all the things that may contain metacharacters while being
46693   # careful not to overquote the AC_SUBSTed values.  We take copies of the
46694   # variables and quote the copies for generation of the libtool script.
46695   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
46696     SED SHELL STRIP \
46697     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
46698     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
46699     deplibs_check_method reload_flag reload_cmds need_locks \
46700     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
46701     lt_cv_sys_global_symbol_to_c_name_address \
46702     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
46703     old_postinstall_cmds old_postuninstall_cmds \
46704     compiler_F77 \
46705     CC_F77 \
46706     LD_F77 \
46707     lt_prog_compiler_wl_F77 \
46708     lt_prog_compiler_pic_F77 \
46709     lt_prog_compiler_static_F77 \
46710     lt_prog_compiler_no_builtin_flag_F77 \
46711     export_dynamic_flag_spec_F77 \
46712     thread_safe_flag_spec_F77 \
46713     whole_archive_flag_spec_F77 \
46714     enable_shared_with_static_runtimes_F77 \
46715     old_archive_cmds_F77 \
46716     old_archive_from_new_cmds_F77 \
46717     predep_objects_F77 \
46718     postdep_objects_F77 \
46719     predeps_F77 \
46720     postdeps_F77 \
46721     compiler_lib_search_path_F77 \
46722     archive_cmds_F77 \
46723     archive_expsym_cmds_F77 \
46724     postinstall_cmds_F77 \
46725     postuninstall_cmds_F77 \
46726     old_archive_from_expsyms_cmds_F77 \
46727     allow_undefined_flag_F77 \
46728     no_undefined_flag_F77 \
46729     export_symbols_cmds_F77 \
46730     hardcode_libdir_flag_spec_F77 \
46731     hardcode_libdir_flag_spec_ld_F77 \
46732     hardcode_libdir_separator_F77 \
46733     hardcode_automatic_F77 \
46734     module_cmds_F77 \
46735     module_expsym_cmds_F77 \
46736     lt_cv_prog_compiler_c_o_F77 \
46737     exclude_expsyms_F77 \
46738     include_expsyms_F77; do
46739
46740     case $var in
46741     old_archive_cmds_F77 | \
46742     old_archive_from_new_cmds_F77 | \
46743     archive_cmds_F77 | \
46744     archive_expsym_cmds_F77 | \
46745     module_cmds_F77 | \
46746     module_expsym_cmds_F77 | \
46747     old_archive_from_expsyms_cmds_F77 | \
46748     export_symbols_cmds_F77 | \
46749     extract_expsyms_cmds | reload_cmds | finish_cmds | \
46750     postinstall_cmds | postuninstall_cmds | \
46751     old_postinstall_cmds | old_postuninstall_cmds | \
46752     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
46753       # Double-quote double-evaled strings.
46754       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
46755       ;;
46756     *)
46757       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
46758       ;;
46759     esac
46760   done
46761
46762   case $lt_echo in
46763   *'\$0 --fallback-echo"')
46764     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
46765     ;;
46766   esac
46767
46768 cfgfile="$ofile"
46769
46770   cat <<__EOF__ >> "$cfgfile"
46771 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
46772
46773 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46774
46775 # Shell to use when invoking shell scripts.
46776 SHELL=$lt_SHELL
46777
46778 # Whether or not to build shared libraries.
46779 build_libtool_libs=$enable_shared
46780
46781 # Whether or not to build static libraries.
46782 build_old_libs=$enable_static
46783
46784 # Whether or not to add -lc for building shared libraries.
46785 build_libtool_need_lc=$archive_cmds_need_lc_F77
46786
46787 # Whether or not to disallow shared libs when runtime libs are static
46788 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
46789
46790 # Whether or not to optimize for fast installation.
46791 fast_install=$enable_fast_install
46792
46793 # The host system.
46794 host_alias=$host_alias
46795 host=$host
46796 host_os=$host_os
46797
46798 # The build system.
46799 build_alias=$build_alias
46800 build=$build
46801 build_os=$build_os
46802
46803 # An echo program that does not interpret backslashes.
46804 echo=$lt_echo
46805
46806 # The archiver.
46807 AR=$lt_AR
46808 AR_FLAGS=$lt_AR_FLAGS
46809
46810 # A C compiler.
46811 LTCC=$lt_LTCC
46812
46813 # A language-specific compiler.
46814 CC=$lt_compiler_F77
46815
46816 # Is the compiler the GNU C compiler?
46817 with_gcc=$GCC_F77
46818
46819 # An ERE matcher.
46820 EGREP=$lt_EGREP
46821
46822 # The linker used to build libraries.
46823 LD=$lt_LD_F77
46824
46825 # Whether we need hard or soft links.
46826 LN_S=$lt_LN_S
46827
46828 # A BSD-compatible nm program.
46829 NM=$lt_NM
46830
46831 # A symbol stripping program
46832 STRIP=$lt_STRIP
46833
46834 # Used to examine libraries when file_magic_cmd begins "file"
46835 MAGIC_CMD=$MAGIC_CMD
46836
46837 # Used on cygwin: DLL creation program.
46838 DLLTOOL="$DLLTOOL"
46839
46840 # Used on cygwin: object dumper.
46841 OBJDUMP="$OBJDUMP"
46842
46843 # Used on cygwin: assembler.
46844 AS="$AS"
46845
46846 # The name of the directory that contains temporary libtool files.
46847 objdir=$objdir
46848
46849 # How to create reloadable object files.
46850 reload_flag=$lt_reload_flag
46851 reload_cmds=$lt_reload_cmds
46852
46853 # How to pass a linker flag through the compiler.
46854 wl=$lt_lt_prog_compiler_wl_F77
46855
46856 # Object file suffix (normally "o").
46857 objext="$ac_objext"
46858
46859 # Old archive suffix (normally "a").
46860 libext="$libext"
46861
46862 # Shared library suffix (normally ".so").
46863 shrext_cmds='$shrext_cmds'
46864
46865 # Executable file suffix (normally "").
46866 exeext="$exeext"
46867
46868 # Additional compiler flags for building library objects.
46869 pic_flag=$lt_lt_prog_compiler_pic_F77
46870 pic_mode=$pic_mode
46871
46872 # What is the maximum length of a command?
46873 max_cmd_len=$lt_cv_sys_max_cmd_len
46874
46875 # Does compiler simultaneously support -c and -o options?
46876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
46877
46878 # Must we lock files when doing compilation?
46879 need_locks=$lt_need_locks
46880
46881 # Do we need the lib prefix for modules?
46882 need_lib_prefix=$need_lib_prefix
46883
46884 # Do we need a version for libraries?
46885 need_version=$need_version
46886
46887 # Whether dlopen is supported.
46888 dlopen_support=$enable_dlopen
46889
46890 # Whether dlopen of programs is supported.
46891 dlopen_self=$enable_dlopen_self
46892
46893 # Whether dlopen of statically linked programs is supported.
46894 dlopen_self_static=$enable_dlopen_self_static
46895
46896 # Compiler flag to prevent dynamic linking.
46897 link_static_flag=$lt_lt_prog_compiler_static_F77
46898
46899 # Compiler flag to turn off builtin functions.
46900 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
46901
46902 # Compiler flag to allow reflexive dlopens.
46903 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
46904
46905 # Compiler flag to generate shared objects directly from archives.
46906 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
46907
46908 # Compiler flag to generate thread-safe objects.
46909 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
46910
46911 # Library versioning type.
46912 version_type=$version_type
46913
46914 # Format of library name prefix.
46915 libname_spec=$lt_libname_spec
46916
46917 # List of archive names.  First name is the real one, the rest are links.
46918 # The last name is the one that the linker finds with -lNAME.
46919 library_names_spec=$lt_library_names_spec
46920
46921 # The coded name of the library, if different from the real name.
46922 soname_spec=$lt_soname_spec
46923
46924 # Commands used to build and install an old-style archive.
46925 RANLIB=$lt_RANLIB
46926 old_archive_cmds=$lt_old_archive_cmds_F77
46927 old_postinstall_cmds=$lt_old_postinstall_cmds
46928 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46929
46930 # Create an old-style archive from a shared archive.
46931 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
46932
46933 # Create a temporary old-style archive to link instead of a shared archive.
46934 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
46935
46936 # Commands used to build and install a shared archive.
46937 archive_cmds=$lt_archive_cmds_F77
46938 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
46939 postinstall_cmds=$lt_postinstall_cmds
46940 postuninstall_cmds=$lt_postuninstall_cmds
46941
46942 # Commands used to build a loadable module (assumed same as above if empty)
46943 module_cmds=$lt_module_cmds_F77
46944 module_expsym_cmds=$lt_module_expsym_cmds_F77
46945
46946 # Commands to strip libraries.
46947 old_striplib=$lt_old_striplib
46948 striplib=$lt_striplib
46949
46950 # Dependencies to place before the objects being linked to create a
46951 # shared library.
46952 predep_objects=$lt_predep_objects_F77
46953
46954 # Dependencies to place after the objects being linked to create a
46955 # shared library.
46956 postdep_objects=$lt_postdep_objects_F77
46957
46958 # Dependencies to place before the objects being linked to create a
46959 # shared library.
46960 predeps=$lt_predeps_F77
46961
46962 # Dependencies to place after the objects being linked to create a
46963 # shared library.
46964 postdeps=$lt_postdeps_F77
46965
46966 # The library search path used internally by the compiler when linking
46967 # a shared library.
46968 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
46969
46970 # Method to check whether dependent libraries are shared objects.
46971 deplibs_check_method=$lt_deplibs_check_method
46972
46973 # Command to use when deplibs_check_method == file_magic.
46974 file_magic_cmd=$lt_file_magic_cmd
46975
46976 # Flag that allows shared libraries with undefined symbols to be built.
46977 allow_undefined_flag=$lt_allow_undefined_flag_F77
46978
46979 # Flag that forces no undefined symbols.
46980 no_undefined_flag=$lt_no_undefined_flag_F77
46981
46982 # Commands used to finish a libtool library installation in a directory.
46983 finish_cmds=$lt_finish_cmds
46984
46985 # Same as above, but a single script fragment to be evaled but not shown.
46986 finish_eval=$lt_finish_eval
46987
46988 # Take the output of nm and produce a listing of raw symbols and C names.
46989 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46990
46991 # Transform the output of nm in a proper C declaration
46992 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46993
46994 # Transform the output of nm in a C name address pair
46995 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46996
46997 # This is the shared library runtime path variable.
46998 runpath_var=$runpath_var
46999
47000 # This is the shared library path variable.
47001 shlibpath_var=$shlibpath_var
47002
47003 # Is shlibpath searched before the hard-coded library search path?
47004 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47005
47006 # How to hardcode a shared library path into an executable.
47007 hardcode_action=$hardcode_action_F77
47008
47009 # Whether we should hardcode library paths into libraries.
47010 hardcode_into_libs=$hardcode_into_libs
47011
47012 # Flag to hardcode \$libdir into a binary during linking.
47013 # This must work even if \$libdir does not exist.
47014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
47015
47016 # If ld is used when linking, flag to hardcode \$libdir into
47017 # a binary during linking. This must work even if \$libdir does
47018 # not exist.
47019 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
47020
47021 # Whether we need a single -rpath flag with a separated argument.
47022 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
47023
47024 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
47025 # resulting binary.
47026 hardcode_direct=$hardcode_direct_F77
47027
47028 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
47029 # resulting binary.
47030 hardcode_minus_L=$hardcode_minus_L_F77
47031
47032 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
47033 # the resulting binary.
47034 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
47035
47036 # Set to yes if building a shared library automatically hardcodes DIR into the library
47037 # and all subsequent libraries and executables linked against it.
47038 hardcode_automatic=$hardcode_automatic_F77
47039
47040 # Variables whose values should be saved in libtool wrapper scripts and
47041 # restored at relink time.
47042 variables_saved_for_relink="$variables_saved_for_relink"
47043
47044 # Whether libtool must link a program against all its dependency libraries.
47045 link_all_deplibs=$link_all_deplibs_F77
47046
47047 # Compile-time system search path for libraries
47048 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47049
47050 # Run-time system search path for libraries
47051 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47052
47053 # Fix the shell variable \$srcfile for the compiler.
47054 fix_srcfile_path="$fix_srcfile_path_F77"
47055
47056 # Set to yes if exported symbols are required.
47057 always_export_symbols=$always_export_symbols_F77
47058
47059 # The commands to list exported symbols.
47060 export_symbols_cmds=$lt_export_symbols_cmds_F77
47061
47062 # The commands to extract the exported symbol list from a shared archive.
47063 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47064
47065 # Symbols that should not be listed in the preloaded symbols.
47066 exclude_expsyms=$lt_exclude_expsyms_F77
47067
47068 # Symbols that must always be exported.
47069 include_expsyms=$lt_include_expsyms_F77
47070
47071 # ### END LIBTOOL TAG CONFIG: $tagname
47072
47073 __EOF__
47074
47075
47076 else
47077   # If there is no Makefile yet, we rely on a make rule to execute
47078   # `config.status --recheck' to rerun these tests and create the
47079   # libtool script then.
47080   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
47081   if test -f "$ltmain_in"; then
47082     test -f Makefile && make "$ltmain"
47083   fi
47084 fi
47085
47086
47087 ac_ext=c
47088 ac_cpp='$CPP $CPPFLAGS'
47089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47092
47093 CC="$lt_save_CC"
47094
47095         else
47096           tagname=""
47097         fi
47098         ;;
47099
47100       GCJ)
47101         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
47102
47103
47104 # Source file extension for Java test sources.
47105 ac_ext=java
47106
47107 # Object file extension for compiled Java test sources.
47108 objext=o
47109 objext_GCJ=$objext
47110
47111 # Code to be used in simple compile tests
47112 lt_simple_compile_test_code="class foo {}\n"
47113
47114 # Code to be used in simple link tests
47115 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
47116
47117 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
47118
47119 # If no C compiler was specified, use CC.
47120 LTCC=${LTCC-"$CC"}
47121
47122 # Allow CC to be a program name with arguments.
47123 compiler=$CC
47124
47125
47126 # save warnings/boilerplate of simple test code
47127 ac_outfile=conftest.$ac_objext
47128 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
47129 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
47130 _lt_compiler_boilerplate=`cat conftest.err`
47131 $rm conftest*
47132
47133 ac_outfile=conftest.$ac_objext
47134 printf "$lt_simple_link_test_code" >conftest.$ac_ext
47135 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
47136 _lt_linker_boilerplate=`cat conftest.err`
47137 $rm conftest*
47138
47139
47140 # Allow CC to be a program name with arguments.
47141 lt_save_CC="$CC"
47142 CC=${GCJ-"gcj"}
47143 compiler=$CC
47144 compiler_GCJ=$CC
47145 for cc_temp in $compiler""; do
47146   case $cc_temp in
47147     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
47148     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
47149     \-*) ;;
47150     *) break;;
47151   esac
47152 done
47153 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
47154
47155
47156 # GCJ did not exist at the time GCC didn't implicitly link libc in.
47157 archive_cmds_need_lc_GCJ=no
47158
47159 old_archive_cmds_GCJ=$old_archive_cmds
47160
47161 ## CAVEAT EMPTOR:
47162 ## There is no encapsulation within the following macros, do not change
47163 ## the running order or otherwise move them around unless you know exactly
47164 ## what you are doing...
47165
47166 lt_prog_compiler_no_builtin_flag_GCJ=
47167
47168 if test "$GCC" = yes; then
47169   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
47170
47171
47172 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
47173 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
47174 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
47175   $as_echo_n "(cached) " >&6
47176 else
47177   lt_cv_prog_compiler_rtti_exceptions=no
47178   ac_outfile=conftest.$ac_objext
47179    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
47180    lt_compiler_flag="-fno-rtti -fno-exceptions"
47181    # Insert the option either (1) after the last *FLAGS variable, or
47182    # (2) before a word containing "conftest.", or (3) at the end.
47183    # Note that $ac_compile itself does not contain backslashes and begins
47184    # with a dollar sign (not a hyphen), so the echo should work correctly.
47185    # The option is referenced via a variable to avoid confusing sed.
47186    lt_compile=`echo "$ac_compile" | $SED \
47187    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
47188    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
47189    -e 's:$: $lt_compiler_flag:'`
47190    (eval echo "\"\$as_me:47190: $lt_compile\"" >&5)
47191    (eval "$lt_compile" 2>conftest.err)
47192    ac_status=$?
47193    cat conftest.err >&5
47194    echo "$as_me:47194: \$? = $ac_status" >&5
47195    if (exit $ac_status) && test -s "$ac_outfile"; then
47196      # The compiler can only warn and ignore the option if not recognized
47197      # So say no if there are warnings other than the usual output.
47198      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
47199      $SED '/^$/d' conftest.err >conftest.er2
47200      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
47201        lt_cv_prog_compiler_rtti_exceptions=yes
47202      fi
47203    fi
47204    $rm conftest*
47205
47206 fi
47207 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
47208 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
47209
47210 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
47211     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
47212 else
47213     :
47214 fi
47215
47216 fi
47217
47218 lt_prog_compiler_wl_GCJ=
47219 lt_prog_compiler_pic_GCJ=
47220 lt_prog_compiler_static_GCJ=
47221
47222 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
47223 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
47224
47225   if test "$GCC" = yes; then
47226     lt_prog_compiler_wl_GCJ='-Wl,'
47227     lt_prog_compiler_static_GCJ='-static'
47228
47229     case $host_os in
47230       aix*)
47231       # All AIX code is PIC.
47232       if test "$host_cpu" = ia64; then
47233         # AIX 5 now supports IA64 processor
47234         lt_prog_compiler_static_GCJ='-Bstatic'
47235       fi
47236       ;;
47237
47238     amigaos*)
47239       # FIXME: we need at least 68020 code to build shared libraries, but
47240       # adding the `-m68020' flag to GCC prevents building anything better,
47241       # like `-m68040'.
47242       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
47243       ;;
47244
47245     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
47246       # PIC is the default for these OSes.
47247       ;;
47248
47249     mingw* | pw32* | os2*)
47250       # This hack is so that the source file can tell whether it is being
47251       # built for inclusion in a dll (and should export symbols for example).
47252       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
47253       ;;
47254
47255     darwin* | rhapsody*)
47256       # PIC is the default on this platform
47257       # Common symbols not allowed in MH_DYLIB files
47258       lt_prog_compiler_pic_GCJ='-fno-common'
47259       ;;
47260
47261     msdosdjgpp*)
47262       # Just because we use GCC doesn't mean we suddenly get shared libraries
47263       # on systems that don't support them.
47264       lt_prog_compiler_can_build_shared_GCJ=no
47265       enable_shared=no
47266       ;;
47267
47268     sysv4*MP*)
47269       if test -d /usr/nec; then
47270         lt_prog_compiler_pic_GCJ=-Kconform_pic
47271       fi
47272       ;;
47273
47274     hpux*)
47275       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
47276       # not for PA HP-UX.
47277       case $host_cpu in
47278       hppa*64*|ia64*)
47279         # +Z the default
47280         ;;
47281       *)
47282         lt_prog_compiler_pic_GCJ='-fPIC'
47283         ;;
47284       esac
47285       ;;
47286
47287     *)
47288       lt_prog_compiler_pic_GCJ='-fPIC'
47289       ;;
47290     esac
47291   else
47292     # PORTME Check for flag to pass linker flags through the system compiler.
47293     case $host_os in
47294     aix*)
47295       lt_prog_compiler_wl_GCJ='-Wl,'
47296       if test "$host_cpu" = ia64; then
47297         # AIX 5 now supports IA64 processor
47298         lt_prog_compiler_static_GCJ='-Bstatic'
47299       else
47300         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
47301       fi
47302       ;;
47303       darwin*)
47304         # PIC is the default on this platform
47305         # Common symbols not allowed in MH_DYLIB files
47306        case $cc_basename in
47307          xlc*)
47308          lt_prog_compiler_pic_GCJ='-qnocommon'
47309          lt_prog_compiler_wl_GCJ='-Wl,'
47310          ;;
47311        esac
47312        ;;
47313
47314     mingw* | pw32* | os2*)
47315       # This hack is so that the source file can tell whether it is being
47316       # built for inclusion in a dll (and should export symbols for example).
47317       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
47318       ;;
47319
47320     hpux9* | hpux10* | hpux11*)
47321       lt_prog_compiler_wl_GCJ='-Wl,'
47322       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
47323       # not for PA HP-UX.
47324       case $host_cpu in
47325       hppa*64*|ia64*)
47326         # +Z the default
47327         ;;
47328       *)
47329         lt_prog_compiler_pic_GCJ='+Z'
47330         ;;
47331       esac
47332       # Is there a better lt_prog_compiler_static that works with the bundled CC?
47333       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
47334       ;;
47335
47336     irix5* | irix6* | nonstopux*)
47337       lt_prog_compiler_wl_GCJ='-Wl,'
47338       # PIC (with -KPIC) is the default.
47339       lt_prog_compiler_static_GCJ='-non_shared'
47340       ;;
47341
47342     newsos6)
47343       lt_prog_compiler_pic_GCJ='-KPIC'
47344       lt_prog_compiler_static_GCJ='-Bstatic'
47345       ;;
47346
47347     linux*)
47348       case $cc_basename in
47349       icc* | ecc*)
47350         lt_prog_compiler_wl_GCJ='-Wl,'
47351         lt_prog_compiler_pic_GCJ='-KPIC'
47352         lt_prog_compiler_static_GCJ='-static'
47353         ;;
47354       pgcc* | pgf77* | pgf90* | pgf95*)
47355         # Portland Group compilers (*not* the Pentium gcc compiler,
47356         # which looks to be a dead project)
47357         lt_prog_compiler_wl_GCJ='-Wl,'
47358         lt_prog_compiler_pic_GCJ='-fpic'
47359         lt_prog_compiler_static_GCJ='-Bstatic'
47360         ;;
47361       ccc*)
47362         lt_prog_compiler_wl_GCJ='-Wl,'
47363         # All Alpha code is PIC.
47364         lt_prog_compiler_static_GCJ='-non_shared'
47365         ;;
47366       esac
47367       ;;
47368
47369     osf3* | osf4* | osf5*)
47370       lt_prog_compiler_wl_GCJ='-Wl,'
47371       # All OSF/1 code is PIC.
47372       lt_prog_compiler_static_GCJ='-non_shared'
47373       ;;
47374
47375     sco3.2v5*)
47376       lt_prog_compiler_pic_GCJ='-Kpic'
47377       lt_prog_compiler_static_GCJ='-dn'
47378       ;;
47379
47380     solaris*)
47381       lt_prog_compiler_pic_GCJ='-KPIC'
47382       lt_prog_compiler_static_GCJ='-Bstatic'
47383       case $cc_basename in
47384       f77* | f90* | f95*)
47385         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
47386       *)
47387         lt_prog_compiler_wl_GCJ='-Wl,';;
47388       esac
47389       ;;
47390
47391     sunos4*)
47392       lt_prog_compiler_wl_GCJ='-Qoption ld '
47393       lt_prog_compiler_pic_GCJ='-PIC'
47394       lt_prog_compiler_static_GCJ='-Bstatic'
47395       ;;
47396
47397     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
47398       lt_prog_compiler_wl_GCJ='-Wl,'
47399       lt_prog_compiler_pic_GCJ='-KPIC'
47400       lt_prog_compiler_static_GCJ='-Bstatic'
47401       ;;
47402
47403     sysv4*MP*)
47404       if test -d /usr/nec ;then
47405         lt_prog_compiler_pic_GCJ='-Kconform_pic'
47406         lt_prog_compiler_static_GCJ='-Bstatic'
47407       fi
47408       ;;
47409
47410     unicos*)
47411       lt_prog_compiler_wl_GCJ='-Wl,'
47412       lt_prog_compiler_can_build_shared_GCJ=no
47413       ;;
47414
47415     uts4*)
47416       lt_prog_compiler_pic_GCJ='-pic'
47417       lt_prog_compiler_static_GCJ='-Bstatic'
47418       ;;
47419
47420     *)
47421       lt_prog_compiler_can_build_shared_GCJ=no
47422       ;;
47423     esac
47424   fi
47425
47426 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
47427 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
47428
47429 #
47430 # Check to make sure the PIC flag actually works.
47431 #
47432 if test -n "$lt_prog_compiler_pic_GCJ"; then
47433
47434 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
47435 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
47436 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
47437   $as_echo_n "(cached) " >&6
47438 else
47439   lt_prog_compiler_pic_works_GCJ=no
47440   ac_outfile=conftest.$ac_objext
47441    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
47442    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
47443    # Insert the option either (1) after the last *FLAGS variable, or
47444    # (2) before a word containing "conftest.", or (3) at the end.
47445    # Note that $ac_compile itself does not contain backslashes and begins
47446    # with a dollar sign (not a hyphen), so the echo should work correctly.
47447    # The option is referenced via a variable to avoid confusing sed.
47448    lt_compile=`echo "$ac_compile" | $SED \
47449    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
47450    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
47451    -e 's:$: $lt_compiler_flag:'`
47452    (eval echo "\"\$as_me:47452: $lt_compile\"" >&5)
47453    (eval "$lt_compile" 2>conftest.err)
47454    ac_status=$?
47455    cat conftest.err >&5
47456    echo "$as_me:47456: \$? = $ac_status" >&5
47457    if (exit $ac_status) && test -s "$ac_outfile"; then
47458      # The compiler can only warn and ignore the option if not recognized
47459      # So say no if there are warnings other than the usual output.
47460      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
47461      $SED '/^$/d' conftest.err >conftest.er2
47462      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
47463        lt_prog_compiler_pic_works_GCJ=yes
47464      fi
47465    fi
47466    $rm conftest*
47467
47468 fi
47469 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
47470 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
47471
47472 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
47473     case $lt_prog_compiler_pic_GCJ in
47474      "" | " "*) ;;
47475      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
47476      esac
47477 else
47478     lt_prog_compiler_pic_GCJ=
47479      lt_prog_compiler_can_build_shared_GCJ=no
47480 fi
47481
47482 fi
47483 case $host_os in
47484   # For platforms which do not support PIC, -DPIC is meaningless:
47485   *djgpp*)
47486     lt_prog_compiler_pic_GCJ=
47487     ;;
47488   *)
47489     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
47490     ;;
47491 esac
47492
47493 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
47494 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
47495 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
47496   $as_echo_n "(cached) " >&6
47497 else
47498   lt_cv_prog_compiler_c_o_GCJ=no
47499    $rm -r conftest 2>/dev/null
47500    mkdir conftest
47501    cd conftest
47502    mkdir out
47503    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
47504
47505    lt_compiler_flag="-o out/conftest2.$ac_objext"
47506    # Insert the option either (1) after the last *FLAGS variable, or
47507    # (2) before a word containing "conftest.", or (3) at the end.
47508    # Note that $ac_compile itself does not contain backslashes and begins
47509    # with a dollar sign (not a hyphen), so the echo should work correctly.
47510    lt_compile=`echo "$ac_compile" | $SED \
47511    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
47512    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
47513    -e 's:$: $lt_compiler_flag:'`
47514    (eval echo "\"\$as_me:47514: $lt_compile\"" >&5)
47515    (eval "$lt_compile" 2>out/conftest.err)
47516    ac_status=$?
47517    cat out/conftest.err >&5
47518    echo "$as_me:47518: \$? = $ac_status" >&5
47519    if (exit $ac_status) && test -s out/conftest2.$ac_objext
47520    then
47521      # The compiler can only warn and ignore the option if not recognized
47522      # So say no if there are warnings
47523      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
47524      $SED '/^$/d' out/conftest.err >out/conftest.er2
47525      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
47526        lt_cv_prog_compiler_c_o_GCJ=yes
47527      fi
47528    fi
47529    chmod u+w . 2>&5
47530    $rm conftest*
47531    # SGI C++ compiler will create directory out/ii_files/ for
47532    # template instantiation
47533    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
47534    $rm out/* && rmdir out
47535    cd ..
47536    rmdir conftest
47537    $rm conftest*
47538
47539 fi
47540 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
47541 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
47542
47543
47544 hard_links="nottested"
47545 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
47546   # do not overwrite the value of need_locks provided by the user
47547   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
47548 $as_echo_n "checking if we can lock with hard links... " >&6; }
47549   hard_links=yes
47550   $rm conftest*
47551   ln conftest.a conftest.b 2>/dev/null && hard_links=no
47552   touch conftest.a
47553   ln conftest.a conftest.b 2>&5 || hard_links=no
47554   ln conftest.a conftest.b 2>/dev/null && hard_links=no
47555   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
47556 $as_echo "$hard_links" >&6; }
47557   if test "$hard_links" = no; then
47558
47559     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
47560 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
47561
47562
47563     cat <<AAW_EOF >>config.warnings
47564 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
47565 AAW_EOF
47566
47567
47568     need_locks=warn
47569   fi
47570 else
47571   need_locks=no
47572 fi
47573
47574 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
47575 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
47576
47577   runpath_var=
47578   allow_undefined_flag_GCJ=
47579   enable_shared_with_static_runtimes_GCJ=no
47580   archive_cmds_GCJ=
47581   archive_expsym_cmds_GCJ=
47582   old_archive_From_new_cmds_GCJ=
47583   old_archive_from_expsyms_cmds_GCJ=
47584   export_dynamic_flag_spec_GCJ=
47585   whole_archive_flag_spec_GCJ=
47586   thread_safe_flag_spec_GCJ=
47587   hardcode_libdir_flag_spec_GCJ=
47588   hardcode_libdir_flag_spec_ld_GCJ=
47589   hardcode_libdir_separator_GCJ=
47590   hardcode_direct_GCJ=no
47591   hardcode_minus_L_GCJ=no
47592   hardcode_shlibpath_var_GCJ=unsupported
47593   link_all_deplibs_GCJ=unknown
47594   hardcode_automatic_GCJ=no
47595   module_cmds_GCJ=
47596   module_expsym_cmds_GCJ=
47597   always_export_symbols_GCJ=no
47598   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
47599   # include_expsyms should be a list of space-separated symbols to be *always*
47600   # included in the symbol list
47601   include_expsyms_GCJ=
47602   # exclude_expsyms can be an extended regexp of symbols to exclude
47603   # it will be wrapped by ` (' and `)$', so one must not match beginning or
47604   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
47605   # as well as any symbol that contains `d'.
47606   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
47607   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
47608   # platforms (ab)use it in PIC code, but their linkers get confused if
47609   # the symbol is explicitly referenced.  Since portable code cannot
47610   # rely on this symbol name, it's probably fine to never include it in
47611   # preloaded symbol tables.
47612   extract_expsyms_cmds=
47613   # Just being paranoid about ensuring that cc_basename is set.
47614   for cc_temp in $compiler""; do
47615   case $cc_temp in
47616     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
47617     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
47618     \-*) ;;
47619     *) break;;
47620   esac
47621 done
47622 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
47623
47624   case $host_os in
47625   cygwin* | mingw* | pw32*)
47626     # FIXME: the MSVC++ port hasn't been tested in a loooong time
47627     # When not using gcc, we currently assume that we are using
47628     # Microsoft Visual C++.
47629     if test "$GCC" != yes; then
47630       with_gnu_ld=no
47631     fi
47632     ;;
47633   openbsd*)
47634     with_gnu_ld=no
47635     ;;
47636   esac
47637
47638   ld_shlibs_GCJ=yes
47639   if test "$with_gnu_ld" = yes; then
47640     # If archive_cmds runs LD, not CC, wlarc should be empty
47641     wlarc='${wl}'
47642
47643     # Set some defaults for GNU ld with shared library support. These
47644     # are reset later if shared libraries are not supported. Putting them
47645     # here allows them to be overridden if necessary.
47646     runpath_var=LD_RUN_PATH
47647     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
47648     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
47649     # ancient GNU ld didn't support --whole-archive et. al.
47650     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
47651         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
47652       else
47653         whole_archive_flag_spec_GCJ=
47654     fi
47655     supports_anon_versioning=no
47656     case `$LD -v 2>/dev/null` in
47657       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
47658       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
47659       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
47660       *\ 2.11.*) ;; # other 2.11 versions
47661       *) supports_anon_versioning=yes ;;
47662     esac
47663
47664     # See if GNU ld supports shared libraries.
47665     case $host_os in
47666     aix3* | aix4* | aix5*)
47667       # On AIX/PPC, the GNU linker is very broken
47668       if test "$host_cpu" != ia64; then
47669         ld_shlibs_GCJ=no
47670         cat <<EOF 1>&2
47671
47672 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
47673 *** to be unable to reliably create shared libraries on AIX.
47674 *** Therefore, libtool is disabling shared libraries support.  If you
47675 *** really care for shared libraries, you may want to modify your PATH
47676 *** so that a non-GNU linker is found, and then restart.
47677
47678 EOF
47679       fi
47680       ;;
47681
47682     amigaos*)
47683       archive_cmds_GCJ='$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)'
47684       hardcode_libdir_flag_spec_GCJ='-L$libdir'
47685       hardcode_minus_L_GCJ=yes
47686
47687       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
47688       # that the semantics of dynamic libraries on AmigaOS, at least up
47689       # to version 4, is to share data among multiple programs linked
47690       # with the same dynamic library.  Since this doesn't match the
47691       # behavior of shared libraries on other platforms, we can't use
47692       # them.
47693       ld_shlibs_GCJ=no
47694       ;;
47695
47696     beos*)
47697       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
47698         allow_undefined_flag_GCJ=unsupported
47699         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
47700         # support --undefined.  This deserves some investigation.  FIXME
47701         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47702       else
47703         ld_shlibs_GCJ=no
47704       fi
47705       ;;
47706
47707     cygwin* | mingw* | pw32*)
47708       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
47709       # as there is no search path for DLLs.
47710       hardcode_libdir_flag_spec_GCJ='-L$libdir'
47711       allow_undefined_flag_GCJ=unsupported
47712       always_export_symbols_GCJ=no
47713       enable_shared_with_static_runtimes_GCJ=yes
47714       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
47715
47716       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
47717         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
47718         # If the export-symbols file already is a .def file (1st line
47719         # is EXPORTS), use it as is; otherwise, prepend...
47720         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
47721           cp $export_symbols $output_objdir/$soname.def;
47722         else
47723           echo EXPORTS > $output_objdir/$soname.def;
47724           cat $export_symbols >> $output_objdir/$soname.def;
47725         fi~
47726         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
47727       else
47728         ld_shlibs_GCJ=no
47729       fi
47730       ;;
47731
47732     linux*)
47733       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
47734         tmp_addflag=
47735         case $cc_basename,$host_cpu in
47736         pgcc*)                          # Portland Group C compiler
47737           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
47738           tmp_addflag=' $pic_flag'
47739           ;;
47740         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
47741           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
47742           tmp_addflag=' $pic_flag -Mnomain' ;;
47743         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
47744           tmp_addflag=' -i_dynamic' ;;
47745         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
47746           tmp_addflag=' -i_dynamic -nofor_main' ;;
47747         ifc* | ifort*)                  # Intel Fortran compiler
47748           tmp_addflag=' -nofor_main' ;;
47749         esac
47750         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47751
47752         if test $supports_anon_versioning = yes; then
47753           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
47754   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
47755   $echo "local: *; };" >> $output_objdir/$libname.ver~
47756           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
47757         fi
47758       else
47759         ld_shlibs_GCJ=no
47760       fi
47761       ;;
47762
47763     netbsd*)
47764       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
47765         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
47766         wlarc=
47767       else
47768         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47769         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
47770       fi
47771       ;;
47772
47773     solaris* | sysv5*)
47774       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
47775         ld_shlibs_GCJ=no
47776         cat <<EOF 1>&2
47777
47778 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
47779 *** create shared libraries on Solaris systems.  Therefore, libtool
47780 *** is disabling shared libraries support.  We urge you to upgrade GNU
47781 *** binutils to release 2.9.1 or newer.  Another option is to modify
47782 *** your PATH or compiler configuration so that the native linker is
47783 *** used, and then restart.
47784
47785 EOF
47786       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
47787         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47788         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
47789       else
47790         ld_shlibs_GCJ=no
47791       fi
47792       ;;
47793
47794     sunos4*)
47795       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
47796       wlarc=
47797       hardcode_direct_GCJ=yes
47798       hardcode_shlibpath_var_GCJ=no
47799       ;;
47800
47801     *)
47802       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
47803         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47804         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
47805       else
47806         ld_shlibs_GCJ=no
47807       fi
47808       ;;
47809     esac
47810
47811     if test "$ld_shlibs_GCJ" = no; then
47812       runpath_var=
47813       hardcode_libdir_flag_spec_GCJ=
47814       export_dynamic_flag_spec_GCJ=
47815       whole_archive_flag_spec_GCJ=
47816     fi
47817   else
47818     # PORTME fill in a description of your system's linker (not GNU ld)
47819     case $host_os in
47820     aix3*)
47821       allow_undefined_flag_GCJ=unsupported
47822       always_export_symbols_GCJ=yes
47823       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
47824       # Note: this linker hardcodes the directories in LIBPATH if there
47825       # are no directories specified by -L.
47826       hardcode_minus_L_GCJ=yes
47827       if test "$GCC" = yes && test -z "$link_static_flag"; then
47828         # Neither direct hardcoding nor static linking is supported with a
47829         # broken collect2.
47830         hardcode_direct_GCJ=unsupported
47831       fi
47832       ;;
47833
47834     aix4* | aix5*)
47835       if test "$host_cpu" = ia64; then
47836         # On IA64, the linker does run time linking by default, so we don't
47837         # have to do anything special.
47838         aix_use_runtimelinking=no
47839         exp_sym_flag='-Bexport'
47840         no_entry_flag=""
47841       else
47842         # If we're using GNU nm, then we don't want the "-C" option.
47843         # -C means demangle to AIX nm, but means don't demangle with GNU nm
47844         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
47845           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
47846         else
47847           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
47848         fi
47849         aix_use_runtimelinking=no
47850
47851         # Test if we are trying to use run time linking or normal
47852         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
47853         # need to do runtime linking.
47854         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
47855           for ld_flag in $LDFLAGS; do
47856           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
47857             aix_use_runtimelinking=yes
47858             break
47859           fi
47860           done
47861         esac
47862
47863         exp_sym_flag='-bexport'
47864         no_entry_flag='-bnoentry'
47865       fi
47866
47867       # When large executables or shared objects are built, AIX ld can
47868       # have problems creating the table of contents.  If linking a library
47869       # or program results in "error TOC overflow" add -mminimal-toc to
47870       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
47871       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
47872
47873       archive_cmds_GCJ=''
47874       hardcode_direct_GCJ=yes
47875       hardcode_libdir_separator_GCJ=':'
47876       link_all_deplibs_GCJ=yes
47877
47878       if test "$GCC" = yes; then
47879         case $host_os in aix4.[012]|aix4.[012].*)
47880         # We only want to do this on AIX 4.2 and lower, the check
47881         # below for broken collect2 doesn't work under 4.3+
47882           collect2name=`${CC} -print-prog-name=collect2`
47883           if test -f "$collect2name" && \
47884            strings "$collect2name" | grep resolve_lib_name >/dev/null
47885           then
47886           # We have reworked collect2
47887           hardcode_direct_GCJ=yes
47888           else
47889           # We have old collect2
47890           hardcode_direct_GCJ=unsupported
47891           # It fails to find uninstalled libraries when the uninstalled
47892           # path is not listed in the libpath.  Setting hardcode_minus_L
47893           # to unsupported forces relinking
47894           hardcode_minus_L_GCJ=yes
47895           hardcode_libdir_flag_spec_GCJ='-L$libdir'
47896           hardcode_libdir_separator_GCJ=
47897           fi
47898         esac
47899         shared_flag='-shared'
47900         if test "$aix_use_runtimelinking" = yes; then
47901           shared_flag="$shared_flag "'${wl}-G'
47902         fi
47903       else
47904         # not using gcc
47905         if test "$host_cpu" = ia64; then
47906         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
47907         # chokes on -Wl,-G. The following line is correct:
47908           shared_flag='-G'
47909         else
47910         if test "$aix_use_runtimelinking" = yes; then
47911             shared_flag='${wl}-G'
47912           else
47913             shared_flag='${wl}-bM:SRE'
47914         fi
47915         fi
47916       fi
47917
47918       # It seems that -bexpall does not export symbols beginning with
47919       # underscore (_), so it is better to generate a list of symbols to export.
47920       always_export_symbols_GCJ=yes
47921       if test "$aix_use_runtimelinking" = yes; then
47922         # Warning - without using the other runtime loading flags (-brtl),
47923         # -berok will link without error, but may produce a broken library.
47924         allow_undefined_flag_GCJ='-berok'
47925        # Determine the default libpath from the value encoded in an empty executable.
47926        cat >conftest.$ac_ext <<_ACEOF
47927 /* confdefs.h.  */
47928 _ACEOF
47929 cat confdefs.h >>conftest.$ac_ext
47930 cat >>conftest.$ac_ext <<_ACEOF
47931 /* end confdefs.h.  */
47932
47933 int
47934 main ()
47935 {
47936
47937   ;
47938   return 0;
47939 }
47940 _ACEOF
47941 rm -f conftest.$ac_objext conftest$ac_exeext
47942 if { (ac_try="$ac_link"
47943 case "(($ac_try" in
47944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47945   *) ac_try_echo=$ac_try;;
47946 esac
47947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47948 $as_echo "$ac_try_echo") >&5
47949   (eval "$ac_link") 2>conftest.er1
47950   ac_status=$?
47951   grep -v '^ *+' conftest.er1 >conftest.err
47952   rm -f conftest.er1
47953   cat conftest.err >&5
47954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47955   (exit $ac_status); } && {
47956          test -z "$ac_c_werror_flag" ||
47957          test ! -s conftest.err
47958        } && test -s conftest$ac_exeext && {
47959          test "$cross_compiling" = yes ||
47960          $as_test_x conftest$ac_exeext
47961        }; then
47962
47963 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
47964 }'`
47965 # Check for a 64-bit object if we didn't find anything.
47966 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
47967 }'`; fi
47968 else
47969   $as_echo "$as_me: failed program was:" >&5
47970 sed 's/^/| /' conftest.$ac_ext >&5
47971
47972
47973 fi
47974
47975 rm -rf conftest.dSYM
47976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47977       conftest$ac_exeext conftest.$ac_ext
47978 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
47979
47980        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
47981         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
47982        else
47983         if test "$host_cpu" = ia64; then
47984           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
47985           allow_undefined_flag_GCJ="-z nodefs"
47986           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
47987         else
47988          # Determine the default libpath from the value encoded in an empty executable.
47989          cat >conftest.$ac_ext <<_ACEOF
47990 /* confdefs.h.  */
47991 _ACEOF
47992 cat confdefs.h >>conftest.$ac_ext
47993 cat >>conftest.$ac_ext <<_ACEOF
47994 /* end confdefs.h.  */
47995
47996 int
47997 main ()
47998 {
47999
48000   ;
48001   return 0;
48002 }
48003 _ACEOF
48004 rm -f conftest.$ac_objext conftest$ac_exeext
48005 if { (ac_try="$ac_link"
48006 case "(($ac_try" in
48007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48008   *) ac_try_echo=$ac_try;;
48009 esac
48010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48011 $as_echo "$ac_try_echo") >&5
48012   (eval "$ac_link") 2>conftest.er1
48013   ac_status=$?
48014   grep -v '^ *+' conftest.er1 >conftest.err
48015   rm -f conftest.er1
48016   cat conftest.err >&5
48017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48018   (exit $ac_status); } && {
48019          test -z "$ac_c_werror_flag" ||
48020          test ! -s conftest.err
48021        } && test -s conftest$ac_exeext && {
48022          test "$cross_compiling" = yes ||
48023          $as_test_x conftest$ac_exeext
48024        }; then
48025
48026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
48027 }'`
48028 # Check for a 64-bit object if we didn't find anything.
48029 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
48030 }'`; fi
48031 else
48032   $as_echo "$as_me: failed program was:" >&5
48033 sed 's/^/| /' conftest.$ac_ext >&5
48034
48035
48036 fi
48037
48038 rm -rf conftest.dSYM
48039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48040       conftest$ac_exeext conftest.$ac_ext
48041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
48042
48043          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
48044           # Warning - without using the other run time loading flags,
48045           # -berok will link without error, but may produce a broken library.
48046           no_undefined_flag_GCJ=' ${wl}-bernotok'
48047           allow_undefined_flag_GCJ=' ${wl}-berok'
48048           # -bexpall does not export symbols beginning with underscore (_)
48049           always_export_symbols_GCJ=yes
48050           # Exported symbols can be pulled into shared objects from archives
48051           whole_archive_flag_spec_GCJ=' '
48052           archive_cmds_need_lc_GCJ=yes
48053           # This is similar to how AIX traditionally builds its shared libraries.
48054           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
48055         fi
48056       fi
48057       ;;
48058
48059     amigaos*)
48060       archive_cmds_GCJ='$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)'
48061       hardcode_libdir_flag_spec_GCJ='-L$libdir'
48062       hardcode_minus_L_GCJ=yes
48063       # see comment about different semantics on the GNU ld section
48064       ld_shlibs_GCJ=no
48065       ;;
48066
48067     bsdi[45]*)
48068       export_dynamic_flag_spec_GCJ=-rdynamic
48069       ;;
48070
48071     cygwin* | mingw* | pw32*)
48072       # When not using gcc, we currently assume that we are using
48073       # Microsoft Visual C++.
48074       # hardcode_libdir_flag_spec is actually meaningless, as there is
48075       # no search path for DLLs.
48076       hardcode_libdir_flag_spec_GCJ=' '
48077       allow_undefined_flag_GCJ=unsupported
48078       # Tell ltmain to make .lib files, not .a files.
48079       libext=lib
48080       # Tell ltmain to make .dll files, not .so files.
48081       shrext_cmds=".dll"
48082       # FIXME: Setting linknames here is a bad hack.
48083       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
48084       # The linker will automatically build a .lib file if we build a DLL.
48085       old_archive_From_new_cmds_GCJ='true'
48086       # FIXME: Should let the user specify the lib program.
48087       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
48088       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
48089       enable_shared_with_static_runtimes_GCJ=yes
48090       ;;
48091
48092     darwin* | rhapsody*)
48093       case $host_os in
48094         rhapsody* | darwin1.[012])
48095          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
48096          ;;
48097        *) # Darwin 1.3 on
48098          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
48099            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
48100          else
48101            case ${MACOSX_DEPLOYMENT_TARGET} in
48102              10.[012])
48103                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
48104                ;;
48105              10.*)
48106                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
48107                ;;
48108            esac
48109          fi
48110          ;;
48111       esac
48112       archive_cmds_need_lc_GCJ=no
48113       hardcode_direct_GCJ=no
48114       hardcode_automatic_GCJ=yes
48115       hardcode_shlibpath_var_GCJ=unsupported
48116       whole_archive_flag_spec_GCJ=''
48117       link_all_deplibs_GCJ=yes
48118     if test "$GCC" = yes ; then
48119         output_verbose_link_cmd='echo'
48120         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
48121       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
48122       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
48123       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
48124       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
48125     else
48126       case $cc_basename in
48127         xlc*)
48128          output_verbose_link_cmd='echo'
48129          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
48130          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
48131           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
48132          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
48133           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
48134           ;;
48135        *)
48136          ld_shlibs_GCJ=no
48137           ;;
48138       esac
48139     fi
48140       ;;
48141
48142     dgux*)
48143       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48144       hardcode_libdir_flag_spec_GCJ='-L$libdir'
48145       hardcode_shlibpath_var_GCJ=no
48146       ;;
48147
48148     freebsd1*)
48149       ld_shlibs_GCJ=no
48150       ;;
48151
48152     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
48153     # support.  Future versions do this automatically, but an explicit c++rt0.o
48154     # does not break anything, and helps significantly (at the cost of a little
48155     # extra space).
48156     freebsd2.2*)
48157       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
48158       hardcode_libdir_flag_spec_GCJ='-R$libdir'
48159       hardcode_direct_GCJ=yes
48160       hardcode_shlibpath_var_GCJ=no
48161       ;;
48162
48163     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
48164     freebsd2*)
48165       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
48166       hardcode_direct_GCJ=yes
48167       hardcode_minus_L_GCJ=yes
48168       hardcode_shlibpath_var_GCJ=no
48169       ;;
48170
48171     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
48172     freebsd* | kfreebsd*-gnu | dragonfly*)
48173       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
48174       hardcode_libdir_flag_spec_GCJ='-R$libdir'
48175       hardcode_direct_GCJ=yes
48176       hardcode_shlibpath_var_GCJ=no
48177       ;;
48178
48179     hpux9*)
48180       if test "$GCC" = yes; then
48181         archive_cmds_GCJ='$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'
48182       else
48183         archive_cmds_GCJ='$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'
48184       fi
48185       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
48186       hardcode_libdir_separator_GCJ=:
48187       hardcode_direct_GCJ=yes
48188
48189       # hardcode_minus_L: Not really in the search PATH,
48190       # but as the default location of the library.
48191       hardcode_minus_L_GCJ=yes
48192       export_dynamic_flag_spec_GCJ='${wl}-E'
48193       ;;
48194
48195     hpux10* | hpux11*)
48196       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
48197         case $host_cpu in
48198         hppa*64*|ia64*)
48199           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48200           ;;
48201         *)
48202           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
48203           ;;
48204         esac
48205       else
48206         case $host_cpu in
48207         hppa*64*|ia64*)
48208           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
48209           ;;
48210         *)
48211           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
48212           ;;
48213         esac
48214       fi
48215       if test "$with_gnu_ld" = no; then
48216         case $host_cpu in
48217         hppa*64*)
48218           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
48219           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
48220           hardcode_libdir_separator_GCJ=:
48221           hardcode_direct_GCJ=no
48222           hardcode_shlibpath_var_GCJ=no
48223           ;;
48224         ia64*)
48225           hardcode_libdir_flag_spec_GCJ='-L$libdir'
48226           hardcode_direct_GCJ=no
48227           hardcode_shlibpath_var_GCJ=no
48228
48229           # hardcode_minus_L: Not really in the search PATH,
48230           # but as the default location of the library.
48231           hardcode_minus_L_GCJ=yes
48232           ;;
48233         *)
48234           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
48235           hardcode_libdir_separator_GCJ=:
48236           hardcode_direct_GCJ=yes
48237           export_dynamic_flag_spec_GCJ='${wl}-E'
48238
48239           # hardcode_minus_L: Not really in the search PATH,
48240           # but as the default location of the library.
48241           hardcode_minus_L_GCJ=yes
48242           ;;
48243         esac
48244       fi
48245       ;;
48246
48247     irix5* | irix6* | nonstopux*)
48248       if test "$GCC" = yes; then
48249         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
48250       else
48251         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
48252         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
48253       fi
48254       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
48255       hardcode_libdir_separator_GCJ=:
48256       link_all_deplibs_GCJ=yes
48257       ;;
48258
48259     netbsd*)
48260       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
48261         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
48262       else
48263         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
48264       fi
48265       hardcode_libdir_flag_spec_GCJ='-R$libdir'
48266       hardcode_direct_GCJ=yes
48267       hardcode_shlibpath_var_GCJ=no
48268       ;;
48269
48270     newsos6)
48271       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48272       hardcode_direct_GCJ=yes
48273       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
48274       hardcode_libdir_separator_GCJ=:
48275       hardcode_shlibpath_var_GCJ=no
48276       ;;
48277
48278     openbsd*)
48279       hardcode_direct_GCJ=yes
48280       hardcode_shlibpath_var_GCJ=no
48281       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
48282         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
48283         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
48284         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
48285         export_dynamic_flag_spec_GCJ='${wl}-E'
48286       else
48287        case $host_os in
48288          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
48289            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
48290            hardcode_libdir_flag_spec_GCJ='-R$libdir'
48291            ;;
48292          *)
48293            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
48294            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
48295            ;;
48296        esac
48297       fi
48298       ;;
48299
48300     os2*)
48301       hardcode_libdir_flag_spec_GCJ='-L$libdir'
48302       hardcode_minus_L_GCJ=yes
48303       allow_undefined_flag_GCJ=unsupported
48304       archive_cmds_GCJ='$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'
48305       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
48306       ;;
48307
48308     osf3*)
48309       if test "$GCC" = yes; then
48310         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
48311         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
48312       else
48313         allow_undefined_flag_GCJ=' -expect_unresolved \*'
48314         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
48315       fi
48316       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
48317       hardcode_libdir_separator_GCJ=:
48318       ;;
48319
48320     osf4* | osf5*)      # as osf3* with the addition of -msym flag
48321       if test "$GCC" = yes; then
48322         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
48323         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
48324         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
48325       else
48326         allow_undefined_flag_GCJ=' -expect_unresolved \*'
48327         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
48328         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
48329         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
48330
48331         # Both c and cxx compiler support -rpath directly
48332         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
48333       fi
48334       hardcode_libdir_separator_GCJ=:
48335       ;;
48336
48337     sco3.2v5*)
48338       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48339       hardcode_shlibpath_var_GCJ=no
48340       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
48341       runpath_var=LD_RUN_PATH
48342       hardcode_runpath_var=yes
48343       ;;
48344
48345     solaris*)
48346       no_undefined_flag_GCJ=' -z text'
48347       if test "x$archive_cmds" = "x"; then
48348         if test "$GCC" = yes; then
48349           wlarc='${wl}'
48350           if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
48351             archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48352             archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
48353             $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
48354           else
48355             archive_cmds_GCJ='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48356             archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
48357             $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
48358           fi
48359         else
48360           wlarc=''
48361           lt_prog_compiler_static_GCJ='-static'
48362           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
48363           archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
48364           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
48365           lt_prog_compiler_static_GCJ='-static'
48366         fi
48367       fi
48368       hardcode_libdir_flag_spec_GCJ='-R$libdir'
48369       hardcode_shlibpath_var_GCJ=no
48370       case $host_os in
48371       solaris2.[0-5] | solaris2.[0-5].*) ;;
48372       *)
48373         # The compiler driver will combine linker options so we
48374         # cannot just pass the convience library names through
48375         # without $wl, iff we do not link with $LD.
48376         # Luckily, gcc supports the same syntax we need for Sun Studio.
48377         # Supported since Solaris 2.6 (maybe 2.5.1?)
48378         case $wlarc in
48379         '')
48380           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
48381         *)
48382           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
48383         esac ;;
48384       esac
48385       link_all_deplibs_GCJ=yes
48386       ;;
48387
48388     sunos4*)
48389       if test "x$host_vendor" = xsequent; then
48390         # Use $CC to link under sequent, because it throws in some extra .o
48391         # files that make .init and .fini sections work.
48392         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
48393       else
48394         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
48395       fi
48396       hardcode_libdir_flag_spec_GCJ='-L$libdir'
48397       hardcode_direct_GCJ=yes
48398       hardcode_minus_L_GCJ=yes
48399       hardcode_shlibpath_var_GCJ=no
48400       ;;
48401
48402     sysv4)
48403       case $host_vendor in
48404         sni)
48405           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48406           hardcode_direct_GCJ=yes # is this really true???
48407         ;;
48408         siemens)
48409           ## LD is ld it makes a PLAMLIB
48410           ## CC just makes a GrossModule.
48411           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
48412           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
48413           hardcode_direct_GCJ=no
48414         ;;
48415         motorola)
48416           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48417           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
48418         ;;
48419       esac
48420       runpath_var='LD_RUN_PATH'
48421       hardcode_shlibpath_var_GCJ=no
48422       ;;
48423
48424     sysv4.3*)
48425       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48426       hardcode_shlibpath_var_GCJ=no
48427       export_dynamic_flag_spec_GCJ='-Bexport'
48428       ;;
48429
48430     sysv4*MP*)
48431       if test -d /usr/nec; then
48432         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48433         hardcode_shlibpath_var_GCJ=no
48434         runpath_var=LD_RUN_PATH
48435         hardcode_runpath_var=yes
48436         ld_shlibs_GCJ=yes
48437       fi
48438       ;;
48439
48440     sysv4.2uw2*)
48441       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
48442       hardcode_direct_GCJ=yes
48443       hardcode_minus_L_GCJ=no
48444       hardcode_shlibpath_var_GCJ=no
48445       hardcode_runpath_var=yes
48446       runpath_var=LD_RUN_PATH
48447       ;;
48448
48449    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
48450       no_undefined_flag_GCJ='${wl}-z ${wl}text'
48451       if test "$GCC" = yes; then
48452         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48453       else
48454         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48455       fi
48456       runpath_var='LD_RUN_PATH'
48457       hardcode_shlibpath_var_GCJ=no
48458       ;;
48459
48460     sysv5*)
48461       no_undefined_flag_GCJ=' -z text'
48462       # $CC -shared without GNU ld will not create a library from C++
48463       # object files and a static libstdc++, better avoid it by now
48464       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
48465       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
48466                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
48467       hardcode_libdir_flag_spec_GCJ=
48468       hardcode_shlibpath_var_GCJ=no
48469       runpath_var='LD_RUN_PATH'
48470       ;;
48471
48472     uts4*)
48473       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48474       hardcode_libdir_flag_spec_GCJ='-L$libdir'
48475       hardcode_shlibpath_var_GCJ=no
48476       ;;
48477
48478     *)
48479       ld_shlibs_GCJ=no
48480       ;;
48481     esac
48482   fi
48483
48484 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
48485 $as_echo "$ld_shlibs_GCJ" >&6; }
48486 test "$ld_shlibs_GCJ" = no && can_build_shared=no
48487
48488 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
48489 if test "$GCC" = yes; then
48490   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
48491 fi
48492
48493 #
48494 # Do we need to explicitly link libc?
48495 #
48496 case "x$archive_cmds_need_lc_GCJ" in
48497 x|xyes)
48498   # Assume -lc should be added
48499   archive_cmds_need_lc_GCJ=yes
48500
48501   if test "$enable_shared" = yes && test "$GCC" = yes; then
48502     case $archive_cmds_GCJ in
48503     *'~'*)
48504       # FIXME: we may have to deal with multi-command sequences.
48505       ;;
48506     '$CC '*)
48507       # Test whether the compiler implicitly links with -lc since on some
48508       # systems, -lgcc has to come before -lc. If gcc already passes -lc
48509       # to ld, don't add -lc before -lgcc.
48510       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
48511 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
48512       $rm conftest*
48513       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
48514
48515       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48516   (eval $ac_compile) 2>&5
48517   ac_status=$?
48518   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48519   (exit $ac_status); } 2>conftest.err; then
48520         soname=conftest
48521         lib=conftest
48522         libobjs=conftest.$ac_objext
48523         deplibs=
48524         wl=$lt_prog_compiler_wl_GCJ
48525         compiler_flags=-v
48526         linker_flags=-v
48527         verstring=
48528         output_objdir=.
48529         libname=conftest
48530         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
48531         allow_undefined_flag_GCJ=
48532         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
48533   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
48534   ac_status=$?
48535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48536   (exit $ac_status); }
48537         then
48538           archive_cmds_need_lc_GCJ=no
48539         else
48540           archive_cmds_need_lc_GCJ=yes
48541         fi
48542         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
48543       else
48544         cat conftest.err 1>&5
48545       fi
48546       $rm conftest*
48547       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
48548 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
48549       ;;
48550     esac
48551   fi
48552   ;;
48553 esac
48554
48555 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
48556 $as_echo_n "checking dynamic linker characteristics... " >&6; }
48557 library_names_spec=
48558 libname_spec='lib$name'
48559 soname_spec=
48560 shrext_cmds=".so"
48561 postinstall_cmds=
48562 postuninstall_cmds=
48563 finish_cmds=
48564 finish_eval=
48565 shlibpath_var=
48566 shlibpath_overrides_runpath=unknown
48567 version_type=none
48568 dynamic_linker="$host_os ld.so"
48569 sys_lib_dlsearch_path_spec="/lib /usr/lib"
48570 if test "$GCC" = yes; then
48571   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
48572   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
48573     # if the path contains ";" then we assume it to be the separator
48574     # otherwise default to the standard path separator (i.e. ":") - it is
48575     # assumed that no part of a normal pathname contains ";" but that should
48576     # okay in the real world where ";" in dirpaths is itself problematic.
48577     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
48578   else
48579     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
48580   fi
48581 else
48582   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
48583 fi
48584 need_lib_prefix=unknown
48585 hardcode_into_libs=no
48586
48587 # when you set need_version to no, make sure it does not cause -set_version
48588 # flags to be left without arguments
48589 need_version=unknown
48590
48591 case $host_os in
48592 aix3*)
48593   version_type=linux
48594   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
48595   shlibpath_var=LIBPATH
48596
48597   # AIX 3 has no versioning support, so we append a major version to the name.
48598   soname_spec='${libname}${release}${shared_ext}$major'
48599   ;;
48600
48601 aix4* | aix5*)
48602   version_type=linux
48603   need_lib_prefix=no
48604   need_version=no
48605   hardcode_into_libs=yes
48606   if test "$host_cpu" = ia64; then
48607     # AIX 5 supports IA64
48608     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
48609     shlibpath_var=LD_LIBRARY_PATH
48610   else
48611     # With GCC up to 2.95.x, collect2 would create an import file
48612     # for dependence libraries.  The import file would start with
48613     # the line `#! .'.  This would cause the generated library to
48614     # depend on `.', always an invalid library.  This was fixed in
48615     # development snapshots of GCC prior to 3.0.
48616     case $host_os in
48617       aix4 | aix4.[01] | aix4.[01].*)
48618       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
48619            echo ' yes '
48620            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
48621         :
48622       else
48623         can_build_shared=no
48624       fi
48625       ;;
48626     esac
48627     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
48628     # soname into executable. Probably we can add versioning support to
48629     # collect2, so additional links can be useful in future.
48630     if test "$aix_use_runtimelinking" = yes; then
48631       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
48632       # instead of lib<name>.a to let people know that these are not
48633       # typical AIX shared libraries.
48634       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48635     else
48636       # We preserve .a as extension for shared libraries through AIX4.2
48637       # and later when we are not doing run time linking.
48638       library_names_spec='${libname}${release}.a $libname.a'
48639       soname_spec='${libname}${release}${shared_ext}$major'
48640     fi
48641     shlibpath_var=LIBPATH
48642   fi
48643   ;;
48644
48645 amigaos*)
48646   library_names_spec='$libname.ixlibrary $libname.a'
48647   # Create ${libname}_ixlibrary.a entries in /sys/libs.
48648   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'
48649   ;;
48650
48651 beos*)
48652   library_names_spec='${libname}${shared_ext}'
48653   dynamic_linker="$host_os ld.so"
48654   shlibpath_var=LIBRARY_PATH
48655   ;;
48656
48657 bsdi[45]*)
48658   version_type=linux
48659   need_version=no
48660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48661   soname_spec='${libname}${release}${shared_ext}$major'
48662   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
48663   shlibpath_var=LD_LIBRARY_PATH
48664   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
48665   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
48666   # the default ld.so.conf also contains /usr/contrib/lib and
48667   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
48668   # libtool to hard-code these into programs
48669   ;;
48670
48671 cygwin* | mingw* | pw32*)
48672   version_type=windows
48673   shrext_cmds=".dll"
48674   need_version=no
48675   need_lib_prefix=no
48676
48677   case $GCC,$host_os in
48678   yes,cygwin* | yes,mingw* | yes,pw32*)
48679     library_names_spec='$libname.dll.a'
48680     # DLL is installed to $(libdir)/../bin by postinstall_cmds
48681     postinstall_cmds='base_file=`basename \${file}`~
48682       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
48683       dldir=$destdir/`dirname \$dlpath`~
48684       test -d \$dldir || mkdir -p \$dldir~
48685       $install_prog $dir/$dlname \$dldir/$dlname~
48686       chmod a+x \$dldir/$dlname'
48687     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
48688       dlpath=$dir/\$dldll~
48689        $rm \$dlpath'
48690     shlibpath_overrides_runpath=yes
48691
48692     case $host_os in
48693     cygwin*)
48694       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
48695       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
48696       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
48697       ;;
48698     mingw*)
48699       # MinGW DLLs use traditional 'lib' prefix
48700       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
48701       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
48702       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
48703         # It is most probably a Windows format PATH printed by
48704         # mingw gcc, but we are running on Cygwin. Gcc prints its search
48705         # path with ; separators, and with drive letters. We can handle the
48706         # drive letters (cygwin fileutils understands them), so leave them,
48707         # especially as we might pass files found there to a mingw objdump,
48708         # which wouldn't understand a cygwinified path. Ahh.
48709         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
48710       else
48711         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
48712       fi
48713       ;;
48714     pw32*)
48715       # pw32 DLLs use 'pw' prefix rather than 'lib'
48716       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
48717       ;;
48718     esac
48719     ;;
48720
48721   *)
48722     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
48723     ;;
48724   esac
48725   dynamic_linker='Win32 ld.exe'
48726   # FIXME: first we should search . and the directory the executable is in
48727   shlibpath_var=PATH
48728   ;;
48729
48730 darwin* | rhapsody*)
48731   dynamic_linker="$host_os dyld"
48732   version_type=darwin
48733   need_lib_prefix=no
48734   need_version=no
48735   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
48736   soname_spec='${libname}${release}${major}$shared_ext'
48737   shlibpath_overrides_runpath=yes
48738   shlibpath_var=DYLD_LIBRARY_PATH
48739   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
48740   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
48741   if test "$GCC" = yes; then
48742     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
48743   else
48744     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
48745   fi
48746   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
48747   ;;
48748
48749 dgux*)
48750   version_type=linux
48751   need_lib_prefix=no
48752   need_version=no
48753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
48754   soname_spec='${libname}${release}${shared_ext}$major'
48755   shlibpath_var=LD_LIBRARY_PATH
48756   ;;
48757
48758 freebsd1*)
48759   dynamic_linker=no
48760   ;;
48761
48762 kfreebsd*-gnu)
48763   version_type=linux
48764   need_lib_prefix=no
48765   need_version=no
48766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
48767   soname_spec='${libname}${release}${shared_ext}$major'
48768   shlibpath_var=LD_LIBRARY_PATH
48769   shlibpath_overrides_runpath=no
48770   hardcode_into_libs=yes
48771   dynamic_linker='GNU ld.so'
48772   ;;
48773
48774 freebsd* | dragonfly*)
48775   # DragonFly does not have aout.  When/if they implement a new
48776   # versioning mechanism, adjust this.
48777   if test -x /usr/bin/objformat; then
48778     objformat=`/usr/bin/objformat`
48779   else
48780     case $host_os in
48781     freebsd[123]*) objformat=aout ;;
48782     *) objformat=elf ;;
48783     esac
48784   fi
48785   version_type=freebsd-$objformat
48786   case $version_type in
48787     freebsd-elf*)
48788       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
48789       need_version=no
48790       need_lib_prefix=no
48791       ;;
48792     freebsd-*)
48793       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
48794       need_version=yes
48795       ;;
48796   esac
48797   shlibpath_var=LD_LIBRARY_PATH
48798   case $host_os in
48799   freebsd2*)
48800     shlibpath_overrides_runpath=yes
48801     ;;
48802   freebsd3.[01]* | freebsdelf3.[01]*)
48803     shlibpath_overrides_runpath=yes
48804     hardcode_into_libs=yes
48805     ;;
48806   *) # from 3.2 on
48807     shlibpath_overrides_runpath=no
48808     hardcode_into_libs=yes
48809     ;;
48810   esac
48811   ;;
48812
48813 gnu*)
48814   version_type=linux
48815   need_lib_prefix=no
48816   need_version=no
48817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
48818   soname_spec='${libname}${release}${shared_ext}$major'
48819   shlibpath_var=LD_LIBRARY_PATH
48820   hardcode_into_libs=yes
48821   ;;
48822
48823 hpux9* | hpux10* | hpux11*)
48824   # Give a soname corresponding to the major version so that dld.sl refuses to
48825   # link against other versions.
48826   version_type=sunos
48827   need_lib_prefix=no
48828   need_version=no
48829   case $host_cpu in
48830   ia64*)
48831     shrext_cmds='.so'
48832     hardcode_into_libs=yes
48833     dynamic_linker="$host_os dld.so"
48834     shlibpath_var=LD_LIBRARY_PATH
48835     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
48836     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48837     soname_spec='${libname}${release}${shared_ext}$major'
48838     if test "X$HPUX_IA64_MODE" = X32; then
48839       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
48840     else
48841       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
48842     fi
48843     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
48844     ;;
48845    hppa*64*)
48846      shrext_cmds='.sl'
48847      hardcode_into_libs=yes
48848      dynamic_linker="$host_os dld.sl"
48849      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
48850      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
48851      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48852      soname_spec='${libname}${release}${shared_ext}$major'
48853      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
48854      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
48855      ;;
48856    *)
48857     shrext_cmds='.sl'
48858     dynamic_linker="$host_os dld.sl"
48859     shlibpath_var=SHLIB_PATH
48860     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
48861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48862     soname_spec='${libname}${release}${shared_ext}$major'
48863     ;;
48864   esac
48865   # HP-UX runs *really* slowly unless shared libraries are mode 555.
48866   postinstall_cmds='chmod 555 $lib'
48867   ;;
48868
48869 irix5* | irix6* | nonstopux*)
48870   case $host_os in
48871     nonstopux*) version_type=nonstopux ;;
48872     *)
48873         if test "$lt_cv_prog_gnu_ld" = yes; then
48874                 version_type=linux
48875         else
48876                 version_type=irix
48877         fi ;;
48878   esac
48879   need_lib_prefix=no
48880   need_version=no
48881   soname_spec='${libname}${release}${shared_ext}$major'
48882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
48883   case $host_os in
48884   irix5* | nonstopux*)
48885     libsuff= shlibsuff=
48886     ;;
48887   *)
48888     case $LD in # libtool.m4 will add one of these switches to LD
48889     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
48890       libsuff= shlibsuff= libmagic=32-bit;;
48891     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
48892       libsuff=32 shlibsuff=N32 libmagic=N32;;
48893     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
48894       libsuff=64 shlibsuff=64 libmagic=64-bit;;
48895     *) libsuff= shlibsuff= libmagic=never-match;;
48896     esac
48897     ;;
48898   esac
48899   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
48900   shlibpath_overrides_runpath=no
48901   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
48902   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
48903   hardcode_into_libs=yes
48904   ;;
48905
48906 # No shared lib support for Linux oldld, aout, or coff.
48907 linux*oldld* | linux*aout* | linux*coff*)
48908   dynamic_linker=no
48909   ;;
48910
48911 # This must be Linux ELF.
48912 linux*)
48913   version_type=linux
48914   need_lib_prefix=no
48915   need_version=no
48916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48917   soname_spec='${libname}${release}${shared_ext}$major'
48918   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
48919   shlibpath_var=LD_LIBRARY_PATH
48920   shlibpath_overrides_runpath=no
48921   # This implies no fast_install, which is unacceptable.
48922   # Some rework will be needed to allow for fast_install
48923   # before this can be enabled.
48924   hardcode_into_libs=yes
48925
48926   # Append ld.so.conf contents to the search path
48927   if test -f /etc/ld.so.conf; then
48928     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
48929     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
48930   fi
48931
48932   # We used to test for /lib/ld.so.1 and disable shared libraries on
48933   # powerpc, because MkLinux only supported shared libraries with the
48934   # GNU dynamic linker.  Since this was broken with cross compilers,
48935   # most powerpc-linux boxes support dynamic linking these days and
48936   # people can always --disable-shared, the test was removed, and we
48937   # assume the GNU/Linux dynamic linker is in use.
48938   dynamic_linker='GNU/Linux ld.so'
48939   ;;
48940
48941 knetbsd*-gnu)
48942   version_type=linux
48943   need_lib_prefix=no
48944   need_version=no
48945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
48946   soname_spec='${libname}${release}${shared_ext}$major'
48947   shlibpath_var=LD_LIBRARY_PATH
48948   shlibpath_overrides_runpath=no
48949   hardcode_into_libs=yes
48950   dynamic_linker='GNU ld.so'
48951   ;;
48952
48953 netbsd*)
48954   version_type=sunos
48955   need_lib_prefix=no
48956   need_version=no
48957   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
48958     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
48959     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
48960     dynamic_linker='NetBSD (a.out) ld.so'
48961   else
48962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
48963     soname_spec='${libname}${release}${shared_ext}$major'
48964     dynamic_linker='NetBSD ld.elf_so'
48965   fi
48966   shlibpath_var=LD_LIBRARY_PATH
48967   shlibpath_overrides_runpath=yes
48968   hardcode_into_libs=yes
48969   ;;
48970
48971 newsos6)
48972   version_type=linux
48973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48974   shlibpath_var=LD_LIBRARY_PATH
48975   shlibpath_overrides_runpath=yes
48976   ;;
48977
48978 nto-qnx*)
48979   version_type=linux
48980   need_lib_prefix=no
48981   need_version=no
48982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48983   soname_spec='${libname}${release}${shared_ext}$major'
48984   shlibpath_var=LD_LIBRARY_PATH
48985   shlibpath_overrides_runpath=yes
48986   ;;
48987
48988 openbsd*)
48989   version_type=sunos
48990   need_lib_prefix=no
48991   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
48992   case $host_os in
48993     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
48994     *)                         need_version=no  ;;
48995   esac
48996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
48997   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
48998   shlibpath_var=LD_LIBRARY_PATH
48999   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
49000     case $host_os in
49001       openbsd2.[89] | openbsd2.[89].*)
49002         shlibpath_overrides_runpath=no
49003         ;;
49004       *)
49005         shlibpath_overrides_runpath=yes
49006         ;;
49007       esac
49008   else
49009     shlibpath_overrides_runpath=yes
49010   fi
49011   ;;
49012
49013 os2*)
49014   libname_spec='$name'
49015   shrext_cmds=".dll"
49016   need_lib_prefix=no
49017   library_names_spec='$libname${shared_ext} $libname.a'
49018   dynamic_linker='OS/2 ld.exe'
49019   shlibpath_var=LIBPATH
49020   ;;
49021
49022 osf3* | osf4* | osf5*)
49023   version_type=osf
49024   need_lib_prefix=no
49025   need_version=no
49026   soname_spec='${libname}${release}${shared_ext}$major'
49027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
49028   shlibpath_var=LD_LIBRARY_PATH
49029   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
49030   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
49031   ;;
49032
49033 sco3.2v5*)
49034   version_type=osf
49035   soname_spec='${libname}${release}${shared_ext}$major'
49036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
49037   shlibpath_var=LD_LIBRARY_PATH
49038   ;;
49039
49040 solaris*)
49041   version_type=linux
49042   need_lib_prefix=no
49043   need_version=no
49044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
49045   soname_spec='${libname}${release}${shared_ext}$major'
49046   shlibpath_var=LD_LIBRARY_PATH
49047   shlibpath_overrides_runpath=yes
49048   hardcode_into_libs=yes
49049   # ldd complains unless libraries are executable
49050   postinstall_cmds='chmod +x $lib'
49051   ;;
49052
49053 sunos4*)
49054   version_type=sunos
49055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
49056   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
49057   shlibpath_var=LD_LIBRARY_PATH
49058   shlibpath_overrides_runpath=yes
49059   if test "$with_gnu_ld" = yes; then
49060     need_lib_prefix=no
49061   fi
49062   need_version=yes
49063   ;;
49064
49065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
49066   version_type=linux
49067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
49068   soname_spec='${libname}${release}${shared_ext}$major'
49069   shlibpath_var=LD_LIBRARY_PATH
49070   case $host_vendor in
49071     sni)
49072       shlibpath_overrides_runpath=no
49073       need_lib_prefix=no
49074       export_dynamic_flag_spec='${wl}-Blargedynsym'
49075       runpath_var=LD_RUN_PATH
49076       ;;
49077     siemens)
49078       need_lib_prefix=no
49079       ;;
49080     motorola)
49081       need_lib_prefix=no
49082       need_version=no
49083       shlibpath_overrides_runpath=no
49084       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
49085       ;;
49086   esac
49087   ;;
49088
49089 sysv4*MP*)
49090   if test -d /usr/nec ;then
49091     version_type=linux
49092     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
49093     soname_spec='$libname${shared_ext}.$major'
49094     shlibpath_var=LD_LIBRARY_PATH
49095   fi
49096   ;;
49097
49098 uts4*)
49099   version_type=linux
49100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
49101   soname_spec='${libname}${release}${shared_ext}$major'
49102   shlibpath_var=LD_LIBRARY_PATH
49103   ;;
49104
49105 *)
49106   dynamic_linker=no
49107   ;;
49108 esac
49109 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
49110 $as_echo "$dynamic_linker" >&6; }
49111 test "$dynamic_linker" = no && can_build_shared=no
49112
49113 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
49114 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
49115 hardcode_action_GCJ=
49116 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
49117    test -n "$runpath_var_GCJ" || \
49118    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
49119
49120   # We can hardcode non-existant directories.
49121   if test "$hardcode_direct_GCJ" != no &&
49122      # If the only mechanism to avoid hardcoding is shlibpath_var, we
49123      # have to relink, otherwise we might link with an installed library
49124      # when we should be linking with a yet-to-be-installed one
49125      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
49126      test "$hardcode_minus_L_GCJ" != no; then
49127     # Linking always hardcodes the temporary library directory.
49128     hardcode_action_GCJ=relink
49129   else
49130     # We can link without hardcoding, and we can hardcode nonexisting dirs.
49131     hardcode_action_GCJ=immediate
49132   fi
49133 else
49134   # We cannot hardcode anything, or else we can only hardcode existing
49135   # directories.
49136   hardcode_action_GCJ=unsupported
49137 fi
49138 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
49139 $as_echo "$hardcode_action_GCJ" >&6; }
49140
49141 if test "$hardcode_action_GCJ" = relink; then
49142   # Fast installation is not supported
49143   enable_fast_install=no
49144 elif test "$shlibpath_overrides_runpath" = yes ||
49145      test "$enable_shared" = no; then
49146   # Fast installation is not necessary
49147   enable_fast_install=needless
49148 fi
49149
49150 striplib=
49151 old_striplib=
49152 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
49153 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
49154 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
49155   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
49156   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
49157   { $as_echo "$as_me:$LINENO: result: yes" >&5
49158 $as_echo "yes" >&6; }
49159 else
49160 # FIXME - insert some real tests, host_os isn't really good enough
49161   case $host_os in
49162    darwin*)
49163        if test -n "$STRIP" ; then
49164          striplib="$STRIP -x"
49165          { $as_echo "$as_me:$LINENO: result: yes" >&5
49166 $as_echo "yes" >&6; }
49167        else
49168   { $as_echo "$as_me:$LINENO: result: no" >&5
49169 $as_echo "no" >&6; }
49170 fi
49171        ;;
49172    *)
49173   { $as_echo "$as_me:$LINENO: result: no" >&5
49174 $as_echo "no" >&6; }
49175     ;;
49176   esac
49177 fi
49178
49179 if test "x$enable_dlopen" != xyes; then
49180   enable_dlopen=unknown
49181   enable_dlopen_self=unknown
49182   enable_dlopen_self_static=unknown
49183 else
49184   lt_cv_dlopen=no
49185   lt_cv_dlopen_libs=
49186
49187   case $host_os in
49188   beos*)
49189     lt_cv_dlopen="load_add_on"
49190     lt_cv_dlopen_libs=
49191     lt_cv_dlopen_self=yes
49192     ;;
49193
49194   mingw* | pw32*)
49195     lt_cv_dlopen="LoadLibrary"
49196     lt_cv_dlopen_libs=
49197    ;;
49198
49199   cygwin*)
49200     lt_cv_dlopen="dlopen"
49201     lt_cv_dlopen_libs=
49202    ;;
49203
49204   darwin*)
49205   # if libdl is installed we need to link against it
49206     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
49207 $as_echo_n "checking for dlopen in -ldl... " >&6; }
49208 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
49209   $as_echo_n "(cached) " >&6
49210 else
49211   ac_check_lib_save_LIBS=$LIBS
49212 LIBS="-ldl  $LIBS"
49213 cat >conftest.$ac_ext <<_ACEOF
49214 /* confdefs.h.  */
49215 _ACEOF
49216 cat confdefs.h >>conftest.$ac_ext
49217 cat >>conftest.$ac_ext <<_ACEOF
49218 /* end confdefs.h.  */
49219
49220 /* Override any GCC internal prototype to avoid an error.
49221    Use char because int might match the return type of a GCC
49222    builtin and then its argument prototype would still apply.  */
49223 #ifdef __cplusplus
49224 extern "C"
49225 #endif
49226 char dlopen ();
49227 int
49228 main ()
49229 {
49230 return dlopen ();
49231   ;
49232   return 0;
49233 }
49234 _ACEOF
49235 rm -f conftest.$ac_objext conftest$ac_exeext
49236 if { (ac_try="$ac_link"
49237 case "(($ac_try" in
49238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49239   *) ac_try_echo=$ac_try;;
49240 esac
49241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49242 $as_echo "$ac_try_echo") >&5
49243   (eval "$ac_link") 2>conftest.er1
49244   ac_status=$?
49245   grep -v '^ *+' conftest.er1 >conftest.err
49246   rm -f conftest.er1
49247   cat conftest.err >&5
49248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49249   (exit $ac_status); } && {
49250          test -z "$ac_c_werror_flag" ||
49251          test ! -s conftest.err
49252        } && test -s conftest$ac_exeext && {
49253          test "$cross_compiling" = yes ||
49254          $as_test_x conftest$ac_exeext
49255        }; then
49256   ac_cv_lib_dl_dlopen=yes
49257 else
49258   $as_echo "$as_me: failed program was:" >&5
49259 sed 's/^/| /' conftest.$ac_ext >&5
49260
49261         ac_cv_lib_dl_dlopen=no
49262 fi
49263
49264 rm -rf conftest.dSYM
49265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49266       conftest$ac_exeext conftest.$ac_ext
49267 LIBS=$ac_check_lib_save_LIBS
49268 fi
49269 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
49270 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
49271 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
49272   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
49273 else
49274
49275     lt_cv_dlopen="dyld"
49276     lt_cv_dlopen_libs=
49277     lt_cv_dlopen_self=yes
49278
49279 fi
49280
49281    ;;
49282
49283   *)
49284     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
49285 $as_echo_n "checking for shl_load... " >&6; }
49286 if test "${ac_cv_func_shl_load+set}" = set; then
49287   $as_echo_n "(cached) " >&6
49288 else
49289   cat >conftest.$ac_ext <<_ACEOF
49290 /* confdefs.h.  */
49291 _ACEOF
49292 cat confdefs.h >>conftest.$ac_ext
49293 cat >>conftest.$ac_ext <<_ACEOF
49294 /* end confdefs.h.  */
49295 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
49296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49297 #define shl_load innocuous_shl_load
49298
49299 /* System header to define __stub macros and hopefully few prototypes,
49300     which can conflict with char shl_load (); below.
49301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49302     <limits.h> exists even on freestanding compilers.  */
49303
49304 #ifdef __STDC__
49305 # include <limits.h>
49306 #else
49307 # include <assert.h>
49308 #endif
49309
49310 #undef shl_load
49311
49312 /* Override any GCC internal prototype to avoid an error.
49313    Use char because int might match the return type of a GCC
49314    builtin and then its argument prototype would still apply.  */
49315 #ifdef __cplusplus
49316 extern "C"
49317 #endif
49318 char shl_load ();
49319 /* The GNU C library defines this for functions which it implements
49320     to always fail with ENOSYS.  Some functions are actually named
49321     something starting with __ and the normal name is an alias.  */
49322 #if defined __stub_shl_load || defined __stub___shl_load
49323 choke me
49324 #endif
49325
49326 int
49327 main ()
49328 {
49329 return shl_load ();
49330   ;
49331   return 0;
49332 }
49333 _ACEOF
49334 rm -f conftest.$ac_objext conftest$ac_exeext
49335 if { (ac_try="$ac_link"
49336 case "(($ac_try" in
49337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49338   *) ac_try_echo=$ac_try;;
49339 esac
49340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49341 $as_echo "$ac_try_echo") >&5
49342   (eval "$ac_link") 2>conftest.er1
49343   ac_status=$?
49344   grep -v '^ *+' conftest.er1 >conftest.err
49345   rm -f conftest.er1
49346   cat conftest.err >&5
49347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49348   (exit $ac_status); } && {
49349          test -z "$ac_c_werror_flag" ||
49350          test ! -s conftest.err
49351        } && test -s conftest$ac_exeext && {
49352          test "$cross_compiling" = yes ||
49353          $as_test_x conftest$ac_exeext
49354        }; then
49355   ac_cv_func_shl_load=yes
49356 else
49357   $as_echo "$as_me: failed program was:" >&5
49358 sed 's/^/| /' conftest.$ac_ext >&5
49359
49360         ac_cv_func_shl_load=no
49361 fi
49362
49363 rm -rf conftest.dSYM
49364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49365       conftest$ac_exeext conftest.$ac_ext
49366 fi
49367 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
49368 $as_echo "$ac_cv_func_shl_load" >&6; }
49369 if test "x$ac_cv_func_shl_load" = x""yes; then
49370   lt_cv_dlopen="shl_load"
49371 else
49372   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
49373 $as_echo_n "checking for shl_load in -ldld... " >&6; }
49374 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
49375   $as_echo_n "(cached) " >&6
49376 else
49377   ac_check_lib_save_LIBS=$LIBS
49378 LIBS="-ldld  $LIBS"
49379 cat >conftest.$ac_ext <<_ACEOF
49380 /* confdefs.h.  */
49381 _ACEOF
49382 cat confdefs.h >>conftest.$ac_ext
49383 cat >>conftest.$ac_ext <<_ACEOF
49384 /* end confdefs.h.  */
49385
49386 /* Override any GCC internal prototype to avoid an error.
49387    Use char because int might match the return type of a GCC
49388    builtin and then its argument prototype would still apply.  */
49389 #ifdef __cplusplus
49390 extern "C"
49391 #endif
49392 char shl_load ();
49393 int
49394 main ()
49395 {
49396 return shl_load ();
49397   ;
49398   return 0;
49399 }
49400 _ACEOF
49401 rm -f conftest.$ac_objext conftest$ac_exeext
49402 if { (ac_try="$ac_link"
49403 case "(($ac_try" in
49404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49405   *) ac_try_echo=$ac_try;;
49406 esac
49407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49408 $as_echo "$ac_try_echo") >&5
49409   (eval "$ac_link") 2>conftest.er1
49410   ac_status=$?
49411   grep -v '^ *+' conftest.er1 >conftest.err
49412   rm -f conftest.er1
49413   cat conftest.err >&5
49414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49415   (exit $ac_status); } && {
49416          test -z "$ac_c_werror_flag" ||
49417          test ! -s conftest.err
49418        } && test -s conftest$ac_exeext && {
49419          test "$cross_compiling" = yes ||
49420          $as_test_x conftest$ac_exeext
49421        }; then
49422   ac_cv_lib_dld_shl_load=yes
49423 else
49424   $as_echo "$as_me: failed program was:" >&5
49425 sed 's/^/| /' conftest.$ac_ext >&5
49426
49427         ac_cv_lib_dld_shl_load=no
49428 fi
49429
49430 rm -rf conftest.dSYM
49431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49432       conftest$ac_exeext conftest.$ac_ext
49433 LIBS=$ac_check_lib_save_LIBS
49434 fi
49435 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
49436 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
49437 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
49438   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
49439 else
49440   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
49441 $as_echo_n "checking for dlopen... " >&6; }
49442 if test "${ac_cv_func_dlopen+set}" = set; then
49443   $as_echo_n "(cached) " >&6
49444 else
49445   cat >conftest.$ac_ext <<_ACEOF
49446 /* confdefs.h.  */
49447 _ACEOF
49448 cat confdefs.h >>conftest.$ac_ext
49449 cat >>conftest.$ac_ext <<_ACEOF
49450 /* end confdefs.h.  */
49451 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
49452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49453 #define dlopen innocuous_dlopen
49454
49455 /* System header to define __stub macros and hopefully few prototypes,
49456     which can conflict with char dlopen (); below.
49457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49458     <limits.h> exists even on freestanding compilers.  */
49459
49460 #ifdef __STDC__
49461 # include <limits.h>
49462 #else
49463 # include <assert.h>
49464 #endif
49465
49466 #undef dlopen
49467
49468 /* Override any GCC internal prototype to avoid an error.
49469    Use char because int might match the return type of a GCC
49470    builtin and then its argument prototype would still apply.  */
49471 #ifdef __cplusplus
49472 extern "C"
49473 #endif
49474 char dlopen ();
49475 /* The GNU C library defines this for functions which it implements
49476     to always fail with ENOSYS.  Some functions are actually named
49477     something starting with __ and the normal name is an alias.  */
49478 #if defined __stub_dlopen || defined __stub___dlopen
49479 choke me
49480 #endif
49481
49482 int
49483 main ()
49484 {
49485 return dlopen ();
49486   ;
49487   return 0;
49488 }
49489 _ACEOF
49490 rm -f conftest.$ac_objext conftest$ac_exeext
49491 if { (ac_try="$ac_link"
49492 case "(($ac_try" in
49493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49494   *) ac_try_echo=$ac_try;;
49495 esac
49496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49497 $as_echo "$ac_try_echo") >&5
49498   (eval "$ac_link") 2>conftest.er1
49499   ac_status=$?
49500   grep -v '^ *+' conftest.er1 >conftest.err
49501   rm -f conftest.er1
49502   cat conftest.err >&5
49503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49504   (exit $ac_status); } && {
49505          test -z "$ac_c_werror_flag" ||
49506          test ! -s conftest.err
49507        } && test -s conftest$ac_exeext && {
49508          test "$cross_compiling" = yes ||
49509          $as_test_x conftest$ac_exeext
49510        }; then
49511   ac_cv_func_dlopen=yes
49512 else
49513   $as_echo "$as_me: failed program was:" >&5
49514 sed 's/^/| /' conftest.$ac_ext >&5
49515
49516         ac_cv_func_dlopen=no
49517 fi
49518
49519 rm -rf conftest.dSYM
49520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49521       conftest$ac_exeext conftest.$ac_ext
49522 fi
49523 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
49524 $as_echo "$ac_cv_func_dlopen" >&6; }
49525 if test "x$ac_cv_func_dlopen" = x""yes; then
49526   lt_cv_dlopen="dlopen"
49527 else
49528   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
49529 $as_echo_n "checking for dlopen in -ldl... " >&6; }
49530 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
49531   $as_echo_n "(cached) " >&6
49532 else
49533   ac_check_lib_save_LIBS=$LIBS
49534 LIBS="-ldl  $LIBS"
49535 cat >conftest.$ac_ext <<_ACEOF
49536 /* confdefs.h.  */
49537 _ACEOF
49538 cat confdefs.h >>conftest.$ac_ext
49539 cat >>conftest.$ac_ext <<_ACEOF
49540 /* end confdefs.h.  */
49541
49542 /* Override any GCC internal prototype to avoid an error.
49543    Use char because int might match the return type of a GCC
49544    builtin and then its argument prototype would still apply.  */
49545 #ifdef __cplusplus
49546 extern "C"
49547 #endif
49548 char dlopen ();
49549 int
49550 main ()
49551 {
49552 return dlopen ();
49553   ;
49554   return 0;
49555 }
49556 _ACEOF
49557 rm -f conftest.$ac_objext conftest$ac_exeext
49558 if { (ac_try="$ac_link"
49559 case "(($ac_try" in
49560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49561   *) ac_try_echo=$ac_try;;
49562 esac
49563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49564 $as_echo "$ac_try_echo") >&5
49565   (eval "$ac_link") 2>conftest.er1
49566   ac_status=$?
49567   grep -v '^ *+' conftest.er1 >conftest.err
49568   rm -f conftest.er1
49569   cat conftest.err >&5
49570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49571   (exit $ac_status); } && {
49572          test -z "$ac_c_werror_flag" ||
49573          test ! -s conftest.err
49574        } && test -s conftest$ac_exeext && {
49575          test "$cross_compiling" = yes ||
49576          $as_test_x conftest$ac_exeext
49577        }; then
49578   ac_cv_lib_dl_dlopen=yes
49579 else
49580   $as_echo "$as_me: failed program was:" >&5
49581 sed 's/^/| /' conftest.$ac_ext >&5
49582
49583         ac_cv_lib_dl_dlopen=no
49584 fi
49585
49586 rm -rf conftest.dSYM
49587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49588       conftest$ac_exeext conftest.$ac_ext
49589 LIBS=$ac_check_lib_save_LIBS
49590 fi
49591 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
49592 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
49593 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
49594   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
49595 else
49596   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
49597 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
49598 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
49599   $as_echo_n "(cached) " >&6
49600 else
49601   ac_check_lib_save_LIBS=$LIBS
49602 LIBS="-lsvld  $LIBS"
49603 cat >conftest.$ac_ext <<_ACEOF
49604 /* confdefs.h.  */
49605 _ACEOF
49606 cat confdefs.h >>conftest.$ac_ext
49607 cat >>conftest.$ac_ext <<_ACEOF
49608 /* end confdefs.h.  */
49609
49610 /* Override any GCC internal prototype to avoid an error.
49611    Use char because int might match the return type of a GCC
49612    builtin and then its argument prototype would still apply.  */
49613 #ifdef __cplusplus
49614 extern "C"
49615 #endif
49616 char dlopen ();
49617 int
49618 main ()
49619 {
49620 return dlopen ();
49621   ;
49622   return 0;
49623 }
49624 _ACEOF
49625 rm -f conftest.$ac_objext conftest$ac_exeext
49626 if { (ac_try="$ac_link"
49627 case "(($ac_try" in
49628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49629   *) ac_try_echo=$ac_try;;
49630 esac
49631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49632 $as_echo "$ac_try_echo") >&5
49633   (eval "$ac_link") 2>conftest.er1
49634   ac_status=$?
49635   grep -v '^ *+' conftest.er1 >conftest.err
49636   rm -f conftest.er1
49637   cat conftest.err >&5
49638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49639   (exit $ac_status); } && {
49640          test -z "$ac_c_werror_flag" ||
49641          test ! -s conftest.err
49642        } && test -s conftest$ac_exeext && {
49643          test "$cross_compiling" = yes ||
49644          $as_test_x conftest$ac_exeext
49645        }; then
49646   ac_cv_lib_svld_dlopen=yes
49647 else
49648   $as_echo "$as_me: failed program was:" >&5
49649 sed 's/^/| /' conftest.$ac_ext >&5
49650
49651         ac_cv_lib_svld_dlopen=no
49652 fi
49653
49654 rm -rf conftest.dSYM
49655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49656       conftest$ac_exeext conftest.$ac_ext
49657 LIBS=$ac_check_lib_save_LIBS
49658 fi
49659 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
49660 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
49661 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
49662   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
49663 else
49664   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
49665 $as_echo_n "checking for dld_link in -ldld... " >&6; }
49666 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
49667   $as_echo_n "(cached) " >&6
49668 else
49669   ac_check_lib_save_LIBS=$LIBS
49670 LIBS="-ldld  $LIBS"
49671 cat >conftest.$ac_ext <<_ACEOF
49672 /* confdefs.h.  */
49673 _ACEOF
49674 cat confdefs.h >>conftest.$ac_ext
49675 cat >>conftest.$ac_ext <<_ACEOF
49676 /* end confdefs.h.  */
49677
49678 /* Override any GCC internal prototype to avoid an error.
49679    Use char because int might match the return type of a GCC
49680    builtin and then its argument prototype would still apply.  */
49681 #ifdef __cplusplus
49682 extern "C"
49683 #endif
49684 char dld_link ();
49685 int
49686 main ()
49687 {
49688 return dld_link ();
49689   ;
49690   return 0;
49691 }
49692 _ACEOF
49693 rm -f conftest.$ac_objext conftest$ac_exeext
49694 if { (ac_try="$ac_link"
49695 case "(($ac_try" in
49696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49697   *) ac_try_echo=$ac_try;;
49698 esac
49699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49700 $as_echo "$ac_try_echo") >&5
49701   (eval "$ac_link") 2>conftest.er1
49702   ac_status=$?
49703   grep -v '^ *+' conftest.er1 >conftest.err
49704   rm -f conftest.er1
49705   cat conftest.err >&5
49706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49707   (exit $ac_status); } && {
49708          test -z "$ac_c_werror_flag" ||
49709          test ! -s conftest.err
49710        } && test -s conftest$ac_exeext && {
49711          test "$cross_compiling" = yes ||
49712          $as_test_x conftest$ac_exeext
49713        }; then
49714   ac_cv_lib_dld_dld_link=yes
49715 else
49716   $as_echo "$as_me: failed program was:" >&5
49717 sed 's/^/| /' conftest.$ac_ext >&5
49718
49719         ac_cv_lib_dld_dld_link=no
49720 fi
49721
49722 rm -rf conftest.dSYM
49723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49724       conftest$ac_exeext conftest.$ac_ext
49725 LIBS=$ac_check_lib_save_LIBS
49726 fi
49727 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
49728 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
49729 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
49730   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
49731 fi
49732
49733
49734 fi
49735
49736
49737 fi
49738
49739
49740 fi
49741
49742
49743 fi
49744
49745
49746 fi
49747
49748     ;;
49749   esac
49750
49751   if test "x$lt_cv_dlopen" != xno; then
49752     enable_dlopen=yes
49753   else
49754     enable_dlopen=no
49755   fi
49756
49757   case $lt_cv_dlopen in
49758   dlopen)
49759     save_CPPFLAGS="$CPPFLAGS"
49760     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
49761
49762     save_LDFLAGS="$LDFLAGS"
49763     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
49764
49765     save_LIBS="$LIBS"
49766     LIBS="$lt_cv_dlopen_libs $LIBS"
49767
49768     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
49769 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
49770 if test "${lt_cv_dlopen_self+set}" = set; then
49771   $as_echo_n "(cached) " >&6
49772 else
49773           if test "$cross_compiling" = yes; then :
49774   lt_cv_dlopen_self=cross
49775 else
49776   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
49777   lt_status=$lt_dlunknown
49778   cat > conftest.$ac_ext <<EOF
49779 #line 49779 "configure"
49780 #include "confdefs.h"
49781
49782 #if HAVE_DLFCN_H
49783 #include <dlfcn.h>
49784 #endif
49785
49786 #include <stdio.h>
49787
49788 #ifdef RTLD_GLOBAL
49789 #  define LT_DLGLOBAL           RTLD_GLOBAL
49790 #else
49791 #  ifdef DL_GLOBAL
49792 #    define LT_DLGLOBAL         DL_GLOBAL
49793 #  else
49794 #    define LT_DLGLOBAL         0
49795 #  endif
49796 #endif
49797
49798 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
49799    find out it does not work in some platform. */
49800 #ifndef LT_DLLAZY_OR_NOW
49801 #  ifdef RTLD_LAZY
49802 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
49803 #  else
49804 #    ifdef DL_LAZY
49805 #      define LT_DLLAZY_OR_NOW          DL_LAZY
49806 #    else
49807 #      ifdef RTLD_NOW
49808 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
49809 #      else
49810 #        ifdef DL_NOW
49811 #          define LT_DLLAZY_OR_NOW      DL_NOW
49812 #        else
49813 #          define LT_DLLAZY_OR_NOW      0
49814 #        endif
49815 #      endif
49816 #    endif
49817 #  endif
49818 #endif
49819
49820 #ifdef __cplusplus
49821 extern "C" void exit (int);
49822 #endif
49823
49824 void fnord() { int i=42;}
49825 int main ()
49826 {
49827   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
49828   int status = $lt_dlunknown;
49829
49830   if (self)
49831     {
49832       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
49833       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
49834       /* dlclose (self); */
49835     }
49836
49837     exit (status);
49838 }
49839 EOF
49840   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49841   (eval $ac_link) 2>&5
49842   ac_status=$?
49843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49844   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
49845     (./conftest; exit; ) >&5 2>/dev/null
49846     lt_status=$?
49847     case x$lt_status in
49848       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
49849       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
49850       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
49851     esac
49852   else :
49853     # compilation failed
49854     lt_cv_dlopen_self=no
49855   fi
49856 fi
49857 rm -fr conftest*
49858
49859
49860 fi
49861 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
49862 $as_echo "$lt_cv_dlopen_self" >&6; }
49863
49864     if test "x$lt_cv_dlopen_self" = xyes; then
49865       LDFLAGS="$LDFLAGS $link_static_flag"
49866       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
49867 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
49868 if test "${lt_cv_dlopen_self_static+set}" = set; then
49869   $as_echo_n "(cached) " >&6
49870 else
49871           if test "$cross_compiling" = yes; then :
49872   lt_cv_dlopen_self_static=cross
49873 else
49874   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
49875   lt_status=$lt_dlunknown
49876   cat > conftest.$ac_ext <<EOF
49877 #line 49877 "configure"
49878 #include "confdefs.h"
49879
49880 #if HAVE_DLFCN_H
49881 #include <dlfcn.h>
49882 #endif
49883
49884 #include <stdio.h>
49885
49886 #ifdef RTLD_GLOBAL
49887 #  define LT_DLGLOBAL           RTLD_GLOBAL
49888 #else
49889 #  ifdef DL_GLOBAL
49890 #    define LT_DLGLOBAL         DL_GLOBAL
49891 #  else
49892 #    define LT_DLGLOBAL         0
49893 #  endif
49894 #endif
49895
49896 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
49897    find out it does not work in some platform. */
49898 #ifndef LT_DLLAZY_OR_NOW
49899 #  ifdef RTLD_LAZY
49900 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
49901 #  else
49902 #    ifdef DL_LAZY
49903 #      define LT_DLLAZY_OR_NOW          DL_LAZY
49904 #    else
49905 #      ifdef RTLD_NOW
49906 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
49907 #      else
49908 #        ifdef DL_NOW
49909 #          define LT_DLLAZY_OR_NOW      DL_NOW
49910 #        else
49911 #          define LT_DLLAZY_OR_NOW      0
49912 #        endif
49913 #      endif
49914 #    endif
49915 #  endif
49916 #endif
49917
49918 #ifdef __cplusplus
49919 extern "C" void exit (int);
49920 #endif
49921
49922 void fnord() { int i=42;}
49923 int main ()
49924 {
49925   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
49926   int status = $lt_dlunknown;
49927
49928   if (self)
49929     {
49930       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
49931       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
49932       /* dlclose (self); */
49933     }
49934
49935     exit (status);
49936 }
49937 EOF
49938   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49939   (eval $ac_link) 2>&5
49940   ac_status=$?
49941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49942   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
49943     (./conftest; exit; ) >&5 2>/dev/null
49944     lt_status=$?
49945     case x$lt_status in
49946       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
49947       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
49948       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
49949     esac
49950   else :
49951     # compilation failed
49952     lt_cv_dlopen_self_static=no
49953   fi
49954 fi
49955 rm -fr conftest*
49956
49957
49958 fi
49959 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
49960 $as_echo "$lt_cv_dlopen_self_static" >&6; }
49961     fi
49962
49963     CPPFLAGS="$save_CPPFLAGS"
49964     LDFLAGS="$save_LDFLAGS"
49965     LIBS="$save_LIBS"
49966     ;;
49967   esac
49968
49969   case $lt_cv_dlopen_self in
49970   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
49971   *) enable_dlopen_self=unknown ;;
49972   esac
49973
49974   case $lt_cv_dlopen_self_static in
49975   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
49976   *) enable_dlopen_self_static=unknown ;;
49977   esac
49978 fi
49979
49980
49981 # The else clause should only fire when bootstrapping the
49982 # libtool distribution, otherwise you forgot to ship ltmain.sh
49983 # with your package, and you will get complaints that there are
49984 # no rules to generate ltmain.sh.
49985 if test -f "$ltmain"; then
49986   # See if we are running on zsh, and set the options which allow our commands through
49987   # without removal of \ escapes.
49988   if test -n "${ZSH_VERSION+set}" ; then
49989     setopt NO_GLOB_SUBST
49990   fi
49991   # Now quote all the things that may contain metacharacters while being
49992   # careful not to overquote the AC_SUBSTed values.  We take copies of the
49993   # variables and quote the copies for generation of the libtool script.
49994   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
49995     SED SHELL STRIP \
49996     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
49997     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
49998     deplibs_check_method reload_flag reload_cmds need_locks \
49999     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
50000     lt_cv_sys_global_symbol_to_c_name_address \
50001     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
50002     old_postinstall_cmds old_postuninstall_cmds \
50003     compiler_GCJ \
50004     CC_GCJ \
50005     LD_GCJ \
50006     lt_prog_compiler_wl_GCJ \
50007     lt_prog_compiler_pic_GCJ \
50008     lt_prog_compiler_static_GCJ \
50009     lt_prog_compiler_no_builtin_flag_GCJ \
50010     export_dynamic_flag_spec_GCJ \
50011     thread_safe_flag_spec_GCJ \
50012     whole_archive_flag_spec_GCJ \
50013     enable_shared_with_static_runtimes_GCJ \
50014     old_archive_cmds_GCJ \
50015     old_archive_from_new_cmds_GCJ \
50016     predep_objects_GCJ \
50017     postdep_objects_GCJ \
50018     predeps_GCJ \
50019     postdeps_GCJ \
50020     compiler_lib_search_path_GCJ \
50021     archive_cmds_GCJ \
50022     archive_expsym_cmds_GCJ \
50023     postinstall_cmds_GCJ \
50024     postuninstall_cmds_GCJ \
50025     old_archive_from_expsyms_cmds_GCJ \
50026     allow_undefined_flag_GCJ \
50027     no_undefined_flag_GCJ \
50028     export_symbols_cmds_GCJ \
50029     hardcode_libdir_flag_spec_GCJ \
50030     hardcode_libdir_flag_spec_ld_GCJ \
50031     hardcode_libdir_separator_GCJ \
50032     hardcode_automatic_GCJ \
50033     module_cmds_GCJ \
50034     module_expsym_cmds_GCJ \
50035     lt_cv_prog_compiler_c_o_GCJ \
50036     exclude_expsyms_GCJ \
50037     include_expsyms_GCJ; do
50038
50039     case $var in
50040     old_archive_cmds_GCJ | \
50041     old_archive_from_new_cmds_GCJ | \
50042     archive_cmds_GCJ | \
50043     archive_expsym_cmds_GCJ | \
50044     module_cmds_GCJ | \
50045     module_expsym_cmds_GCJ | \
50046     old_archive_from_expsyms_cmds_GCJ | \
50047     export_symbols_cmds_GCJ | \
50048     extract_expsyms_cmds | reload_cmds | finish_cmds | \
50049     postinstall_cmds | postuninstall_cmds | \
50050     old_postinstall_cmds | old_postuninstall_cmds | \
50051     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
50052       # Double-quote double-evaled strings.
50053       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
50054       ;;
50055     *)
50056       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
50057       ;;
50058     esac
50059   done
50060
50061   case $lt_echo in
50062   *'\$0 --fallback-echo"')
50063     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
50064     ;;
50065   esac
50066
50067 cfgfile="$ofile"
50068
50069   cat <<__EOF__ >> "$cfgfile"
50070 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
50071
50072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
50073
50074 # Shell to use when invoking shell scripts.
50075 SHELL=$lt_SHELL
50076
50077 # Whether or not to build shared libraries.
50078 build_libtool_libs=$enable_shared
50079
50080 # Whether or not to build static libraries.
50081 build_old_libs=$enable_static
50082
50083 # Whether or not to add -lc for building shared libraries.
50084 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
50085
50086 # Whether or not to disallow shared libs when runtime libs are static
50087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
50088
50089 # Whether or not to optimize for fast installation.
50090 fast_install=$enable_fast_install
50091
50092 # The host system.
50093 host_alias=$host_alias
50094 host=$host
50095 host_os=$host_os
50096
50097 # The build system.
50098 build_alias=$build_alias
50099 build=$build
50100 build_os=$build_os
50101
50102 # An echo program that does not interpret backslashes.
50103 echo=$lt_echo
50104
50105 # The archiver.
50106 AR=$lt_AR
50107 AR_FLAGS=$lt_AR_FLAGS
50108
50109 # A C compiler.
50110 LTCC=$lt_LTCC
50111
50112 # A language-specific compiler.
50113 CC=$lt_compiler_GCJ
50114
50115 # Is the compiler the GNU C compiler?
50116 with_gcc=$GCC_GCJ
50117
50118 # An ERE matcher.
50119 EGREP=$lt_EGREP
50120
50121 # The linker used to build libraries.
50122 LD=$lt_LD_GCJ
50123
50124 # Whether we need hard or soft links.
50125 LN_S=$lt_LN_S
50126
50127 # A BSD-compatible nm program.
50128 NM=$lt_NM
50129
50130 # A symbol stripping program
50131 STRIP=$lt_STRIP
50132
50133 # Used to examine libraries when file_magic_cmd begins "file"
50134 MAGIC_CMD=$MAGIC_CMD
50135
50136 # Used on cygwin: DLL creation program.
50137 DLLTOOL="$DLLTOOL"
50138
50139 # Used on cygwin: object dumper.
50140 OBJDUMP="$OBJDUMP"
50141
50142 # Used on cygwin: assembler.
50143 AS="$AS"
50144
50145 # The name of the directory that contains temporary libtool files.
50146 objdir=$objdir
50147
50148 # How to create reloadable object files.
50149 reload_flag=$lt_reload_flag
50150 reload_cmds=$lt_reload_cmds
50151
50152 # How to pass a linker flag through the compiler.
50153 wl=$lt_lt_prog_compiler_wl_GCJ
50154
50155 # Object file suffix (normally "o").
50156 objext="$ac_objext"
50157
50158 # Old archive suffix (normally "a").
50159 libext="$libext"
50160
50161 # Shared library suffix (normally ".so").
50162 shrext_cmds='$shrext_cmds'
50163
50164 # Executable file suffix (normally "").
50165 exeext="$exeext"
50166
50167 # Additional compiler flags for building library objects.
50168 pic_flag=$lt_lt_prog_compiler_pic_GCJ
50169 pic_mode=$pic_mode
50170
50171 # What is the maximum length of a command?
50172 max_cmd_len=$lt_cv_sys_max_cmd_len
50173
50174 # Does compiler simultaneously support -c and -o options?
50175 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
50176
50177 # Must we lock files when doing compilation?
50178 need_locks=$lt_need_locks
50179
50180 # Do we need the lib prefix for modules?
50181 need_lib_prefix=$need_lib_prefix
50182
50183 # Do we need a version for libraries?
50184 need_version=$need_version
50185
50186 # Whether dlopen is supported.
50187 dlopen_support=$enable_dlopen
50188
50189 # Whether dlopen of programs is supported.
50190 dlopen_self=$enable_dlopen_self
50191
50192 # Whether dlopen of statically linked programs is supported.
50193 dlopen_self_static=$enable_dlopen_self_static
50194
50195 # Compiler flag to prevent dynamic linking.
50196 link_static_flag=$lt_lt_prog_compiler_static_GCJ
50197
50198 # Compiler flag to turn off builtin functions.
50199 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
50200
50201 # Compiler flag to allow reflexive dlopens.
50202 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
50203
50204 # Compiler flag to generate shared objects directly from archives.
50205 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
50206
50207 # Compiler flag to generate thread-safe objects.
50208 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
50209
50210 # Library versioning type.
50211 version_type=$version_type
50212
50213 # Format of library name prefix.
50214 libname_spec=$lt_libname_spec
50215
50216 # List of archive names.  First name is the real one, the rest are links.
50217 # The last name is the one that the linker finds with -lNAME.
50218 library_names_spec=$lt_library_names_spec
50219
50220 # The coded name of the library, if different from the real name.
50221 soname_spec=$lt_soname_spec
50222
50223 # Commands used to build and install an old-style archive.
50224 RANLIB=$lt_RANLIB
50225 old_archive_cmds=$lt_old_archive_cmds_GCJ
50226 old_postinstall_cmds=$lt_old_postinstall_cmds
50227 old_postuninstall_cmds=$lt_old_postuninstall_cmds
50228
50229 # Create an old-style archive from a shared archive.
50230 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
50231
50232 # Create a temporary old-style archive to link instead of a shared archive.
50233 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
50234
50235 # Commands used to build and install a shared archive.
50236 archive_cmds=$lt_archive_cmds_GCJ
50237 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
50238 postinstall_cmds=$lt_postinstall_cmds
50239 postuninstall_cmds=$lt_postuninstall_cmds
50240
50241 # Commands used to build a loadable module (assumed same as above if empty)
50242 module_cmds=$lt_module_cmds_GCJ
50243 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
50244
50245 # Commands to strip libraries.
50246 old_striplib=$lt_old_striplib
50247 striplib=$lt_striplib
50248
50249 # Dependencies to place before the objects being linked to create a
50250 # shared library.
50251 predep_objects=$lt_predep_objects_GCJ
50252
50253 # Dependencies to place after the objects being linked to create a
50254 # shared library.
50255 postdep_objects=$lt_postdep_objects_GCJ
50256
50257 # Dependencies to place before the objects being linked to create a
50258 # shared library.
50259 predeps=$lt_predeps_GCJ
50260
50261 # Dependencies to place after the objects being linked to create a
50262 # shared library.
50263 postdeps=$lt_postdeps_GCJ
50264
50265 # The library search path used internally by the compiler when linking
50266 # a shared library.
50267 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
50268
50269 # Method to check whether dependent libraries are shared objects.
50270 deplibs_check_method=$lt_deplibs_check_method
50271
50272 # Command to use when deplibs_check_method == file_magic.
50273 file_magic_cmd=$lt_file_magic_cmd
50274
50275 # Flag that allows shared libraries with undefined symbols to be built.
50276 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
50277
50278 # Flag that forces no undefined symbols.
50279 no_undefined_flag=$lt_no_undefined_flag_GCJ
50280
50281 # Commands used to finish a libtool library installation in a directory.
50282 finish_cmds=$lt_finish_cmds
50283
50284 # Same as above, but a single script fragment to be evaled but not shown.
50285 finish_eval=$lt_finish_eval
50286
50287 # Take the output of nm and produce a listing of raw symbols and C names.
50288 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
50289
50290 # Transform the output of nm in a proper C declaration
50291 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
50292
50293 # Transform the output of nm in a C name address pair
50294 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
50295
50296 # This is the shared library runtime path variable.
50297 runpath_var=$runpath_var
50298
50299 # This is the shared library path variable.
50300 shlibpath_var=$shlibpath_var
50301
50302 # Is shlibpath searched before the hard-coded library search path?
50303 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
50304
50305 # How to hardcode a shared library path into an executable.
50306 hardcode_action=$hardcode_action_GCJ
50307
50308 # Whether we should hardcode library paths into libraries.
50309 hardcode_into_libs=$hardcode_into_libs
50310
50311 # Flag to hardcode \$libdir into a binary during linking.
50312 # This must work even if \$libdir does not exist.
50313 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
50314
50315 # If ld is used when linking, flag to hardcode \$libdir into
50316 # a binary during linking. This must work even if \$libdir does
50317 # not exist.
50318 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
50319
50320 # Whether we need a single -rpath flag with a separated argument.
50321 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
50322
50323 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
50324 # resulting binary.
50325 hardcode_direct=$hardcode_direct_GCJ
50326
50327 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
50328 # resulting binary.
50329 hardcode_minus_L=$hardcode_minus_L_GCJ
50330
50331 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
50332 # the resulting binary.
50333 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
50334
50335 # Set to yes if building a shared library automatically hardcodes DIR into the library
50336 # and all subsequent libraries and executables linked against it.
50337 hardcode_automatic=$hardcode_automatic_GCJ
50338
50339 # Variables whose values should be saved in libtool wrapper scripts and
50340 # restored at relink time.
50341 variables_saved_for_relink="$variables_saved_for_relink"
50342
50343 # Whether libtool must link a program against all its dependency libraries.
50344 link_all_deplibs=$link_all_deplibs_GCJ
50345
50346 # Compile-time system search path for libraries
50347 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
50348
50349 # Run-time system search path for libraries
50350 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
50351
50352 # Fix the shell variable \$srcfile for the compiler.
50353 fix_srcfile_path="$fix_srcfile_path_GCJ"
50354
50355 # Set to yes if exported symbols are required.
50356 always_export_symbols=$always_export_symbols_GCJ
50357
50358 # The commands to list exported symbols.
50359 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
50360
50361 # The commands to extract the exported symbol list from a shared archive.
50362 extract_expsyms_cmds=$lt_extract_expsyms_cmds
50363
50364 # Symbols that should not be listed in the preloaded symbols.
50365 exclude_expsyms=$lt_exclude_expsyms_GCJ
50366
50367 # Symbols that must always be exported.
50368 include_expsyms=$lt_include_expsyms_GCJ
50369
50370 # ### END LIBTOOL TAG CONFIG: $tagname
50371
50372 __EOF__
50373
50374
50375 else
50376   # If there is no Makefile yet, we rely on a make rule to execute
50377   # `config.status --recheck' to rerun these tests and create the
50378   # libtool script then.
50379   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
50380   if test -f "$ltmain_in"; then
50381     test -f Makefile && make "$ltmain"
50382   fi
50383 fi
50384
50385
50386 ac_ext=c
50387 ac_cpp='$CPP $CPPFLAGS'
50388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50391
50392 CC="$lt_save_CC"
50393
50394         else
50395           tagname=""
50396         fi
50397         ;;
50398
50399       RC)
50400
50401
50402 # Source file extension for RC test sources.
50403 ac_ext=rc
50404
50405 # Object file extension for compiled RC test sources.
50406 objext=o
50407 objext_RC=$objext
50408
50409 # Code to be used in simple compile tests
50410 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
50411
50412 # Code to be used in simple link tests
50413 lt_simple_link_test_code="$lt_simple_compile_test_code"
50414
50415 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
50416
50417 # If no C compiler was specified, use CC.
50418 LTCC=${LTCC-"$CC"}
50419
50420 # Allow CC to be a program name with arguments.
50421 compiler=$CC
50422
50423
50424 # save warnings/boilerplate of simple test code
50425 ac_outfile=conftest.$ac_objext
50426 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
50427 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
50428 _lt_compiler_boilerplate=`cat conftest.err`
50429 $rm conftest*
50430
50431 ac_outfile=conftest.$ac_objext
50432 printf "$lt_simple_link_test_code" >conftest.$ac_ext
50433 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
50434 _lt_linker_boilerplate=`cat conftest.err`
50435 $rm conftest*
50436
50437
50438 # Allow CC to be a program name with arguments.
50439 lt_save_CC="$CC"
50440 CC=${RC-"windres"}
50441 compiler=$CC
50442 compiler_RC=$CC
50443 for cc_temp in $compiler""; do
50444   case $cc_temp in
50445     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
50446     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
50447     \-*) ;;
50448     *) break;;
50449   esac
50450 done
50451 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
50452
50453 lt_cv_prog_compiler_c_o_RC=yes
50454
50455 # The else clause should only fire when bootstrapping the
50456 # libtool distribution, otherwise you forgot to ship ltmain.sh
50457 # with your package, and you will get complaints that there are
50458 # no rules to generate ltmain.sh.
50459 if test -f "$ltmain"; then
50460   # See if we are running on zsh, and set the options which allow our commands through
50461   # without removal of \ escapes.
50462   if test -n "${ZSH_VERSION+set}" ; then
50463     setopt NO_GLOB_SUBST
50464   fi
50465   # Now quote all the things that may contain metacharacters while being
50466   # careful not to overquote the AC_SUBSTed values.  We take copies of the
50467   # variables and quote the copies for generation of the libtool script.
50468   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
50469     SED SHELL STRIP \
50470     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
50471     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
50472     deplibs_check_method reload_flag reload_cmds need_locks \
50473     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
50474     lt_cv_sys_global_symbol_to_c_name_address \
50475     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
50476     old_postinstall_cmds old_postuninstall_cmds \
50477     compiler_RC \
50478     CC_RC \
50479     LD_RC \
50480     lt_prog_compiler_wl_RC \
50481     lt_prog_compiler_pic_RC \
50482     lt_prog_compiler_static_RC \
50483     lt_prog_compiler_no_builtin_flag_RC \
50484     export_dynamic_flag_spec_RC \
50485     thread_safe_flag_spec_RC \
50486     whole_archive_flag_spec_RC \
50487     enable_shared_with_static_runtimes_RC \
50488     old_archive_cmds_RC \
50489     old_archive_from_new_cmds_RC \
50490     predep_objects_RC \
50491     postdep_objects_RC \
50492     predeps_RC \
50493     postdeps_RC \
50494     compiler_lib_search_path_RC \
50495     archive_cmds_RC \
50496     archive_expsym_cmds_RC \
50497     postinstall_cmds_RC \
50498     postuninstall_cmds_RC \
50499     old_archive_from_expsyms_cmds_RC \
50500     allow_undefined_flag_RC \
50501     no_undefined_flag_RC \
50502     export_symbols_cmds_RC \
50503     hardcode_libdir_flag_spec_RC \
50504     hardcode_libdir_flag_spec_ld_RC \
50505     hardcode_libdir_separator_RC \
50506     hardcode_automatic_RC \
50507     module_cmds_RC \
50508     module_expsym_cmds_RC \
50509     lt_cv_prog_compiler_c_o_RC \
50510     exclude_expsyms_RC \
50511     include_expsyms_RC; do
50512
50513     case $var in
50514     old_archive_cmds_RC | \
50515     old_archive_from_new_cmds_RC | \
50516     archive_cmds_RC | \
50517     archive_expsym_cmds_RC | \
50518     module_cmds_RC | \
50519     module_expsym_cmds_RC | \
50520     old_archive_from_expsyms_cmds_RC | \
50521     export_symbols_cmds_RC | \
50522     extract_expsyms_cmds | reload_cmds | finish_cmds | \
50523     postinstall_cmds | postuninstall_cmds | \
50524     old_postinstall_cmds | old_postuninstall_cmds | \
50525     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
50526       # Double-quote double-evaled strings.
50527       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
50528       ;;
50529     *)
50530       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
50531       ;;
50532     esac
50533   done
50534
50535   case $lt_echo in
50536   *'\$0 --fallback-echo"')
50537     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
50538     ;;
50539   esac
50540
50541 cfgfile="$ofile"
50542
50543   cat <<__EOF__ >> "$cfgfile"
50544 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
50545
50546 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
50547
50548 # Shell to use when invoking shell scripts.
50549 SHELL=$lt_SHELL
50550
50551 # Whether or not to build shared libraries.
50552 build_libtool_libs=$enable_shared
50553
50554 # Whether or not to build static libraries.
50555 build_old_libs=$enable_static
50556
50557 # Whether or not to add -lc for building shared libraries.
50558 build_libtool_need_lc=$archive_cmds_need_lc_RC
50559
50560 # Whether or not to disallow shared libs when runtime libs are static
50561 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
50562
50563 # Whether or not to optimize for fast installation.
50564 fast_install=$enable_fast_install
50565
50566 # The host system.
50567 host_alias=$host_alias
50568 host=$host
50569 host_os=$host_os
50570
50571 # The build system.
50572 build_alias=$build_alias
50573 build=$build
50574 build_os=$build_os
50575
50576 # An echo program that does not interpret backslashes.
50577 echo=$lt_echo
50578
50579 # The archiver.
50580 AR=$lt_AR
50581 AR_FLAGS=$lt_AR_FLAGS
50582
50583 # A C compiler.
50584 LTCC=$lt_LTCC
50585
50586 # A language-specific compiler.
50587 CC=$lt_compiler_RC
50588
50589 # Is the compiler the GNU C compiler?
50590 with_gcc=$GCC_RC
50591
50592 # An ERE matcher.
50593 EGREP=$lt_EGREP
50594
50595 # The linker used to build libraries.
50596 LD=$lt_LD_RC
50597
50598 # Whether we need hard or soft links.
50599 LN_S=$lt_LN_S
50600
50601 # A BSD-compatible nm program.
50602 NM=$lt_NM
50603
50604 # A symbol stripping program
50605 STRIP=$lt_STRIP
50606
50607 # Used to examine libraries when file_magic_cmd begins "file"
50608 MAGIC_CMD=$MAGIC_CMD
50609
50610 # Used on cygwin: DLL creation program.
50611 DLLTOOL="$DLLTOOL"
50612
50613 # Used on cygwin: object dumper.
50614 OBJDUMP="$OBJDUMP"
50615
50616 # Used on cygwin: assembler.
50617 AS="$AS"
50618
50619 # The name of the directory that contains temporary libtool files.
50620 objdir=$objdir
50621
50622 # How to create reloadable object files.
50623 reload_flag=$lt_reload_flag
50624 reload_cmds=$lt_reload_cmds
50625
50626 # How to pass a linker flag through the compiler.
50627 wl=$lt_lt_prog_compiler_wl_RC
50628
50629 # Object file suffix (normally "o").
50630 objext="$ac_objext"
50631
50632 # Old archive suffix (normally "a").
50633 libext="$libext"
50634
50635 # Shared library suffix (normally ".so").
50636 shrext_cmds='$shrext_cmds'
50637
50638 # Executable file suffix (normally "").
50639 exeext="$exeext"
50640
50641 # Additional compiler flags for building library objects.
50642 pic_flag=$lt_lt_prog_compiler_pic_RC
50643 pic_mode=$pic_mode
50644
50645 # What is the maximum length of a command?
50646 max_cmd_len=$lt_cv_sys_max_cmd_len
50647
50648 # Does compiler simultaneously support -c and -o options?
50649 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
50650
50651 # Must we lock files when doing compilation?
50652 need_locks=$lt_need_locks
50653
50654 # Do we need the lib prefix for modules?
50655 need_lib_prefix=$need_lib_prefix
50656
50657 # Do we need a version for libraries?
50658 need_version=$need_version
50659
50660 # Whether dlopen is supported.
50661 dlopen_support=$enable_dlopen
50662
50663 # Whether dlopen of programs is supported.
50664 dlopen_self=$enable_dlopen_self
50665
50666 # Whether dlopen of statically linked programs is supported.
50667 dlopen_self_static=$enable_dlopen_self_static
50668
50669 # Compiler flag to prevent dynamic linking.
50670 link_static_flag=$lt_lt_prog_compiler_static_RC
50671
50672 # Compiler flag to turn off builtin functions.
50673 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
50674
50675 # Compiler flag to allow reflexive dlopens.
50676 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
50677
50678 # Compiler flag to generate shared objects directly from archives.
50679 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
50680
50681 # Compiler flag to generate thread-safe objects.
50682 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
50683
50684 # Library versioning type.
50685 version_type=$version_type
50686
50687 # Format of library name prefix.
50688 libname_spec=$lt_libname_spec
50689
50690 # List of archive names.  First name is the real one, the rest are links.
50691 # The last name is the one that the linker finds with -lNAME.
50692 library_names_spec=$lt_library_names_spec
50693
50694 # The coded name of the library, if different from the real name.
50695 soname_spec=$lt_soname_spec
50696
50697 # Commands used to build and install an old-style archive.
50698 RANLIB=$lt_RANLIB
50699 old_archive_cmds=$lt_old_archive_cmds_RC
50700 old_postinstall_cmds=$lt_old_postinstall_cmds
50701 old_postuninstall_cmds=$lt_old_postuninstall_cmds
50702
50703 # Create an old-style archive from a shared archive.
50704 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
50705
50706 # Create a temporary old-style archive to link instead of a shared archive.
50707 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
50708
50709 # Commands used to build and install a shared archive.
50710 archive_cmds=$lt_archive_cmds_RC
50711 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
50712 postinstall_cmds=$lt_postinstall_cmds
50713 postuninstall_cmds=$lt_postuninstall_cmds
50714
50715 # Commands used to build a loadable module (assumed same as above if empty)
50716 module_cmds=$lt_module_cmds_RC
50717 module_expsym_cmds=$lt_module_expsym_cmds_RC
50718
50719 # Commands to strip libraries.
50720 old_striplib=$lt_old_striplib
50721 striplib=$lt_striplib
50722
50723 # Dependencies to place before the objects being linked to create a
50724 # shared library.
50725 predep_objects=$lt_predep_objects_RC
50726
50727 # Dependencies to place after the objects being linked to create a
50728 # shared library.
50729 postdep_objects=$lt_postdep_objects_RC
50730
50731 # Dependencies to place before the objects being linked to create a
50732 # shared library.
50733 predeps=$lt_predeps_RC
50734
50735 # Dependencies to place after the objects being linked to create a
50736 # shared library.
50737 postdeps=$lt_postdeps_RC
50738
50739 # The library search path used internally by the compiler when linking
50740 # a shared library.
50741 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
50742
50743 # Method to check whether dependent libraries are shared objects.
50744 deplibs_check_method=$lt_deplibs_check_method
50745
50746 # Command to use when deplibs_check_method == file_magic.
50747 file_magic_cmd=$lt_file_magic_cmd
50748
50749 # Flag that allows shared libraries with undefined symbols to be built.
50750 allow_undefined_flag=$lt_allow_undefined_flag_RC
50751
50752 # Flag that forces no undefined symbols.
50753 no_undefined_flag=$lt_no_undefined_flag_RC
50754
50755 # Commands used to finish a libtool library installation in a directory.
50756 finish_cmds=$lt_finish_cmds
50757
50758 # Same as above, but a single script fragment to be evaled but not shown.
50759 finish_eval=$lt_finish_eval
50760
50761 # Take the output of nm and produce a listing of raw symbols and C names.
50762 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
50763
50764 # Transform the output of nm in a proper C declaration
50765 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
50766
50767 # Transform the output of nm in a C name address pair
50768 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
50769
50770 # This is the shared library runtime path variable.
50771 runpath_var=$runpath_var
50772
50773 # This is the shared library path variable.
50774 shlibpath_var=$shlibpath_var
50775
50776 # Is shlibpath searched before the hard-coded library search path?
50777 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
50778
50779 # How to hardcode a shared library path into an executable.
50780 hardcode_action=$hardcode_action_RC
50781
50782 # Whether we should hardcode library paths into libraries.
50783 hardcode_into_libs=$hardcode_into_libs
50784
50785 # Flag to hardcode \$libdir into a binary during linking.
50786 # This must work even if \$libdir does not exist.
50787 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
50788
50789 # If ld is used when linking, flag to hardcode \$libdir into
50790 # a binary during linking. This must work even if \$libdir does
50791 # not exist.
50792 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
50793
50794 # Whether we need a single -rpath flag with a separated argument.
50795 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
50796
50797 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
50798 # resulting binary.
50799 hardcode_direct=$hardcode_direct_RC
50800
50801 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
50802 # resulting binary.
50803 hardcode_minus_L=$hardcode_minus_L_RC
50804
50805 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
50806 # the resulting binary.
50807 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
50808
50809 # Set to yes if building a shared library automatically hardcodes DIR into the library
50810 # and all subsequent libraries and executables linked against it.
50811 hardcode_automatic=$hardcode_automatic_RC
50812
50813 # Variables whose values should be saved in libtool wrapper scripts and
50814 # restored at relink time.
50815 variables_saved_for_relink="$variables_saved_for_relink"
50816
50817 # Whether libtool must link a program against all its dependency libraries.
50818 link_all_deplibs=$link_all_deplibs_RC
50819
50820 # Compile-time system search path for libraries
50821 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
50822
50823 # Run-time system search path for libraries
50824 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
50825
50826 # Fix the shell variable \$srcfile for the compiler.
50827 fix_srcfile_path="$fix_srcfile_path_RC"
50828
50829 # Set to yes if exported symbols are required.
50830 always_export_symbols=$always_export_symbols_RC
50831
50832 # The commands to list exported symbols.
50833 export_symbols_cmds=$lt_export_symbols_cmds_RC
50834
50835 # The commands to extract the exported symbol list from a shared archive.
50836 extract_expsyms_cmds=$lt_extract_expsyms_cmds
50837
50838 # Symbols that should not be listed in the preloaded symbols.
50839 exclude_expsyms=$lt_exclude_expsyms_RC
50840
50841 # Symbols that must always be exported.
50842 include_expsyms=$lt_include_expsyms_RC
50843
50844 # ### END LIBTOOL TAG CONFIG: $tagname
50845
50846 __EOF__
50847
50848
50849 else
50850   # If there is no Makefile yet, we rely on a make rule to execute
50851   # `config.status --recheck' to rerun these tests and create the
50852   # libtool script then.
50853   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
50854   if test -f "$ltmain_in"; then
50855     test -f Makefile && make "$ltmain"
50856   fi
50857 fi
50858
50859
50860 ac_ext=c
50861 ac_cpp='$CPP $CPPFLAGS'
50862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50865
50866 CC="$lt_save_CC"
50867
50868         ;;
50869
50870       *)
50871         { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
50872 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
50873    { (exit 1); exit 1; }; }
50874         ;;
50875       esac
50876
50877       # Append the new tag name to the list of available tags.
50878       if test -n "$tagname" ; then
50879       available_tags="$available_tags $tagname"
50880     fi
50881     fi
50882   done
50883   IFS="$lt_save_ifs"
50884
50885   # Now substitute the updated list of available tags.
50886   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
50887     mv "${ofile}T" "$ofile"
50888     chmod +x "$ofile"
50889   else
50890     rm -f "${ofile}T"
50891     { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
50892 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
50893    { (exit 1); exit 1; }; }
50894   fi
50895 fi
50896
50897
50898
50899 # This can be used to rebuild libtool when needed
50900 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
50901
50902 # Always use our own libtool.
50903 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
50904
50905 # Prevent multiple expansion
50906
50907
50908
50909
50910
50911
50912
50913
50914
50915
50916
50917
50918
50919
50920
50921
50922
50923
50924
50925
50926
50927
50928     # Check whether --enable-static-binary was given.
50929 if test "${enable_static_binary+set}" = set; then
50930   enableval=$enable_static_binary;
50931             case "$withval" in
50932             "" | y | ye | yes)
50933                 AMANDA_STATIC_LDFLAGS=-static
50934                 if test x"$enable_static" = x"no"; then
50935                         { { $as_echo "$as_me:$LINENO: error: *** --enable-static-binary is incompatible with --disable-static" >&5
50936 $as_echo "$as_me: error: *** --enable-static-binary is incompatible with --disable-static" >&2;}
50937    { (exit 1); exit 1; }; }
50938                 fi
50939                 ;;
50940             *n | no)
50941                 AMANDA_STATIC_LDFLAGS=
50942                 ;;
50943             esac
50944
50945 fi
50946
50947
50948
50949
50950 #
50951 # headers
50952 #
50953
50954
50955
50956
50957
50958 ac_header_dirent=no
50959 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
50960   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
50961 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
50962 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
50963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50964   $as_echo_n "(cached) " >&6
50965 else
50966   cat >conftest.$ac_ext <<_ACEOF
50967 /* confdefs.h.  */
50968 _ACEOF
50969 cat confdefs.h >>conftest.$ac_ext
50970 cat >>conftest.$ac_ext <<_ACEOF
50971 /* end confdefs.h.  */
50972 #include <sys/types.h>
50973 #include <$ac_hdr>
50974
50975 int
50976 main ()
50977 {
50978 if ((DIR *) 0)
50979 return 0;
50980   ;
50981   return 0;
50982 }
50983 _ACEOF
50984 rm -f conftest.$ac_objext
50985 if { (ac_try="$ac_compile"
50986 case "(($ac_try" in
50987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50988   *) ac_try_echo=$ac_try;;
50989 esac
50990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50991 $as_echo "$ac_try_echo") >&5
50992   (eval "$ac_compile") 2>conftest.er1
50993   ac_status=$?
50994   grep -v '^ *+' conftest.er1 >conftest.err
50995   rm -f conftest.er1
50996   cat conftest.err >&5
50997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50998   (exit $ac_status); } && {
50999          test -z "$ac_c_werror_flag" ||
51000          test ! -s conftest.err
51001        } && test -s conftest.$ac_objext; then
51002   eval "$as_ac_Header=yes"
51003 else
51004   $as_echo "$as_me: failed program was:" >&5
51005 sed 's/^/| /' conftest.$ac_ext >&5
51006
51007         eval "$as_ac_Header=no"
51008 fi
51009
51010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51011 fi
51012 ac_res=`eval 'as_val=${'$as_ac_Header'}
51013                  $as_echo "$as_val"'`
51014                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51015 $as_echo "$ac_res" >&6; }
51016 as_val=`eval 'as_val=${'$as_ac_Header'}
51017                  $as_echo "$as_val"'`
51018    if test "x$as_val" = x""yes; then
51019   cat >>confdefs.h <<_ACEOF
51020 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
51021 _ACEOF
51022
51023 ac_header_dirent=$ac_hdr; break
51024 fi
51025
51026 done
51027 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
51028 if test $ac_header_dirent = dirent.h; then
51029   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
51030 $as_echo_n "checking for library containing opendir... " >&6; }
51031 if test "${ac_cv_search_opendir+set}" = set; then
51032   $as_echo_n "(cached) " >&6
51033 else
51034   ac_func_search_save_LIBS=$LIBS
51035 cat >conftest.$ac_ext <<_ACEOF
51036 /* confdefs.h.  */
51037 _ACEOF
51038 cat confdefs.h >>conftest.$ac_ext
51039 cat >>conftest.$ac_ext <<_ACEOF
51040 /* end confdefs.h.  */
51041
51042 /* Override any GCC internal prototype to avoid an error.
51043    Use char because int might match the return type of a GCC
51044    builtin and then its argument prototype would still apply.  */
51045 #ifdef __cplusplus
51046 extern "C"
51047 #endif
51048 char opendir ();
51049 int
51050 main ()
51051 {
51052 return opendir ();
51053   ;
51054   return 0;
51055 }
51056 _ACEOF
51057 for ac_lib in '' dir; do
51058   if test -z "$ac_lib"; then
51059     ac_res="none required"
51060   else
51061     ac_res=-l$ac_lib
51062     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
51063   fi
51064   rm -f conftest.$ac_objext conftest$ac_exeext
51065 if { (ac_try="$ac_link"
51066 case "(($ac_try" in
51067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51068   *) ac_try_echo=$ac_try;;
51069 esac
51070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51071 $as_echo "$ac_try_echo") >&5
51072   (eval "$ac_link") 2>conftest.er1
51073   ac_status=$?
51074   grep -v '^ *+' conftest.er1 >conftest.err
51075   rm -f conftest.er1
51076   cat conftest.err >&5
51077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51078   (exit $ac_status); } && {
51079          test -z "$ac_c_werror_flag" ||
51080          test ! -s conftest.err
51081        } && test -s conftest$ac_exeext && {
51082          test "$cross_compiling" = yes ||
51083          $as_test_x conftest$ac_exeext
51084        }; then
51085   ac_cv_search_opendir=$ac_res
51086 else
51087   $as_echo "$as_me: failed program was:" >&5
51088 sed 's/^/| /' conftest.$ac_ext >&5
51089
51090
51091 fi
51092
51093 rm -rf conftest.dSYM
51094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51095       conftest$ac_exeext
51096   if test "${ac_cv_search_opendir+set}" = set; then
51097   break
51098 fi
51099 done
51100 if test "${ac_cv_search_opendir+set}" = set; then
51101   :
51102 else
51103   ac_cv_search_opendir=no
51104 fi
51105 rm conftest.$ac_ext
51106 LIBS=$ac_func_search_save_LIBS
51107 fi
51108 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
51109 $as_echo "$ac_cv_search_opendir" >&6; }
51110 ac_res=$ac_cv_search_opendir
51111 if test "$ac_res" != no; then
51112   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
51113
51114 fi
51115
51116 else
51117   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
51118 $as_echo_n "checking for library containing opendir... " >&6; }
51119 if test "${ac_cv_search_opendir+set}" = set; then
51120   $as_echo_n "(cached) " >&6
51121 else
51122   ac_func_search_save_LIBS=$LIBS
51123 cat >conftest.$ac_ext <<_ACEOF
51124 /* confdefs.h.  */
51125 _ACEOF
51126 cat confdefs.h >>conftest.$ac_ext
51127 cat >>conftest.$ac_ext <<_ACEOF
51128 /* end confdefs.h.  */
51129
51130 /* Override any GCC internal prototype to avoid an error.
51131    Use char because int might match the return type of a GCC
51132    builtin and then its argument prototype would still apply.  */
51133 #ifdef __cplusplus
51134 extern "C"
51135 #endif
51136 char opendir ();
51137 int
51138 main ()
51139 {
51140 return opendir ();
51141   ;
51142   return 0;
51143 }
51144 _ACEOF
51145 for ac_lib in '' x; do
51146   if test -z "$ac_lib"; then
51147     ac_res="none required"
51148   else
51149     ac_res=-l$ac_lib
51150     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
51151   fi
51152   rm -f conftest.$ac_objext conftest$ac_exeext
51153 if { (ac_try="$ac_link"
51154 case "(($ac_try" in
51155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51156   *) ac_try_echo=$ac_try;;
51157 esac
51158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51159 $as_echo "$ac_try_echo") >&5
51160   (eval "$ac_link") 2>conftest.er1
51161   ac_status=$?
51162   grep -v '^ *+' conftest.er1 >conftest.err
51163   rm -f conftest.er1
51164   cat conftest.err >&5
51165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51166   (exit $ac_status); } && {
51167          test -z "$ac_c_werror_flag" ||
51168          test ! -s conftest.err
51169        } && test -s conftest$ac_exeext && {
51170          test "$cross_compiling" = yes ||
51171          $as_test_x conftest$ac_exeext
51172        }; then
51173   ac_cv_search_opendir=$ac_res
51174 else
51175   $as_echo "$as_me: failed program was:" >&5
51176 sed 's/^/| /' conftest.$ac_ext >&5
51177
51178
51179 fi
51180
51181 rm -rf conftest.dSYM
51182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51183       conftest$ac_exeext
51184   if test "${ac_cv_search_opendir+set}" = set; then
51185   break
51186 fi
51187 done
51188 if test "${ac_cv_search_opendir+set}" = set; then
51189   :
51190 else
51191   ac_cv_search_opendir=no
51192 fi
51193 rm conftest.$ac_ext
51194 LIBS=$ac_func_search_save_LIBS
51195 fi
51196 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
51197 $as_echo "$ac_cv_search_opendir" >&6; }
51198 ac_res=$ac_cv_search_opendir
51199 if test "$ac_res" != no; then
51200   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
51201
51202 fi
51203
51204 fi
51205
51206 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
51207 $as_echo_n "checking for ANSI C header files... " >&6; }
51208 if test "${ac_cv_header_stdc+set}" = set; then
51209   $as_echo_n "(cached) " >&6
51210 else
51211   cat >conftest.$ac_ext <<_ACEOF
51212 /* confdefs.h.  */
51213 _ACEOF
51214 cat confdefs.h >>conftest.$ac_ext
51215 cat >>conftest.$ac_ext <<_ACEOF
51216 /* end confdefs.h.  */
51217 #include <stdlib.h>
51218 #include <stdarg.h>
51219 #include <string.h>
51220 #include <float.h>
51221
51222 int
51223 main ()
51224 {
51225
51226   ;
51227   return 0;
51228 }
51229 _ACEOF
51230 rm -f conftest.$ac_objext
51231 if { (ac_try="$ac_compile"
51232 case "(($ac_try" in
51233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51234   *) ac_try_echo=$ac_try;;
51235 esac
51236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51237 $as_echo "$ac_try_echo") >&5
51238   (eval "$ac_compile") 2>conftest.er1
51239   ac_status=$?
51240   grep -v '^ *+' conftest.er1 >conftest.err
51241   rm -f conftest.er1
51242   cat conftest.err >&5
51243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51244   (exit $ac_status); } && {
51245          test -z "$ac_c_werror_flag" ||
51246          test ! -s conftest.err
51247        } && test -s conftest.$ac_objext; then
51248   ac_cv_header_stdc=yes
51249 else
51250   $as_echo "$as_me: failed program was:" >&5
51251 sed 's/^/| /' conftest.$ac_ext >&5
51252
51253         ac_cv_header_stdc=no
51254 fi
51255
51256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51257
51258 if test $ac_cv_header_stdc = yes; then
51259   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
51260   cat >conftest.$ac_ext <<_ACEOF
51261 /* confdefs.h.  */
51262 _ACEOF
51263 cat confdefs.h >>conftest.$ac_ext
51264 cat >>conftest.$ac_ext <<_ACEOF
51265 /* end confdefs.h.  */
51266 #include <string.h>
51267
51268 _ACEOF
51269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51270   $EGREP "memchr" >/dev/null 2>&1; then
51271   :
51272 else
51273   ac_cv_header_stdc=no
51274 fi
51275 rm -f conftest*
51276
51277 fi
51278
51279 if test $ac_cv_header_stdc = yes; then
51280   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
51281   cat >conftest.$ac_ext <<_ACEOF
51282 /* confdefs.h.  */
51283 _ACEOF
51284 cat confdefs.h >>conftest.$ac_ext
51285 cat >>conftest.$ac_ext <<_ACEOF
51286 /* end confdefs.h.  */
51287 #include <stdlib.h>
51288
51289 _ACEOF
51290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51291   $EGREP "free" >/dev/null 2>&1; then
51292   :
51293 else
51294   ac_cv_header_stdc=no
51295 fi
51296 rm -f conftest*
51297
51298 fi
51299
51300 if test $ac_cv_header_stdc = yes; then
51301   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
51302   if test "$cross_compiling" = yes; then
51303   :
51304 else
51305   cat >conftest.$ac_ext <<_ACEOF
51306 /* confdefs.h.  */
51307 _ACEOF
51308 cat confdefs.h >>conftest.$ac_ext
51309 cat >>conftest.$ac_ext <<_ACEOF
51310 /* end confdefs.h.  */
51311 #include <ctype.h>
51312 #include <stdlib.h>
51313 #if ((' ' & 0x0FF) == 0x020)
51314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
51315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
51316 #else
51317 # define ISLOWER(c) \
51318                    (('a' <= (c) && (c) <= 'i') \
51319                      || ('j' <= (c) && (c) <= 'r') \
51320                      || ('s' <= (c) && (c) <= 'z'))
51321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
51322 #endif
51323
51324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
51325 int
51326 main ()
51327 {
51328   int i;
51329   for (i = 0; i < 256; i++)
51330     if (XOR (islower (i), ISLOWER (i))
51331         || toupper (i) != TOUPPER (i))
51332       return 2;
51333   return 0;
51334 }
51335 _ACEOF
51336 rm -f conftest$ac_exeext
51337 if { (ac_try="$ac_link"
51338 case "(($ac_try" in
51339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51340   *) ac_try_echo=$ac_try;;
51341 esac
51342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51343 $as_echo "$ac_try_echo") >&5
51344   (eval "$ac_link") 2>&5
51345   ac_status=$?
51346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51347   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51348   { (case "(($ac_try" in
51349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51350   *) ac_try_echo=$ac_try;;
51351 esac
51352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51353 $as_echo "$ac_try_echo") >&5
51354   (eval "$ac_try") 2>&5
51355   ac_status=$?
51356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51357   (exit $ac_status); }; }; then
51358   :
51359 else
51360   $as_echo "$as_me: program exited with status $ac_status" >&5
51361 $as_echo "$as_me: failed program was:" >&5
51362 sed 's/^/| /' conftest.$ac_ext >&5
51363
51364 ( exit $ac_status )
51365 ac_cv_header_stdc=no
51366 fi
51367 rm -rf conftest.dSYM
51368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51369 fi
51370
51371
51372 fi
51373 fi
51374 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
51375 $as_echo "$ac_cv_header_stdc" >&6; }
51376 if test $ac_cv_header_stdc = yes; then
51377
51378 cat >>confdefs.h <<\_ACEOF
51379 #define STDC_HEADERS 1
51380 _ACEOF
51381
51382 fi
51383
51384 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
51385 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
51386 if test "${ac_cv_header_time+set}" = set; then
51387   $as_echo_n "(cached) " >&6
51388 else
51389   cat >conftest.$ac_ext <<_ACEOF
51390 /* confdefs.h.  */
51391 _ACEOF
51392 cat confdefs.h >>conftest.$ac_ext
51393 cat >>conftest.$ac_ext <<_ACEOF
51394 /* end confdefs.h.  */
51395 #include <sys/types.h>
51396 #include <sys/time.h>
51397 #include <time.h>
51398
51399 int
51400 main ()
51401 {
51402 if ((struct tm *) 0)
51403 return 0;
51404   ;
51405   return 0;
51406 }
51407 _ACEOF
51408 rm -f conftest.$ac_objext
51409 if { (ac_try="$ac_compile"
51410 case "(($ac_try" in
51411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51412   *) ac_try_echo=$ac_try;;
51413 esac
51414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51415 $as_echo "$ac_try_echo") >&5
51416   (eval "$ac_compile") 2>conftest.er1
51417   ac_status=$?
51418   grep -v '^ *+' conftest.er1 >conftest.err
51419   rm -f conftest.er1
51420   cat conftest.err >&5
51421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51422   (exit $ac_status); } && {
51423          test -z "$ac_c_werror_flag" ||
51424          test ! -s conftest.err
51425        } && test -s conftest.$ac_objext; then
51426   ac_cv_header_time=yes
51427 else
51428   $as_echo "$as_me: failed program was:" >&5
51429 sed 's/^/| /' conftest.$ac_ext >&5
51430
51431         ac_cv_header_time=no
51432 fi
51433
51434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51435 fi
51436 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
51437 $as_echo "$ac_cv_header_time" >&6; }
51438 if test $ac_cv_header_time = yes; then
51439
51440 cat >>confdefs.h <<\_ACEOF
51441 #define TIME_WITH_SYS_TIME 1
51442 _ACEOF
51443
51444 fi
51445
51446
51447
51448
51449
51450
51451
51452
51453
51454
51455
51456
51457
51458
51459
51460
51461
51462
51463
51464
51465
51466
51467
51468
51469
51470
51471
51472 for ac_header in arpa/inet.h \
51473         grp.h \
51474         libc.h \
51475         libgen.h \
51476         limits.h \
51477         math.h \
51478         netdb.h \
51479         netinet/in.h \
51480         regex.h \
51481         stdarg.h \
51482         stdlib.h \
51483         strings.h \
51484         sys/file.h \
51485         sys/ioctl.h \
51486         sys/ipc.h \
51487         sys/mntent.h \
51488         sys/param.h \
51489         sys/select.h \
51490         sys/stat.h \
51491         sys/shm.h \
51492         sys/time.h \
51493         sys/types.h \
51494         sys/uio.h \
51495         syslog.h \
51496         time.h \
51497         unistd.h \
51498
51499 do
51500 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51502   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51503 $as_echo_n "checking for $ac_header... " >&6; }
51504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51505   $as_echo_n "(cached) " >&6
51506 fi
51507 ac_res=`eval 'as_val=${'$as_ac_Header'}
51508                  $as_echo "$as_val"'`
51509                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51510 $as_echo "$ac_res" >&6; }
51511 else
51512   # Is the header compilable?
51513 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
51514 $as_echo_n "checking $ac_header usability... " >&6; }
51515 cat >conftest.$ac_ext <<_ACEOF
51516 /* confdefs.h.  */
51517 _ACEOF
51518 cat confdefs.h >>conftest.$ac_ext
51519 cat >>conftest.$ac_ext <<_ACEOF
51520 /* end confdefs.h.  */
51521 $ac_includes_default
51522 #include <$ac_header>
51523 _ACEOF
51524 rm -f conftest.$ac_objext
51525 if { (ac_try="$ac_compile"
51526 case "(($ac_try" in
51527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51528   *) ac_try_echo=$ac_try;;
51529 esac
51530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51531 $as_echo "$ac_try_echo") >&5
51532   (eval "$ac_compile") 2>conftest.er1
51533   ac_status=$?
51534   grep -v '^ *+' conftest.er1 >conftest.err
51535   rm -f conftest.er1
51536   cat conftest.err >&5
51537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51538   (exit $ac_status); } && {
51539          test -z "$ac_c_werror_flag" ||
51540          test ! -s conftest.err
51541        } && test -s conftest.$ac_objext; then
51542   ac_header_compiler=yes
51543 else
51544   $as_echo "$as_me: failed program was:" >&5
51545 sed 's/^/| /' conftest.$ac_ext >&5
51546
51547         ac_header_compiler=no
51548 fi
51549
51550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51551 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51552 $as_echo "$ac_header_compiler" >&6; }
51553
51554 # Is the header present?
51555 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
51556 $as_echo_n "checking $ac_header presence... " >&6; }
51557 cat >conftest.$ac_ext <<_ACEOF
51558 /* confdefs.h.  */
51559 _ACEOF
51560 cat confdefs.h >>conftest.$ac_ext
51561 cat >>conftest.$ac_ext <<_ACEOF
51562 /* end confdefs.h.  */
51563 #include <$ac_header>
51564 _ACEOF
51565 if { (ac_try="$ac_cpp conftest.$ac_ext"
51566 case "(($ac_try" in
51567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51568   *) ac_try_echo=$ac_try;;
51569 esac
51570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51571 $as_echo "$ac_try_echo") >&5
51572   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
51573   ac_status=$?
51574   grep -v '^ *+' conftest.er1 >conftest.err
51575   rm -f conftest.er1
51576   cat conftest.err >&5
51577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51578   (exit $ac_status); } >/dev/null && {
51579          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
51580          test ! -s conftest.err
51581        }; then
51582   ac_header_preproc=yes
51583 else
51584   $as_echo "$as_me: failed program was:" >&5
51585 sed 's/^/| /' conftest.$ac_ext >&5
51586
51587   ac_header_preproc=no
51588 fi
51589
51590 rm -f conftest.err conftest.$ac_ext
51591 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51592 $as_echo "$ac_header_preproc" >&6; }
51593
51594 # So?  What about this header?
51595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51596   yes:no: )
51597     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51598 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51599     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51600 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51601     ac_header_preproc=yes
51602     ;;
51603   no:yes:* )
51604     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51605 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51606     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
51607 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
51608     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51609 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51610     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
51611 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
51612     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51613 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51614     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51615 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51616
51617     ;;
51618 esac
51619 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51620 $as_echo_n "checking for $ac_header... " >&6; }
51621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51622   $as_echo_n "(cached) " >&6
51623 else
51624   eval "$as_ac_Header=\$ac_header_preproc"
51625 fi
51626 ac_res=`eval 'as_val=${'$as_ac_Header'}
51627                  $as_echo "$as_val"'`
51628                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51629 $as_echo "$ac_res" >&6; }
51630
51631 fi
51632 as_val=`eval 'as_val=${'$as_ac_Header'}
51633                  $as_echo "$as_val"'`
51634    if test "x$as_val" = x""yes; then
51635   cat >>confdefs.h <<_ACEOF
51636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51637 _ACEOF
51638
51639 fi
51640
51641 done
51642
51643
51644 cat >>confdefs.h <<\_ACEOF
51645 #define HAVE_AMANDA_H 1
51646 _ACEOF
51647
51648
51649 cat >>confdefs.h <<\_ACEOF
51650 #define HAVE_UTIL_H 1
51651 _ACEOF
51652
51653
51654
51655 cat >>confdefs.h <<\_ACEOF
51656 #define USE_GETTEXT 1
51657 _ACEOF
51658
51659
51660 #
51661 # Types
51662 #
51663 # The cast to long int works around a bug in the HP C Compiler
51664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51666 # This bug is HP SR number 8606223364.
51667 { $as_echo "$as_me:$LINENO: checking size of int" >&5
51668 $as_echo_n "checking size of int... " >&6; }
51669 if test "${ac_cv_sizeof_int+set}" = set; then
51670   $as_echo_n "(cached) " >&6
51671 else
51672   if test "$cross_compiling" = yes; then
51673   # Depending upon the size, compute the lo and hi bounds.
51674 cat >conftest.$ac_ext <<_ACEOF
51675 /* confdefs.h.  */
51676 _ACEOF
51677 cat confdefs.h >>conftest.$ac_ext
51678 cat >>conftest.$ac_ext <<_ACEOF
51679 /* end confdefs.h.  */
51680 $ac_includes_default
51681 int
51682 main ()
51683 {
51684 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
51685 test_array [0] = 0
51686
51687   ;
51688   return 0;
51689 }
51690 _ACEOF
51691 rm -f conftest.$ac_objext
51692 if { (ac_try="$ac_compile"
51693 case "(($ac_try" in
51694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51695   *) ac_try_echo=$ac_try;;
51696 esac
51697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51698 $as_echo "$ac_try_echo") >&5
51699   (eval "$ac_compile") 2>conftest.er1
51700   ac_status=$?
51701   grep -v '^ *+' conftest.er1 >conftest.err
51702   rm -f conftest.er1
51703   cat conftest.err >&5
51704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51705   (exit $ac_status); } && {
51706          test -z "$ac_c_werror_flag" ||
51707          test ! -s conftest.err
51708        } && test -s conftest.$ac_objext; then
51709   ac_lo=0 ac_mid=0
51710   while :; do
51711     cat >conftest.$ac_ext <<_ACEOF
51712 /* confdefs.h.  */
51713 _ACEOF
51714 cat confdefs.h >>conftest.$ac_ext
51715 cat >>conftest.$ac_ext <<_ACEOF
51716 /* end confdefs.h.  */
51717 $ac_includes_default
51718 int
51719 main ()
51720 {
51721 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
51722 test_array [0] = 0
51723
51724   ;
51725   return 0;
51726 }
51727 _ACEOF
51728 rm -f conftest.$ac_objext
51729 if { (ac_try="$ac_compile"
51730 case "(($ac_try" in
51731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51732   *) ac_try_echo=$ac_try;;
51733 esac
51734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51735 $as_echo "$ac_try_echo") >&5
51736   (eval "$ac_compile") 2>conftest.er1
51737   ac_status=$?
51738   grep -v '^ *+' conftest.er1 >conftest.err
51739   rm -f conftest.er1
51740   cat conftest.err >&5
51741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51742   (exit $ac_status); } && {
51743          test -z "$ac_c_werror_flag" ||
51744          test ! -s conftest.err
51745        } && test -s conftest.$ac_objext; then
51746   ac_hi=$ac_mid; break
51747 else
51748   $as_echo "$as_me: failed program was:" >&5
51749 sed 's/^/| /' conftest.$ac_ext >&5
51750
51751         ac_lo=`expr $ac_mid + 1`
51752                         if test $ac_lo -le $ac_mid; then
51753                           ac_lo= ac_hi=
51754                           break
51755                         fi
51756                         ac_mid=`expr 2 '*' $ac_mid + 1`
51757 fi
51758
51759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51760   done
51761 else
51762   $as_echo "$as_me: failed program was:" >&5
51763 sed 's/^/| /' conftest.$ac_ext >&5
51764
51765         cat >conftest.$ac_ext <<_ACEOF
51766 /* confdefs.h.  */
51767 _ACEOF
51768 cat confdefs.h >>conftest.$ac_ext
51769 cat >>conftest.$ac_ext <<_ACEOF
51770 /* end confdefs.h.  */
51771 $ac_includes_default
51772 int
51773 main ()
51774 {
51775 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
51776 test_array [0] = 0
51777
51778   ;
51779   return 0;
51780 }
51781 _ACEOF
51782 rm -f conftest.$ac_objext
51783 if { (ac_try="$ac_compile"
51784 case "(($ac_try" in
51785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51786   *) ac_try_echo=$ac_try;;
51787 esac
51788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51789 $as_echo "$ac_try_echo") >&5
51790   (eval "$ac_compile") 2>conftest.er1
51791   ac_status=$?
51792   grep -v '^ *+' conftest.er1 >conftest.err
51793   rm -f conftest.er1
51794   cat conftest.err >&5
51795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51796   (exit $ac_status); } && {
51797          test -z "$ac_c_werror_flag" ||
51798          test ! -s conftest.err
51799        } && test -s conftest.$ac_objext; then
51800   ac_hi=-1 ac_mid=-1
51801   while :; do
51802     cat >conftest.$ac_ext <<_ACEOF
51803 /* confdefs.h.  */
51804 _ACEOF
51805 cat confdefs.h >>conftest.$ac_ext
51806 cat >>conftest.$ac_ext <<_ACEOF
51807 /* end confdefs.h.  */
51808 $ac_includes_default
51809 int
51810 main ()
51811 {
51812 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
51813 test_array [0] = 0
51814
51815   ;
51816   return 0;
51817 }
51818 _ACEOF
51819 rm -f conftest.$ac_objext
51820 if { (ac_try="$ac_compile"
51821 case "(($ac_try" in
51822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51823   *) ac_try_echo=$ac_try;;
51824 esac
51825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51826 $as_echo "$ac_try_echo") >&5
51827   (eval "$ac_compile") 2>conftest.er1
51828   ac_status=$?
51829   grep -v '^ *+' conftest.er1 >conftest.err
51830   rm -f conftest.er1
51831   cat conftest.err >&5
51832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51833   (exit $ac_status); } && {
51834          test -z "$ac_c_werror_flag" ||
51835          test ! -s conftest.err
51836        } && test -s conftest.$ac_objext; then
51837   ac_lo=$ac_mid; break
51838 else
51839   $as_echo "$as_me: failed program was:" >&5
51840 sed 's/^/| /' conftest.$ac_ext >&5
51841
51842         ac_hi=`expr '(' $ac_mid ')' - 1`
51843                         if test $ac_mid -le $ac_hi; then
51844                           ac_lo= ac_hi=
51845                           break
51846                         fi
51847                         ac_mid=`expr 2 '*' $ac_mid`
51848 fi
51849
51850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51851   done
51852 else
51853   $as_echo "$as_me: failed program was:" >&5
51854 sed 's/^/| /' conftest.$ac_ext >&5
51855
51856         ac_lo= ac_hi=
51857 fi
51858
51859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51860 fi
51861
51862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51863 # Binary search between lo and hi bounds.
51864 while test "x$ac_lo" != "x$ac_hi"; do
51865   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
51866   cat >conftest.$ac_ext <<_ACEOF
51867 /* confdefs.h.  */
51868 _ACEOF
51869 cat confdefs.h >>conftest.$ac_ext
51870 cat >>conftest.$ac_ext <<_ACEOF
51871 /* end confdefs.h.  */
51872 $ac_includes_default
51873 int
51874 main ()
51875 {
51876 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
51877 test_array [0] = 0
51878
51879   ;
51880   return 0;
51881 }
51882 _ACEOF
51883 rm -f conftest.$ac_objext
51884 if { (ac_try="$ac_compile"
51885 case "(($ac_try" in
51886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51887   *) ac_try_echo=$ac_try;;
51888 esac
51889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51890 $as_echo "$ac_try_echo") >&5
51891   (eval "$ac_compile") 2>conftest.er1
51892   ac_status=$?
51893   grep -v '^ *+' conftest.er1 >conftest.err
51894   rm -f conftest.er1
51895   cat conftest.err >&5
51896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51897   (exit $ac_status); } && {
51898          test -z "$ac_c_werror_flag" ||
51899          test ! -s conftest.err
51900        } && test -s conftest.$ac_objext; then
51901   ac_hi=$ac_mid
51902 else
51903   $as_echo "$as_me: failed program was:" >&5
51904 sed 's/^/| /' conftest.$ac_ext >&5
51905
51906         ac_lo=`expr '(' $ac_mid ')' + 1`
51907 fi
51908
51909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51910 done
51911 case $ac_lo in
51912 ?*) ac_cv_sizeof_int=$ac_lo;;
51913 '') if test "$ac_cv_type_int" = yes; then
51914      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
51915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51916 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
51917 See \`config.log' for more details." >&5
51918 $as_echo "$as_me: error: cannot compute sizeof (int)
51919 See \`config.log' for more details." >&2;}
51920    { (exit 77); exit 77; }; }; }
51921    else
51922      ac_cv_sizeof_int=0
51923    fi ;;
51924 esac
51925 else
51926   cat >conftest.$ac_ext <<_ACEOF
51927 /* confdefs.h.  */
51928 _ACEOF
51929 cat confdefs.h >>conftest.$ac_ext
51930 cat >>conftest.$ac_ext <<_ACEOF
51931 /* end confdefs.h.  */
51932 $ac_includes_default
51933 static long int longval () { return (long int) (sizeof (int)); }
51934 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
51935 #include <stdio.h>
51936 #include <stdlib.h>
51937 int
51938 main ()
51939 {
51940
51941   FILE *f = fopen ("conftest.val", "w");
51942   if (! f)
51943     return 1;
51944   if (((long int) (sizeof (int))) < 0)
51945     {
51946       long int i = longval ();
51947       if (i != ((long int) (sizeof (int))))
51948         return 1;
51949       fprintf (f, "%ld", i);
51950     }
51951   else
51952     {
51953       unsigned long int i = ulongval ();
51954       if (i != ((long int) (sizeof (int))))
51955         return 1;
51956       fprintf (f, "%lu", i);
51957     }
51958   /* Do not output a trailing newline, as this causes \r\n confusion
51959      on some platforms.  */
51960   return ferror (f) || fclose (f) != 0;
51961
51962   ;
51963   return 0;
51964 }
51965 _ACEOF
51966 rm -f conftest$ac_exeext
51967 if { (ac_try="$ac_link"
51968 case "(($ac_try" in
51969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51970   *) ac_try_echo=$ac_try;;
51971 esac
51972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51973 $as_echo "$ac_try_echo") >&5
51974   (eval "$ac_link") 2>&5
51975   ac_status=$?
51976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51977   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51978   { (case "(($ac_try" in
51979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51980   *) ac_try_echo=$ac_try;;
51981 esac
51982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51983 $as_echo "$ac_try_echo") >&5
51984   (eval "$ac_try") 2>&5
51985   ac_status=$?
51986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51987   (exit $ac_status); }; }; then
51988   ac_cv_sizeof_int=`cat conftest.val`
51989 else
51990   $as_echo "$as_me: program exited with status $ac_status" >&5
51991 $as_echo "$as_me: failed program was:" >&5
51992 sed 's/^/| /' conftest.$ac_ext >&5
51993
51994 ( exit $ac_status )
51995 if test "$ac_cv_type_int" = yes; then
51996      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
51997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51998 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
51999 See \`config.log' for more details." >&5
52000 $as_echo "$as_me: error: cannot compute sizeof (int)
52001 See \`config.log' for more details." >&2;}
52002    { (exit 77); exit 77; }; }; }
52003    else
52004      ac_cv_sizeof_int=0
52005    fi
52006 fi
52007 rm -rf conftest.dSYM
52008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52009 fi
52010 rm -f conftest.val
52011 fi
52012 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
52013 $as_echo "$ac_cv_sizeof_int" >&6; }
52014
52015
52016
52017 cat >>confdefs.h <<_ACEOF
52018 #define SIZEOF_INT $ac_cv_sizeof_int
52019 _ACEOF
52020
52021
52022 # The cast to long int works around a bug in the HP C Compiler
52023 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52024 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52025 # This bug is HP SR number 8606223364.
52026 { $as_echo "$as_me:$LINENO: checking size of long" >&5
52027 $as_echo_n "checking size of long... " >&6; }
52028 if test "${ac_cv_sizeof_long+set}" = set; then
52029   $as_echo_n "(cached) " >&6
52030 else
52031   if test "$cross_compiling" = yes; then
52032   # Depending upon the size, compute the lo and hi bounds.
52033 cat >conftest.$ac_ext <<_ACEOF
52034 /* confdefs.h.  */
52035 _ACEOF
52036 cat confdefs.h >>conftest.$ac_ext
52037 cat >>conftest.$ac_ext <<_ACEOF
52038 /* end confdefs.h.  */
52039 $ac_includes_default
52040 int
52041 main ()
52042 {
52043 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
52044 test_array [0] = 0
52045
52046   ;
52047   return 0;
52048 }
52049 _ACEOF
52050 rm -f conftest.$ac_objext
52051 if { (ac_try="$ac_compile"
52052 case "(($ac_try" in
52053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52054   *) ac_try_echo=$ac_try;;
52055 esac
52056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52057 $as_echo "$ac_try_echo") >&5
52058   (eval "$ac_compile") 2>conftest.er1
52059   ac_status=$?
52060   grep -v '^ *+' conftest.er1 >conftest.err
52061   rm -f conftest.er1
52062   cat conftest.err >&5
52063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52064   (exit $ac_status); } && {
52065          test -z "$ac_c_werror_flag" ||
52066          test ! -s conftest.err
52067        } && test -s conftest.$ac_objext; then
52068   ac_lo=0 ac_mid=0
52069   while :; do
52070     cat >conftest.$ac_ext <<_ACEOF
52071 /* confdefs.h.  */
52072 _ACEOF
52073 cat confdefs.h >>conftest.$ac_ext
52074 cat >>conftest.$ac_ext <<_ACEOF
52075 /* end confdefs.h.  */
52076 $ac_includes_default
52077 int
52078 main ()
52079 {
52080 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
52081 test_array [0] = 0
52082
52083   ;
52084   return 0;
52085 }
52086 _ACEOF
52087 rm -f conftest.$ac_objext
52088 if { (ac_try="$ac_compile"
52089 case "(($ac_try" in
52090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52091   *) ac_try_echo=$ac_try;;
52092 esac
52093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52094 $as_echo "$ac_try_echo") >&5
52095   (eval "$ac_compile") 2>conftest.er1
52096   ac_status=$?
52097   grep -v '^ *+' conftest.er1 >conftest.err
52098   rm -f conftest.er1
52099   cat conftest.err >&5
52100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52101   (exit $ac_status); } && {
52102          test -z "$ac_c_werror_flag" ||
52103          test ! -s conftest.err
52104        } && test -s conftest.$ac_objext; then
52105   ac_hi=$ac_mid; break
52106 else
52107   $as_echo "$as_me: failed program was:" >&5
52108 sed 's/^/| /' conftest.$ac_ext >&5
52109
52110         ac_lo=`expr $ac_mid + 1`
52111                         if test $ac_lo -le $ac_mid; then
52112                           ac_lo= ac_hi=
52113                           break
52114                         fi
52115                         ac_mid=`expr 2 '*' $ac_mid + 1`
52116 fi
52117
52118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52119   done
52120 else
52121   $as_echo "$as_me: failed program was:" >&5
52122 sed 's/^/| /' conftest.$ac_ext >&5
52123
52124         cat >conftest.$ac_ext <<_ACEOF
52125 /* confdefs.h.  */
52126 _ACEOF
52127 cat confdefs.h >>conftest.$ac_ext
52128 cat >>conftest.$ac_ext <<_ACEOF
52129 /* end confdefs.h.  */
52130 $ac_includes_default
52131 int
52132 main ()
52133 {
52134 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
52135 test_array [0] = 0
52136
52137   ;
52138   return 0;
52139 }
52140 _ACEOF
52141 rm -f conftest.$ac_objext
52142 if { (ac_try="$ac_compile"
52143 case "(($ac_try" in
52144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52145   *) ac_try_echo=$ac_try;;
52146 esac
52147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52148 $as_echo "$ac_try_echo") >&5
52149   (eval "$ac_compile") 2>conftest.er1
52150   ac_status=$?
52151   grep -v '^ *+' conftest.er1 >conftest.err
52152   rm -f conftest.er1
52153   cat conftest.err >&5
52154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52155   (exit $ac_status); } && {
52156          test -z "$ac_c_werror_flag" ||
52157          test ! -s conftest.err
52158        } && test -s conftest.$ac_objext; then
52159   ac_hi=-1 ac_mid=-1
52160   while :; do
52161     cat >conftest.$ac_ext <<_ACEOF
52162 /* confdefs.h.  */
52163 _ACEOF
52164 cat confdefs.h >>conftest.$ac_ext
52165 cat >>conftest.$ac_ext <<_ACEOF
52166 /* end confdefs.h.  */
52167 $ac_includes_default
52168 int
52169 main ()
52170 {
52171 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
52172 test_array [0] = 0
52173
52174   ;
52175   return 0;
52176 }
52177 _ACEOF
52178 rm -f conftest.$ac_objext
52179 if { (ac_try="$ac_compile"
52180 case "(($ac_try" in
52181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52182   *) ac_try_echo=$ac_try;;
52183 esac
52184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52185 $as_echo "$ac_try_echo") >&5
52186   (eval "$ac_compile") 2>conftest.er1
52187   ac_status=$?
52188   grep -v '^ *+' conftest.er1 >conftest.err
52189   rm -f conftest.er1
52190   cat conftest.err >&5
52191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52192   (exit $ac_status); } && {
52193          test -z "$ac_c_werror_flag" ||
52194          test ! -s conftest.err
52195        } && test -s conftest.$ac_objext; then
52196   ac_lo=$ac_mid; break
52197 else
52198   $as_echo "$as_me: failed program was:" >&5
52199 sed 's/^/| /' conftest.$ac_ext >&5
52200
52201         ac_hi=`expr '(' $ac_mid ')' - 1`
52202                         if test $ac_mid -le $ac_hi; then
52203                           ac_lo= ac_hi=
52204                           break
52205                         fi
52206                         ac_mid=`expr 2 '*' $ac_mid`
52207 fi
52208
52209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52210   done
52211 else
52212   $as_echo "$as_me: failed program was:" >&5
52213 sed 's/^/| /' conftest.$ac_ext >&5
52214
52215         ac_lo= ac_hi=
52216 fi
52217
52218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52219 fi
52220
52221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52222 # Binary search between lo and hi bounds.
52223 while test "x$ac_lo" != "x$ac_hi"; do
52224   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52225   cat >conftest.$ac_ext <<_ACEOF
52226 /* confdefs.h.  */
52227 _ACEOF
52228 cat confdefs.h >>conftest.$ac_ext
52229 cat >>conftest.$ac_ext <<_ACEOF
52230 /* end confdefs.h.  */
52231 $ac_includes_default
52232 int
52233 main ()
52234 {
52235 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
52236 test_array [0] = 0
52237
52238   ;
52239   return 0;
52240 }
52241 _ACEOF
52242 rm -f conftest.$ac_objext
52243 if { (ac_try="$ac_compile"
52244 case "(($ac_try" in
52245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52246   *) ac_try_echo=$ac_try;;
52247 esac
52248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52249 $as_echo "$ac_try_echo") >&5
52250   (eval "$ac_compile") 2>conftest.er1
52251   ac_status=$?
52252   grep -v '^ *+' conftest.er1 >conftest.err
52253   rm -f conftest.er1
52254   cat conftest.err >&5
52255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52256   (exit $ac_status); } && {
52257          test -z "$ac_c_werror_flag" ||
52258          test ! -s conftest.err
52259        } && test -s conftest.$ac_objext; then
52260   ac_hi=$ac_mid
52261 else
52262   $as_echo "$as_me: failed program was:" >&5
52263 sed 's/^/| /' conftest.$ac_ext >&5
52264
52265         ac_lo=`expr '(' $ac_mid ')' + 1`
52266 fi
52267
52268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52269 done
52270 case $ac_lo in
52271 ?*) ac_cv_sizeof_long=$ac_lo;;
52272 '') if test "$ac_cv_type_long" = yes; then
52273      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52275 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
52276 See \`config.log' for more details." >&5
52277 $as_echo "$as_me: error: cannot compute sizeof (long)
52278 See \`config.log' for more details." >&2;}
52279    { (exit 77); exit 77; }; }; }
52280    else
52281      ac_cv_sizeof_long=0
52282    fi ;;
52283 esac
52284 else
52285   cat >conftest.$ac_ext <<_ACEOF
52286 /* confdefs.h.  */
52287 _ACEOF
52288 cat confdefs.h >>conftest.$ac_ext
52289 cat >>conftest.$ac_ext <<_ACEOF
52290 /* end confdefs.h.  */
52291 $ac_includes_default
52292 static long int longval () { return (long int) (sizeof (long)); }
52293 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
52294 #include <stdio.h>
52295 #include <stdlib.h>
52296 int
52297 main ()
52298 {
52299
52300   FILE *f = fopen ("conftest.val", "w");
52301   if (! f)
52302     return 1;
52303   if (((long int) (sizeof (long))) < 0)
52304     {
52305       long int i = longval ();
52306       if (i != ((long int) (sizeof (long))))
52307         return 1;
52308       fprintf (f, "%ld", i);
52309     }
52310   else
52311     {
52312       unsigned long int i = ulongval ();
52313       if (i != ((long int) (sizeof (long))))
52314         return 1;
52315       fprintf (f, "%lu", i);
52316     }
52317   /* Do not output a trailing newline, as this causes \r\n confusion
52318      on some platforms.  */
52319   return ferror (f) || fclose (f) != 0;
52320
52321   ;
52322   return 0;
52323 }
52324 _ACEOF
52325 rm -f conftest$ac_exeext
52326 if { (ac_try="$ac_link"
52327 case "(($ac_try" in
52328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52329   *) ac_try_echo=$ac_try;;
52330 esac
52331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52332 $as_echo "$ac_try_echo") >&5
52333   (eval "$ac_link") 2>&5
52334   ac_status=$?
52335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52336   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52337   { (case "(($ac_try" in
52338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52339   *) ac_try_echo=$ac_try;;
52340 esac
52341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52342 $as_echo "$ac_try_echo") >&5
52343   (eval "$ac_try") 2>&5
52344   ac_status=$?
52345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52346   (exit $ac_status); }; }; then
52347   ac_cv_sizeof_long=`cat conftest.val`
52348 else
52349   $as_echo "$as_me: program exited with status $ac_status" >&5
52350 $as_echo "$as_me: failed program was:" >&5
52351 sed 's/^/| /' conftest.$ac_ext >&5
52352
52353 ( exit $ac_status )
52354 if test "$ac_cv_type_long" = yes; then
52355      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52357 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
52358 See \`config.log' for more details." >&5
52359 $as_echo "$as_me: error: cannot compute sizeof (long)
52360 See \`config.log' for more details." >&2;}
52361    { (exit 77); exit 77; }; }; }
52362    else
52363      ac_cv_sizeof_long=0
52364    fi
52365 fi
52366 rm -rf conftest.dSYM
52367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52368 fi
52369 rm -f conftest.val
52370 fi
52371 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
52372 $as_echo "$ac_cv_sizeof_long" >&6; }
52373
52374
52375
52376 cat >>confdefs.h <<_ACEOF
52377 #define SIZEOF_LONG $ac_cv_sizeof_long
52378 _ACEOF
52379
52380
52381 # The cast to long int works around a bug in the HP C Compiler
52382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52384 # This bug is HP SR number 8606223364.
52385 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
52386 $as_echo_n "checking size of long long... " >&6; }
52387 if test "${ac_cv_sizeof_long_long+set}" = set; then
52388   $as_echo_n "(cached) " >&6
52389 else
52390   if test "$cross_compiling" = yes; then
52391   # Depending upon the size, compute the lo and hi bounds.
52392 cat >conftest.$ac_ext <<_ACEOF
52393 /* confdefs.h.  */
52394 _ACEOF
52395 cat confdefs.h >>conftest.$ac_ext
52396 cat >>conftest.$ac_ext <<_ACEOF
52397 /* end confdefs.h.  */
52398 $ac_includes_default
52399 int
52400 main ()
52401 {
52402 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
52403 test_array [0] = 0
52404
52405   ;
52406   return 0;
52407 }
52408 _ACEOF
52409 rm -f conftest.$ac_objext
52410 if { (ac_try="$ac_compile"
52411 case "(($ac_try" in
52412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52413   *) ac_try_echo=$ac_try;;
52414 esac
52415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52416 $as_echo "$ac_try_echo") >&5
52417   (eval "$ac_compile") 2>conftest.er1
52418   ac_status=$?
52419   grep -v '^ *+' conftest.er1 >conftest.err
52420   rm -f conftest.er1
52421   cat conftest.err >&5
52422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52423   (exit $ac_status); } && {
52424          test -z "$ac_c_werror_flag" ||
52425          test ! -s conftest.err
52426        } && test -s conftest.$ac_objext; then
52427   ac_lo=0 ac_mid=0
52428   while :; do
52429     cat >conftest.$ac_ext <<_ACEOF
52430 /* confdefs.h.  */
52431 _ACEOF
52432 cat confdefs.h >>conftest.$ac_ext
52433 cat >>conftest.$ac_ext <<_ACEOF
52434 /* end confdefs.h.  */
52435 $ac_includes_default
52436 int
52437 main ()
52438 {
52439 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
52440 test_array [0] = 0
52441
52442   ;
52443   return 0;
52444 }
52445 _ACEOF
52446 rm -f conftest.$ac_objext
52447 if { (ac_try="$ac_compile"
52448 case "(($ac_try" in
52449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52450   *) ac_try_echo=$ac_try;;
52451 esac
52452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52453 $as_echo "$ac_try_echo") >&5
52454   (eval "$ac_compile") 2>conftest.er1
52455   ac_status=$?
52456   grep -v '^ *+' conftest.er1 >conftest.err
52457   rm -f conftest.er1
52458   cat conftest.err >&5
52459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52460   (exit $ac_status); } && {
52461          test -z "$ac_c_werror_flag" ||
52462          test ! -s conftest.err
52463        } && test -s conftest.$ac_objext; then
52464   ac_hi=$ac_mid; break
52465 else
52466   $as_echo "$as_me: failed program was:" >&5
52467 sed 's/^/| /' conftest.$ac_ext >&5
52468
52469         ac_lo=`expr $ac_mid + 1`
52470                         if test $ac_lo -le $ac_mid; then
52471                           ac_lo= ac_hi=
52472                           break
52473                         fi
52474                         ac_mid=`expr 2 '*' $ac_mid + 1`
52475 fi
52476
52477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52478   done
52479 else
52480   $as_echo "$as_me: failed program was:" >&5
52481 sed 's/^/| /' conftest.$ac_ext >&5
52482
52483         cat >conftest.$ac_ext <<_ACEOF
52484 /* confdefs.h.  */
52485 _ACEOF
52486 cat confdefs.h >>conftest.$ac_ext
52487 cat >>conftest.$ac_ext <<_ACEOF
52488 /* end confdefs.h.  */
52489 $ac_includes_default
52490 int
52491 main ()
52492 {
52493 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
52494 test_array [0] = 0
52495
52496   ;
52497   return 0;
52498 }
52499 _ACEOF
52500 rm -f conftest.$ac_objext
52501 if { (ac_try="$ac_compile"
52502 case "(($ac_try" in
52503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52504   *) ac_try_echo=$ac_try;;
52505 esac
52506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52507 $as_echo "$ac_try_echo") >&5
52508   (eval "$ac_compile") 2>conftest.er1
52509   ac_status=$?
52510   grep -v '^ *+' conftest.er1 >conftest.err
52511   rm -f conftest.er1
52512   cat conftest.err >&5
52513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52514   (exit $ac_status); } && {
52515          test -z "$ac_c_werror_flag" ||
52516          test ! -s conftest.err
52517        } && test -s conftest.$ac_objext; then
52518   ac_hi=-1 ac_mid=-1
52519   while :; do
52520     cat >conftest.$ac_ext <<_ACEOF
52521 /* confdefs.h.  */
52522 _ACEOF
52523 cat confdefs.h >>conftest.$ac_ext
52524 cat >>conftest.$ac_ext <<_ACEOF
52525 /* end confdefs.h.  */
52526 $ac_includes_default
52527 int
52528 main ()
52529 {
52530 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
52531 test_array [0] = 0
52532
52533   ;
52534   return 0;
52535 }
52536 _ACEOF
52537 rm -f conftest.$ac_objext
52538 if { (ac_try="$ac_compile"
52539 case "(($ac_try" in
52540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52541   *) ac_try_echo=$ac_try;;
52542 esac
52543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52544 $as_echo "$ac_try_echo") >&5
52545   (eval "$ac_compile") 2>conftest.er1
52546   ac_status=$?
52547   grep -v '^ *+' conftest.er1 >conftest.err
52548   rm -f conftest.er1
52549   cat conftest.err >&5
52550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52551   (exit $ac_status); } && {
52552          test -z "$ac_c_werror_flag" ||
52553          test ! -s conftest.err
52554        } && test -s conftest.$ac_objext; then
52555   ac_lo=$ac_mid; break
52556 else
52557   $as_echo "$as_me: failed program was:" >&5
52558 sed 's/^/| /' conftest.$ac_ext >&5
52559
52560         ac_hi=`expr '(' $ac_mid ')' - 1`
52561                         if test $ac_mid -le $ac_hi; then
52562                           ac_lo= ac_hi=
52563                           break
52564                         fi
52565                         ac_mid=`expr 2 '*' $ac_mid`
52566 fi
52567
52568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52569   done
52570 else
52571   $as_echo "$as_me: failed program was:" >&5
52572 sed 's/^/| /' conftest.$ac_ext >&5
52573
52574         ac_lo= ac_hi=
52575 fi
52576
52577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52578 fi
52579
52580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52581 # Binary search between lo and hi bounds.
52582 while test "x$ac_lo" != "x$ac_hi"; do
52583   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52584   cat >conftest.$ac_ext <<_ACEOF
52585 /* confdefs.h.  */
52586 _ACEOF
52587 cat confdefs.h >>conftest.$ac_ext
52588 cat >>conftest.$ac_ext <<_ACEOF
52589 /* end confdefs.h.  */
52590 $ac_includes_default
52591 int
52592 main ()
52593 {
52594 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
52595 test_array [0] = 0
52596
52597   ;
52598   return 0;
52599 }
52600 _ACEOF
52601 rm -f conftest.$ac_objext
52602 if { (ac_try="$ac_compile"
52603 case "(($ac_try" in
52604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52605   *) ac_try_echo=$ac_try;;
52606 esac
52607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52608 $as_echo "$ac_try_echo") >&5
52609   (eval "$ac_compile") 2>conftest.er1
52610   ac_status=$?
52611   grep -v '^ *+' conftest.er1 >conftest.err
52612   rm -f conftest.er1
52613   cat conftest.err >&5
52614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52615   (exit $ac_status); } && {
52616          test -z "$ac_c_werror_flag" ||
52617          test ! -s conftest.err
52618        } && test -s conftest.$ac_objext; then
52619   ac_hi=$ac_mid
52620 else
52621   $as_echo "$as_me: failed program was:" >&5
52622 sed 's/^/| /' conftest.$ac_ext >&5
52623
52624         ac_lo=`expr '(' $ac_mid ')' + 1`
52625 fi
52626
52627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52628 done
52629 case $ac_lo in
52630 ?*) ac_cv_sizeof_long_long=$ac_lo;;
52631 '') if test "$ac_cv_type_long_long" = yes; then
52632      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52634 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
52635 See \`config.log' for more details." >&5
52636 $as_echo "$as_me: error: cannot compute sizeof (long long)
52637 See \`config.log' for more details." >&2;}
52638    { (exit 77); exit 77; }; }; }
52639    else
52640      ac_cv_sizeof_long_long=0
52641    fi ;;
52642 esac
52643 else
52644   cat >conftest.$ac_ext <<_ACEOF
52645 /* confdefs.h.  */
52646 _ACEOF
52647 cat confdefs.h >>conftest.$ac_ext
52648 cat >>conftest.$ac_ext <<_ACEOF
52649 /* end confdefs.h.  */
52650 $ac_includes_default
52651 static long int longval () { return (long int) (sizeof (long long)); }
52652 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
52653 #include <stdio.h>
52654 #include <stdlib.h>
52655 int
52656 main ()
52657 {
52658
52659   FILE *f = fopen ("conftest.val", "w");
52660   if (! f)
52661     return 1;
52662   if (((long int) (sizeof (long long))) < 0)
52663     {
52664       long int i = longval ();
52665       if (i != ((long int) (sizeof (long long))))
52666         return 1;
52667       fprintf (f, "%ld", i);
52668     }
52669   else
52670     {
52671       unsigned long int i = ulongval ();
52672       if (i != ((long int) (sizeof (long long))))
52673         return 1;
52674       fprintf (f, "%lu", i);
52675     }
52676   /* Do not output a trailing newline, as this causes \r\n confusion
52677      on some platforms.  */
52678   return ferror (f) || fclose (f) != 0;
52679
52680   ;
52681   return 0;
52682 }
52683 _ACEOF
52684 rm -f conftest$ac_exeext
52685 if { (ac_try="$ac_link"
52686 case "(($ac_try" in
52687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52688   *) ac_try_echo=$ac_try;;
52689 esac
52690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52691 $as_echo "$ac_try_echo") >&5
52692   (eval "$ac_link") 2>&5
52693   ac_status=$?
52694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52695   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52696   { (case "(($ac_try" in
52697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52698   *) ac_try_echo=$ac_try;;
52699 esac
52700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52701 $as_echo "$ac_try_echo") >&5
52702   (eval "$ac_try") 2>&5
52703   ac_status=$?
52704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52705   (exit $ac_status); }; }; then
52706   ac_cv_sizeof_long_long=`cat conftest.val`
52707 else
52708   $as_echo "$as_me: program exited with status $ac_status" >&5
52709 $as_echo "$as_me: failed program was:" >&5
52710 sed 's/^/| /' conftest.$ac_ext >&5
52711
52712 ( exit $ac_status )
52713 if test "$ac_cv_type_long_long" = yes; then
52714      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52716 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
52717 See \`config.log' for more details." >&5
52718 $as_echo "$as_me: error: cannot compute sizeof (long long)
52719 See \`config.log' for more details." >&2;}
52720    { (exit 77); exit 77; }; }; }
52721    else
52722      ac_cv_sizeof_long_long=0
52723    fi
52724 fi
52725 rm -rf conftest.dSYM
52726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52727 fi
52728 rm -f conftest.val
52729 fi
52730 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
52731 $as_echo "$ac_cv_sizeof_long_long" >&6; }
52732
52733
52734
52735 cat >>confdefs.h <<_ACEOF
52736 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
52737 _ACEOF
52738
52739
52740 # The cast to long int works around a bug in the HP C Compiler
52741 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52742 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52743 # This bug is HP SR number 8606223364.
52744 { $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
52745 $as_echo_n "checking size of intmax_t... " >&6; }
52746 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
52747   $as_echo_n "(cached) " >&6
52748 else
52749   if test "$cross_compiling" = yes; then
52750   # Depending upon the size, compute the lo and hi bounds.
52751 cat >conftest.$ac_ext <<_ACEOF
52752 /* confdefs.h.  */
52753 _ACEOF
52754 cat confdefs.h >>conftest.$ac_ext
52755 cat >>conftest.$ac_ext <<_ACEOF
52756 /* end confdefs.h.  */
52757 $ac_includes_default
52758 int
52759 main ()
52760 {
52761 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)];
52762 test_array [0] = 0
52763
52764   ;
52765   return 0;
52766 }
52767 _ACEOF
52768 rm -f conftest.$ac_objext
52769 if { (ac_try="$ac_compile"
52770 case "(($ac_try" in
52771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52772   *) ac_try_echo=$ac_try;;
52773 esac
52774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52775 $as_echo "$ac_try_echo") >&5
52776   (eval "$ac_compile") 2>conftest.er1
52777   ac_status=$?
52778   grep -v '^ *+' conftest.er1 >conftest.err
52779   rm -f conftest.er1
52780   cat conftest.err >&5
52781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52782   (exit $ac_status); } && {
52783          test -z "$ac_c_werror_flag" ||
52784          test ! -s conftest.err
52785        } && test -s conftest.$ac_objext; then
52786   ac_lo=0 ac_mid=0
52787   while :; do
52788     cat >conftest.$ac_ext <<_ACEOF
52789 /* confdefs.h.  */
52790 _ACEOF
52791 cat confdefs.h >>conftest.$ac_ext
52792 cat >>conftest.$ac_ext <<_ACEOF
52793 /* end confdefs.h.  */
52794 $ac_includes_default
52795 int
52796 main ()
52797 {
52798 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
52799 test_array [0] = 0
52800
52801   ;
52802   return 0;
52803 }
52804 _ACEOF
52805 rm -f conftest.$ac_objext
52806 if { (ac_try="$ac_compile"
52807 case "(($ac_try" in
52808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52809   *) ac_try_echo=$ac_try;;
52810 esac
52811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52812 $as_echo "$ac_try_echo") >&5
52813   (eval "$ac_compile") 2>conftest.er1
52814   ac_status=$?
52815   grep -v '^ *+' conftest.er1 >conftest.err
52816   rm -f conftest.er1
52817   cat conftest.err >&5
52818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52819   (exit $ac_status); } && {
52820          test -z "$ac_c_werror_flag" ||
52821          test ! -s conftest.err
52822        } && test -s conftest.$ac_objext; then
52823   ac_hi=$ac_mid; break
52824 else
52825   $as_echo "$as_me: failed program was:" >&5
52826 sed 's/^/| /' conftest.$ac_ext >&5
52827
52828         ac_lo=`expr $ac_mid + 1`
52829                         if test $ac_lo -le $ac_mid; then
52830                           ac_lo= ac_hi=
52831                           break
52832                         fi
52833                         ac_mid=`expr 2 '*' $ac_mid + 1`
52834 fi
52835
52836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52837   done
52838 else
52839   $as_echo "$as_me: failed program was:" >&5
52840 sed 's/^/| /' conftest.$ac_ext >&5
52841
52842         cat >conftest.$ac_ext <<_ACEOF
52843 /* confdefs.h.  */
52844 _ACEOF
52845 cat confdefs.h >>conftest.$ac_ext
52846 cat >>conftest.$ac_ext <<_ACEOF
52847 /* end confdefs.h.  */
52848 $ac_includes_default
52849 int
52850 main ()
52851 {
52852 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)];
52853 test_array [0] = 0
52854
52855   ;
52856   return 0;
52857 }
52858 _ACEOF
52859 rm -f conftest.$ac_objext
52860 if { (ac_try="$ac_compile"
52861 case "(($ac_try" in
52862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52863   *) ac_try_echo=$ac_try;;
52864 esac
52865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52866 $as_echo "$ac_try_echo") >&5
52867   (eval "$ac_compile") 2>conftest.er1
52868   ac_status=$?
52869   grep -v '^ *+' conftest.er1 >conftest.err
52870   rm -f conftest.er1
52871   cat conftest.err >&5
52872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52873   (exit $ac_status); } && {
52874          test -z "$ac_c_werror_flag" ||
52875          test ! -s conftest.err
52876        } && test -s conftest.$ac_objext; then
52877   ac_hi=-1 ac_mid=-1
52878   while :; do
52879     cat >conftest.$ac_ext <<_ACEOF
52880 /* confdefs.h.  */
52881 _ACEOF
52882 cat confdefs.h >>conftest.$ac_ext
52883 cat >>conftest.$ac_ext <<_ACEOF
52884 /* end confdefs.h.  */
52885 $ac_includes_default
52886 int
52887 main ()
52888 {
52889 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)];
52890 test_array [0] = 0
52891
52892   ;
52893   return 0;
52894 }
52895 _ACEOF
52896 rm -f conftest.$ac_objext
52897 if { (ac_try="$ac_compile"
52898 case "(($ac_try" in
52899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52900   *) ac_try_echo=$ac_try;;
52901 esac
52902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52903 $as_echo "$ac_try_echo") >&5
52904   (eval "$ac_compile") 2>conftest.er1
52905   ac_status=$?
52906   grep -v '^ *+' conftest.er1 >conftest.err
52907   rm -f conftest.er1
52908   cat conftest.err >&5
52909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52910   (exit $ac_status); } && {
52911          test -z "$ac_c_werror_flag" ||
52912          test ! -s conftest.err
52913        } && test -s conftest.$ac_objext; then
52914   ac_lo=$ac_mid; break
52915 else
52916   $as_echo "$as_me: failed program was:" >&5
52917 sed 's/^/| /' conftest.$ac_ext >&5
52918
52919         ac_hi=`expr '(' $ac_mid ')' - 1`
52920                         if test $ac_mid -le $ac_hi; then
52921                           ac_lo= ac_hi=
52922                           break
52923                         fi
52924                         ac_mid=`expr 2 '*' $ac_mid`
52925 fi
52926
52927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52928   done
52929 else
52930   $as_echo "$as_me: failed program was:" >&5
52931 sed 's/^/| /' conftest.$ac_ext >&5
52932
52933         ac_lo= ac_hi=
52934 fi
52935
52936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52937 fi
52938
52939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52940 # Binary search between lo and hi bounds.
52941 while test "x$ac_lo" != "x$ac_hi"; do
52942   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52943   cat >conftest.$ac_ext <<_ACEOF
52944 /* confdefs.h.  */
52945 _ACEOF
52946 cat confdefs.h >>conftest.$ac_ext
52947 cat >>conftest.$ac_ext <<_ACEOF
52948 /* end confdefs.h.  */
52949 $ac_includes_default
52950 int
52951 main ()
52952 {
52953 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
52954 test_array [0] = 0
52955
52956   ;
52957   return 0;
52958 }
52959 _ACEOF
52960 rm -f conftest.$ac_objext
52961 if { (ac_try="$ac_compile"
52962 case "(($ac_try" in
52963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52964   *) ac_try_echo=$ac_try;;
52965 esac
52966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52967 $as_echo "$ac_try_echo") >&5
52968   (eval "$ac_compile") 2>conftest.er1
52969   ac_status=$?
52970   grep -v '^ *+' conftest.er1 >conftest.err
52971   rm -f conftest.er1
52972   cat conftest.err >&5
52973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52974   (exit $ac_status); } && {
52975          test -z "$ac_c_werror_flag" ||
52976          test ! -s conftest.err
52977        } && test -s conftest.$ac_objext; then
52978   ac_hi=$ac_mid
52979 else
52980   $as_echo "$as_me: failed program was:" >&5
52981 sed 's/^/| /' conftest.$ac_ext >&5
52982
52983         ac_lo=`expr '(' $ac_mid ')' + 1`
52984 fi
52985
52986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52987 done
52988 case $ac_lo in
52989 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
52990 '') if test "$ac_cv_type_intmax_t" = yes; then
52991      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52993 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
52994 See \`config.log' for more details." >&5
52995 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
52996 See \`config.log' for more details." >&2;}
52997    { (exit 77); exit 77; }; }; }
52998    else
52999      ac_cv_sizeof_intmax_t=0
53000    fi ;;
53001 esac
53002 else
53003   cat >conftest.$ac_ext <<_ACEOF
53004 /* confdefs.h.  */
53005 _ACEOF
53006 cat confdefs.h >>conftest.$ac_ext
53007 cat >>conftest.$ac_ext <<_ACEOF
53008 /* end confdefs.h.  */
53009 $ac_includes_default
53010 static long int longval () { return (long int) (sizeof (intmax_t)); }
53011 static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
53012 #include <stdio.h>
53013 #include <stdlib.h>
53014 int
53015 main ()
53016 {
53017
53018   FILE *f = fopen ("conftest.val", "w");
53019   if (! f)
53020     return 1;
53021   if (((long int) (sizeof (intmax_t))) < 0)
53022     {
53023       long int i = longval ();
53024       if (i != ((long int) (sizeof (intmax_t))))
53025         return 1;
53026       fprintf (f, "%ld", i);
53027     }
53028   else
53029     {
53030       unsigned long int i = ulongval ();
53031       if (i != ((long int) (sizeof (intmax_t))))
53032         return 1;
53033       fprintf (f, "%lu", i);
53034     }
53035   /* Do not output a trailing newline, as this causes \r\n confusion
53036      on some platforms.  */
53037   return ferror (f) || fclose (f) != 0;
53038
53039   ;
53040   return 0;
53041 }
53042 _ACEOF
53043 rm -f conftest$ac_exeext
53044 if { (ac_try="$ac_link"
53045 case "(($ac_try" in
53046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53047   *) ac_try_echo=$ac_try;;
53048 esac
53049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53050 $as_echo "$ac_try_echo") >&5
53051   (eval "$ac_link") 2>&5
53052   ac_status=$?
53053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53054   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53055   { (case "(($ac_try" in
53056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53057   *) ac_try_echo=$ac_try;;
53058 esac
53059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53060 $as_echo "$ac_try_echo") >&5
53061   (eval "$ac_try") 2>&5
53062   ac_status=$?
53063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53064   (exit $ac_status); }; }; then
53065   ac_cv_sizeof_intmax_t=`cat conftest.val`
53066 else
53067   $as_echo "$as_me: program exited with status $ac_status" >&5
53068 $as_echo "$as_me: failed program was:" >&5
53069 sed 's/^/| /' conftest.$ac_ext >&5
53070
53071 ( exit $ac_status )
53072 if test "$ac_cv_type_intmax_t" = yes; then
53073      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53075 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
53076 See \`config.log' for more details." >&5
53077 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
53078 See \`config.log' for more details." >&2;}
53079    { (exit 77); exit 77; }; }; }
53080    else
53081      ac_cv_sizeof_intmax_t=0
53082    fi
53083 fi
53084 rm -rf conftest.dSYM
53085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53086 fi
53087 rm -f conftest.val
53088 fi
53089 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
53090 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
53091
53092
53093
53094 cat >>confdefs.h <<_ACEOF
53095 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
53096 _ACEOF
53097
53098
53099 # The cast to long int works around a bug in the HP C Compiler
53100 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53101 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53102 # This bug is HP SR number 8606223364.
53103 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
53104 $as_echo_n "checking size of off_t... " >&6; }
53105 if test "${ac_cv_sizeof_off_t+set}" = set; then
53106   $as_echo_n "(cached) " >&6
53107 else
53108   if test "$cross_compiling" = yes; then
53109   # Depending upon the size, compute the lo and hi bounds.
53110 cat >conftest.$ac_ext <<_ACEOF
53111 /* confdefs.h.  */
53112 _ACEOF
53113 cat confdefs.h >>conftest.$ac_ext
53114 cat >>conftest.$ac_ext <<_ACEOF
53115 /* end confdefs.h.  */
53116 $ac_includes_default
53117 int
53118 main ()
53119 {
53120 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
53121 test_array [0] = 0
53122
53123   ;
53124   return 0;
53125 }
53126 _ACEOF
53127 rm -f conftest.$ac_objext
53128 if { (ac_try="$ac_compile"
53129 case "(($ac_try" in
53130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53131   *) ac_try_echo=$ac_try;;
53132 esac
53133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53134 $as_echo "$ac_try_echo") >&5
53135   (eval "$ac_compile") 2>conftest.er1
53136   ac_status=$?
53137   grep -v '^ *+' conftest.er1 >conftest.err
53138   rm -f conftest.er1
53139   cat conftest.err >&5
53140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53141   (exit $ac_status); } && {
53142          test -z "$ac_c_werror_flag" ||
53143          test ! -s conftest.err
53144        } && test -s conftest.$ac_objext; then
53145   ac_lo=0 ac_mid=0
53146   while :; do
53147     cat >conftest.$ac_ext <<_ACEOF
53148 /* confdefs.h.  */
53149 _ACEOF
53150 cat confdefs.h >>conftest.$ac_ext
53151 cat >>conftest.$ac_ext <<_ACEOF
53152 /* end confdefs.h.  */
53153 $ac_includes_default
53154 int
53155 main ()
53156 {
53157 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
53158 test_array [0] = 0
53159
53160   ;
53161   return 0;
53162 }
53163 _ACEOF
53164 rm -f conftest.$ac_objext
53165 if { (ac_try="$ac_compile"
53166 case "(($ac_try" in
53167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53168   *) ac_try_echo=$ac_try;;
53169 esac
53170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53171 $as_echo "$ac_try_echo") >&5
53172   (eval "$ac_compile") 2>conftest.er1
53173   ac_status=$?
53174   grep -v '^ *+' conftest.er1 >conftest.err
53175   rm -f conftest.er1
53176   cat conftest.err >&5
53177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53178   (exit $ac_status); } && {
53179          test -z "$ac_c_werror_flag" ||
53180          test ! -s conftest.err
53181        } && test -s conftest.$ac_objext; then
53182   ac_hi=$ac_mid; break
53183 else
53184   $as_echo "$as_me: failed program was:" >&5
53185 sed 's/^/| /' conftest.$ac_ext >&5
53186
53187         ac_lo=`expr $ac_mid + 1`
53188                         if test $ac_lo -le $ac_mid; then
53189                           ac_lo= ac_hi=
53190                           break
53191                         fi
53192                         ac_mid=`expr 2 '*' $ac_mid + 1`
53193 fi
53194
53195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53196   done
53197 else
53198   $as_echo "$as_me: failed program was:" >&5
53199 sed 's/^/| /' conftest.$ac_ext >&5
53200
53201         cat >conftest.$ac_ext <<_ACEOF
53202 /* confdefs.h.  */
53203 _ACEOF
53204 cat confdefs.h >>conftest.$ac_ext
53205 cat >>conftest.$ac_ext <<_ACEOF
53206 /* end confdefs.h.  */
53207 $ac_includes_default
53208 int
53209 main ()
53210 {
53211 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
53212 test_array [0] = 0
53213
53214   ;
53215   return 0;
53216 }
53217 _ACEOF
53218 rm -f conftest.$ac_objext
53219 if { (ac_try="$ac_compile"
53220 case "(($ac_try" in
53221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53222   *) ac_try_echo=$ac_try;;
53223 esac
53224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53225 $as_echo "$ac_try_echo") >&5
53226   (eval "$ac_compile") 2>conftest.er1
53227   ac_status=$?
53228   grep -v '^ *+' conftest.er1 >conftest.err
53229   rm -f conftest.er1
53230   cat conftest.err >&5
53231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53232   (exit $ac_status); } && {
53233          test -z "$ac_c_werror_flag" ||
53234          test ! -s conftest.err
53235        } && test -s conftest.$ac_objext; then
53236   ac_hi=-1 ac_mid=-1
53237   while :; do
53238     cat >conftest.$ac_ext <<_ACEOF
53239 /* confdefs.h.  */
53240 _ACEOF
53241 cat confdefs.h >>conftest.$ac_ext
53242 cat >>conftest.$ac_ext <<_ACEOF
53243 /* end confdefs.h.  */
53244 $ac_includes_default
53245 int
53246 main ()
53247 {
53248 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
53249 test_array [0] = 0
53250
53251   ;
53252   return 0;
53253 }
53254 _ACEOF
53255 rm -f conftest.$ac_objext
53256 if { (ac_try="$ac_compile"
53257 case "(($ac_try" in
53258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53259   *) ac_try_echo=$ac_try;;
53260 esac
53261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53262 $as_echo "$ac_try_echo") >&5
53263   (eval "$ac_compile") 2>conftest.er1
53264   ac_status=$?
53265   grep -v '^ *+' conftest.er1 >conftest.err
53266   rm -f conftest.er1
53267   cat conftest.err >&5
53268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53269   (exit $ac_status); } && {
53270          test -z "$ac_c_werror_flag" ||
53271          test ! -s conftest.err
53272        } && test -s conftest.$ac_objext; then
53273   ac_lo=$ac_mid; break
53274 else
53275   $as_echo "$as_me: failed program was:" >&5
53276 sed 's/^/| /' conftest.$ac_ext >&5
53277
53278         ac_hi=`expr '(' $ac_mid ')' - 1`
53279                         if test $ac_mid -le $ac_hi; then
53280                           ac_lo= ac_hi=
53281                           break
53282                         fi
53283                         ac_mid=`expr 2 '*' $ac_mid`
53284 fi
53285
53286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53287   done
53288 else
53289   $as_echo "$as_me: failed program was:" >&5
53290 sed 's/^/| /' conftest.$ac_ext >&5
53291
53292         ac_lo= ac_hi=
53293 fi
53294
53295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53296 fi
53297
53298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53299 # Binary search between lo and hi bounds.
53300 while test "x$ac_lo" != "x$ac_hi"; do
53301   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53302   cat >conftest.$ac_ext <<_ACEOF
53303 /* confdefs.h.  */
53304 _ACEOF
53305 cat confdefs.h >>conftest.$ac_ext
53306 cat >>conftest.$ac_ext <<_ACEOF
53307 /* end confdefs.h.  */
53308 $ac_includes_default
53309 int
53310 main ()
53311 {
53312 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
53313 test_array [0] = 0
53314
53315   ;
53316   return 0;
53317 }
53318 _ACEOF
53319 rm -f conftest.$ac_objext
53320 if { (ac_try="$ac_compile"
53321 case "(($ac_try" in
53322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53323   *) ac_try_echo=$ac_try;;
53324 esac
53325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53326 $as_echo "$ac_try_echo") >&5
53327   (eval "$ac_compile") 2>conftest.er1
53328   ac_status=$?
53329   grep -v '^ *+' conftest.er1 >conftest.err
53330   rm -f conftest.er1
53331   cat conftest.err >&5
53332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53333   (exit $ac_status); } && {
53334          test -z "$ac_c_werror_flag" ||
53335          test ! -s conftest.err
53336        } && test -s conftest.$ac_objext; then
53337   ac_hi=$ac_mid
53338 else
53339   $as_echo "$as_me: failed program was:" >&5
53340 sed 's/^/| /' conftest.$ac_ext >&5
53341
53342         ac_lo=`expr '(' $ac_mid ')' + 1`
53343 fi
53344
53345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53346 done
53347 case $ac_lo in
53348 ?*) ac_cv_sizeof_off_t=$ac_lo;;
53349 '') if test "$ac_cv_type_off_t" = yes; then
53350      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53352 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
53353 See \`config.log' for more details." >&5
53354 $as_echo "$as_me: error: cannot compute sizeof (off_t)
53355 See \`config.log' for more details." >&2;}
53356    { (exit 77); exit 77; }; }; }
53357    else
53358      ac_cv_sizeof_off_t=0
53359    fi ;;
53360 esac
53361 else
53362   cat >conftest.$ac_ext <<_ACEOF
53363 /* confdefs.h.  */
53364 _ACEOF
53365 cat confdefs.h >>conftest.$ac_ext
53366 cat >>conftest.$ac_ext <<_ACEOF
53367 /* end confdefs.h.  */
53368 $ac_includes_default
53369 static long int longval () { return (long int) (sizeof (off_t)); }
53370 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
53371 #include <stdio.h>
53372 #include <stdlib.h>
53373 int
53374 main ()
53375 {
53376
53377   FILE *f = fopen ("conftest.val", "w");
53378   if (! f)
53379     return 1;
53380   if (((long int) (sizeof (off_t))) < 0)
53381     {
53382       long int i = longval ();
53383       if (i != ((long int) (sizeof (off_t))))
53384         return 1;
53385       fprintf (f, "%ld", i);
53386     }
53387   else
53388     {
53389       unsigned long int i = ulongval ();
53390       if (i != ((long int) (sizeof (off_t))))
53391         return 1;
53392       fprintf (f, "%lu", i);
53393     }
53394   /* Do not output a trailing newline, as this causes \r\n confusion
53395      on some platforms.  */
53396   return ferror (f) || fclose (f) != 0;
53397
53398   ;
53399   return 0;
53400 }
53401 _ACEOF
53402 rm -f conftest$ac_exeext
53403 if { (ac_try="$ac_link"
53404 case "(($ac_try" in
53405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53406   *) ac_try_echo=$ac_try;;
53407 esac
53408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53409 $as_echo "$ac_try_echo") >&5
53410   (eval "$ac_link") 2>&5
53411   ac_status=$?
53412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53414   { (case "(($ac_try" in
53415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53416   *) ac_try_echo=$ac_try;;
53417 esac
53418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53419 $as_echo "$ac_try_echo") >&5
53420   (eval "$ac_try") 2>&5
53421   ac_status=$?
53422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53423   (exit $ac_status); }; }; then
53424   ac_cv_sizeof_off_t=`cat conftest.val`
53425 else
53426   $as_echo "$as_me: program exited with status $ac_status" >&5
53427 $as_echo "$as_me: failed program was:" >&5
53428 sed 's/^/| /' conftest.$ac_ext >&5
53429
53430 ( exit $ac_status )
53431 if test "$ac_cv_type_off_t" = yes; then
53432      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53434 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
53435 See \`config.log' for more details." >&5
53436 $as_echo "$as_me: error: cannot compute sizeof (off_t)
53437 See \`config.log' for more details." >&2;}
53438    { (exit 77); exit 77; }; }; }
53439    else
53440      ac_cv_sizeof_off_t=0
53441    fi
53442 fi
53443 rm -rf conftest.dSYM
53444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53445 fi
53446 rm -f conftest.val
53447 fi
53448 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
53449 $as_echo "$ac_cv_sizeof_off_t" >&6; }
53450
53451
53452
53453 cat >>confdefs.h <<_ACEOF
53454 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
53455 _ACEOF
53456
53457
53458 # The cast to long int works around a bug in the HP C Compiler
53459 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53460 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53461 # This bug is HP SR number 8606223364.
53462 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
53463 $as_echo_n "checking size of size_t... " >&6; }
53464 if test "${ac_cv_sizeof_size_t+set}" = set; then
53465   $as_echo_n "(cached) " >&6
53466 else
53467   if test "$cross_compiling" = yes; then
53468   # Depending upon the size, compute the lo and hi bounds.
53469 cat >conftest.$ac_ext <<_ACEOF
53470 /* confdefs.h.  */
53471 _ACEOF
53472 cat confdefs.h >>conftest.$ac_ext
53473 cat >>conftest.$ac_ext <<_ACEOF
53474 /* end confdefs.h.  */
53475 $ac_includes_default
53476 int
53477 main ()
53478 {
53479 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
53480 test_array [0] = 0
53481
53482   ;
53483   return 0;
53484 }
53485 _ACEOF
53486 rm -f conftest.$ac_objext
53487 if { (ac_try="$ac_compile"
53488 case "(($ac_try" in
53489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53490   *) ac_try_echo=$ac_try;;
53491 esac
53492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53493 $as_echo "$ac_try_echo") >&5
53494   (eval "$ac_compile") 2>conftest.er1
53495   ac_status=$?
53496   grep -v '^ *+' conftest.er1 >conftest.err
53497   rm -f conftest.er1
53498   cat conftest.err >&5
53499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53500   (exit $ac_status); } && {
53501          test -z "$ac_c_werror_flag" ||
53502          test ! -s conftest.err
53503        } && test -s conftest.$ac_objext; then
53504   ac_lo=0 ac_mid=0
53505   while :; do
53506     cat >conftest.$ac_ext <<_ACEOF
53507 /* confdefs.h.  */
53508 _ACEOF
53509 cat confdefs.h >>conftest.$ac_ext
53510 cat >>conftest.$ac_ext <<_ACEOF
53511 /* end confdefs.h.  */
53512 $ac_includes_default
53513 int
53514 main ()
53515 {
53516 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
53517 test_array [0] = 0
53518
53519   ;
53520   return 0;
53521 }
53522 _ACEOF
53523 rm -f conftest.$ac_objext
53524 if { (ac_try="$ac_compile"
53525 case "(($ac_try" in
53526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53527   *) ac_try_echo=$ac_try;;
53528 esac
53529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53530 $as_echo "$ac_try_echo") >&5
53531   (eval "$ac_compile") 2>conftest.er1
53532   ac_status=$?
53533   grep -v '^ *+' conftest.er1 >conftest.err
53534   rm -f conftest.er1
53535   cat conftest.err >&5
53536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53537   (exit $ac_status); } && {
53538          test -z "$ac_c_werror_flag" ||
53539          test ! -s conftest.err
53540        } && test -s conftest.$ac_objext; then
53541   ac_hi=$ac_mid; break
53542 else
53543   $as_echo "$as_me: failed program was:" >&5
53544 sed 's/^/| /' conftest.$ac_ext >&5
53545
53546         ac_lo=`expr $ac_mid + 1`
53547                         if test $ac_lo -le $ac_mid; then
53548                           ac_lo= ac_hi=
53549                           break
53550                         fi
53551                         ac_mid=`expr 2 '*' $ac_mid + 1`
53552 fi
53553
53554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53555   done
53556 else
53557   $as_echo "$as_me: failed program was:" >&5
53558 sed 's/^/| /' conftest.$ac_ext >&5
53559
53560         cat >conftest.$ac_ext <<_ACEOF
53561 /* confdefs.h.  */
53562 _ACEOF
53563 cat confdefs.h >>conftest.$ac_ext
53564 cat >>conftest.$ac_ext <<_ACEOF
53565 /* end confdefs.h.  */
53566 $ac_includes_default
53567 int
53568 main ()
53569 {
53570 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
53571 test_array [0] = 0
53572
53573   ;
53574   return 0;
53575 }
53576 _ACEOF
53577 rm -f conftest.$ac_objext
53578 if { (ac_try="$ac_compile"
53579 case "(($ac_try" in
53580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53581   *) ac_try_echo=$ac_try;;
53582 esac
53583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53584 $as_echo "$ac_try_echo") >&5
53585   (eval "$ac_compile") 2>conftest.er1
53586   ac_status=$?
53587   grep -v '^ *+' conftest.er1 >conftest.err
53588   rm -f conftest.er1
53589   cat conftest.err >&5
53590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53591   (exit $ac_status); } && {
53592          test -z "$ac_c_werror_flag" ||
53593          test ! -s conftest.err
53594        } && test -s conftest.$ac_objext; then
53595   ac_hi=-1 ac_mid=-1
53596   while :; do
53597     cat >conftest.$ac_ext <<_ACEOF
53598 /* confdefs.h.  */
53599 _ACEOF
53600 cat confdefs.h >>conftest.$ac_ext
53601 cat >>conftest.$ac_ext <<_ACEOF
53602 /* end confdefs.h.  */
53603 $ac_includes_default
53604 int
53605 main ()
53606 {
53607 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
53608 test_array [0] = 0
53609
53610   ;
53611   return 0;
53612 }
53613 _ACEOF
53614 rm -f conftest.$ac_objext
53615 if { (ac_try="$ac_compile"
53616 case "(($ac_try" in
53617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53618   *) ac_try_echo=$ac_try;;
53619 esac
53620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53621 $as_echo "$ac_try_echo") >&5
53622   (eval "$ac_compile") 2>conftest.er1
53623   ac_status=$?
53624   grep -v '^ *+' conftest.er1 >conftest.err
53625   rm -f conftest.er1
53626   cat conftest.err >&5
53627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53628   (exit $ac_status); } && {
53629          test -z "$ac_c_werror_flag" ||
53630          test ! -s conftest.err
53631        } && test -s conftest.$ac_objext; then
53632   ac_lo=$ac_mid; break
53633 else
53634   $as_echo "$as_me: failed program was:" >&5
53635 sed 's/^/| /' conftest.$ac_ext >&5
53636
53637         ac_hi=`expr '(' $ac_mid ')' - 1`
53638                         if test $ac_mid -le $ac_hi; then
53639                           ac_lo= ac_hi=
53640                           break
53641                         fi
53642                         ac_mid=`expr 2 '*' $ac_mid`
53643 fi
53644
53645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53646   done
53647 else
53648   $as_echo "$as_me: failed program was:" >&5
53649 sed 's/^/| /' conftest.$ac_ext >&5
53650
53651         ac_lo= ac_hi=
53652 fi
53653
53654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53655 fi
53656
53657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53658 # Binary search between lo and hi bounds.
53659 while test "x$ac_lo" != "x$ac_hi"; do
53660   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53661   cat >conftest.$ac_ext <<_ACEOF
53662 /* confdefs.h.  */
53663 _ACEOF
53664 cat confdefs.h >>conftest.$ac_ext
53665 cat >>conftest.$ac_ext <<_ACEOF
53666 /* end confdefs.h.  */
53667 $ac_includes_default
53668 int
53669 main ()
53670 {
53671 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
53672 test_array [0] = 0
53673
53674   ;
53675   return 0;
53676 }
53677 _ACEOF
53678 rm -f conftest.$ac_objext
53679 if { (ac_try="$ac_compile"
53680 case "(($ac_try" in
53681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53682   *) ac_try_echo=$ac_try;;
53683 esac
53684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53685 $as_echo "$ac_try_echo") >&5
53686   (eval "$ac_compile") 2>conftest.er1
53687   ac_status=$?
53688   grep -v '^ *+' conftest.er1 >conftest.err
53689   rm -f conftest.er1
53690   cat conftest.err >&5
53691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53692   (exit $ac_status); } && {
53693          test -z "$ac_c_werror_flag" ||
53694          test ! -s conftest.err
53695        } && test -s conftest.$ac_objext; then
53696   ac_hi=$ac_mid
53697 else
53698   $as_echo "$as_me: failed program was:" >&5
53699 sed 's/^/| /' conftest.$ac_ext >&5
53700
53701         ac_lo=`expr '(' $ac_mid ')' + 1`
53702 fi
53703
53704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53705 done
53706 case $ac_lo in
53707 ?*) ac_cv_sizeof_size_t=$ac_lo;;
53708 '') if test "$ac_cv_type_size_t" = yes; then
53709      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53711 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
53712 See \`config.log' for more details." >&5
53713 $as_echo "$as_me: error: cannot compute sizeof (size_t)
53714 See \`config.log' for more details." >&2;}
53715    { (exit 77); exit 77; }; }; }
53716    else
53717      ac_cv_sizeof_size_t=0
53718    fi ;;
53719 esac
53720 else
53721   cat >conftest.$ac_ext <<_ACEOF
53722 /* confdefs.h.  */
53723 _ACEOF
53724 cat confdefs.h >>conftest.$ac_ext
53725 cat >>conftest.$ac_ext <<_ACEOF
53726 /* end confdefs.h.  */
53727 $ac_includes_default
53728 static long int longval () { return (long int) (sizeof (size_t)); }
53729 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
53730 #include <stdio.h>
53731 #include <stdlib.h>
53732 int
53733 main ()
53734 {
53735
53736   FILE *f = fopen ("conftest.val", "w");
53737   if (! f)
53738     return 1;
53739   if (((long int) (sizeof (size_t))) < 0)
53740     {
53741       long int i = longval ();
53742       if (i != ((long int) (sizeof (size_t))))
53743         return 1;
53744       fprintf (f, "%ld", i);
53745     }
53746   else
53747     {
53748       unsigned long int i = ulongval ();
53749       if (i != ((long int) (sizeof (size_t))))
53750         return 1;
53751       fprintf (f, "%lu", i);
53752     }
53753   /* Do not output a trailing newline, as this causes \r\n confusion
53754      on some platforms.  */
53755   return ferror (f) || fclose (f) != 0;
53756
53757   ;
53758   return 0;
53759 }
53760 _ACEOF
53761 rm -f conftest$ac_exeext
53762 if { (ac_try="$ac_link"
53763 case "(($ac_try" in
53764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53765   *) ac_try_echo=$ac_try;;
53766 esac
53767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53768 $as_echo "$ac_try_echo") >&5
53769   (eval "$ac_link") 2>&5
53770   ac_status=$?
53771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53772   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53773   { (case "(($ac_try" in
53774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53775   *) ac_try_echo=$ac_try;;
53776 esac
53777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53778 $as_echo "$ac_try_echo") >&5
53779   (eval "$ac_try") 2>&5
53780   ac_status=$?
53781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53782   (exit $ac_status); }; }; then
53783   ac_cv_sizeof_size_t=`cat conftest.val`
53784 else
53785   $as_echo "$as_me: program exited with status $ac_status" >&5
53786 $as_echo "$as_me: failed program was:" >&5
53787 sed 's/^/| /' conftest.$ac_ext >&5
53788
53789 ( exit $ac_status )
53790 if test "$ac_cv_type_size_t" = yes; then
53791      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53793 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
53794 See \`config.log' for more details." >&5
53795 $as_echo "$as_me: error: cannot compute sizeof (size_t)
53796 See \`config.log' for more details." >&2;}
53797    { (exit 77); exit 77; }; }; }
53798    else
53799      ac_cv_sizeof_size_t=0
53800    fi
53801 fi
53802 rm -rf conftest.dSYM
53803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53804 fi
53805 rm -f conftest.val
53806 fi
53807 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
53808 $as_echo "$ac_cv_sizeof_size_t" >&6; }
53809
53810
53811
53812 cat >>confdefs.h <<_ACEOF
53813 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
53814 _ACEOF
53815
53816
53817 # The cast to long int works around a bug in the HP C Compiler
53818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53820 # This bug is HP SR number 8606223364.
53821 { $as_echo "$as_me:$LINENO: checking size of ssize_t" >&5
53822 $as_echo_n "checking size of ssize_t... " >&6; }
53823 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
53824   $as_echo_n "(cached) " >&6
53825 else
53826   if test "$cross_compiling" = yes; then
53827   # Depending upon the size, compute the lo and hi bounds.
53828 cat >conftest.$ac_ext <<_ACEOF
53829 /* confdefs.h.  */
53830 _ACEOF
53831 cat confdefs.h >>conftest.$ac_ext
53832 cat >>conftest.$ac_ext <<_ACEOF
53833 /* end confdefs.h.  */
53834 $ac_includes_default
53835 int
53836 main ()
53837 {
53838 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= 0)];
53839 test_array [0] = 0
53840
53841   ;
53842   return 0;
53843 }
53844 _ACEOF
53845 rm -f conftest.$ac_objext
53846 if { (ac_try="$ac_compile"
53847 case "(($ac_try" in
53848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53849   *) ac_try_echo=$ac_try;;
53850 esac
53851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53852 $as_echo "$ac_try_echo") >&5
53853   (eval "$ac_compile") 2>conftest.er1
53854   ac_status=$?
53855   grep -v '^ *+' conftest.er1 >conftest.err
53856   rm -f conftest.er1
53857   cat conftest.err >&5
53858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53859   (exit $ac_status); } && {
53860          test -z "$ac_c_werror_flag" ||
53861          test ! -s conftest.err
53862        } && test -s conftest.$ac_objext; then
53863   ac_lo=0 ac_mid=0
53864   while :; do
53865     cat >conftest.$ac_ext <<_ACEOF
53866 /* confdefs.h.  */
53867 _ACEOF
53868 cat confdefs.h >>conftest.$ac_ext
53869 cat >>conftest.$ac_ext <<_ACEOF
53870 /* end confdefs.h.  */
53871 $ac_includes_default
53872 int
53873 main ()
53874 {
53875 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
53876 test_array [0] = 0
53877
53878   ;
53879   return 0;
53880 }
53881 _ACEOF
53882 rm -f conftest.$ac_objext
53883 if { (ac_try="$ac_compile"
53884 case "(($ac_try" in
53885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53886   *) ac_try_echo=$ac_try;;
53887 esac
53888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53889 $as_echo "$ac_try_echo") >&5
53890   (eval "$ac_compile") 2>conftest.er1
53891   ac_status=$?
53892   grep -v '^ *+' conftest.er1 >conftest.err
53893   rm -f conftest.er1
53894   cat conftest.err >&5
53895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53896   (exit $ac_status); } && {
53897          test -z "$ac_c_werror_flag" ||
53898          test ! -s conftest.err
53899        } && test -s conftest.$ac_objext; then
53900   ac_hi=$ac_mid; break
53901 else
53902   $as_echo "$as_me: failed program was:" >&5
53903 sed 's/^/| /' conftest.$ac_ext >&5
53904
53905         ac_lo=`expr $ac_mid + 1`
53906                         if test $ac_lo -le $ac_mid; then
53907                           ac_lo= ac_hi=
53908                           break
53909                         fi
53910                         ac_mid=`expr 2 '*' $ac_mid + 1`
53911 fi
53912
53913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53914   done
53915 else
53916   $as_echo "$as_me: failed program was:" >&5
53917 sed 's/^/| /' conftest.$ac_ext >&5
53918
53919         cat >conftest.$ac_ext <<_ACEOF
53920 /* confdefs.h.  */
53921 _ACEOF
53922 cat confdefs.h >>conftest.$ac_ext
53923 cat >>conftest.$ac_ext <<_ACEOF
53924 /* end confdefs.h.  */
53925 $ac_includes_default
53926 int
53927 main ()
53928 {
53929 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) < 0)];
53930 test_array [0] = 0
53931
53932   ;
53933   return 0;
53934 }
53935 _ACEOF
53936 rm -f conftest.$ac_objext
53937 if { (ac_try="$ac_compile"
53938 case "(($ac_try" in
53939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53940   *) ac_try_echo=$ac_try;;
53941 esac
53942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53943 $as_echo "$ac_try_echo") >&5
53944   (eval "$ac_compile") 2>conftest.er1
53945   ac_status=$?
53946   grep -v '^ *+' conftest.er1 >conftest.err
53947   rm -f conftest.er1
53948   cat conftest.err >&5
53949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53950   (exit $ac_status); } && {
53951          test -z "$ac_c_werror_flag" ||
53952          test ! -s conftest.err
53953        } && test -s conftest.$ac_objext; then
53954   ac_hi=-1 ac_mid=-1
53955   while :; do
53956     cat >conftest.$ac_ext <<_ACEOF
53957 /* confdefs.h.  */
53958 _ACEOF
53959 cat confdefs.h >>conftest.$ac_ext
53960 cat >>conftest.$ac_ext <<_ACEOF
53961 /* end confdefs.h.  */
53962 $ac_includes_default
53963 int
53964 main ()
53965 {
53966 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= $ac_mid)];
53967 test_array [0] = 0
53968
53969   ;
53970   return 0;
53971 }
53972 _ACEOF
53973 rm -f conftest.$ac_objext
53974 if { (ac_try="$ac_compile"
53975 case "(($ac_try" in
53976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53977   *) ac_try_echo=$ac_try;;
53978 esac
53979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53980 $as_echo "$ac_try_echo") >&5
53981   (eval "$ac_compile") 2>conftest.er1
53982   ac_status=$?
53983   grep -v '^ *+' conftest.er1 >conftest.err
53984   rm -f conftest.er1
53985   cat conftest.err >&5
53986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53987   (exit $ac_status); } && {
53988          test -z "$ac_c_werror_flag" ||
53989          test ! -s conftest.err
53990        } && test -s conftest.$ac_objext; then
53991   ac_lo=$ac_mid; break
53992 else
53993   $as_echo "$as_me: failed program was:" >&5
53994 sed 's/^/| /' conftest.$ac_ext >&5
53995
53996         ac_hi=`expr '(' $ac_mid ')' - 1`
53997                         if test $ac_mid -le $ac_hi; then
53998                           ac_lo= ac_hi=
53999                           break
54000                         fi
54001                         ac_mid=`expr 2 '*' $ac_mid`
54002 fi
54003
54004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54005   done
54006 else
54007   $as_echo "$as_me: failed program was:" >&5
54008 sed 's/^/| /' conftest.$ac_ext >&5
54009
54010         ac_lo= ac_hi=
54011 fi
54012
54013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54014 fi
54015
54016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54017 # Binary search between lo and hi bounds.
54018 while test "x$ac_lo" != "x$ac_hi"; do
54019   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
54020   cat >conftest.$ac_ext <<_ACEOF
54021 /* confdefs.h.  */
54022 _ACEOF
54023 cat confdefs.h >>conftest.$ac_ext
54024 cat >>conftest.$ac_ext <<_ACEOF
54025 /* end confdefs.h.  */
54026 $ac_includes_default
54027 int
54028 main ()
54029 {
54030 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
54031 test_array [0] = 0
54032
54033   ;
54034   return 0;
54035 }
54036 _ACEOF
54037 rm -f conftest.$ac_objext
54038 if { (ac_try="$ac_compile"
54039 case "(($ac_try" in
54040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54041   *) ac_try_echo=$ac_try;;
54042 esac
54043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54044 $as_echo "$ac_try_echo") >&5
54045   (eval "$ac_compile") 2>conftest.er1
54046   ac_status=$?
54047   grep -v '^ *+' conftest.er1 >conftest.err
54048   rm -f conftest.er1
54049   cat conftest.err >&5
54050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54051   (exit $ac_status); } && {
54052          test -z "$ac_c_werror_flag" ||
54053          test ! -s conftest.err
54054        } && test -s conftest.$ac_objext; then
54055   ac_hi=$ac_mid
54056 else
54057   $as_echo "$as_me: failed program was:" >&5
54058 sed 's/^/| /' conftest.$ac_ext >&5
54059
54060         ac_lo=`expr '(' $ac_mid ')' + 1`
54061 fi
54062
54063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54064 done
54065 case $ac_lo in
54066 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
54067 '') if test "$ac_cv_type_ssize_t" = yes; then
54068      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54070 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
54071 See \`config.log' for more details." >&5
54072 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
54073 See \`config.log' for more details." >&2;}
54074    { (exit 77); exit 77; }; }; }
54075    else
54076      ac_cv_sizeof_ssize_t=0
54077    fi ;;
54078 esac
54079 else
54080   cat >conftest.$ac_ext <<_ACEOF
54081 /* confdefs.h.  */
54082 _ACEOF
54083 cat confdefs.h >>conftest.$ac_ext
54084 cat >>conftest.$ac_ext <<_ACEOF
54085 /* end confdefs.h.  */
54086 $ac_includes_default
54087 static long int longval () { return (long int) (sizeof (ssize_t)); }
54088 static unsigned long int ulongval () { return (long int) (sizeof (ssize_t)); }
54089 #include <stdio.h>
54090 #include <stdlib.h>
54091 int
54092 main ()
54093 {
54094
54095   FILE *f = fopen ("conftest.val", "w");
54096   if (! f)
54097     return 1;
54098   if (((long int) (sizeof (ssize_t))) < 0)
54099     {
54100       long int i = longval ();
54101       if (i != ((long int) (sizeof (ssize_t))))
54102         return 1;
54103       fprintf (f, "%ld", i);
54104     }
54105   else
54106     {
54107       unsigned long int i = ulongval ();
54108       if (i != ((long int) (sizeof (ssize_t))))
54109         return 1;
54110       fprintf (f, "%lu", i);
54111     }
54112   /* Do not output a trailing newline, as this causes \r\n confusion
54113      on some platforms.  */
54114   return ferror (f) || fclose (f) != 0;
54115
54116   ;
54117   return 0;
54118 }
54119 _ACEOF
54120 rm -f conftest$ac_exeext
54121 if { (ac_try="$ac_link"
54122 case "(($ac_try" in
54123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54124   *) ac_try_echo=$ac_try;;
54125 esac
54126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54127 $as_echo "$ac_try_echo") >&5
54128   (eval "$ac_link") 2>&5
54129   ac_status=$?
54130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54132   { (case "(($ac_try" in
54133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54134   *) ac_try_echo=$ac_try;;
54135 esac
54136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54137 $as_echo "$ac_try_echo") >&5
54138   (eval "$ac_try") 2>&5
54139   ac_status=$?
54140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54141   (exit $ac_status); }; }; then
54142   ac_cv_sizeof_ssize_t=`cat conftest.val`
54143 else
54144   $as_echo "$as_me: program exited with status $ac_status" >&5
54145 $as_echo "$as_me: failed program was:" >&5
54146 sed 's/^/| /' conftest.$ac_ext >&5
54147
54148 ( exit $ac_status )
54149 if test "$ac_cv_type_ssize_t" = yes; then
54150      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54152 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
54153 See \`config.log' for more details." >&5
54154 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
54155 See \`config.log' for more details." >&2;}
54156    { (exit 77); exit 77; }; }; }
54157    else
54158      ac_cv_sizeof_ssize_t=0
54159    fi
54160 fi
54161 rm -rf conftest.dSYM
54162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54163 fi
54164 rm -f conftest.val
54165 fi
54166 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
54167 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
54168
54169
54170
54171 cat >>confdefs.h <<_ACEOF
54172 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
54173 _ACEOF
54174
54175
54176 # The cast to long int works around a bug in the HP C Compiler
54177 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
54178 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
54179 # This bug is HP SR number 8606223364.
54180 { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
54181 $as_echo_n "checking size of time_t... " >&6; }
54182 if test "${ac_cv_sizeof_time_t+set}" = set; then
54183   $as_echo_n "(cached) " >&6
54184 else
54185   if test "$cross_compiling" = yes; then
54186   # Depending upon the size, compute the lo and hi bounds.
54187 cat >conftest.$ac_ext <<_ACEOF
54188 /* confdefs.h.  */
54189 _ACEOF
54190 cat confdefs.h >>conftest.$ac_ext
54191 cat >>conftest.$ac_ext <<_ACEOF
54192 /* end confdefs.h.  */
54193 $ac_includes_default
54194 int
54195 main ()
54196 {
54197 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
54198 test_array [0] = 0
54199
54200   ;
54201   return 0;
54202 }
54203 _ACEOF
54204 rm -f conftest.$ac_objext
54205 if { (ac_try="$ac_compile"
54206 case "(($ac_try" in
54207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54208   *) ac_try_echo=$ac_try;;
54209 esac
54210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54211 $as_echo "$ac_try_echo") >&5
54212   (eval "$ac_compile") 2>conftest.er1
54213   ac_status=$?
54214   grep -v '^ *+' conftest.er1 >conftest.err
54215   rm -f conftest.er1
54216   cat conftest.err >&5
54217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54218   (exit $ac_status); } && {
54219          test -z "$ac_c_werror_flag" ||
54220          test ! -s conftest.err
54221        } && test -s conftest.$ac_objext; then
54222   ac_lo=0 ac_mid=0
54223   while :; do
54224     cat >conftest.$ac_ext <<_ACEOF
54225 /* confdefs.h.  */
54226 _ACEOF
54227 cat confdefs.h >>conftest.$ac_ext
54228 cat >>conftest.$ac_ext <<_ACEOF
54229 /* end confdefs.h.  */
54230 $ac_includes_default
54231 int
54232 main ()
54233 {
54234 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
54235 test_array [0] = 0
54236
54237   ;
54238   return 0;
54239 }
54240 _ACEOF
54241 rm -f conftest.$ac_objext
54242 if { (ac_try="$ac_compile"
54243 case "(($ac_try" in
54244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54245   *) ac_try_echo=$ac_try;;
54246 esac
54247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54248 $as_echo "$ac_try_echo") >&5
54249   (eval "$ac_compile") 2>conftest.er1
54250   ac_status=$?
54251   grep -v '^ *+' conftest.er1 >conftest.err
54252   rm -f conftest.er1
54253   cat conftest.err >&5
54254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54255   (exit $ac_status); } && {
54256          test -z "$ac_c_werror_flag" ||
54257          test ! -s conftest.err
54258        } && test -s conftest.$ac_objext; then
54259   ac_hi=$ac_mid; break
54260 else
54261   $as_echo "$as_me: failed program was:" >&5
54262 sed 's/^/| /' conftest.$ac_ext >&5
54263
54264         ac_lo=`expr $ac_mid + 1`
54265                         if test $ac_lo -le $ac_mid; then
54266                           ac_lo= ac_hi=
54267                           break
54268                         fi
54269                         ac_mid=`expr 2 '*' $ac_mid + 1`
54270 fi
54271
54272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54273   done
54274 else
54275   $as_echo "$as_me: failed program was:" >&5
54276 sed 's/^/| /' conftest.$ac_ext >&5
54277
54278         cat >conftest.$ac_ext <<_ACEOF
54279 /* confdefs.h.  */
54280 _ACEOF
54281 cat confdefs.h >>conftest.$ac_ext
54282 cat >>conftest.$ac_ext <<_ACEOF
54283 /* end confdefs.h.  */
54284 $ac_includes_default
54285 int
54286 main ()
54287 {
54288 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
54289 test_array [0] = 0
54290
54291   ;
54292   return 0;
54293 }
54294 _ACEOF
54295 rm -f conftest.$ac_objext
54296 if { (ac_try="$ac_compile"
54297 case "(($ac_try" in
54298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54299   *) ac_try_echo=$ac_try;;
54300 esac
54301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54302 $as_echo "$ac_try_echo") >&5
54303   (eval "$ac_compile") 2>conftest.er1
54304   ac_status=$?
54305   grep -v '^ *+' conftest.er1 >conftest.err
54306   rm -f conftest.er1
54307   cat conftest.err >&5
54308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54309   (exit $ac_status); } && {
54310          test -z "$ac_c_werror_flag" ||
54311          test ! -s conftest.err
54312        } && test -s conftest.$ac_objext; then
54313   ac_hi=-1 ac_mid=-1
54314   while :; do
54315     cat >conftest.$ac_ext <<_ACEOF
54316 /* confdefs.h.  */
54317 _ACEOF
54318 cat confdefs.h >>conftest.$ac_ext
54319 cat >>conftest.$ac_ext <<_ACEOF
54320 /* end confdefs.h.  */
54321 $ac_includes_default
54322 int
54323 main ()
54324 {
54325 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
54326 test_array [0] = 0
54327
54328   ;
54329   return 0;
54330 }
54331 _ACEOF
54332 rm -f conftest.$ac_objext
54333 if { (ac_try="$ac_compile"
54334 case "(($ac_try" in
54335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54336   *) ac_try_echo=$ac_try;;
54337 esac
54338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54339 $as_echo "$ac_try_echo") >&5
54340   (eval "$ac_compile") 2>conftest.er1
54341   ac_status=$?
54342   grep -v '^ *+' conftest.er1 >conftest.err
54343   rm -f conftest.er1
54344   cat conftest.err >&5
54345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54346   (exit $ac_status); } && {
54347          test -z "$ac_c_werror_flag" ||
54348          test ! -s conftest.err
54349        } && test -s conftest.$ac_objext; then
54350   ac_lo=$ac_mid; break
54351 else
54352   $as_echo "$as_me: failed program was:" >&5
54353 sed 's/^/| /' conftest.$ac_ext >&5
54354
54355         ac_hi=`expr '(' $ac_mid ')' - 1`
54356                         if test $ac_mid -le $ac_hi; then
54357                           ac_lo= ac_hi=
54358                           break
54359                         fi
54360                         ac_mid=`expr 2 '*' $ac_mid`
54361 fi
54362
54363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54364   done
54365 else
54366   $as_echo "$as_me: failed program was:" >&5
54367 sed 's/^/| /' conftest.$ac_ext >&5
54368
54369         ac_lo= ac_hi=
54370 fi
54371
54372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54373 fi
54374
54375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54376 # Binary search between lo and hi bounds.
54377 while test "x$ac_lo" != "x$ac_hi"; do
54378   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
54379   cat >conftest.$ac_ext <<_ACEOF
54380 /* confdefs.h.  */
54381 _ACEOF
54382 cat confdefs.h >>conftest.$ac_ext
54383 cat >>conftest.$ac_ext <<_ACEOF
54384 /* end confdefs.h.  */
54385 $ac_includes_default
54386 int
54387 main ()
54388 {
54389 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
54390 test_array [0] = 0
54391
54392   ;
54393   return 0;
54394 }
54395 _ACEOF
54396 rm -f conftest.$ac_objext
54397 if { (ac_try="$ac_compile"
54398 case "(($ac_try" in
54399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54400   *) ac_try_echo=$ac_try;;
54401 esac
54402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54403 $as_echo "$ac_try_echo") >&5
54404   (eval "$ac_compile") 2>conftest.er1
54405   ac_status=$?
54406   grep -v '^ *+' conftest.er1 >conftest.err
54407   rm -f conftest.er1
54408   cat conftest.err >&5
54409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54410   (exit $ac_status); } && {
54411          test -z "$ac_c_werror_flag" ||
54412          test ! -s conftest.err
54413        } && test -s conftest.$ac_objext; then
54414   ac_hi=$ac_mid
54415 else
54416   $as_echo "$as_me: failed program was:" >&5
54417 sed 's/^/| /' conftest.$ac_ext >&5
54418
54419         ac_lo=`expr '(' $ac_mid ')' + 1`
54420 fi
54421
54422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54423 done
54424 case $ac_lo in
54425 ?*) ac_cv_sizeof_time_t=$ac_lo;;
54426 '') if test "$ac_cv_type_time_t" = yes; then
54427      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54429 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
54430 See \`config.log' for more details." >&5
54431 $as_echo "$as_me: error: cannot compute sizeof (time_t)
54432 See \`config.log' for more details." >&2;}
54433    { (exit 77); exit 77; }; }; }
54434    else
54435      ac_cv_sizeof_time_t=0
54436    fi ;;
54437 esac
54438 else
54439   cat >conftest.$ac_ext <<_ACEOF
54440 /* confdefs.h.  */
54441 _ACEOF
54442 cat confdefs.h >>conftest.$ac_ext
54443 cat >>conftest.$ac_ext <<_ACEOF
54444 /* end confdefs.h.  */
54445 $ac_includes_default
54446 static long int longval () { return (long int) (sizeof (time_t)); }
54447 static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
54448 #include <stdio.h>
54449 #include <stdlib.h>
54450 int
54451 main ()
54452 {
54453
54454   FILE *f = fopen ("conftest.val", "w");
54455   if (! f)
54456     return 1;
54457   if (((long int) (sizeof (time_t))) < 0)
54458     {
54459       long int i = longval ();
54460       if (i != ((long int) (sizeof (time_t))))
54461         return 1;
54462       fprintf (f, "%ld", i);
54463     }
54464   else
54465     {
54466       unsigned long int i = ulongval ();
54467       if (i != ((long int) (sizeof (time_t))))
54468         return 1;
54469       fprintf (f, "%lu", i);
54470     }
54471   /* Do not output a trailing newline, as this causes \r\n confusion
54472      on some platforms.  */
54473   return ferror (f) || fclose (f) != 0;
54474
54475   ;
54476   return 0;
54477 }
54478 _ACEOF
54479 rm -f conftest$ac_exeext
54480 if { (ac_try="$ac_link"
54481 case "(($ac_try" in
54482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54483   *) ac_try_echo=$ac_try;;
54484 esac
54485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54486 $as_echo "$ac_try_echo") >&5
54487   (eval "$ac_link") 2>&5
54488   ac_status=$?
54489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54490   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54491   { (case "(($ac_try" in
54492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54493   *) ac_try_echo=$ac_try;;
54494 esac
54495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54496 $as_echo "$ac_try_echo") >&5
54497   (eval "$ac_try") 2>&5
54498   ac_status=$?
54499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54500   (exit $ac_status); }; }; then
54501   ac_cv_sizeof_time_t=`cat conftest.val`
54502 else
54503   $as_echo "$as_me: program exited with status $ac_status" >&5
54504 $as_echo "$as_me: failed program was:" >&5
54505 sed 's/^/| /' conftest.$ac_ext >&5
54506
54507 ( exit $ac_status )
54508 if test "$ac_cv_type_time_t" = yes; then
54509      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54511 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
54512 See \`config.log' for more details." >&5
54513 $as_echo "$as_me: error: cannot compute sizeof (time_t)
54514 See \`config.log' for more details." >&2;}
54515    { (exit 77); exit 77; }; }; }
54516    else
54517      ac_cv_sizeof_time_t=0
54518    fi
54519 fi
54520 rm -rf conftest.dSYM
54521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54522 fi
54523 rm -f conftest.val
54524 fi
54525 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
54526 $as_echo "$ac_cv_sizeof_time_t" >&6; }
54527
54528
54529
54530 cat >>confdefs.h <<_ACEOF
54531 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
54532 _ACEOF
54533
54534
54535 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
54536 $as_echo_n "checking for off_t... " >&6; }
54537 if test "${ac_cv_type_off_t+set}" = set; then
54538   $as_echo_n "(cached) " >&6
54539 else
54540   ac_cv_type_off_t=no
54541 cat >conftest.$ac_ext <<_ACEOF
54542 /* confdefs.h.  */
54543 _ACEOF
54544 cat confdefs.h >>conftest.$ac_ext
54545 cat >>conftest.$ac_ext <<_ACEOF
54546 /* end confdefs.h.  */
54547 $ac_includes_default
54548 int
54549 main ()
54550 {
54551 if (sizeof (off_t))
54552        return 0;
54553   ;
54554   return 0;
54555 }
54556 _ACEOF
54557 rm -f conftest.$ac_objext
54558 if { (ac_try="$ac_compile"
54559 case "(($ac_try" in
54560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54561   *) ac_try_echo=$ac_try;;
54562 esac
54563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54564 $as_echo "$ac_try_echo") >&5
54565   (eval "$ac_compile") 2>conftest.er1
54566   ac_status=$?
54567   grep -v '^ *+' conftest.er1 >conftest.err
54568   rm -f conftest.er1
54569   cat conftest.err >&5
54570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54571   (exit $ac_status); } && {
54572          test -z "$ac_c_werror_flag" ||
54573          test ! -s conftest.err
54574        } && test -s conftest.$ac_objext; then
54575   cat >conftest.$ac_ext <<_ACEOF
54576 /* confdefs.h.  */
54577 _ACEOF
54578 cat confdefs.h >>conftest.$ac_ext
54579 cat >>conftest.$ac_ext <<_ACEOF
54580 /* end confdefs.h.  */
54581 $ac_includes_default
54582 int
54583 main ()
54584 {
54585 if (sizeof ((off_t)))
54586           return 0;
54587   ;
54588   return 0;
54589 }
54590 _ACEOF
54591 rm -f conftest.$ac_objext
54592 if { (ac_try="$ac_compile"
54593 case "(($ac_try" in
54594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54595   *) ac_try_echo=$ac_try;;
54596 esac
54597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54598 $as_echo "$ac_try_echo") >&5
54599   (eval "$ac_compile") 2>conftest.er1
54600   ac_status=$?
54601   grep -v '^ *+' conftest.er1 >conftest.err
54602   rm -f conftest.er1
54603   cat conftest.err >&5
54604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54605   (exit $ac_status); } && {
54606          test -z "$ac_c_werror_flag" ||
54607          test ! -s conftest.err
54608        } && test -s conftest.$ac_objext; then
54609   :
54610 else
54611   $as_echo "$as_me: failed program was:" >&5
54612 sed 's/^/| /' conftest.$ac_ext >&5
54613
54614         ac_cv_type_off_t=yes
54615 fi
54616
54617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54618 else
54619   $as_echo "$as_me: failed program was:" >&5
54620 sed 's/^/| /' conftest.$ac_ext >&5
54621
54622
54623 fi
54624
54625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54626 fi
54627 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
54628 $as_echo "$ac_cv_type_off_t" >&6; }
54629 if test "x$ac_cv_type_off_t" = x""yes; then
54630   :
54631 else
54632
54633 cat >>confdefs.h <<_ACEOF
54634 #define off_t long int
54635 _ACEOF
54636
54637 fi
54638
54639 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
54640 $as_echo_n "checking for pid_t... " >&6; }
54641 if test "${ac_cv_type_pid_t+set}" = set; then
54642   $as_echo_n "(cached) " >&6
54643 else
54644   ac_cv_type_pid_t=no
54645 cat >conftest.$ac_ext <<_ACEOF
54646 /* confdefs.h.  */
54647 _ACEOF
54648 cat confdefs.h >>conftest.$ac_ext
54649 cat >>conftest.$ac_ext <<_ACEOF
54650 /* end confdefs.h.  */
54651 $ac_includes_default
54652 int
54653 main ()
54654 {
54655 if (sizeof (pid_t))
54656        return 0;
54657   ;
54658   return 0;
54659 }
54660 _ACEOF
54661 rm -f conftest.$ac_objext
54662 if { (ac_try="$ac_compile"
54663 case "(($ac_try" in
54664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54665   *) ac_try_echo=$ac_try;;
54666 esac
54667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54668 $as_echo "$ac_try_echo") >&5
54669   (eval "$ac_compile") 2>conftest.er1
54670   ac_status=$?
54671   grep -v '^ *+' conftest.er1 >conftest.err
54672   rm -f conftest.er1
54673   cat conftest.err >&5
54674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54675   (exit $ac_status); } && {
54676          test -z "$ac_c_werror_flag" ||
54677          test ! -s conftest.err
54678        } && test -s conftest.$ac_objext; then
54679   cat >conftest.$ac_ext <<_ACEOF
54680 /* confdefs.h.  */
54681 _ACEOF
54682 cat confdefs.h >>conftest.$ac_ext
54683 cat >>conftest.$ac_ext <<_ACEOF
54684 /* end confdefs.h.  */
54685 $ac_includes_default
54686 int
54687 main ()
54688 {
54689 if (sizeof ((pid_t)))
54690           return 0;
54691   ;
54692   return 0;
54693 }
54694 _ACEOF
54695 rm -f conftest.$ac_objext
54696 if { (ac_try="$ac_compile"
54697 case "(($ac_try" in
54698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54699   *) ac_try_echo=$ac_try;;
54700 esac
54701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54702 $as_echo "$ac_try_echo") >&5
54703   (eval "$ac_compile") 2>conftest.er1
54704   ac_status=$?
54705   grep -v '^ *+' conftest.er1 >conftest.err
54706   rm -f conftest.er1
54707   cat conftest.err >&5
54708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54709   (exit $ac_status); } && {
54710          test -z "$ac_c_werror_flag" ||
54711          test ! -s conftest.err
54712        } && test -s conftest.$ac_objext; then
54713   :
54714 else
54715   $as_echo "$as_me: failed program was:" >&5
54716 sed 's/^/| /' conftest.$ac_ext >&5
54717
54718         ac_cv_type_pid_t=yes
54719 fi
54720
54721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54722 else
54723   $as_echo "$as_me: failed program was:" >&5
54724 sed 's/^/| /' conftest.$ac_ext >&5
54725
54726
54727 fi
54728
54729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54730 fi
54731 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
54732 $as_echo "$ac_cv_type_pid_t" >&6; }
54733 if test "x$ac_cv_type_pid_t" = x""yes; then
54734   :
54735 else
54736
54737 cat >>confdefs.h <<_ACEOF
54738 #define pid_t int
54739 _ACEOF
54740
54741 fi
54742
54743 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
54744 $as_echo_n "checking for size_t... " >&6; }
54745 if test "${ac_cv_type_size_t+set}" = set; then
54746   $as_echo_n "(cached) " >&6
54747 else
54748   ac_cv_type_size_t=no
54749 cat >conftest.$ac_ext <<_ACEOF
54750 /* confdefs.h.  */
54751 _ACEOF
54752 cat confdefs.h >>conftest.$ac_ext
54753 cat >>conftest.$ac_ext <<_ACEOF
54754 /* end confdefs.h.  */
54755 $ac_includes_default
54756 int
54757 main ()
54758 {
54759 if (sizeof (size_t))
54760        return 0;
54761   ;
54762   return 0;
54763 }
54764 _ACEOF
54765 rm -f conftest.$ac_objext
54766 if { (ac_try="$ac_compile"
54767 case "(($ac_try" in
54768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54769   *) ac_try_echo=$ac_try;;
54770 esac
54771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54772 $as_echo "$ac_try_echo") >&5
54773   (eval "$ac_compile") 2>conftest.er1
54774   ac_status=$?
54775   grep -v '^ *+' conftest.er1 >conftest.err
54776   rm -f conftest.er1
54777   cat conftest.err >&5
54778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54779   (exit $ac_status); } && {
54780          test -z "$ac_c_werror_flag" ||
54781          test ! -s conftest.err
54782        } && test -s conftest.$ac_objext; then
54783   cat >conftest.$ac_ext <<_ACEOF
54784 /* confdefs.h.  */
54785 _ACEOF
54786 cat confdefs.h >>conftest.$ac_ext
54787 cat >>conftest.$ac_ext <<_ACEOF
54788 /* end confdefs.h.  */
54789 $ac_includes_default
54790 int
54791 main ()
54792 {
54793 if (sizeof ((size_t)))
54794           return 0;
54795   ;
54796   return 0;
54797 }
54798 _ACEOF
54799 rm -f conftest.$ac_objext
54800 if { (ac_try="$ac_compile"
54801 case "(($ac_try" in
54802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54803   *) ac_try_echo=$ac_try;;
54804 esac
54805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54806 $as_echo "$ac_try_echo") >&5
54807   (eval "$ac_compile") 2>conftest.er1
54808   ac_status=$?
54809   grep -v '^ *+' conftest.er1 >conftest.err
54810   rm -f conftest.er1
54811   cat conftest.err >&5
54812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54813   (exit $ac_status); } && {
54814          test -z "$ac_c_werror_flag" ||
54815          test ! -s conftest.err
54816        } && test -s conftest.$ac_objext; then
54817   :
54818 else
54819   $as_echo "$as_me: failed program was:" >&5
54820 sed 's/^/| /' conftest.$ac_ext >&5
54821
54822         ac_cv_type_size_t=yes
54823 fi
54824
54825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54826 else
54827   $as_echo "$as_me: failed program was:" >&5
54828 sed 's/^/| /' conftest.$ac_ext >&5
54829
54830
54831 fi
54832
54833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54834 fi
54835 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
54836 $as_echo "$ac_cv_type_size_t" >&6; }
54837 if test "x$ac_cv_type_size_t" = x""yes; then
54838   :
54839 else
54840
54841 cat >>confdefs.h <<_ACEOF
54842 #define size_t unsigned int
54843 _ACEOF
54844
54845 fi
54846
54847 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
54848 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
54849 if test "${ac_cv_type_uid_t+set}" = set; then
54850   $as_echo_n "(cached) " >&6
54851 else
54852   cat >conftest.$ac_ext <<_ACEOF
54853 /* confdefs.h.  */
54854 _ACEOF
54855 cat confdefs.h >>conftest.$ac_ext
54856 cat >>conftest.$ac_ext <<_ACEOF
54857 /* end confdefs.h.  */
54858 #include <sys/types.h>
54859
54860 _ACEOF
54861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54862   $EGREP "uid_t" >/dev/null 2>&1; then
54863   ac_cv_type_uid_t=yes
54864 else
54865   ac_cv_type_uid_t=no
54866 fi
54867 rm -f conftest*
54868
54869 fi
54870 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
54871 $as_echo "$ac_cv_type_uid_t" >&6; }
54872 if test $ac_cv_type_uid_t = no; then
54873
54874 cat >>confdefs.h <<\_ACEOF
54875 #define uid_t int
54876 _ACEOF
54877
54878
54879 cat >>confdefs.h <<\_ACEOF
54880 #define gid_t int
54881 _ACEOF
54882
54883 fi
54884
54885 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
54886 $as_echo_n "checking return type of signal handlers... " >&6; }
54887 if test "${ac_cv_type_signal+set}" = set; then
54888   $as_echo_n "(cached) " >&6
54889 else
54890   cat >conftest.$ac_ext <<_ACEOF
54891 /* confdefs.h.  */
54892 _ACEOF
54893 cat confdefs.h >>conftest.$ac_ext
54894 cat >>conftest.$ac_ext <<_ACEOF
54895 /* end confdefs.h.  */
54896 #include <sys/types.h>
54897 #include <signal.h>
54898
54899 int
54900 main ()
54901 {
54902 return *(signal (0, 0)) (0) == 1;
54903   ;
54904   return 0;
54905 }
54906 _ACEOF
54907 rm -f conftest.$ac_objext
54908 if { (ac_try="$ac_compile"
54909 case "(($ac_try" in
54910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54911   *) ac_try_echo=$ac_try;;
54912 esac
54913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54914 $as_echo "$ac_try_echo") >&5
54915   (eval "$ac_compile") 2>conftest.er1
54916   ac_status=$?
54917   grep -v '^ *+' conftest.er1 >conftest.err
54918   rm -f conftest.er1
54919   cat conftest.err >&5
54920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54921   (exit $ac_status); } && {
54922          test -z "$ac_c_werror_flag" ||
54923          test ! -s conftest.err
54924        } && test -s conftest.$ac_objext; then
54925   ac_cv_type_signal=int
54926 else
54927   $as_echo "$as_me: failed program was:" >&5
54928 sed 's/^/| /' conftest.$ac_ext >&5
54929
54930         ac_cv_type_signal=void
54931 fi
54932
54933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54934 fi
54935 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
54936 $as_echo "$ac_cv_type_signal" >&6; }
54937
54938 cat >>confdefs.h <<_ACEOF
54939 #define RETSIGTYPE $ac_cv_type_signal
54940 _ACEOF
54941
54942
54943 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
54944 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
54945 if test "${ac_cv_struct_tm+set}" = set; then
54946   $as_echo_n "(cached) " >&6
54947 else
54948   cat >conftest.$ac_ext <<_ACEOF
54949 /* confdefs.h.  */
54950 _ACEOF
54951 cat confdefs.h >>conftest.$ac_ext
54952 cat >>conftest.$ac_ext <<_ACEOF
54953 /* end confdefs.h.  */
54954 #include <sys/types.h>
54955 #include <time.h>
54956
54957 int
54958 main ()
54959 {
54960 struct tm tm;
54961                                      int *p = &tm.tm_sec;
54962                                      return !p;
54963   ;
54964   return 0;
54965 }
54966 _ACEOF
54967 rm -f conftest.$ac_objext
54968 if { (ac_try="$ac_compile"
54969 case "(($ac_try" in
54970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54971   *) ac_try_echo=$ac_try;;
54972 esac
54973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54974 $as_echo "$ac_try_echo") >&5
54975   (eval "$ac_compile") 2>conftest.er1
54976   ac_status=$?
54977   grep -v '^ *+' conftest.er1 >conftest.err
54978   rm -f conftest.er1
54979   cat conftest.err >&5
54980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54981   (exit $ac_status); } && {
54982          test -z "$ac_c_werror_flag" ||
54983          test ! -s conftest.err
54984        } && test -s conftest.$ac_objext; then
54985   ac_cv_struct_tm=time.h
54986 else
54987   $as_echo "$as_me: failed program was:" >&5
54988 sed 's/^/| /' conftest.$ac_ext >&5
54989
54990         ac_cv_struct_tm=sys/time.h
54991 fi
54992
54993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54994 fi
54995 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
54996 $as_echo "$ac_cv_struct_tm" >&6; }
54997 if test $ac_cv_struct_tm = sys/time.h; then
54998
54999 cat >>confdefs.h <<\_ACEOF
55000 #define TM_IN_SYS_TIME 1
55001 _ACEOF
55002
55003 fi
55004
55005
55006       ## lifted from config/gnulib/socklen.m4
55007             { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
55008 $as_echo_n "checking for socklen_t equivalent... " >&6; }
55009       if test "${gl_cv_socklen_t_equiv+set}" = set; then
55010   $as_echo_n "(cached) " >&6
55011 else
55012   # Systems have either "struct sockaddr *" or
55013          # "void *" as the second argument to getpeername
55014          gl_cv_socklen_t_equiv=
55015          for arg2 in "struct sockaddr" void; do
55016            for t in socklen_t int size_t "unsigned int" "long int" "unsigned long int"; do
55017              cat >conftest.$ac_ext <<_ACEOF
55018 /* confdefs.h.  */
55019 _ACEOF
55020 cat confdefs.h >>conftest.$ac_ext
55021 cat >>conftest.$ac_ext <<_ACEOF
55022 /* end confdefs.h.  */
55023 #include <sys/types.h>
55024                 #include <sys/socket.h>
55025
55026                 int getpeername (int, $arg2 *, $t *);
55027 int
55028 main ()
55029 {
55030 $t len;
55031                 getpeername (0, 0, &len);
55032   ;
55033   return 0;
55034 }
55035 _ACEOF
55036 rm -f conftest.$ac_objext
55037 if { (ac_try="$ac_compile"
55038 case "(($ac_try" in
55039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55040   *) ac_try_echo=$ac_try;;
55041 esac
55042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55043 $as_echo "$ac_try_echo") >&5
55044   (eval "$ac_compile") 2>conftest.er1
55045   ac_status=$?
55046   grep -v '^ *+' conftest.er1 >conftest.err
55047   rm -f conftest.er1
55048   cat conftest.err >&5
55049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55050   (exit $ac_status); } && {
55051          test -z "$ac_c_werror_flag" ||
55052          test ! -s conftest.err
55053        } && test -s conftest.$ac_objext; then
55054   gl_cv_socklen_t_equiv="$t"
55055 else
55056   $as_echo "$as_me: failed program was:" >&5
55057 sed 's/^/| /' conftest.$ac_ext >&5
55058
55059
55060 fi
55061
55062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55063              test "$gl_cv_socklen_t_equiv" != "" && break
55064            done
55065            test "$gl_cv_socklen_t_equiv" != "" && break
55066          done
55067
55068 fi
55069
55070       ## end lifting from config/gnulib/socklen.m4
55071       # fallback if the check fails
55072       if test "$gl_cv_socklen_t_equiv" = ""; then
55073         gl_cv_socklen_t_equiv=socklen_t
55074       fi
55075       { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
55076 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
55077
55078
55079 cat >>confdefs.h <<_ACEOF
55080 #define socklen_t_equiv $gl_cv_socklen_t_equiv
55081 _ACEOF
55082
55083
55084
55085
55086     { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
55087 $as_echo_n "checking for sa_family_t... " >&6; }
55088 if test "${ac_cv_type_sa_family_t+set}" = set; then
55089   $as_echo_n "(cached) " >&6
55090 else
55091   ac_cv_type_sa_family_t=no
55092 cat >conftest.$ac_ext <<_ACEOF
55093 /* confdefs.h.  */
55094 _ACEOF
55095 cat confdefs.h >>conftest.$ac_ext
55096 cat >>conftest.$ac_ext <<_ACEOF
55097 /* end confdefs.h.  */
55098
55099 #ifdef HAVE_SYS_TYPES_H
55100 #include <sys/types.h>
55101 #endif
55102 #ifdef STDC_HEADERS
55103 #include <stdlib.h>
55104 #include <stddef.h>
55105 #endif
55106 #include <sys/socket.h>
55107
55108
55109
55110 int
55111 main ()
55112 {
55113 if (sizeof (sa_family_t))
55114        return 0;
55115   ;
55116   return 0;
55117 }
55118 _ACEOF
55119 rm -f conftest.$ac_objext
55120 if { (ac_try="$ac_compile"
55121 case "(($ac_try" in
55122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55123   *) ac_try_echo=$ac_try;;
55124 esac
55125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55126 $as_echo "$ac_try_echo") >&5
55127   (eval "$ac_compile") 2>conftest.er1
55128   ac_status=$?
55129   grep -v '^ *+' conftest.er1 >conftest.err
55130   rm -f conftest.er1
55131   cat conftest.err >&5
55132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55133   (exit $ac_status); } && {
55134          test -z "$ac_c_werror_flag" ||
55135          test ! -s conftest.err
55136        } && test -s conftest.$ac_objext; then
55137   cat >conftest.$ac_ext <<_ACEOF
55138 /* confdefs.h.  */
55139 _ACEOF
55140 cat confdefs.h >>conftest.$ac_ext
55141 cat >>conftest.$ac_ext <<_ACEOF
55142 /* end confdefs.h.  */
55143
55144 #ifdef HAVE_SYS_TYPES_H
55145 #include <sys/types.h>
55146 #endif
55147 #ifdef STDC_HEADERS
55148 #include <stdlib.h>
55149 #include <stddef.h>
55150 #endif
55151 #include <sys/socket.h>
55152
55153
55154
55155 int
55156 main ()
55157 {
55158 if (sizeof ((sa_family_t)))
55159           return 0;
55160   ;
55161   return 0;
55162 }
55163 _ACEOF
55164 rm -f conftest.$ac_objext
55165 if { (ac_try="$ac_compile"
55166 case "(($ac_try" in
55167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55168   *) ac_try_echo=$ac_try;;
55169 esac
55170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55171 $as_echo "$ac_try_echo") >&5
55172   (eval "$ac_compile") 2>conftest.er1
55173   ac_status=$?
55174   grep -v '^ *+' conftest.er1 >conftest.err
55175   rm -f conftest.er1
55176   cat conftest.err >&5
55177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55178   (exit $ac_status); } && {
55179          test -z "$ac_c_werror_flag" ||
55180          test ! -s conftest.err
55181        } && test -s conftest.$ac_objext; then
55182   :
55183 else
55184   $as_echo "$as_me: failed program was:" >&5
55185 sed 's/^/| /' conftest.$ac_ext >&5
55186
55187         ac_cv_type_sa_family_t=yes
55188 fi
55189
55190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55191 else
55192   $as_echo "$as_me: failed program was:" >&5
55193 sed 's/^/| /' conftest.$ac_ext >&5
55194
55195
55196 fi
55197
55198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55199 fi
55200 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
55201 $as_echo "$ac_cv_type_sa_family_t" >&6; }
55202 if test "x$ac_cv_type_sa_family_t" = x""yes; then
55203   :
55204 else
55205
55206
55207 cat >>confdefs.h <<\_ACEOF
55208 #define sa_family_t unsigned short
55209 _ACEOF
55210
55211
55212 fi
55213
55214
55215
55216
55217     { $as_echo "$as_me:$LINENO: checking for in_port_t" >&5
55218 $as_echo_n "checking for in_port_t... " >&6; }
55219 if test "${ac_cv_type_in_port_t+set}" = set; then
55220   $as_echo_n "(cached) " >&6
55221 else
55222   ac_cv_type_in_port_t=no
55223 cat >conftest.$ac_ext <<_ACEOF
55224 /* confdefs.h.  */
55225 _ACEOF
55226 cat confdefs.h >>conftest.$ac_ext
55227 cat >>conftest.$ac_ext <<_ACEOF
55228 /* end confdefs.h.  */
55229
55230 #ifdef HAVE_SYS_TYPES_H
55231 #include <sys/types.h>
55232 #endif
55233 #ifdef STDC_HEADERS
55234 #include <stdlib.h>
55235 #include <stddef.h>
55236 #endif
55237 #include <netinet/in.h>
55238
55239
55240
55241 int
55242 main ()
55243 {
55244 if (sizeof (in_port_t))
55245        return 0;
55246   ;
55247   return 0;
55248 }
55249 _ACEOF
55250 rm -f conftest.$ac_objext
55251 if { (ac_try="$ac_compile"
55252 case "(($ac_try" in
55253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55254   *) ac_try_echo=$ac_try;;
55255 esac
55256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55257 $as_echo "$ac_try_echo") >&5
55258   (eval "$ac_compile") 2>conftest.er1
55259   ac_status=$?
55260   grep -v '^ *+' conftest.er1 >conftest.err
55261   rm -f conftest.er1
55262   cat conftest.err >&5
55263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55264   (exit $ac_status); } && {
55265          test -z "$ac_c_werror_flag" ||
55266          test ! -s conftest.err
55267        } && test -s conftest.$ac_objext; then
55268   cat >conftest.$ac_ext <<_ACEOF
55269 /* confdefs.h.  */
55270 _ACEOF
55271 cat confdefs.h >>conftest.$ac_ext
55272 cat >>conftest.$ac_ext <<_ACEOF
55273 /* end confdefs.h.  */
55274
55275 #ifdef HAVE_SYS_TYPES_H
55276 #include <sys/types.h>
55277 #endif
55278 #ifdef STDC_HEADERS
55279 #include <stdlib.h>
55280 #include <stddef.h>
55281 #endif
55282 #include <netinet/in.h>
55283
55284
55285
55286 int
55287 main ()
55288 {
55289 if (sizeof ((in_port_t)))
55290           return 0;
55291   ;
55292   return 0;
55293 }
55294 _ACEOF
55295 rm -f conftest.$ac_objext
55296 if { (ac_try="$ac_compile"
55297 case "(($ac_try" in
55298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55299   *) ac_try_echo=$ac_try;;
55300 esac
55301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55302 $as_echo "$ac_try_echo") >&5
55303   (eval "$ac_compile") 2>conftest.er1
55304   ac_status=$?
55305   grep -v '^ *+' conftest.er1 >conftest.err
55306   rm -f conftest.er1
55307   cat conftest.err >&5
55308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55309   (exit $ac_status); } && {
55310          test -z "$ac_c_werror_flag" ||
55311          test ! -s conftest.err
55312        } && test -s conftest.$ac_objext; then
55313   :
55314 else
55315   $as_echo "$as_me: failed program was:" >&5
55316 sed 's/^/| /' conftest.$ac_ext >&5
55317
55318         ac_cv_type_in_port_t=yes
55319 fi
55320
55321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55322 else
55323   $as_echo "$as_me: failed program was:" >&5
55324 sed 's/^/| /' conftest.$ac_ext >&5
55325
55326
55327 fi
55328
55329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55330 fi
55331 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
55332 $as_echo "$ac_cv_type_in_port_t" >&6; }
55333 if test "x$ac_cv_type_in_port_t" = x""yes; then
55334   :
55335 else
55336
55337
55338 cat >>confdefs.h <<\_ACEOF
55339 #define in_port_t unsigned short
55340 _ACEOF
55341
55342
55343 fi
55344
55345
55346
55347
55348
55349
55350 for ac_header in sys/wait.h wait.h
55351 do
55352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
55353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55354   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55355 $as_echo_n "checking for $ac_header... " >&6; }
55356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55357   $as_echo_n "(cached) " >&6
55358 fi
55359 ac_res=`eval 'as_val=${'$as_ac_Header'}
55360                  $as_echo "$as_val"'`
55361                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55362 $as_echo "$ac_res" >&6; }
55363 else
55364   # Is the header compilable?
55365 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
55366 $as_echo_n "checking $ac_header usability... " >&6; }
55367 cat >conftest.$ac_ext <<_ACEOF
55368 /* confdefs.h.  */
55369 _ACEOF
55370 cat confdefs.h >>conftest.$ac_ext
55371 cat >>conftest.$ac_ext <<_ACEOF
55372 /* end confdefs.h.  */
55373 $ac_includes_default
55374 #include <$ac_header>
55375 _ACEOF
55376 rm -f conftest.$ac_objext
55377 if { (ac_try="$ac_compile"
55378 case "(($ac_try" in
55379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55380   *) ac_try_echo=$ac_try;;
55381 esac
55382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55383 $as_echo "$ac_try_echo") >&5
55384   (eval "$ac_compile") 2>conftest.er1
55385   ac_status=$?
55386   grep -v '^ *+' conftest.er1 >conftest.err
55387   rm -f conftest.er1
55388   cat conftest.err >&5
55389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55390   (exit $ac_status); } && {
55391          test -z "$ac_c_werror_flag" ||
55392          test ! -s conftest.err
55393        } && test -s conftest.$ac_objext; then
55394   ac_header_compiler=yes
55395 else
55396   $as_echo "$as_me: failed program was:" >&5
55397 sed 's/^/| /' conftest.$ac_ext >&5
55398
55399         ac_header_compiler=no
55400 fi
55401
55402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55403 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55404 $as_echo "$ac_header_compiler" >&6; }
55405
55406 # Is the header present?
55407 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
55408 $as_echo_n "checking $ac_header presence... " >&6; }
55409 cat >conftest.$ac_ext <<_ACEOF
55410 /* confdefs.h.  */
55411 _ACEOF
55412 cat confdefs.h >>conftest.$ac_ext
55413 cat >>conftest.$ac_ext <<_ACEOF
55414 /* end confdefs.h.  */
55415 #include <$ac_header>
55416 _ACEOF
55417 if { (ac_try="$ac_cpp conftest.$ac_ext"
55418 case "(($ac_try" in
55419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55420   *) ac_try_echo=$ac_try;;
55421 esac
55422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55423 $as_echo "$ac_try_echo") >&5
55424   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
55425   ac_status=$?
55426   grep -v '^ *+' conftest.er1 >conftest.err
55427   rm -f conftest.er1
55428   cat conftest.err >&5
55429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55430   (exit $ac_status); } >/dev/null && {
55431          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
55432          test ! -s conftest.err
55433        }; then
55434   ac_header_preproc=yes
55435 else
55436   $as_echo "$as_me: failed program was:" >&5
55437 sed 's/^/| /' conftest.$ac_ext >&5
55438
55439   ac_header_preproc=no
55440 fi
55441
55442 rm -f conftest.err conftest.$ac_ext
55443 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55444 $as_echo "$ac_header_preproc" >&6; }
55445
55446 # So?  What about this header?
55447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55448   yes:no: )
55449     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55450 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55451     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
55452 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
55453     ac_header_preproc=yes
55454     ;;
55455   no:yes:* )
55456     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55457 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55458     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
55459 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
55460     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
55461 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
55462     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
55463 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
55464     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55465 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55466     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
55467 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
55468
55469     ;;
55470 esac
55471 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55472 $as_echo_n "checking for $ac_header... " >&6; }
55473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55474   $as_echo_n "(cached) " >&6
55475 else
55476   eval "$as_ac_Header=\$ac_header_preproc"
55477 fi
55478 ac_res=`eval 'as_val=${'$as_ac_Header'}
55479                  $as_echo "$as_val"'`
55480                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55481 $as_echo "$ac_res" >&6; }
55482
55483 fi
55484 as_val=`eval 'as_val=${'$as_ac_Header'}
55485                  $as_echo "$as_val"'`
55486    if test "x$as_val" = x""yes; then
55487   cat >>confdefs.h <<_ACEOF
55488 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
55489 _ACEOF
55490
55491 fi
55492
55493 done
55494
55495     { $as_echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
55496 $as_echo_n "checking whether wait uses union wait... " >&6; }
55497 if test "${cf_cv_arg_union_wait+set}" = set; then
55498   $as_echo_n "(cached) " >&6
55499 else
55500
55501         cat >conftest.$ac_ext <<_ACEOF
55502 /* confdefs.h.  */
55503 _ACEOF
55504 cat confdefs.h >>conftest.$ac_ext
55505 cat >>conftest.$ac_ext <<_ACEOF
55506 /* end confdefs.h.  */
55507
55508 #include <sys/types.h>
55509
55510 #if HAVE_SYS_WAIT_H
55511 # include <sys/wait.h>
55512 #else
55513 # if HAVE_WAIT_H
55514 #  include <wait.h>
55515 # endif
55516 #endif
55517
55518 #ifdef __STDC__
55519 pid_t wait(union wait *);
55520 #endif
55521
55522 int
55523 main ()
55524 {
55525
55526   union wait x; int i;
55527   wait(&x); i = WIFEXITED(x)
55528
55529   ;
55530   return 0;
55531 }
55532 _ACEOF
55533 rm -f conftest.$ac_objext
55534 if { (ac_try="$ac_compile"
55535 case "(($ac_try" in
55536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55537   *) ac_try_echo=$ac_try;;
55538 esac
55539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55540 $as_echo "$ac_try_echo") >&5
55541   (eval "$ac_compile") 2>conftest.er1
55542   ac_status=$?
55543   grep -v '^ *+' conftest.er1 >conftest.err
55544   rm -f conftest.er1
55545   cat conftest.err >&5
55546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55547   (exit $ac_status); } && {
55548          test -z "$ac_c_werror_flag" ||
55549          test ! -s conftest.err
55550        } && test -s conftest.$ac_objext; then
55551   cf_cv_arg_union_wait=yes
55552 else
55553   $as_echo "$as_me: failed program was:" >&5
55554 sed 's/^/| /' conftest.$ac_ext >&5
55555
55556         cf_cv_arg_union_wait=no
55557 fi
55558
55559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55560 fi
55561 { $as_echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
55562 $as_echo "$cf_cv_arg_union_wait" >&6; }
55563     if test $cf_cv_arg_union_wait = yes; then
55564
55565 cat >>confdefs.h <<\_ACEOF
55566 #define WAIT_USES_UNION 1
55567 _ACEOF
55568
55569     fi
55570
55571
55572
55573
55574
55575 for ac_header in sys/wait.h wait.h
55576 do
55577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
55578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55579   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55580 $as_echo_n "checking for $ac_header... " >&6; }
55581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55582   $as_echo_n "(cached) " >&6
55583 fi
55584 ac_res=`eval 'as_val=${'$as_ac_Header'}
55585                  $as_echo "$as_val"'`
55586                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55587 $as_echo "$ac_res" >&6; }
55588 else
55589   # Is the header compilable?
55590 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
55591 $as_echo_n "checking $ac_header usability... " >&6; }
55592 cat >conftest.$ac_ext <<_ACEOF
55593 /* confdefs.h.  */
55594 _ACEOF
55595 cat confdefs.h >>conftest.$ac_ext
55596 cat >>conftest.$ac_ext <<_ACEOF
55597 /* end confdefs.h.  */
55598 $ac_includes_default
55599 #include <$ac_header>
55600 _ACEOF
55601 rm -f conftest.$ac_objext
55602 if { (ac_try="$ac_compile"
55603 case "(($ac_try" in
55604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55605   *) ac_try_echo=$ac_try;;
55606 esac
55607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55608 $as_echo "$ac_try_echo") >&5
55609   (eval "$ac_compile") 2>conftest.er1
55610   ac_status=$?
55611   grep -v '^ *+' conftest.er1 >conftest.err
55612   rm -f conftest.er1
55613   cat conftest.err >&5
55614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55615   (exit $ac_status); } && {
55616          test -z "$ac_c_werror_flag" ||
55617          test ! -s conftest.err
55618        } && test -s conftest.$ac_objext; then
55619   ac_header_compiler=yes
55620 else
55621   $as_echo "$as_me: failed program was:" >&5
55622 sed 's/^/| /' conftest.$ac_ext >&5
55623
55624         ac_header_compiler=no
55625 fi
55626
55627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55628 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55629 $as_echo "$ac_header_compiler" >&6; }
55630
55631 # Is the header present?
55632 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
55633 $as_echo_n "checking $ac_header presence... " >&6; }
55634 cat >conftest.$ac_ext <<_ACEOF
55635 /* confdefs.h.  */
55636 _ACEOF
55637 cat confdefs.h >>conftest.$ac_ext
55638 cat >>conftest.$ac_ext <<_ACEOF
55639 /* end confdefs.h.  */
55640 #include <$ac_header>
55641 _ACEOF
55642 if { (ac_try="$ac_cpp conftest.$ac_ext"
55643 case "(($ac_try" in
55644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55645   *) ac_try_echo=$ac_try;;
55646 esac
55647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55648 $as_echo "$ac_try_echo") >&5
55649   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
55650   ac_status=$?
55651   grep -v '^ *+' conftest.er1 >conftest.err
55652   rm -f conftest.er1
55653   cat conftest.err >&5
55654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55655   (exit $ac_status); } >/dev/null && {
55656          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
55657          test ! -s conftest.err
55658        }; then
55659   ac_header_preproc=yes
55660 else
55661   $as_echo "$as_me: failed program was:" >&5
55662 sed 's/^/| /' conftest.$ac_ext >&5
55663
55664   ac_header_preproc=no
55665 fi
55666
55667 rm -f conftest.err conftest.$ac_ext
55668 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55669 $as_echo "$ac_header_preproc" >&6; }
55670
55671 # So?  What about this header?
55672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55673   yes:no: )
55674     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55675 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55676     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
55677 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
55678     ac_header_preproc=yes
55679     ;;
55680   no:yes:* )
55681     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55682 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55683     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
55684 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
55685     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
55686 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
55687     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
55688 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
55689     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55690 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55691     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
55692 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
55693
55694     ;;
55695 esac
55696 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55697 $as_echo_n "checking for $ac_header... " >&6; }
55698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55699   $as_echo_n "(cached) " >&6
55700 else
55701   eval "$as_ac_Header=\$ac_header_preproc"
55702 fi
55703 ac_res=`eval 'as_val=${'$as_ac_Header'}
55704                  $as_echo "$as_val"'`
55705                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55706 $as_echo "$ac_res" >&6; }
55707
55708 fi
55709 as_val=`eval 'as_val=${'$as_ac_Header'}
55710                  $as_echo "$as_val"'`
55711    if test "x$as_val" = x""yes; then
55712   cat >>confdefs.h <<_ACEOF
55713 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
55714 _ACEOF
55715
55716 fi
55717
55718 done
55719
55720     { $as_echo "$as_me:$LINENO: checking whether wait uses int" >&5
55721 $as_echo_n "checking whether wait uses int... " >&6; }
55722 if test "${cf_cv_arg_int+set}" = set; then
55723   $as_echo_n "(cached) " >&6
55724 else
55725
55726         cat >conftest.$ac_ext <<_ACEOF
55727 /* confdefs.h.  */
55728 _ACEOF
55729 cat confdefs.h >>conftest.$ac_ext
55730 cat >>conftest.$ac_ext <<_ACEOF
55731 /* end confdefs.h.  */
55732
55733 #include <sys/types.h>
55734
55735 #if HAVE_SYS_WAIT_H
55736 # include <sys/wait.h>
55737 #else
55738 # if HAVE_WAIT_H
55739 #  include <wait.h>
55740 # endif
55741 #endif
55742
55743 #ifdef __STDC__
55744 pid_t wait(int *);
55745 #endif
55746
55747 int
55748 main ()
55749 {
55750
55751   int x; int i;
55752   wait(&x); i = WIFEXITED(x)
55753
55754   ;
55755   return 0;
55756 }
55757 _ACEOF
55758 rm -f conftest.$ac_objext
55759 if { (ac_try="$ac_compile"
55760 case "(($ac_try" in
55761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55762   *) ac_try_echo=$ac_try;;
55763 esac
55764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55765 $as_echo "$ac_try_echo") >&5
55766   (eval "$ac_compile") 2>conftest.er1
55767   ac_status=$?
55768   grep -v '^ *+' conftest.er1 >conftest.err
55769   rm -f conftest.er1
55770   cat conftest.err >&5
55771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55772   (exit $ac_status); } && {
55773          test -z "$ac_c_werror_flag" ||
55774          test ! -s conftest.err
55775        } && test -s conftest.$ac_objext; then
55776   cf_cv_arg_int=yes
55777 else
55778   $as_echo "$as_me: failed program was:" >&5
55779 sed 's/^/| /' conftest.$ac_ext >&5
55780
55781         cf_cv_arg_int=no
55782 fi
55783
55784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55785 fi
55786 { $as_echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
55787 $as_echo "$cf_cv_arg_int" >&6; }
55788 if test $cf_cv_arg_int = yes; then
55789
55790 cat >>confdefs.h <<\_ACEOF
55791 #define WAIT_USES_INT 1
55792 _ACEOF
55793
55794 fi
55795
55796
55797 #
55798 # Libraries
55799 #
55800 # cur_colr is on some HP's
55801
55802 { $as_echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
55803 $as_echo_n "checking for main in -lcur_colr... " >&6; }
55804 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
55805   $as_echo_n "(cached) " >&6
55806 else
55807   ac_check_lib_save_LIBS=$LIBS
55808 LIBS="-lcur_colr  $LIBS"
55809 cat >conftest.$ac_ext <<_ACEOF
55810 /* confdefs.h.  */
55811 _ACEOF
55812 cat confdefs.h >>conftest.$ac_ext
55813 cat >>conftest.$ac_ext <<_ACEOF
55814 /* end confdefs.h.  */
55815
55816
55817 int
55818 main ()
55819 {
55820 return main ();
55821   ;
55822   return 0;
55823 }
55824 _ACEOF
55825 rm -f conftest.$ac_objext conftest$ac_exeext
55826 if { (ac_try="$ac_link"
55827 case "(($ac_try" in
55828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55829   *) ac_try_echo=$ac_try;;
55830 esac
55831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55832 $as_echo "$ac_try_echo") >&5
55833   (eval "$ac_link") 2>conftest.er1
55834   ac_status=$?
55835   grep -v '^ *+' conftest.er1 >conftest.err
55836   rm -f conftest.er1
55837   cat conftest.err >&5
55838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55839   (exit $ac_status); } && {
55840          test -z "$ac_c_werror_flag" ||
55841          test ! -s conftest.err
55842        } && test -s conftest$ac_exeext && {
55843          test "$cross_compiling" = yes ||
55844          $as_test_x conftest$ac_exeext
55845        }; then
55846   ac_cv_lib_cur_colr_main=yes
55847 else
55848   $as_echo "$as_me: failed program was:" >&5
55849 sed 's/^/| /' conftest.$ac_ext >&5
55850
55851         ac_cv_lib_cur_colr_main=no
55852 fi
55853
55854 rm -rf conftest.dSYM
55855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55856       conftest$ac_exeext conftest.$ac_ext
55857 LIBS=$ac_check_lib_save_LIBS
55858 fi
55859 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
55860 $as_echo "$ac_cv_lib_cur_colr_main" >&6; }
55861 if test "x$ac_cv_lib_cur_colr_main" = x""yes; then
55862   cat >>confdefs.h <<_ACEOF
55863 #define HAVE_LIBCUR_COLR 1
55864 _ACEOF
55865
55866   LIBS="-lcur_colr $LIBS"
55867
55868 fi
55869
55870
55871 { $as_echo "$as_me:$LINENO: checking for main in -lintl" >&5
55872 $as_echo_n "checking for main in -lintl... " >&6; }
55873 if test "${ac_cv_lib_intl_main+set}" = set; then
55874   $as_echo_n "(cached) " >&6
55875 else
55876   ac_check_lib_save_LIBS=$LIBS
55877 LIBS="-lintl  $LIBS"
55878 cat >conftest.$ac_ext <<_ACEOF
55879 /* confdefs.h.  */
55880 _ACEOF
55881 cat confdefs.h >>conftest.$ac_ext
55882 cat >>conftest.$ac_ext <<_ACEOF
55883 /* end confdefs.h.  */
55884
55885
55886 int
55887 main ()
55888 {
55889 return main ();
55890   ;
55891   return 0;
55892 }
55893 _ACEOF
55894 rm -f conftest.$ac_objext conftest$ac_exeext
55895 if { (ac_try="$ac_link"
55896 case "(($ac_try" in
55897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55898   *) ac_try_echo=$ac_try;;
55899 esac
55900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55901 $as_echo "$ac_try_echo") >&5
55902   (eval "$ac_link") 2>conftest.er1
55903   ac_status=$?
55904   grep -v '^ *+' conftest.er1 >conftest.err
55905   rm -f conftest.er1
55906   cat conftest.err >&5
55907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55908   (exit $ac_status); } && {
55909          test -z "$ac_c_werror_flag" ||
55910          test ! -s conftest.err
55911        } && test -s conftest$ac_exeext && {
55912          test "$cross_compiling" = yes ||
55913          $as_test_x conftest$ac_exeext
55914        }; then
55915   ac_cv_lib_intl_main=yes
55916 else
55917   $as_echo "$as_me: failed program was:" >&5
55918 sed 's/^/| /' conftest.$ac_ext >&5
55919
55920         ac_cv_lib_intl_main=no
55921 fi
55922
55923 rm -rf conftest.dSYM
55924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55925       conftest$ac_exeext conftest.$ac_ext
55926 LIBS=$ac_check_lib_save_LIBS
55927 fi
55928 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
55929 $as_echo "$ac_cv_lib_intl_main" >&6; }
55930 if test "x$ac_cv_lib_intl_main" = x""yes; then
55931   cat >>confdefs.h <<_ACEOF
55932 #define HAVE_LIBINTL 1
55933 _ACEOF
55934
55935   LIBS="-lintl $LIBS"
55936
55937 fi
55938
55939
55940     # Make sure we don't use -lnsl and -lsun on Irix systems.
55941     case "$target" in
55942         *sgi-irix*)
55943
55944 { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
55945 $as_echo_n "checking for main in -lsocket... " >&6; }
55946 if test "${ac_cv_lib_socket_main+set}" = set; then
55947   $as_echo_n "(cached) " >&6
55948 else
55949   ac_check_lib_save_LIBS=$LIBS
55950 LIBS="-lsocket  $LIBS"
55951 cat >conftest.$ac_ext <<_ACEOF
55952 /* confdefs.h.  */
55953 _ACEOF
55954 cat confdefs.h >>conftest.$ac_ext
55955 cat >>conftest.$ac_ext <<_ACEOF
55956 /* end confdefs.h.  */
55957
55958
55959 int
55960 main ()
55961 {
55962 return main ();
55963   ;
55964   return 0;
55965 }
55966 _ACEOF
55967 rm -f conftest.$ac_objext conftest$ac_exeext
55968 if { (ac_try="$ac_link"
55969 case "(($ac_try" in
55970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55971   *) ac_try_echo=$ac_try;;
55972 esac
55973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55974 $as_echo "$ac_try_echo") >&5
55975   (eval "$ac_link") 2>conftest.er1
55976   ac_status=$?
55977   grep -v '^ *+' conftest.er1 >conftest.err
55978   rm -f conftest.er1
55979   cat conftest.err >&5
55980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55981   (exit $ac_status); } && {
55982          test -z "$ac_c_werror_flag" ||
55983          test ! -s conftest.err
55984        } && test -s conftest$ac_exeext && {
55985          test "$cross_compiling" = yes ||
55986          $as_test_x conftest$ac_exeext
55987        }; then
55988   ac_cv_lib_socket_main=yes
55989 else
55990   $as_echo "$as_me: failed program was:" >&5
55991 sed 's/^/| /' conftest.$ac_ext >&5
55992
55993         ac_cv_lib_socket_main=no
55994 fi
55995
55996 rm -rf conftest.dSYM
55997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55998       conftest$ac_exeext conftest.$ac_ext
55999 LIBS=$ac_check_lib_save_LIBS
56000 fi
56001 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
56002 $as_echo "$ac_cv_lib_socket_main" >&6; }
56003 if test "x$ac_cv_lib_socket_main" = x""yes; then
56004   cat >>confdefs.h <<_ACEOF
56005 #define HAVE_LIBSOCKET 1
56006 _ACEOF
56007
56008   LIBS="-lsocket $LIBS"
56009
56010 fi
56011
56012                             ;;
56013         *)
56014
56015 { $as_echo "$as_me:$LINENO: checking for main in -lresolv" >&5
56016 $as_echo_n "checking for main in -lresolv... " >&6; }
56017 if test "${ac_cv_lib_resolv_main+set}" = set; then
56018   $as_echo_n "(cached) " >&6
56019 else
56020   ac_check_lib_save_LIBS=$LIBS
56021 LIBS="-lresolv  $LIBS"
56022 cat >conftest.$ac_ext <<_ACEOF
56023 /* confdefs.h.  */
56024 _ACEOF
56025 cat confdefs.h >>conftest.$ac_ext
56026 cat >>conftest.$ac_ext <<_ACEOF
56027 /* end confdefs.h.  */
56028
56029
56030 int
56031 main ()
56032 {
56033 return main ();
56034   ;
56035   return 0;
56036 }
56037 _ACEOF
56038 rm -f conftest.$ac_objext conftest$ac_exeext
56039 if { (ac_try="$ac_link"
56040 case "(($ac_try" in
56041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56042   *) ac_try_echo=$ac_try;;
56043 esac
56044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56045 $as_echo "$ac_try_echo") >&5
56046   (eval "$ac_link") 2>conftest.er1
56047   ac_status=$?
56048   grep -v '^ *+' conftest.er1 >conftest.err
56049   rm -f conftest.er1
56050   cat conftest.err >&5
56051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56052   (exit $ac_status); } && {
56053          test -z "$ac_c_werror_flag" ||
56054          test ! -s conftest.err
56055        } && test -s conftest$ac_exeext && {
56056          test "$cross_compiling" = yes ||
56057          $as_test_x conftest$ac_exeext
56058        }; then
56059   ac_cv_lib_resolv_main=yes
56060 else
56061   $as_echo "$as_me: failed program was:" >&5
56062 sed 's/^/| /' conftest.$ac_ext >&5
56063
56064         ac_cv_lib_resolv_main=no
56065 fi
56066
56067 rm -rf conftest.dSYM
56068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56069       conftest$ac_exeext conftest.$ac_ext
56070 LIBS=$ac_check_lib_save_LIBS
56071 fi
56072 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
56073 $as_echo "$ac_cv_lib_resolv_main" >&6; }
56074 if test "x$ac_cv_lib_resolv_main" = x""yes; then
56075   cat >>confdefs.h <<_ACEOF
56076 #define HAVE_LIBRESOLV 1
56077 _ACEOF
56078
56079   LIBS="-lresolv $LIBS"
56080
56081 fi
56082
56083
56084 { $as_echo "$as_me:$LINENO: checking for main in -lnsl" >&5
56085 $as_echo_n "checking for main in -lnsl... " >&6; }
56086 if test "${ac_cv_lib_nsl_main+set}" = set; then
56087   $as_echo_n "(cached) " >&6
56088 else
56089   ac_check_lib_save_LIBS=$LIBS
56090 LIBS="-lnsl  $LIBS"
56091 cat >conftest.$ac_ext <<_ACEOF
56092 /* confdefs.h.  */
56093 _ACEOF
56094 cat confdefs.h >>conftest.$ac_ext
56095 cat >>conftest.$ac_ext <<_ACEOF
56096 /* end confdefs.h.  */
56097
56098
56099 int
56100 main ()
56101 {
56102 return main ();
56103   ;
56104   return 0;
56105 }
56106 _ACEOF
56107 rm -f conftest.$ac_objext conftest$ac_exeext
56108 if { (ac_try="$ac_link"
56109 case "(($ac_try" in
56110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56111   *) ac_try_echo=$ac_try;;
56112 esac
56113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56114 $as_echo "$ac_try_echo") >&5
56115   (eval "$ac_link") 2>conftest.er1
56116   ac_status=$?
56117   grep -v '^ *+' conftest.er1 >conftest.err
56118   rm -f conftest.er1
56119   cat conftest.err >&5
56120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56121   (exit $ac_status); } && {
56122          test -z "$ac_c_werror_flag" ||
56123          test ! -s conftest.err
56124        } && test -s conftest$ac_exeext && {
56125          test "$cross_compiling" = yes ||
56126          $as_test_x conftest$ac_exeext
56127        }; then
56128   ac_cv_lib_nsl_main=yes
56129 else
56130   $as_echo "$as_me: failed program was:" >&5
56131 sed 's/^/| /' conftest.$ac_ext >&5
56132
56133         ac_cv_lib_nsl_main=no
56134 fi
56135
56136 rm -rf conftest.dSYM
56137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56138       conftest$ac_exeext conftest.$ac_ext
56139 LIBS=$ac_check_lib_save_LIBS
56140 fi
56141 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
56142 $as_echo "$ac_cv_lib_nsl_main" >&6; }
56143 if test "x$ac_cv_lib_nsl_main" = x""yes; then
56144   cat >>confdefs.h <<_ACEOF
56145 #define HAVE_LIBNSL 1
56146 _ACEOF
56147
56148   LIBS="-lnsl $LIBS"
56149
56150 fi
56151
56152
56153 { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
56154 $as_echo_n "checking for main in -lsocket... " >&6; }
56155 if test "${ac_cv_lib_socket_main+set}" = set; then
56156   $as_echo_n "(cached) " >&6
56157 else
56158   ac_check_lib_save_LIBS=$LIBS
56159 LIBS="-lsocket  $LIBS"
56160 cat >conftest.$ac_ext <<_ACEOF
56161 /* confdefs.h.  */
56162 _ACEOF
56163 cat confdefs.h >>conftest.$ac_ext
56164 cat >>conftest.$ac_ext <<_ACEOF
56165 /* end confdefs.h.  */
56166
56167
56168 int
56169 main ()
56170 {
56171 return main ();
56172   ;
56173   return 0;
56174 }
56175 _ACEOF
56176 rm -f conftest.$ac_objext conftest$ac_exeext
56177 if { (ac_try="$ac_link"
56178 case "(($ac_try" in
56179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56180   *) ac_try_echo=$ac_try;;
56181 esac
56182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56183 $as_echo "$ac_try_echo") >&5
56184   (eval "$ac_link") 2>conftest.er1
56185   ac_status=$?
56186   grep -v '^ *+' conftest.er1 >conftest.err
56187   rm -f conftest.er1
56188   cat conftest.err >&5
56189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56190   (exit $ac_status); } && {
56191          test -z "$ac_c_werror_flag" ||
56192          test ! -s conftest.err
56193        } && test -s conftest$ac_exeext && {
56194          test "$cross_compiling" = yes ||
56195          $as_test_x conftest$ac_exeext
56196        }; then
56197   ac_cv_lib_socket_main=yes
56198 else
56199   $as_echo "$as_me: failed program was:" >&5
56200 sed 's/^/| /' conftest.$ac_ext >&5
56201
56202         ac_cv_lib_socket_main=no
56203 fi
56204
56205 rm -rf conftest.dSYM
56206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56207       conftest$ac_exeext conftest.$ac_ext
56208 LIBS=$ac_check_lib_save_LIBS
56209 fi
56210 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
56211 $as_echo "$ac_cv_lib_socket_main" >&6; }
56212 if test "x$ac_cv_lib_socket_main" = x""yes; then
56213   cat >>confdefs.h <<_ACEOF
56214 #define HAVE_LIBSOCKET 1
56215 _ACEOF
56216
56217   LIBS="-lsocket $LIBS"
56218
56219 fi
56220
56221
56222 { $as_echo "$as_me:$LINENO: checking for main in -lsun" >&5
56223 $as_echo_n "checking for main in -lsun... " >&6; }
56224 if test "${ac_cv_lib_sun_main+set}" = set; then
56225   $as_echo_n "(cached) " >&6
56226 else
56227   ac_check_lib_save_LIBS=$LIBS
56228 LIBS="-lsun  $LIBS"
56229 cat >conftest.$ac_ext <<_ACEOF
56230 /* confdefs.h.  */
56231 _ACEOF
56232 cat confdefs.h >>conftest.$ac_ext
56233 cat >>conftest.$ac_ext <<_ACEOF
56234 /* end confdefs.h.  */
56235
56236
56237 int
56238 main ()
56239 {
56240 return main ();
56241   ;
56242   return 0;
56243 }
56244 _ACEOF
56245 rm -f conftest.$ac_objext conftest$ac_exeext
56246 if { (ac_try="$ac_link"
56247 case "(($ac_try" in
56248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56249   *) ac_try_echo=$ac_try;;
56250 esac
56251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56252 $as_echo "$ac_try_echo") >&5
56253   (eval "$ac_link") 2>conftest.er1
56254   ac_status=$?
56255   grep -v '^ *+' conftest.er1 >conftest.err
56256   rm -f conftest.er1
56257   cat conftest.err >&5
56258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56259   (exit $ac_status); } && {
56260          test -z "$ac_c_werror_flag" ||
56261          test ! -s conftest.err
56262        } && test -s conftest$ac_exeext && {
56263          test "$cross_compiling" = yes ||
56264          $as_test_x conftest$ac_exeext
56265        }; then
56266   ac_cv_lib_sun_main=yes
56267 else
56268   $as_echo "$as_me: failed program was:" >&5
56269 sed 's/^/| /' conftest.$ac_ext >&5
56270
56271         ac_cv_lib_sun_main=no
56272 fi
56273
56274 rm -rf conftest.dSYM
56275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56276       conftest$ac_exeext conftest.$ac_ext
56277 LIBS=$ac_check_lib_save_LIBS
56278 fi
56279 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
56280 $as_echo "$ac_cv_lib_sun_main" >&6; }
56281 if test "x$ac_cv_lib_sun_main" = x""yes; then
56282   cat >>confdefs.h <<_ACEOF
56283 #define HAVE_LIBSUN 1
56284 _ACEOF
56285
56286   LIBS="-lsun $LIBS"
56287
56288 fi
56289
56290                             ;;
56291     esac
56292
56293
56294     # search for pkg-config, which the glib configuration uses, adding a few
56295     # system-specific search paths.
56296     # Extract the first word of "pkg-config", so it can be a program name with args.
56297 set dummy pkg-config; ac_word=$2
56298 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
56299 $as_echo_n "checking for $ac_word... " >&6; }
56300 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
56301   $as_echo_n "(cached) " >&6
56302 else
56303   case $PKG_CONFIG in
56304   [\\/]* | ?:[\\/]*)
56305   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
56306   ;;
56307   *)
56308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56309 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
56310 for as_dir in $as_dummy
56311 do
56312   IFS=$as_save_IFS
56313   test -z "$as_dir" && as_dir=.
56314   for ac_exec_ext in '' $ac_executable_extensions; do
56315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
56316     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
56317     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56318     break 2
56319   fi
56320 done
56321 done
56322 IFS=$as_save_IFS
56323
56324   ;;
56325 esac
56326 fi
56327 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
56328 if test -n "$PKG_CONFIG"; then
56329   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
56330 $as_echo "$PKG_CONFIG" >&6; }
56331 else
56332   { $as_echo "$as_me:$LINENO: result: no" >&5
56333 $as_echo "no" >&6; }
56334 fi
56335
56336
56337
56338     case "$target" in
56339         sparc-sun-solaris2.8) # Solaris 8
56340             # give the linker a runtime search path; pkg-config doesn't supply this.
56341             # Users could also specify this with LD_LIBRARY_PATH to both ./configure
56342             # and make.  Adding this support here makes straight './configure; make'
56343             # "just work" on Solaris 8
56344             if test -n "$PKG_CONFIG"; then
56345                 glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
56346                 LDFLAGS="$LDFLAGS $glib_R_flag"
56347             fi
56348             ;;
56349     esac
56350
56351     # Check whether --enable-glibtest was given.
56352 if test "${enable_glibtest+set}" = set; then
56353   enableval=$enable_glibtest;
56354 else
56355   enable_glibtest=yes
56356 fi
56357
56358
56359   pkg_config_args=glib-2.0
56360   for module in . gmodule gobject gthread
56361   do
56362       case "$module" in
56363          gmodule)
56364              pkg_config_args="$pkg_config_args gmodule-2.0"
56365          ;;
56366          gmodule-no-export)
56367              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
56368          ;;
56369          gobject)
56370              pkg_config_args="$pkg_config_args gobject-2.0"
56371          ;;
56372          gthread)
56373              pkg_config_args="$pkg_config_args gthread-2.0"
56374          ;;
56375          gio*)
56376              pkg_config_args="$pkg_config_args $module-2.0"
56377          ;;
56378       esac
56379   done
56380
56381
56382
56383 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
56384         if test -n "$ac_tool_prefix"; then
56385   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
56386 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
56387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
56388 $as_echo_n "checking for $ac_word... " >&6; }
56389 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
56390   $as_echo_n "(cached) " >&6
56391 else
56392   case $PKG_CONFIG in
56393   [\\/]* | ?:[\\/]*)
56394   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
56395   ;;
56396   *)
56397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56398 for as_dir in $PATH
56399 do
56400   IFS=$as_save_IFS
56401   test -z "$as_dir" && as_dir=.
56402   for ac_exec_ext in '' $ac_executable_extensions; do
56403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
56404     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
56405     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56406     break 2
56407   fi
56408 done
56409 done
56410 IFS=$as_save_IFS
56411
56412   ;;
56413 esac
56414 fi
56415 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
56416 if test -n "$PKG_CONFIG"; then
56417   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
56418 $as_echo "$PKG_CONFIG" >&6; }
56419 else
56420   { $as_echo "$as_me:$LINENO: result: no" >&5
56421 $as_echo "no" >&6; }
56422 fi
56423
56424
56425 fi
56426 if test -z "$ac_cv_path_PKG_CONFIG"; then
56427   ac_pt_PKG_CONFIG=$PKG_CONFIG
56428   # Extract the first word of "pkg-config", so it can be a program name with args.
56429 set dummy pkg-config; ac_word=$2
56430 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
56431 $as_echo_n "checking for $ac_word... " >&6; }
56432 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
56433   $as_echo_n "(cached) " >&6
56434 else
56435   case $ac_pt_PKG_CONFIG in
56436   [\\/]* | ?:[\\/]*)
56437   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
56438   ;;
56439   *)
56440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56441 for as_dir in $PATH
56442 do
56443   IFS=$as_save_IFS
56444   test -z "$as_dir" && as_dir=.
56445   for ac_exec_ext in '' $ac_executable_extensions; do
56446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
56447     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
56448     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56449     break 2
56450   fi
56451 done
56452 done
56453 IFS=$as_save_IFS
56454
56455   ;;
56456 esac
56457 fi
56458 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
56459 if test -n "$ac_pt_PKG_CONFIG"; then
56460   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
56461 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
56462 else
56463   { $as_echo "$as_me:$LINENO: result: no" >&5
56464 $as_echo "no" >&6; }
56465 fi
56466
56467   if test "x$ac_pt_PKG_CONFIG" = x; then
56468     PKG_CONFIG=""
56469   else
56470     case $cross_compiling:$ac_tool_warned in
56471 yes:)
56472 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
56473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
56474 ac_tool_warned=yes ;;
56475 esac
56476     PKG_CONFIG=$ac_pt_PKG_CONFIG
56477   fi
56478 else
56479   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
56480 fi
56481
56482 fi
56483 if test -n "$PKG_CONFIG"; then
56484         _pkg_min_version=0.7
56485         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
56486 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
56487         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
56488                 { $as_echo "$as_me:$LINENO: result: yes" >&5
56489 $as_echo "yes" >&6; }
56490         else
56491                 { $as_echo "$as_me:$LINENO: result: no" >&5
56492 $as_echo "no" >&6; }
56493                 PKG_CONFIG=""
56494         fi
56495
56496 fi
56497
56498   no_glib=""
56499
56500   if test "x$PKG_CONFIG" = x ; then
56501     no_glib=yes
56502     PKG_CONFIG=no
56503   fi
56504
56505   min_glib_version=2.2.0
56506   { $as_echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
56507 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
56508
56509   if test x$PKG_CONFIG != xno ; then
56510     ## don't try to run the test against uninstalled libtool libs
56511     if $PKG_CONFIG --uninstalled $pkg_config_args; then
56512           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
56513           enable_glibtest=no
56514     fi
56515
56516     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
56517           :
56518     else
56519           no_glib=yes
56520     fi
56521   fi
56522
56523   if test x"$no_glib" = x ; then
56524     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
56525     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
56526     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
56527
56528     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
56529     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
56530     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
56531            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
56532     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
56533            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
56534     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
56535            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
56536     if test "x$enable_glibtest" = "xyes" ; then
56537       ac_save_CFLAGS="$CFLAGS"
56538       ac_save_LIBS="$LIBS"
56539       CFLAGS="$CFLAGS $GLIB_CFLAGS"
56540       LIBS="$GLIB_LIBS $LIBS"
56541       rm -f conf.glibtest
56542       if test "$cross_compiling" = yes; then
56543   echo $ac_n "cross compiling; assumed OK... $ac_c"
56544 else
56545   cat >conftest.$ac_ext <<_ACEOF
56546 /* confdefs.h.  */
56547 _ACEOF
56548 cat confdefs.h >>conftest.$ac_ext
56549 cat >>conftest.$ac_ext <<_ACEOF
56550 /* end confdefs.h.  */
56551
56552 #include <glib.h>
56553 #include <stdio.h>
56554 #include <stdlib.h>
56555
56556 int
56557 main ()
56558 {
56559   int major, minor, micro;
56560   char *tmp_version;
56561
56562   system ("touch conf.glibtest");
56563
56564   /* HP/UX 9 (%@#!) writes to sscanf strings */
56565   tmp_version = g_strdup("$min_glib_version");
56566   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
56567      printf("%s, bad version string\n", "$min_glib_version");
56568      exit(1);
56569    }
56570
56571   if ((glib_major_version != $glib_config_major_version) ||
56572       (glib_minor_version != $glib_config_minor_version) ||
56573       (glib_micro_version != $glib_config_micro_version))
56574     {
56575       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
56576              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
56577              glib_major_version, glib_minor_version, glib_micro_version);
56578       printf ("*** was found! If pkg-config was correct, then it is best\n");
56579       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
56580       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
56581       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
56582       printf("*** required on your system.\n");
56583       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
56584       printf("*** to point to the correct configuration files\n");
56585     }
56586   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
56587            (glib_minor_version != GLIB_MINOR_VERSION) ||
56588            (glib_micro_version != GLIB_MICRO_VERSION))
56589     {
56590       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
56591              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
56592       printf("*** library (version %d.%d.%d)\n",
56593              glib_major_version, glib_minor_version, glib_micro_version);
56594     }
56595   else
56596     {
56597       if ((glib_major_version > major) ||
56598         ((glib_major_version == major) && (glib_minor_version > minor)) ||
56599         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
56600       {
56601         return 0;
56602        }
56603      else
56604       {
56605         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
56606                glib_major_version, glib_minor_version, glib_micro_version);
56607         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
56608                major, minor, micro);
56609         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
56610         printf("***\n");
56611         printf("*** If you have already installed a sufficiently new version, this error\n");
56612         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
56613         printf("*** being found. The easiest way to fix this is to remove the old version\n");
56614         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
56615         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
56616         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
56617         printf("*** so that the correct libraries are found at run-time))\n");
56618       }
56619     }
56620   return 1;
56621 }
56622
56623 _ACEOF
56624 rm -f conftest$ac_exeext
56625 if { (ac_try="$ac_link"
56626 case "(($ac_try" in
56627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56628   *) ac_try_echo=$ac_try;;
56629 esac
56630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56631 $as_echo "$ac_try_echo") >&5
56632   (eval "$ac_link") 2>&5
56633   ac_status=$?
56634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56635   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56636   { (case "(($ac_try" in
56637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56638   *) ac_try_echo=$ac_try;;
56639 esac
56640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56641 $as_echo "$ac_try_echo") >&5
56642   (eval "$ac_try") 2>&5
56643   ac_status=$?
56644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56645   (exit $ac_status); }; }; then
56646   :
56647 else
56648   $as_echo "$as_me: program exited with status $ac_status" >&5
56649 $as_echo "$as_me: failed program was:" >&5
56650 sed 's/^/| /' conftest.$ac_ext >&5
56651
56652 ( exit $ac_status )
56653 no_glib=yes
56654 fi
56655 rm -rf conftest.dSYM
56656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56657 fi
56658
56659
56660        CFLAGS="$ac_save_CFLAGS"
56661        LIBS="$ac_save_LIBS"
56662      fi
56663   fi
56664   if test "x$no_glib" = x ; then
56665      { $as_echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
56666 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
56667      :
56668   else
56669      { $as_echo "$as_me:$LINENO: result: no" >&5
56670 $as_echo "no" >&6; }
56671      if test "$PKG_CONFIG" = "no" ; then
56672        echo "*** A new enough version of pkg-config was not found."
56673        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
56674      else
56675        if test -f conf.glibtest ; then
56676         :
56677        else
56678           echo "*** Could not run GLIB test program, checking why..."
56679           ac_save_CFLAGS="$CFLAGS"
56680           ac_save_LIBS="$LIBS"
56681           CFLAGS="$CFLAGS $GLIB_CFLAGS"
56682           LIBS="$LIBS $GLIB_LIBS"
56683           cat >conftest.$ac_ext <<_ACEOF
56684 /* confdefs.h.  */
56685 _ACEOF
56686 cat confdefs.h >>conftest.$ac_ext
56687 cat >>conftest.$ac_ext <<_ACEOF
56688 /* end confdefs.h.  */
56689
56690 #include <glib.h>
56691 #include <stdio.h>
56692
56693 int
56694 main ()
56695 {
56696  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
56697   ;
56698   return 0;
56699 }
56700 _ACEOF
56701 rm -f conftest.$ac_objext conftest$ac_exeext
56702 if { (ac_try="$ac_link"
56703 case "(($ac_try" in
56704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56705   *) ac_try_echo=$ac_try;;
56706 esac
56707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56708 $as_echo "$ac_try_echo") >&5
56709   (eval "$ac_link") 2>conftest.er1
56710   ac_status=$?
56711   grep -v '^ *+' conftest.er1 >conftest.err
56712   rm -f conftest.er1
56713   cat conftest.err >&5
56714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56715   (exit $ac_status); } && {
56716          test -z "$ac_c_werror_flag" ||
56717          test ! -s conftest.err
56718        } && test -s conftest$ac_exeext && {
56719          test "$cross_compiling" = yes ||
56720          $as_test_x conftest$ac_exeext
56721        }; then
56722    echo "*** The test program compiled, but did not run. This usually means"
56723           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
56724           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
56725           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
56726           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
56727           echo "*** is required on your system"
56728           echo "***"
56729           echo "*** If you have an old version installed, it is best to remove it, although"
56730           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
56731 else
56732   $as_echo "$as_me: failed program was:" >&5
56733 sed 's/^/| /' conftest.$ac_ext >&5
56734
56735          echo "*** The test program failed to compile or link. See the file config.log for the"
56736           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
56737 fi
56738
56739 rm -rf conftest.dSYM
56740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56741       conftest$ac_exeext conftest.$ac_ext
56742           CFLAGS="$ac_save_CFLAGS"
56743           LIBS="$ac_save_LIBS"
56744        fi
56745      fi
56746      GLIB_CFLAGS=""
56747      GLIB_LIBS=""
56748      GLIB_GENMARSHAL=""
56749      GOBJECT_QUERY=""
56750      GLIB_MKENUMS=""
56751
56752         { { $as_echo "$as_me:$LINENO: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&5
56753 $as_echo "$as_me: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&2;}
56754    { (exit 1); exit 1; }; }
56755
56756   fi
56757
56758
56759
56760
56761
56762   rm -f conf.glibtest
56763
56764     # GLIB_CPPFLAGS is not set by autoconf, yet GLIB_CFLAGS contains what GLIB_CPPFLAGS should contain.
56765     CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
56766
56767     LIBS="$GLIB_LIBS $LIBS"
56768
56769
56770
56771
56772 # Check whether --with-readline was given.
56773 if test "${with_readline+set}" = set; then
56774   withval=$with_readline;
56775             case "$withval" in
56776                 y | ye | yes | n | no) : ;;
56777                 *) { { $as_echo "$as_me:$LINENO: error: *** --with-readline does not take a value" >&5
56778 $as_echo "$as_me: error: *** --with-readline does not take a value" >&2;}
56779    { (exit 1); exit 1; }; }
56780             esac
56781             want_readline="$withval"
56782
56783 else
56784
56785             want_readline="maybe" # meaning "only if we can find it"
56786
56787 fi
56788
56789
56790     # unless the user said "no", look for readline.
56791     if test x"$want_readline" != x"no"; then
56792         # we need a tgetent() somewhere..
56793         proceed="false"
56794         { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
56795 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
56796 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
56797   $as_echo_n "(cached) " >&6
56798 else
56799   ac_check_lib_save_LIBS=$LIBS
56800 LIBS="-ltermcap  $LIBS"
56801 cat >conftest.$ac_ext <<_ACEOF
56802 /* confdefs.h.  */
56803 _ACEOF
56804 cat confdefs.h >>conftest.$ac_ext
56805 cat >>conftest.$ac_ext <<_ACEOF
56806 /* end confdefs.h.  */
56807
56808 /* Override any GCC internal prototype to avoid an error.
56809    Use char because int might match the return type of a GCC
56810    builtin and then its argument prototype would still apply.  */
56811 #ifdef __cplusplus
56812 extern "C"
56813 #endif
56814 char tgetent ();
56815 int
56816 main ()
56817 {
56818 return tgetent ();
56819   ;
56820   return 0;
56821 }
56822 _ACEOF
56823 rm -f conftest.$ac_objext conftest$ac_exeext
56824 if { (ac_try="$ac_link"
56825 case "(($ac_try" in
56826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56827   *) ac_try_echo=$ac_try;;
56828 esac
56829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56830 $as_echo "$ac_try_echo") >&5
56831   (eval "$ac_link") 2>conftest.er1
56832   ac_status=$?
56833   grep -v '^ *+' conftest.er1 >conftest.err
56834   rm -f conftest.er1
56835   cat conftest.err >&5
56836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56837   (exit $ac_status); } && {
56838          test -z "$ac_c_werror_flag" ||
56839          test ! -s conftest.err
56840        } && test -s conftest$ac_exeext && {
56841          test "$cross_compiling" = yes ||
56842          $as_test_x conftest$ac_exeext
56843        }; then
56844   ac_cv_lib_termcap_tgetent=yes
56845 else
56846   $as_echo "$as_me: failed program was:" >&5
56847 sed 's/^/| /' conftest.$ac_ext >&5
56848
56849         ac_cv_lib_termcap_tgetent=no
56850 fi
56851
56852 rm -rf conftest.dSYM
56853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56854       conftest$ac_exeext conftest.$ac_ext
56855 LIBS=$ac_check_lib_save_LIBS
56856 fi
56857 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
56858 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
56859 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
56860
56861             READLINE_LIBS="-ltermcap"
56862             proceed="true"
56863
56864 else
56865
56866             { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
56867 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
56868 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
56869   $as_echo_n "(cached) " >&6
56870 else
56871   ac_check_lib_save_LIBS=$LIBS
56872 LIBS="-lcurses  $LIBS"
56873 cat >conftest.$ac_ext <<_ACEOF
56874 /* confdefs.h.  */
56875 _ACEOF
56876 cat confdefs.h >>conftest.$ac_ext
56877 cat >>conftest.$ac_ext <<_ACEOF
56878 /* end confdefs.h.  */
56879
56880 /* Override any GCC internal prototype to avoid an error.
56881    Use char because int might match the return type of a GCC
56882    builtin and then its argument prototype would still apply.  */
56883 #ifdef __cplusplus
56884 extern "C"
56885 #endif
56886 char tgetent ();
56887 int
56888 main ()
56889 {
56890 return tgetent ();
56891   ;
56892   return 0;
56893 }
56894 _ACEOF
56895 rm -f conftest.$ac_objext conftest$ac_exeext
56896 if { (ac_try="$ac_link"
56897 case "(($ac_try" in
56898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56899   *) ac_try_echo=$ac_try;;
56900 esac
56901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56902 $as_echo "$ac_try_echo") >&5
56903   (eval "$ac_link") 2>conftest.er1
56904   ac_status=$?
56905   grep -v '^ *+' conftest.er1 >conftest.err
56906   rm -f conftest.er1
56907   cat conftest.err >&5
56908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56909   (exit $ac_status); } && {
56910          test -z "$ac_c_werror_flag" ||
56911          test ! -s conftest.err
56912        } && test -s conftest$ac_exeext && {
56913          test "$cross_compiling" = yes ||
56914          $as_test_x conftest$ac_exeext
56915        }; then
56916   ac_cv_lib_curses_tgetent=yes
56917 else
56918   $as_echo "$as_me: failed program was:" >&5
56919 sed 's/^/| /' conftest.$ac_ext >&5
56920
56921         ac_cv_lib_curses_tgetent=no
56922 fi
56923
56924 rm -rf conftest.dSYM
56925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56926       conftest$ac_exeext conftest.$ac_ext
56927 LIBS=$ac_check_lib_save_LIBS
56928 fi
56929 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
56930 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
56931 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
56932
56933                 READLINE_LIBS="-lcurses"
56934                 proceed="true"
56935
56936 else
56937
56938                 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
56939 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
56940 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
56941   $as_echo_n "(cached) " >&6
56942 else
56943   ac_check_lib_save_LIBS=$LIBS
56944 LIBS="-lncurses  $LIBS"
56945 cat >conftest.$ac_ext <<_ACEOF
56946 /* confdefs.h.  */
56947 _ACEOF
56948 cat confdefs.h >>conftest.$ac_ext
56949 cat >>conftest.$ac_ext <<_ACEOF
56950 /* end confdefs.h.  */
56951
56952 /* Override any GCC internal prototype to avoid an error.
56953    Use char because int might match the return type of a GCC
56954    builtin and then its argument prototype would still apply.  */
56955 #ifdef __cplusplus
56956 extern "C"
56957 #endif
56958 char tgetent ();
56959 int
56960 main ()
56961 {
56962 return tgetent ();
56963   ;
56964   return 0;
56965 }
56966 _ACEOF
56967 rm -f conftest.$ac_objext conftest$ac_exeext
56968 if { (ac_try="$ac_link"
56969 case "(($ac_try" in
56970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56971   *) ac_try_echo=$ac_try;;
56972 esac
56973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56974 $as_echo "$ac_try_echo") >&5
56975   (eval "$ac_link") 2>conftest.er1
56976   ac_status=$?
56977   grep -v '^ *+' conftest.er1 >conftest.err
56978   rm -f conftest.er1
56979   cat conftest.err >&5
56980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56981   (exit $ac_status); } && {
56982          test -z "$ac_c_werror_flag" ||
56983          test ! -s conftest.err
56984        } && test -s conftest$ac_exeext && {
56985          test "$cross_compiling" = yes ||
56986          $as_test_x conftest$ac_exeext
56987        }; then
56988   ac_cv_lib_ncurses_tgetent=yes
56989 else
56990   $as_echo "$as_me: failed program was:" >&5
56991 sed 's/^/| /' conftest.$ac_ext >&5
56992
56993         ac_cv_lib_ncurses_tgetent=no
56994 fi
56995
56996 rm -rf conftest.dSYM
56997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56998       conftest$ac_exeext conftest.$ac_ext
56999 LIBS=$ac_check_lib_save_LIBS
57000 fi
57001 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
57002 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
57003 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
57004
57005                     READLINE_LIBS="-lncurses"
57006                     proceed="true"
57007
57008 fi
57009
57010
57011 fi
57012
57013
57014 fi
57015
57016
57017         if $proceed; then
57018             proceed="false"
57019
57020
57021
57022
57023 for ac_header in history.h readline.h readline/history.h readline/readline.h
57024 do
57025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
57026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57027   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57028 $as_echo_n "checking for $ac_header... " >&6; }
57029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57030   $as_echo_n "(cached) " >&6
57031 fi
57032 ac_res=`eval 'as_val=${'$as_ac_Header'}
57033                  $as_echo "$as_val"'`
57034                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57035 $as_echo "$ac_res" >&6; }
57036 else
57037   # Is the header compilable?
57038 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
57039 $as_echo_n "checking $ac_header usability... " >&6; }
57040 cat >conftest.$ac_ext <<_ACEOF
57041 /* confdefs.h.  */
57042 _ACEOF
57043 cat confdefs.h >>conftest.$ac_ext
57044 cat >>conftest.$ac_ext <<_ACEOF
57045 /* end confdefs.h.  */
57046 $ac_includes_default
57047 #include <$ac_header>
57048 _ACEOF
57049 rm -f conftest.$ac_objext
57050 if { (ac_try="$ac_compile"
57051 case "(($ac_try" in
57052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57053   *) ac_try_echo=$ac_try;;
57054 esac
57055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57056 $as_echo "$ac_try_echo") >&5
57057   (eval "$ac_compile") 2>conftest.er1
57058   ac_status=$?
57059   grep -v '^ *+' conftest.er1 >conftest.err
57060   rm -f conftest.er1
57061   cat conftest.err >&5
57062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57063   (exit $ac_status); } && {
57064          test -z "$ac_c_werror_flag" ||
57065          test ! -s conftest.err
57066        } && test -s conftest.$ac_objext; then
57067   ac_header_compiler=yes
57068 else
57069   $as_echo "$as_me: failed program was:" >&5
57070 sed 's/^/| /' conftest.$ac_ext >&5
57071
57072         ac_header_compiler=no
57073 fi
57074
57075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57076 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57077 $as_echo "$ac_header_compiler" >&6; }
57078
57079 # Is the header present?
57080 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
57081 $as_echo_n "checking $ac_header presence... " >&6; }
57082 cat >conftest.$ac_ext <<_ACEOF
57083 /* confdefs.h.  */
57084 _ACEOF
57085 cat confdefs.h >>conftest.$ac_ext
57086 cat >>conftest.$ac_ext <<_ACEOF
57087 /* end confdefs.h.  */
57088 #include <$ac_header>
57089 _ACEOF
57090 if { (ac_try="$ac_cpp conftest.$ac_ext"
57091 case "(($ac_try" in
57092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57093   *) ac_try_echo=$ac_try;;
57094 esac
57095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57096 $as_echo "$ac_try_echo") >&5
57097   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57098   ac_status=$?
57099   grep -v '^ *+' conftest.er1 >conftest.err
57100   rm -f conftest.er1
57101   cat conftest.err >&5
57102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57103   (exit $ac_status); } >/dev/null && {
57104          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57105          test ! -s conftest.err
57106        }; then
57107   ac_header_preproc=yes
57108 else
57109   $as_echo "$as_me: failed program was:" >&5
57110 sed 's/^/| /' conftest.$ac_ext >&5
57111
57112   ac_header_preproc=no
57113 fi
57114
57115 rm -f conftest.err conftest.$ac_ext
57116 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57117 $as_echo "$ac_header_preproc" >&6; }
57118
57119 # So?  What about this header?
57120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57121   yes:no: )
57122     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57123 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57124     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
57125 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
57126     ac_header_preproc=yes
57127     ;;
57128   no:yes:* )
57129     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57130 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57131     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
57132 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
57133     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
57134 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
57135     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
57136 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
57137     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57138 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57139     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
57140 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
57141
57142     ;;
57143 esac
57144 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57145 $as_echo_n "checking for $ac_header... " >&6; }
57146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57147   $as_echo_n "(cached) " >&6
57148 else
57149   eval "$as_ac_Header=\$ac_header_preproc"
57150 fi
57151 ac_res=`eval 'as_val=${'$as_ac_Header'}
57152                  $as_echo "$as_val"'`
57153                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57154 $as_echo "$ac_res" >&6; }
57155
57156 fi
57157 as_val=`eval 'as_val=${'$as_ac_Header'}
57158                  $as_echo "$as_val"'`
57159    if test "x$as_val" = x""yes; then
57160   cat >>confdefs.h <<_ACEOF
57161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
57162 _ACEOF
57163
57164                 # found at least one of the headers, so we can proceed.
57165                 proceed="true"
57166
57167 fi
57168
57169 done
57170
57171         fi
57172
57173         if $proceed; then
57174             proceed="false"
57175             { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
57176 $as_echo_n "checking for readline in -lreadline... " >&6; }
57177 if test "${ac_cv_lib_readline_readline+set}" = set; then
57178   $as_echo_n "(cached) " >&6
57179 else
57180   ac_check_lib_save_LIBS=$LIBS
57181 LIBS="-lreadline $READLINE_LIBS $LIBS"
57182 cat >conftest.$ac_ext <<_ACEOF
57183 /* confdefs.h.  */
57184 _ACEOF
57185 cat confdefs.h >>conftest.$ac_ext
57186 cat >>conftest.$ac_ext <<_ACEOF
57187 /* end confdefs.h.  */
57188
57189 /* Override any GCC internal prototype to avoid an error.
57190    Use char because int might match the return type of a GCC
57191    builtin and then its argument prototype would still apply.  */
57192 #ifdef __cplusplus
57193 extern "C"
57194 #endif
57195 char readline ();
57196 int
57197 main ()
57198 {
57199 return readline ();
57200   ;
57201   return 0;
57202 }
57203 _ACEOF
57204 rm -f conftest.$ac_objext conftest$ac_exeext
57205 if { (ac_try="$ac_link"
57206 case "(($ac_try" in
57207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57208   *) ac_try_echo=$ac_try;;
57209 esac
57210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57211 $as_echo "$ac_try_echo") >&5
57212   (eval "$ac_link") 2>conftest.er1
57213   ac_status=$?
57214   grep -v '^ *+' conftest.er1 >conftest.err
57215   rm -f conftest.er1
57216   cat conftest.err >&5
57217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57218   (exit $ac_status); } && {
57219          test -z "$ac_c_werror_flag" ||
57220          test ! -s conftest.err
57221        } && test -s conftest$ac_exeext && {
57222          test "$cross_compiling" = yes ||
57223          $as_test_x conftest$ac_exeext
57224        }; then
57225   ac_cv_lib_readline_readline=yes
57226 else
57227   $as_echo "$as_me: failed program was:" >&5
57228 sed 's/^/| /' conftest.$ac_ext >&5
57229
57230         ac_cv_lib_readline_readline=no
57231 fi
57232
57233 rm -rf conftest.dSYM
57234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57235       conftest$ac_exeext conftest.$ac_ext
57236 LIBS=$ac_check_lib_save_LIBS
57237 fi
57238 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
57239 $as_echo "$ac_cv_lib_readline_readline" >&6; }
57240 if test "x$ac_cv_lib_readline_readline" = x""yes; then
57241
57242                 READLINE_LIBS="-lreadline $READLINE_LIBS"
57243                 proceed="true"
57244
57245 fi
57246
57247         fi
57248
57249         if $proceed; then
57250             # we have readline!
57251
57252 cat >>confdefs.h <<\_ACEOF
57253 #define HAVE_READLINE 1
57254 _ACEOF
57255
57256         else
57257             # no readline.  if the user *really* wanted it, bail out.
57258             if test x"$want_readline" = x"yes"; then
57259                 { { $as_echo "$as_me:$LINENO: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&5
57260 $as_echo "$as_me: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&2;}
57261    { (exit 1); exit 1; }; }
57262             fi
57263             READLINE_LIBS=""
57264         fi
57265     fi
57266
57267
57268
57269 { $as_echo "$as_me:$LINENO: checking for modf in -lm" >&5
57270 $as_echo_n "checking for modf in -lm... " >&6; }
57271 if test "${ac_cv_lib_m_modf+set}" = set; then
57272   $as_echo_n "(cached) " >&6
57273 else
57274   ac_check_lib_save_LIBS=$LIBS
57275 LIBS="-lm  $LIBS"
57276 cat >conftest.$ac_ext <<_ACEOF
57277 /* confdefs.h.  */
57278 _ACEOF
57279 cat confdefs.h >>conftest.$ac_ext
57280 cat >>conftest.$ac_ext <<_ACEOF
57281 /* end confdefs.h.  */
57282
57283 /* Override any GCC internal prototype to avoid an error.
57284    Use char because int might match the return type of a GCC
57285    builtin and then its argument prototype would still apply.  */
57286 #ifdef __cplusplus
57287 extern "C"
57288 #endif
57289 char modf ();
57290 int
57291 main ()
57292 {
57293 return modf ();
57294   ;
57295   return 0;
57296 }
57297 _ACEOF
57298 rm -f conftest.$ac_objext conftest$ac_exeext
57299 if { (ac_try="$ac_link"
57300 case "(($ac_try" in
57301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57302   *) ac_try_echo=$ac_try;;
57303 esac
57304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57305 $as_echo "$ac_try_echo") >&5
57306   (eval "$ac_link") 2>conftest.er1
57307   ac_status=$?
57308   grep -v '^ *+' conftest.er1 >conftest.err
57309   rm -f conftest.er1
57310   cat conftest.err >&5
57311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57312   (exit $ac_status); } && {
57313          test -z "$ac_c_werror_flag" ||
57314          test ! -s conftest.err
57315        } && test -s conftest$ac_exeext && {
57316          test "$cross_compiling" = yes ||
57317          $as_test_x conftest$ac_exeext
57318        }; then
57319   ac_cv_lib_m_modf=yes
57320 else
57321   $as_echo "$as_me: failed program was:" >&5
57322 sed 's/^/| /' conftest.$ac_ext >&5
57323
57324         ac_cv_lib_m_modf=no
57325 fi
57326
57327 rm -rf conftest.dSYM
57328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57329       conftest$ac_exeext conftest.$ac_ext
57330 LIBS=$ac_check_lib_save_LIBS
57331 fi
57332 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
57333 $as_echo "$ac_cv_lib_m_modf" >&6; }
57334 if test "x$ac_cv_lib_m_modf" = x""yes; then
57335   cat >>confdefs.h <<_ACEOF
57336 #define HAVE_LIBM 1
57337 _ACEOF
57338
57339   LIBS="-lm $LIBS"
57340
57341 fi
57342
57343
57344     if test "${ac_cv_header_execinfo_h+set}" = set; then
57345   { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
57346 $as_echo_n "checking for execinfo.h... " >&6; }
57347 if test "${ac_cv_header_execinfo_h+set}" = set; then
57348   $as_echo_n "(cached) " >&6
57349 fi
57350 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
57351 $as_echo "$ac_cv_header_execinfo_h" >&6; }
57352 else
57353   # Is the header compilable?
57354 { $as_echo "$as_me:$LINENO: checking execinfo.h usability" >&5
57355 $as_echo_n "checking execinfo.h usability... " >&6; }
57356 cat >conftest.$ac_ext <<_ACEOF
57357 /* confdefs.h.  */
57358 _ACEOF
57359 cat confdefs.h >>conftest.$ac_ext
57360 cat >>conftest.$ac_ext <<_ACEOF
57361 /* end confdefs.h.  */
57362 $ac_includes_default
57363 #include <execinfo.h>
57364 _ACEOF
57365 rm -f conftest.$ac_objext
57366 if { (ac_try="$ac_compile"
57367 case "(($ac_try" in
57368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57369   *) ac_try_echo=$ac_try;;
57370 esac
57371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57372 $as_echo "$ac_try_echo") >&5
57373   (eval "$ac_compile") 2>conftest.er1
57374   ac_status=$?
57375   grep -v '^ *+' conftest.er1 >conftest.err
57376   rm -f conftest.er1
57377   cat conftest.err >&5
57378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57379   (exit $ac_status); } && {
57380          test -z "$ac_c_werror_flag" ||
57381          test ! -s conftest.err
57382        } && test -s conftest.$ac_objext; then
57383   ac_header_compiler=yes
57384 else
57385   $as_echo "$as_me: failed program was:" >&5
57386 sed 's/^/| /' conftest.$ac_ext >&5
57387
57388         ac_header_compiler=no
57389 fi
57390
57391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57392 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57393 $as_echo "$ac_header_compiler" >&6; }
57394
57395 # Is the header present?
57396 { $as_echo "$as_me:$LINENO: checking execinfo.h presence" >&5
57397 $as_echo_n "checking execinfo.h presence... " >&6; }
57398 cat >conftest.$ac_ext <<_ACEOF
57399 /* confdefs.h.  */
57400 _ACEOF
57401 cat confdefs.h >>conftest.$ac_ext
57402 cat >>conftest.$ac_ext <<_ACEOF
57403 /* end confdefs.h.  */
57404 #include <execinfo.h>
57405 _ACEOF
57406 if { (ac_try="$ac_cpp conftest.$ac_ext"
57407 case "(($ac_try" in
57408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57409   *) ac_try_echo=$ac_try;;
57410 esac
57411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57412 $as_echo "$ac_try_echo") >&5
57413   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57414   ac_status=$?
57415   grep -v '^ *+' conftest.er1 >conftest.err
57416   rm -f conftest.er1
57417   cat conftest.err >&5
57418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57419   (exit $ac_status); } >/dev/null && {
57420          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57421          test ! -s conftest.err
57422        }; then
57423   ac_header_preproc=yes
57424 else
57425   $as_echo "$as_me: failed program was:" >&5
57426 sed 's/^/| /' conftest.$ac_ext >&5
57427
57428   ac_header_preproc=no
57429 fi
57430
57431 rm -f conftest.err conftest.$ac_ext
57432 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57433 $as_echo "$ac_header_preproc" >&6; }
57434
57435 # So?  What about this header?
57436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57437   yes:no: )
57438     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
57439 $as_echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57440     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
57441 $as_echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
57442     ac_header_preproc=yes
57443     ;;
57444   no:yes:* )
57445     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
57446 $as_echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
57447     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h:     check for missing prerequisite headers?" >&5
57448 $as_echo "$as_me: WARNING: execinfo.h:     check for missing prerequisite headers?" >&2;}
57449     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
57450 $as_echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
57451     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
57452 $as_echo "$as_me: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
57453     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
57454 $as_echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
57455     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
57456 $as_echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
57457
57458     ;;
57459 esac
57460 { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
57461 $as_echo_n "checking for execinfo.h... " >&6; }
57462 if test "${ac_cv_header_execinfo_h+set}" = set; then
57463   $as_echo_n "(cached) " >&6
57464 else
57465   ac_cv_header_execinfo_h=$ac_header_preproc
57466 fi
57467 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
57468 $as_echo "$ac_cv_header_execinfo_h" >&6; }
57469
57470 fi
57471 if test "x$ac_cv_header_execinfo_h" = x""yes; then
57472
57473         { $as_echo "$as_me:$LINENO: checking for backtrace_symbols_fd" >&5
57474 $as_echo_n "checking for backtrace_symbols_fd... " >&6; }
57475 if test "${ac_cv_func_backtrace_symbols_fd+set}" = set; then
57476   $as_echo_n "(cached) " >&6
57477 else
57478   cat >conftest.$ac_ext <<_ACEOF
57479 /* confdefs.h.  */
57480 _ACEOF
57481 cat confdefs.h >>conftest.$ac_ext
57482 cat >>conftest.$ac_ext <<_ACEOF
57483 /* end confdefs.h.  */
57484 /* Define backtrace_symbols_fd to an innocuous variant, in case <limits.h> declares backtrace_symbols_fd.
57485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57486 #define backtrace_symbols_fd innocuous_backtrace_symbols_fd
57487
57488 /* System header to define __stub macros and hopefully few prototypes,
57489     which can conflict with char backtrace_symbols_fd (); below.
57490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57491     <limits.h> exists even on freestanding compilers.  */
57492
57493 #ifdef __STDC__
57494 # include <limits.h>
57495 #else
57496 # include <assert.h>
57497 #endif
57498
57499 #undef backtrace_symbols_fd
57500
57501 /* Override any GCC internal prototype to avoid an error.
57502    Use char because int might match the return type of a GCC
57503    builtin and then its argument prototype would still apply.  */
57504 #ifdef __cplusplus
57505 extern "C"
57506 #endif
57507 char backtrace_symbols_fd ();
57508 /* The GNU C library defines this for functions which it implements
57509     to always fail with ENOSYS.  Some functions are actually named
57510     something starting with __ and the normal name is an alias.  */
57511 #if defined __stub_backtrace_symbols_fd || defined __stub___backtrace_symbols_fd
57512 choke me
57513 #endif
57514
57515 int
57516 main ()
57517 {
57518 return backtrace_symbols_fd ();
57519   ;
57520   return 0;
57521 }
57522 _ACEOF
57523 rm -f conftest.$ac_objext conftest$ac_exeext
57524 if { (ac_try="$ac_link"
57525 case "(($ac_try" in
57526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57527   *) ac_try_echo=$ac_try;;
57528 esac
57529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57530 $as_echo "$ac_try_echo") >&5
57531   (eval "$ac_link") 2>conftest.er1
57532   ac_status=$?
57533   grep -v '^ *+' conftest.er1 >conftest.err
57534   rm -f conftest.er1
57535   cat conftest.err >&5
57536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57537   (exit $ac_status); } && {
57538          test -z "$ac_c_werror_flag" ||
57539          test ! -s conftest.err
57540        } && test -s conftest$ac_exeext && {
57541          test "$cross_compiling" = yes ||
57542          $as_test_x conftest$ac_exeext
57543        }; then
57544   ac_cv_func_backtrace_symbols_fd=yes
57545 else
57546   $as_echo "$as_me: failed program was:" >&5
57547 sed 's/^/| /' conftest.$ac_ext >&5
57548
57549         ac_cv_func_backtrace_symbols_fd=no
57550 fi
57551
57552 rm -rf conftest.dSYM
57553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57554       conftest$ac_exeext conftest.$ac_ext
57555 fi
57556 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_backtrace_symbols_fd" >&5
57557 $as_echo "$ac_cv_func_backtrace_symbols_fd" >&6; }
57558 if test "x$ac_cv_func_backtrace_symbols_fd" = x""yes; then
57559
57560
57561 cat >>confdefs.h <<\_ACEOF
57562 #define HAVE_GLIBC_BACKTRACE 1
57563 _ACEOF
57564
57565
57566 fi
57567
57568
57569 fi
57570
57571
57572
57573
57574 #
57575 # Declarations
57576 #
57577 # Checks for library functions and if the function is declared in
57578 # an appropriate header file.  Functions which exist, but for which
57579 # no declaration is available, are declared in common-src/amanda.h.
57580 # It's not clear that any existing system implements but does not
57581 # declare common functions such as these.
57582 #
57583
57584 ice_have_accept=no
57585
57586 for ac_func in accept
57587 do
57588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57589 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57590 $as_echo_n "checking for $ac_func... " >&6; }
57591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57592   $as_echo_n "(cached) " >&6
57593 else
57594   cat >conftest.$ac_ext <<_ACEOF
57595 /* confdefs.h.  */
57596 _ACEOF
57597 cat confdefs.h >>conftest.$ac_ext
57598 cat >>conftest.$ac_ext <<_ACEOF
57599 /* end confdefs.h.  */
57600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57602 #define $ac_func innocuous_$ac_func
57603
57604 /* System header to define __stub macros and hopefully few prototypes,
57605     which can conflict with char $ac_func (); below.
57606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57607     <limits.h> exists even on freestanding compilers.  */
57608
57609 #ifdef __STDC__
57610 # include <limits.h>
57611 #else
57612 # include <assert.h>
57613 #endif
57614
57615 #undef $ac_func
57616
57617 /* Override any GCC internal prototype to avoid an error.
57618    Use char because int might match the return type of a GCC
57619    builtin and then its argument prototype would still apply.  */
57620 #ifdef __cplusplus
57621 extern "C"
57622 #endif
57623 char $ac_func ();
57624 /* The GNU C library defines this for functions which it implements
57625     to always fail with ENOSYS.  Some functions are actually named
57626     something starting with __ and the normal name is an alias.  */
57627 #if defined __stub_$ac_func || defined __stub___$ac_func
57628 choke me
57629 #endif
57630
57631 int
57632 main ()
57633 {
57634 return $ac_func ();
57635   ;
57636   return 0;
57637 }
57638 _ACEOF
57639 rm -f conftest.$ac_objext conftest$ac_exeext
57640 if { (ac_try="$ac_link"
57641 case "(($ac_try" in
57642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57643   *) ac_try_echo=$ac_try;;
57644 esac
57645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57646 $as_echo "$ac_try_echo") >&5
57647   (eval "$ac_link") 2>conftest.er1
57648   ac_status=$?
57649   grep -v '^ *+' conftest.er1 >conftest.err
57650   rm -f conftest.er1
57651   cat conftest.err >&5
57652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57653   (exit $ac_status); } && {
57654          test -z "$ac_c_werror_flag" ||
57655          test ! -s conftest.err
57656        } && test -s conftest$ac_exeext && {
57657          test "$cross_compiling" = yes ||
57658          $as_test_x conftest$ac_exeext
57659        }; then
57660   eval "$as_ac_var=yes"
57661 else
57662   $as_echo "$as_me: failed program was:" >&5
57663 sed 's/^/| /' conftest.$ac_ext >&5
57664
57665         eval "$as_ac_var=no"
57666 fi
57667
57668 rm -rf conftest.dSYM
57669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57670       conftest$ac_exeext conftest.$ac_ext
57671 fi
57672 ac_res=`eval 'as_val=${'$as_ac_var'}
57673                  $as_echo "$as_val"'`
57674                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57675 $as_echo "$ac_res" >&6; }
57676 as_val=`eval 'as_val=${'$as_ac_var'}
57677                  $as_echo "$as_val"'`
57678    if test "x$as_val" = x""yes; then
57679   cat >>confdefs.h <<_ACEOF
57680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57681 _ACEOF
57682  ice_have_accept=yes
57683 fi
57684 done
57685
57686 if test "${ice_have_accept}" = yes; then
57687 { $as_echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
57688 $as_echo_n "checking for accept declaration in sys/types.h sys/socket.h... " >&6; }
57689 if test "${ice_cv_have_accept_decl+set}" = set; then
57690   $as_echo_n "(cached) " >&6
57691 else
57692
57693 ice_cv_have_accept_decl=no
57694 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57695 ice_re_word='(^|[^a-zA-Z0-9_])'
57696 for header in sys/types.h sys/socket.h; do
57697 # Check for ordinary declaration
57698 cat >conftest.$ac_ext <<_ACEOF
57699 /* confdefs.h.  */
57700 _ACEOF
57701 cat confdefs.h >>conftest.$ac_ext
57702 cat >>conftest.$ac_ext <<_ACEOF
57703 /* end confdefs.h.  */
57704 #include <$header>
57705
57706 _ACEOF
57707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57708   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then
57709   ice_cv_have_accept_decl=yes
57710 fi
57711 rm -f conftest*
57712
57713 if test "$ice_cv_have_accept_decl" = yes; then
57714         break
57715 fi
57716 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57717 cat >conftest.$ac_ext <<_ACEOF
57718 /* confdefs.h.  */
57719 _ACEOF
57720 cat confdefs.h >>conftest.$ac_ext
57721 cat >>conftest.$ac_ext <<_ACEOF
57722 /* end confdefs.h.  */
57723 #include <$header>
57724
57725 _ACEOF
57726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57727   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57728   ice_cv_have_accept_decl=yes
57729 fi
57730 rm -f conftest*
57731
57732 if test "$ice_cv_have_accept_decl" = yes; then
57733         break
57734 fi
57735 done
57736
57737 fi
57738
57739 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
57740 $as_echo "$ice_cv_have_accept_decl" >&6; }
57741 if test "$ice_cv_have_accept_decl" = yes; then
57742
57743 cat >>confdefs.h <<_ACEOF
57744 #define HAVE_ACCEPT_DECL 1
57745 _ACEOF
57746
57747 fi
57748 fi
57749
57750 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
57751 # for constant arguments.  Useless!
57752 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
57753 $as_echo_n "checking for working alloca.h... " >&6; }
57754 if test "${ac_cv_working_alloca_h+set}" = set; then
57755   $as_echo_n "(cached) " >&6
57756 else
57757   cat >conftest.$ac_ext <<_ACEOF
57758 /* confdefs.h.  */
57759 _ACEOF
57760 cat confdefs.h >>conftest.$ac_ext
57761 cat >>conftest.$ac_ext <<_ACEOF
57762 /* end confdefs.h.  */
57763 #include <alloca.h>
57764 int
57765 main ()
57766 {
57767 char *p = (char *) alloca (2 * sizeof (int));
57768                           if (p) return 0;
57769   ;
57770   return 0;
57771 }
57772 _ACEOF
57773 rm -f conftest.$ac_objext conftest$ac_exeext
57774 if { (ac_try="$ac_link"
57775 case "(($ac_try" in
57776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57777   *) ac_try_echo=$ac_try;;
57778 esac
57779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57780 $as_echo "$ac_try_echo") >&5
57781   (eval "$ac_link") 2>conftest.er1
57782   ac_status=$?
57783   grep -v '^ *+' conftest.er1 >conftest.err
57784   rm -f conftest.er1
57785   cat conftest.err >&5
57786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57787   (exit $ac_status); } && {
57788          test -z "$ac_c_werror_flag" ||
57789          test ! -s conftest.err
57790        } && test -s conftest$ac_exeext && {
57791          test "$cross_compiling" = yes ||
57792          $as_test_x conftest$ac_exeext
57793        }; then
57794   ac_cv_working_alloca_h=yes
57795 else
57796   $as_echo "$as_me: failed program was:" >&5
57797 sed 's/^/| /' conftest.$ac_ext >&5
57798
57799         ac_cv_working_alloca_h=no
57800 fi
57801
57802 rm -rf conftest.dSYM
57803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57804       conftest$ac_exeext conftest.$ac_ext
57805 fi
57806 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
57807 $as_echo "$ac_cv_working_alloca_h" >&6; }
57808 if test $ac_cv_working_alloca_h = yes; then
57809
57810 cat >>confdefs.h <<\_ACEOF
57811 #define HAVE_ALLOCA_H 1
57812 _ACEOF
57813
57814 fi
57815
57816 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
57817 $as_echo_n "checking for alloca... " >&6; }
57818 if test "${ac_cv_func_alloca_works+set}" = set; then
57819   $as_echo_n "(cached) " >&6
57820 else
57821   cat >conftest.$ac_ext <<_ACEOF
57822 /* confdefs.h.  */
57823 _ACEOF
57824 cat confdefs.h >>conftest.$ac_ext
57825 cat >>conftest.$ac_ext <<_ACEOF
57826 /* end confdefs.h.  */
57827 #ifdef __GNUC__
57828 # define alloca __builtin_alloca
57829 #else
57830 # ifdef _MSC_VER
57831 #  include <malloc.h>
57832 #  define alloca _alloca
57833 # else
57834 #  ifdef HAVE_ALLOCA_H
57835 #   include <alloca.h>
57836 #  else
57837 #   ifdef _AIX
57838  #pragma alloca
57839 #   else
57840 #    ifndef alloca /* predefined by HP cc +Olibcalls */
57841 char *alloca ();
57842 #    endif
57843 #   endif
57844 #  endif
57845 # endif
57846 #endif
57847
57848 int
57849 main ()
57850 {
57851 char *p = (char *) alloca (1);
57852                                     if (p) return 0;
57853   ;
57854   return 0;
57855 }
57856 _ACEOF
57857 rm -f conftest.$ac_objext conftest$ac_exeext
57858 if { (ac_try="$ac_link"
57859 case "(($ac_try" in
57860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57861   *) ac_try_echo=$ac_try;;
57862 esac
57863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57864 $as_echo "$ac_try_echo") >&5
57865   (eval "$ac_link") 2>conftest.er1
57866   ac_status=$?
57867   grep -v '^ *+' conftest.er1 >conftest.err
57868   rm -f conftest.er1
57869   cat conftest.err >&5
57870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57871   (exit $ac_status); } && {
57872          test -z "$ac_c_werror_flag" ||
57873          test ! -s conftest.err
57874        } && test -s conftest$ac_exeext && {
57875          test "$cross_compiling" = yes ||
57876          $as_test_x conftest$ac_exeext
57877        }; then
57878   ac_cv_func_alloca_works=yes
57879 else
57880   $as_echo "$as_me: failed program was:" >&5
57881 sed 's/^/| /' conftest.$ac_ext >&5
57882
57883         ac_cv_func_alloca_works=no
57884 fi
57885
57886 rm -rf conftest.dSYM
57887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57888       conftest$ac_exeext conftest.$ac_ext
57889 fi
57890 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
57891 $as_echo "$ac_cv_func_alloca_works" >&6; }
57892
57893 if test $ac_cv_func_alloca_works = yes; then
57894
57895 cat >>confdefs.h <<\_ACEOF
57896 #define HAVE_ALLOCA 1
57897 _ACEOF
57898
57899 else
57900   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
57901 # that cause trouble.  Some versions do not even contain alloca or
57902 # contain a buggy version.  If you still want to use their alloca,
57903 # use ar to extract alloca.o from them instead of compiling alloca.c.
57904
57905 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
57906
57907 cat >>confdefs.h <<\_ACEOF
57908 #define C_ALLOCA 1
57909 _ACEOF
57910
57911
57912 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
57913 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
57914 if test "${ac_cv_os_cray+set}" = set; then
57915   $as_echo_n "(cached) " >&6
57916 else
57917   cat >conftest.$ac_ext <<_ACEOF
57918 /* confdefs.h.  */
57919 _ACEOF
57920 cat confdefs.h >>conftest.$ac_ext
57921 cat >>conftest.$ac_ext <<_ACEOF
57922 /* end confdefs.h.  */
57923 #if defined CRAY && ! defined CRAY2
57924 webecray
57925 #else
57926 wenotbecray
57927 #endif
57928
57929 _ACEOF
57930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57931   $EGREP "webecray" >/dev/null 2>&1; then
57932   ac_cv_os_cray=yes
57933 else
57934   ac_cv_os_cray=no
57935 fi
57936 rm -f conftest*
57937
57938 fi
57939 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
57940 $as_echo "$ac_cv_os_cray" >&6; }
57941 if test $ac_cv_os_cray = yes; then
57942   for ac_func in _getb67 GETB67 getb67; do
57943     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57944 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57945 $as_echo_n "checking for $ac_func... " >&6; }
57946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57947   $as_echo_n "(cached) " >&6
57948 else
57949   cat >conftest.$ac_ext <<_ACEOF
57950 /* confdefs.h.  */
57951 _ACEOF
57952 cat confdefs.h >>conftest.$ac_ext
57953 cat >>conftest.$ac_ext <<_ACEOF
57954 /* end confdefs.h.  */
57955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57957 #define $ac_func innocuous_$ac_func
57958
57959 /* System header to define __stub macros and hopefully few prototypes,
57960     which can conflict with char $ac_func (); below.
57961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57962     <limits.h> exists even on freestanding compilers.  */
57963
57964 #ifdef __STDC__
57965 # include <limits.h>
57966 #else
57967 # include <assert.h>
57968 #endif
57969
57970 #undef $ac_func
57971
57972 /* Override any GCC internal prototype to avoid an error.
57973    Use char because int might match the return type of a GCC
57974    builtin and then its argument prototype would still apply.  */
57975 #ifdef __cplusplus
57976 extern "C"
57977 #endif
57978 char $ac_func ();
57979 /* The GNU C library defines this for functions which it implements
57980     to always fail with ENOSYS.  Some functions are actually named
57981     something starting with __ and the normal name is an alias.  */
57982 #if defined __stub_$ac_func || defined __stub___$ac_func
57983 choke me
57984 #endif
57985
57986 int
57987 main ()
57988 {
57989 return $ac_func ();
57990   ;
57991   return 0;
57992 }
57993 _ACEOF
57994 rm -f conftest.$ac_objext conftest$ac_exeext
57995 if { (ac_try="$ac_link"
57996 case "(($ac_try" in
57997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57998   *) ac_try_echo=$ac_try;;
57999 esac
58000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58001 $as_echo "$ac_try_echo") >&5
58002   (eval "$ac_link") 2>conftest.er1
58003   ac_status=$?
58004   grep -v '^ *+' conftest.er1 >conftest.err
58005   rm -f conftest.er1
58006   cat conftest.err >&5
58007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58008   (exit $ac_status); } && {
58009          test -z "$ac_c_werror_flag" ||
58010          test ! -s conftest.err
58011        } && test -s conftest$ac_exeext && {
58012          test "$cross_compiling" = yes ||
58013          $as_test_x conftest$ac_exeext
58014        }; then
58015   eval "$as_ac_var=yes"
58016 else
58017   $as_echo "$as_me: failed program was:" >&5
58018 sed 's/^/| /' conftest.$ac_ext >&5
58019
58020         eval "$as_ac_var=no"
58021 fi
58022
58023 rm -rf conftest.dSYM
58024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58025       conftest$ac_exeext conftest.$ac_ext
58026 fi
58027 ac_res=`eval 'as_val=${'$as_ac_var'}
58028                  $as_echo "$as_val"'`
58029                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58030 $as_echo "$ac_res" >&6; }
58031 as_val=`eval 'as_val=${'$as_ac_var'}
58032                  $as_echo "$as_val"'`
58033    if test "x$as_val" = x""yes; then
58034
58035 cat >>confdefs.h <<_ACEOF
58036 #define CRAY_STACKSEG_END $ac_func
58037 _ACEOF
58038
58039     break
58040 fi
58041
58042   done
58043 fi
58044
58045 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
58046 $as_echo_n "checking stack direction for C alloca... " >&6; }
58047 if test "${ac_cv_c_stack_direction+set}" = set; then
58048   $as_echo_n "(cached) " >&6
58049 else
58050   if test "$cross_compiling" = yes; then
58051   ac_cv_c_stack_direction=0
58052 else
58053   cat >conftest.$ac_ext <<_ACEOF
58054 /* confdefs.h.  */
58055 _ACEOF
58056 cat confdefs.h >>conftest.$ac_ext
58057 cat >>conftest.$ac_ext <<_ACEOF
58058 /* end confdefs.h.  */
58059 $ac_includes_default
58060 int
58061 find_stack_direction ()
58062 {
58063   static char *addr = 0;
58064   auto char dummy;
58065   if (addr == 0)
58066     {
58067       addr = &dummy;
58068       return find_stack_direction ();
58069     }
58070   else
58071     return (&dummy > addr) ? 1 : -1;
58072 }
58073
58074 int
58075 main ()
58076 {
58077   return find_stack_direction () < 0;
58078 }
58079 _ACEOF
58080 rm -f conftest$ac_exeext
58081 if { (ac_try="$ac_link"
58082 case "(($ac_try" in
58083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58084   *) ac_try_echo=$ac_try;;
58085 esac
58086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58087 $as_echo "$ac_try_echo") >&5
58088   (eval "$ac_link") 2>&5
58089   ac_status=$?
58090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58091   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58092   { (case "(($ac_try" in
58093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58094   *) ac_try_echo=$ac_try;;
58095 esac
58096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58097 $as_echo "$ac_try_echo") >&5
58098   (eval "$ac_try") 2>&5
58099   ac_status=$?
58100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58101   (exit $ac_status); }; }; then
58102   ac_cv_c_stack_direction=1
58103 else
58104   $as_echo "$as_me: program exited with status $ac_status" >&5
58105 $as_echo "$as_me: failed program was:" >&5
58106 sed 's/^/| /' conftest.$ac_ext >&5
58107
58108 ( exit $ac_status )
58109 ac_cv_c_stack_direction=-1
58110 fi
58111 rm -rf conftest.dSYM
58112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58113 fi
58114
58115
58116 fi
58117 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
58118 $as_echo "$ac_cv_c_stack_direction" >&6; }
58119
58120 cat >>confdefs.h <<_ACEOF
58121 #define STACK_DIRECTION $ac_cv_c_stack_direction
58122 _ACEOF
58123
58124
58125 fi
58126
58127
58128 for ac_func in atexit
58129 do
58130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58131 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58132 $as_echo_n "checking for $ac_func... " >&6; }
58133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58134   $as_echo_n "(cached) " >&6
58135 else
58136   cat >conftest.$ac_ext <<_ACEOF
58137 /* confdefs.h.  */
58138 _ACEOF
58139 cat confdefs.h >>conftest.$ac_ext
58140 cat >>conftest.$ac_ext <<_ACEOF
58141 /* end confdefs.h.  */
58142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58144 #define $ac_func innocuous_$ac_func
58145
58146 /* System header to define __stub macros and hopefully few prototypes,
58147     which can conflict with char $ac_func (); below.
58148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58149     <limits.h> exists even on freestanding compilers.  */
58150
58151 #ifdef __STDC__
58152 # include <limits.h>
58153 #else
58154 # include <assert.h>
58155 #endif
58156
58157 #undef $ac_func
58158
58159 /* Override any GCC internal prototype to avoid an error.
58160    Use char because int might match the return type of a GCC
58161    builtin and then its argument prototype would still apply.  */
58162 #ifdef __cplusplus
58163 extern "C"
58164 #endif
58165 char $ac_func ();
58166 /* The GNU C library defines this for functions which it implements
58167     to always fail with ENOSYS.  Some functions are actually named
58168     something starting with __ and the normal name is an alias.  */
58169 #if defined __stub_$ac_func || defined __stub___$ac_func
58170 choke me
58171 #endif
58172
58173 int
58174 main ()
58175 {
58176 return $ac_func ();
58177   ;
58178   return 0;
58179 }
58180 _ACEOF
58181 rm -f conftest.$ac_objext conftest$ac_exeext
58182 if { (ac_try="$ac_link"
58183 case "(($ac_try" in
58184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58185   *) ac_try_echo=$ac_try;;
58186 esac
58187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58188 $as_echo "$ac_try_echo") >&5
58189   (eval "$ac_link") 2>conftest.er1
58190   ac_status=$?
58191   grep -v '^ *+' conftest.er1 >conftest.err
58192   rm -f conftest.er1
58193   cat conftest.err >&5
58194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58195   (exit $ac_status); } && {
58196          test -z "$ac_c_werror_flag" ||
58197          test ! -s conftest.err
58198        } && test -s conftest$ac_exeext && {
58199          test "$cross_compiling" = yes ||
58200          $as_test_x conftest$ac_exeext
58201        }; then
58202   eval "$as_ac_var=yes"
58203 else
58204   $as_echo "$as_me: failed program was:" >&5
58205 sed 's/^/| /' conftest.$ac_ext >&5
58206
58207         eval "$as_ac_var=no"
58208 fi
58209
58210 rm -rf conftest.dSYM
58211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58212       conftest$ac_exeext conftest.$ac_ext
58213 fi
58214 ac_res=`eval 'as_val=${'$as_ac_var'}
58215                  $as_echo "$as_val"'`
58216                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58217 $as_echo "$ac_res" >&6; }
58218 as_val=`eval 'as_val=${'$as_ac_var'}
58219                  $as_echo "$as_val"'`
58220    if test "x$as_val" = x""yes; then
58221   cat >>confdefs.h <<_ACEOF
58222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58223 _ACEOF
58224
58225 fi
58226 done
58227
58228
58229 ice_have_atof=no
58230
58231 for ac_func in atof
58232 do
58233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58234 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58235 $as_echo_n "checking for $ac_func... " >&6; }
58236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58237   $as_echo_n "(cached) " >&6
58238 else
58239   cat >conftest.$ac_ext <<_ACEOF
58240 /* confdefs.h.  */
58241 _ACEOF
58242 cat confdefs.h >>conftest.$ac_ext
58243 cat >>conftest.$ac_ext <<_ACEOF
58244 /* end confdefs.h.  */
58245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58246    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58247 #define $ac_func innocuous_$ac_func
58248
58249 /* System header to define __stub macros and hopefully few prototypes,
58250     which can conflict with char $ac_func (); below.
58251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58252     <limits.h> exists even on freestanding compilers.  */
58253
58254 #ifdef __STDC__
58255 # include <limits.h>
58256 #else
58257 # include <assert.h>
58258 #endif
58259
58260 #undef $ac_func
58261
58262 /* Override any GCC internal prototype to avoid an error.
58263    Use char because int might match the return type of a GCC
58264    builtin and then its argument prototype would still apply.  */
58265 #ifdef __cplusplus
58266 extern "C"
58267 #endif
58268 char $ac_func ();
58269 /* The GNU C library defines this for functions which it implements
58270     to always fail with ENOSYS.  Some functions are actually named
58271     something starting with __ and the normal name is an alias.  */
58272 #if defined __stub_$ac_func || defined __stub___$ac_func
58273 choke me
58274 #endif
58275
58276 int
58277 main ()
58278 {
58279 return $ac_func ();
58280   ;
58281   return 0;
58282 }
58283 _ACEOF
58284 rm -f conftest.$ac_objext conftest$ac_exeext
58285 if { (ac_try="$ac_link"
58286 case "(($ac_try" in
58287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58288   *) ac_try_echo=$ac_try;;
58289 esac
58290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58291 $as_echo "$ac_try_echo") >&5
58292   (eval "$ac_link") 2>conftest.er1
58293   ac_status=$?
58294   grep -v '^ *+' conftest.er1 >conftest.err
58295   rm -f conftest.er1
58296   cat conftest.err >&5
58297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58298   (exit $ac_status); } && {
58299          test -z "$ac_c_werror_flag" ||
58300          test ! -s conftest.err
58301        } && test -s conftest$ac_exeext && {
58302          test "$cross_compiling" = yes ||
58303          $as_test_x conftest$ac_exeext
58304        }; then
58305   eval "$as_ac_var=yes"
58306 else
58307   $as_echo "$as_me: failed program was:" >&5
58308 sed 's/^/| /' conftest.$ac_ext >&5
58309
58310         eval "$as_ac_var=no"
58311 fi
58312
58313 rm -rf conftest.dSYM
58314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58315       conftest$ac_exeext conftest.$ac_ext
58316 fi
58317 ac_res=`eval 'as_val=${'$as_ac_var'}
58318                  $as_echo "$as_val"'`
58319                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58320 $as_echo "$ac_res" >&6; }
58321 as_val=`eval 'as_val=${'$as_ac_var'}
58322                  $as_echo "$as_val"'`
58323    if test "x$as_val" = x""yes; then
58324   cat >>confdefs.h <<_ACEOF
58325 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58326 _ACEOF
58327  ice_have_atof=yes
58328 fi
58329 done
58330
58331 if test "${ice_have_atof}" = yes; then
58332 { $as_echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
58333 $as_echo_n "checking for atof declaration in stdlib.h... " >&6; }
58334 if test "${ice_cv_have_atof_decl+set}" = set; then
58335   $as_echo_n "(cached) " >&6
58336 else
58337
58338 ice_cv_have_atof_decl=no
58339 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58340 ice_re_word='(^|[^a-zA-Z0-9_])'
58341 for header in stdlib.h; do
58342 # Check for ordinary declaration
58343 cat >conftest.$ac_ext <<_ACEOF
58344 /* confdefs.h.  */
58345 _ACEOF
58346 cat confdefs.h >>conftest.$ac_ext
58347 cat >>conftest.$ac_ext <<_ACEOF
58348 /* end confdefs.h.  */
58349 #include <$header>
58350
58351 _ACEOF
58352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58353   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then
58354   ice_cv_have_atof_decl=yes
58355 fi
58356 rm -f conftest*
58357
58358 if test "$ice_cv_have_atof_decl" = yes; then
58359         break
58360 fi
58361 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58362 cat >conftest.$ac_ext <<_ACEOF
58363 /* confdefs.h.  */
58364 _ACEOF
58365 cat confdefs.h >>conftest.$ac_ext
58366 cat >>conftest.$ac_ext <<_ACEOF
58367 /* end confdefs.h.  */
58368 #include <$header>
58369
58370 _ACEOF
58371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58372   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58373   ice_cv_have_atof_decl=yes
58374 fi
58375 rm -f conftest*
58376
58377 if test "$ice_cv_have_atof_decl" = yes; then
58378         break
58379 fi
58380 done
58381
58382 fi
58383
58384 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
58385 $as_echo "$ice_cv_have_atof_decl" >&6; }
58386 if test "$ice_cv_have_atof_decl" = yes; then
58387
58388 cat >>confdefs.h <<_ACEOF
58389 #define HAVE_ATOF_DECL 1
58390 _ACEOF
58391
58392 fi
58393 fi
58394
58395
58396 ice_have_atol=no
58397
58398 for ac_func in atol
58399 do
58400 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58401 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58402 $as_echo_n "checking for $ac_func... " >&6; }
58403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58404   $as_echo_n "(cached) " >&6
58405 else
58406   cat >conftest.$ac_ext <<_ACEOF
58407 /* confdefs.h.  */
58408 _ACEOF
58409 cat confdefs.h >>conftest.$ac_ext
58410 cat >>conftest.$ac_ext <<_ACEOF
58411 /* end confdefs.h.  */
58412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58413    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58414 #define $ac_func innocuous_$ac_func
58415
58416 /* System header to define __stub macros and hopefully few prototypes,
58417     which can conflict with char $ac_func (); below.
58418     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58419     <limits.h> exists even on freestanding compilers.  */
58420
58421 #ifdef __STDC__
58422 # include <limits.h>
58423 #else
58424 # include <assert.h>
58425 #endif
58426
58427 #undef $ac_func
58428
58429 /* Override any GCC internal prototype to avoid an error.
58430    Use char because int might match the return type of a GCC
58431    builtin and then its argument prototype would still apply.  */
58432 #ifdef __cplusplus
58433 extern "C"
58434 #endif
58435 char $ac_func ();
58436 /* The GNU C library defines this for functions which it implements
58437     to always fail with ENOSYS.  Some functions are actually named
58438     something starting with __ and the normal name is an alias.  */
58439 #if defined __stub_$ac_func || defined __stub___$ac_func
58440 choke me
58441 #endif
58442
58443 int
58444 main ()
58445 {
58446 return $ac_func ();
58447   ;
58448   return 0;
58449 }
58450 _ACEOF
58451 rm -f conftest.$ac_objext conftest$ac_exeext
58452 if { (ac_try="$ac_link"
58453 case "(($ac_try" in
58454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58455   *) ac_try_echo=$ac_try;;
58456 esac
58457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58458 $as_echo "$ac_try_echo") >&5
58459   (eval "$ac_link") 2>conftest.er1
58460   ac_status=$?
58461   grep -v '^ *+' conftest.er1 >conftest.err
58462   rm -f conftest.er1
58463   cat conftest.err >&5
58464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58465   (exit $ac_status); } && {
58466          test -z "$ac_c_werror_flag" ||
58467          test ! -s conftest.err
58468        } && test -s conftest$ac_exeext && {
58469          test "$cross_compiling" = yes ||
58470          $as_test_x conftest$ac_exeext
58471        }; then
58472   eval "$as_ac_var=yes"
58473 else
58474   $as_echo "$as_me: failed program was:" >&5
58475 sed 's/^/| /' conftest.$ac_ext >&5
58476
58477         eval "$as_ac_var=no"
58478 fi
58479
58480 rm -rf conftest.dSYM
58481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58482       conftest$ac_exeext conftest.$ac_ext
58483 fi
58484 ac_res=`eval 'as_val=${'$as_ac_var'}
58485                  $as_echo "$as_val"'`
58486                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58487 $as_echo "$ac_res" >&6; }
58488 as_val=`eval 'as_val=${'$as_ac_var'}
58489                  $as_echo "$as_val"'`
58490    if test "x$as_val" = x""yes; then
58491   cat >>confdefs.h <<_ACEOF
58492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58493 _ACEOF
58494  ice_have_atol=yes
58495 fi
58496 done
58497
58498 if test "${ice_have_atol}" = yes; then
58499 { $as_echo "$as_me:$LINENO: checking for atol declaration in stdlib.h" >&5
58500 $as_echo_n "checking for atol declaration in stdlib.h... " >&6; }
58501 if test "${ice_cv_have_atol_decl+set}" = set; then
58502   $as_echo_n "(cached) " >&6
58503 else
58504
58505 ice_cv_have_atol_decl=no
58506 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58507 ice_re_word='(^|[^a-zA-Z0-9_])'
58508 for header in stdlib.h; do
58509 # Check for ordinary declaration
58510 cat >conftest.$ac_ext <<_ACEOF
58511 /* confdefs.h.  */
58512 _ACEOF
58513 cat confdefs.h >>conftest.$ac_ext
58514 cat >>conftest.$ac_ext <<_ACEOF
58515 /* end confdefs.h.  */
58516 #include <$header>
58517
58518 _ACEOF
58519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58520   $EGREP "${ice_re_word}atol[   ]*\(" >/dev/null 2>&1; then
58521   ice_cv_have_atol_decl=yes
58522 fi
58523 rm -f conftest*
58524
58525 if test "$ice_cv_have_atol_decl" = yes; then
58526         break
58527 fi
58528 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58529 cat >conftest.$ac_ext <<_ACEOF
58530 /* confdefs.h.  */
58531 _ACEOF
58532 cat confdefs.h >>conftest.$ac_ext
58533 cat >>conftest.$ac_ext <<_ACEOF
58534 /* end confdefs.h.  */
58535 #include <$header>
58536
58537 _ACEOF
58538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58539   $EGREP "${ice_re_word}atol[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58540   ice_cv_have_atol_decl=yes
58541 fi
58542 rm -f conftest*
58543
58544 if test "$ice_cv_have_atol_decl" = yes; then
58545         break
58546 fi
58547 done
58548
58549 fi
58550
58551 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atol_decl" >&5
58552 $as_echo "$ice_cv_have_atol_decl" >&6; }
58553 if test "$ice_cv_have_atol_decl" = yes; then
58554
58555 cat >>confdefs.h <<_ACEOF
58556 #define HAVE_ATOL_DECL 1
58557 _ACEOF
58558
58559 fi
58560 fi
58561
58562
58563 ice_have_atoll=no
58564
58565 for ac_func in atoll
58566 do
58567 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58568 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58569 $as_echo_n "checking for $ac_func... " >&6; }
58570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58571   $as_echo_n "(cached) " >&6
58572 else
58573   cat >conftest.$ac_ext <<_ACEOF
58574 /* confdefs.h.  */
58575 _ACEOF
58576 cat confdefs.h >>conftest.$ac_ext
58577 cat >>conftest.$ac_ext <<_ACEOF
58578 /* end confdefs.h.  */
58579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58581 #define $ac_func innocuous_$ac_func
58582
58583 /* System header to define __stub macros and hopefully few prototypes,
58584     which can conflict with char $ac_func (); below.
58585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58586     <limits.h> exists even on freestanding compilers.  */
58587
58588 #ifdef __STDC__
58589 # include <limits.h>
58590 #else
58591 # include <assert.h>
58592 #endif
58593
58594 #undef $ac_func
58595
58596 /* Override any GCC internal prototype to avoid an error.
58597    Use char because int might match the return type of a GCC
58598    builtin and then its argument prototype would still apply.  */
58599 #ifdef __cplusplus
58600 extern "C"
58601 #endif
58602 char $ac_func ();
58603 /* The GNU C library defines this for functions which it implements
58604     to always fail with ENOSYS.  Some functions are actually named
58605     something starting with __ and the normal name is an alias.  */
58606 #if defined __stub_$ac_func || defined __stub___$ac_func
58607 choke me
58608 #endif
58609
58610 int
58611 main ()
58612 {
58613 return $ac_func ();
58614   ;
58615   return 0;
58616 }
58617 _ACEOF
58618 rm -f conftest.$ac_objext conftest$ac_exeext
58619 if { (ac_try="$ac_link"
58620 case "(($ac_try" in
58621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58622   *) ac_try_echo=$ac_try;;
58623 esac
58624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58625 $as_echo "$ac_try_echo") >&5
58626   (eval "$ac_link") 2>conftest.er1
58627   ac_status=$?
58628   grep -v '^ *+' conftest.er1 >conftest.err
58629   rm -f conftest.er1
58630   cat conftest.err >&5
58631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58632   (exit $ac_status); } && {
58633          test -z "$ac_c_werror_flag" ||
58634          test ! -s conftest.err
58635        } && test -s conftest$ac_exeext && {
58636          test "$cross_compiling" = yes ||
58637          $as_test_x conftest$ac_exeext
58638        }; then
58639   eval "$as_ac_var=yes"
58640 else
58641   $as_echo "$as_me: failed program was:" >&5
58642 sed 's/^/| /' conftest.$ac_ext >&5
58643
58644         eval "$as_ac_var=no"
58645 fi
58646
58647 rm -rf conftest.dSYM
58648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58649       conftest$ac_exeext conftest.$ac_ext
58650 fi
58651 ac_res=`eval 'as_val=${'$as_ac_var'}
58652                  $as_echo "$as_val"'`
58653                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58654 $as_echo "$ac_res" >&6; }
58655 as_val=`eval 'as_val=${'$as_ac_var'}
58656                  $as_echo "$as_val"'`
58657    if test "x$as_val" = x""yes; then
58658   cat >>confdefs.h <<_ACEOF
58659 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58660 _ACEOF
58661  ice_have_atoll=yes
58662 fi
58663 done
58664
58665 if test "${ice_have_atoll}" = yes; then
58666 { $as_echo "$as_me:$LINENO: checking for atoll declaration in stdlib.h" >&5
58667 $as_echo_n "checking for atoll declaration in stdlib.h... " >&6; }
58668 if test "${ice_cv_have_atoll_decl+set}" = set; then
58669   $as_echo_n "(cached) " >&6
58670 else
58671
58672 ice_cv_have_atoll_decl=no
58673 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58674 ice_re_word='(^|[^a-zA-Z0-9_])'
58675 for header in stdlib.h; do
58676 # Check for ordinary declaration
58677 cat >conftest.$ac_ext <<_ACEOF
58678 /* confdefs.h.  */
58679 _ACEOF
58680 cat confdefs.h >>conftest.$ac_ext
58681 cat >>conftest.$ac_ext <<_ACEOF
58682 /* end confdefs.h.  */
58683 #include <$header>
58684
58685 _ACEOF
58686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58687   $EGREP "${ice_re_word}atoll[  ]*\(" >/dev/null 2>&1; then
58688   ice_cv_have_atoll_decl=yes
58689 fi
58690 rm -f conftest*
58691
58692 if test "$ice_cv_have_atoll_decl" = yes; then
58693         break
58694 fi
58695 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58696 cat >conftest.$ac_ext <<_ACEOF
58697 /* confdefs.h.  */
58698 _ACEOF
58699 cat confdefs.h >>conftest.$ac_ext
58700 cat >>conftest.$ac_ext <<_ACEOF
58701 /* end confdefs.h.  */
58702 #include <$header>
58703
58704 _ACEOF
58705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58706   $EGREP "${ice_re_word}atoll[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58707   ice_cv_have_atoll_decl=yes
58708 fi
58709 rm -f conftest*
58710
58711 if test "$ice_cv_have_atoll_decl" = yes; then
58712         break
58713 fi
58714 done
58715
58716 fi
58717
58718 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atoll_decl" >&5
58719 $as_echo "$ice_cv_have_atoll_decl" >&6; }
58720 if test "$ice_cv_have_atoll_decl" = yes; then
58721
58722 cat >>confdefs.h <<_ACEOF
58723 #define HAVE_ATOLL_DECL 1
58724 _ACEOF
58725
58726 fi
58727 fi
58728
58729
58730 ice_have_strtol=no
58731
58732 for ac_func in strtol
58733 do
58734 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58735 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58736 $as_echo_n "checking for $ac_func... " >&6; }
58737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58738   $as_echo_n "(cached) " >&6
58739 else
58740   cat >conftest.$ac_ext <<_ACEOF
58741 /* confdefs.h.  */
58742 _ACEOF
58743 cat confdefs.h >>conftest.$ac_ext
58744 cat >>conftest.$ac_ext <<_ACEOF
58745 /* end confdefs.h.  */
58746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58748 #define $ac_func innocuous_$ac_func
58749
58750 /* System header to define __stub macros and hopefully few prototypes,
58751     which can conflict with char $ac_func (); below.
58752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58753     <limits.h> exists even on freestanding compilers.  */
58754
58755 #ifdef __STDC__
58756 # include <limits.h>
58757 #else
58758 # include <assert.h>
58759 #endif
58760
58761 #undef $ac_func
58762
58763 /* Override any GCC internal prototype to avoid an error.
58764    Use char because int might match the return type of a GCC
58765    builtin and then its argument prototype would still apply.  */
58766 #ifdef __cplusplus
58767 extern "C"
58768 #endif
58769 char $ac_func ();
58770 /* The GNU C library defines this for functions which it implements
58771     to always fail with ENOSYS.  Some functions are actually named
58772     something starting with __ and the normal name is an alias.  */
58773 #if defined __stub_$ac_func || defined __stub___$ac_func
58774 choke me
58775 #endif
58776
58777 int
58778 main ()
58779 {
58780 return $ac_func ();
58781   ;
58782   return 0;
58783 }
58784 _ACEOF
58785 rm -f conftest.$ac_objext conftest$ac_exeext
58786 if { (ac_try="$ac_link"
58787 case "(($ac_try" in
58788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58789   *) ac_try_echo=$ac_try;;
58790 esac
58791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58792 $as_echo "$ac_try_echo") >&5
58793   (eval "$ac_link") 2>conftest.er1
58794   ac_status=$?
58795   grep -v '^ *+' conftest.er1 >conftest.err
58796   rm -f conftest.er1
58797   cat conftest.err >&5
58798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58799   (exit $ac_status); } && {
58800          test -z "$ac_c_werror_flag" ||
58801          test ! -s conftest.err
58802        } && test -s conftest$ac_exeext && {
58803          test "$cross_compiling" = yes ||
58804          $as_test_x conftest$ac_exeext
58805        }; then
58806   eval "$as_ac_var=yes"
58807 else
58808   $as_echo "$as_me: failed program was:" >&5
58809 sed 's/^/| /' conftest.$ac_ext >&5
58810
58811         eval "$as_ac_var=no"
58812 fi
58813
58814 rm -rf conftest.dSYM
58815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58816       conftest$ac_exeext conftest.$ac_ext
58817 fi
58818 ac_res=`eval 'as_val=${'$as_ac_var'}
58819                  $as_echo "$as_val"'`
58820                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58821 $as_echo "$ac_res" >&6; }
58822 as_val=`eval 'as_val=${'$as_ac_var'}
58823                  $as_echo "$as_val"'`
58824    if test "x$as_val" = x""yes; then
58825   cat >>confdefs.h <<_ACEOF
58826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58827 _ACEOF
58828  ice_have_strtol=yes
58829 fi
58830 done
58831
58832 if test "${ice_have_strtol}" = yes; then
58833 { $as_echo "$as_me:$LINENO: checking for strtol declaration in stdlib.h" >&5
58834 $as_echo_n "checking for strtol declaration in stdlib.h... " >&6; }
58835 if test "${ice_cv_have_strtol_decl+set}" = set; then
58836   $as_echo_n "(cached) " >&6
58837 else
58838
58839 ice_cv_have_strtol_decl=no
58840 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58841 ice_re_word='(^|[^a-zA-Z0-9_])'
58842 for header in stdlib.h; do
58843 # Check for ordinary declaration
58844 cat >conftest.$ac_ext <<_ACEOF
58845 /* confdefs.h.  */
58846 _ACEOF
58847 cat confdefs.h >>conftest.$ac_ext
58848 cat >>conftest.$ac_ext <<_ACEOF
58849 /* end confdefs.h.  */
58850 #include <$header>
58851
58852 _ACEOF
58853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58854   $EGREP "${ice_re_word}strtol[         ]*\(" >/dev/null 2>&1; then
58855   ice_cv_have_strtol_decl=yes
58856 fi
58857 rm -f conftest*
58858
58859 if test "$ice_cv_have_strtol_decl" = yes; then
58860         break
58861 fi
58862 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58863 cat >conftest.$ac_ext <<_ACEOF
58864 /* confdefs.h.  */
58865 _ACEOF
58866 cat confdefs.h >>conftest.$ac_ext
58867 cat >>conftest.$ac_ext <<_ACEOF
58868 /* end confdefs.h.  */
58869 #include <$header>
58870
58871 _ACEOF
58872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58873   $EGREP "${ice_re_word}strtol[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58874   ice_cv_have_strtol_decl=yes
58875 fi
58876 rm -f conftest*
58877
58878 if test "$ice_cv_have_strtol_decl" = yes; then
58879         break
58880 fi
58881 done
58882
58883 fi
58884
58885 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strtol_decl" >&5
58886 $as_echo "$ice_cv_have_strtol_decl" >&6; }
58887 if test "$ice_cv_have_strtol_decl" = yes; then
58888
58889 cat >>confdefs.h <<_ACEOF
58890 #define HAVE_STRTOL_DECL 1
58891 _ACEOF
58892
58893 fi
58894 fi
58895
58896
58897 ice_have_strtoll=no
58898
58899 for ac_func in strtoll
58900 do
58901 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58902 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58903 $as_echo_n "checking for $ac_func... " >&6; }
58904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58905   $as_echo_n "(cached) " >&6
58906 else
58907   cat >conftest.$ac_ext <<_ACEOF
58908 /* confdefs.h.  */
58909 _ACEOF
58910 cat confdefs.h >>conftest.$ac_ext
58911 cat >>conftest.$ac_ext <<_ACEOF
58912 /* end confdefs.h.  */
58913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58914    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58915 #define $ac_func innocuous_$ac_func
58916
58917 /* System header to define __stub macros and hopefully few prototypes,
58918     which can conflict with char $ac_func (); below.
58919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58920     <limits.h> exists even on freestanding compilers.  */
58921
58922 #ifdef __STDC__
58923 # include <limits.h>
58924 #else
58925 # include <assert.h>
58926 #endif
58927
58928 #undef $ac_func
58929
58930 /* Override any GCC internal prototype to avoid an error.
58931    Use char because int might match the return type of a GCC
58932    builtin and then its argument prototype would still apply.  */
58933 #ifdef __cplusplus
58934 extern "C"
58935 #endif
58936 char $ac_func ();
58937 /* The GNU C library defines this for functions which it implements
58938     to always fail with ENOSYS.  Some functions are actually named
58939     something starting with __ and the normal name is an alias.  */
58940 #if defined __stub_$ac_func || defined __stub___$ac_func
58941 choke me
58942 #endif
58943
58944 int
58945 main ()
58946 {
58947 return $ac_func ();
58948   ;
58949   return 0;
58950 }
58951 _ACEOF
58952 rm -f conftest.$ac_objext conftest$ac_exeext
58953 if { (ac_try="$ac_link"
58954 case "(($ac_try" in
58955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58956   *) ac_try_echo=$ac_try;;
58957 esac
58958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58959 $as_echo "$ac_try_echo") >&5
58960   (eval "$ac_link") 2>conftest.er1
58961   ac_status=$?
58962   grep -v '^ *+' conftest.er1 >conftest.err
58963   rm -f conftest.er1
58964   cat conftest.err >&5
58965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58966   (exit $ac_status); } && {
58967          test -z "$ac_c_werror_flag" ||
58968          test ! -s conftest.err
58969        } && test -s conftest$ac_exeext && {
58970          test "$cross_compiling" = yes ||
58971          $as_test_x conftest$ac_exeext
58972        }; then
58973   eval "$as_ac_var=yes"
58974 else
58975   $as_echo "$as_me: failed program was:" >&5
58976 sed 's/^/| /' conftest.$ac_ext >&5
58977
58978         eval "$as_ac_var=no"
58979 fi
58980
58981 rm -rf conftest.dSYM
58982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58983       conftest$ac_exeext conftest.$ac_ext
58984 fi
58985 ac_res=`eval 'as_val=${'$as_ac_var'}
58986                  $as_echo "$as_val"'`
58987                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58988 $as_echo "$ac_res" >&6; }
58989 as_val=`eval 'as_val=${'$as_ac_var'}
58990                  $as_echo "$as_val"'`
58991    if test "x$as_val" = x""yes; then
58992   cat >>confdefs.h <<_ACEOF
58993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58994 _ACEOF
58995  ice_have_strtoll=yes
58996 fi
58997 done
58998
58999 if test "${ice_have_strtoll}" = yes; then
59000 { $as_echo "$as_me:$LINENO: checking for strtoll declaration in stdlib.h" >&5
59001 $as_echo_n "checking for strtoll declaration in stdlib.h... " >&6; }
59002 if test "${ice_cv_have_strtoll_decl+set}" = set; then
59003   $as_echo_n "(cached) " >&6
59004 else
59005
59006 ice_cv_have_strtoll_decl=no
59007 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59008 ice_re_word='(^|[^a-zA-Z0-9_])'
59009 for header in stdlib.h; do
59010 # Check for ordinary declaration
59011 cat >conftest.$ac_ext <<_ACEOF
59012 /* confdefs.h.  */
59013 _ACEOF
59014 cat confdefs.h >>conftest.$ac_ext
59015 cat >>conftest.$ac_ext <<_ACEOF
59016 /* end confdefs.h.  */
59017 #include <$header>
59018
59019 _ACEOF
59020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59021   $EGREP "${ice_re_word}strtoll[        ]*\(" >/dev/null 2>&1; then
59022   ice_cv_have_strtoll_decl=yes
59023 fi
59024 rm -f conftest*
59025
59026 if test "$ice_cv_have_strtoll_decl" = yes; then
59027         break
59028 fi
59029 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59030 cat >conftest.$ac_ext <<_ACEOF
59031 /* confdefs.h.  */
59032 _ACEOF
59033 cat confdefs.h >>conftest.$ac_ext
59034 cat >>conftest.$ac_ext <<_ACEOF
59035 /* end confdefs.h.  */
59036 #include <$header>
59037
59038 _ACEOF
59039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59040   $EGREP "${ice_re_word}strtoll[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59041   ice_cv_have_strtoll_decl=yes
59042 fi
59043 rm -f conftest*
59044
59045 if test "$ice_cv_have_strtoll_decl" = yes; then
59046         break
59047 fi
59048 done
59049
59050 fi
59051
59052 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strtoll_decl" >&5
59053 $as_echo "$ice_cv_have_strtoll_decl" >&6; }
59054 if test "$ice_cv_have_strtoll_decl" = yes; then
59055
59056 cat >>confdefs.h <<_ACEOF
59057 #define HAVE_STRTOLL_DECL 1
59058 _ACEOF
59059
59060 fi
59061 fi
59062
59063
59064 for ac_func in basename
59065 do
59066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59067 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59068 $as_echo_n "checking for $ac_func... " >&6; }
59069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59070   $as_echo_n "(cached) " >&6
59071 else
59072   cat >conftest.$ac_ext <<_ACEOF
59073 /* confdefs.h.  */
59074 _ACEOF
59075 cat confdefs.h >>conftest.$ac_ext
59076 cat >>conftest.$ac_ext <<_ACEOF
59077 /* end confdefs.h.  */
59078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59080 #define $ac_func innocuous_$ac_func
59081
59082 /* System header to define __stub macros and hopefully few prototypes,
59083     which can conflict with char $ac_func (); below.
59084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59085     <limits.h> exists even on freestanding compilers.  */
59086
59087 #ifdef __STDC__
59088 # include <limits.h>
59089 #else
59090 # include <assert.h>
59091 #endif
59092
59093 #undef $ac_func
59094
59095 /* Override any GCC internal prototype to avoid an error.
59096    Use char because int might match the return type of a GCC
59097    builtin and then its argument prototype would still apply.  */
59098 #ifdef __cplusplus
59099 extern "C"
59100 #endif
59101 char $ac_func ();
59102 /* The GNU C library defines this for functions which it implements
59103     to always fail with ENOSYS.  Some functions are actually named
59104     something starting with __ and the normal name is an alias.  */
59105 #if defined __stub_$ac_func || defined __stub___$ac_func
59106 choke me
59107 #endif
59108
59109 int
59110 main ()
59111 {
59112 return $ac_func ();
59113   ;
59114   return 0;
59115 }
59116 _ACEOF
59117 rm -f conftest.$ac_objext conftest$ac_exeext
59118 if { (ac_try="$ac_link"
59119 case "(($ac_try" in
59120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59121   *) ac_try_echo=$ac_try;;
59122 esac
59123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59124 $as_echo "$ac_try_echo") >&5
59125   (eval "$ac_link") 2>conftest.er1
59126   ac_status=$?
59127   grep -v '^ *+' conftest.er1 >conftest.err
59128   rm -f conftest.er1
59129   cat conftest.err >&5
59130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59131   (exit $ac_status); } && {
59132          test -z "$ac_c_werror_flag" ||
59133          test ! -s conftest.err
59134        } && test -s conftest$ac_exeext && {
59135          test "$cross_compiling" = yes ||
59136          $as_test_x conftest$ac_exeext
59137        }; then
59138   eval "$as_ac_var=yes"
59139 else
59140   $as_echo "$as_me: failed program was:" >&5
59141 sed 's/^/| /' conftest.$ac_ext >&5
59142
59143         eval "$as_ac_var=no"
59144 fi
59145
59146 rm -rf conftest.dSYM
59147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59148       conftest$ac_exeext conftest.$ac_ext
59149 fi
59150 ac_res=`eval 'as_val=${'$as_ac_var'}
59151                  $as_echo "$as_val"'`
59152                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59153 $as_echo "$ac_res" >&6; }
59154 as_val=`eval 'as_val=${'$as_ac_var'}
59155                  $as_echo "$as_val"'`
59156    if test "x$as_val" = x""yes; then
59157   cat >>confdefs.h <<_ACEOF
59158 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59159 _ACEOF
59160
59161 fi
59162 done
59163
59164
59165 ice_have_bind=no
59166
59167 for ac_func in bind
59168 do
59169 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59170 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59171 $as_echo_n "checking for $ac_func... " >&6; }
59172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59173   $as_echo_n "(cached) " >&6
59174 else
59175   cat >conftest.$ac_ext <<_ACEOF
59176 /* confdefs.h.  */
59177 _ACEOF
59178 cat confdefs.h >>conftest.$ac_ext
59179 cat >>conftest.$ac_ext <<_ACEOF
59180 /* end confdefs.h.  */
59181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59183 #define $ac_func innocuous_$ac_func
59184
59185 /* System header to define __stub macros and hopefully few prototypes,
59186     which can conflict with char $ac_func (); below.
59187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59188     <limits.h> exists even on freestanding compilers.  */
59189
59190 #ifdef __STDC__
59191 # include <limits.h>
59192 #else
59193 # include <assert.h>
59194 #endif
59195
59196 #undef $ac_func
59197
59198 /* Override any GCC internal prototype to avoid an error.
59199    Use char because int might match the return type of a GCC
59200    builtin and then its argument prototype would still apply.  */
59201 #ifdef __cplusplus
59202 extern "C"
59203 #endif
59204 char $ac_func ();
59205 /* The GNU C library defines this for functions which it implements
59206     to always fail with ENOSYS.  Some functions are actually named
59207     something starting with __ and the normal name is an alias.  */
59208 #if defined __stub_$ac_func || defined __stub___$ac_func
59209 choke me
59210 #endif
59211
59212 int
59213 main ()
59214 {
59215 return $ac_func ();
59216   ;
59217   return 0;
59218 }
59219 _ACEOF
59220 rm -f conftest.$ac_objext conftest$ac_exeext
59221 if { (ac_try="$ac_link"
59222 case "(($ac_try" in
59223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59224   *) ac_try_echo=$ac_try;;
59225 esac
59226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59227 $as_echo "$ac_try_echo") >&5
59228   (eval "$ac_link") 2>conftest.er1
59229   ac_status=$?
59230   grep -v '^ *+' conftest.er1 >conftest.err
59231   rm -f conftest.er1
59232   cat conftest.err >&5
59233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59234   (exit $ac_status); } && {
59235          test -z "$ac_c_werror_flag" ||
59236          test ! -s conftest.err
59237        } && test -s conftest$ac_exeext && {
59238          test "$cross_compiling" = yes ||
59239          $as_test_x conftest$ac_exeext
59240        }; then
59241   eval "$as_ac_var=yes"
59242 else
59243   $as_echo "$as_me: failed program was:" >&5
59244 sed 's/^/| /' conftest.$ac_ext >&5
59245
59246         eval "$as_ac_var=no"
59247 fi
59248
59249 rm -rf conftest.dSYM
59250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59251       conftest$ac_exeext conftest.$ac_ext
59252 fi
59253 ac_res=`eval 'as_val=${'$as_ac_var'}
59254                  $as_echo "$as_val"'`
59255                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59256 $as_echo "$ac_res" >&6; }
59257 as_val=`eval 'as_val=${'$as_ac_var'}
59258                  $as_echo "$as_val"'`
59259    if test "x$as_val" = x""yes; then
59260   cat >>confdefs.h <<_ACEOF
59261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59262 _ACEOF
59263  ice_have_bind=yes
59264 fi
59265 done
59266
59267 if test "${ice_have_bind}" = yes; then
59268 { $as_echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
59269 $as_echo_n "checking for bind declaration in sys/types.h sys/socket.h... " >&6; }
59270 if test "${ice_cv_have_bind_decl+set}" = set; then
59271   $as_echo_n "(cached) " >&6
59272 else
59273
59274 ice_cv_have_bind_decl=no
59275 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59276 ice_re_word='(^|[^a-zA-Z0-9_])'
59277 for header in sys/types.h sys/socket.h; do
59278 # Check for ordinary declaration
59279 cat >conftest.$ac_ext <<_ACEOF
59280 /* confdefs.h.  */
59281 _ACEOF
59282 cat confdefs.h >>conftest.$ac_ext
59283 cat >>conftest.$ac_ext <<_ACEOF
59284 /* end confdefs.h.  */
59285 #include <$header>
59286
59287 _ACEOF
59288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59289   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then
59290   ice_cv_have_bind_decl=yes
59291 fi
59292 rm -f conftest*
59293
59294 if test "$ice_cv_have_bind_decl" = yes; then
59295         break
59296 fi
59297 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59298 cat >conftest.$ac_ext <<_ACEOF
59299 /* confdefs.h.  */
59300 _ACEOF
59301 cat confdefs.h >>conftest.$ac_ext
59302 cat >>conftest.$ac_ext <<_ACEOF
59303 /* end confdefs.h.  */
59304 #include <$header>
59305
59306 _ACEOF
59307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59308   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59309   ice_cv_have_bind_decl=yes
59310 fi
59311 rm -f conftest*
59312
59313 if test "$ice_cv_have_bind_decl" = yes; then
59314         break
59315 fi
59316 done
59317
59318 fi
59319
59320 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
59321 $as_echo "$ice_cv_have_bind_decl" >&6; }
59322 if test "$ice_cv_have_bind_decl" = yes; then
59323
59324 cat >>confdefs.h <<_ACEOF
59325 #define HAVE_BIND_DECL 1
59326 _ACEOF
59327
59328 fi
59329 fi
59330
59331
59332 ice_have_bcopy=no
59333
59334 for ac_func in bcopy
59335 do
59336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59337 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59338 $as_echo_n "checking for $ac_func... " >&6; }
59339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59340   $as_echo_n "(cached) " >&6
59341 else
59342   cat >conftest.$ac_ext <<_ACEOF
59343 /* confdefs.h.  */
59344 _ACEOF
59345 cat confdefs.h >>conftest.$ac_ext
59346 cat >>conftest.$ac_ext <<_ACEOF
59347 /* end confdefs.h.  */
59348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59350 #define $ac_func innocuous_$ac_func
59351
59352 /* System header to define __stub macros and hopefully few prototypes,
59353     which can conflict with char $ac_func (); below.
59354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59355     <limits.h> exists even on freestanding compilers.  */
59356
59357 #ifdef __STDC__
59358 # include <limits.h>
59359 #else
59360 # include <assert.h>
59361 #endif
59362
59363 #undef $ac_func
59364
59365 /* Override any GCC internal prototype to avoid an error.
59366    Use char because int might match the return type of a GCC
59367    builtin and then its argument prototype would still apply.  */
59368 #ifdef __cplusplus
59369 extern "C"
59370 #endif
59371 char $ac_func ();
59372 /* The GNU C library defines this for functions which it implements
59373     to always fail with ENOSYS.  Some functions are actually named
59374     something starting with __ and the normal name is an alias.  */
59375 #if defined __stub_$ac_func || defined __stub___$ac_func
59376 choke me
59377 #endif
59378
59379 int
59380 main ()
59381 {
59382 return $ac_func ();
59383   ;
59384   return 0;
59385 }
59386 _ACEOF
59387 rm -f conftest.$ac_objext conftest$ac_exeext
59388 if { (ac_try="$ac_link"
59389 case "(($ac_try" in
59390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59391   *) ac_try_echo=$ac_try;;
59392 esac
59393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59394 $as_echo "$ac_try_echo") >&5
59395   (eval "$ac_link") 2>conftest.er1
59396   ac_status=$?
59397   grep -v '^ *+' conftest.er1 >conftest.err
59398   rm -f conftest.er1
59399   cat conftest.err >&5
59400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59401   (exit $ac_status); } && {
59402          test -z "$ac_c_werror_flag" ||
59403          test ! -s conftest.err
59404        } && test -s conftest$ac_exeext && {
59405          test "$cross_compiling" = yes ||
59406          $as_test_x conftest$ac_exeext
59407        }; then
59408   eval "$as_ac_var=yes"
59409 else
59410   $as_echo "$as_me: failed program was:" >&5
59411 sed 's/^/| /' conftest.$ac_ext >&5
59412
59413         eval "$as_ac_var=no"
59414 fi
59415
59416 rm -rf conftest.dSYM
59417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59418       conftest$ac_exeext conftest.$ac_ext
59419 fi
59420 ac_res=`eval 'as_val=${'$as_ac_var'}
59421                  $as_echo "$as_val"'`
59422                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59423 $as_echo "$ac_res" >&6; }
59424 as_val=`eval 'as_val=${'$as_ac_var'}
59425                  $as_echo "$as_val"'`
59426    if test "x$as_val" = x""yes; then
59427   cat >>confdefs.h <<_ACEOF
59428 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59429 _ACEOF
59430  ice_have_bcopy=yes
59431 fi
59432 done
59433
59434 if test "${ice_have_bcopy}" = yes; then
59435 { $as_echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
59436 $as_echo_n "checking for bcopy declaration in string.h strings.h stdlib.h... " >&6; }
59437 if test "${ice_cv_have_bcopy_decl+set}" = set; then
59438   $as_echo_n "(cached) " >&6
59439 else
59440
59441 ice_cv_have_bcopy_decl=no
59442 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59443 ice_re_word='(^|[^a-zA-Z0-9_])'
59444 for header in string.h strings.h stdlib.h; do
59445 # Check for ordinary declaration
59446 cat >conftest.$ac_ext <<_ACEOF
59447 /* confdefs.h.  */
59448 _ACEOF
59449 cat confdefs.h >>conftest.$ac_ext
59450 cat >>conftest.$ac_ext <<_ACEOF
59451 /* end confdefs.h.  */
59452 #include <$header>
59453
59454 _ACEOF
59455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59456   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then
59457   ice_cv_have_bcopy_decl=yes
59458 fi
59459 rm -f conftest*
59460
59461 if test "$ice_cv_have_bcopy_decl" = yes; then
59462         break
59463 fi
59464 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59465 cat >conftest.$ac_ext <<_ACEOF
59466 /* confdefs.h.  */
59467 _ACEOF
59468 cat confdefs.h >>conftest.$ac_ext
59469 cat >>conftest.$ac_ext <<_ACEOF
59470 /* end confdefs.h.  */
59471 #include <$header>
59472
59473 _ACEOF
59474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59475   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59476   ice_cv_have_bcopy_decl=yes
59477 fi
59478 rm -f conftest*
59479
59480 if test "$ice_cv_have_bcopy_decl" = yes; then
59481         break
59482 fi
59483 done
59484
59485 fi
59486
59487 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
59488 $as_echo "$ice_cv_have_bcopy_decl" >&6; }
59489 if test "$ice_cv_have_bcopy_decl" = yes; then
59490
59491 cat >>confdefs.h <<_ACEOF
59492 #define HAVE_BCOPY_DECL 1
59493 _ACEOF
59494
59495 fi
59496 fi
59497
59498
59499 ice_have_bzero=no
59500
59501 for ac_func in bzero
59502 do
59503 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59504 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59505 $as_echo_n "checking for $ac_func... " >&6; }
59506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59507   $as_echo_n "(cached) " >&6
59508 else
59509   cat >conftest.$ac_ext <<_ACEOF
59510 /* confdefs.h.  */
59511 _ACEOF
59512 cat confdefs.h >>conftest.$ac_ext
59513 cat >>conftest.$ac_ext <<_ACEOF
59514 /* end confdefs.h.  */
59515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59516    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59517 #define $ac_func innocuous_$ac_func
59518
59519 /* System header to define __stub macros and hopefully few prototypes,
59520     which can conflict with char $ac_func (); below.
59521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59522     <limits.h> exists even on freestanding compilers.  */
59523
59524 #ifdef __STDC__
59525 # include <limits.h>
59526 #else
59527 # include <assert.h>
59528 #endif
59529
59530 #undef $ac_func
59531
59532 /* Override any GCC internal prototype to avoid an error.
59533    Use char because int might match the return type of a GCC
59534    builtin and then its argument prototype would still apply.  */
59535 #ifdef __cplusplus
59536 extern "C"
59537 #endif
59538 char $ac_func ();
59539 /* The GNU C library defines this for functions which it implements
59540     to always fail with ENOSYS.  Some functions are actually named
59541     something starting with __ and the normal name is an alias.  */
59542 #if defined __stub_$ac_func || defined __stub___$ac_func
59543 choke me
59544 #endif
59545
59546 int
59547 main ()
59548 {
59549 return $ac_func ();
59550   ;
59551   return 0;
59552 }
59553 _ACEOF
59554 rm -f conftest.$ac_objext conftest$ac_exeext
59555 if { (ac_try="$ac_link"
59556 case "(($ac_try" in
59557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59558   *) ac_try_echo=$ac_try;;
59559 esac
59560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59561 $as_echo "$ac_try_echo") >&5
59562   (eval "$ac_link") 2>conftest.er1
59563   ac_status=$?
59564   grep -v '^ *+' conftest.er1 >conftest.err
59565   rm -f conftest.er1
59566   cat conftest.err >&5
59567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59568   (exit $ac_status); } && {
59569          test -z "$ac_c_werror_flag" ||
59570          test ! -s conftest.err
59571        } && test -s conftest$ac_exeext && {
59572          test "$cross_compiling" = yes ||
59573          $as_test_x conftest$ac_exeext
59574        }; then
59575   eval "$as_ac_var=yes"
59576 else
59577   $as_echo "$as_me: failed program was:" >&5
59578 sed 's/^/| /' conftest.$ac_ext >&5
59579
59580         eval "$as_ac_var=no"
59581 fi
59582
59583 rm -rf conftest.dSYM
59584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59585       conftest$ac_exeext conftest.$ac_ext
59586 fi
59587 ac_res=`eval 'as_val=${'$as_ac_var'}
59588                  $as_echo "$as_val"'`
59589                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59590 $as_echo "$ac_res" >&6; }
59591 as_val=`eval 'as_val=${'$as_ac_var'}
59592                  $as_echo "$as_val"'`
59593    if test "x$as_val" = x""yes; then
59594   cat >>confdefs.h <<_ACEOF
59595 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59596 _ACEOF
59597  ice_have_bzero=yes
59598 fi
59599 done
59600
59601 if test "${ice_have_bzero}" = yes; then
59602 { $as_echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
59603 $as_echo_n "checking for bzero declaration in string.h strings.h stdlib.h... " >&6; }
59604 if test "${ice_cv_have_bzero_decl+set}" = set; then
59605   $as_echo_n "(cached) " >&6
59606 else
59607
59608 ice_cv_have_bzero_decl=no
59609 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59610 ice_re_word='(^|[^a-zA-Z0-9_])'
59611 for header in string.h strings.h stdlib.h; do
59612 # Check for ordinary declaration
59613 cat >conftest.$ac_ext <<_ACEOF
59614 /* confdefs.h.  */
59615 _ACEOF
59616 cat confdefs.h >>conftest.$ac_ext
59617 cat >>conftest.$ac_ext <<_ACEOF
59618 /* end confdefs.h.  */
59619 #include <$header>
59620
59621 _ACEOF
59622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59623   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then
59624   ice_cv_have_bzero_decl=yes
59625 fi
59626 rm -f conftest*
59627
59628 if test "$ice_cv_have_bzero_decl" = yes; then
59629         break
59630 fi
59631 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59632 cat >conftest.$ac_ext <<_ACEOF
59633 /* confdefs.h.  */
59634 _ACEOF
59635 cat confdefs.h >>conftest.$ac_ext
59636 cat >>conftest.$ac_ext <<_ACEOF
59637 /* end confdefs.h.  */
59638 #include <$header>
59639
59640 _ACEOF
59641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59642   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59643   ice_cv_have_bzero_decl=yes
59644 fi
59645 rm -f conftest*
59646
59647 if test "$ice_cv_have_bzero_decl" = yes; then
59648         break
59649 fi
59650 done
59651
59652 fi
59653
59654 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
59655 $as_echo "$ice_cv_have_bzero_decl" >&6; }
59656 if test "$ice_cv_have_bzero_decl" = yes; then
59657
59658 cat >>confdefs.h <<_ACEOF
59659 #define HAVE_BZERO_DECL 1
59660 _ACEOF
59661
59662 fi
59663 fi
59664
59665 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
59666 $as_echo_n "checking whether closedir returns void... " >&6; }
59667 if test "${ac_cv_func_closedir_void+set}" = set; then
59668   $as_echo_n "(cached) " >&6
59669 else
59670   if test "$cross_compiling" = yes; then
59671   ac_cv_func_closedir_void=yes
59672 else
59673   cat >conftest.$ac_ext <<_ACEOF
59674 /* confdefs.h.  */
59675 _ACEOF
59676 cat confdefs.h >>conftest.$ac_ext
59677 cat >>conftest.$ac_ext <<_ACEOF
59678 /* end confdefs.h.  */
59679 $ac_includes_default
59680 #include <$ac_header_dirent>
59681 #ifndef __cplusplus
59682 int closedir ();
59683 #endif
59684
59685 int
59686 main ()
59687 {
59688 return closedir (opendir (".")) != 0;
59689   ;
59690   return 0;
59691 }
59692 _ACEOF
59693 rm -f conftest$ac_exeext
59694 if { (ac_try="$ac_link"
59695 case "(($ac_try" in
59696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59697   *) ac_try_echo=$ac_try;;
59698 esac
59699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59700 $as_echo "$ac_try_echo") >&5
59701   (eval "$ac_link") 2>&5
59702   ac_status=$?
59703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59704   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
59705   { (case "(($ac_try" in
59706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59707   *) ac_try_echo=$ac_try;;
59708 esac
59709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59710 $as_echo "$ac_try_echo") >&5
59711   (eval "$ac_try") 2>&5
59712   ac_status=$?
59713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59714   (exit $ac_status); }; }; then
59715   ac_cv_func_closedir_void=no
59716 else
59717   $as_echo "$as_me: program exited with status $ac_status" >&5
59718 $as_echo "$as_me: failed program was:" >&5
59719 sed 's/^/| /' conftest.$ac_ext >&5
59720
59721 ( exit $ac_status )
59722 ac_cv_func_closedir_void=yes
59723 fi
59724 rm -rf conftest.dSYM
59725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
59726 fi
59727
59728
59729 fi
59730 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
59731 $as_echo "$ac_cv_func_closedir_void" >&6; }
59732 if test $ac_cv_func_closedir_void = yes; then
59733
59734 cat >>confdefs.h <<\_ACEOF
59735 #define CLOSEDIR_VOID 1
59736 _ACEOF
59737
59738 fi
59739
59740
59741 ice_have_closelog=no
59742
59743 for ac_func in closelog
59744 do
59745 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59746 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59747 $as_echo_n "checking for $ac_func... " >&6; }
59748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59749   $as_echo_n "(cached) " >&6
59750 else
59751   cat >conftest.$ac_ext <<_ACEOF
59752 /* confdefs.h.  */
59753 _ACEOF
59754 cat confdefs.h >>conftest.$ac_ext
59755 cat >>conftest.$ac_ext <<_ACEOF
59756 /* end confdefs.h.  */
59757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59759 #define $ac_func innocuous_$ac_func
59760
59761 /* System header to define __stub macros and hopefully few prototypes,
59762     which can conflict with char $ac_func (); below.
59763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59764     <limits.h> exists even on freestanding compilers.  */
59765
59766 #ifdef __STDC__
59767 # include <limits.h>
59768 #else
59769 # include <assert.h>
59770 #endif
59771
59772 #undef $ac_func
59773
59774 /* Override any GCC internal prototype to avoid an error.
59775    Use char because int might match the return type of a GCC
59776    builtin and then its argument prototype would still apply.  */
59777 #ifdef __cplusplus
59778 extern "C"
59779 #endif
59780 char $ac_func ();
59781 /* The GNU C library defines this for functions which it implements
59782     to always fail with ENOSYS.  Some functions are actually named
59783     something starting with __ and the normal name is an alias.  */
59784 #if defined __stub_$ac_func || defined __stub___$ac_func
59785 choke me
59786 #endif
59787
59788 int
59789 main ()
59790 {
59791 return $ac_func ();
59792   ;
59793   return 0;
59794 }
59795 _ACEOF
59796 rm -f conftest.$ac_objext conftest$ac_exeext
59797 if { (ac_try="$ac_link"
59798 case "(($ac_try" in
59799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59800   *) ac_try_echo=$ac_try;;
59801 esac
59802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59803 $as_echo "$ac_try_echo") >&5
59804   (eval "$ac_link") 2>conftest.er1
59805   ac_status=$?
59806   grep -v '^ *+' conftest.er1 >conftest.err
59807   rm -f conftest.er1
59808   cat conftest.err >&5
59809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59810   (exit $ac_status); } && {
59811          test -z "$ac_c_werror_flag" ||
59812          test ! -s conftest.err
59813        } && test -s conftest$ac_exeext && {
59814          test "$cross_compiling" = yes ||
59815          $as_test_x conftest$ac_exeext
59816        }; then
59817   eval "$as_ac_var=yes"
59818 else
59819   $as_echo "$as_me: failed program was:" >&5
59820 sed 's/^/| /' conftest.$ac_ext >&5
59821
59822         eval "$as_ac_var=no"
59823 fi
59824
59825 rm -rf conftest.dSYM
59826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59827       conftest$ac_exeext conftest.$ac_ext
59828 fi
59829 ac_res=`eval 'as_val=${'$as_ac_var'}
59830                  $as_echo "$as_val"'`
59831                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59832 $as_echo "$ac_res" >&6; }
59833 as_val=`eval 'as_val=${'$as_ac_var'}
59834                  $as_echo "$as_val"'`
59835    if test "x$as_val" = x""yes; then
59836   cat >>confdefs.h <<_ACEOF
59837 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59838 _ACEOF
59839  ice_have_closelog=yes
59840 fi
59841 done
59842
59843 if test "${ice_have_closelog}" = yes; then
59844 { $as_echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
59845 $as_echo_n "checking for closelog declaration in syslog.h... " >&6; }
59846 if test "${ice_cv_have_closelog_decl+set}" = set; then
59847   $as_echo_n "(cached) " >&6
59848 else
59849
59850 ice_cv_have_closelog_decl=no
59851 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59852 ice_re_word='(^|[^a-zA-Z0-9_])'
59853 for header in syslog.h; do
59854 # Check for ordinary declaration
59855 cat >conftest.$ac_ext <<_ACEOF
59856 /* confdefs.h.  */
59857 _ACEOF
59858 cat confdefs.h >>conftest.$ac_ext
59859 cat >>conftest.$ac_ext <<_ACEOF
59860 /* end confdefs.h.  */
59861 #include <$header>
59862
59863 _ACEOF
59864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59865   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then
59866   ice_cv_have_closelog_decl=yes
59867 fi
59868 rm -f conftest*
59869
59870 if test "$ice_cv_have_closelog_decl" = yes; then
59871         break
59872 fi
59873 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59874 cat >conftest.$ac_ext <<_ACEOF
59875 /* confdefs.h.  */
59876 _ACEOF
59877 cat confdefs.h >>conftest.$ac_ext
59878 cat >>conftest.$ac_ext <<_ACEOF
59879 /* end confdefs.h.  */
59880 #include <$header>
59881
59882 _ACEOF
59883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59884   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59885   ice_cv_have_closelog_decl=yes
59886 fi
59887 rm -f conftest*
59888
59889 if test "$ice_cv_have_closelog_decl" = yes; then
59890         break
59891 fi
59892 done
59893
59894 fi
59895
59896 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
59897 $as_echo "$ice_cv_have_closelog_decl" >&6; }
59898 if test "$ice_cv_have_closelog_decl" = yes; then
59899
59900 cat >>confdefs.h <<_ACEOF
59901 #define HAVE_CLOSELOG_DECL 1
59902 _ACEOF
59903
59904 fi
59905 fi
59906
59907
59908 ice_have_connect=no
59909
59910 for ac_func in connect
59911 do
59912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59913 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59914 $as_echo_n "checking for $ac_func... " >&6; }
59915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59916   $as_echo_n "(cached) " >&6
59917 else
59918   cat >conftest.$ac_ext <<_ACEOF
59919 /* confdefs.h.  */
59920 _ACEOF
59921 cat confdefs.h >>conftest.$ac_ext
59922 cat >>conftest.$ac_ext <<_ACEOF
59923 /* end confdefs.h.  */
59924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59926 #define $ac_func innocuous_$ac_func
59927
59928 /* System header to define __stub macros and hopefully few prototypes,
59929     which can conflict with char $ac_func (); below.
59930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59931     <limits.h> exists even on freestanding compilers.  */
59932
59933 #ifdef __STDC__
59934 # include <limits.h>
59935 #else
59936 # include <assert.h>
59937 #endif
59938
59939 #undef $ac_func
59940
59941 /* Override any GCC internal prototype to avoid an error.
59942    Use char because int might match the return type of a GCC
59943    builtin and then its argument prototype would still apply.  */
59944 #ifdef __cplusplus
59945 extern "C"
59946 #endif
59947 char $ac_func ();
59948 /* The GNU C library defines this for functions which it implements
59949     to always fail with ENOSYS.  Some functions are actually named
59950     something starting with __ and the normal name is an alias.  */
59951 #if defined __stub_$ac_func || defined __stub___$ac_func
59952 choke me
59953 #endif
59954
59955 int
59956 main ()
59957 {
59958 return $ac_func ();
59959   ;
59960   return 0;
59961 }
59962 _ACEOF
59963 rm -f conftest.$ac_objext conftest$ac_exeext
59964 if { (ac_try="$ac_link"
59965 case "(($ac_try" in
59966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59967   *) ac_try_echo=$ac_try;;
59968 esac
59969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59970 $as_echo "$ac_try_echo") >&5
59971   (eval "$ac_link") 2>conftest.er1
59972   ac_status=$?
59973   grep -v '^ *+' conftest.er1 >conftest.err
59974   rm -f conftest.er1
59975   cat conftest.err >&5
59976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59977   (exit $ac_status); } && {
59978          test -z "$ac_c_werror_flag" ||
59979          test ! -s conftest.err
59980        } && test -s conftest$ac_exeext && {
59981          test "$cross_compiling" = yes ||
59982          $as_test_x conftest$ac_exeext
59983        }; then
59984   eval "$as_ac_var=yes"
59985 else
59986   $as_echo "$as_me: failed program was:" >&5
59987 sed 's/^/| /' conftest.$ac_ext >&5
59988
59989         eval "$as_ac_var=no"
59990 fi
59991
59992 rm -rf conftest.dSYM
59993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59994       conftest$ac_exeext conftest.$ac_ext
59995 fi
59996 ac_res=`eval 'as_val=${'$as_ac_var'}
59997                  $as_echo "$as_val"'`
59998                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59999 $as_echo "$ac_res" >&6; }
60000 as_val=`eval 'as_val=${'$as_ac_var'}
60001                  $as_echo "$as_val"'`
60002    if test "x$as_val" = x""yes; then
60003   cat >>confdefs.h <<_ACEOF
60004 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60005 _ACEOF
60006  ice_have_connect=yes
60007 fi
60008 done
60009
60010 if test "${ice_have_connect}" = yes; then
60011 { $as_echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
60012 $as_echo_n "checking for connect declaration in sys/types.h sys/socket.h... " >&6; }
60013 if test "${ice_cv_have_connect_decl+set}" = set; then
60014   $as_echo_n "(cached) " >&6
60015 else
60016
60017 ice_cv_have_connect_decl=no
60018 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60019 ice_re_word='(^|[^a-zA-Z0-9_])'
60020 for header in sys/types.h sys/socket.h; do
60021 # Check for ordinary declaration
60022 cat >conftest.$ac_ext <<_ACEOF
60023 /* confdefs.h.  */
60024 _ACEOF
60025 cat confdefs.h >>conftest.$ac_ext
60026 cat >>conftest.$ac_ext <<_ACEOF
60027 /* end confdefs.h.  */
60028 #include <$header>
60029
60030 _ACEOF
60031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60032   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then
60033   ice_cv_have_connect_decl=yes
60034 fi
60035 rm -f conftest*
60036
60037 if test "$ice_cv_have_connect_decl" = yes; then
60038         break
60039 fi
60040 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60041 cat >conftest.$ac_ext <<_ACEOF
60042 /* confdefs.h.  */
60043 _ACEOF
60044 cat confdefs.h >>conftest.$ac_ext
60045 cat >>conftest.$ac_ext <<_ACEOF
60046 /* end confdefs.h.  */
60047 #include <$header>
60048
60049 _ACEOF
60050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60051   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60052   ice_cv_have_connect_decl=yes
60053 fi
60054 rm -f conftest*
60055
60056 if test "$ice_cv_have_connect_decl" = yes; then
60057         break
60058 fi
60059 done
60060
60061 fi
60062
60063 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
60064 $as_echo "$ice_cv_have_connect_decl" >&6; }
60065 if test "$ice_cv_have_connect_decl" = yes; then
60066
60067 cat >>confdefs.h <<_ACEOF
60068 #define HAVE_CONNECT_DECL 1
60069 _ACEOF
60070
60071 fi
60072 fi
60073
60074
60075 ice_have_fclose=no
60076
60077 for ac_func in fclose
60078 do
60079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60080 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60081 $as_echo_n "checking for $ac_func... " >&6; }
60082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60083   $as_echo_n "(cached) " >&6
60084 else
60085   cat >conftest.$ac_ext <<_ACEOF
60086 /* confdefs.h.  */
60087 _ACEOF
60088 cat confdefs.h >>conftest.$ac_ext
60089 cat >>conftest.$ac_ext <<_ACEOF
60090 /* end confdefs.h.  */
60091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60093 #define $ac_func innocuous_$ac_func
60094
60095 /* System header to define __stub macros and hopefully few prototypes,
60096     which can conflict with char $ac_func (); below.
60097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60098     <limits.h> exists even on freestanding compilers.  */
60099
60100 #ifdef __STDC__
60101 # include <limits.h>
60102 #else
60103 # include <assert.h>
60104 #endif
60105
60106 #undef $ac_func
60107
60108 /* Override any GCC internal prototype to avoid an error.
60109    Use char because int might match the return type of a GCC
60110    builtin and then its argument prototype would still apply.  */
60111 #ifdef __cplusplus
60112 extern "C"
60113 #endif
60114 char $ac_func ();
60115 /* The GNU C library defines this for functions which it implements
60116     to always fail with ENOSYS.  Some functions are actually named
60117     something starting with __ and the normal name is an alias.  */
60118 #if defined __stub_$ac_func || defined __stub___$ac_func
60119 choke me
60120 #endif
60121
60122 int
60123 main ()
60124 {
60125 return $ac_func ();
60126   ;
60127   return 0;
60128 }
60129 _ACEOF
60130 rm -f conftest.$ac_objext conftest$ac_exeext
60131 if { (ac_try="$ac_link"
60132 case "(($ac_try" in
60133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60134   *) ac_try_echo=$ac_try;;
60135 esac
60136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60137 $as_echo "$ac_try_echo") >&5
60138   (eval "$ac_link") 2>conftest.er1
60139   ac_status=$?
60140   grep -v '^ *+' conftest.er1 >conftest.err
60141   rm -f conftest.er1
60142   cat conftest.err >&5
60143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60144   (exit $ac_status); } && {
60145          test -z "$ac_c_werror_flag" ||
60146          test ! -s conftest.err
60147        } && test -s conftest$ac_exeext && {
60148          test "$cross_compiling" = yes ||
60149          $as_test_x conftest$ac_exeext
60150        }; then
60151   eval "$as_ac_var=yes"
60152 else
60153   $as_echo "$as_me: failed program was:" >&5
60154 sed 's/^/| /' conftest.$ac_ext >&5
60155
60156         eval "$as_ac_var=no"
60157 fi
60158
60159 rm -rf conftest.dSYM
60160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60161       conftest$ac_exeext conftest.$ac_ext
60162 fi
60163 ac_res=`eval 'as_val=${'$as_ac_var'}
60164                  $as_echo "$as_val"'`
60165                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60166 $as_echo "$ac_res" >&6; }
60167 as_val=`eval 'as_val=${'$as_ac_var'}
60168                  $as_echo "$as_val"'`
60169    if test "x$as_val" = x""yes; then
60170   cat >>confdefs.h <<_ACEOF
60171 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60172 _ACEOF
60173  ice_have_fclose=yes
60174 fi
60175 done
60176
60177 if test "${ice_have_fclose}" = yes; then
60178 { $as_echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
60179 $as_echo_n "checking for fclose declaration in stdio.h... " >&6; }
60180 if test "${ice_cv_have_fclose_decl+set}" = set; then
60181   $as_echo_n "(cached) " >&6
60182 else
60183
60184 ice_cv_have_fclose_decl=no
60185 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60186 ice_re_word='(^|[^a-zA-Z0-9_])'
60187 for header in stdio.h; do
60188 # Check for ordinary declaration
60189 cat >conftest.$ac_ext <<_ACEOF
60190 /* confdefs.h.  */
60191 _ACEOF
60192 cat confdefs.h >>conftest.$ac_ext
60193 cat >>conftest.$ac_ext <<_ACEOF
60194 /* end confdefs.h.  */
60195 #include <$header>
60196
60197 _ACEOF
60198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60199   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then
60200   ice_cv_have_fclose_decl=yes
60201 fi
60202 rm -f conftest*
60203
60204 if test "$ice_cv_have_fclose_decl" = yes; then
60205         break
60206 fi
60207 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60208 cat >conftest.$ac_ext <<_ACEOF
60209 /* confdefs.h.  */
60210 _ACEOF
60211 cat confdefs.h >>conftest.$ac_ext
60212 cat >>conftest.$ac_ext <<_ACEOF
60213 /* end confdefs.h.  */
60214 #include <$header>
60215
60216 _ACEOF
60217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60218   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60219   ice_cv_have_fclose_decl=yes
60220 fi
60221 rm -f conftest*
60222
60223 if test "$ice_cv_have_fclose_decl" = yes; then
60224         break
60225 fi
60226 done
60227
60228 fi
60229
60230 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
60231 $as_echo "$ice_cv_have_fclose_decl" >&6; }
60232 if test "$ice_cv_have_fclose_decl" = yes; then
60233
60234 cat >>confdefs.h <<_ACEOF
60235 #define HAVE_FCLOSE_DECL 1
60236 _ACEOF
60237
60238 fi
60239 fi
60240
60241
60242 ice_have_fflush=no
60243
60244 for ac_func in fflush
60245 do
60246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60247 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60248 $as_echo_n "checking for $ac_func... " >&6; }
60249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60250   $as_echo_n "(cached) " >&6
60251 else
60252   cat >conftest.$ac_ext <<_ACEOF
60253 /* confdefs.h.  */
60254 _ACEOF
60255 cat confdefs.h >>conftest.$ac_ext
60256 cat >>conftest.$ac_ext <<_ACEOF
60257 /* end confdefs.h.  */
60258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60260 #define $ac_func innocuous_$ac_func
60261
60262 /* System header to define __stub macros and hopefully few prototypes,
60263     which can conflict with char $ac_func (); below.
60264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60265     <limits.h> exists even on freestanding compilers.  */
60266
60267 #ifdef __STDC__
60268 # include <limits.h>
60269 #else
60270 # include <assert.h>
60271 #endif
60272
60273 #undef $ac_func
60274
60275 /* Override any GCC internal prototype to avoid an error.
60276    Use char because int might match the return type of a GCC
60277    builtin and then its argument prototype would still apply.  */
60278 #ifdef __cplusplus
60279 extern "C"
60280 #endif
60281 char $ac_func ();
60282 /* The GNU C library defines this for functions which it implements
60283     to always fail with ENOSYS.  Some functions are actually named
60284     something starting with __ and the normal name is an alias.  */
60285 #if defined __stub_$ac_func || defined __stub___$ac_func
60286 choke me
60287 #endif
60288
60289 int
60290 main ()
60291 {
60292 return $ac_func ();
60293   ;
60294   return 0;
60295 }
60296 _ACEOF
60297 rm -f conftest.$ac_objext conftest$ac_exeext
60298 if { (ac_try="$ac_link"
60299 case "(($ac_try" in
60300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60301   *) ac_try_echo=$ac_try;;
60302 esac
60303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60304 $as_echo "$ac_try_echo") >&5
60305   (eval "$ac_link") 2>conftest.er1
60306   ac_status=$?
60307   grep -v '^ *+' conftest.er1 >conftest.err
60308   rm -f conftest.er1
60309   cat conftest.err >&5
60310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60311   (exit $ac_status); } && {
60312          test -z "$ac_c_werror_flag" ||
60313          test ! -s conftest.err
60314        } && test -s conftest$ac_exeext && {
60315          test "$cross_compiling" = yes ||
60316          $as_test_x conftest$ac_exeext
60317        }; then
60318   eval "$as_ac_var=yes"
60319 else
60320   $as_echo "$as_me: failed program was:" >&5
60321 sed 's/^/| /' conftest.$ac_ext >&5
60322
60323         eval "$as_ac_var=no"
60324 fi
60325
60326 rm -rf conftest.dSYM
60327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60328       conftest$ac_exeext conftest.$ac_ext
60329 fi
60330 ac_res=`eval 'as_val=${'$as_ac_var'}
60331                  $as_echo "$as_val"'`
60332                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60333 $as_echo "$ac_res" >&6; }
60334 as_val=`eval 'as_val=${'$as_ac_var'}
60335                  $as_echo "$as_val"'`
60336    if test "x$as_val" = x""yes; then
60337   cat >>confdefs.h <<_ACEOF
60338 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60339 _ACEOF
60340  ice_have_fflush=yes
60341 fi
60342 done
60343
60344 if test "${ice_have_fflush}" = yes; then
60345 { $as_echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
60346 $as_echo_n "checking for fflush declaration in stdio.h... " >&6; }
60347 if test "${ice_cv_have_fflush_decl+set}" = set; then
60348   $as_echo_n "(cached) " >&6
60349 else
60350
60351 ice_cv_have_fflush_decl=no
60352 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60353 ice_re_word='(^|[^a-zA-Z0-9_])'
60354 for header in stdio.h; do
60355 # Check for ordinary declaration
60356 cat >conftest.$ac_ext <<_ACEOF
60357 /* confdefs.h.  */
60358 _ACEOF
60359 cat confdefs.h >>conftest.$ac_ext
60360 cat >>conftest.$ac_ext <<_ACEOF
60361 /* end confdefs.h.  */
60362 #include <$header>
60363
60364 _ACEOF
60365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60366   $EGREP "${ice_re_word}fflush[         ]*\(" >/dev/null 2>&1; then
60367   ice_cv_have_fflush_decl=yes
60368 fi
60369 rm -f conftest*
60370
60371 if test "$ice_cv_have_fflush_decl" = yes; then
60372         break
60373 fi
60374 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60375 cat >conftest.$ac_ext <<_ACEOF
60376 /* confdefs.h.  */
60377 _ACEOF
60378 cat confdefs.h >>conftest.$ac_ext
60379 cat >>conftest.$ac_ext <<_ACEOF
60380 /* end confdefs.h.  */
60381 #include <$header>
60382
60383 _ACEOF
60384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60385   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60386   ice_cv_have_fflush_decl=yes
60387 fi
60388 rm -f conftest*
60389
60390 if test "$ice_cv_have_fflush_decl" = yes; then
60391         break
60392 fi
60393 done
60394
60395 fi
60396
60397 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
60398 $as_echo "$ice_cv_have_fflush_decl" >&6; }
60399 if test "$ice_cv_have_fflush_decl" = yes; then
60400
60401 cat >>confdefs.h <<_ACEOF
60402 #define HAVE_FFLUSH_DECL 1
60403 _ACEOF
60404
60405 fi
60406 fi
60407
60408
60409 ice_have_fprintf=no
60410
60411 for ac_func in fprintf
60412 do
60413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60414 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60415 $as_echo_n "checking for $ac_func... " >&6; }
60416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60417   $as_echo_n "(cached) " >&6
60418 else
60419   cat >conftest.$ac_ext <<_ACEOF
60420 /* confdefs.h.  */
60421 _ACEOF
60422 cat confdefs.h >>conftest.$ac_ext
60423 cat >>conftest.$ac_ext <<_ACEOF
60424 /* end confdefs.h.  */
60425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60427 #define $ac_func innocuous_$ac_func
60428
60429 /* System header to define __stub macros and hopefully few prototypes,
60430     which can conflict with char $ac_func (); below.
60431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60432     <limits.h> exists even on freestanding compilers.  */
60433
60434 #ifdef __STDC__
60435 # include <limits.h>
60436 #else
60437 # include <assert.h>
60438 #endif
60439
60440 #undef $ac_func
60441
60442 /* Override any GCC internal prototype to avoid an error.
60443    Use char because int might match the return type of a GCC
60444    builtin and then its argument prototype would still apply.  */
60445 #ifdef __cplusplus
60446 extern "C"
60447 #endif
60448 char $ac_func ();
60449 /* The GNU C library defines this for functions which it implements
60450     to always fail with ENOSYS.  Some functions are actually named
60451     something starting with __ and the normal name is an alias.  */
60452 #if defined __stub_$ac_func || defined __stub___$ac_func
60453 choke me
60454 #endif
60455
60456 int
60457 main ()
60458 {
60459 return $ac_func ();
60460   ;
60461   return 0;
60462 }
60463 _ACEOF
60464 rm -f conftest.$ac_objext conftest$ac_exeext
60465 if { (ac_try="$ac_link"
60466 case "(($ac_try" in
60467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60468   *) ac_try_echo=$ac_try;;
60469 esac
60470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60471 $as_echo "$ac_try_echo") >&5
60472   (eval "$ac_link") 2>conftest.er1
60473   ac_status=$?
60474   grep -v '^ *+' conftest.er1 >conftest.err
60475   rm -f conftest.er1
60476   cat conftest.err >&5
60477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60478   (exit $ac_status); } && {
60479          test -z "$ac_c_werror_flag" ||
60480          test ! -s conftest.err
60481        } && test -s conftest$ac_exeext && {
60482          test "$cross_compiling" = yes ||
60483          $as_test_x conftest$ac_exeext
60484        }; then
60485   eval "$as_ac_var=yes"
60486 else
60487   $as_echo "$as_me: failed program was:" >&5
60488 sed 's/^/| /' conftest.$ac_ext >&5
60489
60490         eval "$as_ac_var=no"
60491 fi
60492
60493 rm -rf conftest.dSYM
60494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60495       conftest$ac_exeext conftest.$ac_ext
60496 fi
60497 ac_res=`eval 'as_val=${'$as_ac_var'}
60498                  $as_echo "$as_val"'`
60499                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60500 $as_echo "$ac_res" >&6; }
60501 as_val=`eval 'as_val=${'$as_ac_var'}
60502                  $as_echo "$as_val"'`
60503    if test "x$as_val" = x""yes; then
60504   cat >>confdefs.h <<_ACEOF
60505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60506 _ACEOF
60507  ice_have_fprintf=yes
60508 fi
60509 done
60510
60511 if test "${ice_have_fprintf}" = yes; then
60512 { $as_echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
60513 $as_echo_n "checking for fprintf declaration in stdio.h... " >&6; }
60514 if test "${ice_cv_have_fprintf_decl+set}" = set; then
60515   $as_echo_n "(cached) " >&6
60516 else
60517
60518 ice_cv_have_fprintf_decl=no
60519 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60520 ice_re_word='(^|[^a-zA-Z0-9_])'
60521 for header in stdio.h; do
60522 # Check for ordinary declaration
60523 cat >conftest.$ac_ext <<_ACEOF
60524 /* confdefs.h.  */
60525 _ACEOF
60526 cat confdefs.h >>conftest.$ac_ext
60527 cat >>conftest.$ac_ext <<_ACEOF
60528 /* end confdefs.h.  */
60529 #include <$header>
60530
60531 _ACEOF
60532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60533   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then
60534   ice_cv_have_fprintf_decl=yes
60535 fi
60536 rm -f conftest*
60537
60538 if test "$ice_cv_have_fprintf_decl" = yes; then
60539         break
60540 fi
60541 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60542 cat >conftest.$ac_ext <<_ACEOF
60543 /* confdefs.h.  */
60544 _ACEOF
60545 cat confdefs.h >>conftest.$ac_ext
60546 cat >>conftest.$ac_ext <<_ACEOF
60547 /* end confdefs.h.  */
60548 #include <$header>
60549
60550 _ACEOF
60551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60552   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60553   ice_cv_have_fprintf_decl=yes
60554 fi
60555 rm -f conftest*
60556
60557 if test "$ice_cv_have_fprintf_decl" = yes; then
60558         break
60559 fi
60560 done
60561
60562 fi
60563
60564 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
60565 $as_echo "$ice_cv_have_fprintf_decl" >&6; }
60566 if test "$ice_cv_have_fprintf_decl" = yes; then
60567
60568 cat >>confdefs.h <<_ACEOF
60569 #define HAVE_FPRINTF_DECL 1
60570 _ACEOF
60571
60572 fi
60573 fi
60574
60575
60576 ice_have_fputc=no
60577
60578 for ac_func in fputc
60579 do
60580 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60581 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60582 $as_echo_n "checking for $ac_func... " >&6; }
60583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60584   $as_echo_n "(cached) " >&6
60585 else
60586   cat >conftest.$ac_ext <<_ACEOF
60587 /* confdefs.h.  */
60588 _ACEOF
60589 cat confdefs.h >>conftest.$ac_ext
60590 cat >>conftest.$ac_ext <<_ACEOF
60591 /* end confdefs.h.  */
60592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60594 #define $ac_func innocuous_$ac_func
60595
60596 /* System header to define __stub macros and hopefully few prototypes,
60597     which can conflict with char $ac_func (); below.
60598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60599     <limits.h> exists even on freestanding compilers.  */
60600
60601 #ifdef __STDC__
60602 # include <limits.h>
60603 #else
60604 # include <assert.h>
60605 #endif
60606
60607 #undef $ac_func
60608
60609 /* Override any GCC internal prototype to avoid an error.
60610    Use char because int might match the return type of a GCC
60611    builtin and then its argument prototype would still apply.  */
60612 #ifdef __cplusplus
60613 extern "C"
60614 #endif
60615 char $ac_func ();
60616 /* The GNU C library defines this for functions which it implements
60617     to always fail with ENOSYS.  Some functions are actually named
60618     something starting with __ and the normal name is an alias.  */
60619 #if defined __stub_$ac_func || defined __stub___$ac_func
60620 choke me
60621 #endif
60622
60623 int
60624 main ()
60625 {
60626 return $ac_func ();
60627   ;
60628   return 0;
60629 }
60630 _ACEOF
60631 rm -f conftest.$ac_objext conftest$ac_exeext
60632 if { (ac_try="$ac_link"
60633 case "(($ac_try" in
60634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60635   *) ac_try_echo=$ac_try;;
60636 esac
60637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60638 $as_echo "$ac_try_echo") >&5
60639   (eval "$ac_link") 2>conftest.er1
60640   ac_status=$?
60641   grep -v '^ *+' conftest.er1 >conftest.err
60642   rm -f conftest.er1
60643   cat conftest.err >&5
60644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60645   (exit $ac_status); } && {
60646          test -z "$ac_c_werror_flag" ||
60647          test ! -s conftest.err
60648        } && test -s conftest$ac_exeext && {
60649          test "$cross_compiling" = yes ||
60650          $as_test_x conftest$ac_exeext
60651        }; then
60652   eval "$as_ac_var=yes"
60653 else
60654   $as_echo "$as_me: failed program was:" >&5
60655 sed 's/^/| /' conftest.$ac_ext >&5
60656
60657         eval "$as_ac_var=no"
60658 fi
60659
60660 rm -rf conftest.dSYM
60661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60662       conftest$ac_exeext conftest.$ac_ext
60663 fi
60664 ac_res=`eval 'as_val=${'$as_ac_var'}
60665                  $as_echo "$as_val"'`
60666                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60667 $as_echo "$ac_res" >&6; }
60668 as_val=`eval 'as_val=${'$as_ac_var'}
60669                  $as_echo "$as_val"'`
60670    if test "x$as_val" = x""yes; then
60671   cat >>confdefs.h <<_ACEOF
60672 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60673 _ACEOF
60674  ice_have_fputc=yes
60675 fi
60676 done
60677
60678 if test "${ice_have_fputc}" = yes; then
60679 { $as_echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
60680 $as_echo_n "checking for fputc declaration in stdio.h... " >&6; }
60681 if test "${ice_cv_have_fputc_decl+set}" = set; then
60682   $as_echo_n "(cached) " >&6
60683 else
60684
60685 ice_cv_have_fputc_decl=no
60686 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60687 ice_re_word='(^|[^a-zA-Z0-9_])'
60688 for header in stdio.h; do
60689 # Check for ordinary declaration
60690 cat >conftest.$ac_ext <<_ACEOF
60691 /* confdefs.h.  */
60692 _ACEOF
60693 cat confdefs.h >>conftest.$ac_ext
60694 cat >>conftest.$ac_ext <<_ACEOF
60695 /* end confdefs.h.  */
60696 #include <$header>
60697
60698 _ACEOF
60699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60700   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then
60701   ice_cv_have_fputc_decl=yes
60702 fi
60703 rm -f conftest*
60704
60705 if test "$ice_cv_have_fputc_decl" = yes; then
60706         break
60707 fi
60708 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60709 cat >conftest.$ac_ext <<_ACEOF
60710 /* confdefs.h.  */
60711 _ACEOF
60712 cat confdefs.h >>conftest.$ac_ext
60713 cat >>conftest.$ac_ext <<_ACEOF
60714 /* end confdefs.h.  */
60715 #include <$header>
60716
60717 _ACEOF
60718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60719   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60720   ice_cv_have_fputc_decl=yes
60721 fi
60722 rm -f conftest*
60723
60724 if test "$ice_cv_have_fputc_decl" = yes; then
60725         break
60726 fi
60727 done
60728
60729 fi
60730
60731 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
60732 $as_echo "$ice_cv_have_fputc_decl" >&6; }
60733 if test "$ice_cv_have_fputc_decl" = yes; then
60734
60735 cat >>confdefs.h <<_ACEOF
60736 #define HAVE_FPUTC_DECL 1
60737 _ACEOF
60738
60739 fi
60740 fi
60741
60742
60743 ice_have_fputs=no
60744
60745 for ac_func in fputs
60746 do
60747 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60748 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60749 $as_echo_n "checking for $ac_func... " >&6; }
60750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60751   $as_echo_n "(cached) " >&6
60752 else
60753   cat >conftest.$ac_ext <<_ACEOF
60754 /* confdefs.h.  */
60755 _ACEOF
60756 cat confdefs.h >>conftest.$ac_ext
60757 cat >>conftest.$ac_ext <<_ACEOF
60758 /* end confdefs.h.  */
60759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60761 #define $ac_func innocuous_$ac_func
60762
60763 /* System header to define __stub macros and hopefully few prototypes,
60764     which can conflict with char $ac_func (); below.
60765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60766     <limits.h> exists even on freestanding compilers.  */
60767
60768 #ifdef __STDC__
60769 # include <limits.h>
60770 #else
60771 # include <assert.h>
60772 #endif
60773
60774 #undef $ac_func
60775
60776 /* Override any GCC internal prototype to avoid an error.
60777    Use char because int might match the return type of a GCC
60778    builtin and then its argument prototype would still apply.  */
60779 #ifdef __cplusplus
60780 extern "C"
60781 #endif
60782 char $ac_func ();
60783 /* The GNU C library defines this for functions which it implements
60784     to always fail with ENOSYS.  Some functions are actually named
60785     something starting with __ and the normal name is an alias.  */
60786 #if defined __stub_$ac_func || defined __stub___$ac_func
60787 choke me
60788 #endif
60789
60790 int
60791 main ()
60792 {
60793 return $ac_func ();
60794   ;
60795   return 0;
60796 }
60797 _ACEOF
60798 rm -f conftest.$ac_objext conftest$ac_exeext
60799 if { (ac_try="$ac_link"
60800 case "(($ac_try" in
60801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60802   *) ac_try_echo=$ac_try;;
60803 esac
60804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60805 $as_echo "$ac_try_echo") >&5
60806   (eval "$ac_link") 2>conftest.er1
60807   ac_status=$?
60808   grep -v '^ *+' conftest.er1 >conftest.err
60809   rm -f conftest.er1
60810   cat conftest.err >&5
60811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60812   (exit $ac_status); } && {
60813          test -z "$ac_c_werror_flag" ||
60814          test ! -s conftest.err
60815        } && test -s conftest$ac_exeext && {
60816          test "$cross_compiling" = yes ||
60817          $as_test_x conftest$ac_exeext
60818        }; then
60819   eval "$as_ac_var=yes"
60820 else
60821   $as_echo "$as_me: failed program was:" >&5
60822 sed 's/^/| /' conftest.$ac_ext >&5
60823
60824         eval "$as_ac_var=no"
60825 fi
60826
60827 rm -rf conftest.dSYM
60828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60829       conftest$ac_exeext conftest.$ac_ext
60830 fi
60831 ac_res=`eval 'as_val=${'$as_ac_var'}
60832                  $as_echo "$as_val"'`
60833                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60834 $as_echo "$ac_res" >&6; }
60835 as_val=`eval 'as_val=${'$as_ac_var'}
60836                  $as_echo "$as_val"'`
60837    if test "x$as_val" = x""yes; then
60838   cat >>confdefs.h <<_ACEOF
60839 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60840 _ACEOF
60841  ice_have_fputs=yes
60842 fi
60843 done
60844
60845 if test "${ice_have_fputs}" = yes; then
60846 { $as_echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
60847 $as_echo_n "checking for fputs declaration in stdio.h... " >&6; }
60848 if test "${ice_cv_have_fputs_decl+set}" = set; then
60849   $as_echo_n "(cached) " >&6
60850 else
60851
60852 ice_cv_have_fputs_decl=no
60853 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60854 ice_re_word='(^|[^a-zA-Z0-9_])'
60855 for header in stdio.h; do
60856 # Check for ordinary declaration
60857 cat >conftest.$ac_ext <<_ACEOF
60858 /* confdefs.h.  */
60859 _ACEOF
60860 cat confdefs.h >>conftest.$ac_ext
60861 cat >>conftest.$ac_ext <<_ACEOF
60862 /* end confdefs.h.  */
60863 #include <$header>
60864
60865 _ACEOF
60866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60867   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then
60868   ice_cv_have_fputs_decl=yes
60869 fi
60870 rm -f conftest*
60871
60872 if test "$ice_cv_have_fputs_decl" = yes; then
60873         break
60874 fi
60875 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60876 cat >conftest.$ac_ext <<_ACEOF
60877 /* confdefs.h.  */
60878 _ACEOF
60879 cat confdefs.h >>conftest.$ac_ext
60880 cat >>conftest.$ac_ext <<_ACEOF
60881 /* end confdefs.h.  */
60882 #include <$header>
60883
60884 _ACEOF
60885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60886   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60887   ice_cv_have_fputs_decl=yes
60888 fi
60889 rm -f conftest*
60890
60891 if test "$ice_cv_have_fputs_decl" = yes; then
60892         break
60893 fi
60894 done
60895
60896 fi
60897
60898 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
60899 $as_echo "$ice_cv_have_fputs_decl" >&6; }
60900 if test "$ice_cv_have_fputs_decl" = yes; then
60901
60902 cat >>confdefs.h <<_ACEOF
60903 #define HAVE_FPUTS_DECL 1
60904 _ACEOF
60905
60906 fi
60907 fi
60908
60909
60910 ice_have_fread=no
60911
60912 for ac_func in fread
60913 do
60914 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60915 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60916 $as_echo_n "checking for $ac_func... " >&6; }
60917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60918   $as_echo_n "(cached) " >&6
60919 else
60920   cat >conftest.$ac_ext <<_ACEOF
60921 /* confdefs.h.  */
60922 _ACEOF
60923 cat confdefs.h >>conftest.$ac_ext
60924 cat >>conftest.$ac_ext <<_ACEOF
60925 /* end confdefs.h.  */
60926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60928 #define $ac_func innocuous_$ac_func
60929
60930 /* System header to define __stub macros and hopefully few prototypes,
60931     which can conflict with char $ac_func (); below.
60932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60933     <limits.h> exists even on freestanding compilers.  */
60934
60935 #ifdef __STDC__
60936 # include <limits.h>
60937 #else
60938 # include <assert.h>
60939 #endif
60940
60941 #undef $ac_func
60942
60943 /* Override any GCC internal prototype to avoid an error.
60944    Use char because int might match the return type of a GCC
60945    builtin and then its argument prototype would still apply.  */
60946 #ifdef __cplusplus
60947 extern "C"
60948 #endif
60949 char $ac_func ();
60950 /* The GNU C library defines this for functions which it implements
60951     to always fail with ENOSYS.  Some functions are actually named
60952     something starting with __ and the normal name is an alias.  */
60953 #if defined __stub_$ac_func || defined __stub___$ac_func
60954 choke me
60955 #endif
60956
60957 int
60958 main ()
60959 {
60960 return $ac_func ();
60961   ;
60962   return 0;
60963 }
60964 _ACEOF
60965 rm -f conftest.$ac_objext conftest$ac_exeext
60966 if { (ac_try="$ac_link"
60967 case "(($ac_try" in
60968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60969   *) ac_try_echo=$ac_try;;
60970 esac
60971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60972 $as_echo "$ac_try_echo") >&5
60973   (eval "$ac_link") 2>conftest.er1
60974   ac_status=$?
60975   grep -v '^ *+' conftest.er1 >conftest.err
60976   rm -f conftest.er1
60977   cat conftest.err >&5
60978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60979   (exit $ac_status); } && {
60980          test -z "$ac_c_werror_flag" ||
60981          test ! -s conftest.err
60982        } && test -s conftest$ac_exeext && {
60983          test "$cross_compiling" = yes ||
60984          $as_test_x conftest$ac_exeext
60985        }; then
60986   eval "$as_ac_var=yes"
60987 else
60988   $as_echo "$as_me: failed program was:" >&5
60989 sed 's/^/| /' conftest.$ac_ext >&5
60990
60991         eval "$as_ac_var=no"
60992 fi
60993
60994 rm -rf conftest.dSYM
60995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60996       conftest$ac_exeext conftest.$ac_ext
60997 fi
60998 ac_res=`eval 'as_val=${'$as_ac_var'}
60999                  $as_echo "$as_val"'`
61000                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61001 $as_echo "$ac_res" >&6; }
61002 as_val=`eval 'as_val=${'$as_ac_var'}
61003                  $as_echo "$as_val"'`
61004    if test "x$as_val" = x""yes; then
61005   cat >>confdefs.h <<_ACEOF
61006 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61007 _ACEOF
61008  ice_have_fread=yes
61009 fi
61010 done
61011
61012 if test "${ice_have_fread}" = yes; then
61013 { $as_echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
61014 $as_echo_n "checking for fread declaration in stdio.h stdlib.h... " >&6; }
61015 if test "${ice_cv_have_fread_decl+set}" = set; then
61016   $as_echo_n "(cached) " >&6
61017 else
61018
61019 ice_cv_have_fread_decl=no
61020 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61021 ice_re_word='(^|[^a-zA-Z0-9_])'
61022 for header in stdio.h stdlib.h; do
61023 # Check for ordinary declaration
61024 cat >conftest.$ac_ext <<_ACEOF
61025 /* confdefs.h.  */
61026 _ACEOF
61027 cat confdefs.h >>conftest.$ac_ext
61028 cat >>conftest.$ac_ext <<_ACEOF
61029 /* end confdefs.h.  */
61030 #include <$header>
61031
61032 _ACEOF
61033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61034   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then
61035   ice_cv_have_fread_decl=yes
61036 fi
61037 rm -f conftest*
61038
61039 if test "$ice_cv_have_fread_decl" = yes; then
61040         break
61041 fi
61042 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61043 cat >conftest.$ac_ext <<_ACEOF
61044 /* confdefs.h.  */
61045 _ACEOF
61046 cat confdefs.h >>conftest.$ac_ext
61047 cat >>conftest.$ac_ext <<_ACEOF
61048 /* end confdefs.h.  */
61049 #include <$header>
61050
61051 _ACEOF
61052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61053   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61054   ice_cv_have_fread_decl=yes
61055 fi
61056 rm -f conftest*
61057
61058 if test "$ice_cv_have_fread_decl" = yes; then
61059         break
61060 fi
61061 done
61062
61063 fi
61064
61065 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
61066 $as_echo "$ice_cv_have_fread_decl" >&6; }
61067 if test "$ice_cv_have_fread_decl" = yes; then
61068
61069 cat >>confdefs.h <<_ACEOF
61070 #define HAVE_FREAD_DECL 1
61071 _ACEOF
61072
61073 fi
61074 fi
61075
61076
61077 ice_have_fseek=no
61078
61079 for ac_func in fseek
61080 do
61081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61082 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61083 $as_echo_n "checking for $ac_func... " >&6; }
61084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61085   $as_echo_n "(cached) " >&6
61086 else
61087   cat >conftest.$ac_ext <<_ACEOF
61088 /* confdefs.h.  */
61089 _ACEOF
61090 cat confdefs.h >>conftest.$ac_ext
61091 cat >>conftest.$ac_ext <<_ACEOF
61092 /* end confdefs.h.  */
61093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61095 #define $ac_func innocuous_$ac_func
61096
61097 /* System header to define __stub macros and hopefully few prototypes,
61098     which can conflict with char $ac_func (); below.
61099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61100     <limits.h> exists even on freestanding compilers.  */
61101
61102 #ifdef __STDC__
61103 # include <limits.h>
61104 #else
61105 # include <assert.h>
61106 #endif
61107
61108 #undef $ac_func
61109
61110 /* Override any GCC internal prototype to avoid an error.
61111    Use char because int might match the return type of a GCC
61112    builtin and then its argument prototype would still apply.  */
61113 #ifdef __cplusplus
61114 extern "C"
61115 #endif
61116 char $ac_func ();
61117 /* The GNU C library defines this for functions which it implements
61118     to always fail with ENOSYS.  Some functions are actually named
61119     something starting with __ and the normal name is an alias.  */
61120 #if defined __stub_$ac_func || defined __stub___$ac_func
61121 choke me
61122 #endif
61123
61124 int
61125 main ()
61126 {
61127 return $ac_func ();
61128   ;
61129   return 0;
61130 }
61131 _ACEOF
61132 rm -f conftest.$ac_objext conftest$ac_exeext
61133 if { (ac_try="$ac_link"
61134 case "(($ac_try" in
61135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61136   *) ac_try_echo=$ac_try;;
61137 esac
61138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61139 $as_echo "$ac_try_echo") >&5
61140   (eval "$ac_link") 2>conftest.er1
61141   ac_status=$?
61142   grep -v '^ *+' conftest.er1 >conftest.err
61143   rm -f conftest.er1
61144   cat conftest.err >&5
61145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61146   (exit $ac_status); } && {
61147          test -z "$ac_c_werror_flag" ||
61148          test ! -s conftest.err
61149        } && test -s conftest$ac_exeext && {
61150          test "$cross_compiling" = yes ||
61151          $as_test_x conftest$ac_exeext
61152        }; then
61153   eval "$as_ac_var=yes"
61154 else
61155   $as_echo "$as_me: failed program was:" >&5
61156 sed 's/^/| /' conftest.$ac_ext >&5
61157
61158         eval "$as_ac_var=no"
61159 fi
61160
61161 rm -rf conftest.dSYM
61162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61163       conftest$ac_exeext conftest.$ac_ext
61164 fi
61165 ac_res=`eval 'as_val=${'$as_ac_var'}
61166                  $as_echo "$as_val"'`
61167                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61168 $as_echo "$ac_res" >&6; }
61169 as_val=`eval 'as_val=${'$as_ac_var'}
61170                  $as_echo "$as_val"'`
61171    if test "x$as_val" = x""yes; then
61172   cat >>confdefs.h <<_ACEOF
61173 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61174 _ACEOF
61175  ice_have_fseek=yes
61176 fi
61177 done
61178
61179 if test "${ice_have_fseek}" = yes; then
61180 { $as_echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
61181 $as_echo_n "checking for fseek declaration in stdio.h... " >&6; }
61182 if test "${ice_cv_have_fseek_decl+set}" = set; then
61183   $as_echo_n "(cached) " >&6
61184 else
61185
61186 ice_cv_have_fseek_decl=no
61187 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61188 ice_re_word='(^|[^a-zA-Z0-9_])'
61189 for header in stdio.h; do
61190 # Check for ordinary declaration
61191 cat >conftest.$ac_ext <<_ACEOF
61192 /* confdefs.h.  */
61193 _ACEOF
61194 cat confdefs.h >>conftest.$ac_ext
61195 cat >>conftest.$ac_ext <<_ACEOF
61196 /* end confdefs.h.  */
61197 #include <$header>
61198
61199 _ACEOF
61200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61201   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then
61202   ice_cv_have_fseek_decl=yes
61203 fi
61204 rm -f conftest*
61205
61206 if test "$ice_cv_have_fseek_decl" = yes; then
61207         break
61208 fi
61209 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61210 cat >conftest.$ac_ext <<_ACEOF
61211 /* confdefs.h.  */
61212 _ACEOF
61213 cat confdefs.h >>conftest.$ac_ext
61214 cat >>conftest.$ac_ext <<_ACEOF
61215 /* end confdefs.h.  */
61216 #include <$header>
61217
61218 _ACEOF
61219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61220   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61221   ice_cv_have_fseek_decl=yes
61222 fi
61223 rm -f conftest*
61224
61225 if test "$ice_cv_have_fseek_decl" = yes; then
61226         break
61227 fi
61228 done
61229
61230 fi
61231
61232 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
61233 $as_echo "$ice_cv_have_fseek_decl" >&6; }
61234 if test "$ice_cv_have_fseek_decl" = yes; then
61235
61236 cat >>confdefs.h <<_ACEOF
61237 #define HAVE_FSEEK_DECL 1
61238 _ACEOF
61239
61240 fi
61241 fi
61242
61243
61244 ice_have_fwrite=no
61245
61246 for ac_func in fwrite
61247 do
61248 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61249 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61250 $as_echo_n "checking for $ac_func... " >&6; }
61251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61252   $as_echo_n "(cached) " >&6
61253 else
61254   cat >conftest.$ac_ext <<_ACEOF
61255 /* confdefs.h.  */
61256 _ACEOF
61257 cat confdefs.h >>conftest.$ac_ext
61258 cat >>conftest.$ac_ext <<_ACEOF
61259 /* end confdefs.h.  */
61260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61262 #define $ac_func innocuous_$ac_func
61263
61264 /* System header to define __stub macros and hopefully few prototypes,
61265     which can conflict with char $ac_func (); below.
61266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61267     <limits.h> exists even on freestanding compilers.  */
61268
61269 #ifdef __STDC__
61270 # include <limits.h>
61271 #else
61272 # include <assert.h>
61273 #endif
61274
61275 #undef $ac_func
61276
61277 /* Override any GCC internal prototype to avoid an error.
61278    Use char because int might match the return type of a GCC
61279    builtin and then its argument prototype would still apply.  */
61280 #ifdef __cplusplus
61281 extern "C"
61282 #endif
61283 char $ac_func ();
61284 /* The GNU C library defines this for functions which it implements
61285     to always fail with ENOSYS.  Some functions are actually named
61286     something starting with __ and the normal name is an alias.  */
61287 #if defined __stub_$ac_func || defined __stub___$ac_func
61288 choke me
61289 #endif
61290
61291 int
61292 main ()
61293 {
61294 return $ac_func ();
61295   ;
61296   return 0;
61297 }
61298 _ACEOF
61299 rm -f conftest.$ac_objext conftest$ac_exeext
61300 if { (ac_try="$ac_link"
61301 case "(($ac_try" in
61302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61303   *) ac_try_echo=$ac_try;;
61304 esac
61305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61306 $as_echo "$ac_try_echo") >&5
61307   (eval "$ac_link") 2>conftest.er1
61308   ac_status=$?
61309   grep -v '^ *+' conftest.er1 >conftest.err
61310   rm -f conftest.er1
61311   cat conftest.err >&5
61312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61313   (exit $ac_status); } && {
61314          test -z "$ac_c_werror_flag" ||
61315          test ! -s conftest.err
61316        } && test -s conftest$ac_exeext && {
61317          test "$cross_compiling" = yes ||
61318          $as_test_x conftest$ac_exeext
61319        }; then
61320   eval "$as_ac_var=yes"
61321 else
61322   $as_echo "$as_me: failed program was:" >&5
61323 sed 's/^/| /' conftest.$ac_ext >&5
61324
61325         eval "$as_ac_var=no"
61326 fi
61327
61328 rm -rf conftest.dSYM
61329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61330       conftest$ac_exeext conftest.$ac_ext
61331 fi
61332 ac_res=`eval 'as_val=${'$as_ac_var'}
61333                  $as_echo "$as_val"'`
61334                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61335 $as_echo "$ac_res" >&6; }
61336 as_val=`eval 'as_val=${'$as_ac_var'}
61337                  $as_echo "$as_val"'`
61338    if test "x$as_val" = x""yes; then
61339   cat >>confdefs.h <<_ACEOF
61340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61341 _ACEOF
61342  ice_have_fwrite=yes
61343 fi
61344 done
61345
61346 if test "${ice_have_fwrite}" = yes; then
61347 { $as_echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
61348 $as_echo_n "checking for fwrite declaration in stdio.h stdlib.h... " >&6; }
61349 if test "${ice_cv_have_fwrite_decl+set}" = set; then
61350   $as_echo_n "(cached) " >&6
61351 else
61352
61353 ice_cv_have_fwrite_decl=no
61354 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61355 ice_re_word='(^|[^a-zA-Z0-9_])'
61356 for header in stdio.h stdlib.h; do
61357 # Check for ordinary declaration
61358 cat >conftest.$ac_ext <<_ACEOF
61359 /* confdefs.h.  */
61360 _ACEOF
61361 cat confdefs.h >>conftest.$ac_ext
61362 cat >>conftest.$ac_ext <<_ACEOF
61363 /* end confdefs.h.  */
61364 #include <$header>
61365
61366 _ACEOF
61367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61368   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then
61369   ice_cv_have_fwrite_decl=yes
61370 fi
61371 rm -f conftest*
61372
61373 if test "$ice_cv_have_fwrite_decl" = yes; then
61374         break
61375 fi
61376 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61377 cat >conftest.$ac_ext <<_ACEOF
61378 /* confdefs.h.  */
61379 _ACEOF
61380 cat confdefs.h >>conftest.$ac_ext
61381 cat >>conftest.$ac_ext <<_ACEOF
61382 /* end confdefs.h.  */
61383 #include <$header>
61384
61385 _ACEOF
61386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61387   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61388   ice_cv_have_fwrite_decl=yes
61389 fi
61390 rm -f conftest*
61391
61392 if test "$ice_cv_have_fwrite_decl" = yes; then
61393         break
61394 fi
61395 done
61396
61397 fi
61398
61399 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
61400 $as_echo "$ice_cv_have_fwrite_decl" >&6; }
61401 if test "$ice_cv_have_fwrite_decl" = yes; then
61402
61403 cat >>confdefs.h <<_ACEOF
61404 #define HAVE_FWRITE_DECL 1
61405 _ACEOF
61406
61407 fi
61408 fi
61409
61410
61411 for ac_func in getgrgid_r
61412 do
61413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61414 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61415 $as_echo_n "checking for $ac_func... " >&6; }
61416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61417   $as_echo_n "(cached) " >&6
61418 else
61419   cat >conftest.$ac_ext <<_ACEOF
61420 /* confdefs.h.  */
61421 _ACEOF
61422 cat confdefs.h >>conftest.$ac_ext
61423 cat >>conftest.$ac_ext <<_ACEOF
61424 /* end confdefs.h.  */
61425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61427 #define $ac_func innocuous_$ac_func
61428
61429 /* System header to define __stub macros and hopefully few prototypes,
61430     which can conflict with char $ac_func (); below.
61431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61432     <limits.h> exists even on freestanding compilers.  */
61433
61434 #ifdef __STDC__
61435 # include <limits.h>
61436 #else
61437 # include <assert.h>
61438 #endif
61439
61440 #undef $ac_func
61441
61442 /* Override any GCC internal prototype to avoid an error.
61443    Use char because int might match the return type of a GCC
61444    builtin and then its argument prototype would still apply.  */
61445 #ifdef __cplusplus
61446 extern "C"
61447 #endif
61448 char $ac_func ();
61449 /* The GNU C library defines this for functions which it implements
61450     to always fail with ENOSYS.  Some functions are actually named
61451     something starting with __ and the normal name is an alias.  */
61452 #if defined __stub_$ac_func || defined __stub___$ac_func
61453 choke me
61454 #endif
61455
61456 int
61457 main ()
61458 {
61459 return $ac_func ();
61460   ;
61461   return 0;
61462 }
61463 _ACEOF
61464 rm -f conftest.$ac_objext conftest$ac_exeext
61465 if { (ac_try="$ac_link"
61466 case "(($ac_try" in
61467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61468   *) ac_try_echo=$ac_try;;
61469 esac
61470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61471 $as_echo "$ac_try_echo") >&5
61472   (eval "$ac_link") 2>conftest.er1
61473   ac_status=$?
61474   grep -v '^ *+' conftest.er1 >conftest.err
61475   rm -f conftest.er1
61476   cat conftest.err >&5
61477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61478   (exit $ac_status); } && {
61479          test -z "$ac_c_werror_flag" ||
61480          test ! -s conftest.err
61481        } && test -s conftest$ac_exeext && {
61482          test "$cross_compiling" = yes ||
61483          $as_test_x conftest$ac_exeext
61484        }; then
61485   eval "$as_ac_var=yes"
61486 else
61487   $as_echo "$as_me: failed program was:" >&5
61488 sed 's/^/| /' conftest.$ac_ext >&5
61489
61490         eval "$as_ac_var=no"
61491 fi
61492
61493 rm -rf conftest.dSYM
61494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61495       conftest$ac_exeext conftest.$ac_ext
61496 fi
61497 ac_res=`eval 'as_val=${'$as_ac_var'}
61498                  $as_echo "$as_val"'`
61499                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61500 $as_echo "$ac_res" >&6; }
61501 as_val=`eval 'as_val=${'$as_ac_var'}
61502                  $as_echo "$as_val"'`
61503    if test "x$as_val" = x""yes; then
61504   cat >>confdefs.h <<_ACEOF
61505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61506 _ACEOF
61507
61508 fi
61509 done
61510
61511
61512 for ac_func in getpwuid_r
61513 do
61514 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61515 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61516 $as_echo_n "checking for $ac_func... " >&6; }
61517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61518   $as_echo_n "(cached) " >&6
61519 else
61520   cat >conftest.$ac_ext <<_ACEOF
61521 /* confdefs.h.  */
61522 _ACEOF
61523 cat confdefs.h >>conftest.$ac_ext
61524 cat >>conftest.$ac_ext <<_ACEOF
61525 /* end confdefs.h.  */
61526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61528 #define $ac_func innocuous_$ac_func
61529
61530 /* System header to define __stub macros and hopefully few prototypes,
61531     which can conflict with char $ac_func (); below.
61532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61533     <limits.h> exists even on freestanding compilers.  */
61534
61535 #ifdef __STDC__
61536 # include <limits.h>
61537 #else
61538 # include <assert.h>
61539 #endif
61540
61541 #undef $ac_func
61542
61543 /* Override any GCC internal prototype to avoid an error.
61544    Use char because int might match the return type of a GCC
61545    builtin and then its argument prototype would still apply.  */
61546 #ifdef __cplusplus
61547 extern "C"
61548 #endif
61549 char $ac_func ();
61550 /* The GNU C library defines this for functions which it implements
61551     to always fail with ENOSYS.  Some functions are actually named
61552     something starting with __ and the normal name is an alias.  */
61553 #if defined __stub_$ac_func || defined __stub___$ac_func
61554 choke me
61555 #endif
61556
61557 int
61558 main ()
61559 {
61560 return $ac_func ();
61561   ;
61562   return 0;
61563 }
61564 _ACEOF
61565 rm -f conftest.$ac_objext conftest$ac_exeext
61566 if { (ac_try="$ac_link"
61567 case "(($ac_try" in
61568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61569   *) ac_try_echo=$ac_try;;
61570 esac
61571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61572 $as_echo "$ac_try_echo") >&5
61573   (eval "$ac_link") 2>conftest.er1
61574   ac_status=$?
61575   grep -v '^ *+' conftest.er1 >conftest.err
61576   rm -f conftest.er1
61577   cat conftest.err >&5
61578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61579   (exit $ac_status); } && {
61580          test -z "$ac_c_werror_flag" ||
61581          test ! -s conftest.err
61582        } && test -s conftest$ac_exeext && {
61583          test "$cross_compiling" = yes ||
61584          $as_test_x conftest$ac_exeext
61585        }; then
61586   eval "$as_ac_var=yes"
61587 else
61588   $as_echo "$as_me: failed program was:" >&5
61589 sed 's/^/| /' conftest.$ac_ext >&5
61590
61591         eval "$as_ac_var=no"
61592 fi
61593
61594 rm -rf conftest.dSYM
61595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61596       conftest$ac_exeext conftest.$ac_ext
61597 fi
61598 ac_res=`eval 'as_val=${'$as_ac_var'}
61599                  $as_echo "$as_val"'`
61600                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61601 $as_echo "$ac_res" >&6; }
61602 as_val=`eval 'as_val=${'$as_ac_var'}
61603                  $as_echo "$as_val"'`
61604    if test "x$as_val" = x""yes; then
61605   cat >>confdefs.h <<_ACEOF
61606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61607 _ACEOF
61608
61609 fi
61610 done
61611
61612
61613 ice_have_gethostname=no
61614
61615 for ac_func in gethostname
61616 do
61617 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61618 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61619 $as_echo_n "checking for $ac_func... " >&6; }
61620 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61621   $as_echo_n "(cached) " >&6
61622 else
61623   cat >conftest.$ac_ext <<_ACEOF
61624 /* confdefs.h.  */
61625 _ACEOF
61626 cat confdefs.h >>conftest.$ac_ext
61627 cat >>conftest.$ac_ext <<_ACEOF
61628 /* end confdefs.h.  */
61629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61630    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61631 #define $ac_func innocuous_$ac_func
61632
61633 /* System header to define __stub macros and hopefully few prototypes,
61634     which can conflict with char $ac_func (); below.
61635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61636     <limits.h> exists even on freestanding compilers.  */
61637
61638 #ifdef __STDC__
61639 # include <limits.h>
61640 #else
61641 # include <assert.h>
61642 #endif
61643
61644 #undef $ac_func
61645
61646 /* Override any GCC internal prototype to avoid an error.
61647    Use char because int might match the return type of a GCC
61648    builtin and then its argument prototype would still apply.  */
61649 #ifdef __cplusplus
61650 extern "C"
61651 #endif
61652 char $ac_func ();
61653 /* The GNU C library defines this for functions which it implements
61654     to always fail with ENOSYS.  Some functions are actually named
61655     something starting with __ and the normal name is an alias.  */
61656 #if defined __stub_$ac_func || defined __stub___$ac_func
61657 choke me
61658 #endif
61659
61660 int
61661 main ()
61662 {
61663 return $ac_func ();
61664   ;
61665   return 0;
61666 }
61667 _ACEOF
61668 rm -f conftest.$ac_objext conftest$ac_exeext
61669 if { (ac_try="$ac_link"
61670 case "(($ac_try" in
61671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61672   *) ac_try_echo=$ac_try;;
61673 esac
61674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61675 $as_echo "$ac_try_echo") >&5
61676   (eval "$ac_link") 2>conftest.er1
61677   ac_status=$?
61678   grep -v '^ *+' conftest.er1 >conftest.err
61679   rm -f conftest.er1
61680   cat conftest.err >&5
61681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61682   (exit $ac_status); } && {
61683          test -z "$ac_c_werror_flag" ||
61684          test ! -s conftest.err
61685        } && test -s conftest$ac_exeext && {
61686          test "$cross_compiling" = yes ||
61687          $as_test_x conftest$ac_exeext
61688        }; then
61689   eval "$as_ac_var=yes"
61690 else
61691   $as_echo "$as_me: failed program was:" >&5
61692 sed 's/^/| /' conftest.$ac_ext >&5
61693
61694         eval "$as_ac_var=no"
61695 fi
61696
61697 rm -rf conftest.dSYM
61698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61699       conftest$ac_exeext conftest.$ac_ext
61700 fi
61701 ac_res=`eval 'as_val=${'$as_ac_var'}
61702                  $as_echo "$as_val"'`
61703                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61704 $as_echo "$ac_res" >&6; }
61705 as_val=`eval 'as_val=${'$as_ac_var'}
61706                  $as_echo "$as_val"'`
61707    if test "x$as_val" = x""yes; then
61708   cat >>confdefs.h <<_ACEOF
61709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61710 _ACEOF
61711  ice_have_gethostname=yes
61712 fi
61713 done
61714
61715 if test "${ice_have_gethostname}" = yes; then
61716 { $as_echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
61717 $as_echo_n "checking for gethostname declaration in unistd.h... " >&6; }
61718 if test "${ice_cv_have_gethostname_decl+set}" = set; then
61719   $as_echo_n "(cached) " >&6
61720 else
61721
61722 ice_cv_have_gethostname_decl=no
61723 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61724 ice_re_word='(^|[^a-zA-Z0-9_])'
61725 for header in unistd.h; do
61726 # Check for ordinary declaration
61727 cat >conftest.$ac_ext <<_ACEOF
61728 /* confdefs.h.  */
61729 _ACEOF
61730 cat confdefs.h >>conftest.$ac_ext
61731 cat >>conftest.$ac_ext <<_ACEOF
61732 /* end confdefs.h.  */
61733 #include <$header>
61734
61735 _ACEOF
61736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61737   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then
61738   ice_cv_have_gethostname_decl=yes
61739 fi
61740 rm -f conftest*
61741
61742 if test "$ice_cv_have_gethostname_decl" = yes; then
61743         break
61744 fi
61745 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61746 cat >conftest.$ac_ext <<_ACEOF
61747 /* confdefs.h.  */
61748 _ACEOF
61749 cat confdefs.h >>conftest.$ac_ext
61750 cat >>conftest.$ac_ext <<_ACEOF
61751 /* end confdefs.h.  */
61752 #include <$header>
61753
61754 _ACEOF
61755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61756   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61757   ice_cv_have_gethostname_decl=yes
61758 fi
61759 rm -f conftest*
61760
61761 if test "$ice_cv_have_gethostname_decl" = yes; then
61762         break
61763 fi
61764 done
61765
61766 fi
61767
61768 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
61769 $as_echo "$ice_cv_have_gethostname_decl" >&6; }
61770 if test "$ice_cv_have_gethostname_decl" = yes; then
61771
61772 cat >>confdefs.h <<_ACEOF
61773 #define HAVE_GETHOSTNAME_DECL 1
61774 _ACEOF
61775
61776 fi
61777 fi
61778
61779
61780 ice_have_getopt=no
61781
61782 for ac_func in getopt
61783 do
61784 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61785 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61786 $as_echo_n "checking for $ac_func... " >&6; }
61787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61788   $as_echo_n "(cached) " >&6
61789 else
61790   cat >conftest.$ac_ext <<_ACEOF
61791 /* confdefs.h.  */
61792 _ACEOF
61793 cat confdefs.h >>conftest.$ac_ext
61794 cat >>conftest.$ac_ext <<_ACEOF
61795 /* end confdefs.h.  */
61796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61798 #define $ac_func innocuous_$ac_func
61799
61800 /* System header to define __stub macros and hopefully few prototypes,
61801     which can conflict with char $ac_func (); below.
61802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61803     <limits.h> exists even on freestanding compilers.  */
61804
61805 #ifdef __STDC__
61806 # include <limits.h>
61807 #else
61808 # include <assert.h>
61809 #endif
61810
61811 #undef $ac_func
61812
61813 /* Override any GCC internal prototype to avoid an error.
61814    Use char because int might match the return type of a GCC
61815    builtin and then its argument prototype would still apply.  */
61816 #ifdef __cplusplus
61817 extern "C"
61818 #endif
61819 char $ac_func ();
61820 /* The GNU C library defines this for functions which it implements
61821     to always fail with ENOSYS.  Some functions are actually named
61822     something starting with __ and the normal name is an alias.  */
61823 #if defined __stub_$ac_func || defined __stub___$ac_func
61824 choke me
61825 #endif
61826
61827 int
61828 main ()
61829 {
61830 return $ac_func ();
61831   ;
61832   return 0;
61833 }
61834 _ACEOF
61835 rm -f conftest.$ac_objext conftest$ac_exeext
61836 if { (ac_try="$ac_link"
61837 case "(($ac_try" in
61838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61839   *) ac_try_echo=$ac_try;;
61840 esac
61841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61842 $as_echo "$ac_try_echo") >&5
61843   (eval "$ac_link") 2>conftest.er1
61844   ac_status=$?
61845   grep -v '^ *+' conftest.er1 >conftest.err
61846   rm -f conftest.er1
61847   cat conftest.err >&5
61848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61849   (exit $ac_status); } && {
61850          test -z "$ac_c_werror_flag" ||
61851          test ! -s conftest.err
61852        } && test -s conftest$ac_exeext && {
61853          test "$cross_compiling" = yes ||
61854          $as_test_x conftest$ac_exeext
61855        }; then
61856   eval "$as_ac_var=yes"
61857 else
61858   $as_echo "$as_me: failed program was:" >&5
61859 sed 's/^/| /' conftest.$ac_ext >&5
61860
61861         eval "$as_ac_var=no"
61862 fi
61863
61864 rm -rf conftest.dSYM
61865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61866       conftest$ac_exeext conftest.$ac_ext
61867 fi
61868 ac_res=`eval 'as_val=${'$as_ac_var'}
61869                  $as_echo "$as_val"'`
61870                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61871 $as_echo "$ac_res" >&6; }
61872 as_val=`eval 'as_val=${'$as_ac_var'}
61873                  $as_echo "$as_val"'`
61874    if test "x$as_val" = x""yes; then
61875   cat >>confdefs.h <<_ACEOF
61876 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61877 _ACEOF
61878  ice_have_getopt=yes
61879 fi
61880 done
61881
61882 if test "${ice_have_getopt}" = yes; then
61883 { $as_echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
61884 $as_echo_n "checking for getopt declaration in stdlib.h unistd.h libc.h... " >&6; }
61885 if test "${ice_cv_have_getopt_decl+set}" = set; then
61886   $as_echo_n "(cached) " >&6
61887 else
61888
61889 ice_cv_have_getopt_decl=no
61890 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61891 ice_re_word='(^|[^a-zA-Z0-9_])'
61892 for header in stdlib.h unistd.h libc.h; do
61893 # Check for ordinary declaration
61894 cat >conftest.$ac_ext <<_ACEOF
61895 /* confdefs.h.  */
61896 _ACEOF
61897 cat confdefs.h >>conftest.$ac_ext
61898 cat >>conftest.$ac_ext <<_ACEOF
61899 /* end confdefs.h.  */
61900 #include <$header>
61901
61902 _ACEOF
61903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61904   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then
61905   ice_cv_have_getopt_decl=yes
61906 fi
61907 rm -f conftest*
61908
61909 if test "$ice_cv_have_getopt_decl" = yes; then
61910         break
61911 fi
61912 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61913 cat >conftest.$ac_ext <<_ACEOF
61914 /* confdefs.h.  */
61915 _ACEOF
61916 cat confdefs.h >>conftest.$ac_ext
61917 cat >>conftest.$ac_ext <<_ACEOF
61918 /* end confdefs.h.  */
61919 #include <$header>
61920
61921 _ACEOF
61922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61923   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61924   ice_cv_have_getopt_decl=yes
61925 fi
61926 rm -f conftest*
61927
61928 if test "$ice_cv_have_getopt_decl" = yes; then
61929         break
61930 fi
61931 done
61932
61933 fi
61934
61935 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
61936 $as_echo "$ice_cv_have_getopt_decl" >&6; }
61937 if test "$ice_cv_have_getopt_decl" = yes; then
61938
61939 cat >>confdefs.h <<_ACEOF
61940 #define HAVE_GETOPT_DECL 1
61941 _ACEOF
61942
61943 fi
61944 fi
61945
61946
61947 ice_have_getpeername=no
61948
61949 for ac_func in getpeername
61950 do
61951 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61952 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61953 $as_echo_n "checking for $ac_func... " >&6; }
61954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61955   $as_echo_n "(cached) " >&6
61956 else
61957   cat >conftest.$ac_ext <<_ACEOF
61958 /* confdefs.h.  */
61959 _ACEOF
61960 cat confdefs.h >>conftest.$ac_ext
61961 cat >>conftest.$ac_ext <<_ACEOF
61962 /* end confdefs.h.  */
61963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61965 #define $ac_func innocuous_$ac_func
61966
61967 /* System header to define __stub macros and hopefully few prototypes,
61968     which can conflict with char $ac_func (); below.
61969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61970     <limits.h> exists even on freestanding compilers.  */
61971
61972 #ifdef __STDC__
61973 # include <limits.h>
61974 #else
61975 # include <assert.h>
61976 #endif
61977
61978 #undef $ac_func
61979
61980 /* Override any GCC internal prototype to avoid an error.
61981    Use char because int might match the return type of a GCC
61982    builtin and then its argument prototype would still apply.  */
61983 #ifdef __cplusplus
61984 extern "C"
61985 #endif
61986 char $ac_func ();
61987 /* The GNU C library defines this for functions which it implements
61988     to always fail with ENOSYS.  Some functions are actually named
61989     something starting with __ and the normal name is an alias.  */
61990 #if defined __stub_$ac_func || defined __stub___$ac_func
61991 choke me
61992 #endif
61993
61994 int
61995 main ()
61996 {
61997 return $ac_func ();
61998   ;
61999   return 0;
62000 }
62001 _ACEOF
62002 rm -f conftest.$ac_objext conftest$ac_exeext
62003 if { (ac_try="$ac_link"
62004 case "(($ac_try" in
62005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62006   *) ac_try_echo=$ac_try;;
62007 esac
62008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62009 $as_echo "$ac_try_echo") >&5
62010   (eval "$ac_link") 2>conftest.er1
62011   ac_status=$?
62012   grep -v '^ *+' conftest.er1 >conftest.err
62013   rm -f conftest.er1
62014   cat conftest.err >&5
62015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62016   (exit $ac_status); } && {
62017          test -z "$ac_c_werror_flag" ||
62018          test ! -s conftest.err
62019        } && test -s conftest$ac_exeext && {
62020          test "$cross_compiling" = yes ||
62021          $as_test_x conftest$ac_exeext
62022        }; then
62023   eval "$as_ac_var=yes"
62024 else
62025   $as_echo "$as_me: failed program was:" >&5
62026 sed 's/^/| /' conftest.$ac_ext >&5
62027
62028         eval "$as_ac_var=no"
62029 fi
62030
62031 rm -rf conftest.dSYM
62032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62033       conftest$ac_exeext conftest.$ac_ext
62034 fi
62035 ac_res=`eval 'as_val=${'$as_ac_var'}
62036                  $as_echo "$as_val"'`
62037                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62038 $as_echo "$ac_res" >&6; }
62039 as_val=`eval 'as_val=${'$as_ac_var'}
62040                  $as_echo "$as_val"'`
62041    if test "x$as_val" = x""yes; then
62042   cat >>confdefs.h <<_ACEOF
62043 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62044 _ACEOF
62045  ice_have_getpeername=yes
62046 fi
62047 done
62048
62049 if test "${ice_have_getpeername}" = yes; then
62050 { $as_echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
62051 $as_echo_n "checking for getpeername declaration in sys/types.h sys/socket.h... " >&6; }
62052 if test "${ice_cv_have_getpeername_decl+set}" = set; then
62053   $as_echo_n "(cached) " >&6
62054 else
62055
62056 ice_cv_have_getpeername_decl=no
62057 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62058 ice_re_word='(^|[^a-zA-Z0-9_])'
62059 for header in sys/types.h sys/socket.h; do
62060 # Check for ordinary declaration
62061 cat >conftest.$ac_ext <<_ACEOF
62062 /* confdefs.h.  */
62063 _ACEOF
62064 cat confdefs.h >>conftest.$ac_ext
62065 cat >>conftest.$ac_ext <<_ACEOF
62066 /* end confdefs.h.  */
62067 #include <$header>
62068
62069 _ACEOF
62070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62071   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then
62072   ice_cv_have_getpeername_decl=yes
62073 fi
62074 rm -f conftest*
62075
62076 if test "$ice_cv_have_getpeername_decl" = yes; then
62077         break
62078 fi
62079 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62080 cat >conftest.$ac_ext <<_ACEOF
62081 /* confdefs.h.  */
62082 _ACEOF
62083 cat confdefs.h >>conftest.$ac_ext
62084 cat >>conftest.$ac_ext <<_ACEOF
62085 /* end confdefs.h.  */
62086 #include <$header>
62087
62088 _ACEOF
62089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62090   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62091   ice_cv_have_getpeername_decl=yes
62092 fi
62093 rm -f conftest*
62094
62095 if test "$ice_cv_have_getpeername_decl" = yes; then
62096         break
62097 fi
62098 done
62099
62100 fi
62101
62102 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
62103 $as_echo "$ice_cv_have_getpeername_decl" >&6; }
62104 if test "$ice_cv_have_getpeername_decl" = yes; then
62105
62106 cat >>confdefs.h <<_ACEOF
62107 #define HAVE_GETPEERNAME_DECL 1
62108 _ACEOF
62109
62110 fi
62111 fi
62112
62113 { $as_echo "$as_me:$LINENO: checking for getpgrp" >&5
62114 $as_echo_n "checking for getpgrp... " >&6; }
62115 if test "${ac_cv_func_getpgrp+set}" = set; then
62116   $as_echo_n "(cached) " >&6
62117 else
62118   cat >conftest.$ac_ext <<_ACEOF
62119 /* confdefs.h.  */
62120 _ACEOF
62121 cat confdefs.h >>conftest.$ac_ext
62122 cat >>conftest.$ac_ext <<_ACEOF
62123 /* end confdefs.h.  */
62124 /* Define getpgrp to an innocuous variant, in case <limits.h> declares getpgrp.
62125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62126 #define getpgrp innocuous_getpgrp
62127
62128 /* System header to define __stub macros and hopefully few prototypes,
62129     which can conflict with char getpgrp (); below.
62130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62131     <limits.h> exists even on freestanding compilers.  */
62132
62133 #ifdef __STDC__
62134 # include <limits.h>
62135 #else
62136 # include <assert.h>
62137 #endif
62138
62139 #undef getpgrp
62140
62141 /* Override any GCC internal prototype to avoid an error.
62142    Use char because int might match the return type of a GCC
62143    builtin and then its argument prototype would still apply.  */
62144 #ifdef __cplusplus
62145 extern "C"
62146 #endif
62147 char getpgrp ();
62148 /* The GNU C library defines this for functions which it implements
62149     to always fail with ENOSYS.  Some functions are actually named
62150     something starting with __ and the normal name is an alias.  */
62151 #if defined __stub_getpgrp || defined __stub___getpgrp
62152 choke me
62153 #endif
62154
62155 int
62156 main ()
62157 {
62158 return getpgrp ();
62159   ;
62160   return 0;
62161 }
62162 _ACEOF
62163 rm -f conftest.$ac_objext conftest$ac_exeext
62164 if { (ac_try="$ac_link"
62165 case "(($ac_try" in
62166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62167   *) ac_try_echo=$ac_try;;
62168 esac
62169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62170 $as_echo "$ac_try_echo") >&5
62171   (eval "$ac_link") 2>conftest.er1
62172   ac_status=$?
62173   grep -v '^ *+' conftest.er1 >conftest.err
62174   rm -f conftest.er1
62175   cat conftest.err >&5
62176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62177   (exit $ac_status); } && {
62178          test -z "$ac_c_werror_flag" ||
62179          test ! -s conftest.err
62180        } && test -s conftest$ac_exeext && {
62181          test "$cross_compiling" = yes ||
62182          $as_test_x conftest$ac_exeext
62183        }; then
62184   ac_cv_func_getpgrp=yes
62185 else
62186   $as_echo "$as_me: failed program was:" >&5
62187 sed 's/^/| /' conftest.$ac_ext >&5
62188
62189         ac_cv_func_getpgrp=no
62190 fi
62191
62192 rm -rf conftest.dSYM
62193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62194       conftest$ac_exeext conftest.$ac_ext
62195 fi
62196 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp" >&5
62197 $as_echo "$ac_cv_func_getpgrp" >&6; }
62198
62199 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
62200 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
62201 if test "${ac_cv_func_getpgrp_void+set}" = set; then
62202   $as_echo_n "(cached) " >&6
62203 else
62204   # Use it with a single arg.
62205 cat >conftest.$ac_ext <<_ACEOF
62206 /* confdefs.h.  */
62207 _ACEOF
62208 cat confdefs.h >>conftest.$ac_ext
62209 cat >>conftest.$ac_ext <<_ACEOF
62210 /* end confdefs.h.  */
62211 $ac_includes_default
62212 int
62213 main ()
62214 {
62215 getpgrp (0);
62216   ;
62217   return 0;
62218 }
62219 _ACEOF
62220 rm -f conftest.$ac_objext
62221 if { (ac_try="$ac_compile"
62222 case "(($ac_try" in
62223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62224   *) ac_try_echo=$ac_try;;
62225 esac
62226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62227 $as_echo "$ac_try_echo") >&5
62228   (eval "$ac_compile") 2>conftest.er1
62229   ac_status=$?
62230   grep -v '^ *+' conftest.er1 >conftest.err
62231   rm -f conftest.er1
62232   cat conftest.err >&5
62233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62234   (exit $ac_status); } && {
62235          test -z "$ac_c_werror_flag" ||
62236          test ! -s conftest.err
62237        } && test -s conftest.$ac_objext; then
62238   ac_cv_func_getpgrp_void=no
62239 else
62240   $as_echo "$as_me: failed program was:" >&5
62241 sed 's/^/| /' conftest.$ac_ext >&5
62242
62243         ac_cv_func_getpgrp_void=yes
62244 fi
62245
62246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62247
62248 fi
62249 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
62250 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
62251 if test $ac_cv_func_getpgrp_void = yes; then
62252
62253 cat >>confdefs.h <<\_ACEOF
62254 #define GETPGRP_VOID 1
62255 _ACEOF
62256
62257 fi
62258
62259
62260 ice_have_getsockname=no
62261
62262 for ac_func in getsockname
62263 do
62264 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62265 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62266 $as_echo_n "checking for $ac_func... " >&6; }
62267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62268   $as_echo_n "(cached) " >&6
62269 else
62270   cat >conftest.$ac_ext <<_ACEOF
62271 /* confdefs.h.  */
62272 _ACEOF
62273 cat confdefs.h >>conftest.$ac_ext
62274 cat >>conftest.$ac_ext <<_ACEOF
62275 /* end confdefs.h.  */
62276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62278 #define $ac_func innocuous_$ac_func
62279
62280 /* System header to define __stub macros and hopefully few prototypes,
62281     which can conflict with char $ac_func (); below.
62282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62283     <limits.h> exists even on freestanding compilers.  */
62284
62285 #ifdef __STDC__
62286 # include <limits.h>
62287 #else
62288 # include <assert.h>
62289 #endif
62290
62291 #undef $ac_func
62292
62293 /* Override any GCC internal prototype to avoid an error.
62294    Use char because int might match the return type of a GCC
62295    builtin and then its argument prototype would still apply.  */
62296 #ifdef __cplusplus
62297 extern "C"
62298 #endif
62299 char $ac_func ();
62300 /* The GNU C library defines this for functions which it implements
62301     to always fail with ENOSYS.  Some functions are actually named
62302     something starting with __ and the normal name is an alias.  */
62303 #if defined __stub_$ac_func || defined __stub___$ac_func
62304 choke me
62305 #endif
62306
62307 int
62308 main ()
62309 {
62310 return $ac_func ();
62311   ;
62312   return 0;
62313 }
62314 _ACEOF
62315 rm -f conftest.$ac_objext conftest$ac_exeext
62316 if { (ac_try="$ac_link"
62317 case "(($ac_try" in
62318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62319   *) ac_try_echo=$ac_try;;
62320 esac
62321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62322 $as_echo "$ac_try_echo") >&5
62323   (eval "$ac_link") 2>conftest.er1
62324   ac_status=$?
62325   grep -v '^ *+' conftest.er1 >conftest.err
62326   rm -f conftest.er1
62327   cat conftest.err >&5
62328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62329   (exit $ac_status); } && {
62330          test -z "$ac_c_werror_flag" ||
62331          test ! -s conftest.err
62332        } && test -s conftest$ac_exeext && {
62333          test "$cross_compiling" = yes ||
62334          $as_test_x conftest$ac_exeext
62335        }; then
62336   eval "$as_ac_var=yes"
62337 else
62338   $as_echo "$as_me: failed program was:" >&5
62339 sed 's/^/| /' conftest.$ac_ext >&5
62340
62341         eval "$as_ac_var=no"
62342 fi
62343
62344 rm -rf conftest.dSYM
62345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62346       conftest$ac_exeext conftest.$ac_ext
62347 fi
62348 ac_res=`eval 'as_val=${'$as_ac_var'}
62349                  $as_echo "$as_val"'`
62350                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62351 $as_echo "$ac_res" >&6; }
62352 as_val=`eval 'as_val=${'$as_ac_var'}
62353                  $as_echo "$as_val"'`
62354    if test "x$as_val" = x""yes; then
62355   cat >>confdefs.h <<_ACEOF
62356 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62357 _ACEOF
62358  ice_have_getsockname=yes
62359 fi
62360 done
62361
62362 if test "${ice_have_getsockname}" = yes; then
62363 { $as_echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
62364 $as_echo_n "checking for getsockname declaration in sys/types.h sys/socket.h... " >&6; }
62365 if test "${ice_cv_have_getsockname_decl+set}" = set; then
62366   $as_echo_n "(cached) " >&6
62367 else
62368
62369 ice_cv_have_getsockname_decl=no
62370 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62371 ice_re_word='(^|[^a-zA-Z0-9_])'
62372 for header in sys/types.h sys/socket.h; do
62373 # Check for ordinary declaration
62374 cat >conftest.$ac_ext <<_ACEOF
62375 /* confdefs.h.  */
62376 _ACEOF
62377 cat confdefs.h >>conftest.$ac_ext
62378 cat >>conftest.$ac_ext <<_ACEOF
62379 /* end confdefs.h.  */
62380 #include <$header>
62381
62382 _ACEOF
62383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62384   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then
62385   ice_cv_have_getsockname_decl=yes
62386 fi
62387 rm -f conftest*
62388
62389 if test "$ice_cv_have_getsockname_decl" = yes; then
62390         break
62391 fi
62392 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62393 cat >conftest.$ac_ext <<_ACEOF
62394 /* confdefs.h.  */
62395 _ACEOF
62396 cat confdefs.h >>conftest.$ac_ext
62397 cat >>conftest.$ac_ext <<_ACEOF
62398 /* end confdefs.h.  */
62399 #include <$header>
62400
62401 _ACEOF
62402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62403   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62404   ice_cv_have_getsockname_decl=yes
62405 fi
62406 rm -f conftest*
62407
62408 if test "$ice_cv_have_getsockname_decl" = yes; then
62409         break
62410 fi
62411 done
62412
62413 fi
62414
62415 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
62416 $as_echo "$ice_cv_have_getsockname_decl" >&6; }
62417 if test "$ice_cv_have_getsockname_decl" = yes; then
62418
62419 cat >>confdefs.h <<_ACEOF
62420 #define HAVE_GETSOCKNAME_DECL 1
62421 _ACEOF
62422
62423 fi
62424 fi
62425
62426
62427 ice_have_getsockopt=no
62428
62429 for ac_func in getsockopt
62430 do
62431 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62432 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62433 $as_echo_n "checking for $ac_func... " >&6; }
62434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62435   $as_echo_n "(cached) " >&6
62436 else
62437   cat >conftest.$ac_ext <<_ACEOF
62438 /* confdefs.h.  */
62439 _ACEOF
62440 cat confdefs.h >>conftest.$ac_ext
62441 cat >>conftest.$ac_ext <<_ACEOF
62442 /* end confdefs.h.  */
62443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62444    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62445 #define $ac_func innocuous_$ac_func
62446
62447 /* System header to define __stub macros and hopefully few prototypes,
62448     which can conflict with char $ac_func (); below.
62449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62450     <limits.h> exists even on freestanding compilers.  */
62451
62452 #ifdef __STDC__
62453 # include <limits.h>
62454 #else
62455 # include <assert.h>
62456 #endif
62457
62458 #undef $ac_func
62459
62460 /* Override any GCC internal prototype to avoid an error.
62461    Use char because int might match the return type of a GCC
62462    builtin and then its argument prototype would still apply.  */
62463 #ifdef __cplusplus
62464 extern "C"
62465 #endif
62466 char $ac_func ();
62467 /* The GNU C library defines this for functions which it implements
62468     to always fail with ENOSYS.  Some functions are actually named
62469     something starting with __ and the normal name is an alias.  */
62470 #if defined __stub_$ac_func || defined __stub___$ac_func
62471 choke me
62472 #endif
62473
62474 int
62475 main ()
62476 {
62477 return $ac_func ();
62478   ;
62479   return 0;
62480 }
62481 _ACEOF
62482 rm -f conftest.$ac_objext conftest$ac_exeext
62483 if { (ac_try="$ac_link"
62484 case "(($ac_try" in
62485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62486   *) ac_try_echo=$ac_try;;
62487 esac
62488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62489 $as_echo "$ac_try_echo") >&5
62490   (eval "$ac_link") 2>conftest.er1
62491   ac_status=$?
62492   grep -v '^ *+' conftest.er1 >conftest.err
62493   rm -f conftest.er1
62494   cat conftest.err >&5
62495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62496   (exit $ac_status); } && {
62497          test -z "$ac_c_werror_flag" ||
62498          test ! -s conftest.err
62499        } && test -s conftest$ac_exeext && {
62500          test "$cross_compiling" = yes ||
62501          $as_test_x conftest$ac_exeext
62502        }; then
62503   eval "$as_ac_var=yes"
62504 else
62505   $as_echo "$as_me: failed program was:" >&5
62506 sed 's/^/| /' conftest.$ac_ext >&5
62507
62508         eval "$as_ac_var=no"
62509 fi
62510
62511 rm -rf conftest.dSYM
62512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62513       conftest$ac_exeext conftest.$ac_ext
62514 fi
62515 ac_res=`eval 'as_val=${'$as_ac_var'}
62516                  $as_echo "$as_val"'`
62517                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62518 $as_echo "$ac_res" >&6; }
62519 as_val=`eval 'as_val=${'$as_ac_var'}
62520                  $as_echo "$as_val"'`
62521    if test "x$as_val" = x""yes; then
62522   cat >>confdefs.h <<_ACEOF
62523 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62524 _ACEOF
62525  ice_have_getsockopt=yes
62526 fi
62527 done
62528
62529 if test "${ice_have_getsockopt}" = yes; then
62530 { $as_echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
62531 $as_echo_n "checking for getsockopt declaration in sys/types.h sys/socket.h... " >&6; }
62532 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
62533   $as_echo_n "(cached) " >&6
62534 else
62535
62536 ice_cv_have_getsockopt_decl=no
62537 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62538 ice_re_word='(^|[^a-zA-Z0-9_])'
62539 for header in sys/types.h sys/socket.h; do
62540 # Check for ordinary declaration
62541 cat >conftest.$ac_ext <<_ACEOF
62542 /* confdefs.h.  */
62543 _ACEOF
62544 cat confdefs.h >>conftest.$ac_ext
62545 cat >>conftest.$ac_ext <<_ACEOF
62546 /* end confdefs.h.  */
62547 #include <$header>
62548
62549 _ACEOF
62550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62551   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then
62552   ice_cv_have_getsockopt_decl=yes
62553 fi
62554 rm -f conftest*
62555
62556 if test "$ice_cv_have_getsockopt_decl" = yes; then
62557         break
62558 fi
62559 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62560 cat >conftest.$ac_ext <<_ACEOF
62561 /* confdefs.h.  */
62562 _ACEOF
62563 cat confdefs.h >>conftest.$ac_ext
62564 cat >>conftest.$ac_ext <<_ACEOF
62565 /* end confdefs.h.  */
62566 #include <$header>
62567
62568 _ACEOF
62569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62570   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62571   ice_cv_have_getsockopt_decl=yes
62572 fi
62573 rm -f conftest*
62574
62575 if test "$ice_cv_have_getsockopt_decl" = yes; then
62576         break
62577 fi
62578 done
62579
62580 fi
62581
62582 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
62583 $as_echo "$ice_cv_have_getsockopt_decl" >&6; }
62584 if test "$ice_cv_have_getsockopt_decl" = yes; then
62585
62586 cat >>confdefs.h <<_ACEOF
62587 #define HAVE_GETSOCKOPT_DECL 1
62588 _ACEOF
62589
62590 fi
62591 fi
62592
62593
62594 ice_have_initgroups=no
62595
62596 for ac_func in initgroups
62597 do
62598 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62599 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62600 $as_echo_n "checking for $ac_func... " >&6; }
62601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62602   $as_echo_n "(cached) " >&6
62603 else
62604   cat >conftest.$ac_ext <<_ACEOF
62605 /* confdefs.h.  */
62606 _ACEOF
62607 cat confdefs.h >>conftest.$ac_ext
62608 cat >>conftest.$ac_ext <<_ACEOF
62609 /* end confdefs.h.  */
62610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62612 #define $ac_func innocuous_$ac_func
62613
62614 /* System header to define __stub macros and hopefully few prototypes,
62615     which can conflict with char $ac_func (); below.
62616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62617     <limits.h> exists even on freestanding compilers.  */
62618
62619 #ifdef __STDC__
62620 # include <limits.h>
62621 #else
62622 # include <assert.h>
62623 #endif
62624
62625 #undef $ac_func
62626
62627 /* Override any GCC internal prototype to avoid an error.
62628    Use char because int might match the return type of a GCC
62629    builtin and then its argument prototype would still apply.  */
62630 #ifdef __cplusplus
62631 extern "C"
62632 #endif
62633 char $ac_func ();
62634 /* The GNU C library defines this for functions which it implements
62635     to always fail with ENOSYS.  Some functions are actually named
62636     something starting with __ and the normal name is an alias.  */
62637 #if defined __stub_$ac_func || defined __stub___$ac_func
62638 choke me
62639 #endif
62640
62641 int
62642 main ()
62643 {
62644 return $ac_func ();
62645   ;
62646   return 0;
62647 }
62648 _ACEOF
62649 rm -f conftest.$ac_objext conftest$ac_exeext
62650 if { (ac_try="$ac_link"
62651 case "(($ac_try" in
62652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62653   *) ac_try_echo=$ac_try;;
62654 esac
62655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62656 $as_echo "$ac_try_echo") >&5
62657   (eval "$ac_link") 2>conftest.er1
62658   ac_status=$?
62659   grep -v '^ *+' conftest.er1 >conftest.err
62660   rm -f conftest.er1
62661   cat conftest.err >&5
62662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62663   (exit $ac_status); } && {
62664          test -z "$ac_c_werror_flag" ||
62665          test ! -s conftest.err
62666        } && test -s conftest$ac_exeext && {
62667          test "$cross_compiling" = yes ||
62668          $as_test_x conftest$ac_exeext
62669        }; then
62670   eval "$as_ac_var=yes"
62671 else
62672   $as_echo "$as_me: failed program was:" >&5
62673 sed 's/^/| /' conftest.$ac_ext >&5
62674
62675         eval "$as_ac_var=no"
62676 fi
62677
62678 rm -rf conftest.dSYM
62679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62680       conftest$ac_exeext conftest.$ac_ext
62681 fi
62682 ac_res=`eval 'as_val=${'$as_ac_var'}
62683                  $as_echo "$as_val"'`
62684                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62685 $as_echo "$ac_res" >&6; }
62686 as_val=`eval 'as_val=${'$as_ac_var'}
62687                  $as_echo "$as_val"'`
62688    if test "x$as_val" = x""yes; then
62689   cat >>confdefs.h <<_ACEOF
62690 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62691 _ACEOF
62692  ice_have_initgroups=yes
62693 fi
62694 done
62695
62696 if test "${ice_have_initgroups}" = yes; then
62697 { $as_echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
62698 $as_echo_n "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... " >&6; }
62699 if test "${ice_cv_have_initgroups_decl+set}" = set; then
62700   $as_echo_n "(cached) " >&6
62701 else
62702
62703 ice_cv_have_initgroups_decl=no
62704 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62705 ice_re_word='(^|[^a-zA-Z0-9_])'
62706 for header in grp.h sys/types.h unistd.h libc.h; do
62707 # Check for ordinary declaration
62708 cat >conftest.$ac_ext <<_ACEOF
62709 /* confdefs.h.  */
62710 _ACEOF
62711 cat confdefs.h >>conftest.$ac_ext
62712 cat >>conftest.$ac_ext <<_ACEOF
62713 /* end confdefs.h.  */
62714 #include <$header>
62715
62716 _ACEOF
62717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62718   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then
62719   ice_cv_have_initgroups_decl=yes
62720 fi
62721 rm -f conftest*
62722
62723 if test "$ice_cv_have_initgroups_decl" = yes; then
62724         break
62725 fi
62726 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62727 cat >conftest.$ac_ext <<_ACEOF
62728 /* confdefs.h.  */
62729 _ACEOF
62730 cat confdefs.h >>conftest.$ac_ext
62731 cat >>conftest.$ac_ext <<_ACEOF
62732 /* end confdefs.h.  */
62733 #include <$header>
62734
62735 _ACEOF
62736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62737   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62738   ice_cv_have_initgroups_decl=yes
62739 fi
62740 rm -f conftest*
62741
62742 if test "$ice_cv_have_initgroups_decl" = yes; then
62743         break
62744 fi
62745 done
62746
62747 fi
62748
62749 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
62750 $as_echo "$ice_cv_have_initgroups_decl" >&6; }
62751 if test "$ice_cv_have_initgroups_decl" = yes; then
62752
62753 cat >>confdefs.h <<_ACEOF
62754 #define HAVE_INITGROUPS_DECL 1
62755 _ACEOF
62756
62757 fi
62758 fi
62759
62760
62761 ice_have_ioctl=no
62762
62763 for ac_func in ioctl
62764 do
62765 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62766 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62767 $as_echo_n "checking for $ac_func... " >&6; }
62768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62769   $as_echo_n "(cached) " >&6
62770 else
62771   cat >conftest.$ac_ext <<_ACEOF
62772 /* confdefs.h.  */
62773 _ACEOF
62774 cat confdefs.h >>conftest.$ac_ext
62775 cat >>conftest.$ac_ext <<_ACEOF
62776 /* end confdefs.h.  */
62777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62779 #define $ac_func innocuous_$ac_func
62780
62781 /* System header to define __stub macros and hopefully few prototypes,
62782     which can conflict with char $ac_func (); below.
62783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62784     <limits.h> exists even on freestanding compilers.  */
62785
62786 #ifdef __STDC__
62787 # include <limits.h>
62788 #else
62789 # include <assert.h>
62790 #endif
62791
62792 #undef $ac_func
62793
62794 /* Override any GCC internal prototype to avoid an error.
62795    Use char because int might match the return type of a GCC
62796    builtin and then its argument prototype would still apply.  */
62797 #ifdef __cplusplus
62798 extern "C"
62799 #endif
62800 char $ac_func ();
62801 /* The GNU C library defines this for functions which it implements
62802     to always fail with ENOSYS.  Some functions are actually named
62803     something starting with __ and the normal name is an alias.  */
62804 #if defined __stub_$ac_func || defined __stub___$ac_func
62805 choke me
62806 #endif
62807
62808 int
62809 main ()
62810 {
62811 return $ac_func ();
62812   ;
62813   return 0;
62814 }
62815 _ACEOF
62816 rm -f conftest.$ac_objext conftest$ac_exeext
62817 if { (ac_try="$ac_link"
62818 case "(($ac_try" in
62819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62820   *) ac_try_echo=$ac_try;;
62821 esac
62822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62823 $as_echo "$ac_try_echo") >&5
62824   (eval "$ac_link") 2>conftest.er1
62825   ac_status=$?
62826   grep -v '^ *+' conftest.er1 >conftest.err
62827   rm -f conftest.er1
62828   cat conftest.err >&5
62829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62830   (exit $ac_status); } && {
62831          test -z "$ac_c_werror_flag" ||
62832          test ! -s conftest.err
62833        } && test -s conftest$ac_exeext && {
62834          test "$cross_compiling" = yes ||
62835          $as_test_x conftest$ac_exeext
62836        }; then
62837   eval "$as_ac_var=yes"
62838 else
62839   $as_echo "$as_me: failed program was:" >&5
62840 sed 's/^/| /' conftest.$ac_ext >&5
62841
62842         eval "$as_ac_var=no"
62843 fi
62844
62845 rm -rf conftest.dSYM
62846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62847       conftest$ac_exeext conftest.$ac_ext
62848 fi
62849 ac_res=`eval 'as_val=${'$as_ac_var'}
62850                  $as_echo "$as_val"'`
62851                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62852 $as_echo "$ac_res" >&6; }
62853 as_val=`eval 'as_val=${'$as_ac_var'}
62854                  $as_echo "$as_val"'`
62855    if test "x$as_val" = x""yes; then
62856   cat >>confdefs.h <<_ACEOF
62857 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62858 _ACEOF
62859  ice_have_ioctl=yes
62860 fi
62861 done
62862
62863 if test "${ice_have_ioctl}" = yes; then
62864 { $as_echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
62865 $as_echo_n "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... " >&6; }
62866 if test "${ice_cv_have_ioctl_decl+set}" = set; then
62867   $as_echo_n "(cached) " >&6
62868 else
62869
62870 ice_cv_have_ioctl_decl=no
62871 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62872 ice_re_word='(^|[^a-zA-Z0-9_])'
62873 for header in sys/ioctl.h unistd.h libc.h; do
62874 # Check for ordinary declaration
62875 cat >conftest.$ac_ext <<_ACEOF
62876 /* confdefs.h.  */
62877 _ACEOF
62878 cat confdefs.h >>conftest.$ac_ext
62879 cat >>conftest.$ac_ext <<_ACEOF
62880 /* end confdefs.h.  */
62881 #include <$header>
62882
62883 _ACEOF
62884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62885   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then
62886   ice_cv_have_ioctl_decl=yes
62887 fi
62888 rm -f conftest*
62889
62890 if test "$ice_cv_have_ioctl_decl" = yes; then
62891         break
62892 fi
62893 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62894 cat >conftest.$ac_ext <<_ACEOF
62895 /* confdefs.h.  */
62896 _ACEOF
62897 cat confdefs.h >>conftest.$ac_ext
62898 cat >>conftest.$ac_ext <<_ACEOF
62899 /* end confdefs.h.  */
62900 #include <$header>
62901
62902 _ACEOF
62903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62904   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62905   ice_cv_have_ioctl_decl=yes
62906 fi
62907 rm -f conftest*
62908
62909 if test "$ice_cv_have_ioctl_decl" = yes; then
62910         break
62911 fi
62912 done
62913
62914 fi
62915
62916 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
62917 $as_echo "$ice_cv_have_ioctl_decl" >&6; }
62918 if test "$ice_cv_have_ioctl_decl" = yes; then
62919
62920 cat >>confdefs.h <<_ACEOF
62921 #define HAVE_IOCTL_DECL 1
62922 _ACEOF
62923
62924 fi
62925 fi
62926
62927
62928 ice_have_isnormal=no
62929
62930 for ac_func in isnormal
62931 do
62932 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62933 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62934 $as_echo_n "checking for $ac_func... " >&6; }
62935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62936   $as_echo_n "(cached) " >&6
62937 else
62938   cat >conftest.$ac_ext <<_ACEOF
62939 /* confdefs.h.  */
62940 _ACEOF
62941 cat confdefs.h >>conftest.$ac_ext
62942 cat >>conftest.$ac_ext <<_ACEOF
62943 /* end confdefs.h.  */
62944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62946 #define $ac_func innocuous_$ac_func
62947
62948 /* System header to define __stub macros and hopefully few prototypes,
62949     which can conflict with char $ac_func (); below.
62950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62951     <limits.h> exists even on freestanding compilers.  */
62952
62953 #ifdef __STDC__
62954 # include <limits.h>
62955 #else
62956 # include <assert.h>
62957 #endif
62958
62959 #undef $ac_func
62960
62961 /* Override any GCC internal prototype to avoid an error.
62962    Use char because int might match the return type of a GCC
62963    builtin and then its argument prototype would still apply.  */
62964 #ifdef __cplusplus
62965 extern "C"
62966 #endif
62967 char $ac_func ();
62968 /* The GNU C library defines this for functions which it implements
62969     to always fail with ENOSYS.  Some functions are actually named
62970     something starting with __ and the normal name is an alias.  */
62971 #if defined __stub_$ac_func || defined __stub___$ac_func
62972 choke me
62973 #endif
62974
62975 int
62976 main ()
62977 {
62978 return $ac_func ();
62979   ;
62980   return 0;
62981 }
62982 _ACEOF
62983 rm -f conftest.$ac_objext conftest$ac_exeext
62984 if { (ac_try="$ac_link"
62985 case "(($ac_try" in
62986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62987   *) ac_try_echo=$ac_try;;
62988 esac
62989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62990 $as_echo "$ac_try_echo") >&5
62991   (eval "$ac_link") 2>conftest.er1
62992   ac_status=$?
62993   grep -v '^ *+' conftest.er1 >conftest.err
62994   rm -f conftest.er1
62995   cat conftest.err >&5
62996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62997   (exit $ac_status); } && {
62998          test -z "$ac_c_werror_flag" ||
62999          test ! -s conftest.err
63000        } && test -s conftest$ac_exeext && {
63001          test "$cross_compiling" = yes ||
63002          $as_test_x conftest$ac_exeext
63003        }; then
63004   eval "$as_ac_var=yes"
63005 else
63006   $as_echo "$as_me: failed program was:" >&5
63007 sed 's/^/| /' conftest.$ac_ext >&5
63008
63009         eval "$as_ac_var=no"
63010 fi
63011
63012 rm -rf conftest.dSYM
63013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63014       conftest$ac_exeext conftest.$ac_ext
63015 fi
63016 ac_res=`eval 'as_val=${'$as_ac_var'}
63017                  $as_echo "$as_val"'`
63018                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63019 $as_echo "$ac_res" >&6; }
63020 as_val=`eval 'as_val=${'$as_ac_var'}
63021                  $as_echo "$as_val"'`
63022    if test "x$as_val" = x""yes; then
63023   cat >>confdefs.h <<_ACEOF
63024 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63025 _ACEOF
63026  ice_have_isnormal=yes
63027 fi
63028 done
63029
63030 if test "${ice_have_isnormal}" = yes; then
63031 { $as_echo "$as_me:$LINENO: checking for isnormal declaration in math.h" >&5
63032 $as_echo_n "checking for isnormal declaration in math.h... " >&6; }
63033 if test "${ice_cv_have_isnormal_decl+set}" = set; then
63034   $as_echo_n "(cached) " >&6
63035 else
63036
63037 ice_cv_have_isnormal_decl=no
63038 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63039 ice_re_word='(^|[^a-zA-Z0-9_])'
63040 for header in math.h; do
63041 # Check for ordinary declaration
63042 cat >conftest.$ac_ext <<_ACEOF
63043 /* confdefs.h.  */
63044 _ACEOF
63045 cat confdefs.h >>conftest.$ac_ext
63046 cat >>conftest.$ac_ext <<_ACEOF
63047 /* end confdefs.h.  */
63048 #include <$header>
63049
63050 _ACEOF
63051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63052   $EGREP "${ice_re_word}isnormal[       ]*\(" >/dev/null 2>&1; then
63053   ice_cv_have_isnormal_decl=yes
63054 fi
63055 rm -f conftest*
63056
63057 if test "$ice_cv_have_isnormal_decl" = yes; then
63058         break
63059 fi
63060 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63061 cat >conftest.$ac_ext <<_ACEOF
63062 /* confdefs.h.  */
63063 _ACEOF
63064 cat confdefs.h >>conftest.$ac_ext
63065 cat >>conftest.$ac_ext <<_ACEOF
63066 /* end confdefs.h.  */
63067 #include <$header>
63068
63069 _ACEOF
63070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63071   $EGREP "${ice_re_word}isnormal[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63072   ice_cv_have_isnormal_decl=yes
63073 fi
63074 rm -f conftest*
63075
63076 if test "$ice_cv_have_isnormal_decl" = yes; then
63077         break
63078 fi
63079 done
63080
63081 fi
63082
63083 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_isnormal_decl" >&5
63084 $as_echo "$ice_cv_have_isnormal_decl" >&6; }
63085 if test "$ice_cv_have_isnormal_decl" = yes; then
63086
63087 cat >>confdefs.h <<_ACEOF
63088 #define HAVE_ISNORMAL_DECL 1
63089 _ACEOF
63090
63091 fi
63092 fi
63093
63094
63095 ice_have_listen=no
63096
63097 for ac_func in listen
63098 do
63099 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63100 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63101 $as_echo_n "checking for $ac_func... " >&6; }
63102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63103   $as_echo_n "(cached) " >&6
63104 else
63105   cat >conftest.$ac_ext <<_ACEOF
63106 /* confdefs.h.  */
63107 _ACEOF
63108 cat confdefs.h >>conftest.$ac_ext
63109 cat >>conftest.$ac_ext <<_ACEOF
63110 /* end confdefs.h.  */
63111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63112    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63113 #define $ac_func innocuous_$ac_func
63114
63115 /* System header to define __stub macros and hopefully few prototypes,
63116     which can conflict with char $ac_func (); below.
63117     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63118     <limits.h> exists even on freestanding compilers.  */
63119
63120 #ifdef __STDC__
63121 # include <limits.h>
63122 #else
63123 # include <assert.h>
63124 #endif
63125
63126 #undef $ac_func
63127
63128 /* Override any GCC internal prototype to avoid an error.
63129    Use char because int might match the return type of a GCC
63130    builtin and then its argument prototype would still apply.  */
63131 #ifdef __cplusplus
63132 extern "C"
63133 #endif
63134 char $ac_func ();
63135 /* The GNU C library defines this for functions which it implements
63136     to always fail with ENOSYS.  Some functions are actually named
63137     something starting with __ and the normal name is an alias.  */
63138 #if defined __stub_$ac_func || defined __stub___$ac_func
63139 choke me
63140 #endif
63141
63142 int
63143 main ()
63144 {
63145 return $ac_func ();
63146   ;
63147   return 0;
63148 }
63149 _ACEOF
63150 rm -f conftest.$ac_objext conftest$ac_exeext
63151 if { (ac_try="$ac_link"
63152 case "(($ac_try" in
63153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63154   *) ac_try_echo=$ac_try;;
63155 esac
63156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63157 $as_echo "$ac_try_echo") >&5
63158   (eval "$ac_link") 2>conftest.er1
63159   ac_status=$?
63160   grep -v '^ *+' conftest.er1 >conftest.err
63161   rm -f conftest.er1
63162   cat conftest.err >&5
63163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63164   (exit $ac_status); } && {
63165          test -z "$ac_c_werror_flag" ||
63166          test ! -s conftest.err
63167        } && test -s conftest$ac_exeext && {
63168          test "$cross_compiling" = yes ||
63169          $as_test_x conftest$ac_exeext
63170        }; then
63171   eval "$as_ac_var=yes"
63172 else
63173   $as_echo "$as_me: failed program was:" >&5
63174 sed 's/^/| /' conftest.$ac_ext >&5
63175
63176         eval "$as_ac_var=no"
63177 fi
63178
63179 rm -rf conftest.dSYM
63180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63181       conftest$ac_exeext conftest.$ac_ext
63182 fi
63183 ac_res=`eval 'as_val=${'$as_ac_var'}
63184                  $as_echo "$as_val"'`
63185                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63186 $as_echo "$ac_res" >&6; }
63187 as_val=`eval 'as_val=${'$as_ac_var'}
63188                  $as_echo "$as_val"'`
63189    if test "x$as_val" = x""yes; then
63190   cat >>confdefs.h <<_ACEOF
63191 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63192 _ACEOF
63193  ice_have_listen=yes
63194 fi
63195 done
63196
63197 if test "${ice_have_listen}" = yes; then
63198 { $as_echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
63199 $as_echo_n "checking for listen declaration in sys/types.h sys/socket.h... " >&6; }
63200 if test "${ice_cv_have_listen_decl+set}" = set; then
63201   $as_echo_n "(cached) " >&6
63202 else
63203
63204 ice_cv_have_listen_decl=no
63205 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63206 ice_re_word='(^|[^a-zA-Z0-9_])'
63207 for header in sys/types.h sys/socket.h; do
63208 # Check for ordinary declaration
63209 cat >conftest.$ac_ext <<_ACEOF
63210 /* confdefs.h.  */
63211 _ACEOF
63212 cat confdefs.h >>conftest.$ac_ext
63213 cat >>conftest.$ac_ext <<_ACEOF
63214 /* end confdefs.h.  */
63215 #include <$header>
63216
63217 _ACEOF
63218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63219   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then
63220   ice_cv_have_listen_decl=yes
63221 fi
63222 rm -f conftest*
63223
63224 if test "$ice_cv_have_listen_decl" = yes; then
63225         break
63226 fi
63227 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63228 cat >conftest.$ac_ext <<_ACEOF
63229 /* confdefs.h.  */
63230 _ACEOF
63231 cat confdefs.h >>conftest.$ac_ext
63232 cat >>conftest.$ac_ext <<_ACEOF
63233 /* end confdefs.h.  */
63234 #include <$header>
63235
63236 _ACEOF
63237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63238   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63239   ice_cv_have_listen_decl=yes
63240 fi
63241 rm -f conftest*
63242
63243 if test "$ice_cv_have_listen_decl" = yes; then
63244         break
63245 fi
63246 done
63247
63248 fi
63249
63250 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
63251 $as_echo "$ice_cv_have_listen_decl" >&6; }
63252 if test "$ice_cv_have_listen_decl" = yes; then
63253
63254 cat >>confdefs.h <<_ACEOF
63255 #define HAVE_LISTEN_DECL 1
63256 _ACEOF
63257
63258 fi
63259 fi
63260
63261
63262 ice_have_lstat=no
63263
63264 for ac_func in lstat
63265 do
63266 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63267 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63268 $as_echo_n "checking for $ac_func... " >&6; }
63269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63270   $as_echo_n "(cached) " >&6
63271 else
63272   cat >conftest.$ac_ext <<_ACEOF
63273 /* confdefs.h.  */
63274 _ACEOF
63275 cat confdefs.h >>conftest.$ac_ext
63276 cat >>conftest.$ac_ext <<_ACEOF
63277 /* end confdefs.h.  */
63278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63280 #define $ac_func innocuous_$ac_func
63281
63282 /* System header to define __stub macros and hopefully few prototypes,
63283     which can conflict with char $ac_func (); below.
63284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63285     <limits.h> exists even on freestanding compilers.  */
63286
63287 #ifdef __STDC__
63288 # include <limits.h>
63289 #else
63290 # include <assert.h>
63291 #endif
63292
63293 #undef $ac_func
63294
63295 /* Override any GCC internal prototype to avoid an error.
63296    Use char because int might match the return type of a GCC
63297    builtin and then its argument prototype would still apply.  */
63298 #ifdef __cplusplus
63299 extern "C"
63300 #endif
63301 char $ac_func ();
63302 /* The GNU C library defines this for functions which it implements
63303     to always fail with ENOSYS.  Some functions are actually named
63304     something starting with __ and the normal name is an alias.  */
63305 #if defined __stub_$ac_func || defined __stub___$ac_func
63306 choke me
63307 #endif
63308
63309 int
63310 main ()
63311 {
63312 return $ac_func ();
63313   ;
63314   return 0;
63315 }
63316 _ACEOF
63317 rm -f conftest.$ac_objext conftest$ac_exeext
63318 if { (ac_try="$ac_link"
63319 case "(($ac_try" in
63320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63321   *) ac_try_echo=$ac_try;;
63322 esac
63323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63324 $as_echo "$ac_try_echo") >&5
63325   (eval "$ac_link") 2>conftest.er1
63326   ac_status=$?
63327   grep -v '^ *+' conftest.er1 >conftest.err
63328   rm -f conftest.er1
63329   cat conftest.err >&5
63330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63331   (exit $ac_status); } && {
63332          test -z "$ac_c_werror_flag" ||
63333          test ! -s conftest.err
63334        } && test -s conftest$ac_exeext && {
63335          test "$cross_compiling" = yes ||
63336          $as_test_x conftest$ac_exeext
63337        }; then
63338   eval "$as_ac_var=yes"
63339 else
63340   $as_echo "$as_me: failed program was:" >&5
63341 sed 's/^/| /' conftest.$ac_ext >&5
63342
63343         eval "$as_ac_var=no"
63344 fi
63345
63346 rm -rf conftest.dSYM
63347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63348       conftest$ac_exeext conftest.$ac_ext
63349 fi
63350 ac_res=`eval 'as_val=${'$as_ac_var'}
63351                  $as_echo "$as_val"'`
63352                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63353 $as_echo "$ac_res" >&6; }
63354 as_val=`eval 'as_val=${'$as_ac_var'}
63355                  $as_echo "$as_val"'`
63356    if test "x$as_val" = x""yes; then
63357   cat >>confdefs.h <<_ACEOF
63358 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63359 _ACEOF
63360  ice_have_lstat=yes
63361 fi
63362 done
63363
63364 if test "${ice_have_lstat}" = yes; then
63365 { $as_echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
63366 $as_echo_n "checking for lstat declaration in sys/types.h sys/stat.h... " >&6; }
63367 if test "${ice_cv_have_lstat_decl+set}" = set; then
63368   $as_echo_n "(cached) " >&6
63369 else
63370
63371 ice_cv_have_lstat_decl=no
63372 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63373 ice_re_word='(^|[^a-zA-Z0-9_])'
63374 for header in sys/types.h sys/stat.h; do
63375 # Check for ordinary declaration
63376 cat >conftest.$ac_ext <<_ACEOF
63377 /* confdefs.h.  */
63378 _ACEOF
63379 cat confdefs.h >>conftest.$ac_ext
63380 cat >>conftest.$ac_ext <<_ACEOF
63381 /* end confdefs.h.  */
63382 #include <$header>
63383
63384 _ACEOF
63385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63386   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then
63387   ice_cv_have_lstat_decl=yes
63388 fi
63389 rm -f conftest*
63390
63391 if test "$ice_cv_have_lstat_decl" = yes; then
63392         break
63393 fi
63394 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63395 cat >conftest.$ac_ext <<_ACEOF
63396 /* confdefs.h.  */
63397 _ACEOF
63398 cat confdefs.h >>conftest.$ac_ext
63399 cat >>conftest.$ac_ext <<_ACEOF
63400 /* end confdefs.h.  */
63401 #include <$header>
63402
63403 _ACEOF
63404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63405   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63406   ice_cv_have_lstat_decl=yes
63407 fi
63408 rm -f conftest*
63409
63410 if test "$ice_cv_have_lstat_decl" = yes; then
63411         break
63412 fi
63413 done
63414
63415 fi
63416
63417 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
63418 $as_echo "$ice_cv_have_lstat_decl" >&6; }
63419 if test "$ice_cv_have_lstat_decl" = yes; then
63420
63421 cat >>confdefs.h <<_ACEOF
63422 #define HAVE_LSTAT_DECL 1
63423 _ACEOF
63424
63425 fi
63426 fi
63427
63428
63429 ice_have_malloc=no
63430
63431 for ac_func in malloc
63432 do
63433 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63434 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63435 $as_echo_n "checking for $ac_func... " >&6; }
63436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63437   $as_echo_n "(cached) " >&6
63438 else
63439   cat >conftest.$ac_ext <<_ACEOF
63440 /* confdefs.h.  */
63441 _ACEOF
63442 cat confdefs.h >>conftest.$ac_ext
63443 cat >>conftest.$ac_ext <<_ACEOF
63444 /* end confdefs.h.  */
63445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63447 #define $ac_func innocuous_$ac_func
63448
63449 /* System header to define __stub macros and hopefully few prototypes,
63450     which can conflict with char $ac_func (); below.
63451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63452     <limits.h> exists even on freestanding compilers.  */
63453
63454 #ifdef __STDC__
63455 # include <limits.h>
63456 #else
63457 # include <assert.h>
63458 #endif
63459
63460 #undef $ac_func
63461
63462 /* Override any GCC internal prototype to avoid an error.
63463    Use char because int might match the return type of a GCC
63464    builtin and then its argument prototype would still apply.  */
63465 #ifdef __cplusplus
63466 extern "C"
63467 #endif
63468 char $ac_func ();
63469 /* The GNU C library defines this for functions which it implements
63470     to always fail with ENOSYS.  Some functions are actually named
63471     something starting with __ and the normal name is an alias.  */
63472 #if defined __stub_$ac_func || defined __stub___$ac_func
63473 choke me
63474 #endif
63475
63476 int
63477 main ()
63478 {
63479 return $ac_func ();
63480   ;
63481   return 0;
63482 }
63483 _ACEOF
63484 rm -f conftest.$ac_objext conftest$ac_exeext
63485 if { (ac_try="$ac_link"
63486 case "(($ac_try" in
63487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63488   *) ac_try_echo=$ac_try;;
63489 esac
63490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63491 $as_echo "$ac_try_echo") >&5
63492   (eval "$ac_link") 2>conftest.er1
63493   ac_status=$?
63494   grep -v '^ *+' conftest.er1 >conftest.err
63495   rm -f conftest.er1
63496   cat conftest.err >&5
63497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63498   (exit $ac_status); } && {
63499          test -z "$ac_c_werror_flag" ||
63500          test ! -s conftest.err
63501        } && test -s conftest$ac_exeext && {
63502          test "$cross_compiling" = yes ||
63503          $as_test_x conftest$ac_exeext
63504        }; then
63505   eval "$as_ac_var=yes"
63506 else
63507   $as_echo "$as_me: failed program was:" >&5
63508 sed 's/^/| /' conftest.$ac_ext >&5
63509
63510         eval "$as_ac_var=no"
63511 fi
63512
63513 rm -rf conftest.dSYM
63514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63515       conftest$ac_exeext conftest.$ac_ext
63516 fi
63517 ac_res=`eval 'as_val=${'$as_ac_var'}
63518                  $as_echo "$as_val"'`
63519                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63520 $as_echo "$ac_res" >&6; }
63521 as_val=`eval 'as_val=${'$as_ac_var'}
63522                  $as_echo "$as_val"'`
63523    if test "x$as_val" = x""yes; then
63524   cat >>confdefs.h <<_ACEOF
63525 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63526 _ACEOF
63527  ice_have_malloc=yes
63528 fi
63529 done
63530
63531 if test "${ice_have_malloc}" = yes; then
63532 { $as_echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
63533 $as_echo_n "checking for malloc declaration in stdlib.h... " >&6; }
63534 if test "${ice_cv_have_malloc_decl+set}" = set; then
63535   $as_echo_n "(cached) " >&6
63536 else
63537
63538 ice_cv_have_malloc_decl=no
63539 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63540 ice_re_word='(^|[^a-zA-Z0-9_])'
63541 for header in stdlib.h; do
63542 # Check for ordinary declaration
63543 cat >conftest.$ac_ext <<_ACEOF
63544 /* confdefs.h.  */
63545 _ACEOF
63546 cat confdefs.h >>conftest.$ac_ext
63547 cat >>conftest.$ac_ext <<_ACEOF
63548 /* end confdefs.h.  */
63549 #include <$header>
63550
63551 _ACEOF
63552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63553   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then
63554   ice_cv_have_malloc_decl=yes
63555 fi
63556 rm -f conftest*
63557
63558 if test "$ice_cv_have_malloc_decl" = yes; then
63559         break
63560 fi
63561 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63562 cat >conftest.$ac_ext <<_ACEOF
63563 /* confdefs.h.  */
63564 _ACEOF
63565 cat confdefs.h >>conftest.$ac_ext
63566 cat >>conftest.$ac_ext <<_ACEOF
63567 /* end confdefs.h.  */
63568 #include <$header>
63569
63570 _ACEOF
63571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63572   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63573   ice_cv_have_malloc_decl=yes
63574 fi
63575 rm -f conftest*
63576
63577 if test "$ice_cv_have_malloc_decl" = yes; then
63578         break
63579 fi
63580 done
63581
63582 fi
63583
63584 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
63585 $as_echo "$ice_cv_have_malloc_decl" >&6; }
63586 if test "$ice_cv_have_malloc_decl" = yes; then
63587
63588 cat >>confdefs.h <<_ACEOF
63589 #define HAVE_MALLOC_DECL 1
63590 _ACEOF
63591
63592 fi
63593 fi
63594
63595
63596 ice_have_memmove=no
63597
63598 for ac_func in memmove
63599 do
63600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63601 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63602 $as_echo_n "checking for $ac_func... " >&6; }
63603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63604   $as_echo_n "(cached) " >&6
63605 else
63606   cat >conftest.$ac_ext <<_ACEOF
63607 /* confdefs.h.  */
63608 _ACEOF
63609 cat confdefs.h >>conftest.$ac_ext
63610 cat >>conftest.$ac_ext <<_ACEOF
63611 /* end confdefs.h.  */
63612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63614 #define $ac_func innocuous_$ac_func
63615
63616 /* System header to define __stub macros and hopefully few prototypes,
63617     which can conflict with char $ac_func (); below.
63618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63619     <limits.h> exists even on freestanding compilers.  */
63620
63621 #ifdef __STDC__
63622 # include <limits.h>
63623 #else
63624 # include <assert.h>
63625 #endif
63626
63627 #undef $ac_func
63628
63629 /* Override any GCC internal prototype to avoid an error.
63630    Use char because int might match the return type of a GCC
63631    builtin and then its argument prototype would still apply.  */
63632 #ifdef __cplusplus
63633 extern "C"
63634 #endif
63635 char $ac_func ();
63636 /* The GNU C library defines this for functions which it implements
63637     to always fail with ENOSYS.  Some functions are actually named
63638     something starting with __ and the normal name is an alias.  */
63639 #if defined __stub_$ac_func || defined __stub___$ac_func
63640 choke me
63641 #endif
63642
63643 int
63644 main ()
63645 {
63646 return $ac_func ();
63647   ;
63648   return 0;
63649 }
63650 _ACEOF
63651 rm -f conftest.$ac_objext conftest$ac_exeext
63652 if { (ac_try="$ac_link"
63653 case "(($ac_try" in
63654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63655   *) ac_try_echo=$ac_try;;
63656 esac
63657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63658 $as_echo "$ac_try_echo") >&5
63659   (eval "$ac_link") 2>conftest.er1
63660   ac_status=$?
63661   grep -v '^ *+' conftest.er1 >conftest.err
63662   rm -f conftest.er1
63663   cat conftest.err >&5
63664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63665   (exit $ac_status); } && {
63666          test -z "$ac_c_werror_flag" ||
63667          test ! -s conftest.err
63668        } && test -s conftest$ac_exeext && {
63669          test "$cross_compiling" = yes ||
63670          $as_test_x conftest$ac_exeext
63671        }; then
63672   eval "$as_ac_var=yes"
63673 else
63674   $as_echo "$as_me: failed program was:" >&5
63675 sed 's/^/| /' conftest.$ac_ext >&5
63676
63677         eval "$as_ac_var=no"
63678 fi
63679
63680 rm -rf conftest.dSYM
63681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63682       conftest$ac_exeext conftest.$ac_ext
63683 fi
63684 ac_res=`eval 'as_val=${'$as_ac_var'}
63685                  $as_echo "$as_val"'`
63686                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63687 $as_echo "$ac_res" >&6; }
63688 as_val=`eval 'as_val=${'$as_ac_var'}
63689                  $as_echo "$as_val"'`
63690    if test "x$as_val" = x""yes; then
63691   cat >>confdefs.h <<_ACEOF
63692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63693 _ACEOF
63694  ice_have_memmove=yes
63695 fi
63696 done
63697
63698 if test "${ice_have_memmove}" = yes; then
63699 { $as_echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
63700 $as_echo_n "checking for memmove declaration in string.h strings.h... " >&6; }
63701 if test "${ice_cv_have_memmove_decl+set}" = set; then
63702   $as_echo_n "(cached) " >&6
63703 else
63704
63705 ice_cv_have_memmove_decl=no
63706 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63707 ice_re_word='(^|[^a-zA-Z0-9_])'
63708 for header in string.h strings.h; do
63709 # Check for ordinary declaration
63710 cat >conftest.$ac_ext <<_ACEOF
63711 /* confdefs.h.  */
63712 _ACEOF
63713 cat confdefs.h >>conftest.$ac_ext
63714 cat >>conftest.$ac_ext <<_ACEOF
63715 /* end confdefs.h.  */
63716 #include <$header>
63717
63718 _ACEOF
63719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63720   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then
63721   ice_cv_have_memmove_decl=yes
63722 fi
63723 rm -f conftest*
63724
63725 if test "$ice_cv_have_memmove_decl" = yes; then
63726         break
63727 fi
63728 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63729 cat >conftest.$ac_ext <<_ACEOF
63730 /* confdefs.h.  */
63731 _ACEOF
63732 cat confdefs.h >>conftest.$ac_ext
63733 cat >>conftest.$ac_ext <<_ACEOF
63734 /* end confdefs.h.  */
63735 #include <$header>
63736
63737 _ACEOF
63738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63739   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63740   ice_cv_have_memmove_decl=yes
63741 fi
63742 rm -f conftest*
63743
63744 if test "$ice_cv_have_memmove_decl" = yes; then
63745         break
63746 fi
63747 done
63748
63749 fi
63750
63751 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
63752 $as_echo "$ice_cv_have_memmove_decl" >&6; }
63753 if test "$ice_cv_have_memmove_decl" = yes; then
63754
63755 cat >>confdefs.h <<_ACEOF
63756 #define HAVE_MEMMOVE_DECL 1
63757 _ACEOF
63758
63759 fi
63760 fi
63761
63762
63763 ice_have_memset=no
63764
63765 for ac_func in memset
63766 do
63767 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63768 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63769 $as_echo_n "checking for $ac_func... " >&6; }
63770 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63771   $as_echo_n "(cached) " >&6
63772 else
63773   cat >conftest.$ac_ext <<_ACEOF
63774 /* confdefs.h.  */
63775 _ACEOF
63776 cat confdefs.h >>conftest.$ac_ext
63777 cat >>conftest.$ac_ext <<_ACEOF
63778 /* end confdefs.h.  */
63779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63781 #define $ac_func innocuous_$ac_func
63782
63783 /* System header to define __stub macros and hopefully few prototypes,
63784     which can conflict with char $ac_func (); below.
63785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63786     <limits.h> exists even on freestanding compilers.  */
63787
63788 #ifdef __STDC__
63789 # include <limits.h>
63790 #else
63791 # include <assert.h>
63792 #endif
63793
63794 #undef $ac_func
63795
63796 /* Override any GCC internal prototype to avoid an error.
63797    Use char because int might match the return type of a GCC
63798    builtin and then its argument prototype would still apply.  */
63799 #ifdef __cplusplus
63800 extern "C"
63801 #endif
63802 char $ac_func ();
63803 /* The GNU C library defines this for functions which it implements
63804     to always fail with ENOSYS.  Some functions are actually named
63805     something starting with __ and the normal name is an alias.  */
63806 #if defined __stub_$ac_func || defined __stub___$ac_func
63807 choke me
63808 #endif
63809
63810 int
63811 main ()
63812 {
63813 return $ac_func ();
63814   ;
63815   return 0;
63816 }
63817 _ACEOF
63818 rm -f conftest.$ac_objext conftest$ac_exeext
63819 if { (ac_try="$ac_link"
63820 case "(($ac_try" in
63821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63822   *) ac_try_echo=$ac_try;;
63823 esac
63824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63825 $as_echo "$ac_try_echo") >&5
63826   (eval "$ac_link") 2>conftest.er1
63827   ac_status=$?
63828   grep -v '^ *+' conftest.er1 >conftest.err
63829   rm -f conftest.er1
63830   cat conftest.err >&5
63831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63832   (exit $ac_status); } && {
63833          test -z "$ac_c_werror_flag" ||
63834          test ! -s conftest.err
63835        } && test -s conftest$ac_exeext && {
63836          test "$cross_compiling" = yes ||
63837          $as_test_x conftest$ac_exeext
63838        }; then
63839   eval "$as_ac_var=yes"
63840 else
63841   $as_echo "$as_me: failed program was:" >&5
63842 sed 's/^/| /' conftest.$ac_ext >&5
63843
63844         eval "$as_ac_var=no"
63845 fi
63846
63847 rm -rf conftest.dSYM
63848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63849       conftest$ac_exeext conftest.$ac_ext
63850 fi
63851 ac_res=`eval 'as_val=${'$as_ac_var'}
63852                  $as_echo "$as_val"'`
63853                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63854 $as_echo "$ac_res" >&6; }
63855 as_val=`eval 'as_val=${'$as_ac_var'}
63856                  $as_echo "$as_val"'`
63857    if test "x$as_val" = x""yes; then
63858   cat >>confdefs.h <<_ACEOF
63859 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63860 _ACEOF
63861  ice_have_memset=yes
63862 fi
63863 done
63864
63865 if test "${ice_have_memset}" = yes; then
63866 { $as_echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
63867 $as_echo_n "checking for memset declaration in string.h strings.h... " >&6; }
63868 if test "${ice_cv_have_memset_decl+set}" = set; then
63869   $as_echo_n "(cached) " >&6
63870 else
63871
63872 ice_cv_have_memset_decl=no
63873 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63874 ice_re_word='(^|[^a-zA-Z0-9_])'
63875 for header in string.h strings.h; do
63876 # Check for ordinary declaration
63877 cat >conftest.$ac_ext <<_ACEOF
63878 /* confdefs.h.  */
63879 _ACEOF
63880 cat confdefs.h >>conftest.$ac_ext
63881 cat >>conftest.$ac_ext <<_ACEOF
63882 /* end confdefs.h.  */
63883 #include <$header>
63884
63885 _ACEOF
63886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63887   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then
63888   ice_cv_have_memset_decl=yes
63889 fi
63890 rm -f conftest*
63891
63892 if test "$ice_cv_have_memset_decl" = yes; then
63893         break
63894 fi
63895 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63896 cat >conftest.$ac_ext <<_ACEOF
63897 /* confdefs.h.  */
63898 _ACEOF
63899 cat confdefs.h >>conftest.$ac_ext
63900 cat >>conftest.$ac_ext <<_ACEOF
63901 /* end confdefs.h.  */
63902 #include <$header>
63903
63904 _ACEOF
63905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63906   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63907   ice_cv_have_memset_decl=yes
63908 fi
63909 rm -f conftest*
63910
63911 if test "$ice_cv_have_memset_decl" = yes; then
63912         break
63913 fi
63914 done
63915
63916 fi
63917
63918 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
63919 $as_echo "$ice_cv_have_memset_decl" >&6; }
63920 if test "$ice_cv_have_memset_decl" = yes; then
63921
63922 cat >>confdefs.h <<_ACEOF
63923 #define HAVE_MEMSET_DECL 1
63924 _ACEOF
63925
63926 fi
63927 fi
63928
63929
63930 ice_have_mkstemp=no
63931
63932 for ac_func in mkstemp
63933 do
63934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63935 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63936 $as_echo_n "checking for $ac_func... " >&6; }
63937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63938   $as_echo_n "(cached) " >&6
63939 else
63940   cat >conftest.$ac_ext <<_ACEOF
63941 /* confdefs.h.  */
63942 _ACEOF
63943 cat confdefs.h >>conftest.$ac_ext
63944 cat >>conftest.$ac_ext <<_ACEOF
63945 /* end confdefs.h.  */
63946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63948 #define $ac_func innocuous_$ac_func
63949
63950 /* System header to define __stub macros and hopefully few prototypes,
63951     which can conflict with char $ac_func (); below.
63952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63953     <limits.h> exists even on freestanding compilers.  */
63954
63955 #ifdef __STDC__
63956 # include <limits.h>
63957 #else
63958 # include <assert.h>
63959 #endif
63960
63961 #undef $ac_func
63962
63963 /* Override any GCC internal prototype to avoid an error.
63964    Use char because int might match the return type of a GCC
63965    builtin and then its argument prototype would still apply.  */
63966 #ifdef __cplusplus
63967 extern "C"
63968 #endif
63969 char $ac_func ();
63970 /* The GNU C library defines this for functions which it implements
63971     to always fail with ENOSYS.  Some functions are actually named
63972     something starting with __ and the normal name is an alias.  */
63973 #if defined __stub_$ac_func || defined __stub___$ac_func
63974 choke me
63975 #endif
63976
63977 int
63978 main ()
63979 {
63980 return $ac_func ();
63981   ;
63982   return 0;
63983 }
63984 _ACEOF
63985 rm -f conftest.$ac_objext conftest$ac_exeext
63986 if { (ac_try="$ac_link"
63987 case "(($ac_try" in
63988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63989   *) ac_try_echo=$ac_try;;
63990 esac
63991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63992 $as_echo "$ac_try_echo") >&5
63993   (eval "$ac_link") 2>conftest.er1
63994   ac_status=$?
63995   grep -v '^ *+' conftest.er1 >conftest.err
63996   rm -f conftest.er1
63997   cat conftest.err >&5
63998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63999   (exit $ac_status); } && {
64000          test -z "$ac_c_werror_flag" ||
64001          test ! -s conftest.err
64002        } && test -s conftest$ac_exeext && {
64003          test "$cross_compiling" = yes ||
64004          $as_test_x conftest$ac_exeext
64005        }; then
64006   eval "$as_ac_var=yes"
64007 else
64008   $as_echo "$as_me: failed program was:" >&5
64009 sed 's/^/| /' conftest.$ac_ext >&5
64010
64011         eval "$as_ac_var=no"
64012 fi
64013
64014 rm -rf conftest.dSYM
64015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64016       conftest$ac_exeext conftest.$ac_ext
64017 fi
64018 ac_res=`eval 'as_val=${'$as_ac_var'}
64019                  $as_echo "$as_val"'`
64020                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64021 $as_echo "$ac_res" >&6; }
64022 as_val=`eval 'as_val=${'$as_ac_var'}
64023                  $as_echo "$as_val"'`
64024    if test "x$as_val" = x""yes; then
64025   cat >>confdefs.h <<_ACEOF
64026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64027 _ACEOF
64028  ice_have_mkstemp=yes
64029 fi
64030 done
64031
64032 if test "${ice_have_mkstemp}" = yes; then
64033 { $as_echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
64034 $as_echo_n "checking for mkstemp declaration in stdlib.h... " >&6; }
64035 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
64036   $as_echo_n "(cached) " >&6
64037 else
64038
64039 ice_cv_have_mkstemp_decl=no
64040 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64041 ice_re_word='(^|[^a-zA-Z0-9_])'
64042 for header in stdlib.h; do
64043 # Check for ordinary declaration
64044 cat >conftest.$ac_ext <<_ACEOF
64045 /* confdefs.h.  */
64046 _ACEOF
64047 cat confdefs.h >>conftest.$ac_ext
64048 cat >>conftest.$ac_ext <<_ACEOF
64049 /* end confdefs.h.  */
64050 #include <$header>
64051
64052 _ACEOF
64053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64054   $EGREP "${ice_re_word}mkstemp[        ]*\(" >/dev/null 2>&1; then
64055   ice_cv_have_mkstemp_decl=yes
64056 fi
64057 rm -f conftest*
64058
64059 if test "$ice_cv_have_mkstemp_decl" = yes; then
64060         break
64061 fi
64062 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64063 cat >conftest.$ac_ext <<_ACEOF
64064 /* confdefs.h.  */
64065 _ACEOF
64066 cat confdefs.h >>conftest.$ac_ext
64067 cat >>conftest.$ac_ext <<_ACEOF
64068 /* end confdefs.h.  */
64069 #include <$header>
64070
64071 _ACEOF
64072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64073   $EGREP "${ice_re_word}mkstemp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64074   ice_cv_have_mkstemp_decl=yes
64075 fi
64076 rm -f conftest*
64077
64078 if test "$ice_cv_have_mkstemp_decl" = yes; then
64079         break
64080 fi
64081 done
64082
64083 fi
64084
64085 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
64086 $as_echo "$ice_cv_have_mkstemp_decl" >&6; }
64087 if test "$ice_cv_have_mkstemp_decl" = yes; then
64088
64089 cat >>confdefs.h <<_ACEOF
64090 #define HAVE_MKSTEMP_DECL 1
64091 _ACEOF
64092
64093 fi
64094 fi
64095
64096
64097 ice_have_mktemp=no
64098
64099 for ac_func in mktemp
64100 do
64101 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64102 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64103 $as_echo_n "checking for $ac_func... " >&6; }
64104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64105   $as_echo_n "(cached) " >&6
64106 else
64107   cat >conftest.$ac_ext <<_ACEOF
64108 /* confdefs.h.  */
64109 _ACEOF
64110 cat confdefs.h >>conftest.$ac_ext
64111 cat >>conftest.$ac_ext <<_ACEOF
64112 /* end confdefs.h.  */
64113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64115 #define $ac_func innocuous_$ac_func
64116
64117 /* System header to define __stub macros and hopefully few prototypes,
64118     which can conflict with char $ac_func (); below.
64119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64120     <limits.h> exists even on freestanding compilers.  */
64121
64122 #ifdef __STDC__
64123 # include <limits.h>
64124 #else
64125 # include <assert.h>
64126 #endif
64127
64128 #undef $ac_func
64129
64130 /* Override any GCC internal prototype to avoid an error.
64131    Use char because int might match the return type of a GCC
64132    builtin and then its argument prototype would still apply.  */
64133 #ifdef __cplusplus
64134 extern "C"
64135 #endif
64136 char $ac_func ();
64137 /* The GNU C library defines this for functions which it implements
64138     to always fail with ENOSYS.  Some functions are actually named
64139     something starting with __ and the normal name is an alias.  */
64140 #if defined __stub_$ac_func || defined __stub___$ac_func
64141 choke me
64142 #endif
64143
64144 int
64145 main ()
64146 {
64147 return $ac_func ();
64148   ;
64149   return 0;
64150 }
64151 _ACEOF
64152 rm -f conftest.$ac_objext conftest$ac_exeext
64153 if { (ac_try="$ac_link"
64154 case "(($ac_try" in
64155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64156   *) ac_try_echo=$ac_try;;
64157 esac
64158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64159 $as_echo "$ac_try_echo") >&5
64160   (eval "$ac_link") 2>conftest.er1
64161   ac_status=$?
64162   grep -v '^ *+' conftest.er1 >conftest.err
64163   rm -f conftest.er1
64164   cat conftest.err >&5
64165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64166   (exit $ac_status); } && {
64167          test -z "$ac_c_werror_flag" ||
64168          test ! -s conftest.err
64169        } && test -s conftest$ac_exeext && {
64170          test "$cross_compiling" = yes ||
64171          $as_test_x conftest$ac_exeext
64172        }; then
64173   eval "$as_ac_var=yes"
64174 else
64175   $as_echo "$as_me: failed program was:" >&5
64176 sed 's/^/| /' conftest.$ac_ext >&5
64177
64178         eval "$as_ac_var=no"
64179 fi
64180
64181 rm -rf conftest.dSYM
64182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64183       conftest$ac_exeext conftest.$ac_ext
64184 fi
64185 ac_res=`eval 'as_val=${'$as_ac_var'}
64186                  $as_echo "$as_val"'`
64187                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64188 $as_echo "$ac_res" >&6; }
64189 as_val=`eval 'as_val=${'$as_ac_var'}
64190                  $as_echo "$as_val"'`
64191    if test "x$as_val" = x""yes; then
64192   cat >>confdefs.h <<_ACEOF
64193 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64194 _ACEOF
64195  ice_have_mktemp=yes
64196 fi
64197 done
64198
64199 if test "${ice_have_mktemp}" = yes; then
64200 { $as_echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
64201 $as_echo_n "checking for mktemp declaration in stdlib.h... " >&6; }
64202 if test "${ice_cv_have_mktemp_decl+set}" = set; then
64203   $as_echo_n "(cached) " >&6
64204 else
64205
64206 ice_cv_have_mktemp_decl=no
64207 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64208 ice_re_word='(^|[^a-zA-Z0-9_])'
64209 for header in stdlib.h; do
64210 # Check for ordinary declaration
64211 cat >conftest.$ac_ext <<_ACEOF
64212 /* confdefs.h.  */
64213 _ACEOF
64214 cat confdefs.h >>conftest.$ac_ext
64215 cat >>conftest.$ac_ext <<_ACEOF
64216 /* end confdefs.h.  */
64217 #include <$header>
64218
64219 _ACEOF
64220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64221   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then
64222   ice_cv_have_mktemp_decl=yes
64223 fi
64224 rm -f conftest*
64225
64226 if test "$ice_cv_have_mktemp_decl" = yes; then
64227         break
64228 fi
64229 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64230 cat >conftest.$ac_ext <<_ACEOF
64231 /* confdefs.h.  */
64232 _ACEOF
64233 cat confdefs.h >>conftest.$ac_ext
64234 cat >>conftest.$ac_ext <<_ACEOF
64235 /* end confdefs.h.  */
64236 #include <$header>
64237
64238 _ACEOF
64239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64240   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64241   ice_cv_have_mktemp_decl=yes
64242 fi
64243 rm -f conftest*
64244
64245 if test "$ice_cv_have_mktemp_decl" = yes; then
64246         break
64247 fi
64248 done
64249
64250 fi
64251
64252 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
64253 $as_echo "$ice_cv_have_mktemp_decl" >&6; }
64254 if test "$ice_cv_have_mktemp_decl" = yes; then
64255
64256 cat >>confdefs.h <<_ACEOF
64257 #define HAVE_MKTEMP_DECL 1
64258 _ACEOF
64259
64260 fi
64261 fi
64262
64263
64264 ice_have_mktime=no
64265
64266 for ac_func in mktime
64267 do
64268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64269 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64270 $as_echo_n "checking for $ac_func... " >&6; }
64271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64272   $as_echo_n "(cached) " >&6
64273 else
64274   cat >conftest.$ac_ext <<_ACEOF
64275 /* confdefs.h.  */
64276 _ACEOF
64277 cat confdefs.h >>conftest.$ac_ext
64278 cat >>conftest.$ac_ext <<_ACEOF
64279 /* end confdefs.h.  */
64280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64282 #define $ac_func innocuous_$ac_func
64283
64284 /* System header to define __stub macros and hopefully few prototypes,
64285     which can conflict with char $ac_func (); below.
64286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64287     <limits.h> exists even on freestanding compilers.  */
64288
64289 #ifdef __STDC__
64290 # include <limits.h>
64291 #else
64292 # include <assert.h>
64293 #endif
64294
64295 #undef $ac_func
64296
64297 /* Override any GCC internal prototype to avoid an error.
64298    Use char because int might match the return type of a GCC
64299    builtin and then its argument prototype would still apply.  */
64300 #ifdef __cplusplus
64301 extern "C"
64302 #endif
64303 char $ac_func ();
64304 /* The GNU C library defines this for functions which it implements
64305     to always fail with ENOSYS.  Some functions are actually named
64306     something starting with __ and the normal name is an alias.  */
64307 #if defined __stub_$ac_func || defined __stub___$ac_func
64308 choke me
64309 #endif
64310
64311 int
64312 main ()
64313 {
64314 return $ac_func ();
64315   ;
64316   return 0;
64317 }
64318 _ACEOF
64319 rm -f conftest.$ac_objext conftest$ac_exeext
64320 if { (ac_try="$ac_link"
64321 case "(($ac_try" in
64322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64323   *) ac_try_echo=$ac_try;;
64324 esac
64325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64326 $as_echo "$ac_try_echo") >&5
64327   (eval "$ac_link") 2>conftest.er1
64328   ac_status=$?
64329   grep -v '^ *+' conftest.er1 >conftest.err
64330   rm -f conftest.er1
64331   cat conftest.err >&5
64332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64333   (exit $ac_status); } && {
64334          test -z "$ac_c_werror_flag" ||
64335          test ! -s conftest.err
64336        } && test -s conftest$ac_exeext && {
64337          test "$cross_compiling" = yes ||
64338          $as_test_x conftest$ac_exeext
64339        }; then
64340   eval "$as_ac_var=yes"
64341 else
64342   $as_echo "$as_me: failed program was:" >&5
64343 sed 's/^/| /' conftest.$ac_ext >&5
64344
64345         eval "$as_ac_var=no"
64346 fi
64347
64348 rm -rf conftest.dSYM
64349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64350       conftest$ac_exeext conftest.$ac_ext
64351 fi
64352 ac_res=`eval 'as_val=${'$as_ac_var'}
64353                  $as_echo "$as_val"'`
64354                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64355 $as_echo "$ac_res" >&6; }
64356 as_val=`eval 'as_val=${'$as_ac_var'}
64357                  $as_echo "$as_val"'`
64358    if test "x$as_val" = x""yes; then
64359   cat >>confdefs.h <<_ACEOF
64360 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64361 _ACEOF
64362  ice_have_mktime=yes
64363 fi
64364 done
64365
64366 if test "${ice_have_mktime}" = yes; then
64367 { $as_echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
64368 $as_echo_n "checking for mktime declaration in time.h sys/time.h... " >&6; }
64369 if test "${ice_cv_have_mktime_decl+set}" = set; then
64370   $as_echo_n "(cached) " >&6
64371 else
64372
64373 ice_cv_have_mktime_decl=no
64374 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64375 ice_re_word='(^|[^a-zA-Z0-9_])'
64376 for header in time.h sys/time.h; do
64377 # Check for ordinary declaration
64378 cat >conftest.$ac_ext <<_ACEOF
64379 /* confdefs.h.  */
64380 _ACEOF
64381 cat confdefs.h >>conftest.$ac_ext
64382 cat >>conftest.$ac_ext <<_ACEOF
64383 /* end confdefs.h.  */
64384 #include <$header>
64385
64386 _ACEOF
64387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64388   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then
64389   ice_cv_have_mktime_decl=yes
64390 fi
64391 rm -f conftest*
64392
64393 if test "$ice_cv_have_mktime_decl" = yes; then
64394         break
64395 fi
64396 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64397 cat >conftest.$ac_ext <<_ACEOF
64398 /* confdefs.h.  */
64399 _ACEOF
64400 cat confdefs.h >>conftest.$ac_ext
64401 cat >>conftest.$ac_ext <<_ACEOF
64402 /* end confdefs.h.  */
64403 #include <$header>
64404
64405 _ACEOF
64406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64407   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64408   ice_cv_have_mktime_decl=yes
64409 fi
64410 rm -f conftest*
64411
64412 if test "$ice_cv_have_mktime_decl" = yes; then
64413         break
64414 fi
64415 done
64416
64417 fi
64418
64419 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
64420 $as_echo "$ice_cv_have_mktime_decl" >&6; }
64421 if test "$ice_cv_have_mktime_decl" = yes; then
64422
64423 cat >>confdefs.h <<_ACEOF
64424 #define HAVE_MKTIME_DECL 1
64425 _ACEOF
64426
64427 fi
64428 fi
64429
64430
64431 for ac_func in on_exit
64432 do
64433 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64434 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64435 $as_echo_n "checking for $ac_func... " >&6; }
64436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64437   $as_echo_n "(cached) " >&6
64438 else
64439   cat >conftest.$ac_ext <<_ACEOF
64440 /* confdefs.h.  */
64441 _ACEOF
64442 cat confdefs.h >>conftest.$ac_ext
64443 cat >>conftest.$ac_ext <<_ACEOF
64444 /* end confdefs.h.  */
64445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64447 #define $ac_func innocuous_$ac_func
64448
64449 /* System header to define __stub macros and hopefully few prototypes,
64450     which can conflict with char $ac_func (); below.
64451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64452     <limits.h> exists even on freestanding compilers.  */
64453
64454 #ifdef __STDC__
64455 # include <limits.h>
64456 #else
64457 # include <assert.h>
64458 #endif
64459
64460 #undef $ac_func
64461
64462 /* Override any GCC internal prototype to avoid an error.
64463    Use char because int might match the return type of a GCC
64464    builtin and then its argument prototype would still apply.  */
64465 #ifdef __cplusplus
64466 extern "C"
64467 #endif
64468 char $ac_func ();
64469 /* The GNU C library defines this for functions which it implements
64470     to always fail with ENOSYS.  Some functions are actually named
64471     something starting with __ and the normal name is an alias.  */
64472 #if defined __stub_$ac_func || defined __stub___$ac_func
64473 choke me
64474 #endif
64475
64476 int
64477 main ()
64478 {
64479 return $ac_func ();
64480   ;
64481   return 0;
64482 }
64483 _ACEOF
64484 rm -f conftest.$ac_objext conftest$ac_exeext
64485 if { (ac_try="$ac_link"
64486 case "(($ac_try" in
64487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64488   *) ac_try_echo=$ac_try;;
64489 esac
64490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64491 $as_echo "$ac_try_echo") >&5
64492   (eval "$ac_link") 2>conftest.er1
64493   ac_status=$?
64494   grep -v '^ *+' conftest.er1 >conftest.err
64495   rm -f conftest.er1
64496   cat conftest.err >&5
64497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64498   (exit $ac_status); } && {
64499          test -z "$ac_c_werror_flag" ||
64500          test ! -s conftest.err
64501        } && test -s conftest$ac_exeext && {
64502          test "$cross_compiling" = yes ||
64503          $as_test_x conftest$ac_exeext
64504        }; then
64505   eval "$as_ac_var=yes"
64506 else
64507   $as_echo "$as_me: failed program was:" >&5
64508 sed 's/^/| /' conftest.$ac_ext >&5
64509
64510         eval "$as_ac_var=no"
64511 fi
64512
64513 rm -rf conftest.dSYM
64514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64515       conftest$ac_exeext conftest.$ac_ext
64516 fi
64517 ac_res=`eval 'as_val=${'$as_ac_var'}
64518                  $as_echo "$as_val"'`
64519                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64520 $as_echo "$ac_res" >&6; }
64521 as_val=`eval 'as_val=${'$as_ac_var'}
64522                  $as_echo "$as_val"'`
64523    if test "x$as_val" = x""yes; then
64524   cat >>confdefs.h <<_ACEOF
64525 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64526 _ACEOF
64527
64528 fi
64529 done
64530
64531
64532 ice_have_openlog=no
64533
64534 for ac_func in openlog
64535 do
64536 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64537 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64538 $as_echo_n "checking for $ac_func... " >&6; }
64539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64540   $as_echo_n "(cached) " >&6
64541 else
64542   cat >conftest.$ac_ext <<_ACEOF
64543 /* confdefs.h.  */
64544 _ACEOF
64545 cat confdefs.h >>conftest.$ac_ext
64546 cat >>conftest.$ac_ext <<_ACEOF
64547 /* end confdefs.h.  */
64548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64550 #define $ac_func innocuous_$ac_func
64551
64552 /* System header to define __stub macros and hopefully few prototypes,
64553     which can conflict with char $ac_func (); below.
64554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64555     <limits.h> exists even on freestanding compilers.  */
64556
64557 #ifdef __STDC__
64558 # include <limits.h>
64559 #else
64560 # include <assert.h>
64561 #endif
64562
64563 #undef $ac_func
64564
64565 /* Override any GCC internal prototype to avoid an error.
64566    Use char because int might match the return type of a GCC
64567    builtin and then its argument prototype would still apply.  */
64568 #ifdef __cplusplus
64569 extern "C"
64570 #endif
64571 char $ac_func ();
64572 /* The GNU C library defines this for functions which it implements
64573     to always fail with ENOSYS.  Some functions are actually named
64574     something starting with __ and the normal name is an alias.  */
64575 #if defined __stub_$ac_func || defined __stub___$ac_func
64576 choke me
64577 #endif
64578
64579 int
64580 main ()
64581 {
64582 return $ac_func ();
64583   ;
64584   return 0;
64585 }
64586 _ACEOF
64587 rm -f conftest.$ac_objext conftest$ac_exeext
64588 if { (ac_try="$ac_link"
64589 case "(($ac_try" in
64590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64591   *) ac_try_echo=$ac_try;;
64592 esac
64593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64594 $as_echo "$ac_try_echo") >&5
64595   (eval "$ac_link") 2>conftest.er1
64596   ac_status=$?
64597   grep -v '^ *+' conftest.er1 >conftest.err
64598   rm -f conftest.er1
64599   cat conftest.err >&5
64600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64601   (exit $ac_status); } && {
64602          test -z "$ac_c_werror_flag" ||
64603          test ! -s conftest.err
64604        } && test -s conftest$ac_exeext && {
64605          test "$cross_compiling" = yes ||
64606          $as_test_x conftest$ac_exeext
64607        }; then
64608   eval "$as_ac_var=yes"
64609 else
64610   $as_echo "$as_me: failed program was:" >&5
64611 sed 's/^/| /' conftest.$ac_ext >&5
64612
64613         eval "$as_ac_var=no"
64614 fi
64615
64616 rm -rf conftest.dSYM
64617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64618       conftest$ac_exeext conftest.$ac_ext
64619 fi
64620 ac_res=`eval 'as_val=${'$as_ac_var'}
64621                  $as_echo "$as_val"'`
64622                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64623 $as_echo "$ac_res" >&6; }
64624 as_val=`eval 'as_val=${'$as_ac_var'}
64625                  $as_echo "$as_val"'`
64626    if test "x$as_val" = x""yes; then
64627   cat >>confdefs.h <<_ACEOF
64628 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64629 _ACEOF
64630  ice_have_openlog=yes
64631 fi
64632 done
64633
64634 if test "${ice_have_openlog}" = yes; then
64635 { $as_echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
64636 $as_echo_n "checking for openlog declaration in syslog.h... " >&6; }
64637 if test "${ice_cv_have_openlog_decl+set}" = set; then
64638   $as_echo_n "(cached) " >&6
64639 else
64640
64641 ice_cv_have_openlog_decl=no
64642 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64643 ice_re_word='(^|[^a-zA-Z0-9_])'
64644 for header in syslog.h; do
64645 # Check for ordinary declaration
64646 cat >conftest.$ac_ext <<_ACEOF
64647 /* confdefs.h.  */
64648 _ACEOF
64649 cat confdefs.h >>conftest.$ac_ext
64650 cat >>conftest.$ac_ext <<_ACEOF
64651 /* end confdefs.h.  */
64652 #include <$header>
64653
64654 _ACEOF
64655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64656   $EGREP "${ice_re_word}openlog[        ]*\(" >/dev/null 2>&1; then
64657   ice_cv_have_openlog_decl=yes
64658 fi
64659 rm -f conftest*
64660
64661 if test "$ice_cv_have_openlog_decl" = yes; then
64662         break
64663 fi
64664 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64665 cat >conftest.$ac_ext <<_ACEOF
64666 /* confdefs.h.  */
64667 _ACEOF
64668 cat confdefs.h >>conftest.$ac_ext
64669 cat >>conftest.$ac_ext <<_ACEOF
64670 /* end confdefs.h.  */
64671 #include <$header>
64672
64673 _ACEOF
64674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64675   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64676   ice_cv_have_openlog_decl=yes
64677 fi
64678 rm -f conftest*
64679
64680 if test "$ice_cv_have_openlog_decl" = yes; then
64681         break
64682 fi
64683 done
64684
64685 fi
64686
64687 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
64688 $as_echo "$ice_cv_have_openlog_decl" >&6; }
64689 if test "$ice_cv_have_openlog_decl" = yes; then
64690
64691 cat >>confdefs.h <<_ACEOF
64692 #define HAVE_OPENLOG_DECL 1
64693 _ACEOF
64694
64695 fi
64696 fi
64697
64698
64699 ice_have_pclose=no
64700
64701 for ac_func in pclose
64702 do
64703 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64704 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64705 $as_echo_n "checking for $ac_func... " >&6; }
64706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64707   $as_echo_n "(cached) " >&6
64708 else
64709   cat >conftest.$ac_ext <<_ACEOF
64710 /* confdefs.h.  */
64711 _ACEOF
64712 cat confdefs.h >>conftest.$ac_ext
64713 cat >>conftest.$ac_ext <<_ACEOF
64714 /* end confdefs.h.  */
64715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64717 #define $ac_func innocuous_$ac_func
64718
64719 /* System header to define __stub macros and hopefully few prototypes,
64720     which can conflict with char $ac_func (); below.
64721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64722     <limits.h> exists even on freestanding compilers.  */
64723
64724 #ifdef __STDC__
64725 # include <limits.h>
64726 #else
64727 # include <assert.h>
64728 #endif
64729
64730 #undef $ac_func
64731
64732 /* Override any GCC internal prototype to avoid an error.
64733    Use char because int might match the return type of a GCC
64734    builtin and then its argument prototype would still apply.  */
64735 #ifdef __cplusplus
64736 extern "C"
64737 #endif
64738 char $ac_func ();
64739 /* The GNU C library defines this for functions which it implements
64740     to always fail with ENOSYS.  Some functions are actually named
64741     something starting with __ and the normal name is an alias.  */
64742 #if defined __stub_$ac_func || defined __stub___$ac_func
64743 choke me
64744 #endif
64745
64746 int
64747 main ()
64748 {
64749 return $ac_func ();
64750   ;
64751   return 0;
64752 }
64753 _ACEOF
64754 rm -f conftest.$ac_objext conftest$ac_exeext
64755 if { (ac_try="$ac_link"
64756 case "(($ac_try" in
64757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64758   *) ac_try_echo=$ac_try;;
64759 esac
64760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64761 $as_echo "$ac_try_echo") >&5
64762   (eval "$ac_link") 2>conftest.er1
64763   ac_status=$?
64764   grep -v '^ *+' conftest.er1 >conftest.err
64765   rm -f conftest.er1
64766   cat conftest.err >&5
64767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64768   (exit $ac_status); } && {
64769          test -z "$ac_c_werror_flag" ||
64770          test ! -s conftest.err
64771        } && test -s conftest$ac_exeext && {
64772          test "$cross_compiling" = yes ||
64773          $as_test_x conftest$ac_exeext
64774        }; then
64775   eval "$as_ac_var=yes"
64776 else
64777   $as_echo "$as_me: failed program was:" >&5
64778 sed 's/^/| /' conftest.$ac_ext >&5
64779
64780         eval "$as_ac_var=no"
64781 fi
64782
64783 rm -rf conftest.dSYM
64784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64785       conftest$ac_exeext conftest.$ac_ext
64786 fi
64787 ac_res=`eval 'as_val=${'$as_ac_var'}
64788                  $as_echo "$as_val"'`
64789                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64790 $as_echo "$ac_res" >&6; }
64791 as_val=`eval 'as_val=${'$as_ac_var'}
64792                  $as_echo "$as_val"'`
64793    if test "x$as_val" = x""yes; then
64794   cat >>confdefs.h <<_ACEOF
64795 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64796 _ACEOF
64797  ice_have_pclose=yes
64798 fi
64799 done
64800
64801 if test "${ice_have_pclose}" = yes; then
64802 { $as_echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
64803 $as_echo_n "checking for pclose declaration in stdio.h... " >&6; }
64804 if test "${ice_cv_have_pclose_decl+set}" = set; then
64805   $as_echo_n "(cached) " >&6
64806 else
64807
64808 ice_cv_have_pclose_decl=no
64809 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64810 ice_re_word='(^|[^a-zA-Z0-9_])'
64811 for header in stdio.h; do
64812 # Check for ordinary declaration
64813 cat >conftest.$ac_ext <<_ACEOF
64814 /* confdefs.h.  */
64815 _ACEOF
64816 cat confdefs.h >>conftest.$ac_ext
64817 cat >>conftest.$ac_ext <<_ACEOF
64818 /* end confdefs.h.  */
64819 #include <$header>
64820
64821 _ACEOF
64822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64823   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then
64824   ice_cv_have_pclose_decl=yes
64825 fi
64826 rm -f conftest*
64827
64828 if test "$ice_cv_have_pclose_decl" = yes; then
64829         break
64830 fi
64831 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64832 cat >conftest.$ac_ext <<_ACEOF
64833 /* confdefs.h.  */
64834 _ACEOF
64835 cat confdefs.h >>conftest.$ac_ext
64836 cat >>conftest.$ac_ext <<_ACEOF
64837 /* end confdefs.h.  */
64838 #include <$header>
64839
64840 _ACEOF
64841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64842   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64843   ice_cv_have_pclose_decl=yes
64844 fi
64845 rm -f conftest*
64846
64847 if test "$ice_cv_have_pclose_decl" = yes; then
64848         break
64849 fi
64850 done
64851
64852 fi
64853
64854 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
64855 $as_echo "$ice_cv_have_pclose_decl" >&6; }
64856 if test "$ice_cv_have_pclose_decl" = yes; then
64857
64858 cat >>confdefs.h <<_ACEOF
64859 #define HAVE_PCLOSE_DECL 1
64860 _ACEOF
64861
64862 fi
64863 fi
64864
64865
64866 ice_have_perror=no
64867
64868 for ac_func in perror
64869 do
64870 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64871 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64872 $as_echo_n "checking for $ac_func... " >&6; }
64873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64874   $as_echo_n "(cached) " >&6
64875 else
64876   cat >conftest.$ac_ext <<_ACEOF
64877 /* confdefs.h.  */
64878 _ACEOF
64879 cat confdefs.h >>conftest.$ac_ext
64880 cat >>conftest.$ac_ext <<_ACEOF
64881 /* end confdefs.h.  */
64882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64884 #define $ac_func innocuous_$ac_func
64885
64886 /* System header to define __stub macros and hopefully few prototypes,
64887     which can conflict with char $ac_func (); below.
64888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64889     <limits.h> exists even on freestanding compilers.  */
64890
64891 #ifdef __STDC__
64892 # include <limits.h>
64893 #else
64894 # include <assert.h>
64895 #endif
64896
64897 #undef $ac_func
64898
64899 /* Override any GCC internal prototype to avoid an error.
64900    Use char because int might match the return type of a GCC
64901    builtin and then its argument prototype would still apply.  */
64902 #ifdef __cplusplus
64903 extern "C"
64904 #endif
64905 char $ac_func ();
64906 /* The GNU C library defines this for functions which it implements
64907     to always fail with ENOSYS.  Some functions are actually named
64908     something starting with __ and the normal name is an alias.  */
64909 #if defined __stub_$ac_func || defined __stub___$ac_func
64910 choke me
64911 #endif
64912
64913 int
64914 main ()
64915 {
64916 return $ac_func ();
64917   ;
64918   return 0;
64919 }
64920 _ACEOF
64921 rm -f conftest.$ac_objext conftest$ac_exeext
64922 if { (ac_try="$ac_link"
64923 case "(($ac_try" in
64924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64925   *) ac_try_echo=$ac_try;;
64926 esac
64927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64928 $as_echo "$ac_try_echo") >&5
64929   (eval "$ac_link") 2>conftest.er1
64930   ac_status=$?
64931   grep -v '^ *+' conftest.er1 >conftest.err
64932   rm -f conftest.er1
64933   cat conftest.err >&5
64934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64935   (exit $ac_status); } && {
64936          test -z "$ac_c_werror_flag" ||
64937          test ! -s conftest.err
64938        } && test -s conftest$ac_exeext && {
64939          test "$cross_compiling" = yes ||
64940          $as_test_x conftest$ac_exeext
64941        }; then
64942   eval "$as_ac_var=yes"
64943 else
64944   $as_echo "$as_me: failed program was:" >&5
64945 sed 's/^/| /' conftest.$ac_ext >&5
64946
64947         eval "$as_ac_var=no"
64948 fi
64949
64950 rm -rf conftest.dSYM
64951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64952       conftest$ac_exeext conftest.$ac_ext
64953 fi
64954 ac_res=`eval 'as_val=${'$as_ac_var'}
64955                  $as_echo "$as_val"'`
64956                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64957 $as_echo "$ac_res" >&6; }
64958 as_val=`eval 'as_val=${'$as_ac_var'}
64959                  $as_echo "$as_val"'`
64960    if test "x$as_val" = x""yes; then
64961   cat >>confdefs.h <<_ACEOF
64962 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64963 _ACEOF
64964  ice_have_perror=yes
64965 fi
64966 done
64967
64968 if test "${ice_have_perror}" = yes; then
64969 { $as_echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
64970 $as_echo_n "checking for perror declaration in stdio.h... " >&6; }
64971 if test "${ice_cv_have_perror_decl+set}" = set; then
64972   $as_echo_n "(cached) " >&6
64973 else
64974
64975 ice_cv_have_perror_decl=no
64976 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64977 ice_re_word='(^|[^a-zA-Z0-9_])'
64978 for header in stdio.h; do
64979 # Check for ordinary declaration
64980 cat >conftest.$ac_ext <<_ACEOF
64981 /* confdefs.h.  */
64982 _ACEOF
64983 cat confdefs.h >>conftest.$ac_ext
64984 cat >>conftest.$ac_ext <<_ACEOF
64985 /* end confdefs.h.  */
64986 #include <$header>
64987
64988 _ACEOF
64989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64990   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then
64991   ice_cv_have_perror_decl=yes
64992 fi
64993 rm -f conftest*
64994
64995 if test "$ice_cv_have_perror_decl" = yes; then
64996         break
64997 fi
64998 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64999 cat >conftest.$ac_ext <<_ACEOF
65000 /* confdefs.h.  */
65001 _ACEOF
65002 cat confdefs.h >>conftest.$ac_ext
65003 cat >>conftest.$ac_ext <<_ACEOF
65004 /* end confdefs.h.  */
65005 #include <$header>
65006
65007 _ACEOF
65008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65009   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65010   ice_cv_have_perror_decl=yes
65011 fi
65012 rm -f conftest*
65013
65014 if test "$ice_cv_have_perror_decl" = yes; then
65015         break
65016 fi
65017 done
65018
65019 fi
65020
65021 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
65022 $as_echo "$ice_cv_have_perror_decl" >&6; }
65023 if test "$ice_cv_have_perror_decl" = yes; then
65024
65025 cat >>confdefs.h <<_ACEOF
65026 #define HAVE_PERROR_DECL 1
65027 _ACEOF
65028
65029 fi
65030 fi
65031
65032
65033 ice_have_printf=no
65034
65035 for ac_func in printf
65036 do
65037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65038 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65039 $as_echo_n "checking for $ac_func... " >&6; }
65040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65041   $as_echo_n "(cached) " >&6
65042 else
65043   cat >conftest.$ac_ext <<_ACEOF
65044 /* confdefs.h.  */
65045 _ACEOF
65046 cat confdefs.h >>conftest.$ac_ext
65047 cat >>conftest.$ac_ext <<_ACEOF
65048 /* end confdefs.h.  */
65049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65051 #define $ac_func innocuous_$ac_func
65052
65053 /* System header to define __stub macros and hopefully few prototypes,
65054     which can conflict with char $ac_func (); below.
65055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65056     <limits.h> exists even on freestanding compilers.  */
65057
65058 #ifdef __STDC__
65059 # include <limits.h>
65060 #else
65061 # include <assert.h>
65062 #endif
65063
65064 #undef $ac_func
65065
65066 /* Override any GCC internal prototype to avoid an error.
65067    Use char because int might match the return type of a GCC
65068    builtin and then its argument prototype would still apply.  */
65069 #ifdef __cplusplus
65070 extern "C"
65071 #endif
65072 char $ac_func ();
65073 /* The GNU C library defines this for functions which it implements
65074     to always fail with ENOSYS.  Some functions are actually named
65075     something starting with __ and the normal name is an alias.  */
65076 #if defined __stub_$ac_func || defined __stub___$ac_func
65077 choke me
65078 #endif
65079
65080 int
65081 main ()
65082 {
65083 return $ac_func ();
65084   ;
65085   return 0;
65086 }
65087 _ACEOF
65088 rm -f conftest.$ac_objext conftest$ac_exeext
65089 if { (ac_try="$ac_link"
65090 case "(($ac_try" in
65091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65092   *) ac_try_echo=$ac_try;;
65093 esac
65094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65095 $as_echo "$ac_try_echo") >&5
65096   (eval "$ac_link") 2>conftest.er1
65097   ac_status=$?
65098   grep -v '^ *+' conftest.er1 >conftest.err
65099   rm -f conftest.er1
65100   cat conftest.err >&5
65101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65102   (exit $ac_status); } && {
65103          test -z "$ac_c_werror_flag" ||
65104          test ! -s conftest.err
65105        } && test -s conftest$ac_exeext && {
65106          test "$cross_compiling" = yes ||
65107          $as_test_x conftest$ac_exeext
65108        }; then
65109   eval "$as_ac_var=yes"
65110 else
65111   $as_echo "$as_me: failed program was:" >&5
65112 sed 's/^/| /' conftest.$ac_ext >&5
65113
65114         eval "$as_ac_var=no"
65115 fi
65116
65117 rm -rf conftest.dSYM
65118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65119       conftest$ac_exeext conftest.$ac_ext
65120 fi
65121 ac_res=`eval 'as_val=${'$as_ac_var'}
65122                  $as_echo "$as_val"'`
65123                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65124 $as_echo "$ac_res" >&6; }
65125 as_val=`eval 'as_val=${'$as_ac_var'}
65126                  $as_echo "$as_val"'`
65127    if test "x$as_val" = x""yes; then
65128   cat >>confdefs.h <<_ACEOF
65129 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65130 _ACEOF
65131  ice_have_printf=yes
65132 fi
65133 done
65134
65135 if test "${ice_have_printf}" = yes; then
65136 { $as_echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
65137 $as_echo_n "checking for printf declaration in stdio.h... " >&6; }
65138 if test "${ice_cv_have_printf_decl+set}" = set; then
65139   $as_echo_n "(cached) " >&6
65140 else
65141
65142 ice_cv_have_printf_decl=no
65143 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65144 ice_re_word='(^|[^a-zA-Z0-9_])'
65145 for header in stdio.h; do
65146 # Check for ordinary declaration
65147 cat >conftest.$ac_ext <<_ACEOF
65148 /* confdefs.h.  */
65149 _ACEOF
65150 cat confdefs.h >>conftest.$ac_ext
65151 cat >>conftest.$ac_ext <<_ACEOF
65152 /* end confdefs.h.  */
65153 #include <$header>
65154
65155 _ACEOF
65156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65157   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then
65158   ice_cv_have_printf_decl=yes
65159 fi
65160 rm -f conftest*
65161
65162 if test "$ice_cv_have_printf_decl" = yes; then
65163         break
65164 fi
65165 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65166 cat >conftest.$ac_ext <<_ACEOF
65167 /* confdefs.h.  */
65168 _ACEOF
65169 cat confdefs.h >>conftest.$ac_ext
65170 cat >>conftest.$ac_ext <<_ACEOF
65171 /* end confdefs.h.  */
65172 #include <$header>
65173
65174 _ACEOF
65175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65176   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65177   ice_cv_have_printf_decl=yes
65178 fi
65179 rm -f conftest*
65180
65181 if test "$ice_cv_have_printf_decl" = yes; then
65182         break
65183 fi
65184 done
65185
65186 fi
65187
65188 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
65189 $as_echo "$ice_cv_have_printf_decl" >&6; }
65190 if test "$ice_cv_have_printf_decl" = yes; then
65191
65192 cat >>confdefs.h <<_ACEOF
65193 #define HAVE_PRINTF_DECL 1
65194 _ACEOF
65195
65196 fi
65197 fi
65198
65199
65200 for ac_func in putenv
65201 do
65202 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65203 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65204 $as_echo_n "checking for $ac_func... " >&6; }
65205 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65206   $as_echo_n "(cached) " >&6
65207 else
65208   cat >conftest.$ac_ext <<_ACEOF
65209 /* confdefs.h.  */
65210 _ACEOF
65211 cat confdefs.h >>conftest.$ac_ext
65212 cat >>conftest.$ac_ext <<_ACEOF
65213 /* end confdefs.h.  */
65214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65216 #define $ac_func innocuous_$ac_func
65217
65218 /* System header to define __stub macros and hopefully few prototypes,
65219     which can conflict with char $ac_func (); below.
65220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65221     <limits.h> exists even on freestanding compilers.  */
65222
65223 #ifdef __STDC__
65224 # include <limits.h>
65225 #else
65226 # include <assert.h>
65227 #endif
65228
65229 #undef $ac_func
65230
65231 /* Override any GCC internal prototype to avoid an error.
65232    Use char because int might match the return type of a GCC
65233    builtin and then its argument prototype would still apply.  */
65234 #ifdef __cplusplus
65235 extern "C"
65236 #endif
65237 char $ac_func ();
65238 /* The GNU C library defines this for functions which it implements
65239     to always fail with ENOSYS.  Some functions are actually named
65240     something starting with __ and the normal name is an alias.  */
65241 #if defined __stub_$ac_func || defined __stub___$ac_func
65242 choke me
65243 #endif
65244
65245 int
65246 main ()
65247 {
65248 return $ac_func ();
65249   ;
65250   return 0;
65251 }
65252 _ACEOF
65253 rm -f conftest.$ac_objext conftest$ac_exeext
65254 if { (ac_try="$ac_link"
65255 case "(($ac_try" in
65256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65257   *) ac_try_echo=$ac_try;;
65258 esac
65259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65260 $as_echo "$ac_try_echo") >&5
65261   (eval "$ac_link") 2>conftest.er1
65262   ac_status=$?
65263   grep -v '^ *+' conftest.er1 >conftest.err
65264   rm -f conftest.er1
65265   cat conftest.err >&5
65266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65267   (exit $ac_status); } && {
65268          test -z "$ac_c_werror_flag" ||
65269          test ! -s conftest.err
65270        } && test -s conftest$ac_exeext && {
65271          test "$cross_compiling" = yes ||
65272          $as_test_x conftest$ac_exeext
65273        }; then
65274   eval "$as_ac_var=yes"
65275 else
65276   $as_echo "$as_me: failed program was:" >&5
65277 sed 's/^/| /' conftest.$ac_ext >&5
65278
65279         eval "$as_ac_var=no"
65280 fi
65281
65282 rm -rf conftest.dSYM
65283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65284       conftest$ac_exeext conftest.$ac_ext
65285 fi
65286 ac_res=`eval 'as_val=${'$as_ac_var'}
65287                  $as_echo "$as_val"'`
65288                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65289 $as_echo "$ac_res" >&6; }
65290 as_val=`eval 'as_val=${'$as_ac_var'}
65291                  $as_echo "$as_val"'`
65292    if test "x$as_val" = x""yes; then
65293   cat >>confdefs.h <<_ACEOF
65294 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65295 _ACEOF
65296
65297 fi
65298 done
65299
65300
65301 ice_have_puts=no
65302
65303 for ac_func in puts
65304 do
65305 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65306 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65307 $as_echo_n "checking for $ac_func... " >&6; }
65308 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65309   $as_echo_n "(cached) " >&6
65310 else
65311   cat >conftest.$ac_ext <<_ACEOF
65312 /* confdefs.h.  */
65313 _ACEOF
65314 cat confdefs.h >>conftest.$ac_ext
65315 cat >>conftest.$ac_ext <<_ACEOF
65316 /* end confdefs.h.  */
65317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65318    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65319 #define $ac_func innocuous_$ac_func
65320
65321 /* System header to define __stub macros and hopefully few prototypes,
65322     which can conflict with char $ac_func (); below.
65323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65324     <limits.h> exists even on freestanding compilers.  */
65325
65326 #ifdef __STDC__
65327 # include <limits.h>
65328 #else
65329 # include <assert.h>
65330 #endif
65331
65332 #undef $ac_func
65333
65334 /* Override any GCC internal prototype to avoid an error.
65335    Use char because int might match the return type of a GCC
65336    builtin and then its argument prototype would still apply.  */
65337 #ifdef __cplusplus
65338 extern "C"
65339 #endif
65340 char $ac_func ();
65341 /* The GNU C library defines this for functions which it implements
65342     to always fail with ENOSYS.  Some functions are actually named
65343     something starting with __ and the normal name is an alias.  */
65344 #if defined __stub_$ac_func || defined __stub___$ac_func
65345 choke me
65346 #endif
65347
65348 int
65349 main ()
65350 {
65351 return $ac_func ();
65352   ;
65353   return 0;
65354 }
65355 _ACEOF
65356 rm -f conftest.$ac_objext conftest$ac_exeext
65357 if { (ac_try="$ac_link"
65358 case "(($ac_try" in
65359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65360   *) ac_try_echo=$ac_try;;
65361 esac
65362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65363 $as_echo "$ac_try_echo") >&5
65364   (eval "$ac_link") 2>conftest.er1
65365   ac_status=$?
65366   grep -v '^ *+' conftest.er1 >conftest.err
65367   rm -f conftest.er1
65368   cat conftest.err >&5
65369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65370   (exit $ac_status); } && {
65371          test -z "$ac_c_werror_flag" ||
65372          test ! -s conftest.err
65373        } && test -s conftest$ac_exeext && {
65374          test "$cross_compiling" = yes ||
65375          $as_test_x conftest$ac_exeext
65376        }; then
65377   eval "$as_ac_var=yes"
65378 else
65379   $as_echo "$as_me: failed program was:" >&5
65380 sed 's/^/| /' conftest.$ac_ext >&5
65381
65382         eval "$as_ac_var=no"
65383 fi
65384
65385 rm -rf conftest.dSYM
65386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65387       conftest$ac_exeext conftest.$ac_ext
65388 fi
65389 ac_res=`eval 'as_val=${'$as_ac_var'}
65390                  $as_echo "$as_val"'`
65391                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65392 $as_echo "$ac_res" >&6; }
65393 as_val=`eval 'as_val=${'$as_ac_var'}
65394                  $as_echo "$as_val"'`
65395    if test "x$as_val" = x""yes; then
65396   cat >>confdefs.h <<_ACEOF
65397 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65398 _ACEOF
65399  ice_have_puts=yes
65400 fi
65401 done
65402
65403 if test "${ice_have_puts}" = yes; then
65404 { $as_echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
65405 $as_echo_n "checking for puts declaration in stdio.h... " >&6; }
65406 if test "${ice_cv_have_puts_decl+set}" = set; then
65407   $as_echo_n "(cached) " >&6
65408 else
65409
65410 ice_cv_have_puts_decl=no
65411 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65412 ice_re_word='(^|[^a-zA-Z0-9_])'
65413 for header in stdio.h; do
65414 # Check for ordinary declaration
65415 cat >conftest.$ac_ext <<_ACEOF
65416 /* confdefs.h.  */
65417 _ACEOF
65418 cat confdefs.h >>conftest.$ac_ext
65419 cat >>conftest.$ac_ext <<_ACEOF
65420 /* end confdefs.h.  */
65421 #include <$header>
65422
65423 _ACEOF
65424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65425   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then
65426   ice_cv_have_puts_decl=yes
65427 fi
65428 rm -f conftest*
65429
65430 if test "$ice_cv_have_puts_decl" = yes; then
65431         break
65432 fi
65433 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65434 cat >conftest.$ac_ext <<_ACEOF
65435 /* confdefs.h.  */
65436 _ACEOF
65437 cat confdefs.h >>conftest.$ac_ext
65438 cat >>conftest.$ac_ext <<_ACEOF
65439 /* end confdefs.h.  */
65440 #include <$header>
65441
65442 _ACEOF
65443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65444   $EGREP "${ice_re_word}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65445   ice_cv_have_puts_decl=yes
65446 fi
65447 rm -f conftest*
65448
65449 if test "$ice_cv_have_puts_decl" = yes; then
65450         break
65451 fi
65452 done
65453
65454 fi
65455
65456 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
65457 $as_echo "$ice_cv_have_puts_decl" >&6; }
65458 if test "$ice_cv_have_puts_decl" = yes; then
65459
65460 cat >>confdefs.h <<_ACEOF
65461 #define HAVE_PUTS_DECL 1
65462 _ACEOF
65463
65464 fi
65465 fi
65466
65467
65468 ice_have_realloc=no
65469
65470 for ac_func in realloc
65471 do
65472 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65473 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65474 $as_echo_n "checking for $ac_func... " >&6; }
65475 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65476   $as_echo_n "(cached) " >&6
65477 else
65478   cat >conftest.$ac_ext <<_ACEOF
65479 /* confdefs.h.  */
65480 _ACEOF
65481 cat confdefs.h >>conftest.$ac_ext
65482 cat >>conftest.$ac_ext <<_ACEOF
65483 /* end confdefs.h.  */
65484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65486 #define $ac_func innocuous_$ac_func
65487
65488 /* System header to define __stub macros and hopefully few prototypes,
65489     which can conflict with char $ac_func (); below.
65490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65491     <limits.h> exists even on freestanding compilers.  */
65492
65493 #ifdef __STDC__
65494 # include <limits.h>
65495 #else
65496 # include <assert.h>
65497 #endif
65498
65499 #undef $ac_func
65500
65501 /* Override any GCC internal prototype to avoid an error.
65502    Use char because int might match the return type of a GCC
65503    builtin and then its argument prototype would still apply.  */
65504 #ifdef __cplusplus
65505 extern "C"
65506 #endif
65507 char $ac_func ();
65508 /* The GNU C library defines this for functions which it implements
65509     to always fail with ENOSYS.  Some functions are actually named
65510     something starting with __ and the normal name is an alias.  */
65511 #if defined __stub_$ac_func || defined __stub___$ac_func
65512 choke me
65513 #endif
65514
65515 int
65516 main ()
65517 {
65518 return $ac_func ();
65519   ;
65520   return 0;
65521 }
65522 _ACEOF
65523 rm -f conftest.$ac_objext conftest$ac_exeext
65524 if { (ac_try="$ac_link"
65525 case "(($ac_try" in
65526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65527   *) ac_try_echo=$ac_try;;
65528 esac
65529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65530 $as_echo "$ac_try_echo") >&5
65531   (eval "$ac_link") 2>conftest.er1
65532   ac_status=$?
65533   grep -v '^ *+' conftest.er1 >conftest.err
65534   rm -f conftest.er1
65535   cat conftest.err >&5
65536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65537   (exit $ac_status); } && {
65538          test -z "$ac_c_werror_flag" ||
65539          test ! -s conftest.err
65540        } && test -s conftest$ac_exeext && {
65541          test "$cross_compiling" = yes ||
65542          $as_test_x conftest$ac_exeext
65543        }; then
65544   eval "$as_ac_var=yes"
65545 else
65546   $as_echo "$as_me: failed program was:" >&5
65547 sed 's/^/| /' conftest.$ac_ext >&5
65548
65549         eval "$as_ac_var=no"
65550 fi
65551
65552 rm -rf conftest.dSYM
65553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65554       conftest$ac_exeext conftest.$ac_ext
65555 fi
65556 ac_res=`eval 'as_val=${'$as_ac_var'}
65557                  $as_echo "$as_val"'`
65558                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65559 $as_echo "$ac_res" >&6; }
65560 as_val=`eval 'as_val=${'$as_ac_var'}
65561                  $as_echo "$as_val"'`
65562    if test "x$as_val" = x""yes; then
65563   cat >>confdefs.h <<_ACEOF
65564 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65565 _ACEOF
65566  ice_have_realloc=yes
65567 fi
65568 done
65569
65570 if test "${ice_have_realloc}" = yes; then
65571 { $as_echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
65572 $as_echo_n "checking for realloc declaration in stdlib.h... " >&6; }
65573 if test "${ice_cv_have_realloc_decl+set}" = set; then
65574   $as_echo_n "(cached) " >&6
65575 else
65576
65577 ice_cv_have_realloc_decl=no
65578 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65579 ice_re_word='(^|[^a-zA-Z0-9_])'
65580 for header in stdlib.h; do
65581 # Check for ordinary declaration
65582 cat >conftest.$ac_ext <<_ACEOF
65583 /* confdefs.h.  */
65584 _ACEOF
65585 cat confdefs.h >>conftest.$ac_ext
65586 cat >>conftest.$ac_ext <<_ACEOF
65587 /* end confdefs.h.  */
65588 #include <$header>
65589
65590 _ACEOF
65591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65592   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then
65593   ice_cv_have_realloc_decl=yes
65594 fi
65595 rm -f conftest*
65596
65597 if test "$ice_cv_have_realloc_decl" = yes; then
65598         break
65599 fi
65600 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65601 cat >conftest.$ac_ext <<_ACEOF
65602 /* confdefs.h.  */
65603 _ACEOF
65604 cat confdefs.h >>conftest.$ac_ext
65605 cat >>conftest.$ac_ext <<_ACEOF
65606 /* end confdefs.h.  */
65607 #include <$header>
65608
65609 _ACEOF
65610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65611   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65612   ice_cv_have_realloc_decl=yes
65613 fi
65614 rm -f conftest*
65615
65616 if test "$ice_cv_have_realloc_decl" = yes; then
65617         break
65618 fi
65619 done
65620
65621 fi
65622
65623 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
65624 $as_echo "$ice_cv_have_realloc_decl" >&6; }
65625 if test "$ice_cv_have_realloc_decl" = yes; then
65626
65627 cat >>confdefs.h <<_ACEOF
65628 #define HAVE_REALLOC_DECL 1
65629 _ACEOF
65630
65631 fi
65632 fi
65633
65634
65635 ice_have_recvfrom=no
65636
65637 for ac_func in recvfrom
65638 do
65639 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65640 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65641 $as_echo_n "checking for $ac_func... " >&6; }
65642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65643   $as_echo_n "(cached) " >&6
65644 else
65645   cat >conftest.$ac_ext <<_ACEOF
65646 /* confdefs.h.  */
65647 _ACEOF
65648 cat confdefs.h >>conftest.$ac_ext
65649 cat >>conftest.$ac_ext <<_ACEOF
65650 /* end confdefs.h.  */
65651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65653 #define $ac_func innocuous_$ac_func
65654
65655 /* System header to define __stub macros and hopefully few prototypes,
65656     which can conflict with char $ac_func (); below.
65657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65658     <limits.h> exists even on freestanding compilers.  */
65659
65660 #ifdef __STDC__
65661 # include <limits.h>
65662 #else
65663 # include <assert.h>
65664 #endif
65665
65666 #undef $ac_func
65667
65668 /* Override any GCC internal prototype to avoid an error.
65669    Use char because int might match the return type of a GCC
65670    builtin and then its argument prototype would still apply.  */
65671 #ifdef __cplusplus
65672 extern "C"
65673 #endif
65674 char $ac_func ();
65675 /* The GNU C library defines this for functions which it implements
65676     to always fail with ENOSYS.  Some functions are actually named
65677     something starting with __ and the normal name is an alias.  */
65678 #if defined __stub_$ac_func || defined __stub___$ac_func
65679 choke me
65680 #endif
65681
65682 int
65683 main ()
65684 {
65685 return $ac_func ();
65686   ;
65687   return 0;
65688 }
65689 _ACEOF
65690 rm -f conftest.$ac_objext conftest$ac_exeext
65691 if { (ac_try="$ac_link"
65692 case "(($ac_try" in
65693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65694   *) ac_try_echo=$ac_try;;
65695 esac
65696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65697 $as_echo "$ac_try_echo") >&5
65698   (eval "$ac_link") 2>conftest.er1
65699   ac_status=$?
65700   grep -v '^ *+' conftest.er1 >conftest.err
65701   rm -f conftest.er1
65702   cat conftest.err >&5
65703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65704   (exit $ac_status); } && {
65705          test -z "$ac_c_werror_flag" ||
65706          test ! -s conftest.err
65707        } && test -s conftest$ac_exeext && {
65708          test "$cross_compiling" = yes ||
65709          $as_test_x conftest$ac_exeext
65710        }; then
65711   eval "$as_ac_var=yes"
65712 else
65713   $as_echo "$as_me: failed program was:" >&5
65714 sed 's/^/| /' conftest.$ac_ext >&5
65715
65716         eval "$as_ac_var=no"
65717 fi
65718
65719 rm -rf conftest.dSYM
65720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65721       conftest$ac_exeext conftest.$ac_ext
65722 fi
65723 ac_res=`eval 'as_val=${'$as_ac_var'}
65724                  $as_echo "$as_val"'`
65725                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65726 $as_echo "$ac_res" >&6; }
65727 as_val=`eval 'as_val=${'$as_ac_var'}
65728                  $as_echo "$as_val"'`
65729    if test "x$as_val" = x""yes; then
65730   cat >>confdefs.h <<_ACEOF
65731 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65732 _ACEOF
65733  ice_have_recvfrom=yes
65734 fi
65735 done
65736
65737 if test "${ice_have_recvfrom}" = yes; then
65738 { $as_echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
65739 $as_echo_n "checking for recvfrom declaration in sys/types.h sys/socket.h... " >&6; }
65740 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
65741   $as_echo_n "(cached) " >&6
65742 else
65743
65744 ice_cv_have_recvfrom_decl=no
65745 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65746 ice_re_word='(^|[^a-zA-Z0-9_])'
65747 for header in sys/types.h sys/socket.h; do
65748 # Check for ordinary declaration
65749 cat >conftest.$ac_ext <<_ACEOF
65750 /* confdefs.h.  */
65751 _ACEOF
65752 cat confdefs.h >>conftest.$ac_ext
65753 cat >>conftest.$ac_ext <<_ACEOF
65754 /* end confdefs.h.  */
65755 #include <$header>
65756
65757 _ACEOF
65758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65759   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then
65760   ice_cv_have_recvfrom_decl=yes
65761 fi
65762 rm -f conftest*
65763
65764 if test "$ice_cv_have_recvfrom_decl" = yes; then
65765         break
65766 fi
65767 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65768 cat >conftest.$ac_ext <<_ACEOF
65769 /* confdefs.h.  */
65770 _ACEOF
65771 cat confdefs.h >>conftest.$ac_ext
65772 cat >>conftest.$ac_ext <<_ACEOF
65773 /* end confdefs.h.  */
65774 #include <$header>
65775
65776 _ACEOF
65777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65778   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65779   ice_cv_have_recvfrom_decl=yes
65780 fi
65781 rm -f conftest*
65782
65783 if test "$ice_cv_have_recvfrom_decl" = yes; then
65784         break
65785 fi
65786 done
65787
65788 fi
65789
65790 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
65791 $as_echo "$ice_cv_have_recvfrom_decl" >&6; }
65792 if test "$ice_cv_have_recvfrom_decl" = yes; then
65793
65794 cat >>confdefs.h <<_ACEOF
65795 #define HAVE_RECVFROM_DECL 1
65796 _ACEOF
65797
65798 fi
65799 fi
65800
65801
65802 ice_have_remove=no
65803
65804 for ac_func in remove
65805 do
65806 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65807 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65808 $as_echo_n "checking for $ac_func... " >&6; }
65809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65810   $as_echo_n "(cached) " >&6
65811 else
65812   cat >conftest.$ac_ext <<_ACEOF
65813 /* confdefs.h.  */
65814 _ACEOF
65815 cat confdefs.h >>conftest.$ac_ext
65816 cat >>conftest.$ac_ext <<_ACEOF
65817 /* end confdefs.h.  */
65818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65820 #define $ac_func innocuous_$ac_func
65821
65822 /* System header to define __stub macros and hopefully few prototypes,
65823     which can conflict with char $ac_func (); below.
65824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65825     <limits.h> exists even on freestanding compilers.  */
65826
65827 #ifdef __STDC__
65828 # include <limits.h>
65829 #else
65830 # include <assert.h>
65831 #endif
65832
65833 #undef $ac_func
65834
65835 /* Override any GCC internal prototype to avoid an error.
65836    Use char because int might match the return type of a GCC
65837    builtin and then its argument prototype would still apply.  */
65838 #ifdef __cplusplus
65839 extern "C"
65840 #endif
65841 char $ac_func ();
65842 /* The GNU C library defines this for functions which it implements
65843     to always fail with ENOSYS.  Some functions are actually named
65844     something starting with __ and the normal name is an alias.  */
65845 #if defined __stub_$ac_func || defined __stub___$ac_func
65846 choke me
65847 #endif
65848
65849 int
65850 main ()
65851 {
65852 return $ac_func ();
65853   ;
65854   return 0;
65855 }
65856 _ACEOF
65857 rm -f conftest.$ac_objext conftest$ac_exeext
65858 if { (ac_try="$ac_link"
65859 case "(($ac_try" in
65860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65861   *) ac_try_echo=$ac_try;;
65862 esac
65863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65864 $as_echo "$ac_try_echo") >&5
65865   (eval "$ac_link") 2>conftest.er1
65866   ac_status=$?
65867   grep -v '^ *+' conftest.er1 >conftest.err
65868   rm -f conftest.er1
65869   cat conftest.err >&5
65870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65871   (exit $ac_status); } && {
65872          test -z "$ac_c_werror_flag" ||
65873          test ! -s conftest.err
65874        } && test -s conftest$ac_exeext && {
65875          test "$cross_compiling" = yes ||
65876          $as_test_x conftest$ac_exeext
65877        }; then
65878   eval "$as_ac_var=yes"
65879 else
65880   $as_echo "$as_me: failed program was:" >&5
65881 sed 's/^/| /' conftest.$ac_ext >&5
65882
65883         eval "$as_ac_var=no"
65884 fi
65885
65886 rm -rf conftest.dSYM
65887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65888       conftest$ac_exeext conftest.$ac_ext
65889 fi
65890 ac_res=`eval 'as_val=${'$as_ac_var'}
65891                  $as_echo "$as_val"'`
65892                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65893 $as_echo "$ac_res" >&6; }
65894 as_val=`eval 'as_val=${'$as_ac_var'}
65895                  $as_echo "$as_val"'`
65896    if test "x$as_val" = x""yes; then
65897   cat >>confdefs.h <<_ACEOF
65898 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65899 _ACEOF
65900  ice_have_remove=yes
65901 fi
65902 done
65903
65904 if test "${ice_have_remove}" = yes; then
65905 { $as_echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
65906 $as_echo_n "checking for remove declaration in stdio.h... " >&6; }
65907 if test "${ice_cv_have_remove_decl+set}" = set; then
65908   $as_echo_n "(cached) " >&6
65909 else
65910
65911 ice_cv_have_remove_decl=no
65912 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65913 ice_re_word='(^|[^a-zA-Z0-9_])'
65914 for header in stdio.h; do
65915 # Check for ordinary declaration
65916 cat >conftest.$ac_ext <<_ACEOF
65917 /* confdefs.h.  */
65918 _ACEOF
65919 cat confdefs.h >>conftest.$ac_ext
65920 cat >>conftest.$ac_ext <<_ACEOF
65921 /* end confdefs.h.  */
65922 #include <$header>
65923
65924 _ACEOF
65925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65926   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then
65927   ice_cv_have_remove_decl=yes
65928 fi
65929 rm -f conftest*
65930
65931 if test "$ice_cv_have_remove_decl" = yes; then
65932         break
65933 fi
65934 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65935 cat >conftest.$ac_ext <<_ACEOF
65936 /* confdefs.h.  */
65937 _ACEOF
65938 cat confdefs.h >>conftest.$ac_ext
65939 cat >>conftest.$ac_ext <<_ACEOF
65940 /* end confdefs.h.  */
65941 #include <$header>
65942
65943 _ACEOF
65944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65945   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65946   ice_cv_have_remove_decl=yes
65947 fi
65948 rm -f conftest*
65949
65950 if test "$ice_cv_have_remove_decl" = yes; then
65951         break
65952 fi
65953 done
65954
65955 fi
65956
65957 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
65958 $as_echo "$ice_cv_have_remove_decl" >&6; }
65959 if test "$ice_cv_have_remove_decl" = yes; then
65960
65961 cat >>confdefs.h <<_ACEOF
65962 #define HAVE_REMOVE_DECL 1
65963 _ACEOF
65964
65965 fi
65966 fi
65967
65968
65969 ice_have_rename=no
65970
65971 for ac_func in rename
65972 do
65973 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65974 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65975 $as_echo_n "checking for $ac_func... " >&6; }
65976 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65977   $as_echo_n "(cached) " >&6
65978 else
65979   cat >conftest.$ac_ext <<_ACEOF
65980 /* confdefs.h.  */
65981 _ACEOF
65982 cat confdefs.h >>conftest.$ac_ext
65983 cat >>conftest.$ac_ext <<_ACEOF
65984 /* end confdefs.h.  */
65985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65987 #define $ac_func innocuous_$ac_func
65988
65989 /* System header to define __stub macros and hopefully few prototypes,
65990     which can conflict with char $ac_func (); below.
65991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65992     <limits.h> exists even on freestanding compilers.  */
65993
65994 #ifdef __STDC__
65995 # include <limits.h>
65996 #else
65997 # include <assert.h>
65998 #endif
65999
66000 #undef $ac_func
66001
66002 /* Override any GCC internal prototype to avoid an error.
66003    Use char because int might match the return type of a GCC
66004    builtin and then its argument prototype would still apply.  */
66005 #ifdef __cplusplus
66006 extern "C"
66007 #endif
66008 char $ac_func ();
66009 /* The GNU C library defines this for functions which it implements
66010     to always fail with ENOSYS.  Some functions are actually named
66011     something starting with __ and the normal name is an alias.  */
66012 #if defined __stub_$ac_func || defined __stub___$ac_func
66013 choke me
66014 #endif
66015
66016 int
66017 main ()
66018 {
66019 return $ac_func ();
66020   ;
66021   return 0;
66022 }
66023 _ACEOF
66024 rm -f conftest.$ac_objext conftest$ac_exeext
66025 if { (ac_try="$ac_link"
66026 case "(($ac_try" in
66027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66028   *) ac_try_echo=$ac_try;;
66029 esac
66030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66031 $as_echo "$ac_try_echo") >&5
66032   (eval "$ac_link") 2>conftest.er1
66033   ac_status=$?
66034   grep -v '^ *+' conftest.er1 >conftest.err
66035   rm -f conftest.er1
66036   cat conftest.err >&5
66037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66038   (exit $ac_status); } && {
66039          test -z "$ac_c_werror_flag" ||
66040          test ! -s conftest.err
66041        } && test -s conftest$ac_exeext && {
66042          test "$cross_compiling" = yes ||
66043          $as_test_x conftest$ac_exeext
66044        }; then
66045   eval "$as_ac_var=yes"
66046 else
66047   $as_echo "$as_me: failed program was:" >&5
66048 sed 's/^/| /' conftest.$ac_ext >&5
66049
66050         eval "$as_ac_var=no"
66051 fi
66052
66053 rm -rf conftest.dSYM
66054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66055       conftest$ac_exeext conftest.$ac_ext
66056 fi
66057 ac_res=`eval 'as_val=${'$as_ac_var'}
66058                  $as_echo "$as_val"'`
66059                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66060 $as_echo "$ac_res" >&6; }
66061 as_val=`eval 'as_val=${'$as_ac_var'}
66062                  $as_echo "$as_val"'`
66063    if test "x$as_val" = x""yes; then
66064   cat >>confdefs.h <<_ACEOF
66065 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66066 _ACEOF
66067  ice_have_rename=yes
66068 fi
66069 done
66070
66071 if test "${ice_have_rename}" = yes; then
66072 { $as_echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
66073 $as_echo_n "checking for rename declaration in stdio.h... " >&6; }
66074 if test "${ice_cv_have_rename_decl+set}" = set; then
66075   $as_echo_n "(cached) " >&6
66076 else
66077
66078 ice_cv_have_rename_decl=no
66079 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66080 ice_re_word='(^|[^a-zA-Z0-9_])'
66081 for header in stdio.h; do
66082 # Check for ordinary declaration
66083 cat >conftest.$ac_ext <<_ACEOF
66084 /* confdefs.h.  */
66085 _ACEOF
66086 cat confdefs.h >>conftest.$ac_ext
66087 cat >>conftest.$ac_ext <<_ACEOF
66088 /* end confdefs.h.  */
66089 #include <$header>
66090
66091 _ACEOF
66092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66093   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then
66094   ice_cv_have_rename_decl=yes
66095 fi
66096 rm -f conftest*
66097
66098 if test "$ice_cv_have_rename_decl" = yes; then
66099         break
66100 fi
66101 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66102 cat >conftest.$ac_ext <<_ACEOF
66103 /* confdefs.h.  */
66104 _ACEOF
66105 cat confdefs.h >>conftest.$ac_ext
66106 cat >>conftest.$ac_ext <<_ACEOF
66107 /* end confdefs.h.  */
66108 #include <$header>
66109
66110 _ACEOF
66111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66112   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66113   ice_cv_have_rename_decl=yes
66114 fi
66115 rm -f conftest*
66116
66117 if test "$ice_cv_have_rename_decl" = yes; then
66118         break
66119 fi
66120 done
66121
66122 fi
66123
66124 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
66125 $as_echo "$ice_cv_have_rename_decl" >&6; }
66126 if test "$ice_cv_have_rename_decl" = yes; then
66127
66128 cat >>confdefs.h <<_ACEOF
66129 #define HAVE_RENAME_DECL 1
66130 _ACEOF
66131
66132 fi
66133 fi
66134
66135
66136 ice_have_rewind=no
66137
66138 for ac_func in rewind
66139 do
66140 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66141 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66142 $as_echo_n "checking for $ac_func... " >&6; }
66143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66144   $as_echo_n "(cached) " >&6
66145 else
66146   cat >conftest.$ac_ext <<_ACEOF
66147 /* confdefs.h.  */
66148 _ACEOF
66149 cat confdefs.h >>conftest.$ac_ext
66150 cat >>conftest.$ac_ext <<_ACEOF
66151 /* end confdefs.h.  */
66152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66154 #define $ac_func innocuous_$ac_func
66155
66156 /* System header to define __stub macros and hopefully few prototypes,
66157     which can conflict with char $ac_func (); below.
66158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66159     <limits.h> exists even on freestanding compilers.  */
66160
66161 #ifdef __STDC__
66162 # include <limits.h>
66163 #else
66164 # include <assert.h>
66165 #endif
66166
66167 #undef $ac_func
66168
66169 /* Override any GCC internal prototype to avoid an error.
66170    Use char because int might match the return type of a GCC
66171    builtin and then its argument prototype would still apply.  */
66172 #ifdef __cplusplus
66173 extern "C"
66174 #endif
66175 char $ac_func ();
66176 /* The GNU C library defines this for functions which it implements
66177     to always fail with ENOSYS.  Some functions are actually named
66178     something starting with __ and the normal name is an alias.  */
66179 #if defined __stub_$ac_func || defined __stub___$ac_func
66180 choke me
66181 #endif
66182
66183 int
66184 main ()
66185 {
66186 return $ac_func ();
66187   ;
66188   return 0;
66189 }
66190 _ACEOF
66191 rm -f conftest.$ac_objext conftest$ac_exeext
66192 if { (ac_try="$ac_link"
66193 case "(($ac_try" in
66194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66195   *) ac_try_echo=$ac_try;;
66196 esac
66197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66198 $as_echo "$ac_try_echo") >&5
66199   (eval "$ac_link") 2>conftest.er1
66200   ac_status=$?
66201   grep -v '^ *+' conftest.er1 >conftest.err
66202   rm -f conftest.er1
66203   cat conftest.err >&5
66204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66205   (exit $ac_status); } && {
66206          test -z "$ac_c_werror_flag" ||
66207          test ! -s conftest.err
66208        } && test -s conftest$ac_exeext && {
66209          test "$cross_compiling" = yes ||
66210          $as_test_x conftest$ac_exeext
66211        }; then
66212   eval "$as_ac_var=yes"
66213 else
66214   $as_echo "$as_me: failed program was:" >&5
66215 sed 's/^/| /' conftest.$ac_ext >&5
66216
66217         eval "$as_ac_var=no"
66218 fi
66219
66220 rm -rf conftest.dSYM
66221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66222       conftest$ac_exeext conftest.$ac_ext
66223 fi
66224 ac_res=`eval 'as_val=${'$as_ac_var'}
66225                  $as_echo "$as_val"'`
66226                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66227 $as_echo "$ac_res" >&6; }
66228 as_val=`eval 'as_val=${'$as_ac_var'}
66229                  $as_echo "$as_val"'`
66230    if test "x$as_val" = x""yes; then
66231   cat >>confdefs.h <<_ACEOF
66232 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66233 _ACEOF
66234  ice_have_rewind=yes
66235 fi
66236 done
66237
66238 if test "${ice_have_rewind}" = yes; then
66239 { $as_echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
66240 $as_echo_n "checking for rewind declaration in stdio.h... " >&6; }
66241 if test "${ice_cv_have_rewind_decl+set}" = set; then
66242   $as_echo_n "(cached) " >&6
66243 else
66244
66245 ice_cv_have_rewind_decl=no
66246 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66247 ice_re_word='(^|[^a-zA-Z0-9_])'
66248 for header in stdio.h; do
66249 # Check for ordinary declaration
66250 cat >conftest.$ac_ext <<_ACEOF
66251 /* confdefs.h.  */
66252 _ACEOF
66253 cat confdefs.h >>conftest.$ac_ext
66254 cat >>conftest.$ac_ext <<_ACEOF
66255 /* end confdefs.h.  */
66256 #include <$header>
66257
66258 _ACEOF
66259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66260   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then
66261   ice_cv_have_rewind_decl=yes
66262 fi
66263 rm -f conftest*
66264
66265 if test "$ice_cv_have_rewind_decl" = yes; then
66266         break
66267 fi
66268 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66269 cat >conftest.$ac_ext <<_ACEOF
66270 /* confdefs.h.  */
66271 _ACEOF
66272 cat confdefs.h >>conftest.$ac_ext
66273 cat >>conftest.$ac_ext <<_ACEOF
66274 /* end confdefs.h.  */
66275 #include <$header>
66276
66277 _ACEOF
66278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66279   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66280   ice_cv_have_rewind_decl=yes
66281 fi
66282 rm -f conftest*
66283
66284 if test "$ice_cv_have_rewind_decl" = yes; then
66285         break
66286 fi
66287 done
66288
66289 fi
66290
66291 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
66292 $as_echo "$ice_cv_have_rewind_decl" >&6; }
66293 if test "$ice_cv_have_rewind_decl" = yes; then
66294
66295 cat >>confdefs.h <<_ACEOF
66296 #define HAVE_REWIND_DECL 1
66297 _ACEOF
66298
66299 fi
66300 fi
66301
66302
66303 ice_have_ruserok=no
66304
66305 for ac_func in ruserok
66306 do
66307 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66308 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66309 $as_echo_n "checking for $ac_func... " >&6; }
66310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66311   $as_echo_n "(cached) " >&6
66312 else
66313   cat >conftest.$ac_ext <<_ACEOF
66314 /* confdefs.h.  */
66315 _ACEOF
66316 cat confdefs.h >>conftest.$ac_ext
66317 cat >>conftest.$ac_ext <<_ACEOF
66318 /* end confdefs.h.  */
66319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66321 #define $ac_func innocuous_$ac_func
66322
66323 /* System header to define __stub macros and hopefully few prototypes,
66324     which can conflict with char $ac_func (); below.
66325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66326     <limits.h> exists even on freestanding compilers.  */
66327
66328 #ifdef __STDC__
66329 # include <limits.h>
66330 #else
66331 # include <assert.h>
66332 #endif
66333
66334 #undef $ac_func
66335
66336 /* Override any GCC internal prototype to avoid an error.
66337    Use char because int might match the return type of a GCC
66338    builtin and then its argument prototype would still apply.  */
66339 #ifdef __cplusplus
66340 extern "C"
66341 #endif
66342 char $ac_func ();
66343 /* The GNU C library defines this for functions which it implements
66344     to always fail with ENOSYS.  Some functions are actually named
66345     something starting with __ and the normal name is an alias.  */
66346 #if defined __stub_$ac_func || defined __stub___$ac_func
66347 choke me
66348 #endif
66349
66350 int
66351 main ()
66352 {
66353 return $ac_func ();
66354   ;
66355   return 0;
66356 }
66357 _ACEOF
66358 rm -f conftest.$ac_objext conftest$ac_exeext
66359 if { (ac_try="$ac_link"
66360 case "(($ac_try" in
66361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66362   *) ac_try_echo=$ac_try;;
66363 esac
66364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66365 $as_echo "$ac_try_echo") >&5
66366   (eval "$ac_link") 2>conftest.er1
66367   ac_status=$?
66368   grep -v '^ *+' conftest.er1 >conftest.err
66369   rm -f conftest.er1
66370   cat conftest.err >&5
66371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66372   (exit $ac_status); } && {
66373          test -z "$ac_c_werror_flag" ||
66374          test ! -s conftest.err
66375        } && test -s conftest$ac_exeext && {
66376          test "$cross_compiling" = yes ||
66377          $as_test_x conftest$ac_exeext
66378        }; then
66379   eval "$as_ac_var=yes"
66380 else
66381   $as_echo "$as_me: failed program was:" >&5
66382 sed 's/^/| /' conftest.$ac_ext >&5
66383
66384         eval "$as_ac_var=no"
66385 fi
66386
66387 rm -rf conftest.dSYM
66388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66389       conftest$ac_exeext conftest.$ac_ext
66390 fi
66391 ac_res=`eval 'as_val=${'$as_ac_var'}
66392                  $as_echo "$as_val"'`
66393                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66394 $as_echo "$ac_res" >&6; }
66395 as_val=`eval 'as_val=${'$as_ac_var'}
66396                  $as_echo "$as_val"'`
66397    if test "x$as_val" = x""yes; then
66398   cat >>confdefs.h <<_ACEOF
66399 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66400 _ACEOF
66401  ice_have_ruserok=yes
66402 fi
66403 done
66404
66405 if test "${ice_have_ruserok}" = yes; then
66406 { $as_echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
66407 $as_echo_n "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... " >&6; }
66408 if test "${ice_cv_have_ruserok_decl+set}" = set; then
66409   $as_echo_n "(cached) " >&6
66410 else
66411
66412 ice_cv_have_ruserok_decl=no
66413 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66414 ice_re_word='(^|[^a-zA-Z0-9_])'
66415 for header in netdb.h sys/socket.h libc.h unistd.h; do
66416 # Check for ordinary declaration
66417 cat >conftest.$ac_ext <<_ACEOF
66418 /* confdefs.h.  */
66419 _ACEOF
66420 cat confdefs.h >>conftest.$ac_ext
66421 cat >>conftest.$ac_ext <<_ACEOF
66422 /* end confdefs.h.  */
66423 #include <$header>
66424
66425 _ACEOF
66426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66427   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then
66428   ice_cv_have_ruserok_decl=yes
66429 fi
66430 rm -f conftest*
66431
66432 if test "$ice_cv_have_ruserok_decl" = yes; then
66433         break
66434 fi
66435 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66436 cat >conftest.$ac_ext <<_ACEOF
66437 /* confdefs.h.  */
66438 _ACEOF
66439 cat confdefs.h >>conftest.$ac_ext
66440 cat >>conftest.$ac_ext <<_ACEOF
66441 /* end confdefs.h.  */
66442 #include <$header>
66443
66444 _ACEOF
66445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66446   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66447   ice_cv_have_ruserok_decl=yes
66448 fi
66449 rm -f conftest*
66450
66451 if test "$ice_cv_have_ruserok_decl" = yes; then
66452         break
66453 fi
66454 done
66455
66456 fi
66457
66458 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
66459 $as_echo "$ice_cv_have_ruserok_decl" >&6; }
66460 if test "$ice_cv_have_ruserok_decl" = yes; then
66461
66462 cat >>confdefs.h <<_ACEOF
66463 #define HAVE_RUSEROK_DECL 1
66464 _ACEOF
66465
66466 fi
66467 fi
66468
66469
66470 ice_have_select=no
66471
66472 for ac_func in select
66473 do
66474 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66475 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66476 $as_echo_n "checking for $ac_func... " >&6; }
66477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66478   $as_echo_n "(cached) " >&6
66479 else
66480   cat >conftest.$ac_ext <<_ACEOF
66481 /* confdefs.h.  */
66482 _ACEOF
66483 cat confdefs.h >>conftest.$ac_ext
66484 cat >>conftest.$ac_ext <<_ACEOF
66485 /* end confdefs.h.  */
66486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66488 #define $ac_func innocuous_$ac_func
66489
66490 /* System header to define __stub macros and hopefully few prototypes,
66491     which can conflict with char $ac_func (); below.
66492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66493     <limits.h> exists even on freestanding compilers.  */
66494
66495 #ifdef __STDC__
66496 # include <limits.h>
66497 #else
66498 # include <assert.h>
66499 #endif
66500
66501 #undef $ac_func
66502
66503 /* Override any GCC internal prototype to avoid an error.
66504    Use char because int might match the return type of a GCC
66505    builtin and then its argument prototype would still apply.  */
66506 #ifdef __cplusplus
66507 extern "C"
66508 #endif
66509 char $ac_func ();
66510 /* The GNU C library defines this for functions which it implements
66511     to always fail with ENOSYS.  Some functions are actually named
66512     something starting with __ and the normal name is an alias.  */
66513 #if defined __stub_$ac_func || defined __stub___$ac_func
66514 choke me
66515 #endif
66516
66517 int
66518 main ()
66519 {
66520 return $ac_func ();
66521   ;
66522   return 0;
66523 }
66524 _ACEOF
66525 rm -f conftest.$ac_objext conftest$ac_exeext
66526 if { (ac_try="$ac_link"
66527 case "(($ac_try" in
66528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66529   *) ac_try_echo=$ac_try;;
66530 esac
66531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66532 $as_echo "$ac_try_echo") >&5
66533   (eval "$ac_link") 2>conftest.er1
66534   ac_status=$?
66535   grep -v '^ *+' conftest.er1 >conftest.err
66536   rm -f conftest.er1
66537   cat conftest.err >&5
66538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66539   (exit $ac_status); } && {
66540          test -z "$ac_c_werror_flag" ||
66541          test ! -s conftest.err
66542        } && test -s conftest$ac_exeext && {
66543          test "$cross_compiling" = yes ||
66544          $as_test_x conftest$ac_exeext
66545        }; then
66546   eval "$as_ac_var=yes"
66547 else
66548   $as_echo "$as_me: failed program was:" >&5
66549 sed 's/^/| /' conftest.$ac_ext >&5
66550
66551         eval "$as_ac_var=no"
66552 fi
66553
66554 rm -rf conftest.dSYM
66555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66556       conftest$ac_exeext conftest.$ac_ext
66557 fi
66558 ac_res=`eval 'as_val=${'$as_ac_var'}
66559                  $as_echo "$as_val"'`
66560                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66561 $as_echo "$ac_res" >&6; }
66562 as_val=`eval 'as_val=${'$as_ac_var'}
66563                  $as_echo "$as_val"'`
66564    if test "x$as_val" = x""yes; then
66565   cat >>confdefs.h <<_ACEOF
66566 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66567 _ACEOF
66568  ice_have_select=yes
66569 fi
66570 done
66571
66572 if test "${ice_have_select}" = yes; then
66573 { $as_echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
66574 $as_echo_n "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... " >&6; }
66575 if test "${ice_cv_have_select_decl+set}" = set; then
66576   $as_echo_n "(cached) " >&6
66577 else
66578
66579 ice_cv_have_select_decl=no
66580 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66581 ice_re_word='(^|[^a-zA-Z0-9_])'
66582 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
66583 # Check for ordinary declaration
66584 cat >conftest.$ac_ext <<_ACEOF
66585 /* confdefs.h.  */
66586 _ACEOF
66587 cat confdefs.h >>conftest.$ac_ext
66588 cat >>conftest.$ac_ext <<_ACEOF
66589 /* end confdefs.h.  */
66590 #include <$header>
66591
66592 _ACEOF
66593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66594   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then
66595   ice_cv_have_select_decl=yes
66596 fi
66597 rm -f conftest*
66598
66599 if test "$ice_cv_have_select_decl" = yes; then
66600         break
66601 fi
66602 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66603 cat >conftest.$ac_ext <<_ACEOF
66604 /* confdefs.h.  */
66605 _ACEOF
66606 cat confdefs.h >>conftest.$ac_ext
66607 cat >>conftest.$ac_ext <<_ACEOF
66608 /* end confdefs.h.  */
66609 #include <$header>
66610
66611 _ACEOF
66612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66613   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66614   ice_cv_have_select_decl=yes
66615 fi
66616 rm -f conftest*
66617
66618 if test "$ice_cv_have_select_decl" = yes; then
66619         break
66620 fi
66621 done
66622
66623 fi
66624
66625 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
66626 $as_echo "$ice_cv_have_select_decl" >&6; }
66627 if test "$ice_cv_have_select_decl" = yes; then
66628
66629 cat >>confdefs.h <<_ACEOF
66630 #define HAVE_SELECT_DECL 1
66631 _ACEOF
66632
66633 fi
66634 fi
66635
66636
66637
66638
66639
66640
66641
66642
66643 for ac_header in sys/time.h \
66644             sys/types.h \
66645             sys/select.h \
66646             sys/socket.h \
66647             unistd.h \
66648
66649 do
66650 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
66651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66652   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
66653 $as_echo_n "checking for $ac_header... " >&6; }
66654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66655   $as_echo_n "(cached) " >&6
66656 fi
66657 ac_res=`eval 'as_val=${'$as_ac_Header'}
66658                  $as_echo "$as_val"'`
66659                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66660 $as_echo "$ac_res" >&6; }
66661 else
66662   # Is the header compilable?
66663 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
66664 $as_echo_n "checking $ac_header usability... " >&6; }
66665 cat >conftest.$ac_ext <<_ACEOF
66666 /* confdefs.h.  */
66667 _ACEOF
66668 cat confdefs.h >>conftest.$ac_ext
66669 cat >>conftest.$ac_ext <<_ACEOF
66670 /* end confdefs.h.  */
66671 $ac_includes_default
66672 #include <$ac_header>
66673 _ACEOF
66674 rm -f conftest.$ac_objext
66675 if { (ac_try="$ac_compile"
66676 case "(($ac_try" in
66677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66678   *) ac_try_echo=$ac_try;;
66679 esac
66680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66681 $as_echo "$ac_try_echo") >&5
66682   (eval "$ac_compile") 2>conftest.er1
66683   ac_status=$?
66684   grep -v '^ *+' conftest.er1 >conftest.err
66685   rm -f conftest.er1
66686   cat conftest.err >&5
66687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66688   (exit $ac_status); } && {
66689          test -z "$ac_c_werror_flag" ||
66690          test ! -s conftest.err
66691        } && test -s conftest.$ac_objext; then
66692   ac_header_compiler=yes
66693 else
66694   $as_echo "$as_me: failed program was:" >&5
66695 sed 's/^/| /' conftest.$ac_ext >&5
66696
66697         ac_header_compiler=no
66698 fi
66699
66700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66701 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66702 $as_echo "$ac_header_compiler" >&6; }
66703
66704 # Is the header present?
66705 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
66706 $as_echo_n "checking $ac_header presence... " >&6; }
66707 cat >conftest.$ac_ext <<_ACEOF
66708 /* confdefs.h.  */
66709 _ACEOF
66710 cat confdefs.h >>conftest.$ac_ext
66711 cat >>conftest.$ac_ext <<_ACEOF
66712 /* end confdefs.h.  */
66713 #include <$ac_header>
66714 _ACEOF
66715 if { (ac_try="$ac_cpp conftest.$ac_ext"
66716 case "(($ac_try" in
66717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66718   *) ac_try_echo=$ac_try;;
66719 esac
66720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66721 $as_echo "$ac_try_echo") >&5
66722   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
66723   ac_status=$?
66724   grep -v '^ *+' conftest.er1 >conftest.err
66725   rm -f conftest.er1
66726   cat conftest.err >&5
66727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66728   (exit $ac_status); } >/dev/null && {
66729          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
66730          test ! -s conftest.err
66731        }; then
66732   ac_header_preproc=yes
66733 else
66734   $as_echo "$as_me: failed program was:" >&5
66735 sed 's/^/| /' conftest.$ac_ext >&5
66736
66737   ac_header_preproc=no
66738 fi
66739
66740 rm -f conftest.err conftest.$ac_ext
66741 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66742 $as_echo "$ac_header_preproc" >&6; }
66743
66744 # So?  What about this header?
66745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66746   yes:no: )
66747     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66748 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66749     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66750 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66751     ac_header_preproc=yes
66752     ;;
66753   no:yes:* )
66754     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66755 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66756     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
66757 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
66758     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66759 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66760     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
66761 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
66762     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66763 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66764     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66765 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66766
66767     ;;
66768 esac
66769 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
66770 $as_echo_n "checking for $ac_header... " >&6; }
66771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66772   $as_echo_n "(cached) " >&6
66773 else
66774   eval "$as_ac_Header=\$ac_header_preproc"
66775 fi
66776 ac_res=`eval 'as_val=${'$as_ac_Header'}
66777                  $as_echo "$as_val"'`
66778                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66779 $as_echo "$ac_res" >&6; }
66780
66781 fi
66782 as_val=`eval 'as_val=${'$as_ac_Header'}
66783                  $as_echo "$as_val"'`
66784    if test "x$as_val" = x""yes; then
66785   cat >>confdefs.h <<_ACEOF
66786 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
66787 _ACEOF
66788
66789 fi
66790
66791 done
66792
66793
66794         { $as_echo "$as_me:$LINENO: checking for select() argument type" >&5
66795 $as_echo_n "checking for select() argument type... " >&6; }
66796 if test "${amanda_cv_select_arg_type+set}" = set; then
66797   $as_echo_n "(cached) " >&6
66798 else
66799
66800                 rm -f conftest.c
66801                 cat <<EOF >conftest.$ac_ext
66802 #include "confdefs.h"
66803 #ifdef TIME_WITH_SYS_TIME
66804 #  include <sys/time.h>
66805 #  include <time.h>
66806 #else
66807 #  ifdef HAVE_SYS_TIME_H
66808 #    include <sys/time.h>
66809 #  else
66810 #    include <time.h>
66811 #  endif
66812 #endif
66813 #ifdef HAVE_SYS_TYPES_H
66814 # include <sys/types.h>
66815 #endif
66816 #ifdef HAVE_SYS_SELECT_H
66817 #  include <sys/select.h>
66818 #endif
66819 #ifdef HAVE_SYS_SOCKET_H
66820 #  include <sys/socket.h>
66821 #endif
66822 #ifdef HAVE_UNISTD_H
66823 # include <unistd.h>
66824 #endif
66825
66826 int main()
66827 {
66828 #ifdef FD_SET_POINTER
66829         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
66830 #else
66831         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
66832 #endif
66833         return 0;
66834 }
66835 EOF
66836
66837                 # Figure out the select argument type by first trying to
66838                 # compile with the fd_set argument.  If the compile fails,
66839                 # then we know to use the int.  If it suceeds, then try to
66840                 # use the int.  If the int fails, then use fd_set.  If
66841                 # both suceeed, then do a line count on the number of
66842                 # lines that the compiler spit out, assuming that the
66843                 # compile outputing more lines had more errors.
66844                 amanda_cv_select_arg_type=no
66845                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
66846                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
66847                 if test $? -ne 0; then
66848                     amanda_cv_select_arg_type=int
66849                 fi
66850                 if test "$amanda_cv_select_arg_type" = no; then
66851                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
66852                     if test $? -ne 0; then
66853                         amanda_cv_select_arg_type=fd_set
66854                     fi
66855                 fi
66856                 if test "$amanda_cv_select_arg_type" = no; then
66857                     wc_fdset=`wc -l <conftest.fd_set`
66858                     wc_int=`wc -l <conftest.int`
66859                     if test "$wc_fdset" -le "$wc_int"; then
66860                         amanda_cv_select_arg_type=fd_set
66861                     else
66862                         amanda_cv_select_arg_type=int
66863                     fi
66864                 fi
66865                 rm -f conftest*
66866
66867
66868 fi
66869 { $as_echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
66870 $as_echo "$amanda_cv_select_arg_type" >&6; }
66871
66872 cat >>confdefs.h <<_ACEOF
66873 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
66874 _ACEOF
66875
66876
66877
66878
66879 ice_have_sendto=no
66880
66881 for ac_func in sendto
66882 do
66883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66884 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66885 $as_echo_n "checking for $ac_func... " >&6; }
66886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66887   $as_echo_n "(cached) " >&6
66888 else
66889   cat >conftest.$ac_ext <<_ACEOF
66890 /* confdefs.h.  */
66891 _ACEOF
66892 cat confdefs.h >>conftest.$ac_ext
66893 cat >>conftest.$ac_ext <<_ACEOF
66894 /* end confdefs.h.  */
66895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66897 #define $ac_func innocuous_$ac_func
66898
66899 /* System header to define __stub macros and hopefully few prototypes,
66900     which can conflict with char $ac_func (); below.
66901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66902     <limits.h> exists even on freestanding compilers.  */
66903
66904 #ifdef __STDC__
66905 # include <limits.h>
66906 #else
66907 # include <assert.h>
66908 #endif
66909
66910 #undef $ac_func
66911
66912 /* Override any GCC internal prototype to avoid an error.
66913    Use char because int might match the return type of a GCC
66914    builtin and then its argument prototype would still apply.  */
66915 #ifdef __cplusplus
66916 extern "C"
66917 #endif
66918 char $ac_func ();
66919 /* The GNU C library defines this for functions which it implements
66920     to always fail with ENOSYS.  Some functions are actually named
66921     something starting with __ and the normal name is an alias.  */
66922 #if defined __stub_$ac_func || defined __stub___$ac_func
66923 choke me
66924 #endif
66925
66926 int
66927 main ()
66928 {
66929 return $ac_func ();
66930   ;
66931   return 0;
66932 }
66933 _ACEOF
66934 rm -f conftest.$ac_objext conftest$ac_exeext
66935 if { (ac_try="$ac_link"
66936 case "(($ac_try" in
66937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66938   *) ac_try_echo=$ac_try;;
66939 esac
66940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66941 $as_echo "$ac_try_echo") >&5
66942   (eval "$ac_link") 2>conftest.er1
66943   ac_status=$?
66944   grep -v '^ *+' conftest.er1 >conftest.err
66945   rm -f conftest.er1
66946   cat conftest.err >&5
66947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66948   (exit $ac_status); } && {
66949          test -z "$ac_c_werror_flag" ||
66950          test ! -s conftest.err
66951        } && test -s conftest$ac_exeext && {
66952          test "$cross_compiling" = yes ||
66953          $as_test_x conftest$ac_exeext
66954        }; then
66955   eval "$as_ac_var=yes"
66956 else
66957   $as_echo "$as_me: failed program was:" >&5
66958 sed 's/^/| /' conftest.$ac_ext >&5
66959
66960         eval "$as_ac_var=no"
66961 fi
66962
66963 rm -rf conftest.dSYM
66964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66965       conftest$ac_exeext conftest.$ac_ext
66966 fi
66967 ac_res=`eval 'as_val=${'$as_ac_var'}
66968                  $as_echo "$as_val"'`
66969                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66970 $as_echo "$ac_res" >&6; }
66971 as_val=`eval 'as_val=${'$as_ac_var'}
66972                  $as_echo "$as_val"'`
66973    if test "x$as_val" = x""yes; then
66974   cat >>confdefs.h <<_ACEOF
66975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66976 _ACEOF
66977  ice_have_sendto=yes
66978 fi
66979 done
66980
66981 if test "${ice_have_sendto}" = yes; then
66982 { $as_echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
66983 $as_echo_n "checking for sendto declaration in sys/types.h sys/socket.h... " >&6; }
66984 if test "${ice_cv_have_sendto_decl+set}" = set; then
66985   $as_echo_n "(cached) " >&6
66986 else
66987
66988 ice_cv_have_sendto_decl=no
66989 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66990 ice_re_word='(^|[^a-zA-Z0-9_])'
66991 for header in sys/types.h sys/socket.h; do
66992 # Check for ordinary declaration
66993 cat >conftest.$ac_ext <<_ACEOF
66994 /* confdefs.h.  */
66995 _ACEOF
66996 cat confdefs.h >>conftest.$ac_ext
66997 cat >>conftest.$ac_ext <<_ACEOF
66998 /* end confdefs.h.  */
66999 #include <$header>
67000
67001 _ACEOF
67002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67003   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then
67004   ice_cv_have_sendto_decl=yes
67005 fi
67006 rm -f conftest*
67007
67008 if test "$ice_cv_have_sendto_decl" = yes; then
67009         break
67010 fi
67011 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67012 cat >conftest.$ac_ext <<_ACEOF
67013 /* confdefs.h.  */
67014 _ACEOF
67015 cat confdefs.h >>conftest.$ac_ext
67016 cat >>conftest.$ac_ext <<_ACEOF
67017 /* end confdefs.h.  */
67018 #include <$header>
67019
67020 _ACEOF
67021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67022   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67023   ice_cv_have_sendto_decl=yes
67024 fi
67025 rm -f conftest*
67026
67027 if test "$ice_cv_have_sendto_decl" = yes; then
67028         break
67029 fi
67030 done
67031
67032 fi
67033
67034 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
67035 $as_echo "$ice_cv_have_sendto_decl" >&6; }
67036 if test "$ice_cv_have_sendto_decl" = yes; then
67037
67038 cat >>confdefs.h <<_ACEOF
67039 #define HAVE_SENDTO_DECL 1
67040 _ACEOF
67041
67042 fi
67043 fi
67044
67045
67046 ice_have_setegid=no
67047
67048 for ac_func in setegid
67049 do
67050 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67051 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67052 $as_echo_n "checking for $ac_func... " >&6; }
67053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67054   $as_echo_n "(cached) " >&6
67055 else
67056   cat >conftest.$ac_ext <<_ACEOF
67057 /* confdefs.h.  */
67058 _ACEOF
67059 cat confdefs.h >>conftest.$ac_ext
67060 cat >>conftest.$ac_ext <<_ACEOF
67061 /* end confdefs.h.  */
67062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67064 #define $ac_func innocuous_$ac_func
67065
67066 /* System header to define __stub macros and hopefully few prototypes,
67067     which can conflict with char $ac_func (); below.
67068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67069     <limits.h> exists even on freestanding compilers.  */
67070
67071 #ifdef __STDC__
67072 # include <limits.h>
67073 #else
67074 # include <assert.h>
67075 #endif
67076
67077 #undef $ac_func
67078
67079 /* Override any GCC internal prototype to avoid an error.
67080    Use char because int might match the return type of a GCC
67081    builtin and then its argument prototype would still apply.  */
67082 #ifdef __cplusplus
67083 extern "C"
67084 #endif
67085 char $ac_func ();
67086 /* The GNU C library defines this for functions which it implements
67087     to always fail with ENOSYS.  Some functions are actually named
67088     something starting with __ and the normal name is an alias.  */
67089 #if defined __stub_$ac_func || defined __stub___$ac_func
67090 choke me
67091 #endif
67092
67093 int
67094 main ()
67095 {
67096 return $ac_func ();
67097   ;
67098   return 0;
67099 }
67100 _ACEOF
67101 rm -f conftest.$ac_objext conftest$ac_exeext
67102 if { (ac_try="$ac_link"
67103 case "(($ac_try" in
67104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67105   *) ac_try_echo=$ac_try;;
67106 esac
67107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67108 $as_echo "$ac_try_echo") >&5
67109   (eval "$ac_link") 2>conftest.er1
67110   ac_status=$?
67111   grep -v '^ *+' conftest.er1 >conftest.err
67112   rm -f conftest.er1
67113   cat conftest.err >&5
67114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67115   (exit $ac_status); } && {
67116          test -z "$ac_c_werror_flag" ||
67117          test ! -s conftest.err
67118        } && test -s conftest$ac_exeext && {
67119          test "$cross_compiling" = yes ||
67120          $as_test_x conftest$ac_exeext
67121        }; then
67122   eval "$as_ac_var=yes"
67123 else
67124   $as_echo "$as_me: failed program was:" >&5
67125 sed 's/^/| /' conftest.$ac_ext >&5
67126
67127         eval "$as_ac_var=no"
67128 fi
67129
67130 rm -rf conftest.dSYM
67131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67132       conftest$ac_exeext conftest.$ac_ext
67133 fi
67134 ac_res=`eval 'as_val=${'$as_ac_var'}
67135                  $as_echo "$as_val"'`
67136                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67137 $as_echo "$ac_res" >&6; }
67138 as_val=`eval 'as_val=${'$as_ac_var'}
67139                  $as_echo "$as_val"'`
67140    if test "x$as_val" = x""yes; then
67141   cat >>confdefs.h <<_ACEOF
67142 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67143 _ACEOF
67144  ice_have_setegid=yes
67145 fi
67146 done
67147
67148 if test "${ice_have_setegid}" = yes; then
67149 { $as_echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
67150 $as_echo_n "checking for setegid declaration in unistd.h... " >&6; }
67151 if test "${ice_cv_have_setegid_decl+set}" = set; then
67152   $as_echo_n "(cached) " >&6
67153 else
67154
67155 ice_cv_have_setegid_decl=no
67156 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67157 ice_re_word='(^|[^a-zA-Z0-9_])'
67158 for header in unistd.h; do
67159 # Check for ordinary declaration
67160 cat >conftest.$ac_ext <<_ACEOF
67161 /* confdefs.h.  */
67162 _ACEOF
67163 cat confdefs.h >>conftest.$ac_ext
67164 cat >>conftest.$ac_ext <<_ACEOF
67165 /* end confdefs.h.  */
67166 #include <$header>
67167
67168 _ACEOF
67169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67170   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then
67171   ice_cv_have_setegid_decl=yes
67172 fi
67173 rm -f conftest*
67174
67175 if test "$ice_cv_have_setegid_decl" = yes; then
67176         break
67177 fi
67178 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67179 cat >conftest.$ac_ext <<_ACEOF
67180 /* confdefs.h.  */
67181 _ACEOF
67182 cat confdefs.h >>conftest.$ac_ext
67183 cat >>conftest.$ac_ext <<_ACEOF
67184 /* end confdefs.h.  */
67185 #include <$header>
67186
67187 _ACEOF
67188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67189   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67190   ice_cv_have_setegid_decl=yes
67191 fi
67192 rm -f conftest*
67193
67194 if test "$ice_cv_have_setegid_decl" = yes; then
67195         break
67196 fi
67197 done
67198
67199 fi
67200
67201 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
67202 $as_echo "$ice_cv_have_setegid_decl" >&6; }
67203 if test "$ice_cv_have_setegid_decl" = yes; then
67204
67205 cat >>confdefs.h <<_ACEOF
67206 #define HAVE_SETEGID_DECL 1
67207 _ACEOF
67208
67209 fi
67210 fi
67211
67212
67213 ice_have_seteuid=no
67214
67215 for ac_func in seteuid
67216 do
67217 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67218 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67219 $as_echo_n "checking for $ac_func... " >&6; }
67220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67221   $as_echo_n "(cached) " >&6
67222 else
67223   cat >conftest.$ac_ext <<_ACEOF
67224 /* confdefs.h.  */
67225 _ACEOF
67226 cat confdefs.h >>conftest.$ac_ext
67227 cat >>conftest.$ac_ext <<_ACEOF
67228 /* end confdefs.h.  */
67229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67231 #define $ac_func innocuous_$ac_func
67232
67233 /* System header to define __stub macros and hopefully few prototypes,
67234     which can conflict with char $ac_func (); below.
67235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67236     <limits.h> exists even on freestanding compilers.  */
67237
67238 #ifdef __STDC__
67239 # include <limits.h>
67240 #else
67241 # include <assert.h>
67242 #endif
67243
67244 #undef $ac_func
67245
67246 /* Override any GCC internal prototype to avoid an error.
67247    Use char because int might match the return type of a GCC
67248    builtin and then its argument prototype would still apply.  */
67249 #ifdef __cplusplus
67250 extern "C"
67251 #endif
67252 char $ac_func ();
67253 /* The GNU C library defines this for functions which it implements
67254     to always fail with ENOSYS.  Some functions are actually named
67255     something starting with __ and the normal name is an alias.  */
67256 #if defined __stub_$ac_func || defined __stub___$ac_func
67257 choke me
67258 #endif
67259
67260 int
67261 main ()
67262 {
67263 return $ac_func ();
67264   ;
67265   return 0;
67266 }
67267 _ACEOF
67268 rm -f conftest.$ac_objext conftest$ac_exeext
67269 if { (ac_try="$ac_link"
67270 case "(($ac_try" in
67271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67272   *) ac_try_echo=$ac_try;;
67273 esac
67274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67275 $as_echo "$ac_try_echo") >&5
67276   (eval "$ac_link") 2>conftest.er1
67277   ac_status=$?
67278   grep -v '^ *+' conftest.er1 >conftest.err
67279   rm -f conftest.er1
67280   cat conftest.err >&5
67281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67282   (exit $ac_status); } && {
67283          test -z "$ac_c_werror_flag" ||
67284          test ! -s conftest.err
67285        } && test -s conftest$ac_exeext && {
67286          test "$cross_compiling" = yes ||
67287          $as_test_x conftest$ac_exeext
67288        }; then
67289   eval "$as_ac_var=yes"
67290 else
67291   $as_echo "$as_me: failed program was:" >&5
67292 sed 's/^/| /' conftest.$ac_ext >&5
67293
67294         eval "$as_ac_var=no"
67295 fi
67296
67297 rm -rf conftest.dSYM
67298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67299       conftest$ac_exeext conftest.$ac_ext
67300 fi
67301 ac_res=`eval 'as_val=${'$as_ac_var'}
67302                  $as_echo "$as_val"'`
67303                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67304 $as_echo "$ac_res" >&6; }
67305 as_val=`eval 'as_val=${'$as_ac_var'}
67306                  $as_echo "$as_val"'`
67307    if test "x$as_val" = x""yes; then
67308   cat >>confdefs.h <<_ACEOF
67309 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67310 _ACEOF
67311  ice_have_seteuid=yes
67312 fi
67313 done
67314
67315 if test "${ice_have_seteuid}" = yes; then
67316 { $as_echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
67317 $as_echo_n "checking for seteuid declaration in unistd.h... " >&6; }
67318 if test "${ice_cv_have_seteuid_decl+set}" = set; then
67319   $as_echo_n "(cached) " >&6
67320 else
67321
67322 ice_cv_have_seteuid_decl=no
67323 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67324 ice_re_word='(^|[^a-zA-Z0-9_])'
67325 for header in unistd.h; do
67326 # Check for ordinary declaration
67327 cat >conftest.$ac_ext <<_ACEOF
67328 /* confdefs.h.  */
67329 _ACEOF
67330 cat confdefs.h >>conftest.$ac_ext
67331 cat >>conftest.$ac_ext <<_ACEOF
67332 /* end confdefs.h.  */
67333 #include <$header>
67334
67335 _ACEOF
67336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67337   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then
67338   ice_cv_have_seteuid_decl=yes
67339 fi
67340 rm -f conftest*
67341
67342 if test "$ice_cv_have_seteuid_decl" = yes; then
67343         break
67344 fi
67345 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67346 cat >conftest.$ac_ext <<_ACEOF
67347 /* confdefs.h.  */
67348 _ACEOF
67349 cat confdefs.h >>conftest.$ac_ext
67350 cat >>conftest.$ac_ext <<_ACEOF
67351 /* end confdefs.h.  */
67352 #include <$header>
67353
67354 _ACEOF
67355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67356   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67357   ice_cv_have_seteuid_decl=yes
67358 fi
67359 rm -f conftest*
67360
67361 if test "$ice_cv_have_seteuid_decl" = yes; then
67362         break
67363 fi
67364 done
67365
67366 fi
67367
67368 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
67369 $as_echo "$ice_cv_have_seteuid_decl" >&6; }
67370 if test "$ice_cv_have_seteuid_decl" = yes; then
67371
67372 cat >>confdefs.h <<_ACEOF
67373 #define HAVE_SETEUID_DECL 1
67374 _ACEOF
67375
67376 fi
67377 fi
67378
67379
67380 ice_have_setresgid=no
67381
67382 for ac_func in setresgid
67383 do
67384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67385 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67386 $as_echo_n "checking for $ac_func... " >&6; }
67387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67388   $as_echo_n "(cached) " >&6
67389 else
67390   cat >conftest.$ac_ext <<_ACEOF
67391 /* confdefs.h.  */
67392 _ACEOF
67393 cat confdefs.h >>conftest.$ac_ext
67394 cat >>conftest.$ac_ext <<_ACEOF
67395 /* end confdefs.h.  */
67396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67398 #define $ac_func innocuous_$ac_func
67399
67400 /* System header to define __stub macros and hopefully few prototypes,
67401     which can conflict with char $ac_func (); below.
67402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67403     <limits.h> exists even on freestanding compilers.  */
67404
67405 #ifdef __STDC__
67406 # include <limits.h>
67407 #else
67408 # include <assert.h>
67409 #endif
67410
67411 #undef $ac_func
67412
67413 /* Override any GCC internal prototype to avoid an error.
67414    Use char because int might match the return type of a GCC
67415    builtin and then its argument prototype would still apply.  */
67416 #ifdef __cplusplus
67417 extern "C"
67418 #endif
67419 char $ac_func ();
67420 /* The GNU C library defines this for functions which it implements
67421     to always fail with ENOSYS.  Some functions are actually named
67422     something starting with __ and the normal name is an alias.  */
67423 #if defined __stub_$ac_func || defined __stub___$ac_func
67424 choke me
67425 #endif
67426
67427 int
67428 main ()
67429 {
67430 return $ac_func ();
67431   ;
67432   return 0;
67433 }
67434 _ACEOF
67435 rm -f conftest.$ac_objext conftest$ac_exeext
67436 if { (ac_try="$ac_link"
67437 case "(($ac_try" in
67438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67439   *) ac_try_echo=$ac_try;;
67440 esac
67441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67442 $as_echo "$ac_try_echo") >&5
67443   (eval "$ac_link") 2>conftest.er1
67444   ac_status=$?
67445   grep -v '^ *+' conftest.er1 >conftest.err
67446   rm -f conftest.er1
67447   cat conftest.err >&5
67448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67449   (exit $ac_status); } && {
67450          test -z "$ac_c_werror_flag" ||
67451          test ! -s conftest.err
67452        } && test -s conftest$ac_exeext && {
67453          test "$cross_compiling" = yes ||
67454          $as_test_x conftest$ac_exeext
67455        }; then
67456   eval "$as_ac_var=yes"
67457 else
67458   $as_echo "$as_me: failed program was:" >&5
67459 sed 's/^/| /' conftest.$ac_ext >&5
67460
67461         eval "$as_ac_var=no"
67462 fi
67463
67464 rm -rf conftest.dSYM
67465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67466       conftest$ac_exeext conftest.$ac_ext
67467 fi
67468 ac_res=`eval 'as_val=${'$as_ac_var'}
67469                  $as_echo "$as_val"'`
67470                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67471 $as_echo "$ac_res" >&6; }
67472 as_val=`eval 'as_val=${'$as_ac_var'}
67473                  $as_echo "$as_val"'`
67474    if test "x$as_val" = x""yes; then
67475   cat >>confdefs.h <<_ACEOF
67476 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67477 _ACEOF
67478  ice_have_setresgid=yes
67479 fi
67480 done
67481
67482 if test "${ice_have_setresgid}" = yes; then
67483 { $as_echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
67484 $as_echo_n "checking for setresgid declaration in unistd.h... " >&6; }
67485 if test "${ice_cv_have_setresgid_decl+set}" = set; then
67486   $as_echo_n "(cached) " >&6
67487 else
67488
67489 ice_cv_have_setresgid_decl=no
67490 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67491 ice_re_word='(^|[^a-zA-Z0-9_])'
67492 for header in unistd.h; do
67493 # Check for ordinary declaration
67494 cat >conftest.$ac_ext <<_ACEOF
67495 /* confdefs.h.  */
67496 _ACEOF
67497 cat confdefs.h >>conftest.$ac_ext
67498 cat >>conftest.$ac_ext <<_ACEOF
67499 /* end confdefs.h.  */
67500 #include <$header>
67501
67502 _ACEOF
67503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67504   $EGREP "${ice_re_word}setresgid[      ]*\(" >/dev/null 2>&1; then
67505   ice_cv_have_setresgid_decl=yes
67506 fi
67507 rm -f conftest*
67508
67509 if test "$ice_cv_have_setresgid_decl" = yes; then
67510         break
67511 fi
67512 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67513 cat >conftest.$ac_ext <<_ACEOF
67514 /* confdefs.h.  */
67515 _ACEOF
67516 cat confdefs.h >>conftest.$ac_ext
67517 cat >>conftest.$ac_ext <<_ACEOF
67518 /* end confdefs.h.  */
67519 #include <$header>
67520
67521 _ACEOF
67522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67523   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67524   ice_cv_have_setresgid_decl=yes
67525 fi
67526 rm -f conftest*
67527
67528 if test "$ice_cv_have_setresgid_decl" = yes; then
67529         break
67530 fi
67531 done
67532
67533 fi
67534
67535 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
67536 $as_echo "$ice_cv_have_setresgid_decl" >&6; }
67537 if test "$ice_cv_have_setresgid_decl" = yes; then
67538
67539 cat >>confdefs.h <<_ACEOF
67540 #define HAVE_SETRESGID_DECL 1
67541 _ACEOF
67542
67543 fi
67544 fi
67545
67546
67547 ice_have_setresuid=no
67548
67549 for ac_func in setresuid
67550 do
67551 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67552 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67553 $as_echo_n "checking for $ac_func... " >&6; }
67554 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67555   $as_echo_n "(cached) " >&6
67556 else
67557   cat >conftest.$ac_ext <<_ACEOF
67558 /* confdefs.h.  */
67559 _ACEOF
67560 cat confdefs.h >>conftest.$ac_ext
67561 cat >>conftest.$ac_ext <<_ACEOF
67562 /* end confdefs.h.  */
67563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67564    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67565 #define $ac_func innocuous_$ac_func
67566
67567 /* System header to define __stub macros and hopefully few prototypes,
67568     which can conflict with char $ac_func (); below.
67569     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67570     <limits.h> exists even on freestanding compilers.  */
67571
67572 #ifdef __STDC__
67573 # include <limits.h>
67574 #else
67575 # include <assert.h>
67576 #endif
67577
67578 #undef $ac_func
67579
67580 /* Override any GCC internal prototype to avoid an error.
67581    Use char because int might match the return type of a GCC
67582    builtin and then its argument prototype would still apply.  */
67583 #ifdef __cplusplus
67584 extern "C"
67585 #endif
67586 char $ac_func ();
67587 /* The GNU C library defines this for functions which it implements
67588     to always fail with ENOSYS.  Some functions are actually named
67589     something starting with __ and the normal name is an alias.  */
67590 #if defined __stub_$ac_func || defined __stub___$ac_func
67591 choke me
67592 #endif
67593
67594 int
67595 main ()
67596 {
67597 return $ac_func ();
67598   ;
67599   return 0;
67600 }
67601 _ACEOF
67602 rm -f conftest.$ac_objext conftest$ac_exeext
67603 if { (ac_try="$ac_link"
67604 case "(($ac_try" in
67605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67606   *) ac_try_echo=$ac_try;;
67607 esac
67608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67609 $as_echo "$ac_try_echo") >&5
67610   (eval "$ac_link") 2>conftest.er1
67611   ac_status=$?
67612   grep -v '^ *+' conftest.er1 >conftest.err
67613   rm -f conftest.er1
67614   cat conftest.err >&5
67615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67616   (exit $ac_status); } && {
67617          test -z "$ac_c_werror_flag" ||
67618          test ! -s conftest.err
67619        } && test -s conftest$ac_exeext && {
67620          test "$cross_compiling" = yes ||
67621          $as_test_x conftest$ac_exeext
67622        }; then
67623   eval "$as_ac_var=yes"
67624 else
67625   $as_echo "$as_me: failed program was:" >&5
67626 sed 's/^/| /' conftest.$ac_ext >&5
67627
67628         eval "$as_ac_var=no"
67629 fi
67630
67631 rm -rf conftest.dSYM
67632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67633       conftest$ac_exeext conftest.$ac_ext
67634 fi
67635 ac_res=`eval 'as_val=${'$as_ac_var'}
67636                  $as_echo "$as_val"'`
67637                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67638 $as_echo "$ac_res" >&6; }
67639 as_val=`eval 'as_val=${'$as_ac_var'}
67640                  $as_echo "$as_val"'`
67641    if test "x$as_val" = x""yes; then
67642   cat >>confdefs.h <<_ACEOF
67643 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67644 _ACEOF
67645  ice_have_setresuid=yes
67646 fi
67647 done
67648
67649 if test "${ice_have_setresuid}" = yes; then
67650 { $as_echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
67651 $as_echo_n "checking for setresuid declaration in unistd.h... " >&6; }
67652 if test "${ice_cv_have_setresuid_decl+set}" = set; then
67653   $as_echo_n "(cached) " >&6
67654 else
67655
67656 ice_cv_have_setresuid_decl=no
67657 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67658 ice_re_word='(^|[^a-zA-Z0-9_])'
67659 for header in unistd.h; do
67660 # Check for ordinary declaration
67661 cat >conftest.$ac_ext <<_ACEOF
67662 /* confdefs.h.  */
67663 _ACEOF
67664 cat confdefs.h >>conftest.$ac_ext
67665 cat >>conftest.$ac_ext <<_ACEOF
67666 /* end confdefs.h.  */
67667 #include <$header>
67668
67669 _ACEOF
67670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67671   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then
67672   ice_cv_have_setresuid_decl=yes
67673 fi
67674 rm -f conftest*
67675
67676 if test "$ice_cv_have_setresuid_decl" = yes; then
67677         break
67678 fi
67679 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67680 cat >conftest.$ac_ext <<_ACEOF
67681 /* confdefs.h.  */
67682 _ACEOF
67683 cat confdefs.h >>conftest.$ac_ext
67684 cat >>conftest.$ac_ext <<_ACEOF
67685 /* end confdefs.h.  */
67686 #include <$header>
67687
67688 _ACEOF
67689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67690   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67691   ice_cv_have_setresuid_decl=yes
67692 fi
67693 rm -f conftest*
67694
67695 if test "$ice_cv_have_setresuid_decl" = yes; then
67696         break
67697 fi
67698 done
67699
67700 fi
67701
67702 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
67703 $as_echo "$ice_cv_have_setresuid_decl" >&6; }
67704 if test "$ice_cv_have_setresuid_decl" = yes; then
67705
67706 cat >>confdefs.h <<_ACEOF
67707 #define HAVE_SETRESUID_DECL 1
67708 _ACEOF
67709
67710 fi
67711 fi
67712
67713
67714 ice_have_snprintf=no
67715
67716 for ac_func in snprintf
67717 do
67718 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67719 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67720 $as_echo_n "checking for $ac_func... " >&6; }
67721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67722   $as_echo_n "(cached) " >&6
67723 else
67724   cat >conftest.$ac_ext <<_ACEOF
67725 /* confdefs.h.  */
67726 _ACEOF
67727 cat confdefs.h >>conftest.$ac_ext
67728 cat >>conftest.$ac_ext <<_ACEOF
67729 /* end confdefs.h.  */
67730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67732 #define $ac_func innocuous_$ac_func
67733
67734 /* System header to define __stub macros and hopefully few prototypes,
67735     which can conflict with char $ac_func (); below.
67736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67737     <limits.h> exists even on freestanding compilers.  */
67738
67739 #ifdef __STDC__
67740 # include <limits.h>
67741 #else
67742 # include <assert.h>
67743 #endif
67744
67745 #undef $ac_func
67746
67747 /* Override any GCC internal prototype to avoid an error.
67748    Use char because int might match the return type of a GCC
67749    builtin and then its argument prototype would still apply.  */
67750 #ifdef __cplusplus
67751 extern "C"
67752 #endif
67753 char $ac_func ();
67754 /* The GNU C library defines this for functions which it implements
67755     to always fail with ENOSYS.  Some functions are actually named
67756     something starting with __ and the normal name is an alias.  */
67757 #if defined __stub_$ac_func || defined __stub___$ac_func
67758 choke me
67759 #endif
67760
67761 int
67762 main ()
67763 {
67764 return $ac_func ();
67765   ;
67766   return 0;
67767 }
67768 _ACEOF
67769 rm -f conftest.$ac_objext conftest$ac_exeext
67770 if { (ac_try="$ac_link"
67771 case "(($ac_try" in
67772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67773   *) ac_try_echo=$ac_try;;
67774 esac
67775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67776 $as_echo "$ac_try_echo") >&5
67777   (eval "$ac_link") 2>conftest.er1
67778   ac_status=$?
67779   grep -v '^ *+' conftest.er1 >conftest.err
67780   rm -f conftest.er1
67781   cat conftest.err >&5
67782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67783   (exit $ac_status); } && {
67784          test -z "$ac_c_werror_flag" ||
67785          test ! -s conftest.err
67786        } && test -s conftest$ac_exeext && {
67787          test "$cross_compiling" = yes ||
67788          $as_test_x conftest$ac_exeext
67789        }; then
67790   eval "$as_ac_var=yes"
67791 else
67792   $as_echo "$as_me: failed program was:" >&5
67793 sed 's/^/| /' conftest.$ac_ext >&5
67794
67795         eval "$as_ac_var=no"
67796 fi
67797
67798 rm -rf conftest.dSYM
67799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67800       conftest$ac_exeext conftest.$ac_ext
67801 fi
67802 ac_res=`eval 'as_val=${'$as_ac_var'}
67803                  $as_echo "$as_val"'`
67804                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67805 $as_echo "$ac_res" >&6; }
67806 as_val=`eval 'as_val=${'$as_ac_var'}
67807                  $as_echo "$as_val"'`
67808    if test "x$as_val" = x""yes; then
67809   cat >>confdefs.h <<_ACEOF
67810 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67811 _ACEOF
67812  ice_have_snprintf=yes
67813 fi
67814 done
67815
67816 if test "${ice_have_snprintf}" = yes; then
67817 { $as_echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
67818 $as_echo_n "checking for snprintf declaration in stdio.h... " >&6; }
67819 if test "${ice_cv_have_snprintf_decl+set}" = set; then
67820   $as_echo_n "(cached) " >&6
67821 else
67822
67823 ice_cv_have_snprintf_decl=no
67824 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67825 ice_re_word='(^|[^a-zA-Z0-9_])'
67826 for header in stdio.h; do
67827 # Check for ordinary declaration
67828 cat >conftest.$ac_ext <<_ACEOF
67829 /* confdefs.h.  */
67830 _ACEOF
67831 cat confdefs.h >>conftest.$ac_ext
67832 cat >>conftest.$ac_ext <<_ACEOF
67833 /* end confdefs.h.  */
67834 #include <$header>
67835
67836 _ACEOF
67837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67838   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then
67839   ice_cv_have_snprintf_decl=yes
67840 fi
67841 rm -f conftest*
67842
67843 if test "$ice_cv_have_snprintf_decl" = yes; then
67844         break
67845 fi
67846 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67847 cat >conftest.$ac_ext <<_ACEOF
67848 /* confdefs.h.  */
67849 _ACEOF
67850 cat confdefs.h >>conftest.$ac_ext
67851 cat >>conftest.$ac_ext <<_ACEOF
67852 /* end confdefs.h.  */
67853 #include <$header>
67854
67855 _ACEOF
67856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67857   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67858   ice_cv_have_snprintf_decl=yes
67859 fi
67860 rm -f conftest*
67861
67862 if test "$ice_cv_have_snprintf_decl" = yes; then
67863         break
67864 fi
67865 done
67866
67867 fi
67868
67869 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
67870 $as_echo "$ice_cv_have_snprintf_decl" >&6; }
67871 if test "$ice_cv_have_snprintf_decl" = yes; then
67872
67873 cat >>confdefs.h <<_ACEOF
67874 #define HAVE_SNPRINTF_DECL 1
67875 _ACEOF
67876
67877 fi
67878 fi
67879
67880
67881 ice_have_vsnprintf=no
67882
67883 for ac_func in vsnprintf
67884 do
67885 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67886 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67887 $as_echo_n "checking for $ac_func... " >&6; }
67888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67889   $as_echo_n "(cached) " >&6
67890 else
67891   cat >conftest.$ac_ext <<_ACEOF
67892 /* confdefs.h.  */
67893 _ACEOF
67894 cat confdefs.h >>conftest.$ac_ext
67895 cat >>conftest.$ac_ext <<_ACEOF
67896 /* end confdefs.h.  */
67897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67899 #define $ac_func innocuous_$ac_func
67900
67901 /* System header to define __stub macros and hopefully few prototypes,
67902     which can conflict with char $ac_func (); below.
67903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67904     <limits.h> exists even on freestanding compilers.  */
67905
67906 #ifdef __STDC__
67907 # include <limits.h>
67908 #else
67909 # include <assert.h>
67910 #endif
67911
67912 #undef $ac_func
67913
67914 /* Override any GCC internal prototype to avoid an error.
67915    Use char because int might match the return type of a GCC
67916    builtin and then its argument prototype would still apply.  */
67917 #ifdef __cplusplus
67918 extern "C"
67919 #endif
67920 char $ac_func ();
67921 /* The GNU C library defines this for functions which it implements
67922     to always fail with ENOSYS.  Some functions are actually named
67923     something starting with __ and the normal name is an alias.  */
67924 #if defined __stub_$ac_func || defined __stub___$ac_func
67925 choke me
67926 #endif
67927
67928 int
67929 main ()
67930 {
67931 return $ac_func ();
67932   ;
67933   return 0;
67934 }
67935 _ACEOF
67936 rm -f conftest.$ac_objext conftest$ac_exeext
67937 if { (ac_try="$ac_link"
67938 case "(($ac_try" in
67939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67940   *) ac_try_echo=$ac_try;;
67941 esac
67942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67943 $as_echo "$ac_try_echo") >&5
67944   (eval "$ac_link") 2>conftest.er1
67945   ac_status=$?
67946   grep -v '^ *+' conftest.er1 >conftest.err
67947   rm -f conftest.er1
67948   cat conftest.err >&5
67949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67950   (exit $ac_status); } && {
67951          test -z "$ac_c_werror_flag" ||
67952          test ! -s conftest.err
67953        } && test -s conftest$ac_exeext && {
67954          test "$cross_compiling" = yes ||
67955          $as_test_x conftest$ac_exeext
67956        }; then
67957   eval "$as_ac_var=yes"
67958 else
67959   $as_echo "$as_me: failed program was:" >&5
67960 sed 's/^/| /' conftest.$ac_ext >&5
67961
67962         eval "$as_ac_var=no"
67963 fi
67964
67965 rm -rf conftest.dSYM
67966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67967       conftest$ac_exeext conftest.$ac_ext
67968 fi
67969 ac_res=`eval 'as_val=${'$as_ac_var'}
67970                  $as_echo "$as_val"'`
67971                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67972 $as_echo "$ac_res" >&6; }
67973 as_val=`eval 'as_val=${'$as_ac_var'}
67974                  $as_echo "$as_val"'`
67975    if test "x$as_val" = x""yes; then
67976   cat >>confdefs.h <<_ACEOF
67977 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67978 _ACEOF
67979  ice_have_vsnprintf=yes
67980 fi
67981 done
67982
67983 if test "${ice_have_vsnprintf}" = yes; then
67984 { $as_echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
67985 $as_echo_n "checking for vsnprintf declaration in stdio.h... " >&6; }
67986 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
67987   $as_echo_n "(cached) " >&6
67988 else
67989
67990 ice_cv_have_vsnprintf_decl=no
67991 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67992 ice_re_word='(^|[^a-zA-Z0-9_])'
67993 for header in stdio.h; do
67994 # Check for ordinary declaration
67995 cat >conftest.$ac_ext <<_ACEOF
67996 /* confdefs.h.  */
67997 _ACEOF
67998 cat confdefs.h >>conftest.$ac_ext
67999 cat >>conftest.$ac_ext <<_ACEOF
68000 /* end confdefs.h.  */
68001 #include <$header>
68002
68003 _ACEOF
68004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68005   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then
68006   ice_cv_have_vsnprintf_decl=yes
68007 fi
68008 rm -f conftest*
68009
68010 if test "$ice_cv_have_vsnprintf_decl" = yes; then
68011         break
68012 fi
68013 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68014 cat >conftest.$ac_ext <<_ACEOF
68015 /* confdefs.h.  */
68016 _ACEOF
68017 cat confdefs.h >>conftest.$ac_ext
68018 cat >>conftest.$ac_ext <<_ACEOF
68019 /* end confdefs.h.  */
68020 #include <$header>
68021
68022 _ACEOF
68023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68024   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68025   ice_cv_have_vsnprintf_decl=yes
68026 fi
68027 rm -f conftest*
68028
68029 if test "$ice_cv_have_vsnprintf_decl" = yes; then
68030         break
68031 fi
68032 done
68033
68034 fi
68035
68036 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
68037 $as_echo "$ice_cv_have_vsnprintf_decl" >&6; }
68038 if test "$ice_cv_have_vsnprintf_decl" = yes; then
68039
68040 cat >>confdefs.h <<_ACEOF
68041 #define HAVE_VSNPRINTF_DECL 1
68042 _ACEOF
68043
68044 fi
68045 fi
68046
68047
68048     { $as_echo "$as_me:$LINENO: checking for setpgid" >&5
68049 $as_echo_n "checking for setpgid... " >&6; }
68050 if test "${ac_cv_func_setpgid+set}" = set; then
68051   $as_echo_n "(cached) " >&6
68052 else
68053   cat >conftest.$ac_ext <<_ACEOF
68054 /* confdefs.h.  */
68055 _ACEOF
68056 cat confdefs.h >>conftest.$ac_ext
68057 cat >>conftest.$ac_ext <<_ACEOF
68058 /* end confdefs.h.  */
68059 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
68060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68061 #define setpgid innocuous_setpgid
68062
68063 /* System header to define __stub macros and hopefully few prototypes,
68064     which can conflict with char setpgid (); below.
68065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68066     <limits.h> exists even on freestanding compilers.  */
68067
68068 #ifdef __STDC__
68069 # include <limits.h>
68070 #else
68071 # include <assert.h>
68072 #endif
68073
68074 #undef setpgid
68075
68076 /* Override any GCC internal prototype to avoid an error.
68077    Use char because int might match the return type of a GCC
68078    builtin and then its argument prototype would still apply.  */
68079 #ifdef __cplusplus
68080 extern "C"
68081 #endif
68082 char setpgid ();
68083 /* The GNU C library defines this for functions which it implements
68084     to always fail with ENOSYS.  Some functions are actually named
68085     something starting with __ and the normal name is an alias.  */
68086 #if defined __stub_setpgid || defined __stub___setpgid
68087 choke me
68088 #endif
68089
68090 int
68091 main ()
68092 {
68093 return setpgid ();
68094   ;
68095   return 0;
68096 }
68097 _ACEOF
68098 rm -f conftest.$ac_objext conftest$ac_exeext
68099 if { (ac_try="$ac_link"
68100 case "(($ac_try" in
68101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68102   *) ac_try_echo=$ac_try;;
68103 esac
68104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68105 $as_echo "$ac_try_echo") >&5
68106   (eval "$ac_link") 2>conftest.er1
68107   ac_status=$?
68108   grep -v '^ *+' conftest.er1 >conftest.err
68109   rm -f conftest.er1
68110   cat conftest.err >&5
68111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68112   (exit $ac_status); } && {
68113          test -z "$ac_c_werror_flag" ||
68114          test ! -s conftest.err
68115        } && test -s conftest$ac_exeext && {
68116          test "$cross_compiling" = yes ||
68117          $as_test_x conftest$ac_exeext
68118        }; then
68119   ac_cv_func_setpgid=yes
68120 else
68121   $as_echo "$as_me: failed program was:" >&5
68122 sed 's/^/| /' conftest.$ac_ext >&5
68123
68124         ac_cv_func_setpgid=no
68125 fi
68126
68127 rm -rf conftest.dSYM
68128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68129       conftest$ac_exeext conftest.$ac_ext
68130 fi
68131 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
68132 $as_echo "$ac_cv_func_setpgid" >&6; }
68133 if test "x$ac_cv_func_setpgid" = x""yes; then
68134
68135
68136 cat >>confdefs.h <<\_ACEOF
68137 #define HAVE_SETPGID 1
68138 _ACEOF
68139
68140
68141 ice_have_setpgid=no
68142
68143 for ac_func in setpgid
68144 do
68145 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68146 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68147 $as_echo_n "checking for $ac_func... " >&6; }
68148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68149   $as_echo_n "(cached) " >&6
68150 else
68151   cat >conftest.$ac_ext <<_ACEOF
68152 /* confdefs.h.  */
68153 _ACEOF
68154 cat confdefs.h >>conftest.$ac_ext
68155 cat >>conftest.$ac_ext <<_ACEOF
68156 /* end confdefs.h.  */
68157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68159 #define $ac_func innocuous_$ac_func
68160
68161 /* System header to define __stub macros and hopefully few prototypes,
68162     which can conflict with char $ac_func (); below.
68163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68164     <limits.h> exists even on freestanding compilers.  */
68165
68166 #ifdef __STDC__
68167 # include <limits.h>
68168 #else
68169 # include <assert.h>
68170 #endif
68171
68172 #undef $ac_func
68173
68174 /* Override any GCC internal prototype to avoid an error.
68175    Use char because int might match the return type of a GCC
68176    builtin and then its argument prototype would still apply.  */
68177 #ifdef __cplusplus
68178 extern "C"
68179 #endif
68180 char $ac_func ();
68181 /* The GNU C library defines this for functions which it implements
68182     to always fail with ENOSYS.  Some functions are actually named
68183     something starting with __ and the normal name is an alias.  */
68184 #if defined __stub_$ac_func || defined __stub___$ac_func
68185 choke me
68186 #endif
68187
68188 int
68189 main ()
68190 {
68191 return $ac_func ();
68192   ;
68193   return 0;
68194 }
68195 _ACEOF
68196 rm -f conftest.$ac_objext conftest$ac_exeext
68197 if { (ac_try="$ac_link"
68198 case "(($ac_try" in
68199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68200   *) ac_try_echo=$ac_try;;
68201 esac
68202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68203 $as_echo "$ac_try_echo") >&5
68204   (eval "$ac_link") 2>conftest.er1
68205   ac_status=$?
68206   grep -v '^ *+' conftest.er1 >conftest.err
68207   rm -f conftest.er1
68208   cat conftest.err >&5
68209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68210   (exit $ac_status); } && {
68211          test -z "$ac_c_werror_flag" ||
68212          test ! -s conftest.err
68213        } && test -s conftest$ac_exeext && {
68214          test "$cross_compiling" = yes ||
68215          $as_test_x conftest$ac_exeext
68216        }; then
68217   eval "$as_ac_var=yes"
68218 else
68219   $as_echo "$as_me: failed program was:" >&5
68220 sed 's/^/| /' conftest.$ac_ext >&5
68221
68222         eval "$as_ac_var=no"
68223 fi
68224
68225 rm -rf conftest.dSYM
68226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68227       conftest$ac_exeext conftest.$ac_ext
68228 fi
68229 ac_res=`eval 'as_val=${'$as_ac_var'}
68230                  $as_echo "$as_val"'`
68231                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68232 $as_echo "$ac_res" >&6; }
68233 as_val=`eval 'as_val=${'$as_ac_var'}
68234                  $as_echo "$as_val"'`
68235    if test "x$as_val" = x""yes; then
68236   cat >>confdefs.h <<_ACEOF
68237 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68238 _ACEOF
68239  ice_have_setpgid=yes
68240 fi
68241 done
68242
68243 if test "${ice_have_setpgid}" = yes; then
68244 { $as_echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
68245 $as_echo_n "checking for setpgid declaration in sys/types.h unistd.h... " >&6; }
68246 if test "${ice_cv_have_setpgid_decl+set}" = set; then
68247   $as_echo_n "(cached) " >&6
68248 else
68249
68250 ice_cv_have_setpgid_decl=no
68251 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68252 ice_re_word='(^|[^a-zA-Z0-9_])'
68253 for header in sys/types.h unistd.h; do
68254 # Check for ordinary declaration
68255 cat >conftest.$ac_ext <<_ACEOF
68256 /* confdefs.h.  */
68257 _ACEOF
68258 cat confdefs.h >>conftest.$ac_ext
68259 cat >>conftest.$ac_ext <<_ACEOF
68260 /* end confdefs.h.  */
68261 #include <$header>
68262
68263 _ACEOF
68264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68265   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then
68266   ice_cv_have_setpgid_decl=yes
68267 fi
68268 rm -f conftest*
68269
68270 if test "$ice_cv_have_setpgid_decl" = yes; then
68271         break
68272 fi
68273 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68274 cat >conftest.$ac_ext <<_ACEOF
68275 /* confdefs.h.  */
68276 _ACEOF
68277 cat confdefs.h >>conftest.$ac_ext
68278 cat >>conftest.$ac_ext <<_ACEOF
68279 /* end confdefs.h.  */
68280 #include <$header>
68281
68282 _ACEOF
68283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68284   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68285   ice_cv_have_setpgid_decl=yes
68286 fi
68287 rm -f conftest*
68288
68289 if test "$ice_cv_have_setpgid_decl" = yes; then
68290         break
68291 fi
68292 done
68293
68294 fi
68295
68296 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
68297 $as_echo "$ice_cv_have_setpgid_decl" >&6; }
68298 if test "$ice_cv_have_setpgid_decl" = yes; then
68299
68300 cat >>confdefs.h <<_ACEOF
68301 #define HAVE_SETPGID_DECL 1
68302 _ACEOF
68303
68304 fi
68305 fi
68306
68307
68308 fi
68309
68310
68311 { $as_echo "$as_me:$LINENO: checking for setpgrp" >&5
68312 $as_echo_n "checking for setpgrp... " >&6; }
68313 if test "${ac_cv_func_setpgrp+set}" = set; then
68314   $as_echo_n "(cached) " >&6
68315 else
68316   cat >conftest.$ac_ext <<_ACEOF
68317 /* confdefs.h.  */
68318 _ACEOF
68319 cat confdefs.h >>conftest.$ac_ext
68320 cat >>conftest.$ac_ext <<_ACEOF
68321 /* end confdefs.h.  */
68322 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
68323    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68324 #define setpgrp innocuous_setpgrp
68325
68326 /* System header to define __stub macros and hopefully few prototypes,
68327     which can conflict with char setpgrp (); below.
68328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68329     <limits.h> exists even on freestanding compilers.  */
68330
68331 #ifdef __STDC__
68332 # include <limits.h>
68333 #else
68334 # include <assert.h>
68335 #endif
68336
68337 #undef setpgrp
68338
68339 /* Override any GCC internal prototype to avoid an error.
68340    Use char because int might match the return type of a GCC
68341    builtin and then its argument prototype would still apply.  */
68342 #ifdef __cplusplus
68343 extern "C"
68344 #endif
68345 char setpgrp ();
68346 /* The GNU C library defines this for functions which it implements
68347     to always fail with ENOSYS.  Some functions are actually named
68348     something starting with __ and the normal name is an alias.  */
68349 #if defined __stub_setpgrp || defined __stub___setpgrp
68350 choke me
68351 #endif
68352
68353 int
68354 main ()
68355 {
68356 return setpgrp ();
68357   ;
68358   return 0;
68359 }
68360 _ACEOF
68361 rm -f conftest.$ac_objext conftest$ac_exeext
68362 if { (ac_try="$ac_link"
68363 case "(($ac_try" in
68364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68365   *) ac_try_echo=$ac_try;;
68366 esac
68367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68368 $as_echo "$ac_try_echo") >&5
68369   (eval "$ac_link") 2>conftest.er1
68370   ac_status=$?
68371   grep -v '^ *+' conftest.er1 >conftest.err
68372   rm -f conftest.er1
68373   cat conftest.err >&5
68374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68375   (exit $ac_status); } && {
68376          test -z "$ac_c_werror_flag" ||
68377          test ! -s conftest.err
68378        } && test -s conftest$ac_exeext && {
68379          test "$cross_compiling" = yes ||
68380          $as_test_x conftest$ac_exeext
68381        }; then
68382   ac_cv_func_setpgrp=yes
68383 else
68384   $as_echo "$as_me: failed program was:" >&5
68385 sed 's/^/| /' conftest.$ac_ext >&5
68386
68387         ac_cv_func_setpgrp=no
68388 fi
68389
68390 rm -rf conftest.dSYM
68391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68392       conftest$ac_exeext conftest.$ac_ext
68393 fi
68394 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
68395 $as_echo "$ac_cv_func_setpgrp" >&6; }
68396 if test "x$ac_cv_func_setpgrp" = x""yes; then
68397   { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
68398 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
68399 if test "${ac_cv_func_setpgrp_void+set}" = set; then
68400   $as_echo_n "(cached) " >&6
68401 else
68402   if test "$cross_compiling" = yes; then
68403   { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
68404 $as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
68405    { (exit 1); exit 1; }; }
68406 else
68407   cat >conftest.$ac_ext <<_ACEOF
68408 /* confdefs.h.  */
68409 _ACEOF
68410 cat confdefs.h >>conftest.$ac_ext
68411 cat >>conftest.$ac_ext <<_ACEOF
68412 /* end confdefs.h.  */
68413 $ac_includes_default
68414 int
68415 main ()
68416 {
68417 /* If this system has a BSD-style setpgrp which takes arguments,
68418   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
68419   exit successfully. */
68420   return setpgrp (1,1) != -1;
68421   ;
68422   return 0;
68423 }
68424 _ACEOF
68425 rm -f conftest$ac_exeext
68426 if { (ac_try="$ac_link"
68427 case "(($ac_try" in
68428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68429   *) ac_try_echo=$ac_try;;
68430 esac
68431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68432 $as_echo "$ac_try_echo") >&5
68433   (eval "$ac_link") 2>&5
68434   ac_status=$?
68435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68436   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
68437   { (case "(($ac_try" in
68438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68439   *) ac_try_echo=$ac_try;;
68440 esac
68441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68442 $as_echo "$ac_try_echo") >&5
68443   (eval "$ac_try") 2>&5
68444   ac_status=$?
68445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68446   (exit $ac_status); }; }; then
68447   ac_cv_func_setpgrp_void=no
68448 else
68449   $as_echo "$as_me: program exited with status $ac_status" >&5
68450 $as_echo "$as_me: failed program was:" >&5
68451 sed 's/^/| /' conftest.$ac_ext >&5
68452
68453 ( exit $ac_status )
68454 ac_cv_func_setpgrp_void=yes
68455 fi
68456 rm -rf conftest.dSYM
68457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
68458 fi
68459
68460
68461 fi
68462 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
68463 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
68464 if test $ac_cv_func_setpgrp_void = yes; then
68465
68466 cat >>confdefs.h <<\_ACEOF
68467 #define SETPGRP_VOID 1
68468 _ACEOF
68469
68470 fi
68471
68472 fi
68473
68474
68475 ice_have_setpgrp=no
68476
68477 for ac_func in setpgrp
68478 do
68479 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68480 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68481 $as_echo_n "checking for $ac_func... " >&6; }
68482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68483   $as_echo_n "(cached) " >&6
68484 else
68485   cat >conftest.$ac_ext <<_ACEOF
68486 /* confdefs.h.  */
68487 _ACEOF
68488 cat confdefs.h >>conftest.$ac_ext
68489 cat >>conftest.$ac_ext <<_ACEOF
68490 /* end confdefs.h.  */
68491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68493 #define $ac_func innocuous_$ac_func
68494
68495 /* System header to define __stub macros and hopefully few prototypes,
68496     which can conflict with char $ac_func (); below.
68497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68498     <limits.h> exists even on freestanding compilers.  */
68499
68500 #ifdef __STDC__
68501 # include <limits.h>
68502 #else
68503 # include <assert.h>
68504 #endif
68505
68506 #undef $ac_func
68507
68508 /* Override any GCC internal prototype to avoid an error.
68509    Use char because int might match the return type of a GCC
68510    builtin and then its argument prototype would still apply.  */
68511 #ifdef __cplusplus
68512 extern "C"
68513 #endif
68514 char $ac_func ();
68515 /* The GNU C library defines this for functions which it implements
68516     to always fail with ENOSYS.  Some functions are actually named
68517     something starting with __ and the normal name is an alias.  */
68518 #if defined __stub_$ac_func || defined __stub___$ac_func
68519 choke me
68520 #endif
68521
68522 int
68523 main ()
68524 {
68525 return $ac_func ();
68526   ;
68527   return 0;
68528 }
68529 _ACEOF
68530 rm -f conftest.$ac_objext conftest$ac_exeext
68531 if { (ac_try="$ac_link"
68532 case "(($ac_try" in
68533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68534   *) ac_try_echo=$ac_try;;
68535 esac
68536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68537 $as_echo "$ac_try_echo") >&5
68538   (eval "$ac_link") 2>conftest.er1
68539   ac_status=$?
68540   grep -v '^ *+' conftest.er1 >conftest.err
68541   rm -f conftest.er1
68542   cat conftest.err >&5
68543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68544   (exit $ac_status); } && {
68545          test -z "$ac_c_werror_flag" ||
68546          test ! -s conftest.err
68547        } && test -s conftest$ac_exeext && {
68548          test "$cross_compiling" = yes ||
68549          $as_test_x conftest$ac_exeext
68550        }; then
68551   eval "$as_ac_var=yes"
68552 else
68553   $as_echo "$as_me: failed program was:" >&5
68554 sed 's/^/| /' conftest.$ac_ext >&5
68555
68556         eval "$as_ac_var=no"
68557 fi
68558
68559 rm -rf conftest.dSYM
68560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68561       conftest$ac_exeext conftest.$ac_ext
68562 fi
68563 ac_res=`eval 'as_val=${'$as_ac_var'}
68564                  $as_echo "$as_val"'`
68565                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68566 $as_echo "$ac_res" >&6; }
68567 as_val=`eval 'as_val=${'$as_ac_var'}
68568                  $as_echo "$as_val"'`
68569    if test "x$as_val" = x""yes; then
68570   cat >>confdefs.h <<_ACEOF
68571 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68572 _ACEOF
68573  ice_have_setpgrp=yes
68574 fi
68575 done
68576
68577 if test "${ice_have_setpgrp}" = yes; then
68578 { $as_echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
68579 $as_echo_n "checking for setpgrp declaration in sys/types.h unistd.h libc.h... " >&6; }
68580 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
68581   $as_echo_n "(cached) " >&6
68582 else
68583
68584 ice_cv_have_setpgrp_decl=no
68585 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68586 ice_re_word='(^|[^a-zA-Z0-9_])'
68587 for header in sys/types.h unistd.h libc.h; do
68588 # Check for ordinary declaration
68589 cat >conftest.$ac_ext <<_ACEOF
68590 /* confdefs.h.  */
68591 _ACEOF
68592 cat confdefs.h >>conftest.$ac_ext
68593 cat >>conftest.$ac_ext <<_ACEOF
68594 /* end confdefs.h.  */
68595 #include <$header>
68596
68597 _ACEOF
68598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68599   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then
68600   ice_cv_have_setpgrp_decl=yes
68601 fi
68602 rm -f conftest*
68603
68604 if test "$ice_cv_have_setpgrp_decl" = yes; then
68605         break
68606 fi
68607 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68608 cat >conftest.$ac_ext <<_ACEOF
68609 /* confdefs.h.  */
68610 _ACEOF
68611 cat confdefs.h >>conftest.$ac_ext
68612 cat >>conftest.$ac_ext <<_ACEOF
68613 /* end confdefs.h.  */
68614 #include <$header>
68615
68616 _ACEOF
68617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68618   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68619   ice_cv_have_setpgrp_decl=yes
68620 fi
68621 rm -f conftest*
68622
68623 if test "$ice_cv_have_setpgrp_decl" = yes; then
68624         break
68625 fi
68626 done
68627
68628 fi
68629
68630 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
68631 $as_echo "$ice_cv_have_setpgrp_decl" >&6; }
68632 if test "$ice_cv_have_setpgrp_decl" = yes; then
68633
68634 cat >>confdefs.h <<_ACEOF
68635 #define HAVE_SETPGRP_DECL 1
68636 _ACEOF
68637
68638 fi
68639 fi
68640
68641
68642 ice_have_setsockopt=no
68643
68644 for ac_func in setsockopt
68645 do
68646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68647 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68648 $as_echo_n "checking for $ac_func... " >&6; }
68649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68650   $as_echo_n "(cached) " >&6
68651 else
68652   cat >conftest.$ac_ext <<_ACEOF
68653 /* confdefs.h.  */
68654 _ACEOF
68655 cat confdefs.h >>conftest.$ac_ext
68656 cat >>conftest.$ac_ext <<_ACEOF
68657 /* end confdefs.h.  */
68658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68660 #define $ac_func innocuous_$ac_func
68661
68662 /* System header to define __stub macros and hopefully few prototypes,
68663     which can conflict with char $ac_func (); below.
68664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68665     <limits.h> exists even on freestanding compilers.  */
68666
68667 #ifdef __STDC__
68668 # include <limits.h>
68669 #else
68670 # include <assert.h>
68671 #endif
68672
68673 #undef $ac_func
68674
68675 /* Override any GCC internal prototype to avoid an error.
68676    Use char because int might match the return type of a GCC
68677    builtin and then its argument prototype would still apply.  */
68678 #ifdef __cplusplus
68679 extern "C"
68680 #endif
68681 char $ac_func ();
68682 /* The GNU C library defines this for functions which it implements
68683     to always fail with ENOSYS.  Some functions are actually named
68684     something starting with __ and the normal name is an alias.  */
68685 #if defined __stub_$ac_func || defined __stub___$ac_func
68686 choke me
68687 #endif
68688
68689 int
68690 main ()
68691 {
68692 return $ac_func ();
68693   ;
68694   return 0;
68695 }
68696 _ACEOF
68697 rm -f conftest.$ac_objext conftest$ac_exeext
68698 if { (ac_try="$ac_link"
68699 case "(($ac_try" in
68700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68701   *) ac_try_echo=$ac_try;;
68702 esac
68703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68704 $as_echo "$ac_try_echo") >&5
68705   (eval "$ac_link") 2>conftest.er1
68706   ac_status=$?
68707   grep -v '^ *+' conftest.er1 >conftest.err
68708   rm -f conftest.er1
68709   cat conftest.err >&5
68710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68711   (exit $ac_status); } && {
68712          test -z "$ac_c_werror_flag" ||
68713          test ! -s conftest.err
68714        } && test -s conftest$ac_exeext && {
68715          test "$cross_compiling" = yes ||
68716          $as_test_x conftest$ac_exeext
68717        }; then
68718   eval "$as_ac_var=yes"
68719 else
68720   $as_echo "$as_me: failed program was:" >&5
68721 sed 's/^/| /' conftest.$ac_ext >&5
68722
68723         eval "$as_ac_var=no"
68724 fi
68725
68726 rm -rf conftest.dSYM
68727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68728       conftest$ac_exeext conftest.$ac_ext
68729 fi
68730 ac_res=`eval 'as_val=${'$as_ac_var'}
68731                  $as_echo "$as_val"'`
68732                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68733 $as_echo "$ac_res" >&6; }
68734 as_val=`eval 'as_val=${'$as_ac_var'}
68735                  $as_echo "$as_val"'`
68736    if test "x$as_val" = x""yes; then
68737   cat >>confdefs.h <<_ACEOF
68738 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68739 _ACEOF
68740  ice_have_setsockopt=yes
68741 fi
68742 done
68743
68744 if test "${ice_have_setsockopt}" = yes; then
68745 { $as_echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
68746 $as_echo_n "checking for setsockopt declaration in sys/types.h sys/socket.h... " >&6; }
68747 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
68748   $as_echo_n "(cached) " >&6
68749 else
68750
68751 ice_cv_have_setsockopt_decl=no
68752 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68753 ice_re_word='(^|[^a-zA-Z0-9_])'
68754 for header in sys/types.h sys/socket.h; do
68755 # Check for ordinary declaration
68756 cat >conftest.$ac_ext <<_ACEOF
68757 /* confdefs.h.  */
68758 _ACEOF
68759 cat confdefs.h >>conftest.$ac_ext
68760 cat >>conftest.$ac_ext <<_ACEOF
68761 /* end confdefs.h.  */
68762 #include <$header>
68763
68764 _ACEOF
68765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68766   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then
68767   ice_cv_have_setsockopt_decl=yes
68768 fi
68769 rm -f conftest*
68770
68771 if test "$ice_cv_have_setsockopt_decl" = yes; then
68772         break
68773 fi
68774 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68775 cat >conftest.$ac_ext <<_ACEOF
68776 /* confdefs.h.  */
68777 _ACEOF
68778 cat confdefs.h >>conftest.$ac_ext
68779 cat >>conftest.$ac_ext <<_ACEOF
68780 /* end confdefs.h.  */
68781 #include <$header>
68782
68783 _ACEOF
68784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68785   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68786   ice_cv_have_setsockopt_decl=yes
68787 fi
68788 rm -f conftest*
68789
68790 if test "$ice_cv_have_setsockopt_decl" = yes; then
68791         break
68792 fi
68793 done
68794
68795 fi
68796
68797 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
68798 $as_echo "$ice_cv_have_setsockopt_decl" >&6; }
68799 if test "$ice_cv_have_setsockopt_decl" = yes; then
68800
68801 cat >>confdefs.h <<_ACEOF
68802 #define HAVE_SETSOCKOPT_DECL 1
68803 _ACEOF
68804
68805 fi
68806 fi
68807
68808
68809
68810
68811 for ac_func in sigaction sigemptyset sigvec
68812 do
68813 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68814 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68815 $as_echo_n "checking for $ac_func... " >&6; }
68816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68817   $as_echo_n "(cached) " >&6
68818 else
68819   cat >conftest.$ac_ext <<_ACEOF
68820 /* confdefs.h.  */
68821 _ACEOF
68822 cat confdefs.h >>conftest.$ac_ext
68823 cat >>conftest.$ac_ext <<_ACEOF
68824 /* end confdefs.h.  */
68825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68827 #define $ac_func innocuous_$ac_func
68828
68829 /* System header to define __stub macros and hopefully few prototypes,
68830     which can conflict with char $ac_func (); below.
68831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68832     <limits.h> exists even on freestanding compilers.  */
68833
68834 #ifdef __STDC__
68835 # include <limits.h>
68836 #else
68837 # include <assert.h>
68838 #endif
68839
68840 #undef $ac_func
68841
68842 /* Override any GCC internal prototype to avoid an error.
68843    Use char because int might match the return type of a GCC
68844    builtin and then its argument prototype would still apply.  */
68845 #ifdef __cplusplus
68846 extern "C"
68847 #endif
68848 char $ac_func ();
68849 /* The GNU C library defines this for functions which it implements
68850     to always fail with ENOSYS.  Some functions are actually named
68851     something starting with __ and the normal name is an alias.  */
68852 #if defined __stub_$ac_func || defined __stub___$ac_func
68853 choke me
68854 #endif
68855
68856 int
68857 main ()
68858 {
68859 return $ac_func ();
68860   ;
68861   return 0;
68862 }
68863 _ACEOF
68864 rm -f conftest.$ac_objext conftest$ac_exeext
68865 if { (ac_try="$ac_link"
68866 case "(($ac_try" in
68867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68868   *) ac_try_echo=$ac_try;;
68869 esac
68870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68871 $as_echo "$ac_try_echo") >&5
68872   (eval "$ac_link") 2>conftest.er1
68873   ac_status=$?
68874   grep -v '^ *+' conftest.er1 >conftest.err
68875   rm -f conftest.er1
68876   cat conftest.err >&5
68877   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68878   (exit $ac_status); } && {
68879          test -z "$ac_c_werror_flag" ||
68880          test ! -s conftest.err
68881        } && test -s conftest$ac_exeext && {
68882          test "$cross_compiling" = yes ||
68883          $as_test_x conftest$ac_exeext
68884        }; then
68885   eval "$as_ac_var=yes"
68886 else
68887   $as_echo "$as_me: failed program was:" >&5
68888 sed 's/^/| /' conftest.$ac_ext >&5
68889
68890         eval "$as_ac_var=no"
68891 fi
68892
68893 rm -rf conftest.dSYM
68894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68895       conftest$ac_exeext conftest.$ac_ext
68896 fi
68897 ac_res=`eval 'as_val=${'$as_ac_var'}
68898                  $as_echo "$as_val"'`
68899                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68900 $as_echo "$ac_res" >&6; }
68901 as_val=`eval 'as_val=${'$as_ac_var'}
68902                  $as_echo "$as_val"'`
68903    if test "x$as_val" = x""yes; then
68904   cat >>confdefs.h <<_ACEOF
68905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68906 _ACEOF
68907
68908 fi
68909 done
68910
68911
68912 ice_have_socket=no
68913
68914 for ac_func in socket
68915 do
68916 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68917 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68918 $as_echo_n "checking for $ac_func... " >&6; }
68919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68920   $as_echo_n "(cached) " >&6
68921 else
68922   cat >conftest.$ac_ext <<_ACEOF
68923 /* confdefs.h.  */
68924 _ACEOF
68925 cat confdefs.h >>conftest.$ac_ext
68926 cat >>conftest.$ac_ext <<_ACEOF
68927 /* end confdefs.h.  */
68928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68930 #define $ac_func innocuous_$ac_func
68931
68932 /* System header to define __stub macros and hopefully few prototypes,
68933     which can conflict with char $ac_func (); below.
68934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68935     <limits.h> exists even on freestanding compilers.  */
68936
68937 #ifdef __STDC__
68938 # include <limits.h>
68939 #else
68940 # include <assert.h>
68941 #endif
68942
68943 #undef $ac_func
68944
68945 /* Override any GCC internal prototype to avoid an error.
68946    Use char because int might match the return type of a GCC
68947    builtin and then its argument prototype would still apply.  */
68948 #ifdef __cplusplus
68949 extern "C"
68950 #endif
68951 char $ac_func ();
68952 /* The GNU C library defines this for functions which it implements
68953     to always fail with ENOSYS.  Some functions are actually named
68954     something starting with __ and the normal name is an alias.  */
68955 #if defined __stub_$ac_func || defined __stub___$ac_func
68956 choke me
68957 #endif
68958
68959 int
68960 main ()
68961 {
68962 return $ac_func ();
68963   ;
68964   return 0;
68965 }
68966 _ACEOF
68967 rm -f conftest.$ac_objext conftest$ac_exeext
68968 if { (ac_try="$ac_link"
68969 case "(($ac_try" in
68970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68971   *) ac_try_echo=$ac_try;;
68972 esac
68973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68974 $as_echo "$ac_try_echo") >&5
68975   (eval "$ac_link") 2>conftest.er1
68976   ac_status=$?
68977   grep -v '^ *+' conftest.er1 >conftest.err
68978   rm -f conftest.er1
68979   cat conftest.err >&5
68980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68981   (exit $ac_status); } && {
68982          test -z "$ac_c_werror_flag" ||
68983          test ! -s conftest.err
68984        } && test -s conftest$ac_exeext && {
68985          test "$cross_compiling" = yes ||
68986          $as_test_x conftest$ac_exeext
68987        }; then
68988   eval "$as_ac_var=yes"
68989 else
68990   $as_echo "$as_me: failed program was:" >&5
68991 sed 's/^/| /' conftest.$ac_ext >&5
68992
68993         eval "$as_ac_var=no"
68994 fi
68995
68996 rm -rf conftest.dSYM
68997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68998       conftest$ac_exeext conftest.$ac_ext
68999 fi
69000 ac_res=`eval 'as_val=${'$as_ac_var'}
69001                  $as_echo "$as_val"'`
69002                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69003 $as_echo "$ac_res" >&6; }
69004 as_val=`eval 'as_val=${'$as_ac_var'}
69005                  $as_echo "$as_val"'`
69006    if test "x$as_val" = x""yes; then
69007   cat >>confdefs.h <<_ACEOF
69008 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69009 _ACEOF
69010  ice_have_socket=yes
69011 fi
69012 done
69013
69014 if test "${ice_have_socket}" = yes; then
69015 { $as_echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
69016 $as_echo_n "checking for socket declaration in sys/types.h sys/socket.h... " >&6; }
69017 if test "${ice_cv_have_socket_decl+set}" = set; then
69018   $as_echo_n "(cached) " >&6
69019 else
69020
69021 ice_cv_have_socket_decl=no
69022 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69023 ice_re_word='(^|[^a-zA-Z0-9_])'
69024 for header in sys/types.h sys/socket.h; do
69025 # Check for ordinary declaration
69026 cat >conftest.$ac_ext <<_ACEOF
69027 /* confdefs.h.  */
69028 _ACEOF
69029 cat confdefs.h >>conftest.$ac_ext
69030 cat >>conftest.$ac_ext <<_ACEOF
69031 /* end confdefs.h.  */
69032 #include <$header>
69033
69034 _ACEOF
69035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69036   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then
69037   ice_cv_have_socket_decl=yes
69038 fi
69039 rm -f conftest*
69040
69041 if test "$ice_cv_have_socket_decl" = yes; then
69042         break
69043 fi
69044 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69045 cat >conftest.$ac_ext <<_ACEOF
69046 /* confdefs.h.  */
69047 _ACEOF
69048 cat confdefs.h >>conftest.$ac_ext
69049 cat >>conftest.$ac_ext <<_ACEOF
69050 /* end confdefs.h.  */
69051 #include <$header>
69052
69053 _ACEOF
69054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69055   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69056   ice_cv_have_socket_decl=yes
69057 fi
69058 rm -f conftest*
69059
69060 if test "$ice_cv_have_socket_decl" = yes; then
69061         break
69062 fi
69063 done
69064
69065 fi
69066
69067 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
69068 $as_echo "$ice_cv_have_socket_decl" >&6; }
69069 if test "$ice_cv_have_socket_decl" = yes; then
69070
69071 cat >>confdefs.h <<_ACEOF
69072 #define HAVE_SOCKET_DECL 1
69073 _ACEOF
69074
69075 fi
69076 fi
69077
69078
69079 ice_have_socketpair=no
69080
69081 for ac_func in socketpair
69082 do
69083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69084 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69085 $as_echo_n "checking for $ac_func... " >&6; }
69086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69087   $as_echo_n "(cached) " >&6
69088 else
69089   cat >conftest.$ac_ext <<_ACEOF
69090 /* confdefs.h.  */
69091 _ACEOF
69092 cat confdefs.h >>conftest.$ac_ext
69093 cat >>conftest.$ac_ext <<_ACEOF
69094 /* end confdefs.h.  */
69095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69097 #define $ac_func innocuous_$ac_func
69098
69099 /* System header to define __stub macros and hopefully few prototypes,
69100     which can conflict with char $ac_func (); below.
69101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69102     <limits.h> exists even on freestanding compilers.  */
69103
69104 #ifdef __STDC__
69105 # include <limits.h>
69106 #else
69107 # include <assert.h>
69108 #endif
69109
69110 #undef $ac_func
69111
69112 /* Override any GCC internal prototype to avoid an error.
69113    Use char because int might match the return type of a GCC
69114    builtin and then its argument prototype would still apply.  */
69115 #ifdef __cplusplus
69116 extern "C"
69117 #endif
69118 char $ac_func ();
69119 /* The GNU C library defines this for functions which it implements
69120     to always fail with ENOSYS.  Some functions are actually named
69121     something starting with __ and the normal name is an alias.  */
69122 #if defined __stub_$ac_func || defined __stub___$ac_func
69123 choke me
69124 #endif
69125
69126 int
69127 main ()
69128 {
69129 return $ac_func ();
69130   ;
69131   return 0;
69132 }
69133 _ACEOF
69134 rm -f conftest.$ac_objext conftest$ac_exeext
69135 if { (ac_try="$ac_link"
69136 case "(($ac_try" in
69137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69138   *) ac_try_echo=$ac_try;;
69139 esac
69140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69141 $as_echo "$ac_try_echo") >&5
69142   (eval "$ac_link") 2>conftest.er1
69143   ac_status=$?
69144   grep -v '^ *+' conftest.er1 >conftest.err
69145   rm -f conftest.er1
69146   cat conftest.err >&5
69147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69148   (exit $ac_status); } && {
69149          test -z "$ac_c_werror_flag" ||
69150          test ! -s conftest.err
69151        } && test -s conftest$ac_exeext && {
69152          test "$cross_compiling" = yes ||
69153          $as_test_x conftest$ac_exeext
69154        }; then
69155   eval "$as_ac_var=yes"
69156 else
69157   $as_echo "$as_me: failed program was:" >&5
69158 sed 's/^/| /' conftest.$ac_ext >&5
69159
69160         eval "$as_ac_var=no"
69161 fi
69162
69163 rm -rf conftest.dSYM
69164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69165       conftest$ac_exeext conftest.$ac_ext
69166 fi
69167 ac_res=`eval 'as_val=${'$as_ac_var'}
69168                  $as_echo "$as_val"'`
69169                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69170 $as_echo "$ac_res" >&6; }
69171 as_val=`eval 'as_val=${'$as_ac_var'}
69172                  $as_echo "$as_val"'`
69173    if test "x$as_val" = x""yes; then
69174   cat >>confdefs.h <<_ACEOF
69175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69176 _ACEOF
69177  ice_have_socketpair=yes
69178 fi
69179 done
69180
69181 if test "${ice_have_socketpair}" = yes; then
69182 { $as_echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
69183 $as_echo_n "checking for socketpair declaration in sys/types.h sys/socket.h... " >&6; }
69184 if test "${ice_cv_have_socketpair_decl+set}" = set; then
69185   $as_echo_n "(cached) " >&6
69186 else
69187
69188 ice_cv_have_socketpair_decl=no
69189 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69190 ice_re_word='(^|[^a-zA-Z0-9_])'
69191 for header in sys/types.h sys/socket.h; do
69192 # Check for ordinary declaration
69193 cat >conftest.$ac_ext <<_ACEOF
69194 /* confdefs.h.  */
69195 _ACEOF
69196 cat confdefs.h >>conftest.$ac_ext
69197 cat >>conftest.$ac_ext <<_ACEOF
69198 /* end confdefs.h.  */
69199 #include <$header>
69200
69201 _ACEOF
69202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69203   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then
69204   ice_cv_have_socketpair_decl=yes
69205 fi
69206 rm -f conftest*
69207
69208 if test "$ice_cv_have_socketpair_decl" = yes; then
69209         break
69210 fi
69211 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69212 cat >conftest.$ac_ext <<_ACEOF
69213 /* confdefs.h.  */
69214 _ACEOF
69215 cat confdefs.h >>conftest.$ac_ext
69216 cat >>conftest.$ac_ext <<_ACEOF
69217 /* end confdefs.h.  */
69218 #include <$header>
69219
69220 _ACEOF
69221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69222   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69223   ice_cv_have_socketpair_decl=yes
69224 fi
69225 rm -f conftest*
69226
69227 if test "$ice_cv_have_socketpair_decl" = yes; then
69228         break
69229 fi
69230 done
69231
69232 fi
69233
69234 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
69235 $as_echo "$ice_cv_have_socketpair_decl" >&6; }
69236 if test "$ice_cv_have_socketpair_decl" = yes; then
69237
69238 cat >>confdefs.h <<_ACEOF
69239 #define HAVE_SOCKETPAIR_DECL 1
69240 _ACEOF
69241
69242 fi
69243 fi
69244
69245
69246 ice_have_sscanf=no
69247
69248 for ac_func in sscanf
69249 do
69250 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69251 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69252 $as_echo_n "checking for $ac_func... " >&6; }
69253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69254   $as_echo_n "(cached) " >&6
69255 else
69256   cat >conftest.$ac_ext <<_ACEOF
69257 /* confdefs.h.  */
69258 _ACEOF
69259 cat confdefs.h >>conftest.$ac_ext
69260 cat >>conftest.$ac_ext <<_ACEOF
69261 /* end confdefs.h.  */
69262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69263    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69264 #define $ac_func innocuous_$ac_func
69265
69266 /* System header to define __stub macros and hopefully few prototypes,
69267     which can conflict with char $ac_func (); below.
69268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69269     <limits.h> exists even on freestanding compilers.  */
69270
69271 #ifdef __STDC__
69272 # include <limits.h>
69273 #else
69274 # include <assert.h>
69275 #endif
69276
69277 #undef $ac_func
69278
69279 /* Override any GCC internal prototype to avoid an error.
69280    Use char because int might match the return type of a GCC
69281    builtin and then its argument prototype would still apply.  */
69282 #ifdef __cplusplus
69283 extern "C"
69284 #endif
69285 char $ac_func ();
69286 /* The GNU C library defines this for functions which it implements
69287     to always fail with ENOSYS.  Some functions are actually named
69288     something starting with __ and the normal name is an alias.  */
69289 #if defined __stub_$ac_func || defined __stub___$ac_func
69290 choke me
69291 #endif
69292
69293 int
69294 main ()
69295 {
69296 return $ac_func ();
69297   ;
69298   return 0;
69299 }
69300 _ACEOF
69301 rm -f conftest.$ac_objext conftest$ac_exeext
69302 if { (ac_try="$ac_link"
69303 case "(($ac_try" in
69304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69305   *) ac_try_echo=$ac_try;;
69306 esac
69307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69308 $as_echo "$ac_try_echo") >&5
69309   (eval "$ac_link") 2>conftest.er1
69310   ac_status=$?
69311   grep -v '^ *+' conftest.er1 >conftest.err
69312   rm -f conftest.er1
69313   cat conftest.err >&5
69314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69315   (exit $ac_status); } && {
69316          test -z "$ac_c_werror_flag" ||
69317          test ! -s conftest.err
69318        } && test -s conftest$ac_exeext && {
69319          test "$cross_compiling" = yes ||
69320          $as_test_x conftest$ac_exeext
69321        }; then
69322   eval "$as_ac_var=yes"
69323 else
69324   $as_echo "$as_me: failed program was:" >&5
69325 sed 's/^/| /' conftest.$ac_ext >&5
69326
69327         eval "$as_ac_var=no"
69328 fi
69329
69330 rm -rf conftest.dSYM
69331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69332       conftest$ac_exeext conftest.$ac_ext
69333 fi
69334 ac_res=`eval 'as_val=${'$as_ac_var'}
69335                  $as_echo "$as_val"'`
69336                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69337 $as_echo "$ac_res" >&6; }
69338 as_val=`eval 'as_val=${'$as_ac_var'}
69339                  $as_echo "$as_val"'`
69340    if test "x$as_val" = x""yes; then
69341   cat >>confdefs.h <<_ACEOF
69342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69343 _ACEOF
69344  ice_have_sscanf=yes
69345 fi
69346 done
69347
69348 if test "${ice_have_sscanf}" = yes; then
69349 { $as_echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
69350 $as_echo_n "checking for sscanf declaration in stdio.h... " >&6; }
69351 if test "${ice_cv_have_sscanf_decl+set}" = set; then
69352   $as_echo_n "(cached) " >&6
69353 else
69354
69355 ice_cv_have_sscanf_decl=no
69356 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69357 ice_re_word='(^|[^a-zA-Z0-9_])'
69358 for header in stdio.h; do
69359 # Check for ordinary declaration
69360 cat >conftest.$ac_ext <<_ACEOF
69361 /* confdefs.h.  */
69362 _ACEOF
69363 cat confdefs.h >>conftest.$ac_ext
69364 cat >>conftest.$ac_ext <<_ACEOF
69365 /* end confdefs.h.  */
69366 #include <$header>
69367
69368 _ACEOF
69369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69370   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then
69371   ice_cv_have_sscanf_decl=yes
69372 fi
69373 rm -f conftest*
69374
69375 if test "$ice_cv_have_sscanf_decl" = yes; then
69376         break
69377 fi
69378 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69379 cat >conftest.$ac_ext <<_ACEOF
69380 /* confdefs.h.  */
69381 _ACEOF
69382 cat confdefs.h >>conftest.$ac_ext
69383 cat >>conftest.$ac_ext <<_ACEOF
69384 /* end confdefs.h.  */
69385 #include <$header>
69386
69387 _ACEOF
69388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69389   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69390   ice_cv_have_sscanf_decl=yes
69391 fi
69392 rm -f conftest*
69393
69394 if test "$ice_cv_have_sscanf_decl" = yes; then
69395         break
69396 fi
69397 done
69398
69399 fi
69400
69401 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
69402 $as_echo "$ice_cv_have_sscanf_decl" >&6; }
69403 if test "$ice_cv_have_sscanf_decl" = yes; then
69404
69405 cat >>confdefs.h <<_ACEOF
69406 #define HAVE_SSCANF_DECL 1
69407 _ACEOF
69408
69409 fi
69410 fi
69411
69412
69413 ice_have_strerror=no
69414
69415 for ac_func in strerror
69416 do
69417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69418 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69419 $as_echo_n "checking for $ac_func... " >&6; }
69420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69421   $as_echo_n "(cached) " >&6
69422 else
69423   cat >conftest.$ac_ext <<_ACEOF
69424 /* confdefs.h.  */
69425 _ACEOF
69426 cat confdefs.h >>conftest.$ac_ext
69427 cat >>conftest.$ac_ext <<_ACEOF
69428 /* end confdefs.h.  */
69429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69431 #define $ac_func innocuous_$ac_func
69432
69433 /* System header to define __stub macros and hopefully few prototypes,
69434     which can conflict with char $ac_func (); below.
69435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69436     <limits.h> exists even on freestanding compilers.  */
69437
69438 #ifdef __STDC__
69439 # include <limits.h>
69440 #else
69441 # include <assert.h>
69442 #endif
69443
69444 #undef $ac_func
69445
69446 /* Override any GCC internal prototype to avoid an error.
69447    Use char because int might match the return type of a GCC
69448    builtin and then its argument prototype would still apply.  */
69449 #ifdef __cplusplus
69450 extern "C"
69451 #endif
69452 char $ac_func ();
69453 /* The GNU C library defines this for functions which it implements
69454     to always fail with ENOSYS.  Some functions are actually named
69455     something starting with __ and the normal name is an alias.  */
69456 #if defined __stub_$ac_func || defined __stub___$ac_func
69457 choke me
69458 #endif
69459
69460 int
69461 main ()
69462 {
69463 return $ac_func ();
69464   ;
69465   return 0;
69466 }
69467 _ACEOF
69468 rm -f conftest.$ac_objext conftest$ac_exeext
69469 if { (ac_try="$ac_link"
69470 case "(($ac_try" in
69471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69472   *) ac_try_echo=$ac_try;;
69473 esac
69474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69475 $as_echo "$ac_try_echo") >&5
69476   (eval "$ac_link") 2>conftest.er1
69477   ac_status=$?
69478   grep -v '^ *+' conftest.er1 >conftest.err
69479   rm -f conftest.er1
69480   cat conftest.err >&5
69481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69482   (exit $ac_status); } && {
69483          test -z "$ac_c_werror_flag" ||
69484          test ! -s conftest.err
69485        } && test -s conftest$ac_exeext && {
69486          test "$cross_compiling" = yes ||
69487          $as_test_x conftest$ac_exeext
69488        }; then
69489   eval "$as_ac_var=yes"
69490 else
69491   $as_echo "$as_me: failed program was:" >&5
69492 sed 's/^/| /' conftest.$ac_ext >&5
69493
69494         eval "$as_ac_var=no"
69495 fi
69496
69497 rm -rf conftest.dSYM
69498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69499       conftest$ac_exeext conftest.$ac_ext
69500 fi
69501 ac_res=`eval 'as_val=${'$as_ac_var'}
69502                  $as_echo "$as_val"'`
69503                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69504 $as_echo "$ac_res" >&6; }
69505 as_val=`eval 'as_val=${'$as_ac_var'}
69506                  $as_echo "$as_val"'`
69507    if test "x$as_val" = x""yes; then
69508   cat >>confdefs.h <<_ACEOF
69509 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69510 _ACEOF
69511  ice_have_strerror=yes
69512 fi
69513 done
69514
69515 if test "${ice_have_strerror}" = yes; then
69516 { $as_echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
69517 $as_echo_n "checking for strerror declaration in string.h strings.h... " >&6; }
69518 if test "${ice_cv_have_strerror_decl+set}" = set; then
69519   $as_echo_n "(cached) " >&6
69520 else
69521
69522 ice_cv_have_strerror_decl=no
69523 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69524 ice_re_word='(^|[^a-zA-Z0-9_])'
69525 for header in string.h strings.h; do
69526 # Check for ordinary declaration
69527 cat >conftest.$ac_ext <<_ACEOF
69528 /* confdefs.h.  */
69529 _ACEOF
69530 cat confdefs.h >>conftest.$ac_ext
69531 cat >>conftest.$ac_ext <<_ACEOF
69532 /* end confdefs.h.  */
69533 #include <$header>
69534
69535 _ACEOF
69536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69537   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then
69538   ice_cv_have_strerror_decl=yes
69539 fi
69540 rm -f conftest*
69541
69542 if test "$ice_cv_have_strerror_decl" = yes; then
69543         break
69544 fi
69545 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69546 cat >conftest.$ac_ext <<_ACEOF
69547 /* confdefs.h.  */
69548 _ACEOF
69549 cat confdefs.h >>conftest.$ac_ext
69550 cat >>conftest.$ac_ext <<_ACEOF
69551 /* end confdefs.h.  */
69552 #include <$header>
69553
69554 _ACEOF
69555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69556   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69557   ice_cv_have_strerror_decl=yes
69558 fi
69559 rm -f conftest*
69560
69561 if test "$ice_cv_have_strerror_decl" = yes; then
69562         break
69563 fi
69564 done
69565
69566 fi
69567
69568 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
69569 $as_echo "$ice_cv_have_strerror_decl" >&6; }
69570 if test "$ice_cv_have_strerror_decl" = yes; then
69571
69572 cat >>confdefs.h <<_ACEOF
69573 #define HAVE_STRERROR_DECL 1
69574 _ACEOF
69575
69576 fi
69577 fi
69578
69579
69580 for ac_func in strftime
69581 do
69582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69583 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69584 $as_echo_n "checking for $ac_func... " >&6; }
69585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69586   $as_echo_n "(cached) " >&6
69587 else
69588   cat >conftest.$ac_ext <<_ACEOF
69589 /* confdefs.h.  */
69590 _ACEOF
69591 cat confdefs.h >>conftest.$ac_ext
69592 cat >>conftest.$ac_ext <<_ACEOF
69593 /* end confdefs.h.  */
69594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69596 #define $ac_func innocuous_$ac_func
69597
69598 /* System header to define __stub macros and hopefully few prototypes,
69599     which can conflict with char $ac_func (); below.
69600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69601     <limits.h> exists even on freestanding compilers.  */
69602
69603 #ifdef __STDC__
69604 # include <limits.h>
69605 #else
69606 # include <assert.h>
69607 #endif
69608
69609 #undef $ac_func
69610
69611 /* Override any GCC internal prototype to avoid an error.
69612    Use char because int might match the return type of a GCC
69613    builtin and then its argument prototype would still apply.  */
69614 #ifdef __cplusplus
69615 extern "C"
69616 #endif
69617 char $ac_func ();
69618 /* The GNU C library defines this for functions which it implements
69619     to always fail with ENOSYS.  Some functions are actually named
69620     something starting with __ and the normal name is an alias.  */
69621 #if defined __stub_$ac_func || defined __stub___$ac_func
69622 choke me
69623 #endif
69624
69625 int
69626 main ()
69627 {
69628 return $ac_func ();
69629   ;
69630   return 0;
69631 }
69632 _ACEOF
69633 rm -f conftest.$ac_objext conftest$ac_exeext
69634 if { (ac_try="$ac_link"
69635 case "(($ac_try" in
69636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69637   *) ac_try_echo=$ac_try;;
69638 esac
69639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69640 $as_echo "$ac_try_echo") >&5
69641   (eval "$ac_link") 2>conftest.er1
69642   ac_status=$?
69643   grep -v '^ *+' conftest.er1 >conftest.err
69644   rm -f conftest.er1
69645   cat conftest.err >&5
69646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69647   (exit $ac_status); } && {
69648          test -z "$ac_c_werror_flag" ||
69649          test ! -s conftest.err
69650        } && test -s conftest$ac_exeext && {
69651          test "$cross_compiling" = yes ||
69652          $as_test_x conftest$ac_exeext
69653        }; then
69654   eval "$as_ac_var=yes"
69655 else
69656   $as_echo "$as_me: failed program was:" >&5
69657 sed 's/^/| /' conftest.$ac_ext >&5
69658
69659         eval "$as_ac_var=no"
69660 fi
69661
69662 rm -rf conftest.dSYM
69663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69664       conftest$ac_exeext conftest.$ac_ext
69665 fi
69666 ac_res=`eval 'as_val=${'$as_ac_var'}
69667                  $as_echo "$as_val"'`
69668                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69669 $as_echo "$ac_res" >&6; }
69670 as_val=`eval 'as_val=${'$as_ac_var'}
69671                  $as_echo "$as_val"'`
69672    if test "x$as_val" = x""yes; then
69673   cat >>confdefs.h <<_ACEOF
69674 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69675 _ACEOF
69676
69677 else
69678   # strftime is in -lintl on SCO UNIX.
69679 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
69680 $as_echo_n "checking for strftime in -lintl... " >&6; }
69681 if test "${ac_cv_lib_intl_strftime+set}" = set; then
69682   $as_echo_n "(cached) " >&6
69683 else
69684   ac_check_lib_save_LIBS=$LIBS
69685 LIBS="-lintl  $LIBS"
69686 cat >conftest.$ac_ext <<_ACEOF
69687 /* confdefs.h.  */
69688 _ACEOF
69689 cat confdefs.h >>conftest.$ac_ext
69690 cat >>conftest.$ac_ext <<_ACEOF
69691 /* end confdefs.h.  */
69692
69693 /* Override any GCC internal prototype to avoid an error.
69694    Use char because int might match the return type of a GCC
69695    builtin and then its argument prototype would still apply.  */
69696 #ifdef __cplusplus
69697 extern "C"
69698 #endif
69699 char strftime ();
69700 int
69701 main ()
69702 {
69703 return strftime ();
69704   ;
69705   return 0;
69706 }
69707 _ACEOF
69708 rm -f conftest.$ac_objext conftest$ac_exeext
69709 if { (ac_try="$ac_link"
69710 case "(($ac_try" in
69711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69712   *) ac_try_echo=$ac_try;;
69713 esac
69714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69715 $as_echo "$ac_try_echo") >&5
69716   (eval "$ac_link") 2>conftest.er1
69717   ac_status=$?
69718   grep -v '^ *+' conftest.er1 >conftest.err
69719   rm -f conftest.er1
69720   cat conftest.err >&5
69721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69722   (exit $ac_status); } && {
69723          test -z "$ac_c_werror_flag" ||
69724          test ! -s conftest.err
69725        } && test -s conftest$ac_exeext && {
69726          test "$cross_compiling" = yes ||
69727          $as_test_x conftest$ac_exeext
69728        }; then
69729   ac_cv_lib_intl_strftime=yes
69730 else
69731   $as_echo "$as_me: failed program was:" >&5
69732 sed 's/^/| /' conftest.$ac_ext >&5
69733
69734         ac_cv_lib_intl_strftime=no
69735 fi
69736
69737 rm -rf conftest.dSYM
69738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69739       conftest$ac_exeext conftest.$ac_ext
69740 LIBS=$ac_check_lib_save_LIBS
69741 fi
69742 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
69743 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
69744 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
69745   cat >>confdefs.h <<\_ACEOF
69746 #define HAVE_STRFTIME 1
69747 _ACEOF
69748
69749 LIBS="-lintl $LIBS"
69750 fi
69751
69752 fi
69753 done
69754
69755
69756 ice_have_strftime=no
69757
69758 for ac_func in strftime
69759 do
69760 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69761 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69762 $as_echo_n "checking for $ac_func... " >&6; }
69763 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69764   $as_echo_n "(cached) " >&6
69765 else
69766   cat >conftest.$ac_ext <<_ACEOF
69767 /* confdefs.h.  */
69768 _ACEOF
69769 cat confdefs.h >>conftest.$ac_ext
69770 cat >>conftest.$ac_ext <<_ACEOF
69771 /* end confdefs.h.  */
69772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69773    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69774 #define $ac_func innocuous_$ac_func
69775
69776 /* System header to define __stub macros and hopefully few prototypes,
69777     which can conflict with char $ac_func (); below.
69778     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69779     <limits.h> exists even on freestanding compilers.  */
69780
69781 #ifdef __STDC__
69782 # include <limits.h>
69783 #else
69784 # include <assert.h>
69785 #endif
69786
69787 #undef $ac_func
69788
69789 /* Override any GCC internal prototype to avoid an error.
69790    Use char because int might match the return type of a GCC
69791    builtin and then its argument prototype would still apply.  */
69792 #ifdef __cplusplus
69793 extern "C"
69794 #endif
69795 char $ac_func ();
69796 /* The GNU C library defines this for functions which it implements
69797     to always fail with ENOSYS.  Some functions are actually named
69798     something starting with __ and the normal name is an alias.  */
69799 #if defined __stub_$ac_func || defined __stub___$ac_func
69800 choke me
69801 #endif
69802
69803 int
69804 main ()
69805 {
69806 return $ac_func ();
69807   ;
69808   return 0;
69809 }
69810 _ACEOF
69811 rm -f conftest.$ac_objext conftest$ac_exeext
69812 if { (ac_try="$ac_link"
69813 case "(($ac_try" in
69814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69815   *) ac_try_echo=$ac_try;;
69816 esac
69817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69818 $as_echo "$ac_try_echo") >&5
69819   (eval "$ac_link") 2>conftest.er1
69820   ac_status=$?
69821   grep -v '^ *+' conftest.er1 >conftest.err
69822   rm -f conftest.er1
69823   cat conftest.err >&5
69824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69825   (exit $ac_status); } && {
69826          test -z "$ac_c_werror_flag" ||
69827          test ! -s conftest.err
69828        } && test -s conftest$ac_exeext && {
69829          test "$cross_compiling" = yes ||
69830          $as_test_x conftest$ac_exeext
69831        }; then
69832   eval "$as_ac_var=yes"
69833 else
69834   $as_echo "$as_me: failed program was:" >&5
69835 sed 's/^/| /' conftest.$ac_ext >&5
69836
69837         eval "$as_ac_var=no"
69838 fi
69839
69840 rm -rf conftest.dSYM
69841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69842       conftest$ac_exeext conftest.$ac_ext
69843 fi
69844 ac_res=`eval 'as_val=${'$as_ac_var'}
69845                  $as_echo "$as_val"'`
69846                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69847 $as_echo "$ac_res" >&6; }
69848 as_val=`eval 'as_val=${'$as_ac_var'}
69849                  $as_echo "$as_val"'`
69850    if test "x$as_val" = x""yes; then
69851   cat >>confdefs.h <<_ACEOF
69852 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69853 _ACEOF
69854  ice_have_strftime=yes
69855 fi
69856 done
69857
69858 if test "${ice_have_strftime}" = yes; then
69859 { $as_echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
69860 $as_echo_n "checking for strftime declaration in time.h sys/time.h... " >&6; }
69861 if test "${ice_cv_have_strftime_decl+set}" = set; then
69862   $as_echo_n "(cached) " >&6
69863 else
69864
69865 ice_cv_have_strftime_decl=no
69866 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69867 ice_re_word='(^|[^a-zA-Z0-9_])'
69868 for header in time.h sys/time.h; do
69869 # Check for ordinary declaration
69870 cat >conftest.$ac_ext <<_ACEOF
69871 /* confdefs.h.  */
69872 _ACEOF
69873 cat confdefs.h >>conftest.$ac_ext
69874 cat >>conftest.$ac_ext <<_ACEOF
69875 /* end confdefs.h.  */
69876 #include <$header>
69877
69878 _ACEOF
69879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69880   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then
69881   ice_cv_have_strftime_decl=yes
69882 fi
69883 rm -f conftest*
69884
69885 if test "$ice_cv_have_strftime_decl" = yes; then
69886         break
69887 fi
69888 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69889 cat >conftest.$ac_ext <<_ACEOF
69890 /* confdefs.h.  */
69891 _ACEOF
69892 cat confdefs.h >>conftest.$ac_ext
69893 cat >>conftest.$ac_ext <<_ACEOF
69894 /* end confdefs.h.  */
69895 #include <$header>
69896
69897 _ACEOF
69898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69899   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69900   ice_cv_have_strftime_decl=yes
69901 fi
69902 rm -f conftest*
69903
69904 if test "$ice_cv_have_strftime_decl" = yes; then
69905         break
69906 fi
69907 done
69908
69909 fi
69910
69911 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
69912 $as_echo "$ice_cv_have_strftime_decl" >&6; }
69913 if test "$ice_cv_have_strftime_decl" = yes; then
69914
69915 cat >>confdefs.h <<_ACEOF
69916 #define HAVE_STRFTIME_DECL 1
69917 _ACEOF
69918
69919 fi
69920 fi
69921
69922
69923 ice_have_strncasecmp=no
69924
69925 for ac_func in strncasecmp
69926 do
69927 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69928 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69929 $as_echo_n "checking for $ac_func... " >&6; }
69930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69931   $as_echo_n "(cached) " >&6
69932 else
69933   cat >conftest.$ac_ext <<_ACEOF
69934 /* confdefs.h.  */
69935 _ACEOF
69936 cat confdefs.h >>conftest.$ac_ext
69937 cat >>conftest.$ac_ext <<_ACEOF
69938 /* end confdefs.h.  */
69939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69941 #define $ac_func innocuous_$ac_func
69942
69943 /* System header to define __stub macros and hopefully few prototypes,
69944     which can conflict with char $ac_func (); below.
69945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69946     <limits.h> exists even on freestanding compilers.  */
69947
69948 #ifdef __STDC__
69949 # include <limits.h>
69950 #else
69951 # include <assert.h>
69952 #endif
69953
69954 #undef $ac_func
69955
69956 /* Override any GCC internal prototype to avoid an error.
69957    Use char because int might match the return type of a GCC
69958    builtin and then its argument prototype would still apply.  */
69959 #ifdef __cplusplus
69960 extern "C"
69961 #endif
69962 char $ac_func ();
69963 /* The GNU C library defines this for functions which it implements
69964     to always fail with ENOSYS.  Some functions are actually named
69965     something starting with __ and the normal name is an alias.  */
69966 #if defined __stub_$ac_func || defined __stub___$ac_func
69967 choke me
69968 #endif
69969
69970 int
69971 main ()
69972 {
69973 return $ac_func ();
69974   ;
69975   return 0;
69976 }
69977 _ACEOF
69978 rm -f conftest.$ac_objext conftest$ac_exeext
69979 if { (ac_try="$ac_link"
69980 case "(($ac_try" in
69981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69982   *) ac_try_echo=$ac_try;;
69983 esac
69984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69985 $as_echo "$ac_try_echo") >&5
69986   (eval "$ac_link") 2>conftest.er1
69987   ac_status=$?
69988   grep -v '^ *+' conftest.er1 >conftest.err
69989   rm -f conftest.er1
69990   cat conftest.err >&5
69991   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69992   (exit $ac_status); } && {
69993          test -z "$ac_c_werror_flag" ||
69994          test ! -s conftest.err
69995        } && test -s conftest$ac_exeext && {
69996          test "$cross_compiling" = yes ||
69997          $as_test_x conftest$ac_exeext
69998        }; then
69999   eval "$as_ac_var=yes"
70000 else
70001   $as_echo "$as_me: failed program was:" >&5
70002 sed 's/^/| /' conftest.$ac_ext >&5
70003
70004         eval "$as_ac_var=no"
70005 fi
70006
70007 rm -rf conftest.dSYM
70008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70009       conftest$ac_exeext conftest.$ac_ext
70010 fi
70011 ac_res=`eval 'as_val=${'$as_ac_var'}
70012                  $as_echo "$as_val"'`
70013                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70014 $as_echo "$ac_res" >&6; }
70015 as_val=`eval 'as_val=${'$as_ac_var'}
70016                  $as_echo "$as_val"'`
70017    if test "x$as_val" = x""yes; then
70018   cat >>confdefs.h <<_ACEOF
70019 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70020 _ACEOF
70021  ice_have_strncasecmp=yes
70022 fi
70023 done
70024
70025 if test "${ice_have_strncasecmp}" = yes; then
70026 { $as_echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
70027 $as_echo_n "checking for strncasecmp declaration in string.h strings.h... " >&6; }
70028 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
70029   $as_echo_n "(cached) " >&6
70030 else
70031
70032 ice_cv_have_strncasecmp_decl=no
70033 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70034 ice_re_word='(^|[^a-zA-Z0-9_])'
70035 for header in string.h strings.h; do
70036 # Check for ordinary declaration
70037 cat >conftest.$ac_ext <<_ACEOF
70038 /* confdefs.h.  */
70039 _ACEOF
70040 cat confdefs.h >>conftest.$ac_ext
70041 cat >>conftest.$ac_ext <<_ACEOF
70042 /* end confdefs.h.  */
70043 #include <$header>
70044
70045 _ACEOF
70046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70047   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then
70048   ice_cv_have_strncasecmp_decl=yes
70049 fi
70050 rm -f conftest*
70051
70052 if test "$ice_cv_have_strncasecmp_decl" = yes; then
70053         break
70054 fi
70055 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70056 cat >conftest.$ac_ext <<_ACEOF
70057 /* confdefs.h.  */
70058 _ACEOF
70059 cat confdefs.h >>conftest.$ac_ext
70060 cat >>conftest.$ac_ext <<_ACEOF
70061 /* end confdefs.h.  */
70062 #include <$header>
70063
70064 _ACEOF
70065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70066   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70067   ice_cv_have_strncasecmp_decl=yes
70068 fi
70069 rm -f conftest*
70070
70071 if test "$ice_cv_have_strncasecmp_decl" = yes; then
70072         break
70073 fi
70074 done
70075
70076 fi
70077
70078 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
70079 $as_echo "$ice_cv_have_strncasecmp_decl" >&6; }
70080 if test "$ice_cv_have_strncasecmp_decl" = yes; then
70081
70082 cat >>confdefs.h <<_ACEOF
70083 #define HAVE_STRNCASECMP_DECL 1
70084 _ACEOF
70085
70086 fi
70087 fi
70088
70089
70090 ice_have_syslog=no
70091
70092 for ac_func in syslog
70093 do
70094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70095 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70096 $as_echo_n "checking for $ac_func... " >&6; }
70097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70098   $as_echo_n "(cached) " >&6
70099 else
70100   cat >conftest.$ac_ext <<_ACEOF
70101 /* confdefs.h.  */
70102 _ACEOF
70103 cat confdefs.h >>conftest.$ac_ext
70104 cat >>conftest.$ac_ext <<_ACEOF
70105 /* end confdefs.h.  */
70106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70108 #define $ac_func innocuous_$ac_func
70109
70110 /* System header to define __stub macros and hopefully few prototypes,
70111     which can conflict with char $ac_func (); below.
70112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70113     <limits.h> exists even on freestanding compilers.  */
70114
70115 #ifdef __STDC__
70116 # include <limits.h>
70117 #else
70118 # include <assert.h>
70119 #endif
70120
70121 #undef $ac_func
70122
70123 /* Override any GCC internal prototype to avoid an error.
70124    Use char because int might match the return type of a GCC
70125    builtin and then its argument prototype would still apply.  */
70126 #ifdef __cplusplus
70127 extern "C"
70128 #endif
70129 char $ac_func ();
70130 /* The GNU C library defines this for functions which it implements
70131     to always fail with ENOSYS.  Some functions are actually named
70132     something starting with __ and the normal name is an alias.  */
70133 #if defined __stub_$ac_func || defined __stub___$ac_func
70134 choke me
70135 #endif
70136
70137 int
70138 main ()
70139 {
70140 return $ac_func ();
70141   ;
70142   return 0;
70143 }
70144 _ACEOF
70145 rm -f conftest.$ac_objext conftest$ac_exeext
70146 if { (ac_try="$ac_link"
70147 case "(($ac_try" in
70148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70149   *) ac_try_echo=$ac_try;;
70150 esac
70151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70152 $as_echo "$ac_try_echo") >&5
70153   (eval "$ac_link") 2>conftest.er1
70154   ac_status=$?
70155   grep -v '^ *+' conftest.er1 >conftest.err
70156   rm -f conftest.er1
70157   cat conftest.err >&5
70158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70159   (exit $ac_status); } && {
70160          test -z "$ac_c_werror_flag" ||
70161          test ! -s conftest.err
70162        } && test -s conftest$ac_exeext && {
70163          test "$cross_compiling" = yes ||
70164          $as_test_x conftest$ac_exeext
70165        }; then
70166   eval "$as_ac_var=yes"
70167 else
70168   $as_echo "$as_me: failed program was:" >&5
70169 sed 's/^/| /' conftest.$ac_ext >&5
70170
70171         eval "$as_ac_var=no"
70172 fi
70173
70174 rm -rf conftest.dSYM
70175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70176       conftest$ac_exeext conftest.$ac_ext
70177 fi
70178 ac_res=`eval 'as_val=${'$as_ac_var'}
70179                  $as_echo "$as_val"'`
70180                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70181 $as_echo "$ac_res" >&6; }
70182 as_val=`eval 'as_val=${'$as_ac_var'}
70183                  $as_echo "$as_val"'`
70184    if test "x$as_val" = x""yes; then
70185   cat >>confdefs.h <<_ACEOF
70186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70187 _ACEOF
70188  ice_have_syslog=yes
70189 fi
70190 done
70191
70192 if test "${ice_have_syslog}" = yes; then
70193 { $as_echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
70194 $as_echo_n "checking for syslog declaration in syslog.h... " >&6; }
70195 if test "${ice_cv_have_syslog_decl+set}" = set; then
70196   $as_echo_n "(cached) " >&6
70197 else
70198
70199 ice_cv_have_syslog_decl=no
70200 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70201 ice_re_word='(^|[^a-zA-Z0-9_])'
70202 for header in syslog.h; do
70203 # Check for ordinary declaration
70204 cat >conftest.$ac_ext <<_ACEOF
70205 /* confdefs.h.  */
70206 _ACEOF
70207 cat confdefs.h >>conftest.$ac_ext
70208 cat >>conftest.$ac_ext <<_ACEOF
70209 /* end confdefs.h.  */
70210 #include <$header>
70211
70212 _ACEOF
70213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70214   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then
70215   ice_cv_have_syslog_decl=yes
70216 fi
70217 rm -f conftest*
70218
70219 if test "$ice_cv_have_syslog_decl" = yes; then
70220         break
70221 fi
70222 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70223 cat >conftest.$ac_ext <<_ACEOF
70224 /* confdefs.h.  */
70225 _ACEOF
70226 cat confdefs.h >>conftest.$ac_ext
70227 cat >>conftest.$ac_ext <<_ACEOF
70228 /* end confdefs.h.  */
70229 #include <$header>
70230
70231 _ACEOF
70232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70233   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70234   ice_cv_have_syslog_decl=yes
70235 fi
70236 rm -f conftest*
70237
70238 if test "$ice_cv_have_syslog_decl" = yes; then
70239         break
70240 fi
70241 done
70242
70243 fi
70244
70245 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
70246 $as_echo "$ice_cv_have_syslog_decl" >&6; }
70247 if test "$ice_cv_have_syslog_decl" = yes; then
70248
70249 cat >>confdefs.h <<_ACEOF
70250 #define HAVE_SYSLOG_DECL 1
70251 _ACEOF
70252
70253 fi
70254 fi
70255
70256
70257 ice_have_system=no
70258
70259 for ac_func in system
70260 do
70261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70262 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70263 $as_echo_n "checking for $ac_func... " >&6; }
70264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70265   $as_echo_n "(cached) " >&6
70266 else
70267   cat >conftest.$ac_ext <<_ACEOF
70268 /* confdefs.h.  */
70269 _ACEOF
70270 cat confdefs.h >>conftest.$ac_ext
70271 cat >>conftest.$ac_ext <<_ACEOF
70272 /* end confdefs.h.  */
70273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70275 #define $ac_func innocuous_$ac_func
70276
70277 /* System header to define __stub macros and hopefully few prototypes,
70278     which can conflict with char $ac_func (); below.
70279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70280     <limits.h> exists even on freestanding compilers.  */
70281
70282 #ifdef __STDC__
70283 # include <limits.h>
70284 #else
70285 # include <assert.h>
70286 #endif
70287
70288 #undef $ac_func
70289
70290 /* Override any GCC internal prototype to avoid an error.
70291    Use char because int might match the return type of a GCC
70292    builtin and then its argument prototype would still apply.  */
70293 #ifdef __cplusplus
70294 extern "C"
70295 #endif
70296 char $ac_func ();
70297 /* The GNU C library defines this for functions which it implements
70298     to always fail with ENOSYS.  Some functions are actually named
70299     something starting with __ and the normal name is an alias.  */
70300 #if defined __stub_$ac_func || defined __stub___$ac_func
70301 choke me
70302 #endif
70303
70304 int
70305 main ()
70306 {
70307 return $ac_func ();
70308   ;
70309   return 0;
70310 }
70311 _ACEOF
70312 rm -f conftest.$ac_objext conftest$ac_exeext
70313 if { (ac_try="$ac_link"
70314 case "(($ac_try" in
70315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70316   *) ac_try_echo=$ac_try;;
70317 esac
70318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70319 $as_echo "$ac_try_echo") >&5
70320   (eval "$ac_link") 2>conftest.er1
70321   ac_status=$?
70322   grep -v '^ *+' conftest.er1 >conftest.err
70323   rm -f conftest.er1
70324   cat conftest.err >&5
70325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70326   (exit $ac_status); } && {
70327          test -z "$ac_c_werror_flag" ||
70328          test ! -s conftest.err
70329        } && test -s conftest$ac_exeext && {
70330          test "$cross_compiling" = yes ||
70331          $as_test_x conftest$ac_exeext
70332        }; then
70333   eval "$as_ac_var=yes"
70334 else
70335   $as_echo "$as_me: failed program was:" >&5
70336 sed 's/^/| /' conftest.$ac_ext >&5
70337
70338         eval "$as_ac_var=no"
70339 fi
70340
70341 rm -rf conftest.dSYM
70342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70343       conftest$ac_exeext conftest.$ac_ext
70344 fi
70345 ac_res=`eval 'as_val=${'$as_ac_var'}
70346                  $as_echo "$as_val"'`
70347                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70348 $as_echo "$ac_res" >&6; }
70349 as_val=`eval 'as_val=${'$as_ac_var'}
70350                  $as_echo "$as_val"'`
70351    if test "x$as_val" = x""yes; then
70352   cat >>confdefs.h <<_ACEOF
70353 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70354 _ACEOF
70355  ice_have_system=yes
70356 fi
70357 done
70358
70359 if test "${ice_have_system}" = yes; then
70360 { $as_echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
70361 $as_echo_n "checking for system declaration in stdlib.h... " >&6; }
70362 if test "${ice_cv_have_system_decl+set}" = set; then
70363   $as_echo_n "(cached) " >&6
70364 else
70365
70366 ice_cv_have_system_decl=no
70367 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70368 ice_re_word='(^|[^a-zA-Z0-9_])'
70369 for header in stdlib.h; do
70370 # Check for ordinary declaration
70371 cat >conftest.$ac_ext <<_ACEOF
70372 /* confdefs.h.  */
70373 _ACEOF
70374 cat confdefs.h >>conftest.$ac_ext
70375 cat >>conftest.$ac_ext <<_ACEOF
70376 /* end confdefs.h.  */
70377 #include <$header>
70378
70379 _ACEOF
70380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70381   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then
70382   ice_cv_have_system_decl=yes
70383 fi
70384 rm -f conftest*
70385
70386 if test "$ice_cv_have_system_decl" = yes; then
70387         break
70388 fi
70389 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70390 cat >conftest.$ac_ext <<_ACEOF
70391 /* confdefs.h.  */
70392 _ACEOF
70393 cat confdefs.h >>conftest.$ac_ext
70394 cat >>conftest.$ac_ext <<_ACEOF
70395 /* end confdefs.h.  */
70396 #include <$header>
70397
70398 _ACEOF
70399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70400   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70401   ice_cv_have_system_decl=yes
70402 fi
70403 rm -f conftest*
70404
70405 if test "$ice_cv_have_system_decl" = yes; then
70406         break
70407 fi
70408 done
70409
70410 fi
70411
70412 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
70413 $as_echo "$ice_cv_have_system_decl" >&6; }
70414 if test "$ice_cv_have_system_decl" = yes; then
70415
70416 cat >>confdefs.h <<_ACEOF
70417 #define HAVE_SYSTEM_DECL 1
70418 _ACEOF
70419
70420 fi
70421 fi
70422
70423
70424 ice_have_time=no
70425
70426 for ac_func in time
70427 do
70428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70429 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70430 $as_echo_n "checking for $ac_func... " >&6; }
70431 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70432   $as_echo_n "(cached) " >&6
70433 else
70434   cat >conftest.$ac_ext <<_ACEOF
70435 /* confdefs.h.  */
70436 _ACEOF
70437 cat confdefs.h >>conftest.$ac_ext
70438 cat >>conftest.$ac_ext <<_ACEOF
70439 /* end confdefs.h.  */
70440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70442 #define $ac_func innocuous_$ac_func
70443
70444 /* System header to define __stub macros and hopefully few prototypes,
70445     which can conflict with char $ac_func (); below.
70446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70447     <limits.h> exists even on freestanding compilers.  */
70448
70449 #ifdef __STDC__
70450 # include <limits.h>
70451 #else
70452 # include <assert.h>
70453 #endif
70454
70455 #undef $ac_func
70456
70457 /* Override any GCC internal prototype to avoid an error.
70458    Use char because int might match the return type of a GCC
70459    builtin and then its argument prototype would still apply.  */
70460 #ifdef __cplusplus
70461 extern "C"
70462 #endif
70463 char $ac_func ();
70464 /* The GNU C library defines this for functions which it implements
70465     to always fail with ENOSYS.  Some functions are actually named
70466     something starting with __ and the normal name is an alias.  */
70467 #if defined __stub_$ac_func || defined __stub___$ac_func
70468 choke me
70469 #endif
70470
70471 int
70472 main ()
70473 {
70474 return $ac_func ();
70475   ;
70476   return 0;
70477 }
70478 _ACEOF
70479 rm -f conftest.$ac_objext conftest$ac_exeext
70480 if { (ac_try="$ac_link"
70481 case "(($ac_try" in
70482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70483   *) ac_try_echo=$ac_try;;
70484 esac
70485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70486 $as_echo "$ac_try_echo") >&5
70487   (eval "$ac_link") 2>conftest.er1
70488   ac_status=$?
70489   grep -v '^ *+' conftest.er1 >conftest.err
70490   rm -f conftest.er1
70491   cat conftest.err >&5
70492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70493   (exit $ac_status); } && {
70494          test -z "$ac_c_werror_flag" ||
70495          test ! -s conftest.err
70496        } && test -s conftest$ac_exeext && {
70497          test "$cross_compiling" = yes ||
70498          $as_test_x conftest$ac_exeext
70499        }; then
70500   eval "$as_ac_var=yes"
70501 else
70502   $as_echo "$as_me: failed program was:" >&5
70503 sed 's/^/| /' conftest.$ac_ext >&5
70504
70505         eval "$as_ac_var=no"
70506 fi
70507
70508 rm -rf conftest.dSYM
70509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70510       conftest$ac_exeext conftest.$ac_ext
70511 fi
70512 ac_res=`eval 'as_val=${'$as_ac_var'}
70513                  $as_echo "$as_val"'`
70514                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70515 $as_echo "$ac_res" >&6; }
70516 as_val=`eval 'as_val=${'$as_ac_var'}
70517                  $as_echo "$as_val"'`
70518    if test "x$as_val" = x""yes; then
70519   cat >>confdefs.h <<_ACEOF
70520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70521 _ACEOF
70522  ice_have_time=yes
70523 fi
70524 done
70525
70526 if test "${ice_have_time}" = yes; then
70527 { $as_echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
70528 $as_echo_n "checking for time declaration in time.h sys/time.h... " >&6; }
70529 if test "${ice_cv_have_time_decl+set}" = set; then
70530   $as_echo_n "(cached) " >&6
70531 else
70532
70533 ice_cv_have_time_decl=no
70534 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70535 ice_re_word='(^|[^a-zA-Z0-9_])'
70536 for header in time.h sys/time.h; do
70537 # Check for ordinary declaration
70538 cat >conftest.$ac_ext <<_ACEOF
70539 /* confdefs.h.  */
70540 _ACEOF
70541 cat confdefs.h >>conftest.$ac_ext
70542 cat >>conftest.$ac_ext <<_ACEOF
70543 /* end confdefs.h.  */
70544 #include <$header>
70545
70546 _ACEOF
70547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70548   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then
70549   ice_cv_have_time_decl=yes
70550 fi
70551 rm -f conftest*
70552
70553 if test "$ice_cv_have_time_decl" = yes; then
70554         break
70555 fi
70556 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70557 cat >conftest.$ac_ext <<_ACEOF
70558 /* confdefs.h.  */
70559 _ACEOF
70560 cat confdefs.h >>conftest.$ac_ext
70561 cat >>conftest.$ac_ext <<_ACEOF
70562 /* end confdefs.h.  */
70563 #include <$header>
70564
70565 _ACEOF
70566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70567   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70568   ice_cv_have_time_decl=yes
70569 fi
70570 rm -f conftest*
70571
70572 if test "$ice_cv_have_time_decl" = yes; then
70573         break
70574 fi
70575 done
70576
70577 fi
70578
70579 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
70580 $as_echo "$ice_cv_have_time_decl" >&6; }
70581 if test "$ice_cv_have_time_decl" = yes; then
70582
70583 cat >>confdefs.h <<_ACEOF
70584 #define HAVE_TIME_DECL 1
70585 _ACEOF
70586
70587 fi
70588 fi
70589
70590
70591 ice_have_tolower=no
70592
70593 for ac_func in tolower
70594 do
70595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70596 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70597 $as_echo_n "checking for $ac_func... " >&6; }
70598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70599   $as_echo_n "(cached) " >&6
70600 else
70601   cat >conftest.$ac_ext <<_ACEOF
70602 /* confdefs.h.  */
70603 _ACEOF
70604 cat confdefs.h >>conftest.$ac_ext
70605 cat >>conftest.$ac_ext <<_ACEOF
70606 /* end confdefs.h.  */
70607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70609 #define $ac_func innocuous_$ac_func
70610
70611 /* System header to define __stub macros and hopefully few prototypes,
70612     which can conflict with char $ac_func (); below.
70613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70614     <limits.h> exists even on freestanding compilers.  */
70615
70616 #ifdef __STDC__
70617 # include <limits.h>
70618 #else
70619 # include <assert.h>
70620 #endif
70621
70622 #undef $ac_func
70623
70624 /* Override any GCC internal prototype to avoid an error.
70625    Use char because int might match the return type of a GCC
70626    builtin and then its argument prototype would still apply.  */
70627 #ifdef __cplusplus
70628 extern "C"
70629 #endif
70630 char $ac_func ();
70631 /* The GNU C library defines this for functions which it implements
70632     to always fail with ENOSYS.  Some functions are actually named
70633     something starting with __ and the normal name is an alias.  */
70634 #if defined __stub_$ac_func || defined __stub___$ac_func
70635 choke me
70636 #endif
70637
70638 int
70639 main ()
70640 {
70641 return $ac_func ();
70642   ;
70643   return 0;
70644 }
70645 _ACEOF
70646 rm -f conftest.$ac_objext conftest$ac_exeext
70647 if { (ac_try="$ac_link"
70648 case "(($ac_try" in
70649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70650   *) ac_try_echo=$ac_try;;
70651 esac
70652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70653 $as_echo "$ac_try_echo") >&5
70654   (eval "$ac_link") 2>conftest.er1
70655   ac_status=$?
70656   grep -v '^ *+' conftest.er1 >conftest.err
70657   rm -f conftest.er1
70658   cat conftest.err >&5
70659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70660   (exit $ac_status); } && {
70661          test -z "$ac_c_werror_flag" ||
70662          test ! -s conftest.err
70663        } && test -s conftest$ac_exeext && {
70664          test "$cross_compiling" = yes ||
70665          $as_test_x conftest$ac_exeext
70666        }; then
70667   eval "$as_ac_var=yes"
70668 else
70669   $as_echo "$as_me: failed program was:" >&5
70670 sed 's/^/| /' conftest.$ac_ext >&5
70671
70672         eval "$as_ac_var=no"
70673 fi
70674
70675 rm -rf conftest.dSYM
70676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70677       conftest$ac_exeext conftest.$ac_ext
70678 fi
70679 ac_res=`eval 'as_val=${'$as_ac_var'}
70680                  $as_echo "$as_val"'`
70681                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70682 $as_echo "$ac_res" >&6; }
70683 as_val=`eval 'as_val=${'$as_ac_var'}
70684                  $as_echo "$as_val"'`
70685    if test "x$as_val" = x""yes; then
70686   cat >>confdefs.h <<_ACEOF
70687 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70688 _ACEOF
70689  ice_have_tolower=yes
70690 fi
70691 done
70692
70693 if test "${ice_have_tolower}" = yes; then
70694 { $as_echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
70695 $as_echo_n "checking for tolower declaration in ctype.h... " >&6; }
70696 if test "${ice_cv_have_tolower_decl+set}" = set; then
70697   $as_echo_n "(cached) " >&6
70698 else
70699
70700 ice_cv_have_tolower_decl=no
70701 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70702 ice_re_word='(^|[^a-zA-Z0-9_])'
70703 for header in ctype.h; do
70704 # Check for ordinary declaration
70705 cat >conftest.$ac_ext <<_ACEOF
70706 /* confdefs.h.  */
70707 _ACEOF
70708 cat confdefs.h >>conftest.$ac_ext
70709 cat >>conftest.$ac_ext <<_ACEOF
70710 /* end confdefs.h.  */
70711 #include <$header>
70712
70713 _ACEOF
70714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70715   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then
70716   ice_cv_have_tolower_decl=yes
70717 fi
70718 rm -f conftest*
70719
70720 if test "$ice_cv_have_tolower_decl" = yes; then
70721         break
70722 fi
70723 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70724 cat >conftest.$ac_ext <<_ACEOF
70725 /* confdefs.h.  */
70726 _ACEOF
70727 cat confdefs.h >>conftest.$ac_ext
70728 cat >>conftest.$ac_ext <<_ACEOF
70729 /* end confdefs.h.  */
70730 #include <$header>
70731
70732 _ACEOF
70733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70734   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70735   ice_cv_have_tolower_decl=yes
70736 fi
70737 rm -f conftest*
70738
70739 if test "$ice_cv_have_tolower_decl" = yes; then
70740         break
70741 fi
70742 done
70743
70744 fi
70745
70746 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
70747 $as_echo "$ice_cv_have_tolower_decl" >&6; }
70748 if test "$ice_cv_have_tolower_decl" = yes; then
70749
70750 cat >>confdefs.h <<_ACEOF
70751 #define HAVE_TOLOWER_DECL 1
70752 _ACEOF
70753
70754 fi
70755 fi
70756
70757
70758 ice_have_toupper=no
70759
70760 for ac_func in toupper
70761 do
70762 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70763 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70764 $as_echo_n "checking for $ac_func... " >&6; }
70765 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70766   $as_echo_n "(cached) " >&6
70767 else
70768   cat >conftest.$ac_ext <<_ACEOF
70769 /* confdefs.h.  */
70770 _ACEOF
70771 cat confdefs.h >>conftest.$ac_ext
70772 cat >>conftest.$ac_ext <<_ACEOF
70773 /* end confdefs.h.  */
70774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70776 #define $ac_func innocuous_$ac_func
70777
70778 /* System header to define __stub macros and hopefully few prototypes,
70779     which can conflict with char $ac_func (); below.
70780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70781     <limits.h> exists even on freestanding compilers.  */
70782
70783 #ifdef __STDC__
70784 # include <limits.h>
70785 #else
70786 # include <assert.h>
70787 #endif
70788
70789 #undef $ac_func
70790
70791 /* Override any GCC internal prototype to avoid an error.
70792    Use char because int might match the return type of a GCC
70793    builtin and then its argument prototype would still apply.  */
70794 #ifdef __cplusplus
70795 extern "C"
70796 #endif
70797 char $ac_func ();
70798 /* The GNU C library defines this for functions which it implements
70799     to always fail with ENOSYS.  Some functions are actually named
70800     something starting with __ and the normal name is an alias.  */
70801 #if defined __stub_$ac_func || defined __stub___$ac_func
70802 choke me
70803 #endif
70804
70805 int
70806 main ()
70807 {
70808 return $ac_func ();
70809   ;
70810   return 0;
70811 }
70812 _ACEOF
70813 rm -f conftest.$ac_objext conftest$ac_exeext
70814 if { (ac_try="$ac_link"
70815 case "(($ac_try" in
70816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70817   *) ac_try_echo=$ac_try;;
70818 esac
70819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70820 $as_echo "$ac_try_echo") >&5
70821   (eval "$ac_link") 2>conftest.er1
70822   ac_status=$?
70823   grep -v '^ *+' conftest.er1 >conftest.err
70824   rm -f conftest.er1
70825   cat conftest.err >&5
70826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70827   (exit $ac_status); } && {
70828          test -z "$ac_c_werror_flag" ||
70829          test ! -s conftest.err
70830        } && test -s conftest$ac_exeext && {
70831          test "$cross_compiling" = yes ||
70832          $as_test_x conftest$ac_exeext
70833        }; then
70834   eval "$as_ac_var=yes"
70835 else
70836   $as_echo "$as_me: failed program was:" >&5
70837 sed 's/^/| /' conftest.$ac_ext >&5
70838
70839         eval "$as_ac_var=no"
70840 fi
70841
70842 rm -rf conftest.dSYM
70843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70844       conftest$ac_exeext conftest.$ac_ext
70845 fi
70846 ac_res=`eval 'as_val=${'$as_ac_var'}
70847                  $as_echo "$as_val"'`
70848                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70849 $as_echo "$ac_res" >&6; }
70850 as_val=`eval 'as_val=${'$as_ac_var'}
70851                  $as_echo "$as_val"'`
70852    if test "x$as_val" = x""yes; then
70853   cat >>confdefs.h <<_ACEOF
70854 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70855 _ACEOF
70856  ice_have_toupper=yes
70857 fi
70858 done
70859
70860 if test "${ice_have_toupper}" = yes; then
70861 { $as_echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
70862 $as_echo_n "checking for toupper declaration in ctype.h... " >&6; }
70863 if test "${ice_cv_have_toupper_decl+set}" = set; then
70864   $as_echo_n "(cached) " >&6
70865 else
70866
70867 ice_cv_have_toupper_decl=no
70868 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70869 ice_re_word='(^|[^a-zA-Z0-9_])'
70870 for header in ctype.h; do
70871 # Check for ordinary declaration
70872 cat >conftest.$ac_ext <<_ACEOF
70873 /* confdefs.h.  */
70874 _ACEOF
70875 cat confdefs.h >>conftest.$ac_ext
70876 cat >>conftest.$ac_ext <<_ACEOF
70877 /* end confdefs.h.  */
70878 #include <$header>
70879
70880 _ACEOF
70881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70882   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then
70883   ice_cv_have_toupper_decl=yes
70884 fi
70885 rm -f conftest*
70886
70887 if test "$ice_cv_have_toupper_decl" = yes; then
70888         break
70889 fi
70890 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70891 cat >conftest.$ac_ext <<_ACEOF
70892 /* confdefs.h.  */
70893 _ACEOF
70894 cat confdefs.h >>conftest.$ac_ext
70895 cat >>conftest.$ac_ext <<_ACEOF
70896 /* end confdefs.h.  */
70897 #include <$header>
70898
70899 _ACEOF
70900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70901   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70902   ice_cv_have_toupper_decl=yes
70903 fi
70904 rm -f conftest*
70905
70906 if test "$ice_cv_have_toupper_decl" = yes; then
70907         break
70908 fi
70909 done
70910
70911 fi
70912
70913 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
70914 $as_echo "$ice_cv_have_toupper_decl" >&6; }
70915 if test "$ice_cv_have_toupper_decl" = yes; then
70916
70917 cat >>confdefs.h <<_ACEOF
70918 #define HAVE_TOUPPER_DECL 1
70919 _ACEOF
70920
70921 fi
70922 fi
70923
70924
70925 ice_have_ungetc=no
70926
70927 for ac_func in ungetc
70928 do
70929 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70930 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70931 $as_echo_n "checking for $ac_func... " >&6; }
70932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70933   $as_echo_n "(cached) " >&6
70934 else
70935   cat >conftest.$ac_ext <<_ACEOF
70936 /* confdefs.h.  */
70937 _ACEOF
70938 cat confdefs.h >>conftest.$ac_ext
70939 cat >>conftest.$ac_ext <<_ACEOF
70940 /* end confdefs.h.  */
70941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70943 #define $ac_func innocuous_$ac_func
70944
70945 /* System header to define __stub macros and hopefully few prototypes,
70946     which can conflict with char $ac_func (); below.
70947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70948     <limits.h> exists even on freestanding compilers.  */
70949
70950 #ifdef __STDC__
70951 # include <limits.h>
70952 #else
70953 # include <assert.h>
70954 #endif
70955
70956 #undef $ac_func
70957
70958 /* Override any GCC internal prototype to avoid an error.
70959    Use char because int might match the return type of a GCC
70960    builtin and then its argument prototype would still apply.  */
70961 #ifdef __cplusplus
70962 extern "C"
70963 #endif
70964 char $ac_func ();
70965 /* The GNU C library defines this for functions which it implements
70966     to always fail with ENOSYS.  Some functions are actually named
70967     something starting with __ and the normal name is an alias.  */
70968 #if defined __stub_$ac_func || defined __stub___$ac_func
70969 choke me
70970 #endif
70971
70972 int
70973 main ()
70974 {
70975 return $ac_func ();
70976   ;
70977   return 0;
70978 }
70979 _ACEOF
70980 rm -f conftest.$ac_objext conftest$ac_exeext
70981 if { (ac_try="$ac_link"
70982 case "(($ac_try" in
70983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70984   *) ac_try_echo=$ac_try;;
70985 esac
70986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70987 $as_echo "$ac_try_echo") >&5
70988   (eval "$ac_link") 2>conftest.er1
70989   ac_status=$?
70990   grep -v '^ *+' conftest.er1 >conftest.err
70991   rm -f conftest.er1
70992   cat conftest.err >&5
70993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70994   (exit $ac_status); } && {
70995          test -z "$ac_c_werror_flag" ||
70996          test ! -s conftest.err
70997        } && test -s conftest$ac_exeext && {
70998          test "$cross_compiling" = yes ||
70999          $as_test_x conftest$ac_exeext
71000        }; then
71001   eval "$as_ac_var=yes"
71002 else
71003   $as_echo "$as_me: failed program was:" >&5
71004 sed 's/^/| /' conftest.$ac_ext >&5
71005
71006         eval "$as_ac_var=no"
71007 fi
71008
71009 rm -rf conftest.dSYM
71010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71011       conftest$ac_exeext conftest.$ac_ext
71012 fi
71013 ac_res=`eval 'as_val=${'$as_ac_var'}
71014                  $as_echo "$as_val"'`
71015                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71016 $as_echo "$ac_res" >&6; }
71017 as_val=`eval 'as_val=${'$as_ac_var'}
71018                  $as_echo "$as_val"'`
71019    if test "x$as_val" = x""yes; then
71020   cat >>confdefs.h <<_ACEOF
71021 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71022 _ACEOF
71023  ice_have_ungetc=yes
71024 fi
71025 done
71026
71027 if test "${ice_have_ungetc}" = yes; then
71028 { $as_echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
71029 $as_echo_n "checking for ungetc declaration in stdio.h... " >&6; }
71030 if test "${ice_cv_have_ungetc_decl+set}" = set; then
71031   $as_echo_n "(cached) " >&6
71032 else
71033
71034 ice_cv_have_ungetc_decl=no
71035 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71036 ice_re_word='(^|[^a-zA-Z0-9_])'
71037 for header in stdio.h; do
71038 # Check for ordinary declaration
71039 cat >conftest.$ac_ext <<_ACEOF
71040 /* confdefs.h.  */
71041 _ACEOF
71042 cat confdefs.h >>conftest.$ac_ext
71043 cat >>conftest.$ac_ext <<_ACEOF
71044 /* end confdefs.h.  */
71045 #include <$header>
71046
71047 _ACEOF
71048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71049   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then
71050   ice_cv_have_ungetc_decl=yes
71051 fi
71052 rm -f conftest*
71053
71054 if test "$ice_cv_have_ungetc_decl" = yes; then
71055         break
71056 fi
71057 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71058 cat >conftest.$ac_ext <<_ACEOF
71059 /* confdefs.h.  */
71060 _ACEOF
71061 cat confdefs.h >>conftest.$ac_ext
71062 cat >>conftest.$ac_ext <<_ACEOF
71063 /* end confdefs.h.  */
71064 #include <$header>
71065
71066 _ACEOF
71067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71068   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71069   ice_cv_have_ungetc_decl=yes
71070 fi
71071 rm -f conftest*
71072
71073 if test "$ice_cv_have_ungetc_decl" = yes; then
71074         break
71075 fi
71076 done
71077
71078 fi
71079
71080 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
71081 $as_echo "$ice_cv_have_ungetc_decl" >&6; }
71082 if test "$ice_cv_have_ungetc_decl" = yes; then
71083
71084 cat >>confdefs.h <<_ACEOF
71085 #define HAVE_UNGETC_DECL 1
71086 _ACEOF
71087
71088 fi
71089 fi
71090
71091
71092 ice_have_vfprintf=no
71093
71094 for ac_func in vfprintf
71095 do
71096 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71097 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71098 $as_echo_n "checking for $ac_func... " >&6; }
71099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71100   $as_echo_n "(cached) " >&6
71101 else
71102   cat >conftest.$ac_ext <<_ACEOF
71103 /* confdefs.h.  */
71104 _ACEOF
71105 cat confdefs.h >>conftest.$ac_ext
71106 cat >>conftest.$ac_ext <<_ACEOF
71107 /* end confdefs.h.  */
71108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71110 #define $ac_func innocuous_$ac_func
71111
71112 /* System header to define __stub macros and hopefully few prototypes,
71113     which can conflict with char $ac_func (); below.
71114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71115     <limits.h> exists even on freestanding compilers.  */
71116
71117 #ifdef __STDC__
71118 # include <limits.h>
71119 #else
71120 # include <assert.h>
71121 #endif
71122
71123 #undef $ac_func
71124
71125 /* Override any GCC internal prototype to avoid an error.
71126    Use char because int might match the return type of a GCC
71127    builtin and then its argument prototype would still apply.  */
71128 #ifdef __cplusplus
71129 extern "C"
71130 #endif
71131 char $ac_func ();
71132 /* The GNU C library defines this for functions which it implements
71133     to always fail with ENOSYS.  Some functions are actually named
71134     something starting with __ and the normal name is an alias.  */
71135 #if defined __stub_$ac_func || defined __stub___$ac_func
71136 choke me
71137 #endif
71138
71139 int
71140 main ()
71141 {
71142 return $ac_func ();
71143   ;
71144   return 0;
71145 }
71146 _ACEOF
71147 rm -f conftest.$ac_objext conftest$ac_exeext
71148 if { (ac_try="$ac_link"
71149 case "(($ac_try" in
71150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71151   *) ac_try_echo=$ac_try;;
71152 esac
71153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71154 $as_echo "$ac_try_echo") >&5
71155   (eval "$ac_link") 2>conftest.er1
71156   ac_status=$?
71157   grep -v '^ *+' conftest.er1 >conftest.err
71158   rm -f conftest.er1
71159   cat conftest.err >&5
71160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71161   (exit $ac_status); } && {
71162          test -z "$ac_c_werror_flag" ||
71163          test ! -s conftest.err
71164        } && test -s conftest$ac_exeext && {
71165          test "$cross_compiling" = yes ||
71166          $as_test_x conftest$ac_exeext
71167        }; then
71168   eval "$as_ac_var=yes"
71169 else
71170   $as_echo "$as_me: failed program was:" >&5
71171 sed 's/^/| /' conftest.$ac_ext >&5
71172
71173         eval "$as_ac_var=no"
71174 fi
71175
71176 rm -rf conftest.dSYM
71177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71178       conftest$ac_exeext conftest.$ac_ext
71179 fi
71180 ac_res=`eval 'as_val=${'$as_ac_var'}
71181                  $as_echo "$as_val"'`
71182                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71183 $as_echo "$ac_res" >&6; }
71184 as_val=`eval 'as_val=${'$as_ac_var'}
71185                  $as_echo "$as_val"'`
71186    if test "x$as_val" = x""yes; then
71187   cat >>confdefs.h <<_ACEOF
71188 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71189 _ACEOF
71190  ice_have_vfprintf=yes
71191 fi
71192 done
71193
71194 if test "${ice_have_vfprintf}" = yes; then
71195 { $as_echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
71196 $as_echo_n "checking for vfprintf declaration in stdio.h stdlib.h... " >&6; }
71197 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
71198   $as_echo_n "(cached) " >&6
71199 else
71200
71201 ice_cv_have_vfprintf_decl=no
71202 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71203 ice_re_word='(^|[^a-zA-Z0-9_])'
71204 for header in stdio.h stdlib.h; do
71205 # Check for ordinary declaration
71206 cat >conftest.$ac_ext <<_ACEOF
71207 /* confdefs.h.  */
71208 _ACEOF
71209 cat confdefs.h >>conftest.$ac_ext
71210 cat >>conftest.$ac_ext <<_ACEOF
71211 /* end confdefs.h.  */
71212 #include <$header>
71213
71214 _ACEOF
71215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71216   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then
71217   ice_cv_have_vfprintf_decl=yes
71218 fi
71219 rm -f conftest*
71220
71221 if test "$ice_cv_have_vfprintf_decl" = yes; then
71222         break
71223 fi
71224 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71225 cat >conftest.$ac_ext <<_ACEOF
71226 /* confdefs.h.  */
71227 _ACEOF
71228 cat confdefs.h >>conftest.$ac_ext
71229 cat >>conftest.$ac_ext <<_ACEOF
71230 /* end confdefs.h.  */
71231 #include <$header>
71232
71233 _ACEOF
71234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71235   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71236   ice_cv_have_vfprintf_decl=yes
71237 fi
71238 rm -f conftest*
71239
71240 if test "$ice_cv_have_vfprintf_decl" = yes; then
71241         break
71242 fi
71243 done
71244
71245 fi
71246
71247 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
71248 $as_echo "$ice_cv_have_vfprintf_decl" >&6; }
71249 if test "$ice_cv_have_vfprintf_decl" = yes; then
71250
71251 cat >>confdefs.h <<_ACEOF
71252 #define HAVE_VFPRINTF_DECL 1
71253 _ACEOF
71254
71255 fi
71256 fi
71257
71258
71259 ice_have_vprintf=no
71260
71261 for ac_func in vprintf
71262 do
71263 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71264 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71265 $as_echo_n "checking for $ac_func... " >&6; }
71266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71267   $as_echo_n "(cached) " >&6
71268 else
71269   cat >conftest.$ac_ext <<_ACEOF
71270 /* confdefs.h.  */
71271 _ACEOF
71272 cat confdefs.h >>conftest.$ac_ext
71273 cat >>conftest.$ac_ext <<_ACEOF
71274 /* end confdefs.h.  */
71275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71277 #define $ac_func innocuous_$ac_func
71278
71279 /* System header to define __stub macros and hopefully few prototypes,
71280     which can conflict with char $ac_func (); below.
71281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71282     <limits.h> exists even on freestanding compilers.  */
71283
71284 #ifdef __STDC__
71285 # include <limits.h>
71286 #else
71287 # include <assert.h>
71288 #endif
71289
71290 #undef $ac_func
71291
71292 /* Override any GCC internal prototype to avoid an error.
71293    Use char because int might match the return type of a GCC
71294    builtin and then its argument prototype would still apply.  */
71295 #ifdef __cplusplus
71296 extern "C"
71297 #endif
71298 char $ac_func ();
71299 /* The GNU C library defines this for functions which it implements
71300     to always fail with ENOSYS.  Some functions are actually named
71301     something starting with __ and the normal name is an alias.  */
71302 #if defined __stub_$ac_func || defined __stub___$ac_func
71303 choke me
71304 #endif
71305
71306 int
71307 main ()
71308 {
71309 return $ac_func ();
71310   ;
71311   return 0;
71312 }
71313 _ACEOF
71314 rm -f conftest.$ac_objext conftest$ac_exeext
71315 if { (ac_try="$ac_link"
71316 case "(($ac_try" in
71317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71318   *) ac_try_echo=$ac_try;;
71319 esac
71320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71321 $as_echo "$ac_try_echo") >&5
71322   (eval "$ac_link") 2>conftest.er1
71323   ac_status=$?
71324   grep -v '^ *+' conftest.er1 >conftest.err
71325   rm -f conftest.er1
71326   cat conftest.err >&5
71327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71328   (exit $ac_status); } && {
71329          test -z "$ac_c_werror_flag" ||
71330          test ! -s conftest.err
71331        } && test -s conftest$ac_exeext && {
71332          test "$cross_compiling" = yes ||
71333          $as_test_x conftest$ac_exeext
71334        }; then
71335   eval "$as_ac_var=yes"
71336 else
71337   $as_echo "$as_me: failed program was:" >&5
71338 sed 's/^/| /' conftest.$ac_ext >&5
71339
71340         eval "$as_ac_var=no"
71341 fi
71342
71343 rm -rf conftest.dSYM
71344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71345       conftest$ac_exeext conftest.$ac_ext
71346 fi
71347 ac_res=`eval 'as_val=${'$as_ac_var'}
71348                  $as_echo "$as_val"'`
71349                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71350 $as_echo "$ac_res" >&6; }
71351 as_val=`eval 'as_val=${'$as_ac_var'}
71352                  $as_echo "$as_val"'`
71353    if test "x$as_val" = x""yes; then
71354   cat >>confdefs.h <<_ACEOF
71355 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71356 _ACEOF
71357  ice_have_vprintf=yes
71358 fi
71359 done
71360
71361 if test "${ice_have_vprintf}" = yes; then
71362 { $as_echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
71363 $as_echo_n "checking for vprintf declaration in stdio.h stdlib.h... " >&6; }
71364 if test "${ice_cv_have_vprintf_decl+set}" = set; then
71365   $as_echo_n "(cached) " >&6
71366 else
71367
71368 ice_cv_have_vprintf_decl=no
71369 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71370 ice_re_word='(^|[^a-zA-Z0-9_])'
71371 for header in stdio.h stdlib.h; do
71372 # Check for ordinary declaration
71373 cat >conftest.$ac_ext <<_ACEOF
71374 /* confdefs.h.  */
71375 _ACEOF
71376 cat confdefs.h >>conftest.$ac_ext
71377 cat >>conftest.$ac_ext <<_ACEOF
71378 /* end confdefs.h.  */
71379 #include <$header>
71380
71381 _ACEOF
71382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71383   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then
71384   ice_cv_have_vprintf_decl=yes
71385 fi
71386 rm -f conftest*
71387
71388 if test "$ice_cv_have_vprintf_decl" = yes; then
71389         break
71390 fi
71391 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71392 cat >conftest.$ac_ext <<_ACEOF
71393 /* confdefs.h.  */
71394 _ACEOF
71395 cat confdefs.h >>conftest.$ac_ext
71396 cat >>conftest.$ac_ext <<_ACEOF
71397 /* end confdefs.h.  */
71398 #include <$header>
71399
71400 _ACEOF
71401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71402   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71403   ice_cv_have_vprintf_decl=yes
71404 fi
71405 rm -f conftest*
71406
71407 if test "$ice_cv_have_vprintf_decl" = yes; then
71408         break
71409 fi
71410 done
71411
71412 fi
71413
71414 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
71415 $as_echo "$ice_cv_have_vprintf_decl" >&6; }
71416 if test "$ice_cv_have_vprintf_decl" = yes; then
71417
71418 cat >>confdefs.h <<_ACEOF
71419 #define HAVE_VPRINTF_DECL 1
71420 _ACEOF
71421
71422 fi
71423 fi
71424
71425 { $as_echo "$as_me:$LINENO: checking for wait4" >&5
71426 $as_echo_n "checking for wait4... " >&6; }
71427 if test "${ac_cv_func_wait4+set}" = set; then
71428   $as_echo_n "(cached) " >&6
71429 else
71430   cat >conftest.$ac_ext <<_ACEOF
71431 /* confdefs.h.  */
71432 _ACEOF
71433 cat confdefs.h >>conftest.$ac_ext
71434 cat >>conftest.$ac_ext <<_ACEOF
71435 /* end confdefs.h.  */
71436 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
71437    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71438 #define wait4 innocuous_wait4
71439
71440 /* System header to define __stub macros and hopefully few prototypes,
71441     which can conflict with char wait4 (); below.
71442     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71443     <limits.h> exists even on freestanding compilers.  */
71444
71445 #ifdef __STDC__
71446 # include <limits.h>
71447 #else
71448 # include <assert.h>
71449 #endif
71450
71451 #undef wait4
71452
71453 /* Override any GCC internal prototype to avoid an error.
71454    Use char because int might match the return type of a GCC
71455    builtin and then its argument prototype would still apply.  */
71456 #ifdef __cplusplus
71457 extern "C"
71458 #endif
71459 char wait4 ();
71460 /* The GNU C library defines this for functions which it implements
71461     to always fail with ENOSYS.  Some functions are actually named
71462     something starting with __ and the normal name is an alias.  */
71463 #if defined __stub_wait4 || defined __stub___wait4
71464 choke me
71465 #endif
71466
71467 int
71468 main ()
71469 {
71470 return wait4 ();
71471   ;
71472   return 0;
71473 }
71474 _ACEOF
71475 rm -f conftest.$ac_objext conftest$ac_exeext
71476 if { (ac_try="$ac_link"
71477 case "(($ac_try" in
71478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71479   *) ac_try_echo=$ac_try;;
71480 esac
71481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71482 $as_echo "$ac_try_echo") >&5
71483   (eval "$ac_link") 2>conftest.er1
71484   ac_status=$?
71485   grep -v '^ *+' conftest.er1 >conftest.err
71486   rm -f conftest.er1
71487   cat conftest.err >&5
71488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71489   (exit $ac_status); } && {
71490          test -z "$ac_c_werror_flag" ||
71491          test ! -s conftest.err
71492        } && test -s conftest$ac_exeext && {
71493          test "$cross_compiling" = yes ||
71494          $as_test_x conftest$ac_exeext
71495        }; then
71496   ac_cv_func_wait4=yes
71497 else
71498   $as_echo "$as_me: failed program was:" >&5
71499 sed 's/^/| /' conftest.$ac_ext >&5
71500
71501         ac_cv_func_wait4=no
71502 fi
71503
71504 rm -rf conftest.dSYM
71505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71506       conftest$ac_exeext conftest.$ac_ext
71507 fi
71508 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
71509 $as_echo "$ac_cv_func_wait4" >&6; }
71510
71511
71512 ice_have_writev=no
71513
71514 for ac_func in writev
71515 do
71516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71517 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71518 $as_echo_n "checking for $ac_func... " >&6; }
71519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71520   $as_echo_n "(cached) " >&6
71521 else
71522   cat >conftest.$ac_ext <<_ACEOF
71523 /* confdefs.h.  */
71524 _ACEOF
71525 cat confdefs.h >>conftest.$ac_ext
71526 cat >>conftest.$ac_ext <<_ACEOF
71527 /* end confdefs.h.  */
71528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71530 #define $ac_func innocuous_$ac_func
71531
71532 /* System header to define __stub macros and hopefully few prototypes,
71533     which can conflict with char $ac_func (); below.
71534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71535     <limits.h> exists even on freestanding compilers.  */
71536
71537 #ifdef __STDC__
71538 # include <limits.h>
71539 #else
71540 # include <assert.h>
71541 #endif
71542
71543 #undef $ac_func
71544
71545 /* Override any GCC internal prototype to avoid an error.
71546    Use char because int might match the return type of a GCC
71547    builtin and then its argument prototype would still apply.  */
71548 #ifdef __cplusplus
71549 extern "C"
71550 #endif
71551 char $ac_func ();
71552 /* The GNU C library defines this for functions which it implements
71553     to always fail with ENOSYS.  Some functions are actually named
71554     something starting with __ and the normal name is an alias.  */
71555 #if defined __stub_$ac_func || defined __stub___$ac_func
71556 choke me
71557 #endif
71558
71559 int
71560 main ()
71561 {
71562 return $ac_func ();
71563   ;
71564   return 0;
71565 }
71566 _ACEOF
71567 rm -f conftest.$ac_objext conftest$ac_exeext
71568 if { (ac_try="$ac_link"
71569 case "(($ac_try" in
71570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71571   *) ac_try_echo=$ac_try;;
71572 esac
71573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71574 $as_echo "$ac_try_echo") >&5
71575   (eval "$ac_link") 2>conftest.er1
71576   ac_status=$?
71577   grep -v '^ *+' conftest.er1 >conftest.err
71578   rm -f conftest.er1
71579   cat conftest.err >&5
71580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71581   (exit $ac_status); } && {
71582          test -z "$ac_c_werror_flag" ||
71583          test ! -s conftest.err
71584        } && test -s conftest$ac_exeext && {
71585          test "$cross_compiling" = yes ||
71586          $as_test_x conftest$ac_exeext
71587        }; then
71588   eval "$as_ac_var=yes"
71589 else
71590   $as_echo "$as_me: failed program was:" >&5
71591 sed 's/^/| /' conftest.$ac_ext >&5
71592
71593         eval "$as_ac_var=no"
71594 fi
71595
71596 rm -rf conftest.dSYM
71597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71598       conftest$ac_exeext conftest.$ac_ext
71599 fi
71600 ac_res=`eval 'as_val=${'$as_ac_var'}
71601                  $as_echo "$as_val"'`
71602                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71603 $as_echo "$ac_res" >&6; }
71604 as_val=`eval 'as_val=${'$as_ac_var'}
71605                  $as_echo "$as_val"'`
71606    if test "x$as_val" = x""yes; then
71607   cat >>confdefs.h <<_ACEOF
71608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71609 _ACEOF
71610  ice_have_writev=yes
71611 fi
71612 done
71613
71614 if test "${ice_have_writev}" = yes; then
71615 { $as_echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
71616 $as_echo_n "checking for writev declaration in unistd.h sys/uio.h... " >&6; }
71617 if test "${ice_cv_have_writev_decl+set}" = set; then
71618   $as_echo_n "(cached) " >&6
71619 else
71620
71621 ice_cv_have_writev_decl=no
71622 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71623 ice_re_word='(^|[^a-zA-Z0-9_])'
71624 for header in unistd.h sys/uio.h; do
71625 # Check for ordinary declaration
71626 cat >conftest.$ac_ext <<_ACEOF
71627 /* confdefs.h.  */
71628 _ACEOF
71629 cat confdefs.h >>conftest.$ac_ext
71630 cat >>conftest.$ac_ext <<_ACEOF
71631 /* end confdefs.h.  */
71632 #include <$header>
71633
71634 _ACEOF
71635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71636   $EGREP "${ice_re_word}writev[         ]*\(" >/dev/null 2>&1; then
71637   ice_cv_have_writev_decl=yes
71638 fi
71639 rm -f conftest*
71640
71641 if test "$ice_cv_have_writev_decl" = yes; then
71642         break
71643 fi
71644 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71645 cat >conftest.$ac_ext <<_ACEOF
71646 /* confdefs.h.  */
71647 _ACEOF
71648 cat confdefs.h >>conftest.$ac_ext
71649 cat >>conftest.$ac_ext <<_ACEOF
71650 /* end confdefs.h.  */
71651 #include <$header>
71652
71653 _ACEOF
71654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71655   $EGREP "${ice_re_word}writev[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71656   ice_cv_have_writev_decl=yes
71657 fi
71658 rm -f conftest*
71659
71660 if test "$ice_cv_have_writev_decl" = yes; then
71661         break
71662 fi
71663 done
71664
71665 fi
71666
71667 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
71668 $as_echo "$ice_cv_have_writev_decl" >&6; }
71669 if test "$ice_cv_have_writev_decl" = yes; then
71670
71671 cat >>confdefs.h <<_ACEOF
71672 #define HAVE_WRITEV_DECL 1
71673 _ACEOF
71674
71675 fi
71676 fi
71677
71678
71679 ice_have_strcasecmp=no
71680
71681 for ac_func in strcasecmp
71682 do
71683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71684 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71685 $as_echo_n "checking for $ac_func... " >&6; }
71686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71687   $as_echo_n "(cached) " >&6
71688 else
71689   cat >conftest.$ac_ext <<_ACEOF
71690 /* confdefs.h.  */
71691 _ACEOF
71692 cat confdefs.h >>conftest.$ac_ext
71693 cat >>conftest.$ac_ext <<_ACEOF
71694 /* end confdefs.h.  */
71695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71697 #define $ac_func innocuous_$ac_func
71698
71699 /* System header to define __stub macros and hopefully few prototypes,
71700     which can conflict with char $ac_func (); below.
71701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71702     <limits.h> exists even on freestanding compilers.  */
71703
71704 #ifdef __STDC__
71705 # include <limits.h>
71706 #else
71707 # include <assert.h>
71708 #endif
71709
71710 #undef $ac_func
71711
71712 /* Override any GCC internal prototype to avoid an error.
71713    Use char because int might match the return type of a GCC
71714    builtin and then its argument prototype would still apply.  */
71715 #ifdef __cplusplus
71716 extern "C"
71717 #endif
71718 char $ac_func ();
71719 /* The GNU C library defines this for functions which it implements
71720     to always fail with ENOSYS.  Some functions are actually named
71721     something starting with __ and the normal name is an alias.  */
71722 #if defined __stub_$ac_func || defined __stub___$ac_func
71723 choke me
71724 #endif
71725
71726 int
71727 main ()
71728 {
71729 return $ac_func ();
71730   ;
71731   return 0;
71732 }
71733 _ACEOF
71734 rm -f conftest.$ac_objext conftest$ac_exeext
71735 if { (ac_try="$ac_link"
71736 case "(($ac_try" in
71737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71738   *) ac_try_echo=$ac_try;;
71739 esac
71740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71741 $as_echo "$ac_try_echo") >&5
71742   (eval "$ac_link") 2>conftest.er1
71743   ac_status=$?
71744   grep -v '^ *+' conftest.er1 >conftest.err
71745   rm -f conftest.er1
71746   cat conftest.err >&5
71747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71748   (exit $ac_status); } && {
71749          test -z "$ac_c_werror_flag" ||
71750          test ! -s conftest.err
71751        } && test -s conftest$ac_exeext && {
71752          test "$cross_compiling" = yes ||
71753          $as_test_x conftest$ac_exeext
71754        }; then
71755   eval "$as_ac_var=yes"
71756 else
71757   $as_echo "$as_me: failed program was:" >&5
71758 sed 's/^/| /' conftest.$ac_ext >&5
71759
71760         eval "$as_ac_var=no"
71761 fi
71762
71763 rm -rf conftest.dSYM
71764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71765       conftest$ac_exeext conftest.$ac_ext
71766 fi
71767 ac_res=`eval 'as_val=${'$as_ac_var'}
71768                  $as_echo "$as_val"'`
71769                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71770 $as_echo "$ac_res" >&6; }
71771 as_val=`eval 'as_val=${'$as_ac_var'}
71772                  $as_echo "$as_val"'`
71773    if test "x$as_val" = x""yes; then
71774   cat >>confdefs.h <<_ACEOF
71775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71776 _ACEOF
71777  ice_have_strcasecmp=yes
71778 fi
71779 done
71780
71781 if test "${ice_have_strcasecmp}" = yes; then
71782 { $as_echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
71783 $as_echo_n "checking for strcasecmp declaration in string.h strings.h... " >&6; }
71784 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
71785   $as_echo_n "(cached) " >&6
71786 else
71787
71788 ice_cv_have_strcasecmp_decl=no
71789 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71790 ice_re_word='(^|[^a-zA-Z0-9_])'
71791 for header in string.h strings.h; do
71792 # Check for ordinary declaration
71793 cat >conftest.$ac_ext <<_ACEOF
71794 /* confdefs.h.  */
71795 _ACEOF
71796 cat confdefs.h >>conftest.$ac_ext
71797 cat >>conftest.$ac_ext <<_ACEOF
71798 /* end confdefs.h.  */
71799 #include <$header>
71800
71801 _ACEOF
71802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71803   $EGREP "${ice_re_word}strcasecmp[     ]*\(" >/dev/null 2>&1; then
71804   ice_cv_have_strcasecmp_decl=yes
71805 fi
71806 rm -f conftest*
71807
71808 if test "$ice_cv_have_strcasecmp_decl" = yes; then
71809         break
71810 fi
71811 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71812 cat >conftest.$ac_ext <<_ACEOF
71813 /* confdefs.h.  */
71814 _ACEOF
71815 cat confdefs.h >>conftest.$ac_ext
71816 cat >>conftest.$ac_ext <<_ACEOF
71817 /* end confdefs.h.  */
71818 #include <$header>
71819
71820 _ACEOF
71821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71822   $EGREP "${ice_re_word}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71823   ice_cv_have_strcasecmp_decl=yes
71824 fi
71825 rm -f conftest*
71826
71827 if test "$ice_cv_have_strcasecmp_decl" = yes; then
71828         break
71829 fi
71830 done
71831
71832 fi
71833
71834 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
71835 $as_echo "$ice_cv_have_strcasecmp_decl" >&6; }
71836 if test "$ice_cv_have_strcasecmp_decl" = yes; then
71837
71838 cat >>confdefs.h <<_ACEOF
71839 #define HAVE_STRCASECMP_DECL 1
71840 _ACEOF
71841
71842 fi
71843 fi
71844
71845
71846
71847 ac_config_files="$ac_config_files Makefile amandad-src/Makefile amar-src/Makefile amplot/Makefile changer-src/Makefile client-src/Makefile common-src/Makefile common-src/versuff.c config/Makefile device-src/Makefile application-src/Makefile example/Makefile example/amanda-client.conf example/amanda.conf example/xinetd.amandaclient example/xinetd.amandaserver example/inetd.conf.amandaclient example/inetd.conf.amandaserver example/chg-mcutil.conf example/template.d/advanced.conf example/template.d/amanda-S3.conf example/template.d/amanda-harddisk.conf example/template.d/amanda-single-tape.conf example/template.d/amanda-tape-changer.conf gnulib/Makefile installcheck/Makefile man/Makefile oldrecover-src/Makefile packaging/Makefile perl/Makefile po/Makefile recover-src/Makefile restore-src/Makefile server-src/Makefile xfer-src/Makefile"
71848
71849
71850 cat >confcache <<\_ACEOF
71851 # This file is a shell script that caches the results of configure
71852 # tests run on this system so they can be shared between configure
71853 # scripts and configure runs, see configure's option --config-cache.
71854 # It is not useful on other systems.  If it contains results you don't
71855 # want to keep, you may remove or edit it.
71856 #
71857 # config.status only pays attention to the cache file if you give it
71858 # the --recheck option to rerun configure.
71859 #
71860 # `ac_cv_env_foo' variables (set or unset) will be overridden when
71861 # loading this file, other *unset* `ac_cv_foo' will be assigned the
71862 # following values.
71863
71864 _ACEOF
71865
71866 # The following way of writing the cache mishandles newlines in values,
71867 # but we know of no workaround that is simple, portable, and efficient.
71868 # So, we kill variables containing newlines.
71869 # Ultrix sh set writes to stderr and can't be redirected directly,
71870 # and sets the high bit in the cache file unless we assign to the vars.
71871 (
71872   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
71873     eval ac_val=\$$ac_var
71874     case $ac_val in #(
71875     *${as_nl}*)
71876       case $ac_var in #(
71877       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
71878 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
71879       esac
71880       case $ac_var in #(
71881       _ | IFS | as_nl) ;; #(
71882       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
71883       *) $as_unset $ac_var ;;
71884       esac ;;
71885     esac
71886   done
71887
71888   (set) 2>&1 |
71889     case $as_nl`(ac_space=' '; set) 2>&1` in #(
71890     *${as_nl}ac_space=\ *)
71891       # `set' does not quote correctly, so add quotes (double-quote
71892       # substitution turns \\\\ into \\, and sed turns \\ into \).
71893       sed -n \
71894         "s/'/'\\\\''/g;
71895           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
71896       ;; #(
71897     *)
71898       # `set' quotes correctly as required by POSIX, so do not add quotes.
71899       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
71900       ;;
71901     esac |
71902     sort
71903 ) |
71904   sed '
71905      /^ac_cv_env_/b end
71906      t clear
71907      :clear
71908      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
71909      t end
71910      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
71911      :end' >>confcache
71912 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
71913   if test -w "$cache_file"; then
71914     test "x$cache_file" != "x/dev/null" &&
71915       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
71916 $as_echo "$as_me: updating cache $cache_file" >&6;}
71917     cat confcache >$cache_file
71918   else
71919     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
71920 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
71921   fi
71922 fi
71923 rm -f confcache
71924
71925 test "x$prefix" = xNONE && prefix=$ac_default_prefix
71926 # Let make expand exec_prefix.
71927 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
71928
71929 DEFS=-DHAVE_CONFIG_H
71930
71931 ac_libobjs=
71932 ac_ltlibobjs=
71933 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
71934   # 1. Remove the extension, and $U if already installed.
71935   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
71936   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
71937   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
71938   #    will be set to the directory where LIBOBJS objects are built.
71939   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
71940   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
71941 done
71942 LIBOBJS=$ac_libobjs
71943
71944 LTLIBOBJS=$ac_ltlibobjs
71945
71946
71947  if test -n "$EXEEXT"; then
71948   am__EXEEXT_TRUE=
71949   am__EXEEXT_FALSE='#'
71950 else
71951   am__EXEEXT_TRUE='#'
71952   am__EXEEXT_FALSE=
71953 fi
71954
71955 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
71956   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
71957 Usually this means the macro was only invoked conditionally." >&5
71958 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
71959 Usually this means the macro was only invoked conditionally." >&2;}
71960    { (exit 1); exit 1; }; }
71961 fi
71962 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
71963   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
71964 Usually this means the macro was only invoked conditionally." >&5
71965 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
71966 Usually this means the macro was only invoked conditionally." >&2;}
71967    { (exit 1); exit 1; }; }
71968 fi
71969 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
71970   { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
71971 Usually this means the macro was only invoked conditionally." >&5
71972 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
71973 Usually this means the macro was only invoked conditionally." >&2;}
71974    { (exit 1); exit 1; }; }
71975 fi
71976
71977     gl_libobjs=
71978     gl_ltlibobjs=
71979     if test -n "$gl_LIBOBJS"; then
71980       # Remove the extension.
71981       sed_drop_objext='s/\.o$//;s/\.obj$//'
71982       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
71983         gl_libobjs="$gl_libobjs $i.$ac_objext"
71984         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
71985       done
71986     fi
71987     gl_LIBOBJS=$gl_libobjs
71988
71989     gl_LTLIBOBJS=$gl_ltlibobjs
71990
71991
71992
71993     gltests_libobjs=
71994     gltests_ltlibobjs=
71995     if test -n "$gltests_LIBOBJS"; then
71996       # Remove the extension.
71997       sed_drop_objext='s/\.o$//;s/\.obj$//'
71998       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
71999         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
72000         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
72001       done
72002     fi
72003     gltests_LIBOBJS=$gltests_libobjs
72004
72005     gltests_LTLIBOBJS=$gltests_ltlibobjs
72006
72007
72008 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
72009   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
72010 Usually this means the macro was only invoked conditionally." >&5
72011 $as_echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
72012 Usually this means the macro was only invoked conditionally." >&2;}
72013    { (exit 1); exit 1; }; }
72014 fi
72015 if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
72016   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_INSTALLPERMS\" was never defined.
72017 Usually this means the macro was only invoked conditionally." >&5
72018 $as_echo "$as_me: error: conditional \"WANT_INSTALLPERMS\" was never defined.
72019 Usually this means the macro was only invoked conditionally." >&2;}
72020    { (exit 1); exit 1; }; }
72021 fi
72022 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
72023   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
72024 Usually this means the macro was only invoked conditionally." >&5
72025 $as_echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
72026 Usually this means the macro was only invoked conditionally." >&2;}
72027    { (exit 1); exit 1; }; }
72028 fi
72029 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
72030   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
72031 Usually this means the macro was only invoked conditionally." >&5
72032 $as_echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
72033 Usually this means the macro was only invoked conditionally." >&2;}
72034    { (exit 1); exit 1; }; }
72035 fi
72036 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
72037   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
72038 Usually this means the macro was only invoked conditionally." >&5
72039 $as_echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
72040 Usually this means the macro was only invoked conditionally." >&2;}
72041    { (exit 1); exit 1; }; }
72042 fi
72043 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
72044   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
72045 Usually this means the macro was only invoked conditionally." >&5
72046 $as_echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
72047 Usually this means the macro was only invoked conditionally." >&2;}
72048    { (exit 1); exit 1; }; }
72049 fi
72050 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
72051   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
72052 Usually this means the macro was only invoked conditionally." >&5
72053 $as_echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
72054 Usually this means the macro was only invoked conditionally." >&2;}
72055    { (exit 1); exit 1; }; }
72056 fi
72057 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
72058   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
72059 Usually this means the macro was only invoked conditionally." >&5
72060 $as_echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
72061 Usually this means the macro was only invoked conditionally." >&2;}
72062    { (exit 1); exit 1; }; }
72063 fi
72064 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
72065   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
72066 Usually this means the macro was only invoked conditionally." >&5
72067 $as_echo "$as_me: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
72068 Usually this means the macro was only invoked conditionally." >&2;}
72069    { (exit 1); exit 1; }; }
72070 fi
72071 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
72072   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
72073 Usually this means the macro was only invoked conditionally." >&5
72074 $as_echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
72075 Usually this means the macro was only invoked conditionally." >&2;}
72076    { (exit 1); exit 1; }; }
72077 fi
72078 if test -z "${WANT_SCSI_LINUX_TRUE}" && test -z "${WANT_SCSI_LINUX_FALSE}"; then
72079   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_LINUX\" was never defined.
72080 Usually this means the macro was only invoked conditionally." >&5
72081 $as_echo "$as_me: error: conditional \"WANT_SCSI_LINUX\" was never defined.
72082 Usually this means the macro was only invoked conditionally." >&2;}
72083    { (exit 1); exit 1; }; }
72084 fi
72085 if test -z "${WANT_SCSI_HPUX_NEW_TRUE}" && test -z "${WANT_SCSI_HPUX_NEW_FALSE}"; then
72086   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_HPUX_NEW\" was never defined.
72087 Usually this means the macro was only invoked conditionally." >&5
72088 $as_echo "$as_me: error: conditional \"WANT_SCSI_HPUX_NEW\" was never defined.
72089 Usually this means the macro was only invoked conditionally." >&2;}
72090    { (exit 1); exit 1; }; }
72091 fi
72092 if test -z "${WANT_SCSI_IRIX_TRUE}" && test -z "${WANT_SCSI_IRIX_FALSE}"; then
72093   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_IRIX\" was never defined.
72094 Usually this means the macro was only invoked conditionally." >&5
72095 $as_echo "$as_me: error: conditional \"WANT_SCSI_IRIX\" was never defined.
72096 Usually this means the macro was only invoked conditionally." >&2;}
72097    { (exit 1); exit 1; }; }
72098 fi
72099 if test -z "${WANT_SCSI_SOLARIS_TRUE}" && test -z "${WANT_SCSI_SOLARIS_FALSE}"; then
72100   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_SOLARIS\" was never defined.
72101 Usually this means the macro was only invoked conditionally." >&5
72102 $as_echo "$as_me: error: conditional \"WANT_SCSI_SOLARIS\" was never defined.
72103 Usually this means the macro was only invoked conditionally." >&2;}
72104    { (exit 1); exit 1; }; }
72105 fi
72106 if test -z "${WANT_SCSI_AIX_TRUE}" && test -z "${WANT_SCSI_AIX_FALSE}"; then
72107   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_AIX\" was never defined.
72108 Usually this means the macro was only invoked conditionally." >&5
72109 $as_echo "$as_me: error: conditional \"WANT_SCSI_AIX\" was never defined.
72110 Usually this means the macro was only invoked conditionally." >&2;}
72111    { (exit 1); exit 1; }; }
72112 fi
72113 if test -z "${WANT_SCSI_CAM_TRUE}" && test -z "${WANT_SCSI_CAM_FALSE}"; then
72114   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_CAM\" was never defined.
72115 Usually this means the macro was only invoked conditionally." >&5
72116 $as_echo "$as_me: error: conditional \"WANT_SCSI_CAM\" was never defined.
72117 Usually this means the macro was only invoked conditionally." >&2;}
72118    { (exit 1); exit 1; }; }
72119 fi
72120 if test -z "${WANT_SCSI_BSD_TRUE}" && test -z "${WANT_SCSI_BSD_FALSE}"; then
72121   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_BSD\" was never defined.
72122 Usually this means the macro was only invoked conditionally." >&5
72123 $as_echo "$as_me: error: conditional \"WANT_SCSI_BSD\" was never defined.
72124 Usually this means the macro was only invoked conditionally." >&2;}
72125    { (exit 1); exit 1; }; }
72126 fi
72127 if test -z "${WANT_CHG_SCSI_CHIO_TRUE}" && test -z "${WANT_CHG_SCSI_CHIO_FALSE}"; then
72128   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI_CHIO\" was never defined.
72129 Usually this means the macro was only invoked conditionally." >&5
72130 $as_echo "$as_me: error: conditional \"WANT_CHG_SCSI_CHIO\" was never defined.
72131 Usually this means the macro was only invoked conditionally." >&2;}
72132    { (exit 1); exit 1; }; }
72133 fi
72134 if test -z "${WANT_SCSI_HPUX_TRUE}" && test -z "${WANT_SCSI_HPUX_FALSE}"; then
72135   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_HPUX\" was never defined.
72136 Usually this means the macro was only invoked conditionally." >&5
72137 $as_echo "$as_me: error: conditional \"WANT_SCSI_HPUX\" was never defined.
72138 Usually this means the macro was only invoked conditionally." >&2;}
72139    { (exit 1); exit 1; }; }
72140 fi
72141 if test -z "${WANT_SCSI_CHIO_TRUE}" && test -z "${WANT_SCSI_CHIO_FALSE}"; then
72142   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_CHIO\" was never defined.
72143 Usually this means the macro was only invoked conditionally." >&5
72144 $as_echo "$as_me: error: conditional \"WANT_SCSI_CHIO\" was never defined.
72145 Usually this means the macro was only invoked conditionally." >&2;}
72146    { (exit 1); exit 1; }; }
72147 fi
72148 if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
72149   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
72150 Usually this means the macro was only invoked conditionally." >&5
72151 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
72152 Usually this means the macro was only invoked conditionally." >&2;}
72153    { (exit 1); exit 1; }; }
72154 fi
72155 if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
72156   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
72157 Usually this means the macro was only invoked conditionally." >&5
72158 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
72159 Usually this means the macro was only invoked conditionally." >&2;}
72160    { (exit 1); exit 1; }; }
72161 fi
72162 if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
72163   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
72164 Usually this means the macro was only invoked conditionally." >&5
72165 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
72166 Usually this means the macro was only invoked conditionally." >&2;}
72167    { (exit 1); exit 1; }; }
72168 fi
72169 if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
72170   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
72171 Usually this means the macro was only invoked conditionally." >&5
72172 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
72173 Usually this means the macro was only invoked conditionally." >&2;}
72174    { (exit 1); exit 1; }; }
72175 fi
72176 if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
72177   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
72178 Usually this means the macro was only invoked conditionally." >&5
72179 $as_echo "$as_me: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
72180 Usually this means the macro was only invoked conditionally." >&2;}
72181    { (exit 1); exit 1; }; }
72182 fi
72183 if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
72184   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_S3_DEVICE\" was never defined.
72185 Usually this means the macro was only invoked conditionally." >&5
72186 $as_echo "$as_me: error: conditional \"WANT_S3_DEVICE\" was never defined.
72187 Usually this means the macro was only invoked conditionally." >&2;}
72188    { (exit 1); exit 1; }; }
72189 fi
72190 if test -z "${WANT_TAPE_XENIX_TRUE}" && test -z "${WANT_TAPE_XENIX_FALSE}"; then
72191   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_XENIX\" was never defined.
72192 Usually this means the macro was only invoked conditionally." >&5
72193 $as_echo "$as_me: error: conditional \"WANT_TAPE_XENIX\" was never defined.
72194 Usually this means the macro was only invoked conditionally." >&2;}
72195    { (exit 1); exit 1; }; }
72196 fi
72197 if test -z "${WANT_TAPE_AIX_TRUE}" && test -z "${WANT_TAPE_AIX_FALSE}"; then
72198   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_AIX\" was never defined.
72199 Usually this means the macro was only invoked conditionally." >&5
72200 $as_echo "$as_me: error: conditional \"WANT_TAPE_AIX\" was never defined.
72201 Usually this means the macro was only invoked conditionally." >&2;}
72202    { (exit 1); exit 1; }; }
72203 fi
72204 if test -z "${WANT_TAPE_UWARE_TRUE}" && test -z "${WANT_TAPE_UWARE_FALSE}"; then
72205   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_UWARE\" was never defined.
72206 Usually this means the macro was only invoked conditionally." >&5
72207 $as_echo "$as_me: error: conditional \"WANT_TAPE_UWARE\" was never defined.
72208 Usually this means the macro was only invoked conditionally." >&2;}
72209    { (exit 1); exit 1; }; }
72210 fi
72211 if test -z "${WANT_TAPE_POSIX_TRUE}" && test -z "${WANT_TAPE_POSIX_FALSE}"; then
72212   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_POSIX\" was never defined.
72213 Usually this means the macro was only invoked conditionally." >&5
72214 $as_echo "$as_me: error: conditional \"WANT_TAPE_POSIX\" was never defined.
72215 Usually this means the macro was only invoked conditionally." >&2;}
72216    { (exit 1); exit 1; }; }
72217 fi
72218 if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
72219   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
72220 Usually this means the macro was only invoked conditionally." >&5
72221 $as_echo "$as_me: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
72222 Usually this means the macro was only invoked conditionally." >&2;}
72223    { (exit 1); exit 1; }; }
72224 fi
72225 if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
72226   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSD_SECURITY\" was never defined.
72227 Usually this means the macro was only invoked conditionally." >&5
72228 $as_echo "$as_me: error: conditional \"WANT_BSD_SECURITY\" was never defined.
72229 Usually this means the macro was only invoked conditionally." >&2;}
72230    { (exit 1); exit 1; }; }
72231 fi
72232 if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
72233   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
72234 Usually this means the macro was only invoked conditionally." >&5
72235 $as_echo "$as_me: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
72236 Usually this means the macro was only invoked conditionally." >&2;}
72237    { (exit 1); exit 1; }; }
72238 fi
72239 if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
72240   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
72241 Usually this means the macro was only invoked conditionally." >&5
72242 $as_echo "$as_me: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
72243 Usually this means the macro was only invoked conditionally." >&2;}
72244    { (exit 1); exit 1; }; }
72245 fi
72246 if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
72247   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RSH_SECURITY\" was never defined.
72248 Usually this means the macro was only invoked conditionally." >&5
72249 $as_echo "$as_me: error: conditional \"WANT_RSH_SECURITY\" was never defined.
72250 Usually this means the macro was only invoked conditionally." >&2;}
72251    { (exit 1); exit 1; }; }
72252 fi
72253 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
72254   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
72255 Usually this means the macro was only invoked conditionally." >&5
72256 $as_echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
72257 Usually this means the macro was only invoked conditionally." >&2;}
72258    { (exit 1); exit 1; }; }
72259 fi
72260 if test -z "${WANT_KRB4_SECURITY_TRUE}" && test -z "${WANT_KRB4_SECURITY_FALSE}"; then
72261   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_KRB4_SECURITY\" was never defined.
72262 Usually this means the macro was only invoked conditionally." >&5
72263 $as_echo "$as_me: error: conditional \"WANT_KRB4_SECURITY\" was never defined.
72264 Usually this means the macro was only invoked conditionally." >&2;}
72265    { (exit 1); exit 1; }; }
72266 fi
72267 if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
72268   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
72269 Usually this means the macro was only invoked conditionally." >&5
72270 $as_echo "$as_me: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
72271 Usually this means the macro was only invoked conditionally." >&2;}
72272    { (exit 1); exit 1; }; }
72273 fi
72274 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
72275   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
72276 Usually this means the macro was only invoked conditionally." >&5
72277 $as_echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
72278 Usually this means the macro was only invoked conditionally." >&2;}
72279    { (exit 1); exit 1; }; }
72280 fi
72281
72282 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
72283   { { $as_echo "$as_me:$LINENO: error: conditional \"GCC_COMPILER\" was never defined.
72284 Usually this means the macro was only invoked conditionally." >&5
72285 $as_echo "$as_me: error: conditional \"GCC_COMPILER\" was never defined.
72286 Usually this means the macro was only invoked conditionally." >&2;}
72287    { (exit 1); exit 1; }; }
72288 fi
72289 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
72290   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
72291 Usually this means the macro was only invoked conditionally." >&5
72292 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
72293 Usually this means the macro was only invoked conditionally." >&2;}
72294    { (exit 1); exit 1; }; }
72295 fi
72296
72297 : ${CONFIG_STATUS=./config.status}
72298 ac_write_fail=0
72299 ac_clean_files_save=$ac_clean_files
72300 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
72301 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
72302 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
72303 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72304 #! $SHELL
72305 # Generated by $as_me.
72306 # Run this file to recreate the current configuration.
72307 # Compiler output produced by configure, useful for debugging
72308 # configure, is in config.log if it exists.
72309
72310 debug=false
72311 ac_cs_recheck=false
72312 ac_cs_silent=false
72313 SHELL=\${CONFIG_SHELL-$SHELL}
72314 _ACEOF
72315
72316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72317 ## --------------------- ##
72318 ## M4sh Initialization.  ##
72319 ## --------------------- ##
72320
72321 # Be more Bourne compatible
72322 DUALCASE=1; export DUALCASE # for MKS sh
72323 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
72324   emulate sh
72325   NULLCMD=:
72326   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
72327   # is contrary to our usage.  Disable this feature.
72328   alias -g '${1+"$@"}'='"$@"'
72329   setopt NO_GLOB_SUBST
72330 else
72331   case `(set -o) 2>/dev/null` in
72332   *posix*) set -o posix ;;
72333 esac
72334
72335 fi
72336
72337
72338
72339
72340 # PATH needs CR
72341 # Avoid depending upon Character Ranges.
72342 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
72343 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
72344 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
72345 as_cr_digits='0123456789'
72346 as_cr_alnum=$as_cr_Letters$as_cr_digits
72347
72348 as_nl='
72349 '
72350 export as_nl
72351 # Printing a long string crashes Solaris 7 /usr/bin/printf.
72352 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
72353 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
72354 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
72355 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
72356   as_echo='printf %s\n'
72357   as_echo_n='printf %s'
72358 else
72359   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
72360     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
72361     as_echo_n='/usr/ucb/echo -n'
72362   else
72363     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
72364     as_echo_n_body='eval
72365       arg=$1;
72366       case $arg in
72367       *"$as_nl"*)
72368         expr "X$arg" : "X\\(.*\\)$as_nl";
72369         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
72370       esac;
72371       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
72372     '
72373     export as_echo_n_body
72374     as_echo_n='sh -c $as_echo_n_body as_echo'
72375   fi
72376   export as_echo_body
72377   as_echo='sh -c $as_echo_body as_echo'
72378 fi
72379
72380 # The user is always right.
72381 if test "${PATH_SEPARATOR+set}" != set; then
72382   PATH_SEPARATOR=:
72383   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
72384     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
72385       PATH_SEPARATOR=';'
72386   }
72387 fi
72388
72389 # Support unset when possible.
72390 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
72391   as_unset=unset
72392 else
72393   as_unset=false
72394 fi
72395
72396
72397 # IFS
72398 # We need space, tab and new line, in precisely that order.  Quoting is
72399 # there to prevent editors from complaining about space-tab.
72400 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
72401 # splitting by setting IFS to empty value.)
72402 IFS=" ""        $as_nl"
72403
72404 # Find who we are.  Look in the path if we contain no directory separator.
72405 case $0 in
72406   *[\\/]* ) as_myself=$0 ;;
72407   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72408 for as_dir in $PATH
72409 do
72410   IFS=$as_save_IFS
72411   test -z "$as_dir" && as_dir=.
72412   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
72413 done
72414 IFS=$as_save_IFS
72415
72416      ;;
72417 esac
72418 # We did not find ourselves, most probably we were run as `sh COMMAND'
72419 # in which case we are not to be found in the path.
72420 if test "x$as_myself" = x; then
72421   as_myself=$0
72422 fi
72423 if test ! -f "$as_myself"; then
72424   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
72425   { (exit 1); exit 1; }
72426 fi
72427
72428 # Work around bugs in pre-3.0 UWIN ksh.
72429 for as_var in ENV MAIL MAILPATH
72430 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
72431 done
72432 PS1='$ '
72433 PS2='> '
72434 PS4='+ '
72435
72436 # NLS nuisances.
72437 LC_ALL=C
72438 export LC_ALL
72439 LANGUAGE=C
72440 export LANGUAGE
72441
72442 # Required to use basename.
72443 if expr a : '\(a\)' >/dev/null 2>&1 &&
72444    test "X`expr 00001 : '.*\(...\)'`" = X001; then
72445   as_expr=expr
72446 else
72447   as_expr=false
72448 fi
72449
72450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
72451   as_basename=basename
72452 else
72453   as_basename=false
72454 fi
72455
72456
72457 # Name of the executable.
72458 as_me=`$as_basename -- "$0" ||
72459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72460          X"$0" : 'X\(//\)$' \| \
72461          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
72462 $as_echo X/"$0" |
72463     sed '/^.*\/\([^/][^/]*\)\/*$/{
72464             s//\1/
72465             q
72466           }
72467           /^X\/\(\/\/\)$/{
72468             s//\1/
72469             q
72470           }
72471           /^X\/\(\/\).*/{
72472             s//\1/
72473             q
72474           }
72475           s/.*/./; q'`
72476
72477 # CDPATH.
72478 $as_unset CDPATH
72479
72480
72481
72482   as_lineno_1=$LINENO
72483   as_lineno_2=$LINENO
72484   test "x$as_lineno_1" != "x$as_lineno_2" &&
72485   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
72486
72487   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
72488   # uniformly replaced by the line number.  The first 'sed' inserts a
72489   # line-number line after each line using $LINENO; the second 'sed'
72490   # does the real work.  The second script uses 'N' to pair each
72491   # line-number line with the line containing $LINENO, and appends
72492   # trailing '-' during substitution so that $LINENO is not a special
72493   # case at line end.
72494   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
72495   # scripts with optimization help from Paolo Bonzini.  Blame Lee
72496   # E. McMahon (1931-1989) for sed's syntax.  :-)
72497   sed -n '
72498     p
72499     /[$]LINENO/=
72500   ' <$as_myself |
72501     sed '
72502       s/[$]LINENO.*/&-/
72503       t lineno
72504       b
72505       :lineno
72506       N
72507       :loop
72508       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
72509       t loop
72510       s/-\n.*//
72511     ' >$as_me.lineno &&
72512   chmod +x "$as_me.lineno" ||
72513     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
72514    { (exit 1); exit 1; }; }
72515
72516   # Don't try to exec as it changes $[0], causing all sort of problems
72517   # (the dirname of $[0] is not the place where we might find the
72518   # original and so on.  Autoconf is especially sensitive to this).
72519   . "./$as_me.lineno"
72520   # Exit status is that of the last command.
72521   exit
72522 }
72523
72524
72525 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
72526   as_dirname=dirname
72527 else
72528   as_dirname=false
72529 fi
72530
72531 ECHO_C= ECHO_N= ECHO_T=
72532 case `echo -n x` in
72533 -n*)
72534   case `echo 'x\c'` in
72535   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
72536   *)   ECHO_C='\c';;
72537   esac;;
72538 *)
72539   ECHO_N='-n';;
72540 esac
72541 if expr a : '\(a\)' >/dev/null 2>&1 &&
72542    test "X`expr 00001 : '.*\(...\)'`" = X001; then
72543   as_expr=expr
72544 else
72545   as_expr=false
72546 fi
72547
72548 rm -f conf$$ conf$$.exe conf$$.file
72549 if test -d conf$$.dir; then
72550   rm -f conf$$.dir/conf$$.file
72551 else
72552   rm -f conf$$.dir
72553   mkdir conf$$.dir 2>/dev/null
72554 fi
72555 if (echo >conf$$.file) 2>/dev/null; then
72556   if ln -s conf$$.file conf$$ 2>/dev/null; then
72557     as_ln_s='ln -s'
72558     # ... but there are two gotchas:
72559     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
72560     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
72561     # In both cases, we have to default to `cp -p'.
72562     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
72563       as_ln_s='cp -p'
72564   elif ln conf$$.file conf$$ 2>/dev/null; then
72565     as_ln_s=ln
72566   else
72567     as_ln_s='cp -p'
72568   fi
72569 else
72570   as_ln_s='cp -p'
72571 fi
72572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
72573 rmdir conf$$.dir 2>/dev/null
72574
72575 if mkdir -p . 2>/dev/null; then
72576   as_mkdir_p=:
72577 else
72578   test -d ./-p && rmdir ./-p
72579   as_mkdir_p=false
72580 fi
72581
72582 if test -x / >/dev/null 2>&1; then
72583   as_test_x='test -x'
72584 else
72585   if ls -dL / >/dev/null 2>&1; then
72586     as_ls_L_option=L
72587   else
72588     as_ls_L_option=
72589   fi
72590   as_test_x='
72591     eval sh -c '\''
72592       if test -d "$1"; then
72593         test -d "$1/.";
72594       else
72595         case $1 in
72596         -*)set "./$1";;
72597         esac;
72598         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
72599         ???[sx]*):;;*)false;;esac;fi
72600     '\'' sh
72601   '
72602 fi
72603 as_executable_p=$as_test_x
72604
72605 # Sed expression to map a string onto a valid CPP name.
72606 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
72607
72608 # Sed expression to map a string onto a valid variable name.
72609 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
72610
72611
72612 exec 6>&1
72613
72614 # Save the log message, to keep $[0] and so on meaningful, and to
72615 # report actual input values of CONFIG_FILES etc. instead of their
72616 # values after options handling.
72617 ac_log="
72618 This file was extended by $as_me, which was
72619 generated by GNU Autoconf 2.63.  Invocation command line was
72620
72621   CONFIG_FILES    = $CONFIG_FILES
72622   CONFIG_HEADERS  = $CONFIG_HEADERS
72623   CONFIG_LINKS    = $CONFIG_LINKS
72624   CONFIG_COMMANDS = $CONFIG_COMMANDS
72625   $ $0 $@
72626
72627 on `(hostname || uname -n) 2>/dev/null | sed 1q`
72628 "
72629
72630 _ACEOF
72631
72632 case $ac_config_files in *"
72633 "*) set x $ac_config_files; shift; ac_config_files=$*;;
72634 esac
72635
72636 case $ac_config_headers in *"
72637 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
72638 esac
72639
72640
72641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72642 # Files that config.status was made for.
72643 config_files="$ac_config_files"
72644 config_headers="$ac_config_headers"
72645 config_commands="$ac_config_commands"
72646
72647 _ACEOF
72648
72649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72650 ac_cs_usage="\
72651 \`$as_me' instantiates files from templates according to the
72652 current configuration.
72653
72654 Usage: $0 [OPTION]... [FILE]...
72655
72656   -h, --help       print this help, then exit
72657   -V, --version    print version number and configuration settings, then exit
72658   -q, --quiet, --silent
72659                    do not print progress messages
72660   -d, --debug      don't remove temporary files
72661       --recheck    update $as_me by reconfiguring in the same conditions
72662       --file=FILE[:TEMPLATE]
72663                    instantiate the configuration file FILE
72664       --header=FILE[:TEMPLATE]
72665                    instantiate the configuration header FILE
72666
72667 Configuration files:
72668 $config_files
72669
72670 Configuration headers:
72671 $config_headers
72672
72673 Configuration commands:
72674 $config_commands
72675
72676 Report bugs to <bug-autoconf@gnu.org>."
72677
72678 _ACEOF
72679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72680 ac_cs_version="\\
72681 config.status
72682 configured by $0, generated by GNU Autoconf 2.63,
72683   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
72684
72685 Copyright (C) 2008 Free Software Foundation, Inc.
72686 This config.status script is free software; the Free Software Foundation
72687 gives unlimited permission to copy, distribute and modify it."
72688
72689 ac_pwd='$ac_pwd'
72690 srcdir='$srcdir'
72691 INSTALL='$INSTALL'
72692 MKDIR_P='$MKDIR_P'
72693 AWK='$AWK'
72694 test -n "\$AWK" || AWK=awk
72695 _ACEOF
72696
72697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72698 # The default lists apply if the user does not specify any file.
72699 ac_need_defaults=:
72700 while test $# != 0
72701 do
72702   case $1 in
72703   --*=*)
72704     ac_option=`expr "X$1" : 'X\([^=]*\)='`
72705     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
72706     ac_shift=:
72707     ;;
72708   *)
72709     ac_option=$1
72710     ac_optarg=$2
72711     ac_shift=shift
72712     ;;
72713   esac
72714
72715   case $ac_option in
72716   # Handling of the options.
72717   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
72718     ac_cs_recheck=: ;;
72719   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
72720     $as_echo "$ac_cs_version"; exit ;;
72721   --debug | --debu | --deb | --de | --d | -d )
72722     debug=: ;;
72723   --file | --fil | --fi | --f )
72724     $ac_shift
72725     case $ac_optarg in
72726     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
72727     esac
72728     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
72729     ac_need_defaults=false;;
72730   --header | --heade | --head | --hea )
72731     $ac_shift
72732     case $ac_optarg in
72733     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
72734     esac
72735     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
72736     ac_need_defaults=false;;
72737   --he | --h)
72738     # Conflict between --help and --header
72739     { $as_echo "$as_me: error: ambiguous option: $1
72740 Try \`$0 --help' for more information." >&2
72741    { (exit 1); exit 1; }; };;
72742   --help | --hel | -h )
72743     $as_echo "$ac_cs_usage"; exit ;;
72744   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
72745   | -silent | --silent | --silen | --sile | --sil | --si | --s)
72746     ac_cs_silent=: ;;
72747
72748   # This is an error.
72749   -*) { $as_echo "$as_me: error: unrecognized option: $1
72750 Try \`$0 --help' for more information." >&2
72751    { (exit 1); exit 1; }; } ;;
72752
72753   *) ac_config_targets="$ac_config_targets $1"
72754      ac_need_defaults=false ;;
72755
72756   esac
72757   shift
72758 done
72759
72760 ac_configure_extra_args=
72761
72762 if $ac_cs_silent; then
72763   exec 6>/dev/null
72764   ac_configure_extra_args="$ac_configure_extra_args --silent"
72765 fi
72766
72767 _ACEOF
72768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72769 if \$ac_cs_recheck; then
72770   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
72771   shift
72772   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
72773   CONFIG_SHELL='$SHELL'
72774   export CONFIG_SHELL
72775   exec "\$@"
72776 fi
72777
72778 _ACEOF
72779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72780 exec 5>>config.log
72781 {
72782   echo
72783   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
72784 ## Running $as_me. ##
72785 _ASBOX
72786   $as_echo "$ac_log"
72787 } >&5
72788
72789 _ACEOF
72790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72791 #
72792 # INIT-COMMANDS
72793 #
72794 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
72795 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
72796     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
72797     # from automake < 1.5.
72798     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
72799     # Capture the value of LINGUAS because we need it to compute CATALOGS.
72800     LINGUAS="${LINGUAS-%UNSET%}"
72801
72802
72803 _ACEOF
72804
72805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72806
72807 # Handling of arguments.
72808 for ac_config_target in $ac_config_targets
72809 do
72810   case $ac_config_target in
72811     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
72812     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
72813     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
72814     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
72815     "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
72816     "amar-src/Makefile") CONFIG_FILES="$CONFIG_FILES amar-src/Makefile" ;;
72817     "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
72818     "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
72819     "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
72820     "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
72821     "common-src/versuff.c") CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
72822     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
72823     "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
72824     "application-src/Makefile") CONFIG_FILES="$CONFIG_FILES application-src/Makefile" ;;
72825     "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
72826     "example/amanda-client.conf") CONFIG_FILES="$CONFIG_FILES example/amanda-client.conf" ;;
72827     "example/amanda.conf") CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
72828     "example/xinetd.amandaclient") CONFIG_FILES="$CONFIG_FILES example/xinetd.amandaclient" ;;
72829     "example/xinetd.amandaserver") CONFIG_FILES="$CONFIG_FILES example/xinetd.amandaserver" ;;
72830     "example/inetd.conf.amandaclient") CONFIG_FILES="$CONFIG_FILES example/inetd.conf.amandaclient" ;;
72831     "example/inetd.conf.amandaserver") CONFIG_FILES="$CONFIG_FILES example/inetd.conf.amandaserver" ;;
72832     "example/chg-mcutil.conf") CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
72833     "example/template.d/advanced.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/advanced.conf" ;;
72834     "example/template.d/amanda-S3.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-S3.conf" ;;
72835     "example/template.d/amanda-harddisk.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-harddisk.conf" ;;
72836     "example/template.d/amanda-single-tape.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-single-tape.conf" ;;
72837     "example/template.d/amanda-tape-changer.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-tape-changer.conf" ;;
72838     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
72839     "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
72840     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
72841     "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
72842     "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
72843     "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
72844     "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
72845     "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
72846     "restore-src/Makefile") CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
72847     "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
72848     "xfer-src/Makefile") CONFIG_FILES="$CONFIG_FILES xfer-src/Makefile" ;;
72849
72850   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
72851 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
72852    { (exit 1); exit 1; }; };;
72853   esac
72854 done
72855
72856
72857 # If the user did not use the arguments to specify the items to instantiate,
72858 # then the envvar interface is used.  Set only those that are not.
72859 # We use the long form for the default assignment because of an extremely
72860 # bizarre bug on SunOS 4.1.3.
72861 if $ac_need_defaults; then
72862   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72863   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
72864   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
72865 fi
72866
72867 # Have a temporary directory for convenience.  Make it in the build tree
72868 # simply because there is no reason against having it here, and in addition,
72869 # creating and moving files from /tmp can sometimes cause problems.
72870 # Hook for its removal unless debugging.
72871 # Note that there is a small window in which the directory will not be cleaned:
72872 # after its creation but before its name has been assigned to `$tmp'.
72873 $debug ||
72874 {
72875   tmp=
72876   trap 'exit_status=$?
72877   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
72878 ' 0
72879   trap '{ (exit 1); exit 1; }' 1 2 13 15
72880 }
72881 # Create a (secure) tmp directory for tmp files.
72882
72883 {
72884   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
72885   test -n "$tmp" && test -d "$tmp"
72886 }  ||
72887 {
72888   tmp=./conf$$-$RANDOM
72889   (umask 077 && mkdir "$tmp")
72890 } ||
72891 {
72892    $as_echo "$as_me: cannot create a temporary directory in ." >&2
72893    { (exit 1); exit 1; }
72894 }
72895
72896 # Set up the scripts for CONFIG_FILES section.
72897 # No need to generate them if there are no CONFIG_FILES.
72898 # This happens for instance with `./config.status config.h'.
72899 if test -n "$CONFIG_FILES"; then
72900
72901
72902 ac_cr='\r'
72903 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
72904 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
72905   ac_cs_awk_cr='\\r'
72906 else
72907   ac_cs_awk_cr=$ac_cr
72908 fi
72909
72910 echo 'BEGIN {' >"$tmp/subs1.awk" &&
72911 _ACEOF
72912
72913
72914 {
72915   echo "cat >conf$$subs.awk <<_ACEOF" &&
72916   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
72917   echo "_ACEOF"
72918 } >conf$$subs.sh ||
72919   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
72920 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
72921    { (exit 1); exit 1; }; }
72922 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
72923 ac_delim='%!_!# '
72924 for ac_last_try in false false false false false :; do
72925   . ./conf$$subs.sh ||
72926     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
72927 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
72928    { (exit 1); exit 1; }; }
72929
72930   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
72931   if test $ac_delim_n = $ac_delim_num; then
72932     break
72933   elif $ac_last_try; then
72934     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
72935 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
72936    { (exit 1); exit 1; }; }
72937   else
72938     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
72939   fi
72940 done
72941 rm -f conf$$subs.sh
72942
72943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72944 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
72945 _ACEOF
72946 sed -n '
72947 h
72948 s/^/S["/; s/!.*/"]=/
72949 p
72950 g
72951 s/^[^!]*!//
72952 :repl
72953 t repl
72954 s/'"$ac_delim"'$//
72955 t delim
72956 :nl
72957 h
72958 s/\(.\{148\}\).*/\1/
72959 t more1
72960 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
72961 p
72962 n
72963 b repl
72964 :more1
72965 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
72966 p
72967 g
72968 s/.\{148\}//
72969 t nl
72970 :delim
72971 h
72972 s/\(.\{148\}\).*/\1/
72973 t more2
72974 s/["\\]/\\&/g; s/^/"/; s/$/"/
72975 p
72976 b
72977 :more2
72978 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
72979 p
72980 g
72981 s/.\{148\}//
72982 t delim
72983 ' <conf$$subs.awk | sed '
72984 /^[^""]/{
72985   N
72986   s/\n//
72987 }
72988 ' >>$CONFIG_STATUS || ac_write_fail=1
72989 rm -f conf$$subs.awk
72990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72991 _ACAWK
72992 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
72993   for (key in S) S_is_set[key] = 1
72994   FS = "\a"
72995
72996 }
72997 {
72998   line = $ 0
72999   nfields = split(line, field, "@")
73000   substed = 0
73001   len = length(field[1])
73002   for (i = 2; i < nfields; i++) {
73003     key = field[i]
73004     keylen = length(key)
73005     if (S_is_set[key]) {
73006       value = S[key]
73007       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
73008       len += length(value) + length(field[++i])
73009       substed = 1
73010     } else
73011       len += 1 + keylen
73012   }
73013
73014   print line
73015 }
73016
73017 _ACAWK
73018 _ACEOF
73019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
73020 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
73021   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
73022 else
73023   cat
73024 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
73025   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
73026 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
73027    { (exit 1); exit 1; }; }
73028 _ACEOF
73029
73030 # VPATH may cause trouble with some makes, so we remove $(srcdir),
73031 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
73032 # trailing colons and then remove the whole line if VPATH becomes empty
73033 # (actually we leave an empty line to preserve line numbers).
73034 if test "x$srcdir" = x.; then
73035   ac_vpsub='/^[  ]*VPATH[        ]*=/{
73036 s/:*\$(srcdir):*/:/
73037 s/:*\${srcdir}:*/:/
73038 s/:*@srcdir@:*/:/
73039 s/^\([^=]*=[     ]*\):*/\1/
73040 s/:*$//
73041 s/^[^=]*=[       ]*$//
73042 }'
73043 fi
73044
73045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
73046 fi # test -n "$CONFIG_FILES"
73047
73048 # Set up the scripts for CONFIG_HEADERS section.
73049 # No need to generate them if there are no CONFIG_HEADERS.
73050 # This happens for instance with `./config.status Makefile'.
73051 if test -n "$CONFIG_HEADERS"; then
73052 cat >"$tmp/defines.awk" <<\_ACAWK ||
73053 BEGIN {
73054 _ACEOF
73055
73056 # Transform confdefs.h into an awk script `defines.awk', embedded as
73057 # here-document in config.status, that substitutes the proper values into
73058 # config.h.in to produce config.h.
73059
73060 # Create a delimiter string that does not exist in confdefs.h, to ease
73061 # handling of long lines.
73062 ac_delim='%!_!# '
73063 for ac_last_try in false false :; do
73064   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
73065   if test -z "$ac_t"; then
73066     break
73067   elif $ac_last_try; then
73068     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
73069 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
73070    { (exit 1); exit 1; }; }
73071   else
73072     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
73073   fi
73074 done
73075
73076 # For the awk script, D is an array of macro values keyed by name,
73077 # likewise P contains macro parameters if any.  Preserve backslash
73078 # newline sequences.
73079
73080 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
73081 sed -n '
73082 s/.\{148\}/&'"$ac_delim"'/g
73083 t rset
73084 :rset
73085 s/^[     ]*#[    ]*define[       ][      ]*/ /
73086 t def
73087 d
73088 :def
73089 s/\\$//
73090 t bsnl
73091 s/["\\]/\\&/g
73092 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
73093 D["\1"]=" \3"/p
73094 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
73095 d
73096 :bsnl
73097 s/["\\]/\\&/g
73098 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
73099 D["\1"]=" \3\\\\\\n"\\/p
73100 t cont
73101 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
73102 t cont
73103 d
73104 :cont
73105 n
73106 s/.\{148\}/&'"$ac_delim"'/g
73107 t clear
73108 :clear
73109 s/\\$//
73110 t bsnlc
73111 s/["\\]/\\&/g; s/^/"/; s/$/"/p
73112 d
73113 :bsnlc
73114 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
73115 b cont
73116 ' <confdefs.h | sed '
73117 s/'"$ac_delim"'/"\\\
73118 "/g' >>$CONFIG_STATUS || ac_write_fail=1
73119
73120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
73121   for (key in D) D_is_set[key] = 1
73122   FS = "\a"
73123 }
73124 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
73125   line = \$ 0
73126   split(line, arg, " ")
73127   if (arg[1] == "#") {
73128     defundef = arg[2]
73129     mac1 = arg[3]
73130   } else {
73131     defundef = substr(arg[1], 2)
73132     mac1 = arg[2]
73133   }
73134   split(mac1, mac2, "(") #)
73135   macro = mac2[1]
73136   prefix = substr(line, 1, index(line, defundef) - 1)
73137   if (D_is_set[macro]) {
73138     # Preserve the white space surrounding the "#".
73139     print prefix "define", macro P[macro] D[macro]
73140     next
73141   } else {
73142     # Replace #undef with comments.  This is necessary, for example,
73143     # in the case of _POSIX_SOURCE, which is predefined and required
73144     # on some systems where configure will not decide to define it.
73145     if (defundef == "undef") {
73146       print "/*", prefix defundef, macro, "*/"
73147       next
73148     }
73149   }
73150 }
73151 { print }
73152 _ACAWK
73153 _ACEOF
73154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
73155   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
73156 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
73157    { (exit 1); exit 1; }; }
73158 fi # test -n "$CONFIG_HEADERS"
73159
73160
73161 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
73162 shift
73163 for ac_tag
73164 do
73165   case $ac_tag in
73166   :[FHLC]) ac_mode=$ac_tag; continue;;
73167   esac
73168   case $ac_mode$ac_tag in
73169   :[FHL]*:*);;
73170   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
73171 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
73172    { (exit 1); exit 1; }; };;
73173   :[FH]-) ac_tag=-:-;;
73174   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
73175   esac
73176   ac_save_IFS=$IFS
73177   IFS=:
73178   set x $ac_tag
73179   IFS=$ac_save_IFS
73180   shift
73181   ac_file=$1
73182   shift
73183
73184   case $ac_mode in
73185   :L) ac_source=$1;;
73186   :[FH])
73187     ac_file_inputs=
73188     for ac_f
73189     do
73190       case $ac_f in
73191       -) ac_f="$tmp/stdin";;
73192       *) # Look for the file first in the build tree, then in the source tree
73193          # (if the path is not absolute).  The absolute path cannot be DOS-style,
73194          # because $ac_f cannot contain `:'.
73195          test -f "$ac_f" ||
73196            case $ac_f in
73197            [\\/$]*) false;;
73198            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
73199            esac ||
73200            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
73201 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
73202    { (exit 1); exit 1; }; };;
73203       esac
73204       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
73205       ac_file_inputs="$ac_file_inputs '$ac_f'"
73206     done
73207
73208     # Let's still pretend it is `configure' which instantiates (i.e., don't
73209     # use $as_me), people would be surprised to read:
73210     #    /* config.h.  Generated by config.status.  */
73211     configure_input='Generated from '`
73212           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
73213         `' by configure.'
73214     if test x"$ac_file" != x-; then
73215       configure_input="$ac_file.  $configure_input"
73216       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
73217 $as_echo "$as_me: creating $ac_file" >&6;}
73218     fi
73219     # Neutralize special characters interpreted by sed in replacement strings.
73220     case $configure_input in #(
73221     *\&* | *\|* | *\\* )
73222        ac_sed_conf_input=`$as_echo "$configure_input" |
73223        sed 's/[\\\\&|]/\\\\&/g'`;; #(
73224     *) ac_sed_conf_input=$configure_input;;
73225     esac
73226
73227     case $ac_tag in
73228     *:-:* | *:-) cat >"$tmp/stdin" \
73229       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73230 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73231    { (exit 1); exit 1; }; } ;;
73232     esac
73233     ;;
73234   esac
73235
73236   ac_dir=`$as_dirname -- "$ac_file" ||
73237 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73238          X"$ac_file" : 'X\(//\)[^/]' \| \
73239          X"$ac_file" : 'X\(//\)$' \| \
73240          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
73241 $as_echo X"$ac_file" |
73242     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73243             s//\1/
73244             q
73245           }
73246           /^X\(\/\/\)[^/].*/{
73247             s//\1/
73248             q
73249           }
73250           /^X\(\/\/\)$/{
73251             s//\1/
73252             q
73253           }
73254           /^X\(\/\).*/{
73255             s//\1/
73256             q
73257           }
73258           s/.*/./; q'`
73259   { as_dir="$ac_dir"
73260   case $as_dir in #(
73261   -*) as_dir=./$as_dir;;
73262   esac
73263   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
73264     as_dirs=
73265     while :; do
73266       case $as_dir in #(
73267       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
73268       *) as_qdir=$as_dir;;
73269       esac
73270       as_dirs="'$as_qdir' $as_dirs"
73271       as_dir=`$as_dirname -- "$as_dir" ||
73272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73273          X"$as_dir" : 'X\(//\)[^/]' \| \
73274          X"$as_dir" : 'X\(//\)$' \| \
73275          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
73276 $as_echo X"$as_dir" |
73277     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73278             s//\1/
73279             q
73280           }
73281           /^X\(\/\/\)[^/].*/{
73282             s//\1/
73283             q
73284           }
73285           /^X\(\/\/\)$/{
73286             s//\1/
73287             q
73288           }
73289           /^X\(\/\).*/{
73290             s//\1/
73291             q
73292           }
73293           s/.*/./; q'`
73294       test -d "$as_dir" && break
73295     done
73296     test -z "$as_dirs" || eval "mkdir $as_dirs"
73297   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
73298 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
73299    { (exit 1); exit 1; }; }; }
73300   ac_builddir=.
73301
73302 case "$ac_dir" in
73303 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
73304 *)
73305   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
73306   # A ".." for each directory in $ac_dir_suffix.
73307   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
73308   case $ac_top_builddir_sub in
73309   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
73310   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
73311   esac ;;
73312 esac
73313 ac_abs_top_builddir=$ac_pwd
73314 ac_abs_builddir=$ac_pwd$ac_dir_suffix
73315 # for backward compatibility:
73316 ac_top_builddir=$ac_top_build_prefix
73317
73318 case $srcdir in
73319   .)  # We are building in place.
73320     ac_srcdir=.
73321     ac_top_srcdir=$ac_top_builddir_sub
73322     ac_abs_top_srcdir=$ac_pwd ;;
73323   [\\/]* | ?:[\\/]* )  # Absolute name.
73324     ac_srcdir=$srcdir$ac_dir_suffix;
73325     ac_top_srcdir=$srcdir
73326     ac_abs_top_srcdir=$srcdir ;;
73327   *) # Relative name.
73328     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
73329     ac_top_srcdir=$ac_top_build_prefix$srcdir
73330     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
73331 esac
73332 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
73333
73334
73335   case $ac_mode in
73336   :F)
73337   #
73338   # CONFIG_FILE
73339   #
73340
73341   case $INSTALL in
73342   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
73343   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
73344   esac
73345   ac_MKDIR_P=$MKDIR_P
73346   case $MKDIR_P in
73347   [\\/$]* | ?:[\\/]* ) ;;
73348   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
73349   esac
73350 _ACEOF
73351
73352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
73353 # If the template does not know about datarootdir, expand it.
73354 # FIXME: This hack should be removed a few years after 2.60.
73355 ac_datarootdir_hack=; ac_datarootdir_seen=
73356
73357 ac_sed_dataroot='
73358 /datarootdir/ {
73359   p
73360   q
73361 }
73362 /@datadir@/p
73363 /@docdir@/p
73364 /@infodir@/p
73365 /@localedir@/p
73366 /@mandir@/p
73367 '
73368 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
73369 *datarootdir*) ac_datarootdir_seen=yes;;
73370 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
73371   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
73372 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
73373 _ACEOF
73374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
73375   ac_datarootdir_hack='
73376   s&@datadir@&$datadir&g
73377   s&@docdir@&$docdir&g
73378   s&@infodir@&$infodir&g
73379   s&@localedir@&$localedir&g
73380   s&@mandir@&$mandir&g
73381     s&\\\${datarootdir}&$datarootdir&g' ;;
73382 esac
73383 _ACEOF
73384
73385 # Neutralize VPATH when `$srcdir' = `.'.
73386 # Shell code in configure.ac might set extrasub.
73387 # FIXME: do we really want to maintain this feature?
73388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
73389 ac_sed_extra="$ac_vpsub
73390 $extrasub
73391 _ACEOF
73392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
73393 :t
73394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
73395 s|@configure_input@|$ac_sed_conf_input|;t t
73396 s&@top_builddir@&$ac_top_builddir_sub&;t t
73397 s&@top_build_prefix@&$ac_top_build_prefix&;t t
73398 s&@srcdir@&$ac_srcdir&;t t
73399 s&@abs_srcdir@&$ac_abs_srcdir&;t t
73400 s&@top_srcdir@&$ac_top_srcdir&;t t
73401 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
73402 s&@builddir@&$ac_builddir&;t t
73403 s&@abs_builddir@&$ac_abs_builddir&;t t
73404 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
73405 s&@INSTALL@&$ac_INSTALL&;t t
73406 s&@MKDIR_P@&$ac_MKDIR_P&;t t
73407 $ac_datarootdir_hack
73408 "
73409 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
73410   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73411 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73412    { (exit 1); exit 1; }; }
73413
73414 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
73415   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
73416   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
73417   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
73418 which seems to be undefined.  Please make sure it is defined." >&5
73419 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
73420 which seems to be undefined.  Please make sure it is defined." >&2;}
73421
73422   rm -f "$tmp/stdin"
73423   case $ac_file in
73424   -) cat "$tmp/out" && rm -f "$tmp/out";;
73425   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
73426   esac \
73427   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73428 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73429    { (exit 1); exit 1; }; }
73430  ;;
73431   :H)
73432   #
73433   # CONFIG_HEADER
73434   #
73435   if test x"$ac_file" != x-; then
73436     {
73437       $as_echo "/* $configure_input  */" \
73438       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
73439     } >"$tmp/config.h" \
73440       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73441 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73442    { (exit 1); exit 1; }; }
73443     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
73444       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
73445 $as_echo "$as_me: $ac_file is unchanged" >&6;}
73446     else
73447       rm -f "$ac_file"
73448       mv "$tmp/config.h" "$ac_file" \
73449         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73450 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73451    { (exit 1); exit 1; }; }
73452     fi
73453   else
73454     $as_echo "/* $configure_input  */" \
73455       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
73456       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
73457 $as_echo "$as_me: error: could not create -" >&2;}
73458    { (exit 1); exit 1; }; }
73459   fi
73460 # Compute "$ac_file"'s index in $config_headers.
73461 _am_arg="$ac_file"
73462 _am_stamp_count=1
73463 for _am_header in $config_headers :; do
73464   case $_am_header in
73465     $_am_arg | $_am_arg:* )
73466       break ;;
73467     * )
73468       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
73469   esac
73470 done
73471 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
73472 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73473          X"$_am_arg" : 'X\(//\)[^/]' \| \
73474          X"$_am_arg" : 'X\(//\)$' \| \
73475          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
73476 $as_echo X"$_am_arg" |
73477     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73478             s//\1/
73479             q
73480           }
73481           /^X\(\/\/\)[^/].*/{
73482             s//\1/
73483             q
73484           }
73485           /^X\(\/\/\)$/{
73486             s//\1/
73487             q
73488           }
73489           /^X\(\/\).*/{
73490             s//\1/
73491             q
73492           }
73493           s/.*/./; q'`/stamp-h$_am_stamp_count
73494  ;;
73495
73496   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
73497 $as_echo "$as_me: executing $ac_file commands" >&6;}
73498  ;;
73499   esac
73500
73501
73502   case $ac_file$ac_mode in
73503     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
73504   # Autoconf 2.62 quotes --file arguments for eval, but not when files
73505   # are listed without --file.  Let's play safe and only enable the eval
73506   # if we detect the quoting.
73507   case $CONFIG_FILES in
73508   *\'*) eval set x "$CONFIG_FILES" ;;
73509   *)   set x $CONFIG_FILES ;;
73510   esac
73511   shift
73512   for mf
73513   do
73514     # Strip MF so we end up with the name of the file.
73515     mf=`echo "$mf" | sed -e 's/:.*$//'`
73516     # Check whether this is an Automake generated Makefile or not.
73517     # We used to match only the files named `Makefile.in', but
73518     # some people rename them; so instead we look at the file content.
73519     # Grep'ing the first line is not enough: some people post-process
73520     # each Makefile.in and add a new line on top of each file to say so.
73521     # Grep'ing the whole file is not good either: AIX grep has a line
73522     # limit of 2048, but all sed's we know have understand at least 4000.
73523     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
73524       dirpart=`$as_dirname -- "$mf" ||
73525 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73526          X"$mf" : 'X\(//\)[^/]' \| \
73527          X"$mf" : 'X\(//\)$' \| \
73528          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
73529 $as_echo X"$mf" |
73530     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73531             s//\1/
73532             q
73533           }
73534           /^X\(\/\/\)[^/].*/{
73535             s//\1/
73536             q
73537           }
73538           /^X\(\/\/\)$/{
73539             s//\1/
73540             q
73541           }
73542           /^X\(\/\).*/{
73543             s//\1/
73544             q
73545           }
73546           s/.*/./; q'`
73547     else
73548       continue
73549     fi
73550     # Extract the definition of DEPDIR, am__include, and am__quote
73551     # from the Makefile without running `make'.
73552     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
73553     test -z "$DEPDIR" && continue
73554     am__include=`sed -n 's/^am__include = //p' < "$mf"`
73555     test -z "am__include" && continue
73556     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
73557     # When using ansi2knr, U may be empty or an underscore; expand it
73558     U=`sed -n 's/^U = //p' < "$mf"`
73559     # Find all dependency output files, they are included files with
73560     # $(DEPDIR) in their names.  We invoke sed twice because it is the
73561     # simplest approach to changing $(DEPDIR) to its actual value in the
73562     # expansion.
73563     for file in `sed -n "
73564       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
73565          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
73566       # Make sure the directory exists.
73567       test -f "$dirpart/$file" && continue
73568       fdir=`$as_dirname -- "$file" ||
73569 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73570          X"$file" : 'X\(//\)[^/]' \| \
73571          X"$file" : 'X\(//\)$' \| \
73572          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
73573 $as_echo X"$file" |
73574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73575             s//\1/
73576             q
73577           }
73578           /^X\(\/\/\)[^/].*/{
73579             s//\1/
73580             q
73581           }
73582           /^X\(\/\/\)$/{
73583             s//\1/
73584             q
73585           }
73586           /^X\(\/\).*/{
73587             s//\1/
73588             q
73589           }
73590           s/.*/./; q'`
73591       { as_dir=$dirpart/$fdir
73592   case $as_dir in #(
73593   -*) as_dir=./$as_dir;;
73594   esac
73595   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
73596     as_dirs=
73597     while :; do
73598       case $as_dir in #(
73599       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
73600       *) as_qdir=$as_dir;;
73601       esac
73602       as_dirs="'$as_qdir' $as_dirs"
73603       as_dir=`$as_dirname -- "$as_dir" ||
73604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73605          X"$as_dir" : 'X\(//\)[^/]' \| \
73606          X"$as_dir" : 'X\(//\)$' \| \
73607          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
73608 $as_echo X"$as_dir" |
73609     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73610             s//\1/
73611             q
73612           }
73613           /^X\(\/\/\)[^/].*/{
73614             s//\1/
73615             q
73616           }
73617           /^X\(\/\/\)$/{
73618             s//\1/
73619             q
73620           }
73621           /^X\(\/\).*/{
73622             s//\1/
73623             q
73624           }
73625           s/.*/./; q'`
73626       test -d "$as_dir" && break
73627     done
73628     test -z "$as_dirs" || eval "mkdir $as_dirs"
73629   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
73630 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
73631    { (exit 1); exit 1; }; }; }
73632       # echo "creating $dirpart/$file"
73633       echo '# dummy' > "$dirpart/$file"
73634     done
73635   done
73636 }
73637  ;;
73638     "po-directories":C)
73639     for ac_file in $CONFIG_FILES; do
73640       # Support "outfile[:infile[:infile...]]"
73641       case "$ac_file" in
73642         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
73643       esac
73644       # PO directories have a Makefile.in generated from Makefile.in.in.
73645       case "$ac_file" in */Makefile.in)
73646         # Adjust a relative srcdir.
73647         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
73648         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
73649         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
73650         # In autoconf-2.13 it is called $ac_given_srcdir.
73651         # In autoconf-2.50 it is called $srcdir.
73652         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
73653         case "$ac_given_srcdir" in
73654           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
73655           /*) top_srcdir="$ac_given_srcdir" ;;
73656           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
73657         esac
73658         # Treat a directory as a PO directory if and only if it has a
73659         # POTFILES.in file. This allows packages to have multiple PO
73660         # directories under different names or in different locations.
73661         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
73662           rm -f "$ac_dir/POTFILES"
73663           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
73664           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
73665           POMAKEFILEDEPS="POTFILES.in"
73666           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
73667           # on $ac_dir but don't depend on user-specified configuration
73668           # parameters.
73669           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
73670             # The LINGUAS file contains the set of available languages.
73671             if test -n "$OBSOLETE_ALL_LINGUAS"; then
73672               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
73673             fi
73674             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
73675             # Hide the ALL_LINGUAS assigment from automake < 1.5.
73676             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
73677             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
73678           else
73679             # The set of available languages was given in configure.in.
73680             # Hide the ALL_LINGUAS assigment from automake < 1.5.
73681             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
73682           fi
73683           # Compute POFILES
73684           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
73685           # Compute UPDATEPOFILES
73686           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
73687           # Compute DUMMYPOFILES
73688           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
73689           # Compute GMOFILES
73690           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
73691           case "$ac_given_srcdir" in
73692             .) srcdirpre= ;;
73693             *) srcdirpre='$(srcdir)/' ;;
73694           esac
73695           POFILES=
73696           UPDATEPOFILES=
73697           DUMMYPOFILES=
73698           GMOFILES=
73699           for lang in $ALL_LINGUAS; do
73700             POFILES="$POFILES $srcdirpre$lang.po"
73701             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
73702             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
73703             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
73704           done
73705           # CATALOGS depends on both $ac_dir and the user's LINGUAS
73706           # environment variable.
73707           INST_LINGUAS=
73708           if test -n "$ALL_LINGUAS"; then
73709             for presentlang in $ALL_LINGUAS; do
73710               useit=no
73711               if test "%UNSET%" != "$LINGUAS"; then
73712                 desiredlanguages="$LINGUAS"
73713               else
73714                 desiredlanguages="$ALL_LINGUAS"
73715               fi
73716               for desiredlang in $desiredlanguages; do
73717                 # Use the presentlang catalog if desiredlang is
73718                 #   a. equal to presentlang, or
73719                 #   b. a variant of presentlang (because in this case,
73720                 #      presentlang can be used as a fallback for messages
73721                 #      which are not translated in the desiredlang catalog).
73722                 case "$desiredlang" in
73723                   "$presentlang"*) useit=yes;;
73724                 esac
73725               done
73726               if test $useit = yes; then
73727                 INST_LINGUAS="$INST_LINGUAS $presentlang"
73728               fi
73729             done
73730           fi
73731           CATALOGS=
73732           if test -n "$INST_LINGUAS"; then
73733             for lang in $INST_LINGUAS; do
73734               CATALOGS="$CATALOGS $lang.gmo"
73735             done
73736           fi
73737           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
73738           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
73739           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
73740             if test -f "$f"; then
73741               case "$f" in
73742                 *.orig | *.bak | *~) ;;
73743                 *) cat "$f" >> "$ac_dir/Makefile" ;;
73744               esac
73745             fi
73746           done
73747         fi
73748         ;;
73749       esac
73750     done ;;
73751
73752   esac
73753 done # for ac_tag
73754
73755
73756 { (exit 0); exit 0; }
73757 _ACEOF
73758 chmod +x $CONFIG_STATUS
73759 ac_clean_files=$ac_clean_files_save
73760
73761 test $ac_write_fail = 0 ||
73762   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
73763 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
73764    { (exit 1); exit 1; }; }
73765
73766
73767 # configure is writing to config.log, and then calls config.status.
73768 # config.status does its own redirection, appending to config.log.
73769 # Unfortunately, on DOS this fails, as config.log is still kept open
73770 # by configure, so config.status won't be able to write to it; its
73771 # output is simply discarded.  So we exec the FD to /dev/null,
73772 # effectively closing config.log, so it can be properly (re)opened and
73773 # appended to by config.status.  When coming back to configure, we
73774 # need to make the FD available again.
73775 if test "$no_create" != yes; then
73776   ac_cs_success=:
73777   ac_config_status_args=
73778   test "$silent" = yes &&
73779     ac_config_status_args="$ac_config_status_args --quiet"
73780   exec 5>/dev/null
73781   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
73782   exec 5>>config.log
73783   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
73784   # would make configure fail if this is the last instruction.
73785   $ac_cs_success || { (exit 1); exit 1; }
73786 fi
73787 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
73788   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
73789 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
73790 fi
73791
73792
73793
73794
73795
73796     # Extract the first word of "svn", so it can be a program name with args.
73797 set dummy svn; ac_word=$2
73798 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
73799 $as_echo_n "checking for $ac_word... " >&6; }
73800 if test "${ac_cv_path_SVN+set}" = set; then
73801   $as_echo_n "(cached) " >&6
73802 else
73803   case $SVN in
73804   [\\/]* | ?:[\\/]*)
73805   ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
73806   ;;
73807   *)
73808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73809 for as_dir in $LOCSYSPATH
73810 do
73811   IFS=$as_save_IFS
73812   test -z "$as_dir" && as_dir=.
73813   for ac_exec_ext in '' $ac_executable_extensions; do
73814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
73815     ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
73816     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
73817     break 2
73818   fi
73819 done
73820 done
73821 IFS=$as_save_IFS
73822
73823   ;;
73824 esac
73825 fi
73826 SVN=$ac_cv_path_SVN
73827 if test -n "$SVN"; then
73828   { $as_echo "$as_me:$LINENO: result: $SVN" >&5
73829 $as_echo "$SVN" >&6; }
73830 else
73831   { $as_echo "$as_me:$LINENO: result: no" >&5
73832 $as_echo "no" >&6; }
73833 fi
73834
73835
73836     { $as_echo "$as_me:$LINENO: checking Subversion revision information" >&5
73837 $as_echo_n "checking Subversion revision information... " >&6; }
73838     if test -d $srcdir/.svn && test -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
73839         rev=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
73840         url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
73841         ( echo '#define BUILT_REV "'$rev'"'
73842           echo '#define BUILT_BRANCH "'`basename "$url"`'"'
73843         ) > common-src/svn-info.h
73844
73845         { $as_echo "$as_me:$LINENO: result: updated" >&5
73846 $as_echo "updated" >&6; }
73847     else
73848         # Makefiles will be upset if the file doesn't exist, so double-check
73849         if test -f common-src/svn-info.h; then
73850             : # all good
73851             { $as_echo "$as_me:$LINENO: result: not changed" >&5
73852 $as_echo "not changed" >&6; }
73853         else
73854             echo '/* no information available */' > common-src/svn-info.h
73855             { $as_echo "$as_me:$LINENO: result: not available" >&5
73856 $as_echo "not available" >&6; }
73857         fi
73858     fi
73859
73860     rm -f conftemp.svn
73861
73862
73863
73864     echo "Compiler Flags:"
73865     echo "  CFLAGS: ${CFLAGS-(none)}"
73866     echo "  CPPFLAGS: ${CPPFLAGS-(none)}"
73867     echo "  LDFLAGS: ${LDFLAGS-(none)}"
73868     echo "  LIBS: ${LIBS-(none)}"
73869
73870
73871     components=''
73872     if $WANT_SERVER; then
73873         components="$components server";
73874     else
73875         components="$components (no server)";
73876     fi
73877     if $WANT_RESTORE; then
73878         components="$components restore";
73879     else
73880         components="$components (no restore)";
73881     fi
73882     if $WANT_CLIENT; then
73883         components="$components client";
73884     else
73885         components="$components (no client)";
73886     fi
73887     if $WANT_RECOVER; then
73888         components="$components amrecover";
73889     else
73890         components="$components (no amrecover)";
73891     fi
73892
73893     echo "Amanda Components: $components"
73894
73895
73896     echo "Working IPv6:" $WORKING_IPV6
73897
73898
73899     echo "Build documentation:" $ENABLE_MANPAGE_BUILD
73900
73901
73902     echo "Directories:"
73903     echo "  Application: $APPLICATION_DIR"
73904     echo "  Configuration: $CONFIG_DIR"
73905     echo "  GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
73906     echo "  Perl modules (amperldir): $amperldir"
73907     echo "  Template and example data files (amdatadir): $amdatadir"
73908     echo "  Temporary: $AMANDA_TMPDIR"
73909
73910     if test -f config.warnings; then
73911         echo "WARNINGS:"
73912         cat config.warnings | sed -e 's/^/  /g'
73913         rm config.warnings
73914     fi
73915