versionsuffix is apparently no longer present
[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$lt_ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
584
585 ECHO=${lt_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 <<_LT_EOF
604 $*
605 _LT_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 "$lt_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          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620       then
621         break
622       fi
623     done
624   fi
625
626   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628      test "X$echo_testing_string" = "X$echo_test_string"; then
629     :
630   else
631     # The Solaris, AIX, and Digital Unix default echo programs unquote
632     # backslashes.  This makes it impossible to quote backslashes using
633     #   echo "$something" | sed 's/\\/\\\\/g'
634     #
635     # So, first we look for a working echo in the user's PATH.
636
637     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638     for dir in $PATH /usr/ucb; do
639       IFS="$lt_save_ifs"
640       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643          test "X$echo_testing_string" = "X$echo_test_string"; then
644         ECHO="$dir/echo"
645         break
646       fi
647     done
648     IFS="$lt_save_ifs"
649
650     if test "X$ECHO" = Xecho; then
651       # We didn't find a better echo, so look for alternatives.
652       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # This shell has a builtin print -r that does the trick.
656         ECHO='print -r'
657       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658            test "X$CONFIG_SHELL" != X/bin/ksh; then
659         # If we have ksh, try running configure again with it.
660         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661         export ORIGINAL_CONFIG_SHELL
662         CONFIG_SHELL=/bin/ksh
663         export CONFIG_SHELL
664         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665       else
666         # Try using printf.
667         ECHO='printf %s\n'
668         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670            test "X$echo_testing_string" = "X$echo_test_string"; then
671           # Cool, printf works
672           :
673         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674              test "X$echo_testing_string" = 'X\t' &&
675              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676              test "X$echo_testing_string" = "X$echo_test_string"; then
677           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678           export CONFIG_SHELL
679           SHELL="$CONFIG_SHELL"
680           export SHELL
681           ECHO="$CONFIG_SHELL $0 --fallback-echo"
682         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683              test "X$echo_testing_string" = 'X\t' &&
684              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685              test "X$echo_testing_string" = "X$echo_test_string"; then
686           ECHO="$CONFIG_SHELL $0 --fallback-echo"
687         else
688           # maybe with a smaller string...
689           prev=:
690
691           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693             then
694               break
695             fi
696             prev="$cmd"
697           done
698
699           if test "$prev" != 'sed 50q "$0"'; then
700             echo_test_string=`eval $prev`
701             export echo_test_string
702             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703           else
704             # Oops.  We lost completely, so just stick with echo.
705             ECHO=echo
706           fi
707         fi
708       fi
709     fi
710   fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
749
750 ac_unique_file="common-src/amanda.h"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
753 #include <stdio.h>
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
756 #endif
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
759 #endif
760 #ifdef STDC_HEADERS
761 # include <stdlib.h>
762 # include <stddef.h>
763 #else
764 # ifdef HAVE_STDLIB_H
765 #  include <stdlib.h>
766 # endif
767 #endif
768 #ifdef HAVE_STRING_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770 #  include <memory.h>
771 # endif
772 # include <string.h>
773 #endif
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
776 #endif
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
779 #endif
780 #ifdef HAVE_STDINT_H
781 # include <stdint.h>
782 #endif
783 #ifdef HAVE_UNISTD_H
784 # include <unistd.h>
785 #endif"
786
787 gl_use_threads_default=
788 gl_header_list=
789 gl_func_list=
790 ac_subst_vars='gltests_LTLIBOBJS
791 gltests_LIBOBJS
792 gl_LTLIBOBJS
793 gl_LIBOBJS
794 am__EXEEXT_FALSE
795 am__EXEEXT_TRUE
796 LTLIBOBJS
797 LIBOBJS
798 READLINE_LIBS
799 GLIB_MKENUMS
800 GOBJECT_QUERY
801 GLIB_GENMARSHAL
802 GLIB_LIBS
803 GLIB_CFLAGS
804 PKG_CONFIG
805 AMANDA_STATIC_LDFLAGS
806 LIBTOOL_DEPS
807 OTOOL64
808 OTOOL
809 LIPO
810 NMEDIT
811 DSYMUTIL
812 lt_ECHO
813 LN_S
814 NM
815 ac_ct_DUMPBIN
816 DUMPBIN
817 LD
818 FGREP
819 SED
820 LIBTOOL
821 AMANDA_SWIG_PERL_CFLAGS
822 GCC_COMPILER_FALSE
823 GCC_COMPILER_TRUE
824 HAVE_RPCGEN_FALSE
825 HAVE_RPCGEN_TRUE
826 RPCGEN
827 PS_ARGUMENT_ARGS
828 PS_ARGUMENT
829 PS
830 LPRFLAG
831 LPR
832 MT_FILE_FLAG
833 MT
834 DEFAULT_MAILER
835 MAILER
836 SORT
837 BASH
838 DD
839 YFLAGS
840 YACC
841 AR
842 LEXLIB
843 LEX_OUTPUT_ROOT
844 LEX
845 AMLINTFLAGS
846 AMLINT
847 USE_RUNDUMP
848 WANT_SAMBA_FALSE
849 WANT_SAMBA_TRUE
850 SAMBA_CLIENT
851 STAR
852 GNUTAR
853 DUMP_RETURNS_1
854 AIX_BACKUP
855 RESTORE
856 DUMP
857 VRESTORE
858 VDUMP
859 VXRESTORE
860 VXDUMP
861 XFSRESTORE
862 XFSDUMP
863 KRB5_SECURITY
864 WANT_KRB5_SECURITY_FALSE
865 WANT_KRB5_SECURITY_TRUE
866 SSH_SECURITY
867 WANT_SSH_SECURITY_FALSE
868 WANT_SSH_SECURITY_TRUE
869 SSH
870 RSH_SECURITY
871 WANT_RSH_SECURITY_FALSE
872 WANT_RSH_SECURITY_TRUE
873 BSDUDP_SECURITY
874 WANT_BSDUDP_SECURITY_FALSE
875 WANT_BSDUDP_SECURITY_TRUE
876 BSDTCP_SECURITY
877 WANT_BSDTCP_SECURITY_FALSE
878 WANT_BSDTCP_SECURITY_TRUE
879 USE_AMANDAHOSTS
880 BSD_SECURITY
881 WANT_BSD_SECURITY_FALSE
882 WANT_BSD_SECURITY_TRUE
883 WANT_NDMP_DEVICE_FALSE
884 WANT_NDMP_DEVICE_TRUE
885 WANT_DVDRW_DEVICE_FALSE
886 WANT_DVDRW_DEVICE_TRUE
887 WANT_TAPE_DEVICE_FALSE
888 WANT_TAPE_DEVICE_TRUE
889 WANT_TAPE_POSIX_FALSE
890 WANT_TAPE_POSIX_TRUE
891 WANT_TAPE_UWARE_FALSE
892 WANT_TAPE_UWARE_TRUE
893 WANT_TAPE_AIX_FALSE
894 WANT_TAPE_AIX_TRUE
895 WANT_TAPE_XENIX_FALSE
896 WANT_TAPE_XENIX_TRUE
897 WANT_S3_DEVICE_FALSE
898 WANT_S3_DEVICE_TRUE
899 LIBCURL
900 LIBCURL_CPPFLAGS
901 _libcurl_config
902 CURL_CONFIG
903 POSUB
904 INTLLIBS
905 LTLIBICONV
906 LIBICONV
907 INTL_MACOSX_LIBS
908 MSGMERGE
909 XGETTEXT_015
910 XGETTEXT
911 GMSGFMT_015
912 MSGFMT_015
913 GMSGFMT
914 USE_NLS
915 GETTEXT
916 MSGFMT
917 amdatadir
918 APPLICATION_DIR
919 amperldir
920 amincludedir
921 amlibexecdir
922 amlibdir
923 CLIENT_SCRIPTS_OPT
924 HAVE_GZIP
925 UNCOMPRESS_OPT
926 UNCOMPRESS_PATH
927 COMPRESS_BEST_OPT
928 COMPRESS_FAST_OPT
929 COMPRESS_SUFFIX
930 COMPRESS_PATH
931 CAT
932 PERLEXTLIBS
933 WANT_CYGWIN_COPY_PERL_DLL_FALSE
934 WANT_CYGWIN_COPY_PERL_DLL_TRUE
935 PERL_INC
936 PERL
937 SWIG_LIB
938 SWIG
939 LOCKING
940 WANT_AMFLOCK_LNLOCK_FALSE
941 WANT_AMFLOCK_LNLOCK_TRUE
942 WANT_AMFLOCK_LOCKF_FALSE
943 WANT_AMFLOCK_LOCKF_TRUE
944 WANT_AMFLOCK_FLOCK_FALSE
945 WANT_AMFLOCK_FLOCK_TRUE
946 WANT_AMFLOCK_POSIX_FALSE
947 WANT_AMFLOCK_POSIX_TRUE
948 WANT_SCSI_CHIO_FALSE
949 WANT_SCSI_CHIO_TRUE
950 WANT_SCSI_HPUX_FALSE
951 WANT_SCSI_HPUX_TRUE
952 WANT_CHG_SCSI_CHIO_FALSE
953 WANT_CHG_SCSI_CHIO_TRUE
954 WANT_SCSI_BSD_FALSE
955 WANT_SCSI_BSD_TRUE
956 WANT_SCSI_CAM_FALSE
957 WANT_SCSI_CAM_TRUE
958 WANT_SCSI_AIX_FALSE
959 WANT_SCSI_AIX_TRUE
960 WANT_SCSI_SOLARIS_FALSE
961 WANT_SCSI_SOLARIS_TRUE
962 WANT_SCSI_IRIX_FALSE
963 WANT_SCSI_IRIX_TRUE
964 WANT_SCSI_HPUX_NEW_FALSE
965 WANT_SCSI_HPUX_NEW_TRUE
966 WANT_SCSI_LINUX_FALSE
967 WANT_SCSI_LINUX_TRUE
968 WANT_CHG_SCSI_FALSE
969 WANT_CHG_SCSI_TRUE
970 MCUTIL
971 MTX
972 CHS
973 CHIO
974 GETCONF
975 DEFAULT_AMANDATES_FILE
976 EXAMPLE_TAPEDEV
977 DEFAULT_TAPE_DEVICE
978 DEFAULT_TAPE_SERVER
979 DEFAULT_CONFIG
980 DEFAULT_SERVER
981 CONFIG_CLOBBER_MY_CONFIG
982 DOC_BUILD_DATE
983 XSLREL
984 ENABLE_MANPAGE_BUILD_FALSE
985 ENABLE_MANPAGE_BUILD_TRUE
986 XSLTPROC
987 XSLTPROC_FLAGS
988 WANT_AMPLOT_FALSE
989 WANT_AMPLOT_TRUE
990 AMPLOT_CAT_PACK
991 AMPLOT_CAT_COMPRESS
992 AMPLOT_CAT_GZIP
993 AMPLOT_COMPRESS
994 GZIP
995 COMPRESS
996 PCAT
997 GNUPLOT
998 AMANDA_COMPONENTS
999 WANT_TAPE_FALSE
1000 WANT_TAPE_TRUE
1001 WANT_NDMP_FALSE
1002 WANT_NDMP_TRUE
1003 WANT_RECOVER_FALSE
1004 WANT_RECOVER_TRUE
1005 WANT_SERVER_FALSE
1006 WANT_SERVER_TRUE
1007 WANT_RESTORE_FALSE
1008 WANT_RESTORE_TRUE
1009 WANT_CLIENT_FALSE
1010 WANT_CLIENT_TRUE
1011 CHECK_SCRIPTS_AT_BUILD_FALSE
1012 CHECK_SCRIPTS_AT_BUILD_TRUE
1013 WANT_INSTALLPERMS_FALSE
1014 WANT_INSTALLPERMS_TRUE
1015 WANT_SETUID_CLIENT_FALSE
1016 WANT_SETUID_CLIENT_TRUE
1017 SERVICE_SUFFIX
1018 AMANDA_DEBUG_DAYS
1019 AMANDA_DBGDIR
1020 ASSERTIONS
1021 LOW_TCPPORTRANGE
1022 TCPPORTRANGE
1023 UDPPORTRANGE
1024 BINARY_OWNER
1025 CHECK_USERID_FALSE
1026 CHECK_USERID_TRUE
1027 CHECK_USERID
1028 AMANDA_TMPDIR
1029 GNUTAR_LISTED_INCREMENTAL_DIR
1030 CONFIG_DIR
1031 SETUID_GROUP
1032 CLIENT_LOGIN
1033 AMANDA_WARNING_CFLAGS
1034 REPLACE_ISWCNTRL
1035 WCTYPE_H
1036 HAVE_WCTYPE_H
1037 NEXT_WCTYPE_H
1038 HAVE_ISWCNTRL
1039 NEXT_WCHAR_H
1040 HAVE_WCHAR_H
1041 HAVE_WINT_T
1042 HAVE_VISIBILITY
1043 CFLAG_VISIBILITY
1044 HAVE_UNISTD_H
1045 NEXT_UNISTD_H
1046 SYS_STAT_H
1047 NEXT_SYS_STAT_H
1048 HAVE_LSTAT
1049 HAVE_RANDOM_H
1050 NEXT_STDLIB_H
1051 NEXT_STDIO_H
1052 STDINT_H
1053 WINT_T_SUFFIX
1054 WCHAR_T_SUFFIX
1055 SIG_ATOMIC_T_SUFFIX
1056 SIZE_T_SUFFIX
1057 PTRDIFF_T_SUFFIX
1058 HAVE_SIGNED_WINT_T
1059 HAVE_SIGNED_WCHAR_T
1060 HAVE_SIGNED_SIG_ATOMIC_T
1061 BITSIZEOF_WINT_T
1062 BITSIZEOF_WCHAR_T
1063 BITSIZEOF_SIG_ATOMIC_T
1064 BITSIZEOF_SIZE_T
1065 BITSIZEOF_PTRDIFF_T
1066 HAVE_SYS_BITYPES_H
1067 HAVE_SYS_INTTYPES_H
1068 HAVE_STDINT_H
1069 NEXT_STDINT_H
1070 HAVE_SYS_TYPES_H
1071 HAVE_INTTYPES_H
1072 HAVE_UNSIGNED_LONG_LONG_INT
1073 HAVE_LONG_LONG_INT
1074 HAVE__BOOL
1075 STDBOOL_H
1076 NETINET_IN_H
1077 HAVE_NETINET_IN_H
1078 NEXT_NETINET_IN_H
1079 APPLE_UNIVERSAL_BUILD
1080 LOCALE_FR_UTF8
1081 LOCALE_ZH_CN
1082 LOCALE_JA
1083 VOID_UNSETENV
1084 REPLACE_STRTOD
1085 REPLACE_PUTENV
1086 REPLACE_MKSTEMP
1087 HAVE_DECL_GETLOADAVG
1088 HAVE_UNSETENV
1089 HAVE_SYS_LOADAVG_H
1090 HAVE_STRUCT_RANDOM_DATA
1091 HAVE_STRTOULL
1092 HAVE_STRTOLL
1093 HAVE_STRTOD
1094 HAVE_SETENV
1095 HAVE_RPMATCH
1096 HAVE_RANDOM_R
1097 HAVE_REALLOC_POSIX
1098 HAVE_MKDTEMP
1099 HAVE_GETSUBOPT
1100 HAVE_CALLOC_POSIX
1101 HAVE_ATOLL
1102 GNULIB_UNSETENV
1103 GNULIB_STRTOULL
1104 GNULIB_STRTOLL
1105 GNULIB_STRTOD
1106 GNULIB_SETENV
1107 GNULIB_RPMATCH
1108 GNULIB_RANDOM_R
1109 GNULIB_PUTENV
1110 GNULIB_MKSTEMP
1111 GNULIB_MKDTEMP
1112 GNULIB_GETSUBOPT
1113 GNULIB_GETLOADAVG
1114 GNULIB_ATOLL
1115 GNULIB_CALLOC_POSIX
1116 GNULIB_REALLOC_POSIX
1117 GNULIB_MALLOC_POSIX
1118 HAVE_MALLOC_POSIX
1119 REPLACE_MKDIR
1120 REPLACE_LSTAT
1121 HAVE_LCHMOD
1122 GNULIB_LSTAT
1123 GNULIB_LCHMOD
1124 LTLIBMULTITHREAD
1125 LIBMULTITHREAD
1126 LTLIBTHREAD
1127 LIBTHREAD
1128 LTLIBPTH
1129 LIBPTH
1130 LOCALCHARSET_TESTS_ENVIRONMENT
1131 GLIBC21
1132 SYS_TIME_H
1133 REPLACE_GETTIMEOFDAY
1134 HAVE_STRUCT_TIMEVAL
1135 HAVE_SYS_TIME_H
1136 NEXT_SYS_TIME_H
1137 LTLIBINTL
1138 LIBINTL
1139 GETOPT_H
1140 GETADDRINFO_LIB
1141 SERVENT_LIB
1142 HOSTENT_LIB
1143 NETDB_H
1144 HAVE_NETDB_H
1145 NEXT_NETDB_H
1146 HAVE_DECL_GETNAMEINFO
1147 HAVE_DECL_GETADDRINFO
1148 HAVE_DECL_GAI_STRERROR
1149 HAVE_DECL_FREEADDRINFO
1150 HAVE_STRUCT_ADDRINFO
1151 GNULIB_GETADDRINFO
1152 SYS_SOCKET_H
1153 HAVE_WS2TCPIP_H
1154 HAVE_SYS_SOCKET_H
1155 HAVE_WINSOCK2_H
1156 NEXT_SYS_SOCKET_H
1157 GNULIB_SHUTDOWN
1158 GNULIB_SETSOCKOPT
1159 GNULIB_SENDTO
1160 GNULIB_RECVFROM
1161 GNULIB_SEND
1162 GNULIB_RECV
1163 GNULIB_LISTEN
1164 GNULIB_GETSOCKOPT
1165 GNULIB_GETSOCKNAME
1166 GNULIB_GETPEERNAME
1167 GNULIB_BIND
1168 GNULIB_ACCEPT
1169 GNULIB_CONNECT
1170 GNULIB_SOCKET
1171 UNISTD_H_HAVE_WINSOCK2_H
1172 REPLACE_WRITE
1173 REPLACE_LSEEK
1174 REPLACE_LCHOWN
1175 REPLACE_GETPAGESIZE
1176 REPLACE_GETCWD
1177 REPLACE_FCHDIR
1178 REPLACE_CLOSE
1179 REPLACE_CHOWN
1180 HAVE_SYS_PARAM_H
1181 HAVE_OS_H
1182 HAVE_DECL_GETLOGIN_R
1183 HAVE_DECL_ENVIRON
1184 HAVE_SLEEP
1185 HAVE_READLINK
1186 HAVE_LINK
1187 HAVE_GETUSERSHELL
1188 HAVE_GETPAGESIZE
1189 HAVE_GETHOSTNAME
1190 HAVE_GETDTABLESIZE
1191 HAVE_GETDOMAINNAME
1192 HAVE_FTRUNCATE
1193 HAVE_FSYNC
1194 HAVE_EUIDACCESS
1195 HAVE_DUP2
1196 GNULIB_WRITE
1197 GNULIB_UNISTD_H_SIGPIPE
1198 GNULIB_SLEEP
1199 GNULIB_READLINK
1200 GNULIB_LSEEK
1201 GNULIB_LINK
1202 GNULIB_LCHOWN
1203 GNULIB_GETUSERSHELL
1204 GNULIB_GETPAGESIZE
1205 GNULIB_GETLOGIN_R
1206 GNULIB_GETHOSTNAME
1207 GNULIB_GETDTABLESIZE
1208 GNULIB_GETDOMAINNAME
1209 GNULIB_GETCWD
1210 GNULIB_FTRUNCATE
1211 GNULIB_FSYNC
1212 GNULIB_FCHDIR
1213 GNULIB_EUIDACCESS
1214 GNULIB_ENVIRON
1215 GNULIB_DUP2
1216 GNULIB_CLOSE
1217 GNULIB_CHOWN
1218 REPLACE_PERROR
1219 REPLACE_GETLINE
1220 HAVE_DECL_GETLINE
1221 HAVE_DECL_GETDELIM
1222 REPLACE_FCLOSE
1223 REPLACE_FFLUSH
1224 REPLACE_FTELL
1225 REPLACE_FTELLO
1226 HAVE_FTELLO
1227 REPLACE_FSEEK
1228 REPLACE_FSEEKO
1229 HAVE_FSEEKO
1230 REPLACE_FREOPEN
1231 REPLACE_FOPEN
1232 REPLACE_OBSTACK_PRINTF
1233 HAVE_DECL_OBSTACK_PRINTF
1234 REPLACE_VASPRINTF
1235 HAVE_VASPRINTF
1236 REPLACE_VDPRINTF
1237 HAVE_VDPRINTF
1238 REPLACE_DPRINTF
1239 HAVE_DPRINTF
1240 REPLACE_VSPRINTF
1241 REPLACE_SPRINTF
1242 HAVE_DECL_VSNPRINTF
1243 REPLACE_VSNPRINTF
1244 HAVE_DECL_SNPRINTF
1245 REPLACE_SNPRINTF
1246 REPLACE_VPRINTF
1247 REPLACE_PRINTF
1248 REPLACE_VFPRINTF
1249 REPLACE_FPRINTF
1250 REPLACE_STDIO_WRITE_FUNCS
1251 GNULIB_STDIO_H_SIGPIPE
1252 GNULIB_PERROR
1253 GNULIB_GETLINE
1254 GNULIB_GETDELIM
1255 GNULIB_FWRITE
1256 GNULIB_PUTS
1257 GNULIB_FPUTS
1258 GNULIB_PUTCHAR
1259 GNULIB_PUTC
1260 GNULIB_FPUTC
1261 GNULIB_FCLOSE
1262 GNULIB_FFLUSH
1263 GNULIB_FTELLO
1264 GNULIB_FTELL
1265 GNULIB_FSEEKO
1266 GNULIB_FSEEK
1267 GNULIB_FREOPEN
1268 GNULIB_FOPEN
1269 GNULIB_OBSTACK_PRINTF_POSIX
1270 GNULIB_OBSTACK_PRINTF
1271 GNULIB_VASPRINTF
1272 GNULIB_VDPRINTF
1273 GNULIB_DPRINTF
1274 GNULIB_VSPRINTF_POSIX
1275 GNULIB_VSNPRINTF
1276 GNULIB_VPRINTF_POSIX
1277 GNULIB_VPRINTF
1278 GNULIB_VFPRINTF_POSIX
1279 GNULIB_VFPRINTF
1280 GNULIB_SPRINTF_POSIX
1281 GNULIB_SNPRINTF
1282 GNULIB_PRINTF_POSIX
1283 GNULIB_PRINTF
1284 GNULIB_FPRINTF_POSIX
1285 GNULIB_FPRINTF
1286 FLOAT_H
1287 NEXT_FLOAT_H
1288 EOVERFLOW_VALUE
1289 EOVERFLOW_HIDDEN
1290 ENOLINK_VALUE
1291 ENOLINK_HIDDEN
1292 EMULTIHOP_VALUE
1293 EMULTIHOP_HIDDEN
1294 ERRNO_H
1295 NEXT_ERRNO_H
1296 LOCALE_FR
1297 WCHAR_H
1298 REPLACE_WCWIDTH
1299 REPLACE_WCSRTOMBS
1300 REPLACE_WCRTOMB
1301 REPLACE_MBSNRTOWCS
1302 REPLACE_MBSRTOWCS
1303 REPLACE_MBRLEN
1304 REPLACE_MBRTOWC
1305 REPLACE_MBSINIT
1306 REPLACE_WCTOB
1307 REPLACE_BTOWC
1308 REPLACE_MBSTATE_T
1309 HAVE_DECL_WCWIDTH
1310 HAVE_DECL_WCTOB
1311 HAVE_WCSNRTOMBS
1312 HAVE_WCSRTOMBS
1313 HAVE_WCRTOMB
1314 HAVE_MBSNRTOWCS
1315 HAVE_MBSRTOWCS
1316 HAVE_MBRLEN
1317 HAVE_MBRTOWC
1318 HAVE_MBSINIT
1319 HAVE_BTOWC
1320 GNULIB_WCWIDTH
1321 GNULIB_WCSNRTOMBS
1322 GNULIB_WCSRTOMBS
1323 GNULIB_WCRTOMB
1324 GNULIB_MBSNRTOWCS
1325 GNULIB_MBSRTOWCS
1326 GNULIB_MBRLEN
1327 GNULIB_MBRTOWC
1328 GNULIB_MBSINIT
1329 GNULIB_WCTOB
1330 GNULIB_BTOWC
1331 NEXT_ARPA_INET_H
1332 PRAGMA_SYSTEM_HEADER
1333 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1334 INCLUDE_NEXT
1335 HAVE_ARPA_INET_H
1336 ARPA_INET_H
1337 HAVE_DECL_INET_PTON
1338 HAVE_DECL_INET_NTOP
1339 GNULIB_INET_PTON
1340 GNULIB_INET_NTOP
1341 ALLOCA_H
1342 ALLOCA
1343 LTALLOCA
1344 GL_COND_LIBTOOL_FALSE
1345 GL_COND_LIBTOOL_TRUE
1346 EGREP
1347 CPP
1348 RANLIB
1349 am__fastdepCC_FALSE
1350 am__fastdepCC_TRUE
1351 CCDEPMODE
1352 AMDEPBACKSLASH
1353 AMDEP_FALSE
1354 AMDEP_TRUE
1355 am__quote
1356 am__include
1357 DEPDIR
1358 OBJEXT
1359 EXEEXT
1360 ac_ct_CC
1361 CPPFLAGS
1362 LDFLAGS
1363 CFLAGS
1364 CC
1365 VERSION_COMMENT
1366 VERSION_PATCH
1367 VERSION_MINOR
1368 VERSION_MAJOR
1369 SNAPSHOT_STAMP
1370 am__untar
1371 am__tar
1372 AMTAR
1373 am__leading_dot
1374 SET_MAKE
1375 AWK
1376 mkdir_p
1377 MKDIR_P
1378 INSTALL_STRIP_PROGRAM
1379 STRIP
1380 install_sh
1381 MAKEINFO
1382 AUTOHEADER
1383 AUTOMAKE
1384 AUTOCONF
1385 ACLOCAL
1386 VERSION
1387 CYGPATH_W
1388 am__isrc
1389 INSTALL_DATA
1390 INSTALL_SCRIPT
1391 INSTALL_PROGRAM
1392 GIT
1393 SVN
1394 GREP
1395 PACKAGE
1396 host_os
1397 host_vendor
1398 host_cpu
1399 host
1400 build_os
1401 build_vendor
1402 build_cpu
1403 build
1404 target_alias
1405 host_alias
1406 build_alias
1407 LIBS
1408 ECHO_T
1409 ECHO_N
1410 ECHO_C
1411 DEFS
1412 mandir
1413 localedir
1414 libdir
1415 psdir
1416 pdfdir
1417 dvidir
1418 htmldir
1419 infodir
1420 docdir
1421 oldincludedir
1422 includedir
1423 localstatedir
1424 sharedstatedir
1425 sysconfdir
1426 datadir
1427 datarootdir
1428 libexecdir
1429 sbindir
1430 bindir
1431 program_transform_name
1432 prefix
1433 exec_prefix
1434 PACKAGE_BUGREPORT
1435 PACKAGE_STRING
1436 PACKAGE_VERSION
1437 PACKAGE_TARNAME
1438 PACKAGE_NAME
1439 PATH_SEPARATOR
1440 SHELL'
1441 ac_subst_files=''
1442 ac_user_opts='
1443 enable_option_checking
1444 enable_dependency_tracking
1445 enable_threads
1446 with_gnu_ld
1447 enable_rpath
1448 with_libpth_prefix
1449 with_included_regex
1450 enable_largefile
1451 with_cflags
1452 with_includes
1453 with_libraries
1454 with_user
1455 with_group
1456 with_dumperdir
1457 with_configdir
1458 with_indexdir
1459 with_dbdir
1460 with_logdir
1461 with_suffixes
1462 with_gnutar_listdir
1463 with_gnutar_listed_incremental
1464 with_tmpdir
1465 with_force_uid
1466 with_owner
1467 with_fqdn
1468 with_reuseports
1469 with_low_tcpportrange
1470 with_tcpportrange
1471 with_udpportrange
1472 with_buffered_dump
1473 with_maxtapeblocksize
1474 with_assertions
1475 with_debugging
1476 with_debug_days
1477 with_testing
1478 with_single_userid
1479 enable_installperms
1480 enable_syntax_checks
1481 with_server
1482 with_client
1483 with_restore
1484 with_amrecover
1485 with_client_only
1486 with_server_only
1487 with_ndmp
1488 with_gnuplot
1489 enable_manpage_build
1490 with_xsltproc
1491 with_xsltproc_flags
1492 with_index_server
1493 with_config
1494 with_tape_server
1495 with_tape_device
1496 with_changer_device
1497 with_amandates
1498 with_perlextlibs
1499 with_ipv6
1500 with_mmap
1501 with_amlibdir
1502 with_amlibexecdir
1503 with_amperldir
1504 with_amdatadir
1505 enable_nls
1506 with_libiconv_prefix
1507 with_libintl_prefix
1508 with_libcurl
1509 enable_s3_device
1510 enable_dvdrw_device
1511 enable_ndmp_device
1512 with_bsd_security
1513 with_amandahosts
1514 with_bsdtcp_security
1515 with_bsdudp_security
1516 with_rsh_security
1517 with_ssh_security
1518 with_ssh_options
1519 with_krb5_security
1520 with_dump_honor_nodump
1521 with_gnutar
1522 with_star
1523 with_smbclient
1524 with_samba_user
1525 with_rundump
1526 enable_werror
1527 enable_swig_error
1528 enable_shared
1529 enable_static
1530 with_pic
1531 enable_fast_install
1532 enable_libtool_lock
1533 enable_static_binary
1534 enable_glibtest
1535 with_readline
1536 '
1537       ac_precious_vars='build_alias
1538 host_alias
1539 target_alias
1540 CC
1541 CFLAGS
1542 LDFLAGS
1543 LIBS
1544 CPPFLAGS
1545 CPP
1546 GNUPLOT
1547 SWIG
1548 PERL
1549 GNUTAR
1550 STAR
1551 YACC
1552 YFLAGS
1553 PKG_CONFIG'
1554
1555
1556 # Initialize some variables set by options.
1557 ac_init_help=
1558 ac_init_version=false
1559 ac_unrecognized_opts=
1560 ac_unrecognized_sep=
1561 # The variables have the same names as the options, with
1562 # dashes changed to underlines.
1563 cache_file=/dev/null
1564 exec_prefix=NONE
1565 no_create=
1566 no_recursion=
1567 prefix=NONE
1568 program_prefix=NONE
1569 program_suffix=NONE
1570 program_transform_name=s,x,x,
1571 silent=
1572 site=
1573 srcdir=
1574 verbose=
1575 x_includes=NONE
1576 x_libraries=NONE
1577
1578 # Installation directory options.
1579 # These are left unexpanded so users can "make install exec_prefix=/foo"
1580 # and all the variables that are supposed to be based on exec_prefix
1581 # by default will actually change.
1582 # Use braces instead of parens because sh, perl, etc. also accept them.
1583 # (The list follows the same order as the GNU Coding Standards.)
1584 bindir='${exec_prefix}/bin'
1585 sbindir='${exec_prefix}/sbin'
1586 libexecdir='${exec_prefix}/libexec'
1587 datarootdir='${prefix}/share'
1588 datadir='${datarootdir}'
1589 sysconfdir='${prefix}/etc'
1590 sharedstatedir='${prefix}/com'
1591 localstatedir='${prefix}/var'
1592 includedir='${prefix}/include'
1593 oldincludedir='/usr/include'
1594 docdir='${datarootdir}/doc/${PACKAGE}'
1595 infodir='${datarootdir}/info'
1596 htmldir='${docdir}'
1597 dvidir='${docdir}'
1598 pdfdir='${docdir}'
1599 psdir='${docdir}'
1600 libdir='${exec_prefix}/lib'
1601 localedir='${datarootdir}/locale'
1602 mandir='${datarootdir}/man'
1603
1604 ac_prev=
1605 ac_dashdash=
1606 for ac_option
1607 do
1608   # If the previous option needs an argument, assign it.
1609   if test -n "$ac_prev"; then
1610     eval $ac_prev=\$ac_option
1611     ac_prev=
1612     continue
1613   fi
1614
1615   case $ac_option in
1616   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1617   *)    ac_optarg=yes ;;
1618   esac
1619
1620   # Accept the important Cygnus configure options, so we can diagnose typos.
1621
1622   case $ac_dashdash$ac_option in
1623   --)
1624     ac_dashdash=yes ;;
1625
1626   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1627     ac_prev=bindir ;;
1628   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1629     bindir=$ac_optarg ;;
1630
1631   -build | --build | --buil | --bui | --bu)
1632     ac_prev=build_alias ;;
1633   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1634     build_alias=$ac_optarg ;;
1635
1636   -cache-file | --cache-file | --cache-fil | --cache-fi \
1637   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1638     ac_prev=cache_file ;;
1639   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1640   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1641     cache_file=$ac_optarg ;;
1642
1643   --config-cache | -C)
1644     cache_file=config.cache ;;
1645
1646   -datadir | --datadir | --datadi | --datad)
1647     ac_prev=datadir ;;
1648   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1649     datadir=$ac_optarg ;;
1650
1651   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1652   | --dataroo | --dataro | --datar)
1653     ac_prev=datarootdir ;;
1654   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1655   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1656     datarootdir=$ac_optarg ;;
1657
1658   -disable-* | --disable-*)
1659     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1660     # Reject names that are not valid shell variable names.
1661     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1662       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1663    { (exit 1); exit 1; }; }
1664     ac_useropt_orig=$ac_useropt
1665     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1666     case $ac_user_opts in
1667       *"
1668 "enable_$ac_useropt"
1669 "*) ;;
1670       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1671          ac_unrecognized_sep=', ';;
1672     esac
1673     eval enable_$ac_useropt=no ;;
1674
1675   -docdir | --docdir | --docdi | --doc | --do)
1676     ac_prev=docdir ;;
1677   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1678     docdir=$ac_optarg ;;
1679
1680   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1681     ac_prev=dvidir ;;
1682   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1683     dvidir=$ac_optarg ;;
1684
1685   -enable-* | --enable-*)
1686     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1687     # Reject names that are not valid shell variable names.
1688     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1689       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1690    { (exit 1); exit 1; }; }
1691     ac_useropt_orig=$ac_useropt
1692     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1693     case $ac_user_opts in
1694       *"
1695 "enable_$ac_useropt"
1696 "*) ;;
1697       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1698          ac_unrecognized_sep=', ';;
1699     esac
1700     eval enable_$ac_useropt=\$ac_optarg ;;
1701
1702   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1703   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1704   | --exec | --exe | --ex)
1705     ac_prev=exec_prefix ;;
1706   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1707   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1708   | --exec=* | --exe=* | --ex=*)
1709     exec_prefix=$ac_optarg ;;
1710
1711   -gas | --gas | --ga | --g)
1712     # Obsolete; use --with-gas.
1713     with_gas=yes ;;
1714
1715   -help | --help | --hel | --he | -h)
1716     ac_init_help=long ;;
1717   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1718     ac_init_help=recursive ;;
1719   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1720     ac_init_help=short ;;
1721
1722   -host | --host | --hos | --ho)
1723     ac_prev=host_alias ;;
1724   -host=* | --host=* | --hos=* | --ho=*)
1725     host_alias=$ac_optarg ;;
1726
1727   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1728     ac_prev=htmldir ;;
1729   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1730   | --ht=*)
1731     htmldir=$ac_optarg ;;
1732
1733   -includedir | --includedir | --includedi | --included | --include \
1734   | --includ | --inclu | --incl | --inc)
1735     ac_prev=includedir ;;
1736   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1737   | --includ=* | --inclu=* | --incl=* | --inc=*)
1738     includedir=$ac_optarg ;;
1739
1740   -infodir | --infodir | --infodi | --infod | --info | --inf)
1741     ac_prev=infodir ;;
1742   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1743     infodir=$ac_optarg ;;
1744
1745   -libdir | --libdir | --libdi | --libd)
1746     ac_prev=libdir ;;
1747   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1748     libdir=$ac_optarg ;;
1749
1750   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1751   | --libexe | --libex | --libe)
1752     ac_prev=libexecdir ;;
1753   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1754   | --libexe=* | --libex=* | --libe=*)
1755     libexecdir=$ac_optarg ;;
1756
1757   -localedir | --localedir | --localedi | --localed | --locale)
1758     ac_prev=localedir ;;
1759   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1760     localedir=$ac_optarg ;;
1761
1762   -localstatedir | --localstatedir | --localstatedi | --localstated \
1763   | --localstate | --localstat | --localsta | --localst | --locals)
1764     ac_prev=localstatedir ;;
1765   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1766   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1767     localstatedir=$ac_optarg ;;
1768
1769   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1770     ac_prev=mandir ;;
1771   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1772     mandir=$ac_optarg ;;
1773
1774   -nfp | --nfp | --nf)
1775     # Obsolete; use --without-fp.
1776     with_fp=no ;;
1777
1778   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1779   | --no-cr | --no-c | -n)
1780     no_create=yes ;;
1781
1782   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1783   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1784     no_recursion=yes ;;
1785
1786   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1787   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1788   | --oldin | --oldi | --old | --ol | --o)
1789     ac_prev=oldincludedir ;;
1790   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1791   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1792   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1793     oldincludedir=$ac_optarg ;;
1794
1795   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1796     ac_prev=prefix ;;
1797   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1798     prefix=$ac_optarg ;;
1799
1800   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1801   | --program-pre | --program-pr | --program-p)
1802     ac_prev=program_prefix ;;
1803   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1804   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1805     program_prefix=$ac_optarg ;;
1806
1807   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1808   | --program-suf | --program-su | --program-s)
1809     ac_prev=program_suffix ;;
1810   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1811   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1812     program_suffix=$ac_optarg ;;
1813
1814   -program-transform-name | --program-transform-name \
1815   | --program-transform-nam | --program-transform-na \
1816   | --program-transform-n | --program-transform- \
1817   | --program-transform | --program-transfor \
1818   | --program-transfo | --program-transf \
1819   | --program-trans | --program-tran \
1820   | --progr-tra | --program-tr | --program-t)
1821     ac_prev=program_transform_name ;;
1822   -program-transform-name=* | --program-transform-name=* \
1823   | --program-transform-nam=* | --program-transform-na=* \
1824   | --program-transform-n=* | --program-transform-=* \
1825   | --program-transform=* | --program-transfor=* \
1826   | --program-transfo=* | --program-transf=* \
1827   | --program-trans=* | --program-tran=* \
1828   | --progr-tra=* | --program-tr=* | --program-t=*)
1829     program_transform_name=$ac_optarg ;;
1830
1831   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1832     ac_prev=pdfdir ;;
1833   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1834     pdfdir=$ac_optarg ;;
1835
1836   -psdir | --psdir | --psdi | --psd | --ps)
1837     ac_prev=psdir ;;
1838   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1839     psdir=$ac_optarg ;;
1840
1841   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1842   | -silent | --silent | --silen | --sile | --sil)
1843     silent=yes ;;
1844
1845   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1846     ac_prev=sbindir ;;
1847   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1848   | --sbi=* | --sb=*)
1849     sbindir=$ac_optarg ;;
1850
1851   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1852   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1853   | --sharedst | --shareds | --shared | --share | --shar \
1854   | --sha | --sh)
1855     ac_prev=sharedstatedir ;;
1856   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1857   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1858   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1859   | --sha=* | --sh=*)
1860     sharedstatedir=$ac_optarg ;;
1861
1862   -site | --site | --sit)
1863     ac_prev=site ;;
1864   -site=* | --site=* | --sit=*)
1865     site=$ac_optarg ;;
1866
1867   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1868     ac_prev=srcdir ;;
1869   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1870     srcdir=$ac_optarg ;;
1871
1872   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1873   | --syscon | --sysco | --sysc | --sys | --sy)
1874     ac_prev=sysconfdir ;;
1875   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1876   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1877     sysconfdir=$ac_optarg ;;
1878
1879   -target | --target | --targe | --targ | --tar | --ta | --t)
1880     ac_prev=target_alias ;;
1881   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1882     target_alias=$ac_optarg ;;
1883
1884   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1885     verbose=yes ;;
1886
1887   -version | --version | --versio | --versi | --vers | -V)
1888     ac_init_version=: ;;
1889
1890   -with-* | --with-*)
1891     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1892     # Reject names that are not valid shell variable names.
1893     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1894       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1895    { (exit 1); exit 1; }; }
1896     ac_useropt_orig=$ac_useropt
1897     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1898     case $ac_user_opts in
1899       *"
1900 "with_$ac_useropt"
1901 "*) ;;
1902       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1903          ac_unrecognized_sep=', ';;
1904     esac
1905     eval with_$ac_useropt=\$ac_optarg ;;
1906
1907   -without-* | --without-*)
1908     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1909     # Reject names that are not valid shell variable names.
1910     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1911       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1912    { (exit 1); exit 1; }; }
1913     ac_useropt_orig=$ac_useropt
1914     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1915     case $ac_user_opts in
1916       *"
1917 "with_$ac_useropt"
1918 "*) ;;
1919       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1920          ac_unrecognized_sep=', ';;
1921     esac
1922     eval with_$ac_useropt=no ;;
1923
1924   --x)
1925     # Obsolete; use --with-x.
1926     with_x=yes ;;
1927
1928   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1929   | --x-incl | --x-inc | --x-in | --x-i)
1930     ac_prev=x_includes ;;
1931   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1932   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1933     x_includes=$ac_optarg ;;
1934
1935   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1936   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1937     ac_prev=x_libraries ;;
1938   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1939   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1940     x_libraries=$ac_optarg ;;
1941
1942   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1943 Try \`$0 --help' for more information." >&2
1944    { (exit 1); exit 1; }; }
1945     ;;
1946
1947   *=*)
1948     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1949     # Reject names that are not valid shell variable names.
1950     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1951       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1952    { (exit 1); exit 1; }; }
1953     eval $ac_envvar=\$ac_optarg
1954     export $ac_envvar ;;
1955
1956   *)
1957     # FIXME: should be removed in autoconf 3.0.
1958     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1959     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1960       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1961     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1962     ;;
1963
1964   esac
1965 done
1966
1967 if test -n "$ac_prev"; then
1968   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1969   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1970    { (exit 1); exit 1; }; }
1971 fi
1972
1973 if test -n "$ac_unrecognized_opts"; then
1974   case $enable_option_checking in
1975     no) ;;
1976     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1977    { (exit 1); exit 1; }; } ;;
1978     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1979   esac
1980 fi
1981
1982 # Check all directory arguments for consistency.
1983 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1984                 datadir sysconfdir sharedstatedir localstatedir includedir \
1985                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1986                 libdir localedir mandir
1987 do
1988   eval ac_val=\$$ac_var
1989   # Remove trailing slashes.
1990   case $ac_val in
1991     */ )
1992       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1993       eval $ac_var=\$ac_val;;
1994   esac
1995   # Be sure to have absolute directory names.
1996   case $ac_val in
1997     [\\/$]* | ?:[\\/]* )  continue;;
1998     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1999   esac
2000   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
2001    { (exit 1); exit 1; }; }
2002 done
2003
2004 # There might be people who depend on the old broken behavior: `$host'
2005 # used to hold the argument of --host etc.
2006 # FIXME: To remove some day.
2007 build=$build_alias
2008 host=$host_alias
2009 target=$target_alias
2010
2011 # FIXME: To remove some day.
2012 if test "x$host_alias" != x; then
2013   if test "x$build_alias" = x; then
2014     cross_compiling=maybe
2015     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2016     If a cross compiler is detected then cross compile mode will be used." >&2
2017   elif test "x$build_alias" != "x$host_alias"; then
2018     cross_compiling=yes
2019   fi
2020 fi
2021
2022 ac_tool_prefix=
2023 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2024
2025 test "$silent" = yes && exec 6>/dev/null
2026
2027
2028 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2029 ac_ls_di=`ls -di .` &&
2030 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2031   { $as_echo "$as_me: error: working directory cannot be determined" >&2
2032    { (exit 1); exit 1; }; }
2033 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2034   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
2035    { (exit 1); exit 1; }; }
2036
2037
2038 # Find the source files, if location was not specified.
2039 if test -z "$srcdir"; then
2040   ac_srcdir_defaulted=yes
2041   # Try the directory containing this script, then the parent directory.
2042   ac_confdir=`$as_dirname -- "$as_myself" ||
2043 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2044          X"$as_myself" : 'X\(//\)[^/]' \| \
2045          X"$as_myself" : 'X\(//\)$' \| \
2046          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2047 $as_echo X"$as_myself" |
2048     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2049             s//\1/
2050             q
2051           }
2052           /^X\(\/\/\)[^/].*/{
2053             s//\1/
2054             q
2055           }
2056           /^X\(\/\/\)$/{
2057             s//\1/
2058             q
2059           }
2060           /^X\(\/\).*/{
2061             s//\1/
2062             q
2063           }
2064           s/.*/./; q'`
2065   srcdir=$ac_confdir
2066   if test ! -r "$srcdir/$ac_unique_file"; then
2067     srcdir=..
2068   fi
2069 else
2070   ac_srcdir_defaulted=no
2071 fi
2072 if test ! -r "$srcdir/$ac_unique_file"; then
2073   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2074   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
2075    { (exit 1); exit 1; }; }
2076 fi
2077 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2078 ac_abs_confdir=`(
2079         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
2080    { (exit 1); exit 1; }; }
2081         pwd)`
2082 # When building in place, set srcdir=.
2083 if test "$ac_abs_confdir" = "$ac_pwd"; then
2084   srcdir=.
2085 fi
2086 # Remove unnecessary trailing slashes from srcdir.
2087 # Double slashes in file names in object file debugging info
2088 # mess up M-x gdb in Emacs.
2089 case $srcdir in
2090 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2091 esac
2092 for ac_var in $ac_precious_vars; do
2093   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2094   eval ac_env_${ac_var}_value=\$${ac_var}
2095   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2096   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2097 done
2098
2099 #
2100 # Report the --help message.
2101 #
2102 if test "$ac_init_help" = "long"; then
2103   # Omit some internal or obsolete options to make the list less imposing.
2104   # This message is too long to be a string in the A/UX 3.1 sh.
2105   cat <<_ACEOF
2106 \`configure' configures this package to adapt to many kinds of systems.
2107
2108 Usage: $0 [OPTION]... [VAR=VALUE]...
2109
2110 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2111 VAR=VALUE.  See below for descriptions of some of the useful variables.
2112
2113 Defaults for the options are specified in brackets.
2114
2115 Configuration:
2116   -h, --help              display this help and exit
2117       --help=short        display options specific to this package
2118       --help=recursive    display the short help of all the included packages
2119   -V, --version           display version information and exit
2120   -q, --quiet, --silent   do not print \`checking...' messages
2121       --cache-file=FILE   cache test results in FILE [disabled]
2122   -C, --config-cache      alias for \`--cache-file=config.cache'
2123   -n, --no-create         do not create output files
2124       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2125
2126 Installation directories:
2127   --prefix=PREFIX         install architecture-independent files in PREFIX
2128                           [$ac_default_prefix]
2129   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2130                           [PREFIX]
2131
2132 By default, \`make install' will install all the files in
2133 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2134 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2135 for instance \`--prefix=\$HOME'.
2136
2137 For better control, use the options below.
2138
2139 Fine tuning of the installation directories:
2140   --bindir=DIR            user executables [EPREFIX/bin]
2141   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2142   --libexecdir=DIR        program executables [EPREFIX/libexec]
2143   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2144   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2145   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2146   --libdir=DIR            object code libraries [EPREFIX/lib]
2147   --includedir=DIR        C header files [PREFIX/include]
2148   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2149   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2150   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2151   --infodir=DIR           info documentation [DATAROOTDIR/info]
2152   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2153   --mandir=DIR            man documentation [DATAROOTDIR/man]
2154   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
2155   --htmldir=DIR           html documentation [DOCDIR]
2156   --dvidir=DIR            dvi documentation [DOCDIR]
2157   --pdfdir=DIR            pdf documentation [DOCDIR]
2158   --psdir=DIR             ps documentation [DOCDIR]
2159 _ACEOF
2160
2161   cat <<\_ACEOF
2162
2163 Program names:
2164   --program-prefix=PREFIX            prepend PREFIX to installed program names
2165   --program-suffix=SUFFIX            append SUFFIX to installed program names
2166   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2167
2168 System types:
2169   --build=BUILD     configure for building on BUILD [guessed]
2170   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2171 _ACEOF
2172 fi
2173
2174 if test -n "$ac_init_help"; then
2175
2176   cat <<\_ACEOF
2177
2178 Optional Features:
2179   --disable-option-checking  ignore unrecognized --enable/--with options
2180   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2181   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2182   --disable-dependency-tracking  speeds up one-time build
2183   --enable-dependency-tracking   do not reject slow dependency extractors
2184   --enable-threads={posix|solaris|pth|win32}
2185                           specify multithreading API
2186   --disable-threads       build without multithread safety
2187   --disable-rpath         do not hardcode runtime library paths
2188   --disable-largefile     omit support for large files
2189   --disable-installperms  do not modify ownership and permissions on installed
2190                           files
2191   --disable-syntax-checks Do not perform syntax checks when installing
2192   --enable-manpage-build  Build the manpages from their XML source (shipped
2193                           manpages are usually sufficient)
2194   --disable-nls           do not use Native Language Support
2195   --disable-s3-device     disable the S3 device
2196   --disable-dvdrw-device  disable the DVD-RW device
2197   --disable-ndmp-device   disable the NDMP device
2198   --enable-werror         To compile with -Werror compiler flag
2199   --enable-swig-error     To compile swiged C file with -Werror compiler flag
2200   --enable-shared[=PKGS]  build shared libraries [default=yes]
2201   --enable-static[=PKGS]  build static libraries [default=yes]
2202   --enable-fast-install[=PKGS]
2203                           optimize for fast installation [default=yes]
2204   --disable-libtool-lock  avoid locking (might break parallel builds)
2205   --enable-static-binary  To build statically linked binaries
2206   --disable-glibtest      do not try to compile and run a test GLIB program
2207
2208 Optional Packages:
2209   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2210   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2211   --with-gnu-ld           assume the C compiler uses GNU ld default=no
2212   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2213   --without-libpth-prefix     don't search for libpth in includedir and libdir
2214   --without-included-regex
2215                           don't compile regex; this is the default on 32-bit
2216                           systems with recent-enough versions of the GNU C
2217                           Library (use with caution on other systems). On
2218                           systems with 64-bit ptrdiff_t and 32-bit int,
2219                           --with-included-regex is the default, in case regex
2220                           functions operate on very long strings (>2GB)
2221   --with-cflags=FLAGS     deprecated; use ./configure CFLAGS=...
2222   --with-includes=INCLUDE-DIRS
2223                           deprecated; use ./configure CPPFLAGS='-I.. -I..'
2224   --with-libraries=LIBRARY-DIRS
2225                           deprecated; use ./configure LDFLAGS='-L.. -L..' (add
2226                           -R on Solaris, NetBSD)
2227   --with-user=USER        force execution to USER on client systems (REQUIRED)
2228   --with-group=GROUP      group allowed to execute setuid-root programs
2229                           (REQUIRED)
2230   --with-dumperdir=DIR    where we install the dumpers (deprecated)
2231   --with-configdir=DIR    runtime config files in DIR [sysconfdir/amanda]
2232   --with-indexdir         deprecated: use indexdir in amanda.conf
2233   --with-dbdir            deprecated: use infofile in amanda.conf
2234   --with-logdir           deprecated: use logfile in amanda.conf
2235
2236   --with-gnutar-listdir=DIR
2237                           put gnutar directory lists in DIR (default:
2238                           localstatedir/amanda/gnutar-lists)
2239   --with-gnutar-listed-incremental
2240                           deprecated; use --with-gnutar-listdir
2241   --with-tmpdir           directory for temporary and debugging files
2242                           (default: /tmp/amanda)
2243   --without-force-uid     do not check userids when running programs
2244   --with-owner=USER
2245             force ownership of installed files to USER (default same as --with-user)
2246
2247   --with-fqdn             use FQDN's to backup multiple networks
2248   --without-reuseaddr     Don't reuse network connections until full timeout
2249                           period
2250   --with-low-tcpportrange=low/high
2251                           bind reserved TCP server sockets to ports within
2252                           this range (default: unlimited)
2253   --with-tcpportrange=low/high
2254                           bind unreserved TCP server sockets to ports within
2255                           this range (default: unlimited)
2256   --with-udpportrange=low/high
2257                           bind reserved UDP server sockets to ports within
2258                           this range (default: unlimited)
2259   --with-buffered-dump    buffer the dumping sockets on the server for speed
2260 (deprecated)
2261   --with-assertions       compile assertions into code
2262   --with-debugging=DIR
2263             put debug logs in DIR (default same as --with-tmpdir)
2264
2265   --with-debug-days=NN    number of days to keep debugging files (default: 4)
2266   --with-testing[=SUFFIX] use alternate service names with suffix (default
2267                           'test')
2268   --with-single-userid
2269             force amanda to run as a single userid (for testing)
2270
2271   --without-server        do not build server stuff (set --without-restore)
2272   --without-client        do not build client stuff
2273   --without-restore       do not build amrestore nor amidxtaped
2274   --without-amrecover     do not build amrecover
2275   --with-client-only      deprecated: use --without-server
2276   --with-server-only      deprecated: use --without-client
2277   --without-ndmp          do not build ndmp
2278   --with-gnuplot=PATH     use gnuplot executable at PATH in amplot
2279   --with-xsltproc[[[=PATH]]]
2280                           Use the xsltproc binary in in PATH.
2281     --with-xsltproc-flags=FLAGS
2282                           Flags to pass to xsltproc (default --nonet)
2283   --with-index-server=HOST
2284                           default amanda index server (default: `uname -n`)
2285   --with-config=CONFIG    default amanda configuration (default: DailySet1)
2286   --with-tape-server=HOST default tape server for restore (default: same as
2287                           index-server)
2288   --with-tape-device=DEVICE
2289                           default device on restore tape server
2290   --with-changer-device=DEV
2291                           (deprecated)
2292   --with-amandates        default location for 'amandates' (default:
2293                           $localstatedir/amanda/amandates)
2294   --with-perlextlibs=libs extra LIBS for Perl extensions
2295   --with-ipv6             enable IPv6 support (default if IPv6 is found)
2296           --without-ipv6          disable IPv6
2297   --with-mmap             force use of mmap instead of shared memory support
2298   --with-amlibdir[[[=PATH]]]
2299                           Where library are installed, default: $libdir/amanda
2300           --without-amlibdir      Library are installed in $libdir
2301   --with-amlibexecdir[[[=PATH]]]
2302                           Where amanda own programs are installed, default:
2303                           $libexecdir/amanda
2304           --without-amlibexecdir  Amanda own programs are installed in $libexecdir
2305   --with-amperldir[[[=PATH]]]
2306                           Where amanda's perl modules are installed; default:
2307                           installsitelib
2308           --without-amperldir     Install amanda's perl modules in $amlibdir/perl
2309   --with-amdatadir[[[=PATH]]]
2310                           Where amanda's templates and examples are installed;
2311                           default: $datadir/amanda
2312   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2313   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2314   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2315   --without-libintl-prefix     don't search for libintl in includedir and libdir
2316   --with-libcurl=DIR      look for the curl library in DIR
2317   --without-bsd-security  do not include BSD authentication
2318    --without-amandahosts  use ".rhosts" instead of ".amandahosts"
2319   --with-bsdtcp-security  include BSDTCP authentication
2320   --with-bsdudp-security  include BSDUDP authentication
2321   --with-rsh-security     include RSH authentication
2322   --with-ssh-security     include SSH authentication
2323    --with-ssh-options=[OPTIONS]
2324                           Use these ssh options for ssh security; the default
2325                           should work
2326   --with-krb5-security=DIR
2327                           Location of Kerberos V software [/usr/kerberos
2328                           /usr/cygnus /usr /opt/kerberos]
2329   --with-dump-honor-nodump
2330                           if dump supports -h, use it for level0s too
2331   --with-gnutar=PROG      use PROG as GNU 'tar'
2332   --with-star=PROG        use PROG as 'star'
2333   --with-smbclient=PROG   use PROG as 'smbclient'
2334   --with-samba-user       deprecated; place username in 'amandapass'
2335   --with-rundump          use rundump, a setuid-root wrapper, to invoke dump
2336   --with-pic              try to use only PIC/non-PIC objects [default=use
2337                           both]
2338   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2339   --with-readline         require readline support (for amrecover)
2340   --without-readline      don't search for readline
2341
2342 Some influential environment variables:
2343   CC          C compiler command
2344   CFLAGS      C compiler flags
2345   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2346               nonstandard directory <lib dir>
2347   LIBS        libraries to pass to the linker, e.g. -l<library>
2348   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2349               you have headers in a nonstandard directory <include dir>
2350   CPP         C preprocessor
2351   GNUPLOT     Location of the 'gnuplot' binary
2352   SWIG        Path to the 'swig' binary (developers only)
2353   PERL        Path to the 'perl' binary
2354   GNUTAR      Location of the GNU 'tar' binary
2355   STAR        Location of the 'star' binary
2356   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
2357               the first program found out of: `bison -y', `byacc', `yacc'.
2358   YFLAGS      The list of arguments that will be passed by default to $YACC.
2359               This script will default YFLAGS to the empty string to avoid a
2360               default value of `-d' given by some make applications.
2361   PKG_CONFIG  path to pkg-config utility
2362
2363 Use these variables to override the choices made by `configure' or to help
2364 it to find libraries and programs with nonstandard names/locations.
2365
2366 _ACEOF
2367 ac_status=$?
2368 fi
2369
2370 if test "$ac_init_help" = "recursive"; then
2371   # If there are subdirs, report their specific --help.
2372   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2373     test -d "$ac_dir" ||
2374       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2375       continue
2376     ac_builddir=.
2377
2378 case "$ac_dir" in
2379 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2380 *)
2381   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2382   # A ".." for each directory in $ac_dir_suffix.
2383   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2384   case $ac_top_builddir_sub in
2385   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2386   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2387   esac ;;
2388 esac
2389 ac_abs_top_builddir=$ac_pwd
2390 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2391 # for backward compatibility:
2392 ac_top_builddir=$ac_top_build_prefix
2393
2394 case $srcdir in
2395   .)  # We are building in place.
2396     ac_srcdir=.
2397     ac_top_srcdir=$ac_top_builddir_sub
2398     ac_abs_top_srcdir=$ac_pwd ;;
2399   [\\/]* | ?:[\\/]* )  # Absolute name.
2400     ac_srcdir=$srcdir$ac_dir_suffix;
2401     ac_top_srcdir=$srcdir
2402     ac_abs_top_srcdir=$srcdir ;;
2403   *) # Relative name.
2404     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2405     ac_top_srcdir=$ac_top_build_prefix$srcdir
2406     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2407 esac
2408 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2409
2410     cd "$ac_dir" || { ac_status=$?; continue; }
2411     # Check for guested configure.
2412     if test -f "$ac_srcdir/configure.gnu"; then
2413       echo &&
2414       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2415     elif test -f "$ac_srcdir/configure"; then
2416       echo &&
2417       $SHELL "$ac_srcdir/configure" --help=recursive
2418     else
2419       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2420     fi || ac_status=$?
2421     cd "$ac_pwd" || { ac_status=$?; break; }
2422   done
2423 fi
2424
2425 test -n "$ac_init_help" && exit $ac_status
2426 if $ac_init_version; then
2427   cat <<\_ACEOF
2428 configure
2429 generated by GNU Autoconf 2.63
2430
2431 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2432 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2433 This configure script is free software; the Free Software Foundation
2434 gives unlimited permission to copy, distribute and modify it.
2435 _ACEOF
2436   exit
2437 fi
2438 cat >config.log <<_ACEOF
2439 This file contains any messages produced by compilers while
2440 running configure, to aid debugging if configure makes a mistake.
2441
2442 It was created by $as_me, which was
2443 generated by GNU Autoconf 2.63.  Invocation command line was
2444
2445   $ $0 $@
2446
2447 _ACEOF
2448 exec 5>>config.log
2449 {
2450 cat <<_ASUNAME
2451 ## --------- ##
2452 ## Platform. ##
2453 ## --------- ##
2454
2455 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2456 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2457 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2458 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2459 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2460
2461 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2462 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2463
2464 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2465 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2466 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2467 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2468 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2469 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2470 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2471
2472 _ASUNAME
2473
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477   IFS=$as_save_IFS
2478   test -z "$as_dir" && as_dir=.
2479   $as_echo "PATH: $as_dir"
2480 done
2481 IFS=$as_save_IFS
2482
2483 } >&5
2484
2485 cat >&5 <<_ACEOF
2486
2487
2488 ## ----------- ##
2489 ## Core tests. ##
2490 ## ----------- ##
2491
2492 _ACEOF
2493
2494
2495 # Keep a trace of the command line.
2496 # Strip out --no-create and --no-recursion so they do not pile up.
2497 # Strip out --silent because we don't want to record it for future runs.
2498 # Also quote any args containing shell meta-characters.
2499 # Make two passes to allow for proper duplicate-argument suppression.
2500 ac_configure_args=
2501 ac_configure_args0=
2502 ac_configure_args1=
2503 ac_must_keep_next=false
2504 for ac_pass in 1 2
2505 do
2506   for ac_arg
2507   do
2508     case $ac_arg in
2509     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2510     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2511     | -silent | --silent | --silen | --sile | --sil)
2512       continue ;;
2513     *\'*)
2514       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2515     esac
2516     case $ac_pass in
2517     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2518     2)
2519       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2520       if test $ac_must_keep_next = true; then
2521         ac_must_keep_next=false # Got value, back to normal.
2522       else
2523         case $ac_arg in
2524           *=* | --config-cache | -C | -disable-* | --disable-* \
2525           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2526           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2527           | -with-* | --with-* | -without-* | --without-* | --x)
2528             case "$ac_configure_args0 " in
2529               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2530             esac
2531             ;;
2532           -* ) ac_must_keep_next=true ;;
2533         esac
2534       fi
2535       ac_configure_args="$ac_configure_args '$ac_arg'"
2536       ;;
2537     esac
2538   done
2539 done
2540 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2541 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2542
2543 # When interrupted or exit'd, cleanup temporary files, and complete
2544 # config.log.  We remove comments because anyway the quotes in there
2545 # would cause problems or look ugly.
2546 # WARNING: Use '\'' to represent an apostrophe within the trap.
2547 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2548 trap 'exit_status=$?
2549   # Save into config.log some information that might help in debugging.
2550   {
2551     echo
2552
2553     cat <<\_ASBOX
2554 ## ---------------- ##
2555 ## Cache variables. ##
2556 ## ---------------- ##
2557 _ASBOX
2558     echo
2559     # The following way of writing the cache mishandles newlines in values,
2560 (
2561   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2562     eval ac_val=\$$ac_var
2563     case $ac_val in #(
2564     *${as_nl}*)
2565       case $ac_var in #(
2566       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2567 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2568       esac
2569       case $ac_var in #(
2570       _ | IFS | as_nl) ;; #(
2571       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2572       *) $as_unset $ac_var ;;
2573       esac ;;
2574     esac
2575   done
2576   (set) 2>&1 |
2577     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2578     *${as_nl}ac_space=\ *)
2579       sed -n \
2580         "s/'\''/'\''\\\\'\'''\''/g;
2581           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2582       ;; #(
2583     *)
2584       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2585       ;;
2586     esac |
2587     sort
2588 )
2589     echo
2590
2591     cat <<\_ASBOX
2592 ## ----------------- ##
2593 ## Output variables. ##
2594 ## ----------------- ##
2595 _ASBOX
2596     echo
2597     for ac_var in $ac_subst_vars
2598     do
2599       eval ac_val=\$$ac_var
2600       case $ac_val in
2601       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2602       esac
2603       $as_echo "$ac_var='\''$ac_val'\''"
2604     done | sort
2605     echo
2606
2607     if test -n "$ac_subst_files"; then
2608       cat <<\_ASBOX
2609 ## ------------------- ##
2610 ## File substitutions. ##
2611 ## ------------------- ##
2612 _ASBOX
2613       echo
2614       for ac_var in $ac_subst_files
2615       do
2616         eval ac_val=\$$ac_var
2617         case $ac_val in
2618         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2619         esac
2620         $as_echo "$ac_var='\''$ac_val'\''"
2621       done | sort
2622       echo
2623     fi
2624
2625     if test -s confdefs.h; then
2626       cat <<\_ASBOX
2627 ## ----------- ##
2628 ## confdefs.h. ##
2629 ## ----------- ##
2630 _ASBOX
2631       echo
2632       cat confdefs.h
2633       echo
2634     fi
2635     test "$ac_signal" != 0 &&
2636       $as_echo "$as_me: caught signal $ac_signal"
2637     $as_echo "$as_me: exit $exit_status"
2638   } >&5
2639   rm -f core *.core core.conftest.* &&
2640     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2641     exit $exit_status
2642 ' 0
2643 for ac_signal in 1 2 13 15; do
2644   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2645 done
2646 ac_signal=0
2647
2648 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2649 rm -f -r conftest* confdefs.h
2650
2651 # Predefined preprocessor variables.
2652
2653 cat >>confdefs.h <<_ACEOF
2654 #define PACKAGE_NAME "$PACKAGE_NAME"
2655 _ACEOF
2656
2657
2658 cat >>confdefs.h <<_ACEOF
2659 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2660 _ACEOF
2661
2662
2663 cat >>confdefs.h <<_ACEOF
2664 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2665 _ACEOF
2666
2667
2668 cat >>confdefs.h <<_ACEOF
2669 #define PACKAGE_STRING "$PACKAGE_STRING"
2670 _ACEOF
2671
2672
2673 cat >>confdefs.h <<_ACEOF
2674 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2675 _ACEOF
2676
2677
2678 # Let the site file select an alternate cache file if it wants to.
2679 # Prefer an explicitly selected file to automatically selected ones.
2680 ac_site_file1=NONE
2681 ac_site_file2=NONE
2682 if test -n "$CONFIG_SITE"; then
2683   ac_site_file1=$CONFIG_SITE
2684 elif test "x$prefix" != xNONE; then
2685   ac_site_file1=$prefix/share/config.site
2686   ac_site_file2=$prefix/etc/config.site
2687 else
2688   ac_site_file1=$ac_default_prefix/share/config.site
2689   ac_site_file2=$ac_default_prefix/etc/config.site
2690 fi
2691 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2692 do
2693   test "x$ac_site_file" = xNONE && continue
2694   if test -r "$ac_site_file"; then
2695     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2696 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2697     sed 's/^/| /' "$ac_site_file" >&5
2698     . "$ac_site_file"
2699   fi
2700 done
2701
2702 if test -r "$cache_file"; then
2703   # Some versions of bash will fail to source /dev/null (special
2704   # files actually), so we avoid doing that.
2705   if test -f "$cache_file"; then
2706     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2707 $as_echo "$as_me: loading cache $cache_file" >&6;}
2708     case $cache_file in
2709       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2710       *)                      . "./$cache_file";;
2711     esac
2712   fi
2713 else
2714   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2715 $as_echo "$as_me: creating cache $cache_file" >&6;}
2716   >$cache_file
2717 fi
2718
2719 gl_header_list="$gl_header_list arpa/inet.h"
2720 gl_func_list="$gl_func_list btowc"
2721 gl_header_list="$gl_header_list errno.h"
2722 gl_header_list="$gl_header_list float.h"
2723 gl_header_list="$gl_header_list sys/param.h"
2724 gl_header_list="$gl_header_list sys/vfs.h"
2725 gl_header_list="$gl_header_list sys/fs_types.h"
2726 gl_func_list="$gl_func_list ftruncate"
2727 gl_header_list="$gl_header_list sys/socket.h"
2728 gl_header_list="$gl_header_list netdb.h"
2729 gl_header_list="$gl_header_list netinet/in.h"
2730 gl_header_list="$gl_header_list sys/time.h"
2731 gl_func_list="$gl_func_list gettimeofday"
2732 gl_func_list="$gl_func_list lstat"
2733 gl_func_list="$gl_func_list mbsinit"
2734 gl_func_list="$gl_func_list mbrtowc"
2735 gl_header_list="$gl_header_list locale.h"
2736 gl_func_list="$gl_func_list isblank"
2737 gl_func_list="$gl_func_list iswctype"
2738 gl_func_list="$gl_func_list wcscoll"
2739 gl_header_list="$gl_header_list stdint.h"
2740 gl_header_list="$gl_header_list wchar.h"
2741 gl_header_list="$gl_header_list stdio.h"
2742 gl_header_list="$gl_header_list stdlib.h"
2743 gl_header_list="$gl_header_list sys/stat.h"
2744 gl_header_list="$gl_header_list unistd.h"
2745 gl_func_list="$gl_func_list vasnprintf"
2746 gl_func_list="$gl_func_list wcrtomb"
2747 gl_func_list="$gl_func_list iswcntrl"
2748 gl_header_list="$gl_header_list wctype.h"
2749 # Check that the precious variables saved in the cache have kept the same
2750 # value.
2751 ac_cache_corrupted=false
2752 for ac_var in $ac_precious_vars; do
2753   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2754   eval ac_new_set=\$ac_env_${ac_var}_set
2755   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2756   eval ac_new_val=\$ac_env_${ac_var}_value
2757   case $ac_old_set,$ac_new_set in
2758     set,)
2759       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2760 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2761       ac_cache_corrupted=: ;;
2762     ,set)
2763       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2764 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2765       ac_cache_corrupted=: ;;
2766     ,);;
2767     *)
2768       if test "x$ac_old_val" != "x$ac_new_val"; then
2769         # differences in whitespace do not lead to failure.
2770         ac_old_val_w=`echo x $ac_old_val`
2771         ac_new_val_w=`echo x $ac_new_val`
2772         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2773           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2774 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2775           ac_cache_corrupted=:
2776         else
2777           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2778 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2779           eval $ac_var=\$ac_old_val
2780         fi
2781         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2782 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2783         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2784 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2785       fi;;
2786   esac
2787   # Pass precious variables to config.status.
2788   if test "$ac_new_set" = set; then
2789     case $ac_new_val in
2790     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2791     *) ac_arg=$ac_var=$ac_new_val ;;
2792     esac
2793     case " $ac_configure_args " in
2794       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2795       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2796     esac
2797   fi
2798 done
2799 if $ac_cache_corrupted; then
2800   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2802   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2803 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2804   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2805 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2806    { (exit 1); exit 1; }; }
2807 fi
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825 ac_ext=c
2826 ac_cpp='$CPP $CPPFLAGS'
2827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2830
2831
2832
2833 ac_aux_dir=
2834 for ac_dir in config "$srcdir"/config; do
2835   if test -f "$ac_dir/install-sh"; then
2836     ac_aux_dir=$ac_dir
2837     ac_install_sh="$ac_aux_dir/install-sh -c"
2838     break
2839   elif test -f "$ac_dir/install.sh"; then
2840     ac_aux_dir=$ac_dir
2841     ac_install_sh="$ac_aux_dir/install.sh -c"
2842     break
2843   elif test -f "$ac_dir/shtool"; then
2844     ac_aux_dir=$ac_dir
2845     ac_install_sh="$ac_aux_dir/shtool install -c"
2846     break
2847   fi
2848 done
2849 if test -z "$ac_aux_dir"; then
2850   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2851 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2852    { (exit 1); exit 1; }; }
2853 fi
2854
2855 # These three variables are undocumented and unsupported,
2856 # and are intended to be withdrawn in a future Autoconf release.
2857 # They can cause serious problems if a builder's source tree is in a directory
2858 # whose full name contains unusual characters.
2859 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2860 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2861 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2862
2863
2864
2865 # Make sure we can run config.sub.
2866 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2867   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2868 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2869    { (exit 1); exit 1; }; }
2870
2871 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2872 $as_echo_n "checking build system type... " >&6; }
2873 if test "${ac_cv_build+set}" = set; then
2874   $as_echo_n "(cached) " >&6
2875 else
2876   ac_build_alias=$build_alias
2877 test "x$ac_build_alias" = x &&
2878   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2879 test "x$ac_build_alias" = x &&
2880   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2881 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2882    { (exit 1); exit 1; }; }
2883 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2884   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2885 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2886    { (exit 1); exit 1; }; }
2887
2888 fi
2889 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2890 $as_echo "$ac_cv_build" >&6; }
2891 case $ac_cv_build in
2892 *-*-*) ;;
2893 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2894 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2895    { (exit 1); exit 1; }; };;
2896 esac
2897 build=$ac_cv_build
2898 ac_save_IFS=$IFS; IFS='-'
2899 set x $ac_cv_build
2900 shift
2901 build_cpu=$1
2902 build_vendor=$2
2903 shift; shift
2904 # Remember, the first character of IFS is used to create $*,
2905 # except with old shells:
2906 build_os=$*
2907 IFS=$ac_save_IFS
2908 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2909
2910
2911 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2912 $as_echo_n "checking host system type... " >&6; }
2913 if test "${ac_cv_host+set}" = set; then
2914   $as_echo_n "(cached) " >&6
2915 else
2916   if test "x$host_alias" = x; then
2917   ac_cv_host=$ac_cv_build
2918 else
2919   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2920     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2921 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2922    { (exit 1); exit 1; }; }
2923 fi
2924
2925 fi
2926 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2927 $as_echo "$ac_cv_host" >&6; }
2928 case $ac_cv_host in
2929 *-*-*) ;;
2930 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2931 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2932    { (exit 1); exit 1; }; };;
2933 esac
2934 host=$ac_cv_host
2935 ac_save_IFS=$IFS; IFS='-'
2936 set x $ac_cv_host
2937 shift
2938 host_cpu=$1
2939 host_vendor=$2
2940 shift; shift
2941 # Remember, the first character of IFS is used to create $*,
2942 # except with old shells:
2943 host_os=$*
2944 IFS=$ac_save_IFS
2945 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2946
2947
2948
2949 PACKAGE=amanda
2950
2951
2952
2953     SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/sfw/bin:/usr/bsd:/etc:/usr/etc"
2954     # expand prefix or exec_prefix in LOCPATH
2955     LOCPATH=`(
2956         test "x$prefix" = xNONE && prefix=$ac_default_prefix
2957         test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2958         eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
2959     )`
2960     SYSLOCPATH="$SYSPATH:$LOCPATH"
2961     LOCSYSPATH="$LOCPATH:$SYSPATH"
2962
2963
2964
2965     # Extract the first word of "grep", so it can be a program name with args.
2966 set dummy grep; ac_word=$2
2967 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if test "${ac_cv_path_GREP+set}" = set; then
2970   $as_echo_n "(cached) " >&6
2971 else
2972   case $GREP in
2973   [\\/]* | ?:[\\/]*)
2974   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
2975   ;;
2976   *)
2977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $LOCSYSPATH
2979 do
2980   IFS=$as_save_IFS
2981   test -z "$as_dir" && as_dir=.
2982   for ac_exec_ext in '' $ac_executable_extensions; do
2983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
2985     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2986     break 2
2987   fi
2988 done
2989 done
2990 IFS=$as_save_IFS
2991
2992   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
2993   ;;
2994 esac
2995 fi
2996 GREP=$ac_cv_path_GREP
2997 if test -n "$GREP"; then
2998   { $as_echo "$as_me:$LINENO: result: $GREP" >&5
2999 $as_echo "$GREP" >&6; }
3000 else
3001   { $as_echo "$as_me:$LINENO: result: no" >&5
3002 $as_echo "no" >&6; }
3003 fi
3004
3005
3006
3007 cat >>confdefs.h <<_ACEOF
3008 #define GREP "$GREP"
3009 _ACEOF
3010
3011
3012
3013
3014
3015
3016
3017     # Extract the first word of "svn", so it can be a program name with args.
3018 set dummy svn; ac_word=$2
3019 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if test "${ac_cv_path_SVN+set}" = set; then
3022   $as_echo_n "(cached) " >&6
3023 else
3024   case $SVN in
3025   [\\/]* | ?:[\\/]*)
3026   ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
3027   ;;
3028   *)
3029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $LOCSYSPATH
3031 do
3032   IFS=$as_save_IFS
3033   test -z "$as_dir" && as_dir=.
3034   for ac_exec_ext in '' $ac_executable_extensions; do
3035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036     ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
3037     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3038     break 2
3039   fi
3040 done
3041 done
3042 IFS=$as_save_IFS
3043
3044   ;;
3045 esac
3046 fi
3047 SVN=$ac_cv_path_SVN
3048 if test -n "$SVN"; then
3049   { $as_echo "$as_me:$LINENO: result: $SVN" >&5
3050 $as_echo "$SVN" >&6; }
3051 else
3052   { $as_echo "$as_me:$LINENO: result: no" >&5
3053 $as_echo "no" >&6; }
3054 fi
3055
3056
3057     { $as_echo "$as_me:$LINENO: checking Subversion revision information" >&5
3058 $as_echo_n "checking Subversion revision information... " >&6; }
3059     if test -d $srcdir/.svn -a -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
3060         SVN_REV=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
3061         SVN_URL=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3062         SVN_PATH=`$GREP URL: conftemp.svn|cut -d "/" -f 7-`
3063         SVN_TYPE=`echo ${SVN_PATH} |cut -d "/" -f 1`
3064         SVN_BRANCH=`echo "${SVN_PATH}"| cut -d "/" -f 2`
3065         url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3066         ( echo '#define BUILT_REV "'$SVN_REV'"'
3067           echo '#define BUILT_BRANCH "'$SVN_BRANCH'"'
3068         ) > common-src/svn-info.h
3069
3070         { $as_echo "$as_me:$LINENO: result: updated" >&5
3071 $as_echo "updated" >&6; }
3072     else
3073         # Makefiles will be upset if the file doesn't exist, so double-check
3074         if test -f common-src/svn-info.h; then
3075             : # all good
3076             { $as_echo "$as_me:$LINENO: result: not changed" >&5
3077 $as_echo "not changed" >&6; }
3078         else
3079             echo '/* no information available */' > common-src/svn-info.h
3080             { $as_echo "$as_me:$LINENO: result: not available" >&5
3081 $as_echo "not available" >&6; }
3082         fi
3083     fi
3084
3085     rm -f conftemp.svn
3086
3087
3088
3089
3090
3091     # Extract the first word of "git", so it can be a program name with args.
3092 set dummy git; ac_word=$2
3093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if test "${ac_cv_path_GIT+set}" = set; then
3096   $as_echo_n "(cached) " >&6
3097 else
3098   case $GIT in
3099   [\\/]* | ?:[\\/]*)
3100   ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
3101   ;;
3102   *)
3103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $LOCSYSPATH
3105 do
3106   IFS=$as_save_IFS
3107   test -z "$as_dir" && as_dir=.
3108   for ac_exec_ext in '' $ac_executable_extensions; do
3109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110     ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
3111     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3112     break 2
3113   fi
3114 done
3115 done
3116 IFS=$as_save_IFS
3117
3118   ;;
3119 esac
3120 fi
3121 GIT=$ac_cv_path_GIT
3122 if test -n "$GIT"; then
3123   { $as_echo "$as_me:$LINENO: result: $GIT" >&5
3124 $as_echo "$GIT" >&6; }
3125 else
3126   { $as_echo "$as_me:$LINENO: result: no" >&5
3127 $as_echo "no" >&6; }
3128 fi
3129
3130
3131     { $as_echo "$as_me:$LINENO: checking git revision information" >&5
3132 $as_echo_n "checking git revision information... " >&6; }
3133     if test -d $srcdir/.git -a -n "$GIT"; then
3134         GIT_SHA1=`(cd $srcdir > /dev/null ; $GIT rev-parse HEAD | cut -c -8 )`
3135         if test -n "$GIT_SHA1"; then
3136             { $as_echo "$as_me:$LINENO: result: $GIT_SHA1" >&5
3137 $as_echo "$GIT_SHA1" >&6; }
3138         else
3139             { $as_echo "$as_me:$LINENO: result: 'git rev-parse HEAD' failed" >&5
3140 $as_echo "'git rev-parse HEAD' failed" >&6; }
3141         fi
3142     else
3143         { $as_echo "$as_me:$LINENO: result: not available" >&5
3144 $as_echo "not available" >&6; }
3145     fi
3146
3147     rm -f conftemp.git
3148
3149
3150     if test -f FULL_VERSION; then
3151         VERSION=`cat FULL_VERSION`
3152     else if test -f $srcdir/FULL_VERSION; then
3153         VERSION=`cat $srcdir/FULL_VERSION`
3154     else
3155         VERSION=`cat $srcdir/VERSION`
3156     fi
3157     fi
3158     { $as_echo "$as_me:$LINENO: \"version: $VERSION\"" >&5
3159 $as_echo "$as_me: \"version: $VERSION\"" >&6;}
3160
3161 am__api_version='1.11'
3162
3163 # Find a good install program.  We prefer a C program (faster),
3164 # so one script is as good as another.  But avoid the broken or
3165 # incompatible versions:
3166 # SysV /etc/install, /usr/sbin/install
3167 # SunOS /usr/etc/install
3168 # IRIX /sbin/install
3169 # AIX /bin/install
3170 # AmigaOS /C/install, which installs bootblocks on floppy discs
3171 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3172 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3173 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3174 # OS/2's system install, which has a completely different semantic
3175 # ./install, which can be erroneously created by make from ./install.sh.
3176 # Reject install programs that cannot install multiple files.
3177 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3178 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3179 if test -z "$INSTALL"; then
3180 if test "${ac_cv_path_install+set}" = set; then
3181   $as_echo_n "(cached) " >&6
3182 else
3183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188   # Account for people who put trailing slashes in PATH elements.
3189 case $as_dir/ in
3190   ./ | .// | /cC/* | \
3191   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3192   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3193   /usr/ucb/* ) ;;
3194   *)
3195     # OSF1 and SCO ODT 3.0 have their own names for install.
3196     # Don't use installbsd from OSF since it installs stuff as root
3197     # by default.
3198     for ac_prog in ginstall scoinst install; do
3199       for ac_exec_ext in '' $ac_executable_extensions; do
3200         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3201           if test $ac_prog = install &&
3202             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3203             # AIX install.  It has an incompatible calling convention.
3204             :
3205           elif test $ac_prog = install &&
3206             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3207             # program-specific install script used by HP pwplus--don't use.
3208             :
3209           else
3210             rm -rf conftest.one conftest.two conftest.dir
3211             echo one > conftest.one
3212             echo two > conftest.two
3213             mkdir conftest.dir
3214             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3215               test -s conftest.one && test -s conftest.two &&
3216               test -s conftest.dir/conftest.one &&
3217               test -s conftest.dir/conftest.two
3218             then
3219               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3220               break 3
3221             fi
3222           fi
3223         fi
3224       done
3225     done
3226     ;;
3227 esac
3228
3229 done
3230 IFS=$as_save_IFS
3231
3232 rm -rf conftest.one conftest.two conftest.dir
3233
3234 fi
3235   if test "${ac_cv_path_install+set}" = set; then
3236     INSTALL=$ac_cv_path_install
3237   else
3238     # As a last resort, use the slow shell script.  Don't cache a
3239     # value for INSTALL within a source directory, because that will
3240     # break other packages using the cache if that directory is
3241     # removed, or if the value is a relative name.
3242     INSTALL=$ac_install_sh
3243   fi
3244 fi
3245 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3246 $as_echo "$INSTALL" >&6; }
3247
3248 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3249 # It thinks the first close brace ends the variable substitution.
3250 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3251
3252 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3253
3254 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3255
3256 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3257 $as_echo_n "checking whether build environment is sane... " >&6; }
3258 # Just in case
3259 sleep 1
3260 echo timestamp > conftest.file
3261 # Reject unsafe characters in $srcdir or the absolute working directory
3262 # name.  Accept space and tab only in the latter.
3263 am_lf='
3264 '
3265 case `pwd` in
3266   *[\\\"\#\$\&\'\`$am_lf]*)
3267     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
3268 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
3269    { (exit 1); exit 1; }; };;
3270 esac
3271 case $srcdir in
3272   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3273     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
3274 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
3275    { (exit 1); exit 1; }; };;
3276 esac
3277
3278 # Do `set' in a subshell so we don't clobber the current shell's
3279 # arguments.  Must try -L first in case configure is actually a
3280 # symlink; some systems play weird games with the mod time of symlinks
3281 # (eg FreeBSD returns the mod time of the symlink's containing
3282 # directory).
3283 if (
3284    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3285    if test "$*" = "X"; then
3286       # -L didn't work.
3287       set X `ls -t "$srcdir/configure" conftest.file`
3288    fi
3289    rm -f conftest.file
3290    if test "$*" != "X $srcdir/configure conftest.file" \
3291       && test "$*" != "X conftest.file $srcdir/configure"; then
3292
3293       # If neither matched, then we have a broken ls.  This can happen
3294       # if, for instance, CONFIG_SHELL is bash and it inherits a
3295       # broken ls alias from the environment.  This has actually
3296       # happened.  Such a system could not be considered "sane".
3297       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3298 alias in your environment" >&5
3299 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3300 alias in your environment" >&2;}
3301    { (exit 1); exit 1; }; }
3302    fi
3303
3304    test "$2" = conftest.file
3305    )
3306 then
3307    # Ok.
3308    :
3309 else
3310    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3311 Check your system clock" >&5
3312 $as_echo "$as_me: error: newly created file is older than distributed files!
3313 Check your system clock" >&2;}
3314    { (exit 1); exit 1; }; }
3315 fi
3316 { $as_echo "$as_me:$LINENO: result: yes" >&5
3317 $as_echo "yes" >&6; }
3318 test "$program_prefix" != NONE &&
3319   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3320 # Use a double $ so make ignores it.
3321 test "$program_suffix" != NONE &&
3322   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3323 # Double any \ or $.
3324 # By default was `s,x,x', remove it if useless.
3325 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3326 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3327
3328 # expand $ac_aux_dir to an absolute path
3329 am_aux_dir=`cd $ac_aux_dir && pwd`
3330
3331 if test x"${MISSING+set}" != xset; then
3332   case $am_aux_dir in
3333   *\ * | *\     *)
3334     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3335   *)
3336     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3337   esac
3338 fi
3339 # Use eval to expand $SHELL
3340 if eval "$MISSING --run true"; then
3341   am_missing_run="$MISSING --run "
3342 else
3343   am_missing_run=
3344   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3345 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3346 fi
3347
3348 if test x"${install_sh}" != xset; then
3349   case $am_aux_dir in
3350   *\ * | *\     *)
3351     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3352   *)
3353     install_sh="\${SHELL} $am_aux_dir/install-sh"
3354   esac
3355 fi
3356
3357 # Installed binaries are usually stripped using `strip' when the user
3358 # run `make install-strip'.  However `strip' might not be the right
3359 # tool to use in cross-compilation environments, therefore Automake
3360 # will honor the `STRIP' environment variable to overrule this program.
3361 if test "$cross_compiling" != no; then
3362   if test -n "$ac_tool_prefix"; then
3363   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3364 set dummy ${ac_tool_prefix}strip; ac_word=$2
3365 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if test "${ac_cv_prog_STRIP+set}" = set; then
3368   $as_echo_n "(cached) " >&6
3369 else
3370   if test -n "$STRIP"; then
3371   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376   IFS=$as_save_IFS
3377   test -z "$as_dir" && as_dir=.
3378   for ac_exec_ext in '' $ac_executable_extensions; do
3379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3381     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3382     break 2
3383   fi
3384 done
3385 done
3386 IFS=$as_save_IFS
3387
3388 fi
3389 fi
3390 STRIP=$ac_cv_prog_STRIP
3391 if test -n "$STRIP"; then
3392   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3393 $as_echo "$STRIP" >&6; }
3394 else
3395   { $as_echo "$as_me:$LINENO: result: no" >&5
3396 $as_echo "no" >&6; }
3397 fi
3398
3399
3400 fi
3401 if test -z "$ac_cv_prog_STRIP"; then
3402   ac_ct_STRIP=$STRIP
3403   # Extract the first word of "strip", so it can be a program name with args.
3404 set dummy strip; ac_word=$2
3405 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 $as_echo_n "checking for $ac_word... " >&6; }
3407 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3408   $as_echo_n "(cached) " >&6
3409 else
3410   if test -n "$ac_ct_STRIP"; then
3411   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416   IFS=$as_save_IFS
3417   test -z "$as_dir" && as_dir=.
3418   for ac_exec_ext in '' $ac_executable_extensions; do
3419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420     ac_cv_prog_ac_ct_STRIP="strip"
3421     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422     break 2
3423   fi
3424 done
3425 done
3426 IFS=$as_save_IFS
3427
3428 fi
3429 fi
3430 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3431 if test -n "$ac_ct_STRIP"; then
3432   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3433 $as_echo "$ac_ct_STRIP" >&6; }
3434 else
3435   { $as_echo "$as_me:$LINENO: result: no" >&5
3436 $as_echo "no" >&6; }
3437 fi
3438
3439   if test "x$ac_ct_STRIP" = x; then
3440     STRIP=":"
3441   else
3442     case $cross_compiling:$ac_tool_warned in
3443 yes:)
3444 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3446 ac_tool_warned=yes ;;
3447 esac
3448     STRIP=$ac_ct_STRIP
3449   fi
3450 else
3451   STRIP="$ac_cv_prog_STRIP"
3452 fi
3453
3454 fi
3455 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3456
3457 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3458 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3459 if test -z "$MKDIR_P"; then
3460   if test "${ac_cv_path_mkdir+set}" = set; then
3461   $as_echo_n "(cached) " >&6
3462 else
3463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3465 do
3466   IFS=$as_save_IFS
3467   test -z "$as_dir" && as_dir=.
3468   for ac_prog in mkdir gmkdir; do
3469          for ac_exec_ext in '' $ac_executable_extensions; do
3470            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3471            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3472              'mkdir (GNU coreutils) '* | \
3473              'mkdir (coreutils) '* | \
3474              'mkdir (fileutils) '4.1*)
3475                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3476                break 3;;
3477            esac
3478          done
3479        done
3480 done
3481 IFS=$as_save_IFS
3482
3483 fi
3484
3485   if test "${ac_cv_path_mkdir+set}" = set; then
3486     MKDIR_P="$ac_cv_path_mkdir -p"
3487   else
3488     # As a last resort, use the slow shell script.  Don't cache a
3489     # value for MKDIR_P within a source directory, because that will
3490     # break other packages using the cache if that directory is
3491     # removed, or if the value is a relative name.
3492     test -d ./--version && rmdir ./--version
3493     MKDIR_P="$ac_install_sh -d"
3494   fi
3495 fi
3496 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3497 $as_echo "$MKDIR_P" >&6; }
3498
3499 mkdir_p="$MKDIR_P"
3500 case $mkdir_p in
3501   [\\/$]* | ?:[\\/]*) ;;
3502   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3503 esac
3504
3505 for ac_prog in gawk mawk nawk awk
3506 do
3507   # Extract the first word of "$ac_prog", so it can be a program name with args.
3508 set dummy $ac_prog; ac_word=$2
3509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if test "${ac_cv_prog_AWK+set}" = set; then
3512   $as_echo_n "(cached) " >&6
3513 else
3514   if test -n "$AWK"; then
3515   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3519 do
3520   IFS=$as_save_IFS
3521   test -z "$as_dir" && as_dir=.
3522   for ac_exec_ext in '' $ac_executable_extensions; do
3523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3524     ac_cv_prog_AWK="$ac_prog"
3525     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3526     break 2
3527   fi
3528 done
3529 done
3530 IFS=$as_save_IFS
3531
3532 fi
3533 fi
3534 AWK=$ac_cv_prog_AWK
3535 if test -n "$AWK"; then
3536   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3537 $as_echo "$AWK" >&6; }
3538 else
3539   { $as_echo "$as_me:$LINENO: result: no" >&5
3540 $as_echo "no" >&6; }
3541 fi
3542
3543
3544   test -n "$AWK" && break
3545 done
3546
3547 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3548 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3549 set x ${MAKE-make}
3550 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3551 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3552   $as_echo_n "(cached) " >&6
3553 else
3554   cat >conftest.make <<\_ACEOF
3555 SHELL = /bin/sh
3556 all:
3557         @echo '@@@%%%=$(MAKE)=@@@%%%'
3558 _ACEOF
3559 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3560 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3561   *@@@%%%=?*=@@@%%%*)
3562     eval ac_cv_prog_make_${ac_make}_set=yes;;
3563   *)
3564     eval ac_cv_prog_make_${ac_make}_set=no;;
3565 esac
3566 rm -f conftest.make
3567 fi
3568 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3569   { $as_echo "$as_me:$LINENO: result: yes" >&5
3570 $as_echo "yes" >&6; }
3571   SET_MAKE=
3572 else
3573   { $as_echo "$as_me:$LINENO: result: no" >&5
3574 $as_echo "no" >&6; }
3575   SET_MAKE="MAKE=${MAKE-make}"
3576 fi
3577
3578 rm -rf .tst 2>/dev/null
3579 mkdir .tst 2>/dev/null
3580 if test -d .tst; then
3581   am__leading_dot=.
3582 else
3583   am__leading_dot=_
3584 fi
3585 rmdir .tst 2>/dev/null
3586
3587 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3588   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3589   # is not polluted with repeated "-I."
3590   am__isrc=' -I$(srcdir)'
3591   # test to see if srcdir already configured
3592   if test -f $srcdir/config.status; then
3593     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3594 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3595    { (exit 1); exit 1; }; }
3596   fi
3597 fi
3598
3599 # test whether we have cygpath
3600 if test -z "$CYGPATH_W"; then
3601   if (cygpath --version) >/dev/null 2>/dev/null; then
3602     CYGPATH_W='cygpath -w'
3603   else
3604     CYGPATH_W=echo
3605   fi
3606 fi
3607
3608
3609 # Define the identity of the package.
3610  PACKAGE=amanda
3611  VERSION=$VERSION
3612
3613
3614 cat >>confdefs.h <<_ACEOF
3615 #define PACKAGE "$PACKAGE"
3616 _ACEOF
3617
3618
3619 cat >>confdefs.h <<_ACEOF
3620 #define VERSION "$VERSION"
3621 _ACEOF
3622
3623 # Some tools Automake needs.
3624
3625 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3626
3627
3628 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3629
3630
3631 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3632
3633
3634 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3635
3636
3637 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3638
3639 # We need awk for the "check" target.  The system "awk" is bad on
3640 # some platforms.
3641 # Always define AMTAR for backward compatibility.
3642
3643 AMTAR=${AMTAR-"${am_missing_run}tar"}
3644
3645 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3646
3647
3648
3649
3650
3651 ac_config_headers="$ac_config_headers config/config.h"
3652
3653
3654
3655
3656 #
3657 # Take care of some early Amanda-specific setup
3658 #
3659
3660     # initialize warnings file
3661     rm -f config.warnings
3662
3663
3664     if test -f "$srcdir/SNAPSHOT"; then
3665       cat < "$srcdir/SNAPSHOT"
3666
3667       snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
3668
3669       test -z "$snapdate" || VERSION="$VERSION-$snapdate"
3670       SNAPSHOT_STAMP=SNAPSHOT
3671     else
3672       SNAPSHOT_STAMP=
3673     fi
3674
3675
3676
3677
3678     VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
3679     VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
3680     if test -z "$VERSION_MINOR"; then
3681         VERSION_MINOR=0
3682         VERSION_PATCH=0
3683         VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\(.*\)'`\"
3684     else
3685         VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
3686         if test -z "$VERSION_PATCH"; then
3687             VERSION_PATCH=0
3688             VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\(.*\)'`\"
3689         else
3690             VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
3691         fi
3692     fi
3693
3694
3695
3696
3697
3698
3699
3700
3701 cat >>confdefs.h <<_ACEOF
3702 #define VERSION_MAJOR $VERSION_MAJOR
3703 _ACEOF
3704
3705
3706 cat >>confdefs.h <<_ACEOF
3707 #define VERSION_MINOR $VERSION_MINOR
3708 _ACEOF
3709
3710
3711 cat >>confdefs.h <<_ACEOF
3712 #define VERSION_PATCH $VERSION_PATCH
3713 _ACEOF
3714
3715
3716 cat >>confdefs.h <<_ACEOF
3717 #define VERSION_COMMENT $VERSION_COMMENT
3718 _ACEOF
3719
3720
3721
3722     if test -f config.local; then
3723         echo "running local script ./config.local"
3724         . ./config.local
3725     fi
3726
3727
3728 #
3729 # Set up compiler location, basic flags, and include locations
3730 # and library locations before we start checking the system
3731 # configuration in more detail...
3732 #
3733 ac_ext=c
3734 ac_cpp='$CPP $CPPFLAGS'
3735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738 if test -n "$ac_tool_prefix"; then
3739   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3740 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3741 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if test "${ac_cv_prog_CC+set}" = set; then
3744   $as_echo_n "(cached) " >&6
3745 else
3746   if test -n "$CC"; then
3747   ac_cv_prog_CC="$CC" # Let the user override the test.
3748 else
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3751 do
3752   IFS=$as_save_IFS
3753   test -z "$as_dir" && as_dir=.
3754   for ac_exec_ext in '' $ac_executable_extensions; do
3755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3756     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3757     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758     break 2
3759   fi
3760 done
3761 done
3762 IFS=$as_save_IFS
3763
3764 fi
3765 fi
3766 CC=$ac_cv_prog_CC
3767 if test -n "$CC"; then
3768   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3769 $as_echo "$CC" >&6; }
3770 else
3771   { $as_echo "$as_me:$LINENO: result: no" >&5
3772 $as_echo "no" >&6; }
3773 fi
3774
3775
3776 fi
3777 if test -z "$ac_cv_prog_CC"; then
3778   ac_ct_CC=$CC
3779   # Extract the first word of "gcc", so it can be a program name with args.
3780 set dummy gcc; ac_word=$2
3781 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3784   $as_echo_n "(cached) " >&6
3785 else
3786   if test -n "$ac_ct_CC"; then
3787   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3791 do
3792   IFS=$as_save_IFS
3793   test -z "$as_dir" && as_dir=.
3794   for ac_exec_ext in '' $ac_executable_extensions; do
3795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3796     ac_cv_prog_ac_ct_CC="gcc"
3797     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3798     break 2
3799   fi
3800 done
3801 done
3802 IFS=$as_save_IFS
3803
3804 fi
3805 fi
3806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3807 if test -n "$ac_ct_CC"; then
3808   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3809 $as_echo "$ac_ct_CC" >&6; }
3810 else
3811   { $as_echo "$as_me:$LINENO: result: no" >&5
3812 $as_echo "no" >&6; }
3813 fi
3814
3815   if test "x$ac_ct_CC" = x; then
3816     CC=""
3817   else
3818     case $cross_compiling:$ac_tool_warned in
3819 yes:)
3820 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3822 ac_tool_warned=yes ;;
3823 esac
3824     CC=$ac_ct_CC
3825   fi
3826 else
3827   CC="$ac_cv_prog_CC"
3828 fi
3829
3830 if test -z "$CC"; then
3831           if test -n "$ac_tool_prefix"; then
3832     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3833 set dummy ${ac_tool_prefix}cc; ac_word=$2
3834 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3835 $as_echo_n "checking for $ac_word... " >&6; }
3836 if test "${ac_cv_prog_CC+set}" = set; then
3837   $as_echo_n "(cached) " >&6
3838 else
3839   if test -n "$CC"; then
3840   ac_cv_prog_CC="$CC" # Let the user override the test.
3841 else
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3844 do
3845   IFS=$as_save_IFS
3846   test -z "$as_dir" && as_dir=.
3847   for ac_exec_ext in '' $ac_executable_extensions; do
3848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3849     ac_cv_prog_CC="${ac_tool_prefix}cc"
3850     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3851     break 2
3852   fi
3853 done
3854 done
3855 IFS=$as_save_IFS
3856
3857 fi
3858 fi
3859 CC=$ac_cv_prog_CC
3860 if test -n "$CC"; then
3861   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3862 $as_echo "$CC" >&6; }
3863 else
3864   { $as_echo "$as_me:$LINENO: result: no" >&5
3865 $as_echo "no" >&6; }
3866 fi
3867
3868
3869   fi
3870 fi
3871 if test -z "$CC"; then
3872   # Extract the first word of "cc", so it can be a program name with args.
3873 set dummy cc; ac_word=$2
3874 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if test "${ac_cv_prog_CC+set}" = set; then
3877   $as_echo_n "(cached) " >&6
3878 else
3879   if test -n "$CC"; then
3880   ac_cv_prog_CC="$CC" # Let the user override the test.
3881 else
3882   ac_prog_rejected=no
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3885 do
3886   IFS=$as_save_IFS
3887   test -z "$as_dir" && as_dir=.
3888   for ac_exec_ext in '' $ac_executable_extensions; do
3889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3890     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3891        ac_prog_rejected=yes
3892        continue
3893      fi
3894     ac_cv_prog_CC="cc"
3895     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3896     break 2
3897   fi
3898 done
3899 done
3900 IFS=$as_save_IFS
3901
3902 if test $ac_prog_rejected = yes; then
3903   # We found a bogon in the path, so make sure we never use it.
3904   set dummy $ac_cv_prog_CC
3905   shift
3906   if test $# != 0; then
3907     # We chose a different compiler from the bogus one.
3908     # However, it has the same basename, so the bogon will be chosen
3909     # first if we set CC to just the basename; use the full file name.
3910     shift
3911     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3912   fi
3913 fi
3914 fi
3915 fi
3916 CC=$ac_cv_prog_CC
3917 if test -n "$CC"; then
3918   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3919 $as_echo "$CC" >&6; }
3920 else
3921   { $as_echo "$as_me:$LINENO: result: no" >&5
3922 $as_echo "no" >&6; }
3923 fi
3924
3925
3926 fi
3927 if test -z "$CC"; then
3928   if test -n "$ac_tool_prefix"; then
3929   for ac_prog in cl.exe
3930   do
3931     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3933 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3934 $as_echo_n "checking for $ac_word... " >&6; }
3935 if test "${ac_cv_prog_CC+set}" = set; then
3936   $as_echo_n "(cached) " >&6
3937 else
3938   if test -n "$CC"; then
3939   ac_cv_prog_CC="$CC" # Let the user override the test.
3940 else
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3943 do
3944   IFS=$as_save_IFS
3945   test -z "$as_dir" && as_dir=.
3946   for ac_exec_ext in '' $ac_executable_extensions; do
3947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3948     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3949     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3950     break 2
3951   fi
3952 done
3953 done
3954 IFS=$as_save_IFS
3955
3956 fi
3957 fi
3958 CC=$ac_cv_prog_CC
3959 if test -n "$CC"; then
3960   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3961 $as_echo "$CC" >&6; }
3962 else
3963   { $as_echo "$as_me:$LINENO: result: no" >&5
3964 $as_echo "no" >&6; }
3965 fi
3966
3967
3968     test -n "$CC" && break
3969   done
3970 fi
3971 if test -z "$CC"; then
3972   ac_ct_CC=$CC
3973   for ac_prog in cl.exe
3974 do
3975   # Extract the first word of "$ac_prog", so it can be a program name with args.
3976 set dummy $ac_prog; ac_word=$2
3977 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3980   $as_echo_n "(cached) " >&6
3981 else
3982   if test -n "$ac_ct_CC"; then
3983   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3987 do
3988   IFS=$as_save_IFS
3989   test -z "$as_dir" && as_dir=.
3990   for ac_exec_ext in '' $ac_executable_extensions; do
3991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992     ac_cv_prog_ac_ct_CC="$ac_prog"
3993     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3994     break 2
3995   fi
3996 done
3997 done
3998 IFS=$as_save_IFS
3999
4000 fi
4001 fi
4002 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4003 if test -n "$ac_ct_CC"; then
4004   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4005 $as_echo "$ac_ct_CC" >&6; }
4006 else
4007   { $as_echo "$as_me:$LINENO: result: no" >&5
4008 $as_echo "no" >&6; }
4009 fi
4010
4011
4012   test -n "$ac_ct_CC" && break
4013 done
4014
4015   if test "x$ac_ct_CC" = x; then
4016     CC=""
4017   else
4018     case $cross_compiling:$ac_tool_warned in
4019 yes:)
4020 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4022 ac_tool_warned=yes ;;
4023 esac
4024     CC=$ac_ct_CC
4025   fi
4026 fi
4027
4028 fi
4029
4030
4031 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4034 See \`config.log' for more details." >&5
4035 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4036 See \`config.log' for more details." >&2;}
4037    { (exit 1); exit 1; }; }; }
4038
4039 # Provide some information about the compiler.
4040 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4041 set X $ac_compile
4042 ac_compiler=$2
4043 { (ac_try="$ac_compiler --version >&5"
4044 case "(($ac_try" in
4045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046   *) ac_try_echo=$ac_try;;
4047 esac
4048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4049 $as_echo "$ac_try_echo") >&5
4050   (eval "$ac_compiler --version >&5") 2>&5
4051   ac_status=$?
4052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053   (exit $ac_status); }
4054 { (ac_try="$ac_compiler -v >&5"
4055 case "(($ac_try" in
4056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057   *) ac_try_echo=$ac_try;;
4058 esac
4059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4060 $as_echo "$ac_try_echo") >&5
4061   (eval "$ac_compiler -v >&5") 2>&5
4062   ac_status=$?
4063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); }
4065 { (ac_try="$ac_compiler -V >&5"
4066 case "(($ac_try" in
4067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068   *) ac_try_echo=$ac_try;;
4069 esac
4070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4071 $as_echo "$ac_try_echo") >&5
4072   (eval "$ac_compiler -V >&5") 2>&5
4073   ac_status=$?
4074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); }
4076
4077 cat >conftest.$ac_ext <<_ACEOF
4078 /* confdefs.h.  */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h.  */
4083
4084 int
4085 main ()
4086 {
4087
4088   ;
4089   return 0;
4090 }
4091 _ACEOF
4092 ac_clean_files_save=$ac_clean_files
4093 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4094 # Try to create an executable without -o first, disregard a.out.
4095 # It will help us diagnose broken compilers, and finding out an intuition
4096 # of exeext.
4097 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4098 $as_echo_n "checking for C compiler default output file name... " >&6; }
4099 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4100
4101 # The possible output files:
4102 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4103
4104 ac_rmfiles=
4105 for ac_file in $ac_files
4106 do
4107   case $ac_file in
4108     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4109     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4110   esac
4111 done
4112 rm -f $ac_rmfiles
4113
4114 if { (ac_try="$ac_link_default"
4115 case "(($ac_try" in
4116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117   *) ac_try_echo=$ac_try;;
4118 esac
4119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4120 $as_echo "$ac_try_echo") >&5
4121   (eval "$ac_link_default") 2>&5
4122   ac_status=$?
4123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124   (exit $ac_status); }; then
4125   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4126 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4127 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4128 # so that the user can short-circuit this test for compilers unknown to
4129 # Autoconf.
4130 for ac_file in $ac_files ''
4131 do
4132   test -f "$ac_file" || continue
4133   case $ac_file in
4134     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4135         ;;
4136     [ab].out )
4137         # We found the default executable, but exeext='' is most
4138         # certainly right.
4139         break;;
4140     *.* )
4141         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4142         then :; else
4143            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4144         fi
4145         # We set ac_cv_exeext here because the later test for it is not
4146         # safe: cross compilers may not add the suffix if given an `-o'
4147         # argument, so we may need to know it at that point already.
4148         # Even if this section looks crufty: it has the advantage of
4149         # actually working.
4150         break;;
4151     * )
4152         break;;
4153   esac
4154 done
4155 test "$ac_cv_exeext" = no && ac_cv_exeext=
4156
4157 else
4158   ac_file=''
4159 fi
4160
4161 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4162 $as_echo "$ac_file" >&6; }
4163 if test -z "$ac_file"; then
4164   $as_echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4166
4167 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4169 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4170 See \`config.log' for more details." >&5
4171 $as_echo "$as_me: error: C compiler cannot create executables
4172 See \`config.log' for more details." >&2;}
4173    { (exit 77); exit 77; }; }; }
4174 fi
4175
4176 ac_exeext=$ac_cv_exeext
4177
4178 # Check that the compiler produces executables we can run.  If not, either
4179 # the compiler is broken, or we cross compile.
4180 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4181 $as_echo_n "checking whether the C compiler works... " >&6; }
4182 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4183 # If not cross compiling, check that we can run a simple program.
4184 if test "$cross_compiling" != yes; then
4185   if { ac_try='./$ac_file'
4186   { (case "(($ac_try" in
4187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188   *) ac_try_echo=$ac_try;;
4189 esac
4190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4191 $as_echo "$ac_try_echo") >&5
4192   (eval "$ac_try") 2>&5
4193   ac_status=$?
4194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); }; }; then
4196     cross_compiling=no
4197   else
4198     if test "$cross_compiling" = maybe; then
4199         cross_compiling=yes
4200     else
4201         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4203 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4204 If you meant to cross compile, use \`--host'.
4205 See \`config.log' for more details." >&5
4206 $as_echo "$as_me: error: cannot run C compiled programs.
4207 If you meant to cross compile, use \`--host'.
4208 See \`config.log' for more details." >&2;}
4209    { (exit 1); exit 1; }; }; }
4210     fi
4211   fi
4212 fi
4213 { $as_echo "$as_me:$LINENO: result: yes" >&5
4214 $as_echo "yes" >&6; }
4215
4216 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4217 ac_clean_files=$ac_clean_files_save
4218 # Check that the compiler produces executables we can run.  If not, either
4219 # the compiler is broken, or we cross compile.
4220 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4221 $as_echo_n "checking whether we are cross compiling... " >&6; }
4222 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4223 $as_echo "$cross_compiling" >&6; }
4224
4225 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4226 $as_echo_n "checking for suffix of executables... " >&6; }
4227 if { (ac_try="$ac_link"
4228 case "(($ac_try" in
4229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230   *) ac_try_echo=$ac_try;;
4231 esac
4232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4233 $as_echo "$ac_try_echo") >&5
4234   (eval "$ac_link") 2>&5
4235   ac_status=$?
4236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); }; then
4238   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4239 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4240 # work properly (i.e., refer to `conftest.exe'), while it won't with
4241 # `rm'.
4242 for ac_file in conftest.exe conftest conftest.*; do
4243   test -f "$ac_file" || continue
4244   case $ac_file in
4245     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4246     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4247           break;;
4248     * ) break;;
4249   esac
4250 done
4251 else
4252   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4254 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4255 See \`config.log' for more details." >&5
4256 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4257 See \`config.log' for more details." >&2;}
4258    { (exit 1); exit 1; }; }; }
4259 fi
4260
4261 rm -f conftest$ac_cv_exeext
4262 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4263 $as_echo "$ac_cv_exeext" >&6; }
4264
4265 rm -f conftest.$ac_ext
4266 EXEEXT=$ac_cv_exeext
4267 ac_exeext=$EXEEXT
4268 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4269 $as_echo_n "checking for suffix of object files... " >&6; }
4270 if test "${ac_cv_objext+set}" = set; then
4271   $as_echo_n "(cached) " >&6
4272 else
4273   cat >conftest.$ac_ext <<_ACEOF
4274 /* confdefs.h.  */
4275 _ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h.  */
4279
4280 int
4281 main ()
4282 {
4283
4284   ;
4285   return 0;
4286 }
4287 _ACEOF
4288 rm -f conftest.o conftest.obj
4289 if { (ac_try="$ac_compile"
4290 case "(($ac_try" in
4291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292   *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4295 $as_echo "$ac_try_echo") >&5
4296   (eval "$ac_compile") 2>&5
4297   ac_status=$?
4298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); }; then
4300   for ac_file in conftest.o conftest.obj conftest.*; do
4301   test -f "$ac_file" || continue;
4302   case $ac_file in
4303     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4304     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4305        break;;
4306   esac
4307 done
4308 else
4309   $as_echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4311
4312 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4314 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4315 See \`config.log' for more details." >&5
4316 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4317 See \`config.log' for more details." >&2;}
4318    { (exit 1); exit 1; }; }; }
4319 fi
4320
4321 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4322 fi
4323 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4324 $as_echo "$ac_cv_objext" >&6; }
4325 OBJEXT=$ac_cv_objext
4326 ac_objext=$OBJEXT
4327 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4328 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4329 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4330   $as_echo_n "(cached) " >&6
4331 else
4332   cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h.  */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h.  */
4338
4339 int
4340 main ()
4341 {
4342 #ifndef __GNUC__
4343        choke me
4344 #endif
4345
4346   ;
4347   return 0;
4348 }
4349 _ACEOF
4350 rm -f conftest.$ac_objext
4351 if { (ac_try="$ac_compile"
4352 case "(($ac_try" in
4353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354   *) ac_try_echo=$ac_try;;
4355 esac
4356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4357 $as_echo "$ac_try_echo") >&5
4358   (eval "$ac_compile") 2>conftest.er1
4359   ac_status=$?
4360   grep -v '^ *+' conftest.er1 >conftest.err
4361   rm -f conftest.er1
4362   cat conftest.err >&5
4363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); } && {
4365          test -z "$ac_c_werror_flag" ||
4366          test ! -s conftest.err
4367        } && test -s conftest.$ac_objext; then
4368   ac_compiler_gnu=yes
4369 else
4370   $as_echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373         ac_compiler_gnu=no
4374 fi
4375
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4378
4379 fi
4380 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4381 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4382 if test $ac_compiler_gnu = yes; then
4383   GCC=yes
4384 else
4385   GCC=
4386 fi
4387 ac_test_CFLAGS=${CFLAGS+set}
4388 ac_save_CFLAGS=$CFLAGS
4389 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4390 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4391 if test "${ac_cv_prog_cc_g+set}" = set; then
4392   $as_echo_n "(cached) " >&6
4393 else
4394   ac_save_c_werror_flag=$ac_c_werror_flag
4395    ac_c_werror_flag=yes
4396    ac_cv_prog_cc_g=no
4397    CFLAGS="-g"
4398    cat >conftest.$ac_ext <<_ACEOF
4399 /* confdefs.h.  */
4400 _ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h.  */
4404
4405 int
4406 main ()
4407 {
4408
4409   ;
4410   return 0;
4411 }
4412 _ACEOF
4413 rm -f conftest.$ac_objext
4414 if { (ac_try="$ac_compile"
4415 case "(($ac_try" in
4416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417   *) ac_try_echo=$ac_try;;
4418 esac
4419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4420 $as_echo "$ac_try_echo") >&5
4421   (eval "$ac_compile") 2>conftest.er1
4422   ac_status=$?
4423   grep -v '^ *+' conftest.er1 >conftest.err
4424   rm -f conftest.er1
4425   cat conftest.err >&5
4426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); } && {
4428          test -z "$ac_c_werror_flag" ||
4429          test ! -s conftest.err
4430        } && test -s conftest.$ac_objext; then
4431   ac_cv_prog_cc_g=yes
4432 else
4433   $as_echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436         CFLAGS=""
4437       cat >conftest.$ac_ext <<_ACEOF
4438 /* confdefs.h.  */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h.  */
4443
4444 int
4445 main ()
4446 {
4447
4448   ;
4449   return 0;
4450 }
4451 _ACEOF
4452 rm -f conftest.$ac_objext
4453 if { (ac_try="$ac_compile"
4454 case "(($ac_try" in
4455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456   *) ac_try_echo=$ac_try;;
4457 esac
4458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4459 $as_echo "$ac_try_echo") >&5
4460   (eval "$ac_compile") 2>conftest.er1
4461   ac_status=$?
4462   grep -v '^ *+' conftest.er1 >conftest.err
4463   rm -f conftest.er1
4464   cat conftest.err >&5
4465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); } && {
4467          test -z "$ac_c_werror_flag" ||
4468          test ! -s conftest.err
4469        } && test -s conftest.$ac_objext; then
4470   :
4471 else
4472   $as_echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4474
4475         ac_c_werror_flag=$ac_save_c_werror_flag
4476          CFLAGS="-g"
4477          cat >conftest.$ac_ext <<_ACEOF
4478 /* confdefs.h.  */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h.  */
4483
4484 int
4485 main ()
4486 {
4487
4488   ;
4489   return 0;
4490 }
4491 _ACEOF
4492 rm -f conftest.$ac_objext
4493 if { (ac_try="$ac_compile"
4494 case "(($ac_try" in
4495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496   *) ac_try_echo=$ac_try;;
4497 esac
4498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4499 $as_echo "$ac_try_echo") >&5
4500   (eval "$ac_compile") 2>conftest.er1
4501   ac_status=$?
4502   grep -v '^ *+' conftest.er1 >conftest.err
4503   rm -f conftest.er1
4504   cat conftest.err >&5
4505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506   (exit $ac_status); } && {
4507          test -z "$ac_c_werror_flag" ||
4508          test ! -s conftest.err
4509        } && test -s conftest.$ac_objext; then
4510   ac_cv_prog_cc_g=yes
4511 else
4512   $as_echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4514
4515
4516 fi
4517
4518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4519 fi
4520
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 fi
4523
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525    ac_c_werror_flag=$ac_save_c_werror_flag
4526 fi
4527 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4528 $as_echo "$ac_cv_prog_cc_g" >&6; }
4529 if test "$ac_test_CFLAGS" = set; then
4530   CFLAGS=$ac_save_CFLAGS
4531 elif test $ac_cv_prog_cc_g = yes; then
4532   if test "$GCC" = yes; then
4533     CFLAGS="-g -O2"
4534   else
4535     CFLAGS="-g"
4536   fi
4537 else
4538   if test "$GCC" = yes; then
4539     CFLAGS="-O2"
4540   else
4541     CFLAGS=
4542   fi
4543 fi
4544 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4545 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4546 if test "${ac_cv_prog_cc_c89+set}" = set; then
4547   $as_echo_n "(cached) " >&6
4548 else
4549   ac_cv_prog_cc_c89=no
4550 ac_save_CC=$CC
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h.  */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h.  */
4557 #include <stdarg.h>
4558 #include <stdio.h>
4559 #include <sys/types.h>
4560 #include <sys/stat.h>
4561 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4562 struct buf { int x; };
4563 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4564 static char *e (p, i)
4565      char **p;
4566      int i;
4567 {
4568   return p[i];
4569 }
4570 static char *f (char * (*g) (char **, int), char **p, ...)
4571 {
4572   char *s;
4573   va_list v;
4574   va_start (v,p);
4575   s = g (p, va_arg (v,int));
4576   va_end (v);
4577   return s;
4578 }
4579
4580 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4581    function prototypes and stuff, but not '\xHH' hex character constants.
4582    These don't provoke an error unfortunately, instead are silently treated
4583    as 'x'.  The following induces an error, until -std is added to get
4584    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4585    array size at least.  It's necessary to write '\x00'==0 to get something
4586    that's true only with -std.  */
4587 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4588
4589 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4590    inside strings and character constants.  */
4591 #define FOO(x) 'x'
4592 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4593
4594 int test (int i, double x);
4595 struct s1 {int (*f) (int a);};
4596 struct s2 {int (*f) (double a);};
4597 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4598 int argc;
4599 char **argv;
4600 int
4601 main ()
4602 {
4603 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4604   ;
4605   return 0;
4606 }
4607 _ACEOF
4608 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4609         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4610 do
4611   CC="$ac_save_CC $ac_arg"
4612   rm -f conftest.$ac_objext
4613 if { (ac_try="$ac_compile"
4614 case "(($ac_try" in
4615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616   *) ac_try_echo=$ac_try;;
4617 esac
4618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4619 $as_echo "$ac_try_echo") >&5
4620   (eval "$ac_compile") 2>conftest.er1
4621   ac_status=$?
4622   grep -v '^ *+' conftest.er1 >conftest.err
4623   rm -f conftest.er1
4624   cat conftest.err >&5
4625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); } && {
4627          test -z "$ac_c_werror_flag" ||
4628          test ! -s conftest.err
4629        } && test -s conftest.$ac_objext; then
4630   ac_cv_prog_cc_c89=$ac_arg
4631 else
4632   $as_echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4634
4635
4636 fi
4637
4638 rm -f core conftest.err conftest.$ac_objext
4639   test "x$ac_cv_prog_cc_c89" != "xno" && break
4640 done
4641 rm -f conftest.$ac_ext
4642 CC=$ac_save_CC
4643
4644 fi
4645 # AC_CACHE_VAL
4646 case "x$ac_cv_prog_cc_c89" in
4647   x)
4648     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4649 $as_echo "none needed" >&6; } ;;
4650   xno)
4651     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4652 $as_echo "unsupported" >&6; } ;;
4653   *)
4654     CC="$CC $ac_cv_prog_cc_c89"
4655     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4656 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4657 esac
4658
4659
4660 ac_ext=c
4661 ac_cpp='$CPP $CPPFLAGS'
4662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4665 DEPDIR="${am__leading_dot}deps"
4666
4667 ac_config_commands="$ac_config_commands depfiles"
4668
4669
4670 am_make=${MAKE-make}
4671 cat > confinc << 'END'
4672 am__doit:
4673         @echo this is the am__doit target
4674 .PHONY: am__doit
4675 END
4676 # If we don't find an include directive, just comment out the code.
4677 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4678 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4679 am__include="#"
4680 am__quote=
4681 _am_result=none
4682 # First try GNU make style include.
4683 echo "include confinc" > confmf
4684 # Ignore all kinds of additional output from `make'.
4685 case `$am_make -s -f confmf 2> /dev/null` in #(
4686 *the\ am__doit\ target*)
4687   am__include=include
4688   am__quote=
4689   _am_result=GNU
4690   ;;
4691 esac
4692 # Now try BSD make style include.
4693 if test "$am__include" = "#"; then
4694    echo '.include "confinc"' > confmf
4695    case `$am_make -s -f confmf 2> /dev/null` in #(
4696    *the\ am__doit\ target*)
4697      am__include=.include
4698      am__quote="\""
4699      _am_result=BSD
4700      ;;
4701    esac
4702 fi
4703
4704
4705 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4706 $as_echo "$_am_result" >&6; }
4707 rm -f confinc confmf
4708
4709 # Check whether --enable-dependency-tracking was given.
4710 if test "${enable_dependency_tracking+set}" = set; then
4711   enableval=$enable_dependency_tracking;
4712 fi
4713
4714 if test "x$enable_dependency_tracking" != xno; then
4715   am_depcomp="$ac_aux_dir/depcomp"
4716   AMDEPBACKSLASH='\'
4717 fi
4718  if test "x$enable_dependency_tracking" != xno; then
4719   AMDEP_TRUE=
4720   AMDEP_FALSE='#'
4721 else
4722   AMDEP_TRUE='#'
4723   AMDEP_FALSE=
4724 fi
4725
4726
4727
4728 depcc="$CC"   am_compiler_list=
4729
4730 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4731 $as_echo_n "checking dependency style of $depcc... " >&6; }
4732 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4733   $as_echo_n "(cached) " >&6
4734 else
4735   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4736   # We make a subdir and do the tests there.  Otherwise we can end up
4737   # making bogus files that we don't know about and never remove.  For
4738   # instance it was reported that on HP-UX the gcc test will end up
4739   # making a dummy file named `D' -- because `-MD' means `put the output
4740   # in D'.
4741   mkdir conftest.dir
4742   # Copy depcomp to subdir because otherwise we won't find it if we're
4743   # using a relative directory.
4744   cp "$am_depcomp" conftest.dir
4745   cd conftest.dir
4746   # We will build objects and dependencies in a subdirectory because
4747   # it helps to detect inapplicable dependency modes.  For instance
4748   # both Tru64's cc and ICC support -MD to output dependencies as a
4749   # side effect of compilation, but ICC will put the dependencies in
4750   # the current directory while Tru64 will put them in the object
4751   # directory.
4752   mkdir sub
4753
4754   am_cv_CC_dependencies_compiler_type=none
4755   if test "$am_compiler_list" = ""; then
4756      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4757   fi
4758   am__universal=false
4759   case " $depcc " in #(
4760      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4761      esac
4762
4763   for depmode in $am_compiler_list; do
4764     # Setup a source with many dependencies, because some compilers
4765     # like to wrap large dependency lists on column 80 (with \), and
4766     # we should not choose a depcomp mode which is confused by this.
4767     #
4768     # We need to recreate these files for each test, as the compiler may
4769     # overwrite some of them when testing with obscure command lines.
4770     # This happens at least with the AIX C compiler.
4771     : > sub/conftest.c
4772     for i in 1 2 3 4 5 6; do
4773       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4774       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4775       # Solaris 8's {/usr,}/bin/sh.
4776       touch sub/conftst$i.h
4777     done
4778     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4779
4780     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4781     # mode.  It turns out that the SunPro C++ compiler does not properly
4782     # handle `-M -o', and we need to detect this.  Also, some Intel
4783     # versions had trouble with output in subdirs
4784     am__obj=sub/conftest.${OBJEXT-o}
4785     am__minus_obj="-o $am__obj"
4786     case $depmode in
4787     gcc)
4788       # This depmode causes a compiler race in universal mode.
4789       test "$am__universal" = false || continue
4790       ;;
4791     nosideeffect)
4792       # after this tag, mechanisms are not by side-effect, so they'll
4793       # only be used when explicitly requested
4794       if test "x$enable_dependency_tracking" = xyes; then
4795         continue
4796       else
4797         break
4798       fi
4799       ;;
4800     msvisualcpp | msvcmsys)
4801       # This compiler won't grok `-c -o', but also, the minuso test has
4802       # not run yet.  These depmodes are late enough in the game, and
4803       # so weak that their functioning should not be impacted.
4804       am__obj=conftest.${OBJEXT-o}
4805       am__minus_obj=
4806       ;;
4807     none) break ;;
4808     esac
4809     if depmode=$depmode \
4810        source=sub/conftest.c object=$am__obj \
4811        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4812        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4813          >/dev/null 2>conftest.err &&
4814        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4815        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4816        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4817        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4818       # icc doesn't choke on unknown options, it will just issue warnings
4819       # or remarks (even with -Werror).  So we grep stderr for any message
4820       # that says an option was ignored or not supported.
4821       # When given -MP, icc 7.0 and 7.1 complain thusly:
4822       #   icc: Command line warning: ignoring option '-M'; no argument required
4823       # The diagnosis changed in icc 8.0:
4824       #   icc: Command line remark: option '-MP' not supported
4825       if (grep 'ignoring option' conftest.err ||
4826           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4827         am_cv_CC_dependencies_compiler_type=$depmode
4828         break
4829       fi
4830     fi
4831   done
4832
4833   cd ..
4834   rm -rf conftest.dir
4835 else
4836   am_cv_CC_dependencies_compiler_type=none
4837 fi
4838
4839 fi
4840 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4841 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4842 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4843
4844  if
4845   test "x$enable_dependency_tracking" != xno \
4846   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4847   am__fastdepCC_TRUE=
4848   am__fastdepCC_FALSE='#'
4849 else
4850   am__fastdepCC_TRUE='#'
4851   am__fastdepCC_FALSE=
4852 fi
4853
4854
4855 if test -n "$ac_tool_prefix"; then
4856   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4857 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4858 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_RANLIB+set}" = set; then
4861   $as_echo_n "(cached) " >&6
4862 else
4863   if test -n "$RANLIB"; then
4864   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869   IFS=$as_save_IFS
4870   test -z "$as_dir" && as_dir=.
4871   for ac_exec_ext in '' $ac_executable_extensions; do
4872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4874     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875     break 2
4876   fi
4877 done
4878 done
4879 IFS=$as_save_IFS
4880
4881 fi
4882 fi
4883 RANLIB=$ac_cv_prog_RANLIB
4884 if test -n "$RANLIB"; then
4885   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4886 $as_echo "$RANLIB" >&6; }
4887 else
4888   { $as_echo "$as_me:$LINENO: result: no" >&5
4889 $as_echo "no" >&6; }
4890 fi
4891
4892
4893 fi
4894 if test -z "$ac_cv_prog_RANLIB"; then
4895   ac_ct_RANLIB=$RANLIB
4896   # Extract the first word of "ranlib", so it can be a program name with args.
4897 set dummy ranlib; ac_word=$2
4898 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4901   $as_echo_n "(cached) " >&6
4902 else
4903   if test -n "$ac_ct_RANLIB"; then
4904   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909   IFS=$as_save_IFS
4910   test -z "$as_dir" && as_dir=.
4911   for ac_exec_ext in '' $ac_executable_extensions; do
4912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913     ac_cv_prog_ac_ct_RANLIB="ranlib"
4914     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915     break 2
4916   fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921 fi
4922 fi
4923 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4924 if test -n "$ac_ct_RANLIB"; then
4925   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4926 $as_echo "$ac_ct_RANLIB" >&6; }
4927 else
4928   { $as_echo "$as_me:$LINENO: result: no" >&5
4929 $as_echo "no" >&6; }
4930 fi
4931
4932   if test "x$ac_ct_RANLIB" = x; then
4933     RANLIB=":"
4934   else
4935     case $cross_compiling:$ac_tool_warned in
4936 yes:)
4937 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4939 ac_tool_warned=yes ;;
4940 esac
4941     RANLIB=$ac_ct_RANLIB
4942   fi
4943 else
4944   RANLIB="$ac_cv_prog_RANLIB"
4945 fi
4946
4947 if test "x$CC" != xcc; then
4948   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4949 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4950 else
4951   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4952 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4953 fi
4954 set dummy $CC; ac_cc=`$as_echo "$2" |
4955                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4956 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4957   $as_echo_n "(cached) " >&6
4958 else
4959   cat >conftest.$ac_ext <<_ACEOF
4960 /* confdefs.h.  */
4961 _ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h.  */
4965
4966 int
4967 main ()
4968 {
4969
4970   ;
4971   return 0;
4972 }
4973 _ACEOF
4974 # Make sure it works both with $CC and with simple cc.
4975 # We do the test twice because some compilers refuse to overwrite an
4976 # existing .o file with -o, though they will create one.
4977 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4978 rm -f conftest2.*
4979 if { (case "(($ac_try" in
4980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981   *) ac_try_echo=$ac_try;;
4982 esac
4983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4984 $as_echo "$ac_try_echo") >&5
4985   (eval "$ac_try") 2>&5
4986   ac_status=$?
4987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); } &&
4989    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991   *) ac_try_echo=$ac_try;;
4992 esac
4993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4994 $as_echo "$ac_try_echo") >&5
4995   (eval "$ac_try") 2>&5
4996   ac_status=$?
4997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998   (exit $ac_status); };
4999 then
5000   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5001   if test "x$CC" != xcc; then
5002     # Test first that cc exists at all.
5003     if { ac_try='cc -c conftest.$ac_ext >&5'
5004   { (case "(($ac_try" in
5005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006   *) ac_try_echo=$ac_try;;
5007 esac
5008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5009 $as_echo "$ac_try_echo") >&5
5010   (eval "$ac_try") 2>&5
5011   ac_status=$?
5012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013   (exit $ac_status); }; }; then
5014       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5015       rm -f conftest2.*
5016       if { (case "(($ac_try" in
5017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018   *) ac_try_echo=$ac_try;;
5019 esac
5020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5021 $as_echo "$ac_try_echo") >&5
5022   (eval "$ac_try") 2>&5
5023   ac_status=$?
5024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025   (exit $ac_status); } &&
5026          test -f conftest2.$ac_objext && { (case "(($ac_try" in
5027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028   *) ac_try_echo=$ac_try;;
5029 esac
5030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5031 $as_echo "$ac_try_echo") >&5
5032   (eval "$ac_try") 2>&5
5033   ac_status=$?
5034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); };
5036       then
5037         # cc works too.
5038         :
5039       else
5040         # cc exists but doesn't like -o.
5041         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5042       fi
5043     fi
5044   fi
5045 else
5046   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5047 fi
5048 rm -f core conftest*
5049
5050 fi
5051 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5052   { $as_echo "$as_me:$LINENO: result: yes" >&5
5053 $as_echo "yes" >&6; }
5054 else
5055   { $as_echo "$as_me:$LINENO: result: no" >&5
5056 $as_echo "no" >&6; }
5057
5058 cat >>confdefs.h <<\_ACEOF
5059 #define NO_MINUS_C_MINUS_O 1
5060 _ACEOF
5061
5062 fi
5063
5064 # FIXME: we rely on the cache variable name because
5065 # there is no other way.
5066 set dummy $CC
5067 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5068 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5069 if test "$am_t" != yes; then
5070    # Losing compiler, so override with the script.
5071    # FIXME: It is wrong to rewrite CC.
5072    # But if we don't then we get into trouble of one sort or another.
5073    # A longer-term fix would be to have automake use am__CC in this case,
5074    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5075    CC="$am_aux_dir/compile $CC"
5076 fi
5077
5078
5079
5080 ac_ext=c
5081 ac_cpp='$CPP $CPPFLAGS'
5082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5085 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5086 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5087 # On Suns, sometimes $CPP names a directory.
5088 if test -n "$CPP" && test -d "$CPP"; then
5089   CPP=
5090 fi
5091 if test -z "$CPP"; then
5092   if test "${ac_cv_prog_CPP+set}" = set; then
5093   $as_echo_n "(cached) " >&6
5094 else
5095       # Double quotes because CPP needs to be expanded
5096     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5097     do
5098       ac_preproc_ok=false
5099 for ac_c_preproc_warn_flag in '' yes
5100 do
5101   # Use a header file that comes with gcc, so configuring glibc
5102   # with a fresh cross-compiler works.
5103   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5104   # <limits.h> exists even on freestanding compilers.
5105   # On the NeXT, cc -E runs the code through the compiler's parser,
5106   # not just through cpp. "Syntax error" is here to catch this case.
5107   cat >conftest.$ac_ext <<_ACEOF
5108 /* confdefs.h.  */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h.  */
5113 #ifdef __STDC__
5114 # include <limits.h>
5115 #else
5116 # include <assert.h>
5117 #endif
5118                      Syntax error
5119 _ACEOF
5120 if { (ac_try="$ac_cpp conftest.$ac_ext"
5121 case "(($ac_try" in
5122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123   *) ac_try_echo=$ac_try;;
5124 esac
5125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5126 $as_echo "$ac_try_echo") >&5
5127   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5128   ac_status=$?
5129   grep -v '^ *+' conftest.er1 >conftest.err
5130   rm -f conftest.er1
5131   cat conftest.err >&5
5132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133   (exit $ac_status); } >/dev/null && {
5134          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5135          test ! -s conftest.err
5136        }; then
5137   :
5138 else
5139   $as_echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5141
5142   # Broken: fails on valid input.
5143 continue
5144 fi
5145
5146 rm -f conftest.err conftest.$ac_ext
5147
5148   # OK, works on sane cases.  Now check whether nonexistent headers
5149   # can be detected and how.
5150   cat >conftest.$ac_ext <<_ACEOF
5151 /* confdefs.h.  */
5152 _ACEOF
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h.  */
5156 #include <ac_nonexistent.h>
5157 _ACEOF
5158 if { (ac_try="$ac_cpp conftest.$ac_ext"
5159 case "(($ac_try" in
5160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161   *) ac_try_echo=$ac_try;;
5162 esac
5163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5164 $as_echo "$ac_try_echo") >&5
5165   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5166   ac_status=$?
5167   grep -v '^ *+' conftest.er1 >conftest.err
5168   rm -f conftest.er1
5169   cat conftest.err >&5
5170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); } >/dev/null && {
5172          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5173          test ! -s conftest.err
5174        }; then
5175   # Broken: success on invalid input.
5176 continue
5177 else
5178   $as_echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5180
5181   # Passes both tests.
5182 ac_preproc_ok=:
5183 break
5184 fi
5185
5186 rm -f conftest.err conftest.$ac_ext
5187
5188 done
5189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5190 rm -f conftest.err conftest.$ac_ext
5191 if $ac_preproc_ok; then
5192   break
5193 fi
5194
5195     done
5196     ac_cv_prog_CPP=$CPP
5197
5198 fi
5199   CPP=$ac_cv_prog_CPP
5200 else
5201   ac_cv_prog_CPP=$CPP
5202 fi
5203 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5204 $as_echo "$CPP" >&6; }
5205 ac_preproc_ok=false
5206 for ac_c_preproc_warn_flag in '' yes
5207 do
5208   # Use a header file that comes with gcc, so configuring glibc
5209   # with a fresh cross-compiler works.
5210   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5211   # <limits.h> exists even on freestanding compilers.
5212   # On the NeXT, cc -E runs the code through the compiler's parser,
5213   # not just through cpp. "Syntax error" is here to catch this case.
5214   cat >conftest.$ac_ext <<_ACEOF
5215 /* confdefs.h.  */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h.  */
5220 #ifdef __STDC__
5221 # include <limits.h>
5222 #else
5223 # include <assert.h>
5224 #endif
5225                      Syntax error
5226 _ACEOF
5227 if { (ac_try="$ac_cpp conftest.$ac_ext"
5228 case "(($ac_try" in
5229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5230   *) ac_try_echo=$ac_try;;
5231 esac
5232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5233 $as_echo "$ac_try_echo") >&5
5234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5235   ac_status=$?
5236   grep -v '^ *+' conftest.er1 >conftest.err
5237   rm -f conftest.er1
5238   cat conftest.err >&5
5239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240   (exit $ac_status); } >/dev/null && {
5241          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5242          test ! -s conftest.err
5243        }; then
5244   :
5245 else
5246   $as_echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5248
5249   # Broken: fails on valid input.
5250 continue
5251 fi
5252
5253 rm -f conftest.err conftest.$ac_ext
5254
5255   # OK, works on sane cases.  Now check whether nonexistent headers
5256   # can be detected and how.
5257   cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h.  */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h.  */
5263 #include <ac_nonexistent.h>
5264 _ACEOF
5265 if { (ac_try="$ac_cpp conftest.$ac_ext"
5266 case "(($ac_try" in
5267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268   *) ac_try_echo=$ac_try;;
5269 esac
5270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5271 $as_echo "$ac_try_echo") >&5
5272   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5273   ac_status=$?
5274   grep -v '^ *+' conftest.er1 >conftest.err
5275   rm -f conftest.er1
5276   cat conftest.err >&5
5277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278   (exit $ac_status); } >/dev/null && {
5279          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5280          test ! -s conftest.err
5281        }; then
5282   # Broken: success on invalid input.
5283 continue
5284 else
5285   $as_echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5287
5288   # Passes both tests.
5289 ac_preproc_ok=:
5290 break
5291 fi
5292
5293 rm -f conftest.err conftest.$ac_ext
5294
5295 done
5296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5297 rm -f conftest.err conftest.$ac_ext
5298 if $ac_preproc_ok; then
5299   :
5300 else
5301   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5303 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5304 See \`config.log' for more details." >&5
5305 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5306 See \`config.log' for more details." >&2;}
5307    { (exit 1); exit 1; }; }; }
5308 fi
5309
5310 ac_ext=c
5311 ac_cpp='$CPP $CPPFLAGS'
5312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5315
5316
5317 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5318 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5319 if test "${ac_cv_path_GREP+set}" = set; then
5320   $as_echo_n "(cached) " >&6
5321 else
5322   if test -z "$GREP"; then
5323   ac_path_GREP_found=false
5324   # Loop through the user's path and test for each of PROGNAME-LIST
5325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5327 do
5328   IFS=$as_save_IFS
5329   test -z "$as_dir" && as_dir=.
5330   for ac_prog in grep ggrep; do
5331     for ac_exec_ext in '' $ac_executable_extensions; do
5332       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5333       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5334 # Check for GNU ac_path_GREP and select it if it is found.
5335   # Check for GNU $ac_path_GREP
5336 case `"$ac_path_GREP" --version 2>&1` in
5337 *GNU*)
5338   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5339 *)
5340   ac_count=0
5341   $as_echo_n 0123456789 >"conftest.in"
5342   while :
5343   do
5344     cat "conftest.in" "conftest.in" >"conftest.tmp"
5345     mv "conftest.tmp" "conftest.in"
5346     cp "conftest.in" "conftest.nl"
5347     $as_echo 'GREP' >> "conftest.nl"
5348     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5349     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5350     ac_count=`expr $ac_count + 1`
5351     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5352       # Best one so far, save it but keep looking for a better one
5353       ac_cv_path_GREP="$ac_path_GREP"
5354       ac_path_GREP_max=$ac_count
5355     fi
5356     # 10*(2^10) chars as input seems more than enough
5357     test $ac_count -gt 10 && break
5358   done
5359   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5360 esac
5361
5362       $ac_path_GREP_found && break 3
5363     done
5364   done
5365 done
5366 IFS=$as_save_IFS
5367   if test -z "$ac_cv_path_GREP"; then
5368     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5369 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5370    { (exit 1); exit 1; }; }
5371   fi
5372 else
5373   ac_cv_path_GREP=$GREP
5374 fi
5375
5376 fi
5377 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5378 $as_echo "$ac_cv_path_GREP" >&6; }
5379  GREP="$ac_cv_path_GREP"
5380
5381
5382 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5383 $as_echo_n "checking for egrep... " >&6; }
5384 if test "${ac_cv_path_EGREP+set}" = set; then
5385   $as_echo_n "(cached) " >&6
5386 else
5387   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5388    then ac_cv_path_EGREP="$GREP -E"
5389    else
5390      if test -z "$EGREP"; then
5391   ac_path_EGREP_found=false
5392   # Loop through the user's path and test for each of PROGNAME-LIST
5393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5395 do
5396   IFS=$as_save_IFS
5397   test -z "$as_dir" && as_dir=.
5398   for ac_prog in egrep; do
5399     for ac_exec_ext in '' $ac_executable_extensions; do
5400       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5401       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5402 # Check for GNU ac_path_EGREP and select it if it is found.
5403   # Check for GNU $ac_path_EGREP
5404 case `"$ac_path_EGREP" --version 2>&1` in
5405 *GNU*)
5406   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5407 *)
5408   ac_count=0
5409   $as_echo_n 0123456789 >"conftest.in"
5410   while :
5411   do
5412     cat "conftest.in" "conftest.in" >"conftest.tmp"
5413     mv "conftest.tmp" "conftest.in"
5414     cp "conftest.in" "conftest.nl"
5415     $as_echo 'EGREP' >> "conftest.nl"
5416     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5417     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5418     ac_count=`expr $ac_count + 1`
5419     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5420       # Best one so far, save it but keep looking for a better one
5421       ac_cv_path_EGREP="$ac_path_EGREP"
5422       ac_path_EGREP_max=$ac_count
5423     fi
5424     # 10*(2^10) chars as input seems more than enough
5425     test $ac_count -gt 10 && break
5426   done
5427   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5428 esac
5429
5430       $ac_path_EGREP_found && break 3
5431     done
5432   done
5433 done
5434 IFS=$as_save_IFS
5435   if test -z "$ac_cv_path_EGREP"; then
5436     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5437 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5438    { (exit 1); exit 1; }; }
5439   fi
5440 else
5441   ac_cv_path_EGREP=$EGREP
5442 fi
5443
5444    fi
5445 fi
5446 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5447 $as_echo "$ac_cv_path_EGREP" >&6; }
5448  EGREP="$ac_cv_path_EGREP"
5449
5450
5451 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5452 $as_echo_n "checking for ANSI C header files... " >&6; }
5453 if test "${ac_cv_header_stdc+set}" = set; then
5454   $as_echo_n "(cached) " >&6
5455 else
5456   cat >conftest.$ac_ext <<_ACEOF
5457 /* confdefs.h.  */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h.  */
5462 #include <stdlib.h>
5463 #include <stdarg.h>
5464 #include <string.h>
5465 #include <float.h>
5466
5467 int
5468 main ()
5469 {
5470
5471   ;
5472   return 0;
5473 }
5474 _ACEOF
5475 rm -f conftest.$ac_objext
5476 if { (ac_try="$ac_compile"
5477 case "(($ac_try" in
5478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479   *) ac_try_echo=$ac_try;;
5480 esac
5481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5482 $as_echo "$ac_try_echo") >&5
5483   (eval "$ac_compile") 2>conftest.er1
5484   ac_status=$?
5485   grep -v '^ *+' conftest.er1 >conftest.err
5486   rm -f conftest.er1
5487   cat conftest.err >&5
5488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); } && {
5490          test -z "$ac_c_werror_flag" ||
5491          test ! -s conftest.err
5492        } && test -s conftest.$ac_objext; then
5493   ac_cv_header_stdc=yes
5494 else
5495   $as_echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5497
5498         ac_cv_header_stdc=no
5499 fi
5500
5501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502
5503 if test $ac_cv_header_stdc = yes; then
5504   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5505   cat >conftest.$ac_ext <<_ACEOF
5506 /* confdefs.h.  */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h.  */
5511 #include <string.h>
5512
5513 _ACEOF
5514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5515   $EGREP "memchr" >/dev/null 2>&1; then
5516   :
5517 else
5518   ac_cv_header_stdc=no
5519 fi
5520 rm -f conftest*
5521
5522 fi
5523
5524 if test $ac_cv_header_stdc = yes; then
5525   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5526   cat >conftest.$ac_ext <<_ACEOF
5527 /* confdefs.h.  */
5528 _ACEOF
5529 cat confdefs.h >>conftest.$ac_ext
5530 cat >>conftest.$ac_ext <<_ACEOF
5531 /* end confdefs.h.  */
5532 #include <stdlib.h>
5533
5534 _ACEOF
5535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5536   $EGREP "free" >/dev/null 2>&1; then
5537   :
5538 else
5539   ac_cv_header_stdc=no
5540 fi
5541 rm -f conftest*
5542
5543 fi
5544
5545 if test $ac_cv_header_stdc = yes; then
5546   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5547   if test "$cross_compiling" = yes; then
5548   :
5549 else
5550   cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h.  */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h.  */
5556 #include <ctype.h>
5557 #include <stdlib.h>
5558 #if ((' ' & 0x0FF) == 0x020)
5559 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5560 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5561 #else
5562 # define ISLOWER(c) \
5563                    (('a' <= (c) && (c) <= 'i') \
5564                      || ('j' <= (c) && (c) <= 'r') \
5565                      || ('s' <= (c) && (c) <= 'z'))
5566 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5567 #endif
5568
5569 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5570 int
5571 main ()
5572 {
5573   int i;
5574   for (i = 0; i < 256; i++)
5575     if (XOR (islower (i), ISLOWER (i))
5576         || toupper (i) != TOUPPER (i))
5577       return 2;
5578   return 0;
5579 }
5580 _ACEOF
5581 rm -f conftest$ac_exeext
5582 if { (ac_try="$ac_link"
5583 case "(($ac_try" in
5584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585   *) ac_try_echo=$ac_try;;
5586 esac
5587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5588 $as_echo "$ac_try_echo") >&5
5589   (eval "$ac_link") 2>&5
5590   ac_status=$?
5591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5593   { (case "(($ac_try" in
5594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595   *) ac_try_echo=$ac_try;;
5596 esac
5597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5598 $as_echo "$ac_try_echo") >&5
5599   (eval "$ac_try") 2>&5
5600   ac_status=$?
5601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); }; }; then
5603   :
5604 else
5605   $as_echo "$as_me: program exited with status $ac_status" >&5
5606 $as_echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5608
5609 ( exit $ac_status )
5610 ac_cv_header_stdc=no
5611 fi
5612 rm -rf conftest.dSYM
5613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5614 fi
5615
5616
5617 fi
5618 fi
5619 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5620 $as_echo "$ac_cv_header_stdc" >&6; }
5621 if test $ac_cv_header_stdc = yes; then
5622
5623 cat >>confdefs.h <<\_ACEOF
5624 #define STDC_HEADERS 1
5625 _ACEOF
5626
5627 fi
5628
5629 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5640                   inttypes.h stdint.h unistd.h
5641 do
5642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5643 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5644 $as_echo_n "checking for $ac_header... " >&6; }
5645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5646   $as_echo_n "(cached) " >&6
5647 else
5648   cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h.  */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h.  */
5654 $ac_includes_default
5655
5656 #include <$ac_header>
5657 _ACEOF
5658 rm -f conftest.$ac_objext
5659 if { (ac_try="$ac_compile"
5660 case "(($ac_try" in
5661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662   *) ac_try_echo=$ac_try;;
5663 esac
5664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5665 $as_echo "$ac_try_echo") >&5
5666   (eval "$ac_compile") 2>conftest.er1
5667   ac_status=$?
5668   grep -v '^ *+' conftest.er1 >conftest.err
5669   rm -f conftest.er1
5670   cat conftest.err >&5
5671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); } && {
5673          test -z "$ac_c_werror_flag" ||
5674          test ! -s conftest.err
5675        } && test -s conftest.$ac_objext; then
5676   eval "$as_ac_Header=yes"
5677 else
5678   $as_echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5680
5681         eval "$as_ac_Header=no"
5682 fi
5683
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685 fi
5686 ac_res=`eval 'as_val=${'$as_ac_Header'}
5687                  $as_echo "$as_val"'`
5688                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5689 $as_echo "$ac_res" >&6; }
5690 as_val=`eval 'as_val=${'$as_ac_Header'}
5691                  $as_echo "$as_val"'`
5692    if test "x$as_val" = x""yes; then
5693   cat >>confdefs.h <<_ACEOF
5694 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5695 _ACEOF
5696
5697 fi
5698
5699 done
5700
5701
5702
5703
5704
5705   if test "${ac_cv_header_minix_config_h+set}" = set; then
5706   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5707 $as_echo_n "checking for minix/config.h... " >&6; }
5708 if test "${ac_cv_header_minix_config_h+set}" = set; then
5709   $as_echo_n "(cached) " >&6
5710 fi
5711 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5712 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5713 else
5714   # Is the header compilable?
5715 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5716 $as_echo_n "checking minix/config.h usability... " >&6; }
5717 cat >conftest.$ac_ext <<_ACEOF
5718 /* confdefs.h.  */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h.  */
5723 $ac_includes_default
5724 #include <minix/config.h>
5725 _ACEOF
5726 rm -f conftest.$ac_objext
5727 if { (ac_try="$ac_compile"
5728 case "(($ac_try" in
5729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730   *) ac_try_echo=$ac_try;;
5731 esac
5732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5733 $as_echo "$ac_try_echo") >&5
5734   (eval "$ac_compile") 2>conftest.er1
5735   ac_status=$?
5736   grep -v '^ *+' conftest.er1 >conftest.err
5737   rm -f conftest.er1
5738   cat conftest.err >&5
5739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740   (exit $ac_status); } && {
5741          test -z "$ac_c_werror_flag" ||
5742          test ! -s conftest.err
5743        } && test -s conftest.$ac_objext; then
5744   ac_header_compiler=yes
5745 else
5746   $as_echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5748
5749         ac_header_compiler=no
5750 fi
5751
5752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5754 $as_echo "$ac_header_compiler" >&6; }
5755
5756 # Is the header present?
5757 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5758 $as_echo_n "checking minix/config.h presence... " >&6; }
5759 cat >conftest.$ac_ext <<_ACEOF
5760 /* confdefs.h.  */
5761 _ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h.  */
5765 #include <minix/config.h>
5766 _ACEOF
5767 if { (ac_try="$ac_cpp conftest.$ac_ext"
5768 case "(($ac_try" in
5769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770   *) ac_try_echo=$ac_try;;
5771 esac
5772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5773 $as_echo "$ac_try_echo") >&5
5774   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5775   ac_status=$?
5776   grep -v '^ *+' conftest.er1 >conftest.err
5777   rm -f conftest.er1
5778   cat conftest.err >&5
5779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); } >/dev/null && {
5781          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5782          test ! -s conftest.err
5783        }; then
5784   ac_header_preproc=yes
5785 else
5786   $as_echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5788
5789   ac_header_preproc=no
5790 fi
5791
5792 rm -f conftest.err conftest.$ac_ext
5793 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5794 $as_echo "$ac_header_preproc" >&6; }
5795
5796 # So?  What about this header?
5797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5798   yes:no: )
5799     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5800 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5801     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5802 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5803     ac_header_preproc=yes
5804     ;;
5805   no:yes:* )
5806     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5807 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5808     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
5809 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
5810     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5811 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5812     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
5813 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5814     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5815 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5816     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5817 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5818
5819     ;;
5820 esac
5821 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5822 $as_echo_n "checking for minix/config.h... " >&6; }
5823 if test "${ac_cv_header_minix_config_h+set}" = set; then
5824   $as_echo_n "(cached) " >&6
5825 else
5826   ac_cv_header_minix_config_h=$ac_header_preproc
5827 fi
5828 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5829 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5830
5831 fi
5832 if test "x$ac_cv_header_minix_config_h" = x""yes; then
5833   MINIX=yes
5834 else
5835   MINIX=
5836 fi
5837
5838
5839   if test "$MINIX" = yes; then
5840
5841 cat >>confdefs.h <<\_ACEOF
5842 #define _POSIX_SOURCE 1
5843 _ACEOF
5844
5845
5846 cat >>confdefs.h <<\_ACEOF
5847 #define _POSIX_1_SOURCE 2
5848 _ACEOF
5849
5850
5851 cat >>confdefs.h <<\_ACEOF
5852 #define _MINIX 1
5853 _ACEOF
5854
5855   fi
5856
5857         case "$host_os" in
5858     hpux*)
5859
5860 cat >>confdefs.h <<\_ACEOF
5861 #define _XOPEN_SOURCE 500
5862 _ACEOF
5863
5864       ;;
5865   esac
5866
5867
5868
5869   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5870 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5871 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5872   $as_echo_n "(cached) " >&6
5873 else
5874   cat >conftest.$ac_ext <<_ACEOF
5875 /* confdefs.h.  */
5876 _ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h.  */
5880
5881 #         define __EXTENSIONS__ 1
5882           $ac_includes_default
5883 int
5884 main ()
5885 {
5886
5887   ;
5888   return 0;
5889 }
5890 _ACEOF
5891 rm -f conftest.$ac_objext
5892 if { (ac_try="$ac_compile"
5893 case "(($ac_try" in
5894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895   *) ac_try_echo=$ac_try;;
5896 esac
5897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5898 $as_echo "$ac_try_echo") >&5
5899   (eval "$ac_compile") 2>conftest.er1
5900   ac_status=$?
5901   grep -v '^ *+' conftest.er1 >conftest.err
5902   rm -f conftest.er1
5903   cat conftest.err >&5
5904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905   (exit $ac_status); } && {
5906          test -z "$ac_c_werror_flag" ||
5907          test ! -s conftest.err
5908        } && test -s conftest.$ac_objext; then
5909   ac_cv_safe_to_define___extensions__=yes
5910 else
5911   $as_echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5913
5914         ac_cv_safe_to_define___extensions__=no
5915 fi
5916
5917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918 fi
5919 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5920 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5921   test $ac_cv_safe_to_define___extensions__ = yes &&
5922     cat >>confdefs.h <<\_ACEOF
5923 #define __EXTENSIONS__ 1
5924 _ACEOF
5925
5926   cat >>confdefs.h <<\_ACEOF
5927 #define _ALL_SOURCE 1
5928 _ACEOF
5929
5930   cat >>confdefs.h <<\_ACEOF
5931 #define _GNU_SOURCE 1
5932 _ACEOF
5933
5934   cat >>confdefs.h <<\_ACEOF
5935 #define _POSIX_PTHREAD_SEMANTICS 1
5936 _ACEOF
5937
5938   cat >>confdefs.h <<\_ACEOF
5939 #define _TANDEM_SOURCE 1
5940 _ACEOF
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5951 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5952 if test "${ac_cv_sys_largefile_source+set}" = set; then
5953   $as_echo_n "(cached) " >&6
5954 else
5955   while :; do
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 #include <sys/types.h> /* for off_t */
5963      #include <stdio.h>
5964 int
5965 main ()
5966 {
5967 int (*fp) (FILE *, off_t, int) = fseeko;
5968      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5969   ;
5970   return 0;
5971 }
5972 _ACEOF
5973 rm -f conftest.$ac_objext conftest$ac_exeext
5974 if { (ac_try="$ac_link"
5975 case "(($ac_try" in
5976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977   *) ac_try_echo=$ac_try;;
5978 esac
5979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5980 $as_echo "$ac_try_echo") >&5
5981   (eval "$ac_link") 2>conftest.er1
5982   ac_status=$?
5983   grep -v '^ *+' conftest.er1 >conftest.err
5984   rm -f conftest.er1
5985   cat conftest.err >&5
5986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); } && {
5988          test -z "$ac_c_werror_flag" ||
5989          test ! -s conftest.err
5990        } && test -s conftest$ac_exeext && {
5991          test "$cross_compiling" = yes ||
5992          $as_test_x conftest$ac_exeext
5993        }; then
5994   ac_cv_sys_largefile_source=no; break
5995 else
5996   $as_echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5998
5999
6000 fi
6001
6002 rm -rf conftest.dSYM
6003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6004       conftest$ac_exeext conftest.$ac_ext
6005   cat >conftest.$ac_ext <<_ACEOF
6006 /* confdefs.h.  */
6007 _ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h.  */
6011 #define _LARGEFILE_SOURCE 1
6012 #include <sys/types.h> /* for off_t */
6013      #include <stdio.h>
6014 int
6015 main ()
6016 {
6017 int (*fp) (FILE *, off_t, int) = fseeko;
6018      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6019   ;
6020   return 0;
6021 }
6022 _ACEOF
6023 rm -f conftest.$ac_objext conftest$ac_exeext
6024 if { (ac_try="$ac_link"
6025 case "(($ac_try" in
6026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027   *) ac_try_echo=$ac_try;;
6028 esac
6029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6030 $as_echo "$ac_try_echo") >&5
6031   (eval "$ac_link") 2>conftest.er1
6032   ac_status=$?
6033   grep -v '^ *+' conftest.er1 >conftest.err
6034   rm -f conftest.er1
6035   cat conftest.err >&5
6036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); } && {
6038          test -z "$ac_c_werror_flag" ||
6039          test ! -s conftest.err
6040        } && test -s conftest$ac_exeext && {
6041          test "$cross_compiling" = yes ||
6042          $as_test_x conftest$ac_exeext
6043        }; then
6044   ac_cv_sys_largefile_source=1; break
6045 else
6046   $as_echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6048
6049
6050 fi
6051
6052 rm -rf conftest.dSYM
6053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6054       conftest$ac_exeext conftest.$ac_ext
6055   ac_cv_sys_largefile_source=unknown
6056   break
6057 done
6058 fi
6059 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
6060 $as_echo "$ac_cv_sys_largefile_source" >&6; }
6061 case $ac_cv_sys_largefile_source in #(
6062   no | unknown) ;;
6063   *)
6064 cat >>confdefs.h <<_ACEOF
6065 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6066 _ACEOF
6067 ;;
6068 esac
6069 rm -rf conftest*
6070
6071 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6072 # in glibc 2.1.3, but that breaks too many other things.
6073 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6074 if test $ac_cv_sys_largefile_source != unknown; then
6075
6076 cat >>confdefs.h <<\_ACEOF
6077 #define HAVE_FSEEKO 1
6078 _ACEOF
6079
6080 fi
6081
6082
6083
6084
6085
6086
6087   # Check whether --enable-threads was given.
6088 if test "${enable_threads+set}" = set; then
6089   enableval=$enable_threads; gl_use_threads=$enableval
6090 else
6091   if test -n "$gl_use_threads_default"; then
6092        gl_use_threads="$gl_use_threads_default"
6093      else
6094        case "$host_os" in
6095                                     osf*) gl_use_threads=no ;;
6096          *)    gl_use_threads=yes ;;
6097        esac
6098      fi
6099
6100 fi
6101
6102   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6103     # For using <pthread.h>:
6104     case "$host_os" in
6105       osf*)
6106         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6107         # groks <pthread.h>. cc also understands the flag -pthread, but
6108         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6109         # 2. putting a flag into CPPFLAGS that has an effect on the linker
6110         # causes the AC_TRY_LINK test below to succeed unexpectedly,
6111         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6112         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6113         ;;
6114     esac
6115     # Some systems optimize for single-threaded programs by default, and
6116     # need special flags to disable these optimizations. For example, the
6117     # definition of 'errno' in <errno.h>.
6118     case "$host_os" in
6119       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6120       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6121     esac
6122   fi
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6142 # for constant arguments.  Useless!
6143 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6144 $as_echo_n "checking for working alloca.h... " >&6; }
6145 if test "${ac_cv_working_alloca_h+set}" = set; then
6146   $as_echo_n "(cached) " >&6
6147 else
6148   cat >conftest.$ac_ext <<_ACEOF
6149 /* confdefs.h.  */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h.  */
6154 #include <alloca.h>
6155 int
6156 main ()
6157 {
6158 char *p = (char *) alloca (2 * sizeof (int));
6159                           if (p) return 0;
6160   ;
6161   return 0;
6162 }
6163 _ACEOF
6164 rm -f conftest.$ac_objext conftest$ac_exeext
6165 if { (ac_try="$ac_link"
6166 case "(($ac_try" in
6167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168   *) ac_try_echo=$ac_try;;
6169 esac
6170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6171 $as_echo "$ac_try_echo") >&5
6172   (eval "$ac_link") 2>conftest.er1
6173   ac_status=$?
6174   grep -v '^ *+' conftest.er1 >conftest.err
6175   rm -f conftest.er1
6176   cat conftest.err >&5
6177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178   (exit $ac_status); } && {
6179          test -z "$ac_c_werror_flag" ||
6180          test ! -s conftest.err
6181        } && test -s conftest$ac_exeext && {
6182          test "$cross_compiling" = yes ||
6183          $as_test_x conftest$ac_exeext
6184        }; then
6185   ac_cv_working_alloca_h=yes
6186 else
6187   $as_echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6189
6190         ac_cv_working_alloca_h=no
6191 fi
6192
6193 rm -rf conftest.dSYM
6194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6195       conftest$ac_exeext conftest.$ac_ext
6196 fi
6197 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6198 $as_echo "$ac_cv_working_alloca_h" >&6; }
6199 if test $ac_cv_working_alloca_h = yes; then
6200
6201 cat >>confdefs.h <<\_ACEOF
6202 #define HAVE_ALLOCA_H 1
6203 _ACEOF
6204
6205 fi
6206
6207 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6208 $as_echo_n "checking for alloca... " >&6; }
6209 if test "${ac_cv_func_alloca_works+set}" = set; then
6210   $as_echo_n "(cached) " >&6
6211 else
6212   cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h.  */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h.  */
6218 #ifdef __GNUC__
6219 # define alloca __builtin_alloca
6220 #else
6221 # ifdef _MSC_VER
6222 #  include <malloc.h>
6223 #  define alloca _alloca
6224 # else
6225 #  ifdef HAVE_ALLOCA_H
6226 #   include <alloca.h>
6227 #  else
6228 #   ifdef _AIX
6229  #pragma alloca
6230 #   else
6231 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6232 char *alloca ();
6233 #    endif
6234 #   endif
6235 #  endif
6236 # endif
6237 #endif
6238
6239 int
6240 main ()
6241 {
6242 char *p = (char *) alloca (1);
6243                                     if (p) return 0;
6244   ;
6245   return 0;
6246 }
6247 _ACEOF
6248 rm -f conftest.$ac_objext conftest$ac_exeext
6249 if { (ac_try="$ac_link"
6250 case "(($ac_try" in
6251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252   *) ac_try_echo=$ac_try;;
6253 esac
6254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6255 $as_echo "$ac_try_echo") >&5
6256   (eval "$ac_link") 2>conftest.er1
6257   ac_status=$?
6258   grep -v '^ *+' conftest.er1 >conftest.err
6259   rm -f conftest.er1
6260   cat conftest.err >&5
6261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262   (exit $ac_status); } && {
6263          test -z "$ac_c_werror_flag" ||
6264          test ! -s conftest.err
6265        } && test -s conftest$ac_exeext && {
6266          test "$cross_compiling" = yes ||
6267          $as_test_x conftest$ac_exeext
6268        }; then
6269   ac_cv_func_alloca_works=yes
6270 else
6271   $as_echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6273
6274         ac_cv_func_alloca_works=no
6275 fi
6276
6277 rm -rf conftest.dSYM
6278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6279       conftest$ac_exeext conftest.$ac_ext
6280 fi
6281 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6282 $as_echo "$ac_cv_func_alloca_works" >&6; }
6283
6284 if test $ac_cv_func_alloca_works = yes; then
6285
6286 cat >>confdefs.h <<\_ACEOF
6287 #define HAVE_ALLOCA 1
6288 _ACEOF
6289
6290 else
6291   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6292 # that cause trouble.  Some versions do not even contain alloca or
6293 # contain a buggy version.  If you still want to use their alloca,
6294 # use ar to extract alloca.o from them instead of compiling alloca.c.
6295
6296
6297
6298
6299
6300 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6301
6302 cat >>confdefs.h <<\_ACEOF
6303 #define C_ALLOCA 1
6304 _ACEOF
6305
6306
6307 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6308 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6309 if test "${ac_cv_os_cray+set}" = set; then
6310   $as_echo_n "(cached) " >&6
6311 else
6312   cat >conftest.$ac_ext <<_ACEOF
6313 /* confdefs.h.  */
6314 _ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h.  */
6318 #if defined CRAY && ! defined CRAY2
6319 webecray
6320 #else
6321 wenotbecray
6322 #endif
6323
6324 _ACEOF
6325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6326   $EGREP "webecray" >/dev/null 2>&1; then
6327   ac_cv_os_cray=yes
6328 else
6329   ac_cv_os_cray=no
6330 fi
6331 rm -f conftest*
6332
6333 fi
6334 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6335 $as_echo "$ac_cv_os_cray" >&6; }
6336 if test $ac_cv_os_cray = yes; then
6337   for ac_func in _getb67 GETB67 getb67; do
6338     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6339 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6340 $as_echo_n "checking for $ac_func... " >&6; }
6341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6342   $as_echo_n "(cached) " >&6
6343 else
6344   cat >conftest.$ac_ext <<_ACEOF
6345 /* confdefs.h.  */
6346 _ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h.  */
6350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6352 #define $ac_func innocuous_$ac_func
6353
6354 /* System header to define __stub macros and hopefully few prototypes,
6355     which can conflict with char $ac_func (); below.
6356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6357     <limits.h> exists even on freestanding compilers.  */
6358
6359 #ifdef __STDC__
6360 # include <limits.h>
6361 #else
6362 # include <assert.h>
6363 #endif
6364
6365 #undef $ac_func
6366
6367 /* Override any GCC internal prototype to avoid an error.
6368    Use char because int might match the return type of a GCC
6369    builtin and then its argument prototype would still apply.  */
6370 #ifdef __cplusplus
6371 extern "C"
6372 #endif
6373 char $ac_func ();
6374 /* The GNU C library defines this for functions which it implements
6375     to always fail with ENOSYS.  Some functions are actually named
6376     something starting with __ and the normal name is an alias.  */
6377 #if defined __stub_$ac_func || defined __stub___$ac_func
6378 choke me
6379 #endif
6380
6381 int
6382 main ()
6383 {
6384 return $ac_func ();
6385   ;
6386   return 0;
6387 }
6388 _ACEOF
6389 rm -f conftest.$ac_objext conftest$ac_exeext
6390 if { (ac_try="$ac_link"
6391 case "(($ac_try" in
6392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393   *) ac_try_echo=$ac_try;;
6394 esac
6395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6396 $as_echo "$ac_try_echo") >&5
6397   (eval "$ac_link") 2>conftest.er1
6398   ac_status=$?
6399   grep -v '^ *+' conftest.er1 >conftest.err
6400   rm -f conftest.er1
6401   cat conftest.err >&5
6402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); } && {
6404          test -z "$ac_c_werror_flag" ||
6405          test ! -s conftest.err
6406        } && test -s conftest$ac_exeext && {
6407          test "$cross_compiling" = yes ||
6408          $as_test_x conftest$ac_exeext
6409        }; then
6410   eval "$as_ac_var=yes"
6411 else
6412   $as_echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6414
6415         eval "$as_ac_var=no"
6416 fi
6417
6418 rm -rf conftest.dSYM
6419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6420       conftest$ac_exeext conftest.$ac_ext
6421 fi
6422 ac_res=`eval 'as_val=${'$as_ac_var'}
6423                  $as_echo "$as_val"'`
6424                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6425 $as_echo "$ac_res" >&6; }
6426 as_val=`eval 'as_val=${'$as_ac_var'}
6427                  $as_echo "$as_val"'`
6428    if test "x$as_val" = x""yes; then
6429
6430 cat >>confdefs.h <<_ACEOF
6431 #define CRAY_STACKSEG_END $ac_func
6432 _ACEOF
6433
6434     break
6435 fi
6436
6437   done
6438 fi
6439
6440 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6441 $as_echo_n "checking stack direction for C alloca... " >&6; }
6442 if test "${ac_cv_c_stack_direction+set}" = set; then
6443   $as_echo_n "(cached) " >&6
6444 else
6445   if test "$cross_compiling" = yes; then
6446   ac_cv_c_stack_direction=0
6447 else
6448   cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h.  */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h.  */
6454 $ac_includes_default
6455 int
6456 find_stack_direction ()
6457 {
6458   static char *addr = 0;
6459   auto char dummy;
6460   if (addr == 0)
6461     {
6462       addr = &dummy;
6463       return find_stack_direction ();
6464     }
6465   else
6466     return (&dummy > addr) ? 1 : -1;
6467 }
6468
6469 int
6470 main ()
6471 {
6472   return find_stack_direction () < 0;
6473 }
6474 _ACEOF
6475 rm -f conftest$ac_exeext
6476 if { (ac_try="$ac_link"
6477 case "(($ac_try" in
6478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479   *) ac_try_echo=$ac_try;;
6480 esac
6481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6482 $as_echo "$ac_try_echo") >&5
6483   (eval "$ac_link") 2>&5
6484   ac_status=$?
6485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6487   { (case "(($ac_try" in
6488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489   *) ac_try_echo=$ac_try;;
6490 esac
6491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6492 $as_echo "$ac_try_echo") >&5
6493   (eval "$ac_try") 2>&5
6494   ac_status=$?
6495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); }; }; then
6497   ac_cv_c_stack_direction=1
6498 else
6499   $as_echo "$as_me: program exited with status $ac_status" >&5
6500 $as_echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.$ac_ext >&5
6502
6503 ( exit $ac_status )
6504 ac_cv_c_stack_direction=-1
6505 fi
6506 rm -rf conftest.dSYM
6507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6508 fi
6509
6510
6511 fi
6512 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6513 $as_echo "$ac_cv_c_stack_direction" >&6; }
6514
6515 cat >>confdefs.h <<_ACEOF
6516 #define STACK_DIRECTION $ac_cv_c_stack_direction
6517 _ACEOF
6518
6519
6520 fi
6521
6522
6523   GNULIB_INET_NTOP=0;
6524   GNULIB_INET_PTON=0;
6525     HAVE_DECL_INET_NTOP=1;
6526   HAVE_DECL_INET_PTON=1;
6527   ARPA_INET_H='';
6528
6529
6530
6531
6532
6533
6534 for ac_header in $gl_header_list
6535 do
6536 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6538   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6539 $as_echo_n "checking for $ac_header... " >&6; }
6540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6541   $as_echo_n "(cached) " >&6
6542 fi
6543 ac_res=`eval 'as_val=${'$as_ac_Header'}
6544                  $as_echo "$as_val"'`
6545                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6546 $as_echo "$ac_res" >&6; }
6547 else
6548   # Is the header compilable?
6549 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6550 $as_echo_n "checking $ac_header usability... " >&6; }
6551 cat >conftest.$ac_ext <<_ACEOF
6552 /* confdefs.h.  */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h.  */
6557 $ac_includes_default
6558 #include <$ac_header>
6559 _ACEOF
6560 rm -f conftest.$ac_objext
6561 if { (ac_try="$ac_compile"
6562 case "(($ac_try" in
6563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564   *) ac_try_echo=$ac_try;;
6565 esac
6566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6567 $as_echo "$ac_try_echo") >&5
6568   (eval "$ac_compile") 2>conftest.er1
6569   ac_status=$?
6570   grep -v '^ *+' conftest.er1 >conftest.err
6571   rm -f conftest.er1
6572   cat conftest.err >&5
6573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); } && {
6575          test -z "$ac_c_werror_flag" ||
6576          test ! -s conftest.err
6577        } && test -s conftest.$ac_objext; then
6578   ac_header_compiler=yes
6579 else
6580   $as_echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6582
6583         ac_header_compiler=no
6584 fi
6585
6586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6588 $as_echo "$ac_header_compiler" >&6; }
6589
6590 # Is the header present?
6591 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6592 $as_echo_n "checking $ac_header presence... " >&6; }
6593 cat >conftest.$ac_ext <<_ACEOF
6594 /* confdefs.h.  */
6595 _ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h.  */
6599 #include <$ac_header>
6600 _ACEOF
6601 if { (ac_try="$ac_cpp conftest.$ac_ext"
6602 case "(($ac_try" in
6603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604   *) ac_try_echo=$ac_try;;
6605 esac
6606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6607 $as_echo "$ac_try_echo") >&5
6608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6609   ac_status=$?
6610   grep -v '^ *+' conftest.er1 >conftest.err
6611   rm -f conftest.er1
6612   cat conftest.err >&5
6613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); } >/dev/null && {
6615          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6616          test ! -s conftest.err
6617        }; then
6618   ac_header_preproc=yes
6619 else
6620   $as_echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6622
6623   ac_header_preproc=no
6624 fi
6625
6626 rm -f conftest.err conftest.$ac_ext
6627 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6628 $as_echo "$ac_header_preproc" >&6; }
6629
6630 # So?  What about this header?
6631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6632   yes:no: )
6633     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6634 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6635     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6636 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6637     ac_header_preproc=yes
6638     ;;
6639   no:yes:* )
6640     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6641 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6642     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6643 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6644     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6645 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6646     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6647 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6648     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6649 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6650     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6651 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6652
6653     ;;
6654 esac
6655 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6656 $as_echo_n "checking for $ac_header... " >&6; }
6657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6658   $as_echo_n "(cached) " >&6
6659 else
6660   eval "$as_ac_Header=\$ac_header_preproc"
6661 fi
6662 ac_res=`eval 'as_val=${'$as_ac_Header'}
6663                  $as_echo "$as_val"'`
6664                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6665 $as_echo "$ac_res" >&6; }
6666
6667 fi
6668 as_val=`eval 'as_val=${'$as_ac_Header'}
6669                  $as_echo "$as_val"'`
6670    if test "x$as_val" = x""yes; then
6671   cat >>confdefs.h <<_ACEOF
6672 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6673 _ACEOF
6674
6675 fi
6676
6677 done
6678
6679
6680
6681
6682
6683
6684
6685
6686   { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
6687 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6688 if test "${gl_cv_have_include_next+set}" = set; then
6689   $as_echo_n "(cached) " >&6
6690 else
6691   rm -rf conftestd1a conftestd1b conftestd2
6692      mkdir conftestd1a conftestd1b conftestd2
6693                                                   cat <<EOF > conftestd1a/conftest.h
6694 #define DEFINED_IN_CONFTESTD1
6695 #include_next <conftest.h>
6696 #ifdef DEFINED_IN_CONFTESTD2
6697 int foo;
6698 #else
6699 #error "include_next doesn't work"
6700 #endif
6701 EOF
6702      cat <<EOF > conftestd1b/conftest.h
6703 #define DEFINED_IN_CONFTESTD1
6704 #include <stdio.h>
6705 #include_next <conftest.h>
6706 #ifdef DEFINED_IN_CONFTESTD2
6707 int foo;
6708 #else
6709 #error "include_next doesn't work"
6710 #endif
6711 EOF
6712      cat <<EOF > conftestd2/conftest.h
6713 #ifndef DEFINED_IN_CONFTESTD1
6714 #error "include_next test doesn't work"
6715 #endif
6716 #define DEFINED_IN_CONFTESTD2
6717 EOF
6718      gl_save_CPPFLAGS="$CPPFLAGS"
6719      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6720      cat >conftest.$ac_ext <<_ACEOF
6721 #include <conftest.h>
6722 _ACEOF
6723 rm -f conftest.$ac_objext
6724 if { (ac_try="$ac_compile"
6725 case "(($ac_try" in
6726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727   *) ac_try_echo=$ac_try;;
6728 esac
6729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6730 $as_echo "$ac_try_echo") >&5
6731   (eval "$ac_compile") 2>conftest.er1
6732   ac_status=$?
6733   grep -v '^ *+' conftest.er1 >conftest.err
6734   rm -f conftest.er1
6735   cat conftest.err >&5
6736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737   (exit $ac_status); } && {
6738          test -z "$ac_c_werror_flag" ||
6739          test ! -s conftest.err
6740        } && test -s conftest.$ac_objext; then
6741   gl_cv_have_include_next=yes
6742 else
6743   $as_echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6745
6746         CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6747         cat >conftest.$ac_ext <<_ACEOF
6748 #include <conftest.h>
6749 _ACEOF
6750 rm -f conftest.$ac_objext
6751 if { (ac_try="$ac_compile"
6752 case "(($ac_try" in
6753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6754   *) ac_try_echo=$ac_try;;
6755 esac
6756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6757 $as_echo "$ac_try_echo") >&5
6758   (eval "$ac_compile") 2>conftest.er1
6759   ac_status=$?
6760   grep -v '^ *+' conftest.er1 >conftest.err
6761   rm -f conftest.er1
6762   cat conftest.err >&5
6763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764   (exit $ac_status); } && {
6765          test -z "$ac_c_werror_flag" ||
6766          test ! -s conftest.err
6767        } && test -s conftest.$ac_objext; then
6768   gl_cv_have_include_next=buggy
6769 else
6770   $as_echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6772
6773         gl_cv_have_include_next=no
6774 fi
6775
6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777
6778 fi
6779
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781      CPPFLAGS="$gl_save_CPPFLAGS"
6782      rm -rf conftestd1a conftestd1b conftestd2
6783
6784 fi
6785 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
6786 $as_echo "$gl_cv_have_include_next" >&6; }
6787   PRAGMA_SYSTEM_HEADER=
6788   if test $gl_cv_have_include_next = yes; then
6789     INCLUDE_NEXT=include_next
6790     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6791     if test -n "$GCC"; then
6792       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6793     fi
6794   else
6795     if test $gl_cv_have_include_next = buggy; then
6796       INCLUDE_NEXT=include
6797       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6798     else
6799       INCLUDE_NEXT=include
6800       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6801     fi
6802   fi
6803
6804
6805
6806
6807 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6808 $as_echo_n "checking for inline... " >&6; }
6809 if test "${ac_cv_c_inline+set}" = set; then
6810   $as_echo_n "(cached) " >&6
6811 else
6812   ac_cv_c_inline=no
6813 for ac_kw in inline __inline__ __inline; do
6814   cat >conftest.$ac_ext <<_ACEOF
6815 /* confdefs.h.  */
6816 _ACEOF
6817 cat confdefs.h >>conftest.$ac_ext
6818 cat >>conftest.$ac_ext <<_ACEOF
6819 /* end confdefs.h.  */
6820 #ifndef __cplusplus
6821 typedef int foo_t;
6822 static $ac_kw foo_t static_foo () {return 0; }
6823 $ac_kw foo_t foo () {return 0; }
6824 #endif
6825
6826 _ACEOF
6827 rm -f conftest.$ac_objext
6828 if { (ac_try="$ac_compile"
6829 case "(($ac_try" in
6830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6831   *) ac_try_echo=$ac_try;;
6832 esac
6833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6834 $as_echo "$ac_try_echo") >&5
6835   (eval "$ac_compile") 2>conftest.er1
6836   ac_status=$?
6837   grep -v '^ *+' conftest.er1 >conftest.err
6838   rm -f conftest.er1
6839   cat conftest.err >&5
6840   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841   (exit $ac_status); } && {
6842          test -z "$ac_c_werror_flag" ||
6843          test ! -s conftest.err
6844        } && test -s conftest.$ac_objext; then
6845   ac_cv_c_inline=$ac_kw
6846 else
6847   $as_echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6849
6850
6851 fi
6852
6853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6854   test "$ac_cv_c_inline" != no && break
6855 done
6856
6857 fi
6858 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6859 $as_echo "$ac_cv_c_inline" >&6; }
6860
6861
6862 case $ac_cv_c_inline in
6863   inline | yes) ;;
6864   *)
6865     case $ac_cv_c_inline in
6866       no) ac_val=;;
6867       *) ac_val=$ac_cv_c_inline;;
6868     esac
6869     cat >>confdefs.h <<_ACEOF
6870 #ifndef __cplusplus
6871 #define inline $ac_val
6872 #endif
6873 _ACEOF
6874     ;;
6875 esac
6876
6877 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
6878 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6879 if test "${ac_cv_c_restrict+set}" = set; then
6880   $as_echo_n "(cached) " >&6
6881 else
6882   ac_cv_c_restrict=no
6883    # The order here caters to the fact that C++ does not require restrict.
6884    for ac_kw in __restrict __restrict__ _Restrict restrict; do
6885      cat >conftest.$ac_ext <<_ACEOF
6886 /* confdefs.h.  */
6887 _ACEOF
6888 cat confdefs.h >>conftest.$ac_ext
6889 cat >>conftest.$ac_ext <<_ACEOF
6890 /* end confdefs.h.  */
6891 typedef int * int_ptr;
6892         int foo (int_ptr $ac_kw ip) {
6893         return ip[0];
6894        }
6895 int
6896 main ()
6897 {
6898 int s[1];
6899         int * $ac_kw t = s;
6900         t[0] = 0;
6901         return foo(t)
6902   ;
6903   return 0;
6904 }
6905 _ACEOF
6906 rm -f conftest.$ac_objext
6907 if { (ac_try="$ac_compile"
6908 case "(($ac_try" in
6909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910   *) ac_try_echo=$ac_try;;
6911 esac
6912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6913 $as_echo "$ac_try_echo") >&5
6914   (eval "$ac_compile") 2>conftest.er1
6915   ac_status=$?
6916   grep -v '^ *+' conftest.er1 >conftest.err
6917   rm -f conftest.er1
6918   cat conftest.err >&5
6919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); } && {
6921          test -z "$ac_c_werror_flag" ||
6922          test ! -s conftest.err
6923        } && test -s conftest.$ac_objext; then
6924   ac_cv_c_restrict=$ac_kw
6925 else
6926   $as_echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6928
6929
6930 fi
6931
6932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933      test "$ac_cv_c_restrict" != no && break
6934    done
6935
6936 fi
6937 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
6938 $as_echo "$ac_cv_c_restrict" >&6; }
6939
6940
6941  case $ac_cv_c_restrict in
6942    restrict) ;;
6943    no) cat >>confdefs.h <<\_ACEOF
6944 #define restrict /**/
6945 _ACEOF
6946  ;;
6947    *)  cat >>confdefs.h <<_ACEOF
6948 #define restrict $ac_cv_c_restrict
6949 _ACEOF
6950  ;;
6951  esac
6952
6953
6954   GNULIB_BTOWC=0;
6955   GNULIB_WCTOB=0;
6956   GNULIB_MBSINIT=0;
6957   GNULIB_MBRTOWC=0;
6958   GNULIB_MBRLEN=0;
6959   GNULIB_MBSRTOWCS=0;
6960   GNULIB_MBSNRTOWCS=0;
6961   GNULIB_WCRTOMB=0;
6962   GNULIB_WCSRTOMBS=0;
6963   GNULIB_WCSNRTOMBS=0;
6964   GNULIB_WCWIDTH=0;
6965     HAVE_BTOWC=1;
6966   HAVE_MBSINIT=1;
6967   HAVE_MBRTOWC=1;
6968   HAVE_MBRLEN=1;
6969   HAVE_MBSRTOWCS=1;
6970   HAVE_MBSNRTOWCS=1;
6971   HAVE_WCRTOMB=1;
6972   HAVE_WCSRTOMBS=1;
6973   HAVE_WCSNRTOMBS=1;
6974   HAVE_DECL_WCTOB=1;
6975   HAVE_DECL_WCWIDTH=1;
6976   REPLACE_MBSTATE_T=0;
6977   REPLACE_BTOWC=0;
6978   REPLACE_WCTOB=0;
6979   REPLACE_MBSINIT=0;
6980   REPLACE_MBRTOWC=0;
6981   REPLACE_MBRLEN=0;
6982   REPLACE_MBSRTOWCS=0;
6983   REPLACE_MBSNRTOWCS=0;
6984   REPLACE_WCRTOMB=0;
6985   REPLACE_WCSRTOMBS=0;
6986   REPLACE_WCWIDTH=0;
6987   WCHAR_H='';
6988
6989
6990
6991
6992
6993
6994 for ac_func in $gl_func_list
6995 do
6996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6997 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6998 $as_echo_n "checking for $ac_func... " >&6; }
6999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7000   $as_echo_n "(cached) " >&6
7001 else
7002   cat >conftest.$ac_ext <<_ACEOF
7003 /* confdefs.h.  */
7004 _ACEOF
7005 cat confdefs.h >>conftest.$ac_ext
7006 cat >>conftest.$ac_ext <<_ACEOF
7007 /* end confdefs.h.  */
7008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7010 #define $ac_func innocuous_$ac_func
7011
7012 /* System header to define __stub macros and hopefully few prototypes,
7013     which can conflict with char $ac_func (); below.
7014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7015     <limits.h> exists even on freestanding compilers.  */
7016
7017 #ifdef __STDC__
7018 # include <limits.h>
7019 #else
7020 # include <assert.h>
7021 #endif
7022
7023 #undef $ac_func
7024
7025 /* Override any GCC internal prototype to avoid an error.
7026    Use char because int might match the return type of a GCC
7027    builtin and then its argument prototype would still apply.  */
7028 #ifdef __cplusplus
7029 extern "C"
7030 #endif
7031 char $ac_func ();
7032 /* The GNU C library defines this for functions which it implements
7033     to always fail with ENOSYS.  Some functions are actually named
7034     something starting with __ and the normal name is an alias.  */
7035 #if defined __stub_$ac_func || defined __stub___$ac_func
7036 choke me
7037 #endif
7038
7039 int
7040 main ()
7041 {
7042 return $ac_func ();
7043   ;
7044   return 0;
7045 }
7046 _ACEOF
7047 rm -f conftest.$ac_objext conftest$ac_exeext
7048 if { (ac_try="$ac_link"
7049 case "(($ac_try" in
7050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7051   *) ac_try_echo=$ac_try;;
7052 esac
7053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7054 $as_echo "$ac_try_echo") >&5
7055   (eval "$ac_link") 2>conftest.er1
7056   ac_status=$?
7057   grep -v '^ *+' conftest.er1 >conftest.err
7058   rm -f conftest.er1
7059   cat conftest.err >&5
7060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); } && {
7062          test -z "$ac_c_werror_flag" ||
7063          test ! -s conftest.err
7064        } && test -s conftest$ac_exeext && {
7065          test "$cross_compiling" = yes ||
7066          $as_test_x conftest$ac_exeext
7067        }; then
7068   eval "$as_ac_var=yes"
7069 else
7070   $as_echo "$as_me: failed program was:" >&5
7071 sed 's/^/| /' conftest.$ac_ext >&5
7072
7073         eval "$as_ac_var=no"
7074 fi
7075
7076 rm -rf conftest.dSYM
7077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7078       conftest$ac_exeext conftest.$ac_ext
7079 fi
7080 ac_res=`eval 'as_val=${'$as_ac_var'}
7081                  $as_echo "$as_val"'`
7082                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7083 $as_echo "$ac_res" >&6; }
7084 as_val=`eval 'as_val=${'$as_ac_var'}
7085                  $as_echo "$as_val"'`
7086    if test "x$as_val" = x""yes; then
7087   cat >>confdefs.h <<_ACEOF
7088 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7089 _ACEOF
7090
7091 fi
7092 done
7093
7094
7095
7096
7097
7098
7099
7100   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7101 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7102 if test "${am_cv_langinfo_codeset+set}" = set; then
7103   $as_echo_n "(cached) " >&6
7104 else
7105   cat >conftest.$ac_ext <<_ACEOF
7106 /* confdefs.h.  */
7107 _ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h.  */
7111 #include <langinfo.h>
7112 int
7113 main ()
7114 {
7115 char* cs = nl_langinfo(CODESET);
7116   ;
7117   return 0;
7118 }
7119 _ACEOF
7120 rm -f conftest.$ac_objext conftest$ac_exeext
7121 if { (ac_try="$ac_link"
7122 case "(($ac_try" in
7123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124   *) ac_try_echo=$ac_try;;
7125 esac
7126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7127 $as_echo "$ac_try_echo") >&5
7128   (eval "$ac_link") 2>conftest.er1
7129   ac_status=$?
7130   grep -v '^ *+' conftest.er1 >conftest.err
7131   rm -f conftest.er1
7132   cat conftest.err >&5
7133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134   (exit $ac_status); } && {
7135          test -z "$ac_c_werror_flag" ||
7136          test ! -s conftest.err
7137        } && test -s conftest$ac_exeext && {
7138          test "$cross_compiling" = yes ||
7139          $as_test_x conftest$ac_exeext
7140        }; then
7141   am_cv_langinfo_codeset=yes
7142 else
7143   $as_echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7145
7146         am_cv_langinfo_codeset=no
7147 fi
7148
7149 rm -rf conftest.dSYM
7150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7151       conftest$ac_exeext conftest.$ac_ext
7152
7153 fi
7154 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7155 $as_echo "$am_cv_langinfo_codeset" >&6; }
7156   if test $am_cv_langinfo_codeset = yes; then
7157
7158 cat >>confdefs.h <<\_ACEOF
7159 #define HAVE_LANGINFO_CODESET 1
7160 _ACEOF
7161
7162   fi
7163
7164
7165
7166
7167   { $as_echo "$as_me:$LINENO: checking for a traditional french locale" >&5
7168 $as_echo_n "checking for a traditional french locale... " >&6; }
7169 if test "${gt_cv_locale_fr+set}" = set; then
7170   $as_echo_n "(cached) " >&6
7171 else
7172
7173     cat >conftest.$ac_ext <<_ACEOF
7174 /* confdefs.h.  */
7175 _ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h.  */
7179
7180 #include <locale.h>
7181 #include <time.h>
7182 #if HAVE_LANGINFO_CODESET
7183 # include <langinfo.h>
7184 #endif
7185 #include <stdlib.h>
7186 #include <string.h>
7187 struct tm t;
7188 char buf[16];
7189 int main () {
7190   /* Check whether the given locale name is recognized by the system.  */
7191   if (setlocale (LC_ALL, "") == NULL) return 1;
7192   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7193      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7194      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7195      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7196      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7197      some unit tests fail.  */
7198 #if HAVE_LANGINFO_CODESET
7199   {
7200     const char *cs = nl_langinfo (CODESET);
7201     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
7202       return 1;
7203   }
7204 #endif
7205 #ifdef __CYGWIN__
7206   /* On Cygwin, avoid locale names without encoding suffix, because the
7207      locale_charset() function relies on the encoding suffix.  Note that
7208      LC_ALL is set on the command line.  */
7209   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7210 #endif
7211   /* Check whether in the abbreviation of the second month, the second
7212      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7213      one byte long. This excludes the UTF-8 encoding.  */
7214   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7215   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7216   /* Check whether the decimal separator is a comma.
7217      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7218      are nl_langinfo(RADIXCHAR) are both ".".  */
7219   if (localeconv () ->decimal_point[0] != ',') return 1;
7220   return 0;
7221 }
7222
7223 _ACEOF
7224     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7225   (eval $ac_link) 2>&5
7226   ac_status=$?
7227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); } && test -s conftest$ac_exeext; then
7229       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7230       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
7231       # configure script would override the LC_ALL setting. Likewise for
7232       # LC_CTYPE, which is also set at the beginning of the configure script.
7233       # Test for the usual locale name.
7234       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7235         gt_cv_locale_fr=fr_FR
7236       else
7237         # Test for the locale name with explicit encoding suffix.
7238         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7239           gt_cv_locale_fr=fr_FR.ISO-8859-1
7240         else
7241           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7242           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7243             gt_cv_locale_fr=fr_FR.ISO8859-1
7244           else
7245             # Test for the HP-UX locale name.
7246             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7247               gt_cv_locale_fr=fr_FR.iso88591
7248             else
7249               # Test for the Solaris 7 locale name.
7250               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7251                 gt_cv_locale_fr=fr
7252               else
7253                 # None found.
7254                 gt_cv_locale_fr=none
7255               fi
7256             fi
7257           fi
7258         fi
7259       fi
7260     fi
7261     rm -fr conftest*
7262
7263 fi
7264 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5
7265 $as_echo "$gt_cv_locale_fr" >&6; }
7266   LOCALE_FR=$gt_cv_locale_fr
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277   { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
7278 $as_echo_n "checking for complete errno.h... " >&6; }
7279 if test "${gl_cv_header_errno_h_complete+set}" = set; then
7280   $as_echo_n "(cached) " >&6
7281 else
7282
7283     cat >conftest.$ac_ext <<_ACEOF
7284 /* confdefs.h.  */
7285 _ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h.  */
7289
7290 #include <errno.h>
7291 #if !defined ENOMSG
7292 booboo
7293 #endif
7294 #if !defined EIDRM
7295 booboo
7296 #endif
7297 #if !defined ENOLINK
7298 booboo
7299 #endif
7300 #if !defined EPROTO
7301 booboo
7302 #endif
7303 #if !defined EMULTIHOP
7304 booboo
7305 #endif
7306 #if !defined EBADMSG
7307 booboo
7308 #endif
7309 #if !defined EOVERFLOW
7310 booboo
7311 #endif
7312 #if !defined ENOTSUP
7313 booboo
7314 #endif
7315 #if !defined ECANCELED
7316 booboo
7317 #endif
7318
7319 _ACEOF
7320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7321   $EGREP "booboo" >/dev/null 2>&1; then
7322   gl_cv_header_errno_h_complete=no
7323 else
7324   gl_cv_header_errno_h_complete=yes
7325 fi
7326 rm -f conftest*
7327
7328
7329 fi
7330 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
7331 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7332   if test $gl_cv_header_errno_h_complete = yes; then
7333     ERRNO_H=''
7334   else
7335
7336
7337
7338
7339   :
7340
7341
7342
7343
7344
7345
7346
7347      if test $gl_cv_have_include_next = yes; then
7348        gl_cv_next_errno_h='<'errno.h'>'
7349      else
7350        { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
7351 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7352 if test "${gl_cv_next_errno_h+set}" = set; then
7353   $as_echo_n "(cached) " >&6
7354 else
7355
7356           if test $ac_cv_header_errno_h = yes; then
7357             cat >conftest.$ac_ext <<_ACEOF
7358 /* confdefs.h.  */
7359 _ACEOF
7360 cat confdefs.h >>conftest.$ac_ext
7361 cat >>conftest.$ac_ext <<_ACEOF
7362 /* end confdefs.h.  */
7363 #include <errno.h>
7364
7365 _ACEOF
7366                                                                     case "$host_os" in
7367               aix*) gl_absname_cpp="$ac_cpp -C" ;;
7368               *)    gl_absname_cpp="$ac_cpp" ;;
7369             esac
7370                                     gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7371                sed -n '\#/errno.h#{
7372                  s#.*"\(.*/errno.h\)".*#\1#
7373                  s#^/[^/]#//&#
7374                  p
7375                  q
7376                }'`'"'
7377           else
7378             gl_cv_next_errno_h='<'errno.h'>'
7379           fi
7380
7381 fi
7382 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
7383 $as_echo "$gl_cv_next_errno_h" >&6; }
7384      fi
7385      NEXT_ERRNO_H=$gl_cv_next_errno_h
7386
7387
7388
7389     ERRNO_H='errno.h'
7390   fi
7391
7392
7393   if test -n "$ERRNO_H"; then
7394     { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
7395 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7396 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
7397   $as_echo_n "(cached) " >&6
7398 else
7399
7400       cat >conftest.$ac_ext <<_ACEOF
7401 /* confdefs.h.  */
7402 _ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h.  */
7406
7407 #include <errno.h>
7408 #ifdef EMULTIHOP
7409 yes
7410 #endif
7411
7412 _ACEOF
7413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7414   $EGREP "yes" >/dev/null 2>&1; then
7415   gl_cv_header_errno_h_EMULTIHOP=yes
7416 else
7417   gl_cv_header_errno_h_EMULTIHOP=no
7418 fi
7419 rm -f conftest*
7420
7421       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7422         cat >conftest.$ac_ext <<_ACEOF
7423 /* confdefs.h.  */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h.  */
7428
7429 #define _XOPEN_SOURCE_EXTENDED 1
7430 #include <errno.h>
7431 #ifdef EMULTIHOP
7432 yes
7433 #endif
7434
7435 _ACEOF
7436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7437   $EGREP "yes" >/dev/null 2>&1; then
7438   gl_cv_header_errno_h_EMULTIHOP=hidden
7439 fi
7440 rm -f conftest*
7441
7442         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7443                               if test "$cross_compiling" = yes; then
7444   # Depending upon the size, compute the lo and hi bounds.
7445 cat >conftest.$ac_ext <<_ACEOF
7446 /* confdefs.h.  */
7447 _ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h.  */
7451
7452 #define _XOPEN_SOURCE_EXTENDED 1
7453 #include <errno.h>
7454 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7455 #include <stdio.h>
7456 #include <stdlib.h>
7457
7458 int
7459 main ()
7460 {
7461 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
7462 test_array [0] = 0
7463
7464   ;
7465   return 0;
7466 }
7467 _ACEOF
7468 rm -f conftest.$ac_objext
7469 if { (ac_try="$ac_compile"
7470 case "(($ac_try" in
7471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472   *) ac_try_echo=$ac_try;;
7473 esac
7474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7475 $as_echo "$ac_try_echo") >&5
7476   (eval "$ac_compile") 2>conftest.er1
7477   ac_status=$?
7478   grep -v '^ *+' conftest.er1 >conftest.err
7479   rm -f conftest.er1
7480   cat conftest.err >&5
7481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); } && {
7483          test -z "$ac_c_werror_flag" ||
7484          test ! -s conftest.err
7485        } && test -s conftest.$ac_objext; then
7486   ac_lo=0 ac_mid=0
7487   while :; do
7488     cat >conftest.$ac_ext <<_ACEOF
7489 /* confdefs.h.  */
7490 _ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h.  */
7494
7495 #define _XOPEN_SOURCE_EXTENDED 1
7496 #include <errno.h>
7497 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7498 #include <stdio.h>
7499 #include <stdlib.h>
7500
7501 int
7502 main ()
7503 {
7504 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
7505 test_array [0] = 0
7506
7507   ;
7508   return 0;
7509 }
7510 _ACEOF
7511 rm -f conftest.$ac_objext
7512 if { (ac_try="$ac_compile"
7513 case "(($ac_try" in
7514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515   *) ac_try_echo=$ac_try;;
7516 esac
7517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7518 $as_echo "$ac_try_echo") >&5
7519   (eval "$ac_compile") 2>conftest.er1
7520   ac_status=$?
7521   grep -v '^ *+' conftest.er1 >conftest.err
7522   rm -f conftest.er1
7523   cat conftest.err >&5
7524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525   (exit $ac_status); } && {
7526          test -z "$ac_c_werror_flag" ||
7527          test ! -s conftest.err
7528        } && test -s conftest.$ac_objext; then
7529   ac_hi=$ac_mid; break
7530 else
7531   $as_echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534         ac_lo=`expr $ac_mid + 1`
7535                         if test $ac_lo -le $ac_mid; then
7536                           ac_lo= ac_hi=
7537                           break
7538                         fi
7539                         ac_mid=`expr 2 '*' $ac_mid + 1`
7540 fi
7541
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543   done
7544 else
7545   $as_echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7547
7548         cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h.  */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h.  */
7554
7555 #define _XOPEN_SOURCE_EXTENDED 1
7556 #include <errno.h>
7557 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7558 #include <stdio.h>
7559 #include <stdlib.h>
7560
7561 int
7562 main ()
7563 {
7564 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
7565 test_array [0] = 0
7566
7567   ;
7568   return 0;
7569 }
7570 _ACEOF
7571 rm -f conftest.$ac_objext
7572 if { (ac_try="$ac_compile"
7573 case "(($ac_try" in
7574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575   *) ac_try_echo=$ac_try;;
7576 esac
7577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7578 $as_echo "$ac_try_echo") >&5
7579   (eval "$ac_compile") 2>conftest.er1
7580   ac_status=$?
7581   grep -v '^ *+' conftest.er1 >conftest.err
7582   rm -f conftest.er1
7583   cat conftest.err >&5
7584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585   (exit $ac_status); } && {
7586          test -z "$ac_c_werror_flag" ||
7587          test ! -s conftest.err
7588        } && test -s conftest.$ac_objext; then
7589   ac_hi=-1 ac_mid=-1
7590   while :; do
7591     cat >conftest.$ac_ext <<_ACEOF
7592 /* confdefs.h.  */
7593 _ACEOF
7594 cat confdefs.h >>conftest.$ac_ext
7595 cat >>conftest.$ac_ext <<_ACEOF
7596 /* end confdefs.h.  */
7597
7598 #define _XOPEN_SOURCE_EXTENDED 1
7599 #include <errno.h>
7600 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7601 #include <stdio.h>
7602 #include <stdlib.h>
7603
7604 int
7605 main ()
7606 {
7607 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
7608 test_array [0] = 0
7609
7610   ;
7611   return 0;
7612 }
7613 _ACEOF
7614 rm -f conftest.$ac_objext
7615 if { (ac_try="$ac_compile"
7616 case "(($ac_try" in
7617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618   *) ac_try_echo=$ac_try;;
7619 esac
7620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7621 $as_echo "$ac_try_echo") >&5
7622   (eval "$ac_compile") 2>conftest.er1
7623   ac_status=$?
7624   grep -v '^ *+' conftest.er1 >conftest.err
7625   rm -f conftest.er1
7626   cat conftest.err >&5
7627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628   (exit $ac_status); } && {
7629          test -z "$ac_c_werror_flag" ||
7630          test ! -s conftest.err
7631        } && test -s conftest.$ac_objext; then
7632   ac_lo=$ac_mid; break
7633 else
7634   $as_echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7636
7637         ac_hi=`expr '(' $ac_mid ')' - 1`
7638                         if test $ac_mid -le $ac_hi; then
7639                           ac_lo= ac_hi=
7640                           break
7641                         fi
7642                         ac_mid=`expr 2 '*' $ac_mid`
7643 fi
7644
7645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7646   done
7647 else
7648   $as_echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7650
7651         ac_lo= ac_hi=
7652 fi
7653
7654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655 fi
7656
7657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7658 # Binary search between lo and hi bounds.
7659 while test "x$ac_lo" != "x$ac_hi"; do
7660   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7661   cat >conftest.$ac_ext <<_ACEOF
7662 /* confdefs.h.  */
7663 _ACEOF
7664 cat confdefs.h >>conftest.$ac_ext
7665 cat >>conftest.$ac_ext <<_ACEOF
7666 /* end confdefs.h.  */
7667
7668 #define _XOPEN_SOURCE_EXTENDED 1
7669 #include <errno.h>
7670 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7671 #include <stdio.h>
7672 #include <stdlib.h>
7673
7674 int
7675 main ()
7676 {
7677 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
7678 test_array [0] = 0
7679
7680   ;
7681   return 0;
7682 }
7683 _ACEOF
7684 rm -f conftest.$ac_objext
7685 if { (ac_try="$ac_compile"
7686 case "(($ac_try" in
7687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7688   *) ac_try_echo=$ac_try;;
7689 esac
7690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7691 $as_echo "$ac_try_echo") >&5
7692   (eval "$ac_compile") 2>conftest.er1
7693   ac_status=$?
7694   grep -v '^ *+' conftest.er1 >conftest.err
7695   rm -f conftest.er1
7696   cat conftest.err >&5
7697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698   (exit $ac_status); } && {
7699          test -z "$ac_c_werror_flag" ||
7700          test ! -s conftest.err
7701        } && test -s conftest.$ac_objext; then
7702   ac_hi=$ac_mid
7703 else
7704   $as_echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7706
7707         ac_lo=`expr '(' $ac_mid ')' + 1`
7708 fi
7709
7710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7711 done
7712 case $ac_lo in
7713 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
7714 '')  ;;
7715 esac
7716 else
7717   cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h.  */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h.  */
7723
7724 #define _XOPEN_SOURCE_EXTENDED 1
7725 #include <errno.h>
7726 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7727 #include <stdio.h>
7728 #include <stdlib.h>
7729
7730 static long int longval () { return EMULTIHOP; }
7731 static unsigned long int ulongval () { return EMULTIHOP; }
7732 #include <stdio.h>
7733 #include <stdlib.h>
7734 int
7735 main ()
7736 {
7737
7738   FILE *f = fopen ("conftest.val", "w");
7739   if (! f)
7740     return 1;
7741   if ((EMULTIHOP) < 0)
7742     {
7743       long int i = longval ();
7744       if (i != (EMULTIHOP))
7745         return 1;
7746       fprintf (f, "%ld", i);
7747     }
7748   else
7749     {
7750       unsigned long int i = ulongval ();
7751       if (i != (EMULTIHOP))
7752         return 1;
7753       fprintf (f, "%lu", i);
7754     }
7755   /* Do not output a trailing newline, as this causes \r\n confusion
7756      on some platforms.  */
7757   return ferror (f) || fclose (f) != 0;
7758
7759   ;
7760   return 0;
7761 }
7762 _ACEOF
7763 rm -f conftest$ac_exeext
7764 if { (ac_try="$ac_link"
7765 case "(($ac_try" in
7766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767   *) ac_try_echo=$ac_try;;
7768 esac
7769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7770 $as_echo "$ac_try_echo") >&5
7771   (eval "$ac_link") 2>&5
7772   ac_status=$?
7773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7775   { (case "(($ac_try" in
7776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777   *) ac_try_echo=$ac_try;;
7778 esac
7779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7780 $as_echo "$ac_try_echo") >&5
7781   (eval "$ac_try") 2>&5
7782   ac_status=$?
7783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784   (exit $ac_status); }; }; then
7785   gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
7786 else
7787   $as_echo "$as_me: program exited with status $ac_status" >&5
7788 $as_echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7790
7791 fi
7792 rm -rf conftest.dSYM
7793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7794 fi
7795 rm -f conftest.val
7796         fi
7797       fi
7798
7799 fi
7800 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7801 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7802     case $gl_cv_header_errno_h_EMULTIHOP in
7803       yes | no)
7804         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7805         ;;
7806       *)
7807         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7808         ;;
7809     esac
7810
7811
7812   fi
7813
7814
7815   if test -n "$ERRNO_H"; then
7816     { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
7817 $as_echo_n "checking for ENOLINK value... " >&6; }
7818 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
7819   $as_echo_n "(cached) " >&6
7820 else
7821
7822       cat >conftest.$ac_ext <<_ACEOF
7823 /* confdefs.h.  */
7824 _ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h.  */
7828
7829 #include <errno.h>
7830 #ifdef ENOLINK
7831 yes
7832 #endif
7833
7834 _ACEOF
7835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7836   $EGREP "yes" >/dev/null 2>&1; then
7837   gl_cv_header_errno_h_ENOLINK=yes
7838 else
7839   gl_cv_header_errno_h_ENOLINK=no
7840 fi
7841 rm -f conftest*
7842
7843       if test $gl_cv_header_errno_h_ENOLINK = no; then
7844         cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h.  */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h.  */
7850
7851 #define _XOPEN_SOURCE_EXTENDED 1
7852 #include <errno.h>
7853 #ifdef ENOLINK
7854 yes
7855 #endif
7856
7857 _ACEOF
7858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7859   $EGREP "yes" >/dev/null 2>&1; then
7860   gl_cv_header_errno_h_ENOLINK=hidden
7861 fi
7862 rm -f conftest*
7863
7864         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7865                               if test "$cross_compiling" = yes; then
7866   # Depending upon the size, compute the lo and hi bounds.
7867 cat >conftest.$ac_ext <<_ACEOF
7868 /* confdefs.h.  */
7869 _ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h.  */
7873
7874 #define _XOPEN_SOURCE_EXTENDED 1
7875 #include <errno.h>
7876 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7877 #include <stdio.h>
7878 #include <stdlib.h>
7879
7880 int
7881 main ()
7882 {
7883 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
7884 test_array [0] = 0
7885
7886   ;
7887   return 0;
7888 }
7889 _ACEOF
7890 rm -f conftest.$ac_objext
7891 if { (ac_try="$ac_compile"
7892 case "(($ac_try" in
7893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894   *) ac_try_echo=$ac_try;;
7895 esac
7896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7897 $as_echo "$ac_try_echo") >&5
7898   (eval "$ac_compile") 2>conftest.er1
7899   ac_status=$?
7900   grep -v '^ *+' conftest.er1 >conftest.err
7901   rm -f conftest.er1
7902   cat conftest.err >&5
7903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); } && {
7905          test -z "$ac_c_werror_flag" ||
7906          test ! -s conftest.err
7907        } && test -s conftest.$ac_objext; then
7908   ac_lo=0 ac_mid=0
7909   while :; do
7910     cat >conftest.$ac_ext <<_ACEOF
7911 /* confdefs.h.  */
7912 _ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h.  */
7916
7917 #define _XOPEN_SOURCE_EXTENDED 1
7918 #include <errno.h>
7919 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7920 #include <stdio.h>
7921 #include <stdlib.h>
7922
7923 int
7924 main ()
7925 {
7926 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
7927 test_array [0] = 0
7928
7929   ;
7930   return 0;
7931 }
7932 _ACEOF
7933 rm -f conftest.$ac_objext
7934 if { (ac_try="$ac_compile"
7935 case "(($ac_try" in
7936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937   *) ac_try_echo=$ac_try;;
7938 esac
7939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7940 $as_echo "$ac_try_echo") >&5
7941   (eval "$ac_compile") 2>conftest.er1
7942   ac_status=$?
7943   grep -v '^ *+' conftest.er1 >conftest.err
7944   rm -f conftest.er1
7945   cat conftest.err >&5
7946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947   (exit $ac_status); } && {
7948          test -z "$ac_c_werror_flag" ||
7949          test ! -s conftest.err
7950        } && test -s conftest.$ac_objext; then
7951   ac_hi=$ac_mid; break
7952 else
7953   $as_echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7955
7956         ac_lo=`expr $ac_mid + 1`
7957                         if test $ac_lo -le $ac_mid; then
7958                           ac_lo= ac_hi=
7959                           break
7960                         fi
7961                         ac_mid=`expr 2 '*' $ac_mid + 1`
7962 fi
7963
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965   done
7966 else
7967   $as_echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7969
7970         cat >conftest.$ac_ext <<_ACEOF
7971 /* confdefs.h.  */
7972 _ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h.  */
7976
7977 #define _XOPEN_SOURCE_EXTENDED 1
7978 #include <errno.h>
7979 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7980 #include <stdio.h>
7981 #include <stdlib.h>
7982
7983 int
7984 main ()
7985 {
7986 static int test_array [1 - 2 * !((ENOLINK) < 0)];
7987 test_array [0] = 0
7988
7989   ;
7990   return 0;
7991 }
7992 _ACEOF
7993 rm -f conftest.$ac_objext
7994 if { (ac_try="$ac_compile"
7995 case "(($ac_try" in
7996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997   *) ac_try_echo=$ac_try;;
7998 esac
7999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8000 $as_echo "$ac_try_echo") >&5
8001   (eval "$ac_compile") 2>conftest.er1
8002   ac_status=$?
8003   grep -v '^ *+' conftest.er1 >conftest.err
8004   rm -f conftest.er1
8005   cat conftest.err >&5
8006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007   (exit $ac_status); } && {
8008          test -z "$ac_c_werror_flag" ||
8009          test ! -s conftest.err
8010        } && test -s conftest.$ac_objext; then
8011   ac_hi=-1 ac_mid=-1
8012   while :; do
8013     cat >conftest.$ac_ext <<_ACEOF
8014 /* confdefs.h.  */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h.  */
8019
8020 #define _XOPEN_SOURCE_EXTENDED 1
8021 #include <errno.h>
8022 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8023 #include <stdio.h>
8024 #include <stdlib.h>
8025
8026 int
8027 main ()
8028 {
8029 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
8030 test_array [0] = 0
8031
8032   ;
8033   return 0;
8034 }
8035 _ACEOF
8036 rm -f conftest.$ac_objext
8037 if { (ac_try="$ac_compile"
8038 case "(($ac_try" in
8039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040   *) ac_try_echo=$ac_try;;
8041 esac
8042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8043 $as_echo "$ac_try_echo") >&5
8044   (eval "$ac_compile") 2>conftest.er1
8045   ac_status=$?
8046   grep -v '^ *+' conftest.er1 >conftest.err
8047   rm -f conftest.er1
8048   cat conftest.err >&5
8049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   (exit $ac_status); } && {
8051          test -z "$ac_c_werror_flag" ||
8052          test ! -s conftest.err
8053        } && test -s conftest.$ac_objext; then
8054   ac_lo=$ac_mid; break
8055 else
8056   $as_echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8058
8059         ac_hi=`expr '(' $ac_mid ')' - 1`
8060                         if test $ac_mid -le $ac_hi; then
8061                           ac_lo= ac_hi=
8062                           break
8063                         fi
8064                         ac_mid=`expr 2 '*' $ac_mid`
8065 fi
8066
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068   done
8069 else
8070   $as_echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8072
8073         ac_lo= ac_hi=
8074 fi
8075
8076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8077 fi
8078
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 # Binary search between lo and hi bounds.
8081 while test "x$ac_lo" != "x$ac_hi"; do
8082   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8083   cat >conftest.$ac_ext <<_ACEOF
8084 /* confdefs.h.  */
8085 _ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h.  */
8089
8090 #define _XOPEN_SOURCE_EXTENDED 1
8091 #include <errno.h>
8092 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8093 #include <stdio.h>
8094 #include <stdlib.h>
8095
8096 int
8097 main ()
8098 {
8099 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
8100 test_array [0] = 0
8101
8102   ;
8103   return 0;
8104 }
8105 _ACEOF
8106 rm -f conftest.$ac_objext
8107 if { (ac_try="$ac_compile"
8108 case "(($ac_try" in
8109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110   *) ac_try_echo=$ac_try;;
8111 esac
8112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8113 $as_echo "$ac_try_echo") >&5
8114   (eval "$ac_compile") 2>conftest.er1
8115   ac_status=$?
8116   grep -v '^ *+' conftest.er1 >conftest.err
8117   rm -f conftest.er1
8118   cat conftest.err >&5
8119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); } && {
8121          test -z "$ac_c_werror_flag" ||
8122          test ! -s conftest.err
8123        } && test -s conftest.$ac_objext; then
8124   ac_hi=$ac_mid
8125 else
8126   $as_echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8128
8129         ac_lo=`expr '(' $ac_mid ')' + 1`
8130 fi
8131
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 done
8134 case $ac_lo in
8135 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
8136 '')  ;;
8137 esac
8138 else
8139   cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h.  */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h.  */
8145
8146 #define _XOPEN_SOURCE_EXTENDED 1
8147 #include <errno.h>
8148 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8149 #include <stdio.h>
8150 #include <stdlib.h>
8151
8152 static long int longval () { return ENOLINK; }
8153 static unsigned long int ulongval () { return ENOLINK; }
8154 #include <stdio.h>
8155 #include <stdlib.h>
8156 int
8157 main ()
8158 {
8159
8160   FILE *f = fopen ("conftest.val", "w");
8161   if (! f)
8162     return 1;
8163   if ((ENOLINK) < 0)
8164     {
8165       long int i = longval ();
8166       if (i != (ENOLINK))
8167         return 1;
8168       fprintf (f, "%ld", i);
8169     }
8170   else
8171     {
8172       unsigned long int i = ulongval ();
8173       if (i != (ENOLINK))
8174         return 1;
8175       fprintf (f, "%lu", i);
8176     }
8177   /* Do not output a trailing newline, as this causes \r\n confusion
8178      on some platforms.  */
8179   return ferror (f) || fclose (f) != 0;
8180
8181   ;
8182   return 0;
8183 }
8184 _ACEOF
8185 rm -f conftest$ac_exeext
8186 if { (ac_try="$ac_link"
8187 case "(($ac_try" in
8188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189   *) ac_try_echo=$ac_try;;
8190 esac
8191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8192 $as_echo "$ac_try_echo") >&5
8193   (eval "$ac_link") 2>&5
8194   ac_status=$?
8195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8197   { (case "(($ac_try" in
8198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199   *) ac_try_echo=$ac_try;;
8200 esac
8201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8202 $as_echo "$ac_try_echo") >&5
8203   (eval "$ac_try") 2>&5
8204   ac_status=$?
8205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206   (exit $ac_status); }; }; then
8207   gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
8208 else
8209   $as_echo "$as_me: program exited with status $ac_status" >&5
8210 $as_echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213 fi
8214 rm -rf conftest.dSYM
8215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8216 fi
8217 rm -f conftest.val
8218         fi
8219       fi
8220
8221 fi
8222 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
8223 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
8224     case $gl_cv_header_errno_h_ENOLINK in
8225       yes | no)
8226         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
8227         ;;
8228       *)
8229         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
8230         ;;
8231     esac
8232
8233
8234   fi
8235
8236
8237   if test -n "$ERRNO_H"; then
8238     { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
8239 $as_echo_n "checking for EOVERFLOW value... " >&6; }
8240 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
8241   $as_echo_n "(cached) " >&6
8242 else
8243
8244       cat >conftest.$ac_ext <<_ACEOF
8245 /* confdefs.h.  */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h.  */
8250
8251 #include <errno.h>
8252 #ifdef EOVERFLOW
8253 yes
8254 #endif
8255
8256 _ACEOF
8257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8258   $EGREP "yes" >/dev/null 2>&1; then
8259   gl_cv_header_errno_h_EOVERFLOW=yes
8260 else
8261   gl_cv_header_errno_h_EOVERFLOW=no
8262 fi
8263 rm -f conftest*
8264
8265       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
8266         cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h.  */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h.  */
8272
8273 #define _XOPEN_SOURCE_EXTENDED 1
8274 #include <errno.h>
8275 #ifdef EOVERFLOW
8276 yes
8277 #endif
8278
8279 _ACEOF
8280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8281   $EGREP "yes" >/dev/null 2>&1; then
8282   gl_cv_header_errno_h_EOVERFLOW=hidden
8283 fi
8284 rm -f conftest*
8285
8286         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
8287                               if test "$cross_compiling" = yes; then
8288   # Depending upon the size, compute the lo and hi bounds.
8289 cat >conftest.$ac_ext <<_ACEOF
8290 /* confdefs.h.  */
8291 _ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h.  */
8295
8296 #define _XOPEN_SOURCE_EXTENDED 1
8297 #include <errno.h>
8298 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8299 #include <stdio.h>
8300 #include <stdlib.h>
8301
8302 int
8303 main ()
8304 {
8305 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
8306 test_array [0] = 0
8307
8308   ;
8309   return 0;
8310 }
8311 _ACEOF
8312 rm -f conftest.$ac_objext
8313 if { (ac_try="$ac_compile"
8314 case "(($ac_try" in
8315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316   *) ac_try_echo=$ac_try;;
8317 esac
8318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8319 $as_echo "$ac_try_echo") >&5
8320   (eval "$ac_compile") 2>conftest.er1
8321   ac_status=$?
8322   grep -v '^ *+' conftest.er1 >conftest.err
8323   rm -f conftest.er1
8324   cat conftest.err >&5
8325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326   (exit $ac_status); } && {
8327          test -z "$ac_c_werror_flag" ||
8328          test ! -s conftest.err
8329        } && test -s conftest.$ac_objext; then
8330   ac_lo=0 ac_mid=0
8331   while :; do
8332     cat >conftest.$ac_ext <<_ACEOF
8333 /* confdefs.h.  */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h.  */
8338
8339 #define _XOPEN_SOURCE_EXTENDED 1
8340 #include <errno.h>
8341 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8342 #include <stdio.h>
8343 #include <stdlib.h>
8344
8345 int
8346 main ()
8347 {
8348 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
8349 test_array [0] = 0
8350
8351   ;
8352   return 0;
8353 }
8354 _ACEOF
8355 rm -f conftest.$ac_objext
8356 if { (ac_try="$ac_compile"
8357 case "(($ac_try" in
8358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359   *) ac_try_echo=$ac_try;;
8360 esac
8361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8362 $as_echo "$ac_try_echo") >&5
8363   (eval "$ac_compile") 2>conftest.er1
8364   ac_status=$?
8365   grep -v '^ *+' conftest.er1 >conftest.err
8366   rm -f conftest.er1
8367   cat conftest.err >&5
8368   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); } && {
8370          test -z "$ac_c_werror_flag" ||
8371          test ! -s conftest.err
8372        } && test -s conftest.$ac_objext; then
8373   ac_hi=$ac_mid; break
8374 else
8375   $as_echo "$as_me: failed program was:" >&5
8376 sed 's/^/| /' conftest.$ac_ext >&5
8377
8378         ac_lo=`expr $ac_mid + 1`
8379                         if test $ac_lo -le $ac_mid; then
8380                           ac_lo= ac_hi=
8381                           break
8382                         fi
8383                         ac_mid=`expr 2 '*' $ac_mid + 1`
8384 fi
8385
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387   done
8388 else
8389   $as_echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392         cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h.  */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h.  */
8398
8399 #define _XOPEN_SOURCE_EXTENDED 1
8400 #include <errno.h>
8401 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8402 #include <stdio.h>
8403 #include <stdlib.h>
8404
8405 int
8406 main ()
8407 {
8408 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
8409 test_array [0] = 0
8410
8411   ;
8412   return 0;
8413 }
8414 _ACEOF
8415 rm -f conftest.$ac_objext
8416 if { (ac_try="$ac_compile"
8417 case "(($ac_try" in
8418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419   *) ac_try_echo=$ac_try;;
8420 esac
8421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8422 $as_echo "$ac_try_echo") >&5
8423   (eval "$ac_compile") 2>conftest.er1
8424   ac_status=$?
8425   grep -v '^ *+' conftest.er1 >conftest.err
8426   rm -f conftest.er1
8427   cat conftest.err >&5
8428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); } && {
8430          test -z "$ac_c_werror_flag" ||
8431          test ! -s conftest.err
8432        } && test -s conftest.$ac_objext; then
8433   ac_hi=-1 ac_mid=-1
8434   while :; do
8435     cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h.  */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h.  */
8441
8442 #define _XOPEN_SOURCE_EXTENDED 1
8443 #include <errno.h>
8444 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8445 #include <stdio.h>
8446 #include <stdlib.h>
8447
8448 int
8449 main ()
8450 {
8451 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
8452 test_array [0] = 0
8453
8454   ;
8455   return 0;
8456 }
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (ac_try="$ac_compile"
8460 case "(($ac_try" in
8461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462   *) ac_try_echo=$ac_try;;
8463 esac
8464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8465 $as_echo "$ac_try_echo") >&5
8466   (eval "$ac_compile") 2>conftest.er1
8467   ac_status=$?
8468   grep -v '^ *+' conftest.er1 >conftest.err
8469   rm -f conftest.er1
8470   cat conftest.err >&5
8471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); } && {
8473          test -z "$ac_c_werror_flag" ||
8474          test ! -s conftest.err
8475        } && test -s conftest.$ac_objext; then
8476   ac_lo=$ac_mid; break
8477 else
8478   $as_echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8480
8481         ac_hi=`expr '(' $ac_mid ')' - 1`
8482                         if test $ac_mid -le $ac_hi; then
8483                           ac_lo= ac_hi=
8484                           break
8485                         fi
8486                         ac_mid=`expr 2 '*' $ac_mid`
8487 fi
8488
8489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8490   done
8491 else
8492   $as_echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8494
8495         ac_lo= ac_hi=
8496 fi
8497
8498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8499 fi
8500
8501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8502 # Binary search between lo and hi bounds.
8503 while test "x$ac_lo" != "x$ac_hi"; do
8504   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8505   cat >conftest.$ac_ext <<_ACEOF
8506 /* confdefs.h.  */
8507 _ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h.  */
8511
8512 #define _XOPEN_SOURCE_EXTENDED 1
8513 #include <errno.h>
8514 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8515 #include <stdio.h>
8516 #include <stdlib.h>
8517
8518 int
8519 main ()
8520 {
8521 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
8522 test_array [0] = 0
8523
8524   ;
8525   return 0;
8526 }
8527 _ACEOF
8528 rm -f conftest.$ac_objext
8529 if { (ac_try="$ac_compile"
8530 case "(($ac_try" in
8531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532   *) ac_try_echo=$ac_try;;
8533 esac
8534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8535 $as_echo "$ac_try_echo") >&5
8536   (eval "$ac_compile") 2>conftest.er1
8537   ac_status=$?
8538   grep -v '^ *+' conftest.er1 >conftest.err
8539   rm -f conftest.er1
8540   cat conftest.err >&5
8541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); } && {
8543          test -z "$ac_c_werror_flag" ||
8544          test ! -s conftest.err
8545        } && test -s conftest.$ac_objext; then
8546   ac_hi=$ac_mid
8547 else
8548   $as_echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8550
8551         ac_lo=`expr '(' $ac_mid ')' + 1`
8552 fi
8553
8554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8555 done
8556 case $ac_lo in
8557 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
8558 '')  ;;
8559 esac
8560 else
8561   cat >conftest.$ac_ext <<_ACEOF
8562 /* confdefs.h.  */
8563 _ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h.  */
8567
8568 #define _XOPEN_SOURCE_EXTENDED 1
8569 #include <errno.h>
8570 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8571 #include <stdio.h>
8572 #include <stdlib.h>
8573
8574 static long int longval () { return EOVERFLOW; }
8575 static unsigned long int ulongval () { return EOVERFLOW; }
8576 #include <stdio.h>
8577 #include <stdlib.h>
8578 int
8579 main ()
8580 {
8581
8582   FILE *f = fopen ("conftest.val", "w");
8583   if (! f)
8584     return 1;
8585   if ((EOVERFLOW) < 0)
8586     {
8587       long int i = longval ();
8588       if (i != (EOVERFLOW))
8589         return 1;
8590       fprintf (f, "%ld", i);
8591     }
8592   else
8593     {
8594       unsigned long int i = ulongval ();
8595       if (i != (EOVERFLOW))
8596         return 1;
8597       fprintf (f, "%lu", i);
8598     }
8599   /* Do not output a trailing newline, as this causes \r\n confusion
8600      on some platforms.  */
8601   return ferror (f) || fclose (f) != 0;
8602
8603   ;
8604   return 0;
8605 }
8606 _ACEOF
8607 rm -f conftest$ac_exeext
8608 if { (ac_try="$ac_link"
8609 case "(($ac_try" in
8610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611   *) ac_try_echo=$ac_try;;
8612 esac
8613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8614 $as_echo "$ac_try_echo") >&5
8615   (eval "$ac_link") 2>&5
8616   ac_status=$?
8617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8619   { (case "(($ac_try" in
8620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621   *) ac_try_echo=$ac_try;;
8622 esac
8623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8624 $as_echo "$ac_try_echo") >&5
8625   (eval "$ac_try") 2>&5
8626   ac_status=$?
8627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628   (exit $ac_status); }; }; then
8629   gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
8630 else
8631   $as_echo "$as_me: program exited with status $ac_status" >&5
8632 $as_echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8634
8635 fi
8636 rm -rf conftest.dSYM
8637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8638 fi
8639 rm -f conftest.val
8640         fi
8641       fi
8642
8643 fi
8644 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8645 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8646     case $gl_cv_header_errno_h_EOVERFLOW in
8647       yes | no)
8648         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
8649         ;;
8650       *)
8651         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
8652         ;;
8653     esac
8654
8655
8656   fi
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667   GNULIB_FPRINTF=0;
8668   GNULIB_FPRINTF_POSIX=0;
8669   GNULIB_PRINTF=0;
8670   GNULIB_PRINTF_POSIX=0;
8671   GNULIB_SNPRINTF=0;
8672   GNULIB_SPRINTF_POSIX=0;
8673   GNULIB_VFPRINTF=0;
8674   GNULIB_VFPRINTF_POSIX=0;
8675   GNULIB_VPRINTF=0;
8676   GNULIB_VPRINTF_POSIX=0;
8677   GNULIB_VSNPRINTF=0;
8678   GNULIB_VSPRINTF_POSIX=0;
8679   GNULIB_DPRINTF=0;
8680   GNULIB_VDPRINTF=0;
8681   GNULIB_VASPRINTF=0;
8682   GNULIB_OBSTACK_PRINTF=0;
8683   GNULIB_OBSTACK_PRINTF_POSIX=0;
8684   GNULIB_FOPEN=0;
8685   GNULIB_FREOPEN=0;
8686   GNULIB_FSEEK=0;
8687   GNULIB_FSEEKO=0;
8688   GNULIB_FTELL=0;
8689   GNULIB_FTELLO=0;
8690   GNULIB_FFLUSH=0;
8691   GNULIB_FCLOSE=0;
8692   GNULIB_FPUTC=0;
8693   GNULIB_PUTC=0;
8694   GNULIB_PUTCHAR=0;
8695   GNULIB_FPUTS=0;
8696   GNULIB_PUTS=0;
8697   GNULIB_FWRITE=0;
8698   GNULIB_GETDELIM=0;
8699   GNULIB_GETLINE=0;
8700   GNULIB_PERROR=0;
8701   GNULIB_STDIO_H_SIGPIPE=0;
8702     REPLACE_STDIO_WRITE_FUNCS=0;
8703   REPLACE_FPRINTF=0;
8704   REPLACE_VFPRINTF=0;
8705   REPLACE_PRINTF=0;
8706   REPLACE_VPRINTF=0;
8707   REPLACE_SNPRINTF=0;
8708   HAVE_DECL_SNPRINTF=1;
8709   REPLACE_VSNPRINTF=0;
8710   HAVE_DECL_VSNPRINTF=1;
8711   REPLACE_SPRINTF=0;
8712   REPLACE_VSPRINTF=0;
8713   HAVE_DPRINTF=1;
8714   REPLACE_DPRINTF=0;
8715   HAVE_VDPRINTF=1;
8716   REPLACE_VDPRINTF=0;
8717   HAVE_VASPRINTF=1;
8718   REPLACE_VASPRINTF=0;
8719   HAVE_DECL_OBSTACK_PRINTF=1;
8720   REPLACE_OBSTACK_PRINTF=0;
8721   REPLACE_FOPEN=0;
8722   REPLACE_FREOPEN=0;
8723   HAVE_FSEEKO=1;
8724   REPLACE_FSEEKO=0;
8725   REPLACE_FSEEK=0;
8726   HAVE_FTELLO=1;
8727   REPLACE_FTELLO=0;
8728   REPLACE_FTELL=0;
8729   REPLACE_FFLUSH=0;
8730   REPLACE_FCLOSE=0;
8731   HAVE_DECL_GETDELIM=1;
8732   HAVE_DECL_GETLINE=1;
8733   REPLACE_GETLINE=0;
8734   REPLACE_PERROR=0;
8735
8736
8737     { $as_echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
8738 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
8739 if test "${gl_cv_var_stdin_large_offset+set}" = set; then
8740   $as_echo_n "(cached) " >&6
8741 else
8742   cat >conftest.$ac_ext <<_ACEOF
8743 /* confdefs.h.  */
8744 _ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h.  */
8748 #include <stdio.h>
8749 int
8750 main ()
8751 {
8752 #if defined __SL64 && defined __SCLE /* cygwin */
8753   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
8754      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
8755      it is easier to do a version check than building a runtime test.  */
8756 # include <cygwin/version.h>
8757 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
8758   choke me
8759 # endif
8760 #endif
8761   ;
8762   return 0;
8763 }
8764 _ACEOF
8765 rm -f conftest.$ac_objext conftest$ac_exeext
8766 if { (ac_try="$ac_link"
8767 case "(($ac_try" in
8768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769   *) ac_try_echo=$ac_try;;
8770 esac
8771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8772 $as_echo "$ac_try_echo") >&5
8773   (eval "$ac_link") 2>conftest.er1
8774   ac_status=$?
8775   grep -v '^ *+' conftest.er1 >conftest.err
8776   rm -f conftest.er1
8777   cat conftest.err >&5
8778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); } && {
8780          test -z "$ac_c_werror_flag" ||
8781          test ! -s conftest.err
8782        } && test -s conftest$ac_exeext && {
8783          test "$cross_compiling" = yes ||
8784          $as_test_x conftest$ac_exeext
8785        }; then
8786   gl_cv_var_stdin_large_offset=yes
8787 else
8788   $as_echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8790
8791         gl_cv_var_stdin_large_offset=no
8792 fi
8793
8794 rm -rf conftest.dSYM
8795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8796       conftest$ac_exeext conftest.$ac_ext
8797 fi
8798 { $as_echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
8799 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820   GNULIB_CHOWN=0;
8821   GNULIB_CLOSE=0;
8822   GNULIB_DUP2=0;
8823   GNULIB_ENVIRON=0;
8824   GNULIB_EUIDACCESS=0;
8825   GNULIB_FCHDIR=0;
8826   GNULIB_FSYNC=0;
8827   GNULIB_FTRUNCATE=0;
8828   GNULIB_GETCWD=0;
8829   GNULIB_GETDOMAINNAME=0;
8830   GNULIB_GETDTABLESIZE=0;
8831   GNULIB_GETHOSTNAME=0;
8832   GNULIB_GETLOGIN_R=0;
8833   GNULIB_GETPAGESIZE=0;
8834   GNULIB_GETUSERSHELL=0;
8835   GNULIB_LCHOWN=0;
8836   GNULIB_LINK=0;
8837   GNULIB_LSEEK=0;
8838   GNULIB_READLINK=0;
8839   GNULIB_SLEEP=0;
8840   GNULIB_UNISTD_H_SIGPIPE=0;
8841   GNULIB_WRITE=0;
8842     HAVE_DUP2=1;
8843   HAVE_EUIDACCESS=1;
8844   HAVE_FSYNC=1;
8845   HAVE_FTRUNCATE=1;
8846   HAVE_GETDOMAINNAME=1;
8847   HAVE_GETDTABLESIZE=1;
8848   HAVE_GETHOSTNAME=1;
8849   HAVE_GETPAGESIZE=1;
8850   HAVE_GETUSERSHELL=1;
8851   HAVE_LINK=1;
8852   HAVE_READLINK=1;
8853   HAVE_SLEEP=1;
8854   HAVE_DECL_ENVIRON=1;
8855   HAVE_DECL_GETLOGIN_R=1;
8856   HAVE_OS_H=0;
8857   HAVE_SYS_PARAM_H=0;
8858   REPLACE_CHOWN=0;
8859   REPLACE_CLOSE=0;
8860   REPLACE_FCHDIR=0;
8861   REPLACE_GETCWD=0;
8862   REPLACE_GETPAGESIZE=0;
8863   REPLACE_LCHOWN=0;
8864   REPLACE_LSEEK=0;
8865   REPLACE_WRITE=0;
8866   UNISTD_H_HAVE_WINSOCK2_H=0;
8867
8868
8869
8870
8871
8872
8873
8874
8875   GNULIB_SOCKET=0;
8876   GNULIB_CONNECT=0;
8877   GNULIB_ACCEPT=0;
8878   GNULIB_BIND=0;
8879   GNULIB_GETPEERNAME=0;
8880   GNULIB_GETSOCKNAME=0;
8881   GNULIB_GETSOCKOPT=0;
8882   GNULIB_LISTEN=0;
8883   GNULIB_RECV=0;
8884   GNULIB_SEND=0;
8885   GNULIB_RECVFROM=0;
8886   GNULIB_SENDTO=0;
8887   GNULIB_SETSOCKOPT=0;
8888   GNULIB_SHUTDOWN=0;
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900   { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
8901 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
8902 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
8903   $as_echo_n "(cached) " >&6
8904 else
8905
8906       cat >conftest.$ac_ext <<_ACEOF
8907 /* confdefs.h.  */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h.  */
8912 #include <sys/socket.h>
8913 int
8914 main ()
8915 {
8916
8917   ;
8918   return 0;
8919 }
8920 _ACEOF
8921 rm -f conftest.$ac_objext
8922 if { (ac_try="$ac_compile"
8923 case "(($ac_try" in
8924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925   *) ac_try_echo=$ac_try;;
8926 esac
8927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8928 $as_echo "$ac_try_echo") >&5
8929   (eval "$ac_compile") 2>conftest.er1
8930   ac_status=$?
8931   grep -v '^ *+' conftest.er1 >conftest.err
8932   rm -f conftest.er1
8933   cat conftest.err >&5
8934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); } && {
8936          test -z "$ac_c_werror_flag" ||
8937          test ! -s conftest.err
8938        } && test -s conftest.$ac_objext; then
8939   gl_cv_header_sys_socket_h_selfcontained=yes
8940 else
8941   $as_echo "$as_me: failed program was:" >&5
8942 sed 's/^/| /' conftest.$ac_ext >&5
8943
8944         gl_cv_header_sys_socket_h_selfcontained=no
8945 fi
8946
8947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948
8949 fi
8950 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
8951 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
8952   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
8953     SYS_SOCKET_H=''
8954
8955 for ac_func in shutdown
8956 do
8957 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8958 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8959 $as_echo_n "checking for $ac_func... " >&6; }
8960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8961   $as_echo_n "(cached) " >&6
8962 else
8963   cat >conftest.$ac_ext <<_ACEOF
8964 /* confdefs.h.  */
8965 _ACEOF
8966 cat confdefs.h >>conftest.$ac_ext
8967 cat >>conftest.$ac_ext <<_ACEOF
8968 /* end confdefs.h.  */
8969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8971 #define $ac_func innocuous_$ac_func
8972
8973 /* System header to define __stub macros and hopefully few prototypes,
8974     which can conflict with char $ac_func (); below.
8975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8976     <limits.h> exists even on freestanding compilers.  */
8977
8978 #ifdef __STDC__
8979 # include <limits.h>
8980 #else
8981 # include <assert.h>
8982 #endif
8983
8984 #undef $ac_func
8985
8986 /* Override any GCC internal prototype to avoid an error.
8987    Use char because int might match the return type of a GCC
8988    builtin and then its argument prototype would still apply.  */
8989 #ifdef __cplusplus
8990 extern "C"
8991 #endif
8992 char $ac_func ();
8993 /* The GNU C library defines this for functions which it implements
8994     to always fail with ENOSYS.  Some functions are actually named
8995     something starting with __ and the normal name is an alias.  */
8996 #if defined __stub_$ac_func || defined __stub___$ac_func
8997 choke me
8998 #endif
8999
9000 int
9001 main ()
9002 {
9003 return $ac_func ();
9004   ;
9005   return 0;
9006 }
9007 _ACEOF
9008 rm -f conftest.$ac_objext conftest$ac_exeext
9009 if { (ac_try="$ac_link"
9010 case "(($ac_try" in
9011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012   *) ac_try_echo=$ac_try;;
9013 esac
9014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9015 $as_echo "$ac_try_echo") >&5
9016   (eval "$ac_link") 2>conftest.er1
9017   ac_status=$?
9018   grep -v '^ *+' conftest.er1 >conftest.err
9019   rm -f conftest.er1
9020   cat conftest.err >&5
9021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022   (exit $ac_status); } && {
9023          test -z "$ac_c_werror_flag" ||
9024          test ! -s conftest.err
9025        } && test -s conftest$ac_exeext && {
9026          test "$cross_compiling" = yes ||
9027          $as_test_x conftest$ac_exeext
9028        }; then
9029   eval "$as_ac_var=yes"
9030 else
9031   $as_echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9033
9034         eval "$as_ac_var=no"
9035 fi
9036
9037 rm -rf conftest.dSYM
9038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9039       conftest$ac_exeext conftest.$ac_ext
9040 fi
9041 ac_res=`eval 'as_val=${'$as_ac_var'}
9042                  $as_echo "$as_val"'`
9043                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9044 $as_echo "$ac_res" >&6; }
9045 as_val=`eval 'as_val=${'$as_ac_var'}
9046                  $as_echo "$as_val"'`
9047    if test "x$as_val" = x""yes; then
9048   cat >>confdefs.h <<_ACEOF
9049 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9050 _ACEOF
9051
9052 fi
9053 done
9054
9055     if test $ac_cv_func_shutdown = yes; then
9056       { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
9057 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
9058 if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then
9059   $as_echo_n "(cached) " >&6
9060 else
9061
9062           cat >conftest.$ac_ext <<_ACEOF
9063 /* confdefs.h.  */
9064 _ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h.  */
9068 #include <sys/socket.h>
9069 int
9070 main ()
9071 {
9072 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
9073   ;
9074   return 0;
9075 }
9076 _ACEOF
9077 rm -f conftest.$ac_objext
9078 if { (ac_try="$ac_compile"
9079 case "(($ac_try" in
9080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081   *) ac_try_echo=$ac_try;;
9082 esac
9083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9084 $as_echo "$ac_try_echo") >&5
9085   (eval "$ac_compile") 2>conftest.er1
9086   ac_status=$?
9087   grep -v '^ *+' conftest.er1 >conftest.err
9088   rm -f conftest.er1
9089   cat conftest.err >&5
9090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091   (exit $ac_status); } && {
9092          test -z "$ac_c_werror_flag" ||
9093          test ! -s conftest.err
9094        } && test -s conftest.$ac_objext; then
9095   gl_cv_header_sys_socket_h_shut=yes
9096 else
9097   $as_echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9099
9100         gl_cv_header_sys_socket_h_shut=no
9101 fi
9102
9103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104
9105 fi
9106 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_shut" >&5
9107 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
9108       if test $gl_cv_header_sys_socket_h_shut = no; then
9109         SYS_SOCKET_H='sys/socket.h'
9110       fi
9111     fi
9112   else
9113     SYS_SOCKET_H='sys/socket.h'
9114   fi
9115   if test -n "$SYS_SOCKET_H"; then
9116
9117
9118
9119
9120   :
9121
9122
9123
9124
9125
9126
9127
9128      if test $gl_cv_have_include_next = yes; then
9129        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
9130      else
9131        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
9132 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
9133 if test "${gl_cv_next_sys_socket_h+set}" = set; then
9134   $as_echo_n "(cached) " >&6
9135 else
9136
9137           if test $ac_cv_header_sys_socket_h = yes; then
9138             cat >conftest.$ac_ext <<_ACEOF
9139 /* confdefs.h.  */
9140 _ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h.  */
9144 #include <sys/socket.h>
9145
9146 _ACEOF
9147                                                                     case "$host_os" in
9148               aix*) gl_absname_cpp="$ac_cpp -C" ;;
9149               *)    gl_absname_cpp="$ac_cpp" ;;
9150             esac
9151                                     gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9152                sed -n '\#/sys/socket.h#{
9153                  s#.*"\(.*/sys/socket.h\)".*#\1#
9154                  s#^/[^/]#//&#
9155                  p
9156                  q
9157                }'`'"'
9158           else
9159             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
9160           fi
9161
9162 fi
9163 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
9164 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
9165      fi
9166      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
9167
9168
9169
9170     if test $ac_cv_header_sys_socket_h = yes; then
9171       HAVE_SYS_SOCKET_H=1
9172       HAVE_WS2TCPIP_H=0
9173     else
9174       HAVE_SYS_SOCKET_H=0
9175
9176 for ac_header in ws2tcpip.h
9177 do
9178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9180   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9181 $as_echo_n "checking for $ac_header... " >&6; }
9182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9183   $as_echo_n "(cached) " >&6
9184 fi
9185 ac_res=`eval 'as_val=${'$as_ac_Header'}
9186                  $as_echo "$as_val"'`
9187                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9188 $as_echo "$ac_res" >&6; }
9189 else
9190   # Is the header compilable?
9191 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9192 $as_echo_n "checking $ac_header usability... " >&6; }
9193 cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h.  */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h.  */
9199 $ac_includes_default
9200 #include <$ac_header>
9201 _ACEOF
9202 rm -f conftest.$ac_objext
9203 if { (ac_try="$ac_compile"
9204 case "(($ac_try" in
9205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206   *) ac_try_echo=$ac_try;;
9207 esac
9208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9209 $as_echo "$ac_try_echo") >&5
9210   (eval "$ac_compile") 2>conftest.er1
9211   ac_status=$?
9212   grep -v '^ *+' conftest.er1 >conftest.err
9213   rm -f conftest.er1
9214   cat conftest.err >&5
9215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216   (exit $ac_status); } && {
9217          test -z "$ac_c_werror_flag" ||
9218          test ! -s conftest.err
9219        } && test -s conftest.$ac_objext; then
9220   ac_header_compiler=yes
9221 else
9222   $as_echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9224
9225         ac_header_compiler=no
9226 fi
9227
9228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9229 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9230 $as_echo "$ac_header_compiler" >&6; }
9231
9232 # Is the header present?
9233 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9234 $as_echo_n "checking $ac_header presence... " >&6; }
9235 cat >conftest.$ac_ext <<_ACEOF
9236 /* confdefs.h.  */
9237 _ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h.  */
9241 #include <$ac_header>
9242 _ACEOF
9243 if { (ac_try="$ac_cpp conftest.$ac_ext"
9244 case "(($ac_try" in
9245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9246   *) ac_try_echo=$ac_try;;
9247 esac
9248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9249 $as_echo "$ac_try_echo") >&5
9250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9251   ac_status=$?
9252   grep -v '^ *+' conftest.er1 >conftest.err
9253   rm -f conftest.er1
9254   cat conftest.err >&5
9255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   (exit $ac_status); } >/dev/null && {
9257          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9258          test ! -s conftest.err
9259        }; then
9260   ac_header_preproc=yes
9261 else
9262   $as_echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9264
9265   ac_header_preproc=no
9266 fi
9267
9268 rm -f conftest.err conftest.$ac_ext
9269 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9270 $as_echo "$ac_header_preproc" >&6; }
9271
9272 # So?  What about this header?
9273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9274   yes:no: )
9275     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9276 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9277     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9278 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9279     ac_header_preproc=yes
9280     ;;
9281   no:yes:* )
9282     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9283 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9284     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9285 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9286     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9287 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9288     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9289 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9290     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9291 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9292     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9293 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9294
9295     ;;
9296 esac
9297 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9298 $as_echo_n "checking for $ac_header... " >&6; }
9299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9300   $as_echo_n "(cached) " >&6
9301 else
9302   eval "$as_ac_Header=\$ac_header_preproc"
9303 fi
9304 ac_res=`eval 'as_val=${'$as_ac_Header'}
9305                  $as_echo "$as_val"'`
9306                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9307 $as_echo "$ac_res" >&6; }
9308
9309 fi
9310 as_val=`eval 'as_val=${'$as_ac_Header'}
9311                  $as_echo "$as_val"'`
9312    if test "x$as_val" = x""yes; then
9313   cat >>confdefs.h <<_ACEOF
9314 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9315 _ACEOF
9316
9317 fi
9318
9319 done
9320
9321       if test $ac_cv_header_ws2tcpip_h = yes; then
9322         HAVE_WS2TCPIP_H=1
9323       else
9324         HAVE_WS2TCPIP_H=0
9325       fi
9326     fi
9327
9328
9329
9330
9331   :
9332
9333
9334
9335
9336
9337   if test $ac_cv_header_sys_socket_h != yes; then
9338
9339 for ac_header in winsock2.h
9340 do
9341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9343   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9344 $as_echo_n "checking for $ac_header... " >&6; }
9345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9346   $as_echo_n "(cached) " >&6
9347 fi
9348 ac_res=`eval 'as_val=${'$as_ac_Header'}
9349                  $as_echo "$as_val"'`
9350                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9351 $as_echo "$ac_res" >&6; }
9352 else
9353   # Is the header compilable?
9354 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9355 $as_echo_n "checking $ac_header usability... " >&6; }
9356 cat >conftest.$ac_ext <<_ACEOF
9357 /* confdefs.h.  */
9358 _ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h.  */
9362 $ac_includes_default
9363 #include <$ac_header>
9364 _ACEOF
9365 rm -f conftest.$ac_objext
9366 if { (ac_try="$ac_compile"
9367 case "(($ac_try" in
9368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9369   *) ac_try_echo=$ac_try;;
9370 esac
9371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9372 $as_echo "$ac_try_echo") >&5
9373   (eval "$ac_compile") 2>conftest.er1
9374   ac_status=$?
9375   grep -v '^ *+' conftest.er1 >conftest.err
9376   rm -f conftest.er1
9377   cat conftest.err >&5
9378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379   (exit $ac_status); } && {
9380          test -z "$ac_c_werror_flag" ||
9381          test ! -s conftest.err
9382        } && test -s conftest.$ac_objext; then
9383   ac_header_compiler=yes
9384 else
9385   $as_echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9387
9388         ac_header_compiler=no
9389 fi
9390
9391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9393 $as_echo "$ac_header_compiler" >&6; }
9394
9395 # Is the header present?
9396 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9397 $as_echo_n "checking $ac_header presence... " >&6; }
9398 cat >conftest.$ac_ext <<_ACEOF
9399 /* confdefs.h.  */
9400 _ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h.  */
9404 #include <$ac_header>
9405 _ACEOF
9406 if { (ac_try="$ac_cpp conftest.$ac_ext"
9407 case "(($ac_try" in
9408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409   *) ac_try_echo=$ac_try;;
9410 esac
9411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9412 $as_echo "$ac_try_echo") >&5
9413   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9414   ac_status=$?
9415   grep -v '^ *+' conftest.er1 >conftest.err
9416   rm -f conftest.er1
9417   cat conftest.err >&5
9418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); } >/dev/null && {
9420          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9421          test ! -s conftest.err
9422        }; then
9423   ac_header_preproc=yes
9424 else
9425   $as_echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9427
9428   ac_header_preproc=no
9429 fi
9430
9431 rm -f conftest.err conftest.$ac_ext
9432 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9433 $as_echo "$ac_header_preproc" >&6; }
9434
9435 # So?  What about this header?
9436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9437   yes:no: )
9438     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9439 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9440     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9441 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9442     ac_header_preproc=yes
9443     ;;
9444   no:yes:* )
9445     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9446 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9447     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9448 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9449     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9450 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9451     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9452 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9453     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9454 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9455     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9456 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9457
9458     ;;
9459 esac
9460 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9461 $as_echo_n "checking for $ac_header... " >&6; }
9462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9463   $as_echo_n "(cached) " >&6
9464 else
9465   eval "$as_ac_Header=\$ac_header_preproc"
9466 fi
9467 ac_res=`eval 'as_val=${'$as_ac_Header'}
9468                  $as_echo "$as_val"'`
9469                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9470 $as_echo "$ac_res" >&6; }
9471
9472 fi
9473 as_val=`eval 'as_val=${'$as_ac_Header'}
9474                  $as_echo "$as_val"'`
9475    if test "x$as_val" = x""yes; then
9476   cat >>confdefs.h <<_ACEOF
9477 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9478 _ACEOF
9479
9480 fi
9481
9482 done
9483
9484   fi
9485   if test "$ac_cv_header_winsock2_h" = yes; then
9486     HAVE_WINSOCK2_H=1
9487     UNISTD_H_HAVE_WINSOCK2_H=1
9488     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
9489   else
9490     HAVE_WINSOCK2_H=0
9491   fi
9492
9493
9494
9495
9496   fi
9497
9498
9499
9500   GNULIB_GETADDRINFO=0;
9501     HAVE_STRUCT_ADDRINFO=1;
9502   HAVE_DECL_FREEADDRINFO=1;
9503   HAVE_DECL_GAI_STRERROR=1;
9504   HAVE_DECL_GETADDRINFO=1;
9505   HAVE_DECL_GETNAMEINFO=1;
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519   :
9520
9521
9522
9523
9524
9525
9526
9527      if test $gl_cv_have_include_next = yes; then
9528        gl_cv_next_netdb_h='<'netdb.h'>'
9529      else
9530        { $as_echo "$as_me:$LINENO: checking absolute name of <netdb.h>" >&5
9531 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
9532 if test "${gl_cv_next_netdb_h+set}" = set; then
9533   $as_echo_n "(cached) " >&6
9534 else
9535
9536           if test $ac_cv_header_netdb_h = yes; then
9537             cat >conftest.$ac_ext <<_ACEOF
9538 /* confdefs.h.  */
9539 _ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h.  */
9543 #include <netdb.h>
9544
9545 _ACEOF
9546                                                                     case "$host_os" in
9547               aix*) gl_absname_cpp="$ac_cpp -C" ;;
9548               *)    gl_absname_cpp="$ac_cpp" ;;
9549             esac
9550                                     gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9551                sed -n '\#/netdb.h#{
9552                  s#.*"\(.*/netdb.h\)".*#\1#
9553                  s#^/[^/]#//&#
9554                  p
9555                  q
9556                }'`'"'
9557           else
9558             gl_cv_next_netdb_h='<'netdb.h'>'
9559           fi
9560
9561 fi
9562 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_netdb_h" >&5
9563 $as_echo "$gl_cv_next_netdb_h" >&6; }
9564      fi
9565      NEXT_NETDB_H=$gl_cv_next_netdb_h
9566
9567
9568
9569   if test $ac_cv_header_netdb_h = yes; then
9570     cat >conftest.$ac_ext <<_ACEOF
9571 /* confdefs.h.  */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h.  */
9576
9577          #include <netdb.h>
9578          struct addrinfo a;
9579          int b = EAI_OVERFLOW;
9580          int c = AI_NUMERICSERV;
9581
9582 int
9583 main ()
9584 {
9585
9586   ;
9587   return 0;
9588 }
9589 _ACEOF
9590 rm -f conftest.$ac_objext
9591 if { (ac_try="$ac_compile"
9592 case "(($ac_try" in
9593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594   *) ac_try_echo=$ac_try;;
9595 esac
9596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9597 $as_echo "$ac_try_echo") >&5
9598   (eval "$ac_compile") 2>conftest.er1
9599   ac_status=$?
9600   grep -v '^ *+' conftest.er1 >conftest.err
9601   rm -f conftest.er1
9602   cat conftest.err >&5
9603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604   (exit $ac_status); } && {
9605          test -z "$ac_c_werror_flag" ||
9606          test ! -s conftest.err
9607        } && test -s conftest.$ac_objext; then
9608   NETDB_H=''
9609 else
9610   $as_echo "$as_me: failed program was:" >&5
9611 sed 's/^/| /' conftest.$ac_ext >&5
9612
9613         NETDB_H='netdb.h'
9614 fi
9615
9616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9617     HAVE_NETDB_H=1
9618   else
9619     NETDB_H='netdb.h'
9620     HAVE_NETDB_H=0
9621   fi
9622
9623
9624
9625
9626                   HOSTENT_LIB=
9627   gl_saved_libs="$LIBS"
9628   { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9629 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9630 if test "${ac_cv_search_gethostbyname+set}" = set; then
9631   $as_echo_n "(cached) " >&6
9632 else
9633   ac_func_search_save_LIBS=$LIBS
9634 cat >conftest.$ac_ext <<_ACEOF
9635 /* confdefs.h.  */
9636 _ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h.  */
9640
9641 /* Override any GCC internal prototype to avoid an error.
9642    Use char because int might match the return type of a GCC
9643    builtin and then its argument prototype would still apply.  */
9644 #ifdef __cplusplus
9645 extern "C"
9646 #endif
9647 char gethostbyname ();
9648 int
9649 main ()
9650 {
9651 return gethostbyname ();
9652   ;
9653   return 0;
9654 }
9655 _ACEOF
9656 for ac_lib in '' nsl network net; do
9657   if test -z "$ac_lib"; then
9658     ac_res="none required"
9659   else
9660     ac_res=-l$ac_lib
9661     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9662   fi
9663   rm -f conftest.$ac_objext conftest$ac_exeext
9664 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9672   ac_status=$?
9673   grep -v '^ *+' conftest.er1 >conftest.err
9674   rm -f conftest.er1
9675   cat conftest.err >&5
9676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); } && {
9678          test -z "$ac_c_werror_flag" ||
9679          test ! -s conftest.err
9680        } && test -s conftest$ac_exeext && {
9681          test "$cross_compiling" = yes ||
9682          $as_test_x conftest$ac_exeext
9683        }; then
9684   ac_cv_search_gethostbyname=$ac_res
9685 else
9686   $as_echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9688
9689
9690 fi
9691
9692 rm -rf conftest.dSYM
9693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9694       conftest$ac_exeext
9695   if test "${ac_cv_search_gethostbyname+set}" = set; then
9696   break
9697 fi
9698 done
9699 if test "${ac_cv_search_gethostbyname+set}" = set; then
9700   :
9701 else
9702   ac_cv_search_gethostbyname=no
9703 fi
9704 rm conftest.$ac_ext
9705 LIBS=$ac_func_search_save_LIBS
9706 fi
9707 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9708 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9709 ac_res=$ac_cv_search_gethostbyname
9710 if test "$ac_res" != no; then
9711   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9712   if test "$ac_cv_search_gethostbyname" != "none required"; then
9713        HOSTENT_LIB="$ac_cv_search_gethostbyname"
9714      fi
9715 fi
9716
9717   LIBS="$gl_saved_libs"
9718   if test -z "$HOSTENT_LIB"; then
9719
9720 for ac_func in gethostbyname
9721 do
9722 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9723 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9724 $as_echo_n "checking for $ac_func... " >&6; }
9725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9726   $as_echo_n "(cached) " >&6
9727 else
9728   cat >conftest.$ac_ext <<_ACEOF
9729 /* confdefs.h.  */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h.  */
9734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9736 #define $ac_func innocuous_$ac_func
9737
9738 /* System header to define __stub macros and hopefully few prototypes,
9739     which can conflict with char $ac_func (); below.
9740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9741     <limits.h> exists even on freestanding compilers.  */
9742
9743 #ifdef __STDC__
9744 # include <limits.h>
9745 #else
9746 # include <assert.h>
9747 #endif
9748
9749 #undef $ac_func
9750
9751 /* Override any GCC internal prototype to avoid an error.
9752    Use char because int might match the return type of a GCC
9753    builtin and then its argument prototype would still apply.  */
9754 #ifdef __cplusplus
9755 extern "C"
9756 #endif
9757 char $ac_func ();
9758 /* The GNU C library defines this for functions which it implements
9759     to always fail with ENOSYS.  Some functions are actually named
9760     something starting with __ and the normal name is an alias.  */
9761 #if defined __stub_$ac_func || defined __stub___$ac_func
9762 choke me
9763 #endif
9764
9765 int
9766 main ()
9767 {
9768 return $ac_func ();
9769   ;
9770   return 0;
9771 }
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (ac_try="$ac_link"
9775 case "(($ac_try" in
9776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777   *) ac_try_echo=$ac_try;;
9778 esac
9779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9780 $as_echo "$ac_try_echo") >&5
9781   (eval "$ac_link") 2>conftest.er1
9782   ac_status=$?
9783   grep -v '^ *+' conftest.er1 >conftest.err
9784   rm -f conftest.er1
9785   cat conftest.err >&5
9786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); } && {
9788          test -z "$ac_c_werror_flag" ||
9789          test ! -s conftest.err
9790        } && test -s conftest$ac_exeext && {
9791          test "$cross_compiling" = yes ||
9792          $as_test_x conftest$ac_exeext
9793        }; then
9794   eval "$as_ac_var=yes"
9795 else
9796   $as_echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9798
9799         eval "$as_ac_var=no"
9800 fi
9801
9802 rm -rf conftest.dSYM
9803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9804       conftest$ac_exeext conftest.$ac_ext
9805 fi
9806 ac_res=`eval 'as_val=${'$as_ac_var'}
9807                  $as_echo "$as_val"'`
9808                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9809 $as_echo "$ac_res" >&6; }
9810 as_val=`eval 'as_val=${'$as_ac_var'}
9811                  $as_echo "$as_val"'`
9812    if test "x$as_val" = x""yes; then
9813   cat >>confdefs.h <<_ACEOF
9814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9815 _ACEOF
9816
9817 else
9818
9819       { $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
9820 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
9821 if test "${gl_cv_w32_gethostbyname+set}" = set; then
9822   $as_echo_n "(cached) " >&6
9823 else
9824   gl_cv_w32_gethostbyname=no
9825          gl_save_LIBS="$LIBS"
9826          LIBS="$LIBS -lws2_32"
9827          cat >conftest.$ac_ext <<_ACEOF
9828 /* confdefs.h.  */
9829 _ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h.  */
9833
9834 #ifdef HAVE_WINSOCK2_H
9835 #include <winsock2.h>
9836 #endif
9837 #include <stddef.h>
9838
9839 int
9840 main ()
9841 {
9842 gethostbyname(NULL);
9843   ;
9844   return 0;
9845 }
9846 _ACEOF
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (ac_try="$ac_link"
9849 case "(($ac_try" in
9850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851   *) ac_try_echo=$ac_try;;
9852 esac
9853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9854 $as_echo "$ac_try_echo") >&5
9855   (eval "$ac_link") 2>conftest.er1
9856   ac_status=$?
9857   grep -v '^ *+' conftest.er1 >conftest.err
9858   rm -f conftest.er1
9859   cat conftest.err >&5
9860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); } && {
9862          test -z "$ac_c_werror_flag" ||
9863          test ! -s conftest.err
9864        } && test -s conftest$ac_exeext && {
9865          test "$cross_compiling" = yes ||
9866          $as_test_x conftest$ac_exeext
9867        }; then
9868   gl_cv_w32_gethostbyname=yes
9869 else
9870   $as_echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9872
9873
9874 fi
9875
9876 rm -rf conftest.dSYM
9877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9878       conftest$ac_exeext conftest.$ac_ext
9879          LIBS="$gl_save_LIBS"
9880
9881 fi
9882 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
9883 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
9884       if test "$gl_cv_w32_gethostbyname" = "yes"; then
9885         HOSTENT_LIB="-lws2_32"
9886       fi
9887
9888 fi
9889 done
9890
9891   fi
9892
9893
9894
9895                       SERVENT_LIB=
9896   gl_saved_libs="$LIBS"
9897   { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
9898 $as_echo_n "checking for library containing getservbyname... " >&6; }
9899 if test "${ac_cv_search_getservbyname+set}" = set; then
9900   $as_echo_n "(cached) " >&6
9901 else
9902   ac_func_search_save_LIBS=$LIBS
9903 cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h.  */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h.  */
9909
9910 /* Override any GCC internal prototype to avoid an error.
9911    Use char because int might match the return type of a GCC
9912    builtin and then its argument prototype would still apply.  */
9913 #ifdef __cplusplus
9914 extern "C"
9915 #endif
9916 char getservbyname ();
9917 int
9918 main ()
9919 {
9920 return getservbyname ();
9921   ;
9922   return 0;
9923 }
9924 _ACEOF
9925 for ac_lib in '' socket network net; do
9926   if test -z "$ac_lib"; then
9927     ac_res="none required"
9928   else
9929     ac_res=-l$ac_lib
9930     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9931   fi
9932   rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (ac_try="$ac_link"
9934 case "(($ac_try" in
9935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936   *) ac_try_echo=$ac_try;;
9937 esac
9938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9939 $as_echo "$ac_try_echo") >&5
9940   (eval "$ac_link") 2>conftest.er1
9941   ac_status=$?
9942   grep -v '^ *+' conftest.er1 >conftest.err
9943   rm -f conftest.er1
9944   cat conftest.err >&5
9945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); } && {
9947          test -z "$ac_c_werror_flag" ||
9948          test ! -s conftest.err
9949        } && test -s conftest$ac_exeext && {
9950          test "$cross_compiling" = yes ||
9951          $as_test_x conftest$ac_exeext
9952        }; then
9953   ac_cv_search_getservbyname=$ac_res
9954 else
9955   $as_echo "$as_me: failed program was:" >&5
9956 sed 's/^/| /' conftest.$ac_ext >&5
9957
9958
9959 fi
9960
9961 rm -rf conftest.dSYM
9962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9963       conftest$ac_exeext
9964   if test "${ac_cv_search_getservbyname+set}" = set; then
9965   break
9966 fi
9967 done
9968 if test "${ac_cv_search_getservbyname+set}" = set; then
9969   :
9970 else
9971   ac_cv_search_getservbyname=no
9972 fi
9973 rm conftest.$ac_ext
9974 LIBS=$ac_func_search_save_LIBS
9975 fi
9976 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
9977 $as_echo "$ac_cv_search_getservbyname" >&6; }
9978 ac_res=$ac_cv_search_getservbyname
9979 if test "$ac_res" != no; then
9980   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9981   if test "$ac_cv_search_getservbyname" != "none required"; then
9982        SERVENT_LIB="$ac_cv_search_getservbyname"
9983      fi
9984 fi
9985
9986   LIBS="$gl_saved_libs"
9987   if test -z "$SERVENT_LIB"; then
9988
9989 for ac_func in getservbyname
9990 do
9991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9992 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9993 $as_echo_n "checking for $ac_func... " >&6; }
9994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9995   $as_echo_n "(cached) " >&6
9996 else
9997   cat >conftest.$ac_ext <<_ACEOF
9998 /* confdefs.h.  */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h.  */
10003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10005 #define $ac_func innocuous_$ac_func
10006
10007 /* System header to define __stub macros and hopefully few prototypes,
10008     which can conflict with char $ac_func (); below.
10009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10010     <limits.h> exists even on freestanding compilers.  */
10011
10012 #ifdef __STDC__
10013 # include <limits.h>
10014 #else
10015 # include <assert.h>
10016 #endif
10017
10018 #undef $ac_func
10019
10020 /* Override any GCC internal prototype to avoid an error.
10021    Use char because int might match the return type of a GCC
10022    builtin and then its argument prototype would still apply.  */
10023 #ifdef __cplusplus
10024 extern "C"
10025 #endif
10026 char $ac_func ();
10027 /* The GNU C library defines this for functions which it implements
10028     to always fail with ENOSYS.  Some functions are actually named
10029     something starting with __ and the normal name is an alias.  */
10030 #if defined __stub_$ac_func || defined __stub___$ac_func
10031 choke me
10032 #endif
10033
10034 int
10035 main ()
10036 {
10037 return $ac_func ();
10038   ;
10039   return 0;
10040 }
10041 _ACEOF
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046   *) ac_try_echo=$ac_try;;
10047 esac
10048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10049 $as_echo "$ac_try_echo") >&5
10050   (eval "$ac_link") 2>conftest.er1
10051   ac_status=$?
10052   grep -v '^ *+' conftest.er1 >conftest.err
10053   rm -f conftest.er1
10054   cat conftest.err >&5
10055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); } && {
10057          test -z "$ac_c_werror_flag" ||
10058          test ! -s conftest.err
10059        } && test -s conftest$ac_exeext && {
10060          test "$cross_compiling" = yes ||
10061          $as_test_x conftest$ac_exeext
10062        }; then
10063   eval "$as_ac_var=yes"
10064 else
10065   $as_echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10067
10068         eval "$as_ac_var=no"
10069 fi
10070
10071 rm -rf conftest.dSYM
10072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10073       conftest$ac_exeext conftest.$ac_ext
10074 fi
10075 ac_res=`eval 'as_val=${'$as_ac_var'}
10076                  $as_echo "$as_val"'`
10077                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10078 $as_echo "$ac_res" >&6; }
10079 as_val=`eval 'as_val=${'$as_ac_var'}
10080                  $as_echo "$as_val"'`
10081    if test "x$as_val" = x""yes; then
10082   cat >>confdefs.h <<_ACEOF
10083 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10084 _ACEOF
10085
10086 else
10087
10088       { $as_echo "$as_me:$LINENO: checking for getservbyname in winsock2.h and -lws2_32" >&5
10089 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
10090 if test "${gl_cv_w32_getservbyname+set}" = set; then
10091   $as_echo_n "(cached) " >&6
10092 else
10093   gl_cv_w32_getservbyname=no
10094          gl_save_LIBS="$LIBS"
10095          LIBS="$LIBS -lws2_32"
10096          cat >conftest.$ac_ext <<_ACEOF
10097 /* confdefs.h.  */
10098 _ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h.  */
10102
10103 #ifdef HAVE_WINSOCK2_H
10104 #include <winsock2.h>
10105 #endif
10106 #include <stddef.h>
10107
10108 int
10109 main ()
10110 {
10111 getservbyname(NULL,NULL);
10112   ;
10113   return 0;
10114 }
10115 _ACEOF
10116 rm -f conftest.$ac_objext conftest$ac_exeext
10117 if { (ac_try="$ac_link"
10118 case "(($ac_try" in
10119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120   *) ac_try_echo=$ac_try;;
10121 esac
10122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10123 $as_echo "$ac_try_echo") >&5
10124   (eval "$ac_link") 2>conftest.er1
10125   ac_status=$?
10126   grep -v '^ *+' conftest.er1 >conftest.err
10127   rm -f conftest.er1
10128   cat conftest.err >&5
10129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130   (exit $ac_status); } && {
10131          test -z "$ac_c_werror_flag" ||
10132          test ! -s conftest.err
10133        } && test -s conftest$ac_exeext && {
10134          test "$cross_compiling" = yes ||
10135          $as_test_x conftest$ac_exeext
10136        }; then
10137   gl_cv_w32_getservbyname=yes
10138 else
10139   $as_echo "$as_me: failed program was:" >&5
10140 sed 's/^/| /' conftest.$ac_ext >&5
10141
10142
10143 fi
10144
10145 rm -rf conftest.dSYM
10146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10147       conftest$ac_exeext conftest.$ac_ext
10148          LIBS="$gl_save_LIBS"
10149
10150 fi
10151 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getservbyname" >&5
10152 $as_echo "$gl_cv_w32_getservbyname" >&6; }
10153       if test "$gl_cv_w32_getservbyname" = "yes"; then
10154         SERVENT_LIB="-lws2_32"
10155       fi
10156
10157 fi
10158 done
10159
10160   fi
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172   :
10173
10174
10175
10176
10177
10178
10179   { $as_echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
10180 $as_echo_n "checking for IPv4 sockets... " >&6; }
10181   if test "${gl_cv_socket_ipv4+set}" = set; then
10182   $as_echo_n "(cached) " >&6
10183 else
10184   cat >conftest.$ac_ext <<_ACEOF
10185 /* confdefs.h.  */
10186 _ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h.  */
10190 #include <sys/types.h>
10191 #ifdef HAVE_SYS_SOCKET_H
10192 #include <sys/socket.h>
10193 #endif
10194 #ifdef HAVE_NETINET_IN_H
10195 #include <netinet/in.h>
10196 #endif
10197 #ifdef HAVE_WINSOCK2_H
10198 #include <winsock2.h>
10199 #endif
10200 int
10201 main ()
10202 {
10203 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
10204  if (&x && &y && &z) return 0;
10205   ;
10206   return 0;
10207 }
10208 _ACEOF
10209 rm -f conftest.$ac_objext
10210 if { (ac_try="$ac_compile"
10211 case "(($ac_try" in
10212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213   *) ac_try_echo=$ac_try;;
10214 esac
10215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10216 $as_echo "$ac_try_echo") >&5
10217   (eval "$ac_compile") 2>conftest.er1
10218   ac_status=$?
10219   grep -v '^ *+' conftest.er1 >conftest.err
10220   rm -f conftest.er1
10221   cat conftest.err >&5
10222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); } && {
10224          test -z "$ac_c_werror_flag" ||
10225          test ! -s conftest.err
10226        } && test -s conftest.$ac_objext; then
10227   gl_cv_socket_ipv4=yes
10228 else
10229   $as_echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10231
10232         gl_cv_socket_ipv4=no
10233 fi
10234
10235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10236 fi
10237
10238   { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
10239 $as_echo "$gl_cv_socket_ipv4" >&6; }
10240   if test $gl_cv_socket_ipv4 = yes; then
10241
10242 cat >>confdefs.h <<\_ACEOF
10243 #define HAVE_IPV4 1
10244 _ACEOF
10245
10246   fi
10247
10248   { $as_echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
10249 $as_echo_n "checking for IPv6 sockets... " >&6; }
10250   if test "${gl_cv_socket_ipv6+set}" = set; then
10251   $as_echo_n "(cached) " >&6
10252 else
10253   cat >conftest.$ac_ext <<_ACEOF
10254 /* confdefs.h.  */
10255 _ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h.  */
10259 #include <sys/types.h>
10260 #ifdef HAVE_SYS_SOCKET_H
10261 #include <sys/socket.h>
10262 #endif
10263 #ifdef HAVE_NETINET_IN_H
10264 #include <netinet/in.h>
10265 #endif
10266 #ifdef HAVE_WINSOCK2_H
10267 #include <winsock2.h>
10268 #endif
10269 int
10270 main ()
10271 {
10272 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
10273  if (&x && &y && &z) return 0;
10274   ;
10275   return 0;
10276 }
10277 _ACEOF
10278 rm -f conftest.$ac_objext
10279 if { (ac_try="$ac_compile"
10280 case "(($ac_try" in
10281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282   *) ac_try_echo=$ac_try;;
10283 esac
10284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10285 $as_echo "$ac_try_echo") >&5
10286   (eval "$ac_compile") 2>conftest.er1
10287   ac_status=$?
10288   grep -v '^ *+' conftest.er1 >conftest.err
10289   rm -f conftest.er1
10290   cat conftest.err >&5
10291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); } && {
10293          test -z "$ac_c_werror_flag" ||
10294          test ! -s conftest.err
10295        } && test -s conftest.$ac_objext; then
10296   gl_cv_socket_ipv6=yes
10297 else
10298   $as_echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10300
10301         gl_cv_socket_ipv6=no
10302 fi
10303
10304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10305 fi
10306
10307   { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
10308 $as_echo "$gl_cv_socket_ipv6" >&6; }
10309   if test $gl_cv_socket_ipv6 = yes; then
10310
10311 cat >>confdefs.h <<\_ACEOF
10312 #define HAVE_IPV6 1
10313 _ACEOF
10314
10315   fi
10316
10317
10318   if test -z "$GETOPT_H"; then
10319
10320 for ac_header in getopt.h
10321 do
10322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10324   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10325 $as_echo_n "checking for $ac_header... " >&6; }
10326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10327   $as_echo_n "(cached) " >&6
10328 fi
10329 ac_res=`eval 'as_val=${'$as_ac_Header'}
10330                  $as_echo "$as_val"'`
10331                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10332 $as_echo "$ac_res" >&6; }
10333 else
10334   # Is the header compilable?
10335 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10336 $as_echo_n "checking $ac_header usability... " >&6; }
10337 cat >conftest.$ac_ext <<_ACEOF
10338 /* confdefs.h.  */
10339 _ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h.  */
10343 $ac_includes_default
10344 #include <$ac_header>
10345 _ACEOF
10346 rm -f conftest.$ac_objext
10347 if { (ac_try="$ac_compile"
10348 case "(($ac_try" in
10349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10350   *) ac_try_echo=$ac_try;;
10351 esac
10352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10353 $as_echo "$ac_try_echo") >&5
10354   (eval "$ac_compile") 2>conftest.er1
10355   ac_status=$?
10356   grep -v '^ *+' conftest.er1 >conftest.err
10357   rm -f conftest.er1
10358   cat conftest.err >&5
10359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); } && {
10361          test -z "$ac_c_werror_flag" ||
10362          test ! -s conftest.err
10363        } && test -s conftest.$ac_objext; then
10364   ac_header_compiler=yes
10365 else
10366   $as_echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10368
10369         ac_header_compiler=no
10370 fi
10371
10372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10373 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10374 $as_echo "$ac_header_compiler" >&6; }
10375
10376 # Is the header present?
10377 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10378 $as_echo_n "checking $ac_header presence... " >&6; }
10379 cat >conftest.$ac_ext <<_ACEOF
10380 /* confdefs.h.  */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h.  */
10385 #include <$ac_header>
10386 _ACEOF
10387 if { (ac_try="$ac_cpp conftest.$ac_ext"
10388 case "(($ac_try" in
10389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390   *) ac_try_echo=$ac_try;;
10391 esac
10392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10393 $as_echo "$ac_try_echo") >&5
10394   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10395   ac_status=$?
10396   grep -v '^ *+' conftest.er1 >conftest.err
10397   rm -f conftest.er1
10398   cat conftest.err >&5
10399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400   (exit $ac_status); } >/dev/null && {
10401          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10402          test ! -s conftest.err
10403        }; then
10404   ac_header_preproc=yes
10405 else
10406   $as_echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10408
10409   ac_header_preproc=no
10410 fi
10411
10412 rm -f conftest.err conftest.$ac_ext
10413 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10414 $as_echo "$ac_header_preproc" >&6; }
10415
10416 # So?  What about this header?
10417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10418   yes:no: )
10419     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10420 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10421     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10422 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10423     ac_header_preproc=yes
10424     ;;
10425   no:yes:* )
10426     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10427 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10428     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10429 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10430     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10431 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10432     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10433 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10434     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10435 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10436     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10437 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10438
10439     ;;
10440 esac
10441 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10442 $as_echo_n "checking for $ac_header... " >&6; }
10443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10444   $as_echo_n "(cached) " >&6
10445 else
10446   eval "$as_ac_Header=\$ac_header_preproc"
10447 fi
10448 ac_res=`eval 'as_val=${'$as_ac_Header'}
10449                  $as_echo "$as_val"'`
10450                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10451 $as_echo "$ac_res" >&6; }
10452
10453 fi
10454 as_val=`eval 'as_val=${'$as_ac_Header'}
10455                  $as_echo "$as_val"'`
10456    if test "x$as_val" = x""yes; then
10457   cat >>confdefs.h <<_ACEOF
10458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10459 _ACEOF
10460
10461 else
10462   GETOPT_H=getopt.h
10463 fi
10464
10465 done
10466
10467   fi
10468
10469   if test -z "$GETOPT_H"; then
10470
10471 for ac_func in getopt_long_only
10472 do
10473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10474 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10475 $as_echo_n "checking for $ac_func... " >&6; }
10476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10477   $as_echo_n "(cached) " >&6
10478 else
10479   cat >conftest.$ac_ext <<_ACEOF
10480 /* confdefs.h.  */
10481 _ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h.  */
10485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10487 #define $ac_func innocuous_$ac_func
10488
10489 /* System header to define __stub macros and hopefully few prototypes,
10490     which can conflict with char $ac_func (); below.
10491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10492     <limits.h> exists even on freestanding compilers.  */
10493
10494 #ifdef __STDC__
10495 # include <limits.h>
10496 #else
10497 # include <assert.h>
10498 #endif
10499
10500 #undef $ac_func
10501
10502 /* Override any GCC internal prototype to avoid an error.
10503    Use char because int might match the return type of a GCC
10504    builtin and then its argument prototype would still apply.  */
10505 #ifdef __cplusplus
10506 extern "C"
10507 #endif
10508 char $ac_func ();
10509 /* The GNU C library defines this for functions which it implements
10510     to always fail with ENOSYS.  Some functions are actually named
10511     something starting with __ and the normal name is an alias.  */
10512 #if defined __stub_$ac_func || defined __stub___$ac_func
10513 choke me
10514 #endif
10515
10516 int
10517 main ()
10518 {
10519 return $ac_func ();
10520   ;
10521   return 0;
10522 }
10523 _ACEOF
10524 rm -f conftest.$ac_objext conftest$ac_exeext
10525 if { (ac_try="$ac_link"
10526 case "(($ac_try" in
10527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528   *) ac_try_echo=$ac_try;;
10529 esac
10530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10531 $as_echo "$ac_try_echo") >&5
10532   (eval "$ac_link") 2>conftest.er1
10533   ac_status=$?
10534   grep -v '^ *+' conftest.er1 >conftest.err
10535   rm -f conftest.er1
10536   cat conftest.err >&5
10537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); } && {
10539          test -z "$ac_c_werror_flag" ||
10540          test ! -s conftest.err
10541        } && test -s conftest$ac_exeext && {
10542          test "$cross_compiling" = yes ||
10543          $as_test_x conftest$ac_exeext
10544        }; then
10545   eval "$as_ac_var=yes"
10546 else
10547   $as_echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10549
10550         eval "$as_ac_var=no"
10551 fi
10552
10553 rm -rf conftest.dSYM
10554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10555       conftest$ac_exeext conftest.$ac_ext
10556 fi
10557 ac_res=`eval 'as_val=${'$as_ac_var'}
10558                  $as_echo "$as_val"'`
10559                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10560 $as_echo "$ac_res" >&6; }
10561 as_val=`eval 'as_val=${'$as_ac_var'}
10562                  $as_echo "$as_val"'`
10563    if test "x$as_val" = x""yes; then
10564   cat >>confdefs.h <<_ACEOF
10565 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10566 _ACEOF
10567
10568 else
10569   GETOPT_H=getopt.h
10570 fi
10571 done
10572
10573   fi
10574
10575       if test -z "$GETOPT_H"; then
10576     { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
10577 $as_echo_n "checking whether optreset is declared... " >&6; }
10578 if test "${ac_cv_have_decl_optreset+set}" = set; then
10579   $as_echo_n "(cached) " >&6
10580 else
10581   cat >conftest.$ac_ext <<_ACEOF
10582 /* confdefs.h.  */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h.  */
10587 #include <getopt.h>
10588
10589 int
10590 main ()
10591 {
10592 #ifndef optreset
10593   (void) optreset;
10594 #endif
10595
10596   ;
10597   return 0;
10598 }
10599 _ACEOF
10600 rm -f conftest.$ac_objext
10601 if { (ac_try="$ac_compile"
10602 case "(($ac_try" in
10603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604   *) ac_try_echo=$ac_try;;
10605 esac
10606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10607 $as_echo "$ac_try_echo") >&5
10608   (eval "$ac_compile") 2>conftest.er1
10609   ac_status=$?
10610   grep -v '^ *+' conftest.er1 >conftest.err
10611   rm -f conftest.er1
10612   cat conftest.err >&5
10613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); } && {
10615          test -z "$ac_c_werror_flag" ||
10616          test ! -s conftest.err
10617        } && test -s conftest.$ac_objext; then
10618   ac_cv_have_decl_optreset=yes
10619 else
10620   $as_echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10622
10623         ac_cv_have_decl_optreset=no
10624 fi
10625
10626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10627 fi
10628 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
10629 $as_echo "$ac_cv_have_decl_optreset" >&6; }
10630 if test "x$ac_cv_have_decl_optreset" = x""yes; then
10631   GETOPT_H=getopt.h
10632 fi
10633
10634   fi
10635
10636       if test -z "$GETOPT_H"; then
10637     { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
10638 $as_echo_n "checking for working GNU getopt function... " >&6; }
10639 if test "${gl_cv_func_gnu_getopt+set}" = set; then
10640   $as_echo_n "(cached) " >&6
10641 else
10642   if test "$cross_compiling" = yes; then
10643                          { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
10644 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
10645 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
10646   $as_echo_n "(cached) " >&6
10647 else
10648   cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h.  */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h.  */
10654 #include <getopt.h>
10655
10656 int
10657 main ()
10658 {
10659 #ifndef getopt_clip
10660   (void) getopt_clip;
10661 #endif
10662
10663   ;
10664   return 0;
10665 }
10666 _ACEOF
10667 rm -f conftest.$ac_objext
10668 if { (ac_try="$ac_compile"
10669 case "(($ac_try" in
10670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671   *) ac_try_echo=$ac_try;;
10672 esac
10673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10674 $as_echo "$ac_try_echo") >&5
10675   (eval "$ac_compile") 2>conftest.er1
10676   ac_status=$?
10677   grep -v '^ *+' conftest.er1 >conftest.err
10678   rm -f conftest.er1
10679   cat conftest.err >&5
10680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); } && {
10682          test -z "$ac_c_werror_flag" ||
10683          test ! -s conftest.err
10684        } && test -s conftest.$ac_objext; then
10685   ac_cv_have_decl_getopt_clip=yes
10686 else
10687   $as_echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10689
10690         ac_cv_have_decl_getopt_clip=no
10691 fi
10692
10693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10694 fi
10695 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
10696 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
10697 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
10698   gl_cv_func_gnu_getopt=no
10699 else
10700   gl_cv_func_gnu_getopt=yes
10701 fi
10702
10703 else
10704   cat >conftest.$ac_ext <<_ACEOF
10705 /* confdefs.h.  */
10706 _ACEOF
10707 cat confdefs.h >>conftest.$ac_ext
10708 cat >>conftest.$ac_ext <<_ACEOF
10709 /* end confdefs.h.  */
10710 #include <getopt.h>
10711 int
10712 main ()
10713 {
10714
10715              char *myargv[3];
10716              myargv[0] = "conftest";
10717              myargv[1] = "-+";
10718              myargv[2] = 0;
10719              return getopt (2, myargv, "+a") != '?';
10720
10721   ;
10722   return 0;
10723 }
10724 _ACEOF
10725 rm -f conftest$ac_exeext
10726 if { (ac_try="$ac_link"
10727 case "(($ac_try" in
10728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729   *) ac_try_echo=$ac_try;;
10730 esac
10731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10732 $as_echo "$ac_try_echo") >&5
10733   (eval "$ac_link") 2>&5
10734   ac_status=$?
10735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10737   { (case "(($ac_try" in
10738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739   *) ac_try_echo=$ac_try;;
10740 esac
10741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10742 $as_echo "$ac_try_echo") >&5
10743   (eval "$ac_try") 2>&5
10744   ac_status=$?
10745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); }; }; then
10747   gl_cv_func_gnu_getopt=yes
10748 else
10749   $as_echo "$as_me: program exited with status $ac_status" >&5
10750 $as_echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10752
10753 ( exit $ac_status )
10754 gl_cv_func_gnu_getopt=no
10755 fi
10756 rm -rf conftest.dSYM
10757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10758 fi
10759
10760
10761 fi
10762 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
10763 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
10764     if test "$gl_cv_func_gnu_getopt" = "no"; then
10765       GETOPT_H=getopt.h
10766     fi
10767   fi
10768
10769
10770       { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10771 $as_echo_n "checking whether getenv is declared... " >&6; }
10772 if test "${ac_cv_have_decl_getenv+set}" = set; then
10773   $as_echo_n "(cached) " >&6
10774 else
10775   cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h.  */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h.  */
10781 $ac_includes_default
10782 int
10783 main ()
10784 {
10785 #ifndef getenv
10786   (void) getenv;
10787 #endif
10788
10789   ;
10790   return 0;
10791 }
10792 _ACEOF
10793 rm -f conftest.$ac_objext
10794 if { (ac_try="$ac_compile"
10795 case "(($ac_try" in
10796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797   *) ac_try_echo=$ac_try;;
10798 esac
10799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10800 $as_echo "$ac_try_echo") >&5
10801   (eval "$ac_compile") 2>conftest.er1
10802   ac_status=$?
10803   grep -v '^ *+' conftest.er1 >conftest.err
10804   rm -f conftest.er1
10805   cat conftest.err >&5
10806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); } && {
10808          test -z "$ac_c_werror_flag" ||
10809          test ! -s conftest.err
10810        } && test -s conftest.$ac_objext; then
10811   ac_cv_have_decl_getenv=yes
10812 else
10813   $as_echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10815
10816         ac_cv_have_decl_getenv=no
10817 fi
10818
10819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10820 fi
10821 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10822 $as_echo "$ac_cv_have_decl_getenv" >&6; }
10823 if test "x$ac_cv_have_decl_getenv" = x""yes; then
10824
10825 cat >>confdefs.h <<_ACEOF
10826 #define HAVE_DECL_GETENV 1
10827 _ACEOF
10828
10829
10830 else
10831   cat >>confdefs.h <<_ACEOF
10832 #define HAVE_DECL_GETENV 0
10833 _ACEOF
10834
10835
10836 fi
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852   :
10853
10854
10855
10856
10857
10858
10859
10860      if test $gl_cv_have_include_next = yes; then
10861        gl_cv_next_sys_time_h='<'sys/time.h'>'
10862      else
10863        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
10864 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
10865 if test "${gl_cv_next_sys_time_h+set}" = set; then
10866   $as_echo_n "(cached) " >&6
10867 else
10868
10869           if test $ac_cv_header_sys_time_h = yes; then
10870             cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h.  */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h.  */
10876 #include <sys/time.h>
10877
10878 _ACEOF
10879                                                                     case "$host_os" in
10880               aix*) gl_absname_cpp="$ac_cpp -C" ;;
10881               *)    gl_absname_cpp="$ac_cpp" ;;
10882             esac
10883                                     gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10884                sed -n '\#/sys/time.h#{
10885                  s#.*"\(.*/sys/time.h\)".*#\1#
10886                  s#^/[^/]#//&#
10887                  p
10888                  q
10889                }'`'"'
10890           else
10891             gl_cv_next_sys_time_h='<'sys/time.h'>'
10892           fi
10893
10894 fi
10895 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
10896 $as_echo "$gl_cv_next_sys_time_h" >&6; }
10897      fi
10898      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
10899
10900
10901
10902
10903   if test $ac_cv_header_sys_time_h = yes; then
10904     HAVE_SYS_TIME_H=1
10905   else
10906     HAVE_SYS_TIME_H=0
10907   fi
10908
10909
10910   { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
10911 $as_echo_n "checking for struct timeval... " >&6; }
10912 if test "${gl_cv_sys_struct_timeval+set}" = set; then
10913   $as_echo_n "(cached) " >&6
10914 else
10915   cat >conftest.$ac_ext <<_ACEOF
10916 /* confdefs.h.  */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h.  */
10921 #if HAVE_SYS_TIME_H
10922              #include <sys/time.h>
10923             #endif
10924             #include <time.h>
10925
10926 int
10927 main ()
10928 {
10929 static struct timeval x; x.tv_sec = x.tv_usec;
10930   ;
10931   return 0;
10932 }
10933 _ACEOF
10934 rm -f conftest.$ac_objext
10935 if { (ac_try="$ac_compile"
10936 case "(($ac_try" in
10937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938   *) ac_try_echo=$ac_try;;
10939 esac
10940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10941 $as_echo "$ac_try_echo") >&5
10942   (eval "$ac_compile") 2>conftest.er1
10943   ac_status=$?
10944   grep -v '^ *+' conftest.er1 >conftest.err
10945   rm -f conftest.er1
10946   cat conftest.err >&5
10947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); } && {
10949          test -z "$ac_c_werror_flag" ||
10950          test ! -s conftest.err
10951        } && test -s conftest.$ac_objext; then
10952   gl_cv_sys_struct_timeval=yes
10953 else
10954   $as_echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10956
10957         gl_cv_sys_struct_timeval=no
10958 fi
10959
10960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961 fi
10962 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
10963 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
10964   if test $gl_cv_sys_struct_timeval = yes; then
10965     HAVE_STRUCT_TIMEVAL=1
10966   else
10967     HAVE_STRUCT_TIMEVAL=0
10968   fi
10969
10970
10971     REPLACE_GETTIMEOFDAY=0
10972
10973   if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
10974     SYS_TIME_H=sys/time.h
10975   else
10976     SYS_TIME_H=
10977   fi
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990       { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10991 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
10992 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10993   $as_echo_n "(cached) " >&6
10994 else
10995   cat >conftest.$ac_ext <<_ACEOF
10996 /* confdefs.h.  */
10997 _ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h.  */
11001 $ac_includes_default
11002 int
11003 main ()
11004 {
11005 #ifndef getc_unlocked
11006   (void) getc_unlocked;
11007 #endif
11008
11009   ;
11010   return 0;
11011 }
11012 _ACEOF
11013 rm -f conftest.$ac_objext
11014 if { (ac_try="$ac_compile"
11015 case "(($ac_try" in
11016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017   *) ac_try_echo=$ac_try;;
11018 esac
11019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11020 $as_echo "$ac_try_echo") >&5
11021   (eval "$ac_compile") 2>conftest.er1
11022   ac_status=$?
11023   grep -v '^ *+' conftest.er1 >conftest.err
11024   rm -f conftest.er1
11025   cat conftest.err >&5
11026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027   (exit $ac_status); } && {
11028          test -z "$ac_c_werror_flag" ||
11029          test ! -s conftest.err
11030        } && test -s conftest.$ac_objext; then
11031   ac_cv_have_decl_getc_unlocked=yes
11032 else
11033   $as_echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11035
11036         ac_cv_have_decl_getc_unlocked=no
11037 fi
11038
11039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11040 fi
11041 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11042 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
11043 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
11044
11045 cat >>confdefs.h <<_ACEOF
11046 #define HAVE_DECL_GETC_UNLOCKED 1
11047 _ACEOF
11048
11049
11050 else
11051   cat >>confdefs.h <<_ACEOF
11052 #define HAVE_DECL_GETC_UNLOCKED 0
11053 _ACEOF
11054
11055
11056 fi
11057
11058
11059
11060
11061     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
11062 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
11063 if test "${ac_cv_gnu_library_2_1+set}" = set; then
11064   $as_echo_n "(cached) " >&6
11065 else
11066   cat >conftest.$ac_ext <<_ACEOF
11067 /* confdefs.h.  */
11068 _ACEOF
11069 cat confdefs.h >>conftest.$ac_ext
11070 cat >>conftest.$ac_ext <<_ACEOF
11071 /* end confdefs.h.  */
11072
11073 #include <features.h>
11074 #ifdef __GNU_LIBRARY__
11075  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11076   Lucky GNU user
11077  #endif
11078 #endif
11079
11080 _ACEOF
11081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11082   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
11083   ac_cv_gnu_library_2_1=yes
11084 else
11085   ac_cv_gnu_library_2_1=no
11086 fi
11087 rm -f conftest*
11088
11089
11090
11091 fi
11092 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
11093 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11094
11095     GLIBC21="$ac_cv_gnu_library_2_1"
11096
11097
11098
11099       if test "X$prefix" = "XNONE"; then
11100     acl_final_prefix="$ac_default_prefix"
11101   else
11102     acl_final_prefix="$prefix"
11103   fi
11104   if test "X$exec_prefix" = "XNONE"; then
11105     acl_final_exec_prefix='${prefix}'
11106   else
11107     acl_final_exec_prefix="$exec_prefix"
11108   fi
11109   acl_save_prefix="$prefix"
11110   prefix="$acl_final_prefix"
11111   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11112   prefix="$acl_save_prefix"
11113
11114
11115 # Check whether --with-gnu-ld was given.
11116 if test "${with_gnu_ld+set}" = set; then
11117   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11118 else
11119   with_gnu_ld=no
11120 fi
11121
11122 # Prepare PATH_SEPARATOR.
11123 # The user is always right.
11124 if test "${PATH_SEPARATOR+set}" != set; then
11125   echo "#! /bin/sh" >conf$$.sh
11126   echo  "exit 0"   >>conf$$.sh
11127   chmod +x conf$$.sh
11128   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11129     PATH_SEPARATOR=';'
11130   else
11131     PATH_SEPARATOR=:
11132   fi
11133   rm -f conf$$.sh
11134 fi
11135 ac_prog=ld
11136 if test "$GCC" = yes; then
11137   # Check if gcc -print-prog-name=ld gives a path.
11138   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11139 $as_echo_n "checking for ld used by GCC... " >&6; }
11140   case $host in
11141   *-*-mingw*)
11142     # gcc leaves a trailing carriage return which upsets mingw
11143     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11144   *)
11145     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11146   esac
11147   case $ac_prog in
11148     # Accept absolute paths.
11149     [\\/]* | [A-Za-z]:[\\/]*)
11150       re_direlt='/[^/][^/]*/\.\./'
11151       # Canonicalize the path of ld
11152       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11153       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11154         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11155       done
11156       test -z "$LD" && LD="$ac_prog"
11157       ;;
11158   "")
11159     # If it fails, then pretend we aren't using GCC.
11160     ac_prog=ld
11161     ;;
11162   *)
11163     # If it is relative, then search for the first ld in PATH.
11164     with_gnu_ld=unknown
11165     ;;
11166   esac
11167 elif test "$with_gnu_ld" = yes; then
11168   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11169 $as_echo_n "checking for GNU ld... " >&6; }
11170 else
11171   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11172 $as_echo_n "checking for non-GNU ld... " >&6; }
11173 fi
11174 if test "${acl_cv_path_LD+set}" = set; then
11175   $as_echo_n "(cached) " >&6
11176 else
11177   if test -z "$LD"; then
11178   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11179   for ac_dir in $PATH; do
11180     test -z "$ac_dir" && ac_dir=.
11181     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11182       acl_cv_path_LD="$ac_dir/$ac_prog"
11183       # Check to see if the program is GNU ld.  I'd rather use --version,
11184       # but apparently some GNU ld's only accept -v.
11185       # Break only if it was the GNU/non-GNU ld that we prefer.
11186       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11187       *GNU* | *'with BFD'*)
11188         test "$with_gnu_ld" != no && break ;;
11189       *)
11190         test "$with_gnu_ld" != yes && break ;;
11191       esac
11192     fi
11193   done
11194   IFS="$ac_save_ifs"
11195 else
11196   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11197 fi
11198 fi
11199
11200 LD="$acl_cv_path_LD"
11201 if test -n "$LD"; then
11202   { $as_echo "$as_me:$LINENO: result: $LD" >&5
11203 $as_echo "$LD" >&6; }
11204 else
11205   { $as_echo "$as_me:$LINENO: result: no" >&5
11206 $as_echo "no" >&6; }
11207 fi
11208 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11209 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11210    { (exit 1); exit 1; }; }
11211 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11212 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11213 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11214   $as_echo_n "(cached) " >&6
11215 else
11216   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11217 case `$LD -v 2>&1 </dev/null` in
11218 *GNU* | *'with BFD'*)
11219   acl_cv_prog_gnu_ld=yes ;;
11220 *)
11221   acl_cv_prog_gnu_ld=no ;;
11222 esac
11223 fi
11224 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11225 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11226 with_gnu_ld=$acl_cv_prog_gnu_ld
11227
11228
11229
11230
11231                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11232 $as_echo_n "checking for shared library run path origin... " >&6; }
11233 if test "${acl_cv_rpath+set}" = set; then
11234   $as_echo_n "(cached) " >&6
11235 else
11236
11237     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11238     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11239     . ./conftest.sh
11240     rm -f ./conftest.sh
11241     acl_cv_rpath=done
11242
11243 fi
11244 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11245 $as_echo "$acl_cv_rpath" >&6; }
11246   wl="$acl_cv_wl"
11247   libext="$acl_cv_libext"
11248   shlibext="$acl_cv_shlibext"
11249   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11250   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11251   hardcode_direct="$acl_cv_hardcode_direct"
11252   hardcode_minus_L="$acl_cv_hardcode_minus_L"
11253     # Check whether --enable-rpath was given.
11254 if test "${enable_rpath+set}" = set; then
11255   enableval=$enable_rpath; :
11256 else
11257   enable_rpath=yes
11258 fi
11259
11260
11261
11262                   acl_libdirstem=lib
11263   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11264   if test -n "$searchpath"; then
11265     acl_save_IFS="${IFS=        }"; IFS=":"
11266     for searchdir in $searchpath; do
11267       if test -d "$searchdir"; then
11268         case "$searchdir" in
11269           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11270           *) searchdir=`cd "$searchdir" && pwd`
11271              case "$searchdir" in
11272                */lib64 ) acl_libdirstem=lib64 ;;
11273              esac ;;
11274         esac
11275       fi
11276     done
11277     IFS="$acl_save_IFS"
11278   fi
11279
11280
11281
11282   gl_threads_api=none
11283   LIBTHREAD=
11284   LTLIBTHREAD=
11285   LIBMULTITHREAD=
11286   LTLIBMULTITHREAD=
11287   if test "$gl_use_threads" != no; then
11288         { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
11289 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
11290     gl_have_weak=no
11291     cat >conftest.$ac_ext <<_ACEOF
11292 /* confdefs.h.  */
11293 _ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h.  */
11297 extern void xyzzy ();
11298 #pragma weak xyzzy
11299 int
11300 main ()
11301 {
11302 xyzzy();
11303   ;
11304   return 0;
11305 }
11306 _ACEOF
11307 rm -f conftest.$ac_objext conftest$ac_exeext
11308 if { (ac_try="$ac_link"
11309 case "(($ac_try" in
11310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311   *) ac_try_echo=$ac_try;;
11312 esac
11313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11314 $as_echo "$ac_try_echo") >&5
11315   (eval "$ac_link") 2>conftest.er1
11316   ac_status=$?
11317   grep -v '^ *+' conftest.er1 >conftest.err
11318   rm -f conftest.er1
11319   cat conftest.err >&5
11320   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); } && {
11322          test -z "$ac_c_werror_flag" ||
11323          test ! -s conftest.err
11324        } && test -s conftest$ac_exeext && {
11325          test "$cross_compiling" = yes ||
11326          $as_test_x conftest$ac_exeext
11327        }; then
11328   gl_have_weak=yes
11329 else
11330   $as_echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11332
11333
11334 fi
11335
11336 rm -rf conftest.dSYM
11337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11338       conftest$ac_exeext conftest.$ac_ext
11339     { $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
11340 $as_echo "$gl_have_weak" >&6; }
11341     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
11342       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
11343       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
11344       if test "${ac_cv_header_pthread_h+set}" = set; then
11345   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
11346 $as_echo_n "checking for pthread.h... " >&6; }
11347 if test "${ac_cv_header_pthread_h+set}" = set; then
11348   $as_echo_n "(cached) " >&6
11349 fi
11350 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
11351 $as_echo "$ac_cv_header_pthread_h" >&6; }
11352 else
11353   # Is the header compilable?
11354 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
11355 $as_echo_n "checking pthread.h usability... " >&6; }
11356 cat >conftest.$ac_ext <<_ACEOF
11357 /* confdefs.h.  */
11358 _ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h.  */
11362 $ac_includes_default
11363 #include <pthread.h>
11364 _ACEOF
11365 rm -f conftest.$ac_objext
11366 if { (ac_try="$ac_compile"
11367 case "(($ac_try" in
11368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369   *) ac_try_echo=$ac_try;;
11370 esac
11371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11372 $as_echo "$ac_try_echo") >&5
11373   (eval "$ac_compile") 2>conftest.er1
11374   ac_status=$?
11375   grep -v '^ *+' conftest.er1 >conftest.err
11376   rm -f conftest.er1
11377   cat conftest.err >&5
11378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); } && {
11380          test -z "$ac_c_werror_flag" ||
11381          test ! -s conftest.err
11382        } && test -s conftest.$ac_objext; then
11383   ac_header_compiler=yes
11384 else
11385   $as_echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11387
11388         ac_header_compiler=no
11389 fi
11390
11391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11392 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11393 $as_echo "$ac_header_compiler" >&6; }
11394
11395 # Is the header present?
11396 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
11397 $as_echo_n "checking pthread.h presence... " >&6; }
11398 cat >conftest.$ac_ext <<_ACEOF
11399 /* confdefs.h.  */
11400 _ACEOF
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h.  */
11404 #include <pthread.h>
11405 _ACEOF
11406 if { (ac_try="$ac_cpp conftest.$ac_ext"
11407 case "(($ac_try" in
11408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409   *) ac_try_echo=$ac_try;;
11410 esac
11411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11412 $as_echo "$ac_try_echo") >&5
11413   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11414   ac_status=$?
11415   grep -v '^ *+' conftest.er1 >conftest.err
11416   rm -f conftest.er1
11417   cat conftest.err >&5
11418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419   (exit $ac_status); } >/dev/null && {
11420          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11421          test ! -s conftest.err
11422        }; then
11423   ac_header_preproc=yes
11424 else
11425   $as_echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11427
11428   ac_header_preproc=no
11429 fi
11430
11431 rm -f conftest.err conftest.$ac_ext
11432 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11433 $as_echo "$ac_header_preproc" >&6; }
11434
11435 # So?  What about this header?
11436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11437   yes:no: )
11438     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
11439 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11440     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
11441 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
11442     ac_header_preproc=yes
11443     ;;
11444   no:yes:* )
11445     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
11446 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
11447     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
11448 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
11449     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
11450 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
11451     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
11452 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11453     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
11454 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
11455     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
11456 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
11457
11458     ;;
11459 esac
11460 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
11461 $as_echo_n "checking for pthread.h... " >&6; }
11462 if test "${ac_cv_header_pthread_h+set}" = set; then
11463   $as_echo_n "(cached) " >&6
11464 else
11465   ac_cv_header_pthread_h=$ac_header_preproc
11466 fi
11467 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
11468 $as_echo "$ac_cv_header_pthread_h" >&6; }
11469
11470 fi
11471 if test "x$ac_cv_header_pthread_h" = x""yes; then
11472   gl_have_pthread_h=yes
11473 else
11474   gl_have_pthread_h=no
11475 fi
11476
11477
11478       if test "$gl_have_pthread_h" = yes; then
11479         # Other possible tests:
11480         #   -lpthreads (FSU threads, PCthreads)
11481         #   -lgthreads
11482         gl_have_pthread=
11483         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
11484         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
11485         # the second one only in libpthread, and lock.c needs it.
11486         cat >conftest.$ac_ext <<_ACEOF
11487 /* confdefs.h.  */
11488 _ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h.  */
11492 #include <pthread.h>
11493 int
11494 main ()
11495 {
11496 pthread_mutex_lock((pthread_mutex_t*)0);
11497            pthread_mutexattr_init((pthread_mutexattr_t*)0);
11498   ;
11499   return 0;
11500 }
11501 _ACEOF
11502 rm -f conftest.$ac_objext conftest$ac_exeext
11503 if { (ac_try="$ac_link"
11504 case "(($ac_try" in
11505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506   *) ac_try_echo=$ac_try;;
11507 esac
11508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11509 $as_echo "$ac_try_echo") >&5
11510   (eval "$ac_link") 2>conftest.er1
11511   ac_status=$?
11512   grep -v '^ *+' conftest.er1 >conftest.err
11513   rm -f conftest.er1
11514   cat conftest.err >&5
11515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); } && {
11517          test -z "$ac_c_werror_flag" ||
11518          test ! -s conftest.err
11519        } && test -s conftest$ac_exeext && {
11520          test "$cross_compiling" = yes ||
11521          $as_test_x conftest$ac_exeext
11522        }; then
11523   gl_have_pthread=yes
11524 else
11525   $as_echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11527
11528
11529 fi
11530
11531 rm -rf conftest.dSYM
11532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11533       conftest$ac_exeext conftest.$ac_ext
11534         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
11535         # since it is defined as a macro on OSF/1.)
11536         if test -n "$gl_have_pthread"; then
11537           # The program links fine without libpthread. But it may actually
11538           # need to link with libpthread in order to create multiple threads.
11539           { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
11540 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
11541 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
11542   $as_echo_n "(cached) " >&6
11543 else
11544   ac_check_lib_save_LIBS=$LIBS
11545 LIBS="-lpthread  $LIBS"
11546 cat >conftest.$ac_ext <<_ACEOF
11547 /* confdefs.h.  */
11548 _ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h.  */
11552
11553 /* Override any GCC internal prototype to avoid an error.
11554    Use char because int might match the return type of a GCC
11555    builtin and then its argument prototype would still apply.  */
11556 #ifdef __cplusplus
11557 extern "C"
11558 #endif
11559 char pthread_kill ();
11560 int
11561 main ()
11562 {
11563 return pthread_kill ();
11564   ;
11565   return 0;
11566 }
11567 _ACEOF
11568 rm -f conftest.$ac_objext conftest$ac_exeext
11569 if { (ac_try="$ac_link"
11570 case "(($ac_try" in
11571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572   *) ac_try_echo=$ac_try;;
11573 esac
11574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11575 $as_echo "$ac_try_echo") >&5
11576   (eval "$ac_link") 2>conftest.er1
11577   ac_status=$?
11578   grep -v '^ *+' conftest.er1 >conftest.err
11579   rm -f conftest.er1
11580   cat conftest.err >&5
11581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582   (exit $ac_status); } && {
11583          test -z "$ac_c_werror_flag" ||
11584          test ! -s conftest.err
11585        } && test -s conftest$ac_exeext && {
11586          test "$cross_compiling" = yes ||
11587          $as_test_x conftest$ac_exeext
11588        }; then
11589   ac_cv_lib_pthread_pthread_kill=yes
11590 else
11591   $as_echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11593
11594         ac_cv_lib_pthread_pthread_kill=no
11595 fi
11596
11597 rm -rf conftest.dSYM
11598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11599       conftest$ac_exeext conftest.$ac_ext
11600 LIBS=$ac_check_lib_save_LIBS
11601 fi
11602 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
11603 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
11604 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
11605   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
11606              # On Solaris and HP-UX, most pthread functions exist also in libc.
11607              # Therefore pthread_in_use() needs to actually try to create a
11608              # thread: pthread_create from libc will fail, whereas
11609              # pthread_create will actually create a thread.
11610              case "$host_os" in
11611                solaris* | hpux*)
11612
11613 cat >>confdefs.h <<\_ACEOF
11614 #define PTHREAD_IN_USE_DETECTION_HARD 1
11615 _ACEOF
11616
11617              esac
11618
11619 fi
11620
11621         else
11622           # Some library is needed. Try libpthread and libc_r.
11623           { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
11624 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
11625 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
11626   $as_echo_n "(cached) " >&6
11627 else
11628   ac_check_lib_save_LIBS=$LIBS
11629 LIBS="-lpthread  $LIBS"
11630 cat >conftest.$ac_ext <<_ACEOF
11631 /* confdefs.h.  */
11632 _ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h.  */
11636
11637 /* Override any GCC internal prototype to avoid an error.
11638    Use char because int might match the return type of a GCC
11639    builtin and then its argument prototype would still apply.  */
11640 #ifdef __cplusplus
11641 extern "C"
11642 #endif
11643 char pthread_kill ();
11644 int
11645 main ()
11646 {
11647 return pthread_kill ();
11648   ;
11649   return 0;
11650 }
11651 _ACEOF
11652 rm -f conftest.$ac_objext conftest$ac_exeext
11653 if { (ac_try="$ac_link"
11654 case "(($ac_try" in
11655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656   *) ac_try_echo=$ac_try;;
11657 esac
11658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11659 $as_echo "$ac_try_echo") >&5
11660   (eval "$ac_link") 2>conftest.er1
11661   ac_status=$?
11662   grep -v '^ *+' conftest.er1 >conftest.err
11663   rm -f conftest.er1
11664   cat conftest.err >&5
11665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); } && {
11667          test -z "$ac_c_werror_flag" ||
11668          test ! -s conftest.err
11669        } && test -s conftest$ac_exeext && {
11670          test "$cross_compiling" = yes ||
11671          $as_test_x conftest$ac_exeext
11672        }; then
11673   ac_cv_lib_pthread_pthread_kill=yes
11674 else
11675   $as_echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11677
11678         ac_cv_lib_pthread_pthread_kill=no
11679 fi
11680
11681 rm -rf conftest.dSYM
11682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11683       conftest$ac_exeext conftest.$ac_ext
11684 LIBS=$ac_check_lib_save_LIBS
11685 fi
11686 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
11687 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
11688 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
11689   gl_have_pthread=yes
11690              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
11691              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
11692 fi
11693
11694           if test -z "$gl_have_pthread"; then
11695             # For FreeBSD 4.
11696             { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
11697 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
11698 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
11699   $as_echo_n "(cached) " >&6
11700 else
11701   ac_check_lib_save_LIBS=$LIBS
11702 LIBS="-lc_r  $LIBS"
11703 cat >conftest.$ac_ext <<_ACEOF
11704 /* confdefs.h.  */
11705 _ACEOF
11706 cat confdefs.h >>conftest.$ac_ext
11707 cat >>conftest.$ac_ext <<_ACEOF
11708 /* end confdefs.h.  */
11709
11710 /* Override any GCC internal prototype to avoid an error.
11711    Use char because int might match the return type of a GCC
11712    builtin and then its argument prototype would still apply.  */
11713 #ifdef __cplusplus
11714 extern "C"
11715 #endif
11716 char pthread_kill ();
11717 int
11718 main ()
11719 {
11720 return pthread_kill ();
11721   ;
11722   return 0;
11723 }
11724 _ACEOF
11725 rm -f conftest.$ac_objext conftest$ac_exeext
11726 if { (ac_try="$ac_link"
11727 case "(($ac_try" in
11728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729   *) ac_try_echo=$ac_try;;
11730 esac
11731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11732 $as_echo "$ac_try_echo") >&5
11733   (eval "$ac_link") 2>conftest.er1
11734   ac_status=$?
11735   grep -v '^ *+' conftest.er1 >conftest.err
11736   rm -f conftest.er1
11737   cat conftest.err >&5
11738   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739   (exit $ac_status); } && {
11740          test -z "$ac_c_werror_flag" ||
11741          test ! -s conftest.err
11742        } && test -s conftest$ac_exeext && {
11743          test "$cross_compiling" = yes ||
11744          $as_test_x conftest$ac_exeext
11745        }; then
11746   ac_cv_lib_c_r_pthread_kill=yes
11747 else
11748   $as_echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.$ac_ext >&5
11750
11751         ac_cv_lib_c_r_pthread_kill=no
11752 fi
11753
11754 rm -rf conftest.dSYM
11755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11756       conftest$ac_exeext conftest.$ac_ext
11757 LIBS=$ac_check_lib_save_LIBS
11758 fi
11759 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
11760 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
11761 if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
11762   gl_have_pthread=yes
11763                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
11764                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
11765 fi
11766
11767           fi
11768         fi
11769         if test -n "$gl_have_pthread"; then
11770           gl_threads_api=posix
11771
11772 cat >>confdefs.h <<\_ACEOF
11773 #define USE_POSIX_THREADS 1
11774 _ACEOF
11775
11776           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
11777             if test $gl_have_weak = yes; then
11778
11779 cat >>confdefs.h <<\_ACEOF
11780 #define USE_POSIX_THREADS_WEAK 1
11781 _ACEOF
11782
11783               LIBTHREAD=
11784               LTLIBTHREAD=
11785             fi
11786           fi
11787         fi
11788       fi
11789     fi
11790     if test -z "$gl_have_pthread"; then
11791       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
11792         gl_have_solaristhread=
11793         gl_save_LIBS="$LIBS"
11794         LIBS="$LIBS -lthread"
11795         cat >conftest.$ac_ext <<_ACEOF
11796 /* confdefs.h.  */
11797 _ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h.  */
11801 #include <thread.h>
11802 #include <synch.h>
11803 int
11804 main ()
11805 {
11806 thr_self();
11807   ;
11808   return 0;
11809 }
11810 _ACEOF
11811 rm -f conftest.$ac_objext conftest$ac_exeext
11812 if { (ac_try="$ac_link"
11813 case "(($ac_try" in
11814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815   *) ac_try_echo=$ac_try;;
11816 esac
11817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11818 $as_echo "$ac_try_echo") >&5
11819   (eval "$ac_link") 2>conftest.er1
11820   ac_status=$?
11821   grep -v '^ *+' conftest.er1 >conftest.err
11822   rm -f conftest.er1
11823   cat conftest.err >&5
11824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); } && {
11826          test -z "$ac_c_werror_flag" ||
11827          test ! -s conftest.err
11828        } && test -s conftest$ac_exeext && {
11829          test "$cross_compiling" = yes ||
11830          $as_test_x conftest$ac_exeext
11831        }; then
11832   gl_have_solaristhread=yes
11833 else
11834   $as_echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11836
11837
11838 fi
11839
11840 rm -rf conftest.dSYM
11841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11842       conftest$ac_exeext conftest.$ac_ext
11843         LIBS="$gl_save_LIBS"
11844         if test -n "$gl_have_solaristhread"; then
11845           gl_threads_api=solaris
11846           LIBTHREAD=-lthread
11847           LTLIBTHREAD=-lthread
11848           LIBMULTITHREAD="$LIBTHREAD"
11849           LTLIBMULTITHREAD="$LTLIBTHREAD"
11850
11851 cat >>confdefs.h <<\_ACEOF
11852 #define USE_SOLARIS_THREADS 1
11853 _ACEOF
11854
11855           if test $gl_have_weak = yes; then
11856
11857 cat >>confdefs.h <<\_ACEOF
11858 #define USE_SOLARIS_THREADS_WEAK 1
11859 _ACEOF
11860
11861             LIBTHREAD=
11862             LTLIBTHREAD=
11863           fi
11864         fi
11865       fi
11866     fi
11867     if test "$gl_use_threads" = pth; then
11868       gl_save_CPPFLAGS="$CPPFLAGS"
11869
11870
11871
11872
11873
11874   { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
11875 $as_echo_n "checking how to link with libpth... " >&6; }
11876 if test "${ac_cv_libpth_libs+set}" = set; then
11877   $as_echo_n "(cached) " >&6
11878 else
11879
11880
11881
11882
11883     use_additional=yes
11884
11885   acl_save_prefix="$prefix"
11886   prefix="$acl_final_prefix"
11887   acl_save_exec_prefix="$exec_prefix"
11888   exec_prefix="$acl_final_exec_prefix"
11889
11890     eval additional_includedir=\"$includedir\"
11891     eval additional_libdir=\"$libdir\"
11892
11893   exec_prefix="$acl_save_exec_prefix"
11894   prefix="$acl_save_prefix"
11895
11896
11897 # Check whether --with-libpth-prefix was given.
11898 if test "${with_libpth_prefix+set}" = set; then
11899   withval=$with_libpth_prefix;
11900     if test "X$withval" = "Xno"; then
11901       use_additional=no
11902     else
11903       if test "X$withval" = "X"; then
11904
11905   acl_save_prefix="$prefix"
11906   prefix="$acl_final_prefix"
11907   acl_save_exec_prefix="$exec_prefix"
11908   exec_prefix="$acl_final_exec_prefix"
11909
11910           eval additional_includedir=\"$includedir\"
11911           eval additional_libdir=\"$libdir\"
11912
11913   exec_prefix="$acl_save_exec_prefix"
11914   prefix="$acl_save_prefix"
11915
11916       else
11917         additional_includedir="$withval/include"
11918         additional_libdir="$withval/$acl_libdirstem"
11919       fi
11920     fi
11921
11922 fi
11923
11924       LIBPTH=
11925   LTLIBPTH=
11926   INCPTH=
11927   rpathdirs=
11928   ltrpathdirs=
11929   names_already_handled=
11930   names_next_round='pth '
11931   while test -n "$names_next_round"; do
11932     names_this_round="$names_next_round"
11933     names_next_round=
11934     for name in $names_this_round; do
11935       already_handled=
11936       for n in $names_already_handled; do
11937         if test "$n" = "$name"; then
11938           already_handled=yes
11939           break
11940         fi
11941       done
11942       if test -z "$already_handled"; then
11943         names_already_handled="$names_already_handled $name"
11944                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11945         eval value=\"\$HAVE_LIB$uppername\"
11946         if test -n "$value"; then
11947           if test "$value" = yes; then
11948             eval value=\"\$LIB$uppername\"
11949             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
11950             eval value=\"\$LTLIB$uppername\"
11951             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
11952           else
11953                                     :
11954           fi
11955         else
11956                               found_dir=
11957           found_la=
11958           found_so=
11959           found_a=
11960           if test $use_additional = yes; then
11961             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11962               found_dir="$additional_libdir"
11963               found_so="$additional_libdir/lib$name.$shlibext"
11964               if test -f "$additional_libdir/lib$name.la"; then
11965                 found_la="$additional_libdir/lib$name.la"
11966               fi
11967             else
11968               if test -f "$additional_libdir/lib$name.$libext"; then
11969                 found_dir="$additional_libdir"
11970                 found_a="$additional_libdir/lib$name.$libext"
11971                 if test -f "$additional_libdir/lib$name.la"; then
11972                   found_la="$additional_libdir/lib$name.la"
11973                 fi
11974               fi
11975             fi
11976           fi
11977           if test "X$found_dir" = "X"; then
11978             for x in $LDFLAGS $LTLIBPTH; do
11979
11980   acl_save_prefix="$prefix"
11981   prefix="$acl_final_prefix"
11982   acl_save_exec_prefix="$exec_prefix"
11983   exec_prefix="$acl_final_exec_prefix"
11984   eval x=\"$x\"
11985   exec_prefix="$acl_save_exec_prefix"
11986   prefix="$acl_save_prefix"
11987
11988               case "$x" in
11989                 -L*)
11990                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11991                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11992                     found_dir="$dir"
11993                     found_so="$dir/lib$name.$shlibext"
11994                     if test -f "$dir/lib$name.la"; then
11995                       found_la="$dir/lib$name.la"
11996                     fi
11997                   else
11998                     if test -f "$dir/lib$name.$libext"; then
11999                       found_dir="$dir"
12000                       found_a="$dir/lib$name.$libext"
12001                       if test -f "$dir/lib$name.la"; then
12002                         found_la="$dir/lib$name.la"
12003                       fi
12004                     fi
12005                   fi
12006                   ;;
12007               esac
12008               if test "X$found_dir" != "X"; then
12009                 break
12010               fi
12011             done
12012           fi
12013           if test "X$found_dir" != "X"; then
12014                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
12015             if test "X$found_so" != "X"; then
12016                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12017                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12018               else
12019                                                                                 haveit=
12020                 for x in $ltrpathdirs; do
12021                   if test "X$x" = "X$found_dir"; then
12022                     haveit=yes
12023                     break
12024                   fi
12025                 done
12026                 if test -z "$haveit"; then
12027                   ltrpathdirs="$ltrpathdirs $found_dir"
12028                 fi
12029                                 if test "$hardcode_direct" = yes; then
12030                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12031                 else
12032                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12033                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12034                                                             haveit=
12035                     for x in $rpathdirs; do
12036                       if test "X$x" = "X$found_dir"; then
12037                         haveit=yes
12038                         break
12039                       fi
12040                     done
12041                     if test -z "$haveit"; then
12042                       rpathdirs="$rpathdirs $found_dir"
12043                     fi
12044                   else
12045                                                                                 haveit=
12046                     for x in $LDFLAGS $LIBPTH; do
12047
12048   acl_save_prefix="$prefix"
12049   prefix="$acl_final_prefix"
12050   acl_save_exec_prefix="$exec_prefix"
12051   exec_prefix="$acl_final_exec_prefix"
12052   eval x=\"$x\"
12053   exec_prefix="$acl_save_exec_prefix"
12054   prefix="$acl_save_prefix"
12055
12056                       if test "X$x" = "X-L$found_dir"; then
12057                         haveit=yes
12058                         break
12059                       fi
12060                     done
12061                     if test -z "$haveit"; then
12062                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
12063                     fi
12064                     if test "$hardcode_minus_L" != no; then
12065                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12066                     else
12067                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
12068                     fi
12069                   fi
12070                 fi
12071               fi
12072             else
12073               if test "X$found_a" != "X"; then
12074                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
12075               else
12076                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
12077               fi
12078             fi
12079                         additional_includedir=
12080             case "$found_dir" in
12081               */$acl_libdirstem | */$acl_libdirstem/)
12082                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12083                 additional_includedir="$basedir/include"
12084                 ;;
12085             esac
12086             if test "X$additional_includedir" != "X"; then
12087                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12088                 haveit=
12089                 if test "X$additional_includedir" = "X/usr/local/include"; then
12090                   if test -n "$GCC"; then
12091                     case $host_os in
12092                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12093                     esac
12094                   fi
12095                 fi
12096                 if test -z "$haveit"; then
12097                   for x in $CPPFLAGS $INCPTH; do
12098
12099   acl_save_prefix="$prefix"
12100   prefix="$acl_final_prefix"
12101   acl_save_exec_prefix="$exec_prefix"
12102   exec_prefix="$acl_final_exec_prefix"
12103   eval x=\"$x\"
12104   exec_prefix="$acl_save_exec_prefix"
12105   prefix="$acl_save_prefix"
12106
12107                     if test "X$x" = "X-I$additional_includedir"; then
12108                       haveit=yes
12109                       break
12110                     fi
12111                   done
12112                   if test -z "$haveit"; then
12113                     if test -d "$additional_includedir"; then
12114                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
12115                     fi
12116                   fi
12117                 fi
12118               fi
12119             fi
12120                         if test -n "$found_la"; then
12121                                                         save_libdir="$libdir"
12122               case "$found_la" in
12123                 */* | *\\*) . "$found_la" ;;
12124                 *) . "./$found_la" ;;
12125               esac
12126               libdir="$save_libdir"
12127                             for dep in $dependency_libs; do
12128                 case "$dep" in
12129                   -L*)
12130                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12131                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12132                       haveit=
12133                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12134                         if test -n "$GCC"; then
12135                           case $host_os in
12136                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12137                           esac
12138                         fi
12139                       fi
12140                       if test -z "$haveit"; then
12141                         haveit=
12142                         for x in $LDFLAGS $LIBPTH; do
12143
12144   acl_save_prefix="$prefix"
12145   prefix="$acl_final_prefix"
12146   acl_save_exec_prefix="$exec_prefix"
12147   exec_prefix="$acl_final_exec_prefix"
12148   eval x=\"$x\"
12149   exec_prefix="$acl_save_exec_prefix"
12150   prefix="$acl_save_prefix"
12151
12152                           if test "X$x" = "X-L$additional_libdir"; then
12153                             haveit=yes
12154                             break
12155                           fi
12156                         done
12157                         if test -z "$haveit"; then
12158                           if test -d "$additional_libdir"; then
12159                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
12160                           fi
12161                         fi
12162                         haveit=
12163                         for x in $LDFLAGS $LTLIBPTH; do
12164
12165   acl_save_prefix="$prefix"
12166   prefix="$acl_final_prefix"
12167   acl_save_exec_prefix="$exec_prefix"
12168   exec_prefix="$acl_final_exec_prefix"
12169   eval x=\"$x\"
12170   exec_prefix="$acl_save_exec_prefix"
12171   prefix="$acl_save_prefix"
12172
12173                           if test "X$x" = "X-L$additional_libdir"; then
12174                             haveit=yes
12175                             break
12176                           fi
12177                         done
12178                         if test -z "$haveit"; then
12179                           if test -d "$additional_libdir"; then
12180                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
12181                           fi
12182                         fi
12183                       fi
12184                     fi
12185                     ;;
12186                   -R*)
12187                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12188                     if test "$enable_rpath" != no; then
12189                                                                   haveit=
12190                       for x in $rpathdirs; do
12191                         if test "X$x" = "X$dir"; then
12192                           haveit=yes
12193                           break
12194                         fi
12195                       done
12196                       if test -z "$haveit"; then
12197                         rpathdirs="$rpathdirs $dir"
12198                       fi
12199                                                                   haveit=
12200                       for x in $ltrpathdirs; do
12201                         if test "X$x" = "X$dir"; then
12202                           haveit=yes
12203                           break
12204                         fi
12205                       done
12206                       if test -z "$haveit"; then
12207                         ltrpathdirs="$ltrpathdirs $dir"
12208                       fi
12209                     fi
12210                     ;;
12211                   -l*)
12212                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12213                     ;;
12214                   *.la)
12215                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12216                     ;;
12217                   *)
12218                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
12219                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
12220                     ;;
12221                 esac
12222               done
12223             fi
12224           else
12225                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
12226             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
12227           fi
12228         fi
12229       fi
12230     done
12231   done
12232   if test "X$rpathdirs" != "X"; then
12233     if test -n "$hardcode_libdir_separator"; then
12234                         alldirs=
12235       for found_dir in $rpathdirs; do
12236         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12237       done
12238             acl_save_libdir="$libdir"
12239       libdir="$alldirs"
12240       eval flag=\"$hardcode_libdir_flag_spec\"
12241       libdir="$acl_save_libdir"
12242       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
12243     else
12244             for found_dir in $rpathdirs; do
12245         acl_save_libdir="$libdir"
12246         libdir="$found_dir"
12247         eval flag=\"$hardcode_libdir_flag_spec\"
12248         libdir="$acl_save_libdir"
12249         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
12250       done
12251     fi
12252   fi
12253   if test "X$ltrpathdirs" != "X"; then
12254             for found_dir in $ltrpathdirs; do
12255       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
12256     done
12257   fi
12258
12259     ac_cv_libpth_libs="$LIBPTH"
12260     ac_cv_libpth_ltlibs="$LTLIBPTH"
12261     ac_cv_libpth_cppflags="$INCPTH"
12262
12263 fi
12264 { $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
12265 $as_echo "$ac_cv_libpth_libs" >&6; }
12266   LIBPTH="$ac_cv_libpth_libs"
12267   LTLIBPTH="$ac_cv_libpth_ltlibs"
12268   INCPTH="$ac_cv_libpth_cppflags"
12269
12270   for element in $INCPTH; do
12271     haveit=
12272     for x in $CPPFLAGS; do
12273
12274   acl_save_prefix="$prefix"
12275   prefix="$acl_final_prefix"
12276   acl_save_exec_prefix="$exec_prefix"
12277   exec_prefix="$acl_final_exec_prefix"
12278   eval x=\"$x\"
12279   exec_prefix="$acl_save_exec_prefix"
12280   prefix="$acl_save_prefix"
12281
12282       if test "X$x" = "X$element"; then
12283         haveit=yes
12284         break
12285       fi
12286     done
12287     if test -z "$haveit"; then
12288       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12289     fi
12290   done
12291
12292
12293
12294       HAVE_LIBPTH=yes
12295
12296
12297
12298       gl_have_pth=
12299       gl_save_LIBS="$LIBS"
12300       LIBS="$LIBS -lpth"
12301       cat >conftest.$ac_ext <<_ACEOF
12302 /* confdefs.h.  */
12303 _ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h.  */
12307 #include <pth.h>
12308 int
12309 main ()
12310 {
12311 pth_self();
12312   ;
12313   return 0;
12314 }
12315 _ACEOF
12316 rm -f conftest.$ac_objext conftest$ac_exeext
12317 if { (ac_try="$ac_link"
12318 case "(($ac_try" in
12319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320   *) ac_try_echo=$ac_try;;
12321 esac
12322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12323 $as_echo "$ac_try_echo") >&5
12324   (eval "$ac_link") 2>conftest.er1
12325   ac_status=$?
12326   grep -v '^ *+' conftest.er1 >conftest.err
12327   rm -f conftest.er1
12328   cat conftest.err >&5
12329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); } && {
12331          test -z "$ac_c_werror_flag" ||
12332          test ! -s conftest.err
12333        } && test -s conftest$ac_exeext && {
12334          test "$cross_compiling" = yes ||
12335          $as_test_x conftest$ac_exeext
12336        }; then
12337   gl_have_pth=yes
12338 else
12339   $as_echo "$as_me: failed program was:" >&5
12340 sed 's/^/| /' conftest.$ac_ext >&5
12341
12342
12343 fi
12344
12345 rm -rf conftest.dSYM
12346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12347       conftest$ac_exeext conftest.$ac_ext
12348       LIBS="$gl_save_LIBS"
12349       if test -n "$gl_have_pth"; then
12350         gl_threads_api=pth
12351         LIBTHREAD="$LIBPTH"
12352         LTLIBTHREAD="$LTLIBPTH"
12353         LIBMULTITHREAD="$LIBTHREAD"
12354         LTLIBMULTITHREAD="$LTLIBTHREAD"
12355
12356 cat >>confdefs.h <<\_ACEOF
12357 #define USE_PTH_THREADS 1
12358 _ACEOF
12359
12360         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
12361           if test $gl_have_weak = yes; then
12362
12363 cat >>confdefs.h <<\_ACEOF
12364 #define USE_PTH_THREADS_WEAK 1
12365 _ACEOF
12366
12367             LIBTHREAD=
12368             LTLIBTHREAD=
12369           fi
12370         fi
12371       else
12372         CPPFLAGS="$gl_save_CPPFLAGS"
12373       fi
12374     fi
12375     if test -z "$gl_have_pthread"; then
12376       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
12377         if { case "$host_os" in
12378                mingw*) true;;
12379                *) false;;
12380              esac
12381            }; then
12382           gl_threads_api=win32
12383
12384 cat >>confdefs.h <<\_ACEOF
12385 #define USE_WIN32_THREADS 1
12386 _ACEOF
12387
12388         fi
12389       fi
12390     fi
12391   fi
12392   { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
12393 $as_echo_n "checking for multithread API to use... " >&6; }
12394   { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
12395 $as_echo "$gl_threads_api" >&6; }
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406   GNULIB_LCHMOD=0;
12407   GNULIB_LSTAT=0;
12408     HAVE_LCHMOD=1;
12409   REPLACE_LSTAT=0;
12410   REPLACE_MKDIR=0;
12411
12412
12413
12414
12415
12416
12417
12418
12419   { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
12420 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
12421 if test "${gl_cv_func_malloc_posix+set}" = set; then
12422   $as_echo_n "(cached) " >&6
12423 else
12424
12425                         cat >conftest.$ac_ext <<_ACEOF
12426 /* confdefs.h.  */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h.  */
12431
12432 int
12433 main ()
12434 {
12435 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
12436          choke me
12437          #endif
12438
12439   ;
12440   return 0;
12441 }
12442 _ACEOF
12443 rm -f conftest.$ac_objext
12444 if { (ac_try="$ac_compile"
12445 case "(($ac_try" in
12446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447   *) ac_try_echo=$ac_try;;
12448 esac
12449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12450 $as_echo "$ac_try_echo") >&5
12451   (eval "$ac_compile") 2>conftest.er1
12452   ac_status=$?
12453   grep -v '^ *+' conftest.er1 >conftest.err
12454   rm -f conftest.er1
12455   cat conftest.err >&5
12456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); } && {
12458          test -z "$ac_c_werror_flag" ||
12459          test ! -s conftest.err
12460        } && test -s conftest.$ac_objext; then
12461   gl_cv_func_malloc_posix=yes
12462 else
12463   $as_echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12465
12466         gl_cv_func_malloc_posix=no
12467 fi
12468
12469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470
12471 fi
12472 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
12473 $as_echo "$gl_cv_func_malloc_posix" >&6; }
12474
12475
12476   GNULIB_MALLOC_POSIX=0;
12477   GNULIB_REALLOC_POSIX=0;
12478   GNULIB_CALLOC_POSIX=0;
12479   GNULIB_ATOLL=0;
12480   GNULIB_GETLOADAVG=0;
12481   GNULIB_GETSUBOPT=0;
12482   GNULIB_MKDTEMP=0;
12483   GNULIB_MKSTEMP=0;
12484   GNULIB_PUTENV=0;
12485   GNULIB_RANDOM_R=0;
12486   GNULIB_RPMATCH=0;
12487   GNULIB_SETENV=0;
12488   GNULIB_STRTOD=0;
12489   GNULIB_STRTOLL=0;
12490   GNULIB_STRTOULL=0;
12491   GNULIB_UNSETENV=0;
12492     HAVE_ATOLL=1;
12493   HAVE_CALLOC_POSIX=1;
12494   HAVE_GETSUBOPT=1;
12495   HAVE_MALLOC_POSIX=1;
12496   HAVE_MKDTEMP=1;
12497   HAVE_REALLOC_POSIX=1;
12498   HAVE_RANDOM_R=1;
12499   HAVE_RPMATCH=1;
12500   HAVE_SETENV=1;
12501   HAVE_STRTOD=1;
12502   HAVE_STRTOLL=1;
12503   HAVE_STRTOULL=1;
12504   HAVE_STRUCT_RANDOM_DATA=1;
12505   HAVE_SYS_LOADAVG_H=0;
12506   HAVE_UNSETENV=1;
12507   HAVE_DECL_GETLOADAVG=1;
12508   REPLACE_MKSTEMP=0;
12509   REPLACE_PUTENV=0;
12510   REPLACE_STRTOD=0;
12511   VOID_UNSETENV=0;
12512
12513
12514
12515    { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
12516 $as_echo_n "checking for mbstate_t... " >&6; }
12517 if test "${ac_cv_type_mbstate_t+set}" = set; then
12518   $as_echo_n "(cached) " >&6
12519 else
12520   cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h.  */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h.  */
12526 $ac_includes_default
12527 #           include <wchar.h>
12528 int
12529 main ()
12530 {
12531 mbstate_t x; return sizeof x;
12532   ;
12533   return 0;
12534 }
12535 _ACEOF
12536 rm -f conftest.$ac_objext
12537 if { (ac_try="$ac_compile"
12538 case "(($ac_try" in
12539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540   *) ac_try_echo=$ac_try;;
12541 esac
12542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12543 $as_echo "$ac_try_echo") >&5
12544   (eval "$ac_compile") 2>conftest.er1
12545   ac_status=$?
12546   grep -v '^ *+' conftest.er1 >conftest.err
12547   rm -f conftest.er1
12548   cat conftest.err >&5
12549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550   (exit $ac_status); } && {
12551          test -z "$ac_c_werror_flag" ||
12552          test ! -s conftest.err
12553        } && test -s conftest.$ac_objext; then
12554   ac_cv_type_mbstate_t=yes
12555 else
12556   $as_echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12558
12559         ac_cv_type_mbstate_t=no
12560 fi
12561
12562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12563 fi
12564 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
12565 $as_echo "$ac_cv_type_mbstate_t" >&6; }
12566    if test $ac_cv_type_mbstate_t = yes; then
12567
12568 cat >>confdefs.h <<\_ACEOF
12569 #define HAVE_MBSTATE_T 1
12570 _ACEOF
12571
12572    else
12573
12574 cat >>confdefs.h <<\_ACEOF
12575 #define mbstate_t int
12576 _ACEOF
12577
12578    fi
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595   { $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
12596 $as_echo_n "checking for a traditional japanese locale... " >&6; }
12597 if test "${gt_cv_locale_ja+set}" = set; then
12598   $as_echo_n "(cached) " >&6
12599 else
12600
12601     cat >conftest.$ac_ext <<_ACEOF
12602 /* confdefs.h.  */
12603 _ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h.  */
12607
12608 #include <locale.h>
12609 #include <time.h>
12610 #if HAVE_LANGINFO_CODESET
12611 # include <langinfo.h>
12612 #endif
12613 #include <stdlib.h>
12614 #include <string.h>
12615 struct tm t;
12616 char buf[16];
12617 int main ()
12618 {
12619   const char *p;
12620   /* Check whether the given locale name is recognized by the system.  */
12621   if (setlocale (LC_ALL, "") == NULL) return 1;
12622   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12623      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12624      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12625      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12626      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12627      some unit tests fail.  */
12628 #if HAVE_LANGINFO_CODESET
12629   {
12630     const char *cs = nl_langinfo (CODESET);
12631     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12632       return 1;
12633   }
12634 #endif
12635 #ifdef __CYGWIN__
12636   /* On Cygwin, avoid locale names without encoding suffix, because the
12637      locale_charset() function relies on the encoding suffix.  Note that
12638      LC_ALL is set on the command line.  */
12639   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12640 #endif
12641   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
12642      on Cygwin 1.5.x.  */
12643   if (MB_CUR_MAX == 1)
12644     return 1;
12645   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12646      This excludes the UTF-8 encoding.  */
12647   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12648   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12649   for (p = buf; *p != '\0'; p++)
12650     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12651       return 1;
12652   return 0;
12653 }
12654
12655 _ACEOF
12656     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12657   (eval $ac_link) 2>&5
12658   ac_status=$?
12659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); } && test -s conftest$ac_exeext; then
12661       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12662       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
12663       # configure script would override the LC_ALL setting. Likewise for
12664       # LC_CTYPE, which is also set at the beginning of the configure script.
12665       # Test for the AIX locale name.
12666       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12667         gt_cv_locale_ja=ja_JP
12668       else
12669         # Test for the locale name with explicit encoding suffix.
12670         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12671           gt_cv_locale_ja=ja_JP.EUC-JP
12672         else
12673           # Test for the HP-UX, OSF/1, NetBSD locale name.
12674           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12675             gt_cv_locale_ja=ja_JP.eucJP
12676           else
12677             # Test for the IRIX, FreeBSD locale name.
12678             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12679               gt_cv_locale_ja=ja_JP.EUC
12680             else
12681               # Test for the Solaris 7 locale name.
12682               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12683                 gt_cv_locale_ja=ja
12684               else
12685                 # Special test for NetBSD 1.6.
12686                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
12687                   gt_cv_locale_ja=ja_JP.eucJP
12688                 else
12689                   # None found.
12690                   gt_cv_locale_ja=none
12691                 fi
12692               fi
12693             fi
12694           fi
12695         fi
12696       fi
12697     fi
12698     rm -fr conftest*
12699
12700 fi
12701 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
12702 $as_echo "$gt_cv_locale_ja" >&6; }
12703   LOCALE_JA=$gt_cv_locale_ja
12704
12705
12706
12707
12708
12709   { $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
12710 $as_echo_n "checking for a transitional chinese locale... " >&6; }
12711 if test "${gt_cv_locale_zh_CN+set}" = set; then
12712   $as_echo_n "(cached) " >&6
12713 else
12714
12715     cat >conftest.$ac_ext <<_ACEOF
12716 /* confdefs.h.  */
12717 _ACEOF
12718 cat confdefs.h >>conftest.$ac_ext
12719 cat >>conftest.$ac_ext <<_ACEOF
12720 /* end confdefs.h.  */
12721
12722 #include <locale.h>
12723 #include <stdlib.h>
12724 #include <time.h>
12725 #if HAVE_LANGINFO_CODESET
12726 # include <langinfo.h>
12727 #endif
12728 #include <stdlib.h>
12729 #include <string.h>
12730 struct tm t;
12731 char buf[16];
12732 int main ()
12733 {
12734   const char *p;
12735   /* Check whether the given locale name is recognized by the system.  */
12736   if (setlocale (LC_ALL, "") == NULL) return 1;
12737   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12738      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12739      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12740      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12741      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12742      some unit tests fail.  */
12743 #if HAVE_LANGINFO_CODESET
12744   {
12745     const char *cs = nl_langinfo (CODESET);
12746     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12747       return 1;
12748   }
12749 #endif
12750 #ifdef __CYGWIN__
12751   /* On Cygwin, avoid locale names without encoding suffix, because the
12752      locale_charset() function relies on the encoding suffix.  Note that
12753      LC_ALL is set on the command line.  */
12754   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12755 #endif
12756   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12757      This excludes the UTF-8 encoding.  */
12758   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12759   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12760   for (p = buf; *p != '\0'; p++)
12761     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12762       return 1;
12763   /* Check whether a typical GB18030 multibyte sequence is recognized as a
12764      single wide character.  This excludes the GB2312 and GBK encodings.  */
12765   if (mblen ("\203\062\332\066", 5) != 4)
12766     return 1;
12767   return 0;
12768 }
12769
12770 _ACEOF
12771     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12772   (eval $ac_link) 2>&5
12773   ac_status=$?
12774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); } && test -s conftest$ac_exeext; then
12776       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12777       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
12778       # configure script would override the LC_ALL setting. Likewise for
12779       # LC_CTYPE, which is also set at the beginning of the configure script.
12780       # Test for the locale name without encoding suffix.
12781       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12782         gt_cv_locale_zh_CN=zh_CN
12783       else
12784         # Test for the locale name with explicit encoding suffix.
12785         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12786           gt_cv_locale_zh_CN=zh_CN.GB18030
12787         else
12788           # None found.
12789           gt_cv_locale_zh_CN=none
12790         fi
12791       fi
12792     else
12793       # If there was a link error, due to mblen(), the system is so old that
12794       # it certainly doesn't have a chinese locale.
12795       gt_cv_locale_zh_CN=none
12796     fi
12797     rm -fr conftest*
12798
12799 fi
12800 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
12801 $as_echo "$gt_cv_locale_zh_CN" >&6; }
12802   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
12803
12804
12805
12806
12807   { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
12808 $as_echo_n "checking for a french Unicode locale... " >&6; }
12809 if test "${gt_cv_locale_fr_utf8+set}" = set; then
12810   $as_echo_n "(cached) " >&6
12811 else
12812
12813     cat >conftest.$ac_ext <<_ACEOF
12814 /* confdefs.h.  */
12815 _ACEOF
12816 cat confdefs.h >>conftest.$ac_ext
12817 cat >>conftest.$ac_ext <<_ACEOF
12818 /* end confdefs.h.  */
12819
12820 #include <locale.h>
12821 #include <time.h>
12822 #if HAVE_LANGINFO_CODESET
12823 # include <langinfo.h>
12824 #endif
12825 #include <stdlib.h>
12826 #include <string.h>
12827 struct tm t;
12828 char buf[16];
12829 int main () {
12830   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
12831      imitates locale dependent behaviour by looking at the environment
12832      variables, and all locales use the UTF-8 encoding.  */
12833 #if !(defined __BEOS__ || defined __HAIKU__)
12834   /* Check whether the given locale name is recognized by the system.  */
12835   if (setlocale (LC_ALL, "") == NULL) return 1;
12836   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12837      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12838      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12839      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12840      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12841      some unit tests fail.  */
12842 # if HAVE_LANGINFO_CODESET
12843   {
12844     const char *cs = nl_langinfo (CODESET);
12845     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12846       return 1;
12847   }
12848 # endif
12849 # ifdef __CYGWIN__
12850   /* On Cygwin, avoid locale names without encoding suffix, because the
12851      locale_charset() function relies on the encoding suffix.  Note that
12852      LC_ALL is set on the command line.  */
12853   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12854 # endif
12855   /* Check whether in the abbreviation of the second month, the second
12856      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
12857      two bytes long, with UTF-8 encoding.  */
12858   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12859   if (strftime (buf, sizeof (buf), "%b", &t) < 4
12860       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
12861     return 1;
12862 #endif
12863   /* Check whether the decimal separator is a comma.
12864      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12865      are nl_langinfo(RADIXCHAR) are both ".".  */
12866   if (localeconv () ->decimal_point[0] != ',') return 1;
12867   return 0;
12868 }
12869
12870 _ACEOF
12871     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12872   (eval $ac_link) 2>&5
12873   ac_status=$?
12874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875   (exit $ac_status); } && test -s conftest$ac_exeext; then
12876       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12877       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
12878       # configure script would override the LC_ALL setting. Likewise for
12879       # LC_CTYPE, which is also set at the beginning of the configure script.
12880       # Test for the usual locale name.
12881       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12882         gt_cv_locale_fr_utf8=fr_FR
12883       else
12884         # Test for the locale name with explicit encoding suffix.
12885         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12886           gt_cv_locale_fr_utf8=fr_FR.UTF-8
12887         else
12888           # Test for the Solaris 7 locale name.
12889           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12890             gt_cv_locale_fr_utf8=fr.UTF-8
12891           else
12892             # None found.
12893             gt_cv_locale_fr_utf8=none
12894           fi
12895         fi
12896       fi
12897     fi
12898     rm -fr conftest*
12899
12900 fi
12901 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
12902 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
12903   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
12904
12905
12906
12907     gl_cv_c_multiarch=no
12908   cat >conftest.$ac_ext <<_ACEOF
12909 /* confdefs.h.  */
12910 _ACEOF
12911 cat confdefs.h >>conftest.$ac_ext
12912 cat >>conftest.$ac_ext <<_ACEOF
12913 /* end confdefs.h.  */
12914 #ifndef __APPLE_CC__
12915          not a universal capable compiler
12916         #endif
12917         typedef int dummy;
12918
12919 _ACEOF
12920 rm -f conftest.$ac_objext
12921 if { (ac_try="$ac_compile"
12922 case "(($ac_try" in
12923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924   *) ac_try_echo=$ac_try;;
12925 esac
12926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12927 $as_echo "$ac_try_echo") >&5
12928   (eval "$ac_compile") 2>conftest.er1
12929   ac_status=$?
12930   grep -v '^ *+' conftest.er1 >conftest.err
12931   rm -f conftest.er1
12932   cat conftest.err >&5
12933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934   (exit $ac_status); } && {
12935          test -z "$ac_c_werror_flag" ||
12936          test ! -s conftest.err
12937        } && test -s conftest.$ac_objext; then
12938
12939                arch=
12940      prev=
12941      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
12942        if test -n "$prev"; then
12943          case $word in
12944            i?86 | x86_64 | ppc | ppc64)
12945              if test -z "$arch" || test "$arch" = "$word"; then
12946                arch="$word"
12947              else
12948                gl_cv_c_multiarch=yes
12949              fi
12950              ;;
12951          esac
12952          prev=
12953        else
12954          if test "x$word" = "x-arch"; then
12955            prev=arch
12956          fi
12957        fi
12958      done
12959
12960 else
12961   $as_echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12963
12964
12965 fi
12966
12967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12968   if test $gl_cv_c_multiarch = yes; then
12969
12970 cat >>confdefs.h <<\_ACEOF
12971 #define AA_APPLE_UNIVERSAL_BUILD 1
12972 _ACEOF
12973
12974     APPLE_UNIVERSAL_BUILD=1
12975   else
12976     APPLE_UNIVERSAL_BUILD=0
12977   fi
12978
12979
12980
12981 { $as_echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
12982 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
12983 if test "${gl_cv_var__system_configuration+set}" = set; then
12984   $as_echo_n "(cached) " >&6
12985 else
12986   cat >conftest.$ac_ext <<_ACEOF
12987 /* confdefs.h.  */
12988 _ACEOF
12989 cat confdefs.h >>conftest.$ac_ext
12990 cat >>conftest.$ac_ext <<_ACEOF
12991 /* end confdefs.h.  */
12992 #include <sys/systemcfg.h>
12993
12994 int
12995 main ()
12996 {
12997 double x = _system_configuration.physmem;
12998                         if (x > 0.0) return 0;
12999   ;
13000   return 0;
13001 }
13002 _ACEOF
13003 rm -f conftest.$ac_objext conftest$ac_exeext
13004 if { (ac_try="$ac_link"
13005 case "(($ac_try" in
13006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007   *) ac_try_echo=$ac_try;;
13008 esac
13009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13010 $as_echo "$ac_try_echo") >&5
13011   (eval "$ac_link") 2>conftest.er1
13012   ac_status=$?
13013   grep -v '^ *+' conftest.er1 >conftest.err
13014   rm -f conftest.er1
13015   cat conftest.err >&5
13016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017   (exit $ac_status); } && {
13018          test -z "$ac_c_werror_flag" ||
13019          test ! -s conftest.err
13020        } && test -s conftest$ac_exeext && {
13021          test "$cross_compiling" = yes ||
13022          $as_test_x conftest$ac_exeext
13023        }; then
13024   gl_cv_var__system_configuration=yes
13025 else
13026   $as_echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13028
13029         gl_cv_var__system_configuration=no
13030 fi
13031
13032 rm -rf conftest.dSYM
13033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13034       conftest$ac_exeext conftest.$ac_ext
13035 fi
13036 { $as_echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
13037 $as_echo "$gl_cv_var__system_configuration" >&6; }
13038
13039     if test $gl_cv_var__system_configuration = yes; then
13040
13041 cat >>confdefs.h <<\_ACEOF
13042 #define HAVE__SYSTEM_CONFIGURATION 1
13043 _ACEOF
13044
13045     fi
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
13074 $as_echo_n "checking for ssize_t... " >&6; }
13075 if test "${gt_cv_ssize_t+set}" = set; then
13076   $as_echo_n "(cached) " >&6
13077 else
13078   cat >conftest.$ac_ext <<_ACEOF
13079 /* confdefs.h.  */
13080 _ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h.  */
13084 #include <sys/types.h>
13085 int
13086 main ()
13087 {
13088 int x = sizeof (ssize_t *) + sizeof (ssize_t);
13089         return !x;
13090   ;
13091   return 0;
13092 }
13093 _ACEOF
13094 rm -f conftest.$ac_objext
13095 if { (ac_try="$ac_compile"
13096 case "(($ac_try" in
13097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098   *) ac_try_echo=$ac_try;;
13099 esac
13100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13101 $as_echo "$ac_try_echo") >&5
13102   (eval "$ac_compile") 2>conftest.er1
13103   ac_status=$?
13104   grep -v '^ *+' conftest.er1 >conftest.err
13105   rm -f conftest.er1
13106   cat conftest.err >&5
13107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108   (exit $ac_status); } && {
13109          test -z "$ac_c_werror_flag" ||
13110          test ! -s conftest.err
13111        } && test -s conftest.$ac_objext; then
13112   gt_cv_ssize_t=yes
13113 else
13114   $as_echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13116
13117         gt_cv_ssize_t=no
13118 fi
13119
13120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13121 fi
13122 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
13123 $as_echo "$gt_cv_ssize_t" >&6; }
13124   if test $gt_cv_ssize_t = no; then
13125
13126 cat >>confdefs.h <<\_ACEOF
13127 #define ssize_t int
13128 _ACEOF
13129
13130   fi
13131
13132
13133       { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13134 $as_echo_n "checking whether snprintf is declared... " >&6; }
13135 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13136   $as_echo_n "(cached) " >&6
13137 else
13138   cat >conftest.$ac_ext <<_ACEOF
13139 /* confdefs.h.  */
13140 _ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h.  */
13144 $ac_includes_default
13145 int
13146 main ()
13147 {
13148 #ifndef snprintf
13149   (void) snprintf;
13150 #endif
13151
13152   ;
13153   return 0;
13154 }
13155 _ACEOF
13156 rm -f conftest.$ac_objext
13157 if { (ac_try="$ac_compile"
13158 case "(($ac_try" in
13159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160   *) ac_try_echo=$ac_try;;
13161 esac
13162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13163 $as_echo "$ac_try_echo") >&5
13164   (eval "$ac_compile") 2>conftest.er1
13165   ac_status=$?
13166   grep -v '^ *+' conftest.er1 >conftest.err
13167   rm -f conftest.er1
13168   cat conftest.err >&5
13169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170   (exit $ac_status); } && {
13171          test -z "$ac_c_werror_flag" ||
13172          test ! -s conftest.err
13173        } && test -s conftest.$ac_objext; then
13174   ac_cv_have_decl_snprintf=yes
13175 else
13176   $as_echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13178
13179         ac_cv_have_decl_snprintf=no
13180 fi
13181
13182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13183 fi
13184 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13185 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
13186 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
13187
13188 cat >>confdefs.h <<_ACEOF
13189 #define HAVE_DECL_SNPRINTF 1
13190 _ACEOF
13191
13192
13193 else
13194   cat >>confdefs.h <<_ACEOF
13195 #define HAVE_DECL_SNPRINTF 0
13196 _ACEOF
13197
13198
13199 fi
13200
13201
13202
13203 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
13204 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13205 if test "${ac_cv_header_stdbool_h+set}" = set; then
13206   $as_echo_n "(cached) " >&6
13207 else
13208   cat >conftest.$ac_ext <<_ACEOF
13209 /* confdefs.h.  */
13210 _ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h.  */
13214
13215           #include <stdbool.h>
13216           #ifndef bool
13217            "error: bool is not defined"
13218           #endif
13219           #ifndef false
13220            "error: false is not defined"
13221           #endif
13222           #if false
13223            "error: false is not 0"
13224           #endif
13225           #ifndef true
13226            "error: true is not defined"
13227           #endif
13228           #if true != 1
13229            "error: true is not 1"
13230           #endif
13231           #ifndef __bool_true_false_are_defined
13232            "error: __bool_true_false_are_defined is not defined"
13233           #endif
13234
13235           struct s { _Bool s: 1; _Bool t; } s;
13236
13237           char a[true == 1 ? 1 : -1];
13238           char b[false == 0 ? 1 : -1];
13239           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13240           char d[(bool) 0.5 == true ? 1 : -1];
13241           bool e = &s;
13242           char f[(_Bool) 0.0 == false ? 1 : -1];
13243           char g[true];
13244           char h[sizeof (_Bool)];
13245           char i[sizeof s.t];
13246           enum { j = false, k = true, l = false * true, m = true * 256 };
13247           _Bool n[m];
13248           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13249           char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13250           #if defined __xlc__ || defined __GNUC__
13251            /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
13252               reported by James Lemley on 2005-10-05; see
13253               http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
13254               This test is not quite right, since xlc is allowed to
13255               reject this program, as the initializer for xlcbug is
13256               not one of the forms that C requires support for.
13257               However, doing the test right would require a run-time
13258               test, and that would make cross-compilation harder.
13259               Let us hope that IBM fixes the xlc bug, and also adds
13260               support for this kind of constant expression.  In the
13261               meantime, this test will reject xlc, which is OK, since
13262               our stdbool.h substitute should suffice.  We also test
13263               this with GCC, where it should work, to detect more
13264               quickly whether someone messes up the test in the
13265               future.  */
13266            char digs[] = "0123456789";
13267            int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
13268           #endif
13269           /* Catch a bug in an HP-UX C compiler.  See
13270              http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13271              http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13272            */
13273           _Bool q = true;
13274           _Bool *pq = &q;
13275
13276 int
13277 main ()
13278 {
13279
13280           *pq |= q;
13281           *pq |= ! q;
13282           /* Refer to every declared value, to avoid compiler optimizations.  */
13283           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13284                   + !m + !n + !o + !p + !q + !pq);
13285
13286   ;
13287   return 0;
13288 }
13289 _ACEOF
13290 rm -f conftest.$ac_objext
13291 if { (ac_try="$ac_compile"
13292 case "(($ac_try" in
13293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294   *) ac_try_echo=$ac_try;;
13295 esac
13296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13297 $as_echo "$ac_try_echo") >&5
13298   (eval "$ac_compile") 2>conftest.er1
13299   ac_status=$?
13300   grep -v '^ *+' conftest.er1 >conftest.err
13301   rm -f conftest.er1
13302   cat conftest.err >&5
13303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); } && {
13305          test -z "$ac_c_werror_flag" ||
13306          test ! -s conftest.err
13307        } && test -s conftest.$ac_objext; then
13308   ac_cv_header_stdbool_h=yes
13309 else
13310   $as_echo "$as_me: failed program was:" >&5
13311 sed 's/^/| /' conftest.$ac_ext >&5
13312
13313         ac_cv_header_stdbool_h=no
13314 fi
13315
13316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13317 fi
13318 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
13319 $as_echo "$ac_cv_header_stdbool_h" >&6; }
13320    { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
13321 $as_echo_n "checking for _Bool... " >&6; }
13322 if test "${ac_cv_type__Bool+set}" = set; then
13323   $as_echo_n "(cached) " >&6
13324 else
13325   ac_cv_type__Bool=no
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 $ac_includes_default
13333 int
13334 main ()
13335 {
13336 if (sizeof (_Bool))
13337        return 0;
13338   ;
13339   return 0;
13340 }
13341 _ACEOF
13342 rm -f conftest.$ac_objext
13343 if { (ac_try="$ac_compile"
13344 case "(($ac_try" in
13345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346   *) ac_try_echo=$ac_try;;
13347 esac
13348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13349 $as_echo "$ac_try_echo") >&5
13350   (eval "$ac_compile") 2>conftest.er1
13351   ac_status=$?
13352   grep -v '^ *+' conftest.er1 >conftest.err
13353   rm -f conftest.er1
13354   cat conftest.err >&5
13355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); } && {
13357          test -z "$ac_c_werror_flag" ||
13358          test ! -s conftest.err
13359        } && test -s conftest.$ac_objext; then
13360   cat >conftest.$ac_ext <<_ACEOF
13361 /* confdefs.h.  */
13362 _ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h.  */
13366 $ac_includes_default
13367 int
13368 main ()
13369 {
13370 if (sizeof ((_Bool)))
13371           return 0;
13372   ;
13373   return 0;
13374 }
13375 _ACEOF
13376 rm -f conftest.$ac_objext
13377 if { (ac_try="$ac_compile"
13378 case "(($ac_try" in
13379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380   *) ac_try_echo=$ac_try;;
13381 esac
13382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13383 $as_echo "$ac_try_echo") >&5
13384   (eval "$ac_compile") 2>conftest.er1
13385   ac_status=$?
13386   grep -v '^ *+' conftest.er1 >conftest.err
13387   rm -f conftest.er1
13388   cat conftest.err >&5
13389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390   (exit $ac_status); } && {
13391          test -z "$ac_c_werror_flag" ||
13392          test ! -s conftest.err
13393        } && test -s conftest.$ac_objext; then
13394   :
13395 else
13396   $as_echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13398
13399         ac_cv_type__Bool=yes
13400 fi
13401
13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403 else
13404   $as_echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13406
13407
13408 fi
13409
13410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13411 fi
13412 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
13413 $as_echo "$ac_cv_type__Bool" >&6; }
13414 if test "x$ac_cv_type__Bool" = x""yes; then
13415
13416 cat >>confdefs.h <<_ACEOF
13417 #define HAVE__BOOL 1
13418 _ACEOF
13419
13420
13421 fi
13422
13423    if test $ac_cv_header_stdbool_h = yes; then
13424
13425 cat >>confdefs.h <<\_ACEOF
13426 #define HAVE_STDBOOL_H 1
13427 _ACEOF
13428
13429    fi
13430
13431   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
13432 $as_echo_n "checking for long long int... " >&6; }
13433 if test "${ac_cv_type_long_long_int+set}" = set; then
13434   $as_echo_n "(cached) " >&6
13435 else
13436   cat >conftest.$ac_ext <<_ACEOF
13437
13438   /* confdefs.h.  */
13439 _ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h.  */
13443 /* For now, do not test the preprocessor; as of 2007 there are too many
13444          implementations with broken preprocessors.  Perhaps this can
13445          be revisited in 2012.  In the meantime, code should not expect
13446          #if to work with literals wider than 32 bits.  */
13447       /* Test literals.  */
13448       long long int ll = 9223372036854775807ll;
13449       long long int nll = -9223372036854775807LL;
13450       unsigned long long int ull = 18446744073709551615ULL;
13451       /* Test constant expressions.   */
13452       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
13453                      ? 1 : -1)];
13454       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
13455                      ? 1 : -1)];
13456       int i = 63;
13457 int
13458 main ()
13459 {
13460 /* Test availability of runtime routines for shift and division.  */
13461       long long int llmax = 9223372036854775807ll;
13462       unsigned long long int ullmax = 18446744073709551615ull;
13463       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13464               | (llmax / ll) | (llmax % ll)
13465               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
13466               | (ullmax / ull) | (ullmax % ull));
13467   ;
13468   return 0;
13469 }
13470
13471 _ACEOF
13472 rm -f conftest.$ac_objext conftest$ac_exeext
13473 if { (ac_try="$ac_link"
13474 case "(($ac_try" in
13475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13476   *) ac_try_echo=$ac_try;;
13477 esac
13478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13479 $as_echo "$ac_try_echo") >&5
13480   (eval "$ac_link") 2>conftest.er1
13481   ac_status=$?
13482   grep -v '^ *+' conftest.er1 >conftest.err
13483   rm -f conftest.er1
13484   cat conftest.err >&5
13485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486   (exit $ac_status); } && {
13487          test -z "$ac_c_werror_flag" ||
13488          test ! -s conftest.err
13489        } && test -s conftest$ac_exeext && {
13490          test "$cross_compiling" = yes ||
13491          $as_test_x conftest$ac_exeext
13492        }; then
13493                         if test "$cross_compiling" = yes; then
13494   ac_cv_type_long_long_int=yes
13495 else
13496   cat >conftest.$ac_ext <<_ACEOF
13497 /* confdefs.h.  */
13498 _ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h.  */
13502 #include <limits.h>
13503                #ifndef LLONG_MAX
13504                # define HALF \
13505                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
13506                # define LLONG_MAX (HALF - 1 + HALF)
13507                #endif
13508 int
13509 main ()
13510 {
13511 long long int n = 1;
13512                int i;
13513                for (i = 0; ; i++)
13514                  {
13515                    long long int m = n << i;
13516                    if (m >> i != n)
13517                      return 1;
13518                    if (LLONG_MAX / 2 < m)
13519                      break;
13520                  }
13521                return 0;
13522   ;
13523   return 0;
13524 }
13525 _ACEOF
13526 rm -f conftest$ac_exeext
13527 if { (ac_try="$ac_link"
13528 case "(($ac_try" in
13529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530   *) ac_try_echo=$ac_try;;
13531 esac
13532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13533 $as_echo "$ac_try_echo") >&5
13534   (eval "$ac_link") 2>&5
13535   ac_status=$?
13536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13538   { (case "(($ac_try" in
13539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540   *) ac_try_echo=$ac_try;;
13541 esac
13542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13543 $as_echo "$ac_try_echo") >&5
13544   (eval "$ac_try") 2>&5
13545   ac_status=$?
13546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547   (exit $ac_status); }; }; then
13548   ac_cv_type_long_long_int=yes
13549 else
13550   $as_echo "$as_me: program exited with status $ac_status" >&5
13551 $as_echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13553
13554 ( exit $ac_status )
13555 ac_cv_type_long_long_int=no
13556 fi
13557 rm -rf conftest.dSYM
13558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13559 fi
13560
13561
13562 else
13563   $as_echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13565
13566         ac_cv_type_long_long_int=no
13567 fi
13568
13569 rm -rf conftest.dSYM
13570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13571       conftest$ac_exeext conftest.$ac_ext
13572 fi
13573 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13574 $as_echo "$ac_cv_type_long_long_int" >&6; }
13575   if test $ac_cv_type_long_long_int = yes; then
13576
13577 cat >>confdefs.h <<\_ACEOF
13578 #define HAVE_LONG_LONG_INT 1
13579 _ACEOF
13580
13581   fi
13582
13583
13584   { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
13585 $as_echo_n "checking for unsigned long long int... " >&6; }
13586 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
13587   $as_echo_n "(cached) " >&6
13588 else
13589   cat >conftest.$ac_ext <<_ACEOF
13590
13591   /* confdefs.h.  */
13592 _ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h.  */
13596 /* For now, do not test the preprocessor; as of 2007 there are too many
13597          implementations with broken preprocessors.  Perhaps this can
13598          be revisited in 2012.  In the meantime, code should not expect
13599          #if to work with literals wider than 32 bits.  */
13600       /* Test literals.  */
13601       long long int ll = 9223372036854775807ll;
13602       long long int nll = -9223372036854775807LL;
13603       unsigned long long int ull = 18446744073709551615ULL;
13604       /* Test constant expressions.   */
13605       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
13606                      ? 1 : -1)];
13607       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
13608                      ? 1 : -1)];
13609       int i = 63;
13610 int
13611 main ()
13612 {
13613 /* Test availability of runtime routines for shift and division.  */
13614       long long int llmax = 9223372036854775807ll;
13615       unsigned long long int ullmax = 18446744073709551615ull;
13616       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13617               | (llmax / ll) | (llmax % ll)
13618               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
13619               | (ullmax / ull) | (ullmax % ull));
13620   ;
13621   return 0;
13622 }
13623
13624 _ACEOF
13625 rm -f conftest.$ac_objext conftest$ac_exeext
13626 if { (ac_try="$ac_link"
13627 case "(($ac_try" in
13628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629   *) ac_try_echo=$ac_try;;
13630 esac
13631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13632 $as_echo "$ac_try_echo") >&5
13633   (eval "$ac_link") 2>conftest.er1
13634   ac_status=$?
13635   grep -v '^ *+' conftest.er1 >conftest.err
13636   rm -f conftest.er1
13637   cat conftest.err >&5
13638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); } && {
13640          test -z "$ac_c_werror_flag" ||
13641          test ! -s conftest.err
13642        } && test -s conftest$ac_exeext && {
13643          test "$cross_compiling" = yes ||
13644          $as_test_x conftest$ac_exeext
13645        }; then
13646   ac_cv_type_unsigned_long_long_int=yes
13647 else
13648   $as_echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13650
13651         ac_cv_type_unsigned_long_long_int=no
13652 fi
13653
13654 rm -rf conftest.dSYM
13655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13656       conftest$ac_exeext conftest.$ac_ext
13657 fi
13658 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
13659 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
13660   if test $ac_cv_type_unsigned_long_long_int = yes; then
13661
13662 cat >>confdefs.h <<\_ACEOF
13663 #define HAVE_UNSIGNED_LONG_LONG_INT 1
13664 _ACEOF
13665
13666   fi
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13693 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
13694 if test "${ac_cv_header_stat_broken+set}" = set; then
13695   $as_echo_n "(cached) " >&6
13696 else
13697   cat >conftest.$ac_ext <<_ACEOF
13698 /* confdefs.h.  */
13699 _ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h.  */
13703 #include <sys/types.h>
13704 #include <sys/stat.h>
13705
13706 #if defined S_ISBLK && defined S_IFDIR
13707 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
13708 #endif
13709
13710 #if defined S_ISBLK && defined S_IFCHR
13711 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
13712 #endif
13713
13714 #if defined S_ISLNK && defined S_IFREG
13715 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
13716 #endif
13717
13718 #if defined S_ISSOCK && defined S_IFREG
13719 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
13720 #endif
13721
13722 _ACEOF
13723 rm -f conftest.$ac_objext
13724 if { (ac_try="$ac_compile"
13725 case "(($ac_try" in
13726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727   *) ac_try_echo=$ac_try;;
13728 esac
13729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13730 $as_echo "$ac_try_echo") >&5
13731   (eval "$ac_compile") 2>conftest.er1
13732   ac_status=$?
13733   grep -v '^ *+' conftest.er1 >conftest.err
13734   rm -f conftest.er1
13735   cat conftest.err >&5
13736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737   (exit $ac_status); } && {
13738          test -z "$ac_c_werror_flag" ||
13739          test ! -s conftest.err
13740        } && test -s conftest.$ac_objext; then
13741   ac_cv_header_stat_broken=no
13742 else
13743   $as_echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.$ac_ext >&5
13745
13746         ac_cv_header_stat_broken=yes
13747 fi
13748
13749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13750 fi
13751 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13752 $as_echo "$ac_cv_header_stat_broken" >&6; }
13753 if test $ac_cv_header_stat_broken = yes; then
13754
13755 cat >>confdefs.h <<\_ACEOF
13756 #define STAT_MACROS_BROKEN 1
13757 _ACEOF
13758
13759 fi
13760
13761
13762
13763
13764
13765
13766
13767 # Check whether --enable-largefile was given.
13768 if test "${enable_largefile+set}" = set; then
13769   enableval=$enable_largefile;
13770 fi
13771
13772 if test "$enable_largefile" != no; then
13773
13774   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
13775 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13776 if test "${ac_cv_sys_largefile_CC+set}" = set; then
13777   $as_echo_n "(cached) " >&6
13778 else
13779   ac_cv_sys_largefile_CC=no
13780      if test "$GCC" != yes; then
13781        ac_save_CC=$CC
13782        while :; do
13783          # IRIX 6.2 and later do not support large files by default,
13784          # so use the C compiler's -n32 option if that helps.
13785          cat >conftest.$ac_ext <<_ACEOF
13786 /* confdefs.h.  */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h.  */
13791 #include <sys/types.h>
13792  /* Check that off_t can represent 2**63 - 1 correctly.
13793     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13794     since some C++ compilers masquerading as C compilers
13795     incorrectly reject 9223372036854775807.  */
13796 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13797   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13798                        && LARGE_OFF_T % 2147483647 == 1)
13799                       ? 1 : -1];
13800 int
13801 main ()
13802 {
13803
13804   ;
13805   return 0;
13806 }
13807 _ACEOF
13808          rm -f conftest.$ac_objext
13809 if { (ac_try="$ac_compile"
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_compile") 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); } && {
13823          test -z "$ac_c_werror_flag" ||
13824          test ! -s conftest.err
13825        } && test -s conftest.$ac_objext; then
13826   break
13827 else
13828   $as_echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13830
13831
13832 fi
13833
13834 rm -f core conftest.err conftest.$ac_objext
13835          CC="$CC -n32"
13836          rm -f conftest.$ac_objext
13837 if { (ac_try="$ac_compile"
13838 case "(($ac_try" in
13839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840   *) ac_try_echo=$ac_try;;
13841 esac
13842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13843 $as_echo "$ac_try_echo") >&5
13844   (eval "$ac_compile") 2>conftest.er1
13845   ac_status=$?
13846   grep -v '^ *+' conftest.er1 >conftest.err
13847   rm -f conftest.er1
13848   cat conftest.err >&5
13849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); } && {
13851          test -z "$ac_c_werror_flag" ||
13852          test ! -s conftest.err
13853        } && test -s conftest.$ac_objext; then
13854   ac_cv_sys_largefile_CC=' -n32'; break
13855 else
13856   $as_echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13858
13859
13860 fi
13861
13862 rm -f core conftest.err conftest.$ac_objext
13863          break
13864        done
13865        CC=$ac_save_CC
13866        rm -f conftest.$ac_ext
13867     fi
13868 fi
13869 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
13870 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13871   if test "$ac_cv_sys_largefile_CC" != no; then
13872     CC=$CC$ac_cv_sys_largefile_CC
13873   fi
13874
13875   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13876 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13877 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13878   $as_echo_n "(cached) " >&6
13879 else
13880   while :; do
13881   cat >conftest.$ac_ext <<_ACEOF
13882 /* confdefs.h.  */
13883 _ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h.  */
13887 #include <sys/types.h>
13888  /* Check that off_t can represent 2**63 - 1 correctly.
13889     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13890     since some C++ compilers masquerading as C compilers
13891     incorrectly reject 9223372036854775807.  */
13892 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13893   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13894                        && LARGE_OFF_T % 2147483647 == 1)
13895                       ? 1 : -1];
13896 int
13897 main ()
13898 {
13899
13900   ;
13901   return 0;
13902 }
13903 _ACEOF
13904 rm -f conftest.$ac_objext
13905 if { (ac_try="$ac_compile"
13906 case "(($ac_try" in
13907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908   *) ac_try_echo=$ac_try;;
13909 esac
13910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13911 $as_echo "$ac_try_echo") >&5
13912   (eval "$ac_compile") 2>conftest.er1
13913   ac_status=$?
13914   grep -v '^ *+' conftest.er1 >conftest.err
13915   rm -f conftest.er1
13916   cat conftest.err >&5
13917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918   (exit $ac_status); } && {
13919          test -z "$ac_c_werror_flag" ||
13920          test ! -s conftest.err
13921        } && test -s conftest.$ac_objext; then
13922   ac_cv_sys_file_offset_bits=no; break
13923 else
13924   $as_echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13926
13927
13928 fi
13929
13930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13931   cat >conftest.$ac_ext <<_ACEOF
13932 /* confdefs.h.  */
13933 _ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h.  */
13937 #define _FILE_OFFSET_BITS 64
13938 #include <sys/types.h>
13939  /* Check that off_t can represent 2**63 - 1 correctly.
13940     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13941     since some C++ compilers masquerading as C compilers
13942     incorrectly reject 9223372036854775807.  */
13943 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13944   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13945                        && LARGE_OFF_T % 2147483647 == 1)
13946                       ? 1 : -1];
13947 int
13948 main ()
13949 {
13950
13951   ;
13952   return 0;
13953 }
13954 _ACEOF
13955 rm -f conftest.$ac_objext
13956 if { (ac_try="$ac_compile"
13957 case "(($ac_try" in
13958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959   *) ac_try_echo=$ac_try;;
13960 esac
13961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13962 $as_echo "$ac_try_echo") >&5
13963   (eval "$ac_compile") 2>conftest.er1
13964   ac_status=$?
13965   grep -v '^ *+' conftest.er1 >conftest.err
13966   rm -f conftest.er1
13967   cat conftest.err >&5
13968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969   (exit $ac_status); } && {
13970          test -z "$ac_c_werror_flag" ||
13971          test ! -s conftest.err
13972        } && test -s conftest.$ac_objext; then
13973   ac_cv_sys_file_offset_bits=64; break
13974 else
13975   $as_echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13977
13978
13979 fi
13980
13981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13982   ac_cv_sys_file_offset_bits=unknown
13983   break
13984 done
13985 fi
13986 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
13987 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13988 case $ac_cv_sys_file_offset_bits in #(
13989   no | unknown) ;;
13990   *)
13991 cat >>confdefs.h <<_ACEOF
13992 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13993 _ACEOF
13994 ;;
13995 esac
13996 rm -rf conftest*
13997   if test $ac_cv_sys_file_offset_bits = unknown; then
13998     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
13999 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14000 if test "${ac_cv_sys_large_files+set}" = set; then
14001   $as_echo_n "(cached) " >&6
14002 else
14003   while :; do
14004   cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h.  */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h.  */
14010 #include <sys/types.h>
14011  /* Check that off_t can represent 2**63 - 1 correctly.
14012     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14013     since some C++ compilers masquerading as C compilers
14014     incorrectly reject 9223372036854775807.  */
14015 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14016   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14017                        && LARGE_OFF_T % 2147483647 == 1)
14018                       ? 1 : -1];
14019 int
14020 main ()
14021 {
14022
14023   ;
14024   return 0;
14025 }
14026 _ACEOF
14027 rm -f conftest.$ac_objext
14028 if { (ac_try="$ac_compile"
14029 case "(($ac_try" in
14030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14031   *) ac_try_echo=$ac_try;;
14032 esac
14033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14034 $as_echo "$ac_try_echo") >&5
14035   (eval "$ac_compile") 2>conftest.er1
14036   ac_status=$?
14037   grep -v '^ *+' conftest.er1 >conftest.err
14038   rm -f conftest.er1
14039   cat conftest.err >&5
14040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041   (exit $ac_status); } && {
14042          test -z "$ac_c_werror_flag" ||
14043          test ! -s conftest.err
14044        } && test -s conftest.$ac_objext; then
14045   ac_cv_sys_large_files=no; break
14046 else
14047   $as_echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14049
14050
14051 fi
14052
14053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14054   cat >conftest.$ac_ext <<_ACEOF
14055 /* confdefs.h.  */
14056 _ACEOF
14057 cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h.  */
14060 #define _LARGE_FILES 1
14061 #include <sys/types.h>
14062  /* Check that off_t can represent 2**63 - 1 correctly.
14063     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14064     since some C++ compilers masquerading as C compilers
14065     incorrectly reject 9223372036854775807.  */
14066 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14067   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14068                        && LARGE_OFF_T % 2147483647 == 1)
14069                       ? 1 : -1];
14070 int
14071 main ()
14072 {
14073
14074   ;
14075   return 0;
14076 }
14077 _ACEOF
14078 rm -f conftest.$ac_objext
14079 if { (ac_try="$ac_compile"
14080 case "(($ac_try" in
14081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082   *) ac_try_echo=$ac_try;;
14083 esac
14084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14085 $as_echo "$ac_try_echo") >&5
14086   (eval "$ac_compile") 2>conftest.er1
14087   ac_status=$?
14088   grep -v '^ *+' conftest.er1 >conftest.err
14089   rm -f conftest.er1
14090   cat conftest.err >&5
14091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092   (exit $ac_status); } && {
14093          test -z "$ac_c_werror_flag" ||
14094          test ! -s conftest.err
14095        } && test -s conftest.$ac_objext; then
14096   ac_cv_sys_large_files=1; break
14097 else
14098   $as_echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14100
14101
14102 fi
14103
14104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14105   ac_cv_sys_large_files=unknown
14106   break
14107 done
14108 fi
14109 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
14110 $as_echo "$ac_cv_sys_large_files" >&6; }
14111 case $ac_cv_sys_large_files in #(
14112   no | unknown) ;;
14113   *)
14114 cat >>confdefs.h <<_ACEOF
14115 #define _LARGE_FILES $ac_cv_sys_large_files
14116 _ACEOF
14117 ;;
14118 esac
14119 rm -rf conftest*
14120   fi
14121 fi
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136   { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
14137 $as_echo_n "checking for wchar_t... " >&6; }
14138 if test "${gt_cv_c_wchar_t+set}" = set; then
14139   $as_echo_n "(cached) " >&6
14140 else
14141   cat >conftest.$ac_ext <<_ACEOF
14142 /* confdefs.h.  */
14143 _ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h.  */
14147 #include <stddef.h>
14148        wchar_t foo = (wchar_t)'\0';
14149 int
14150 main ()
14151 {
14152
14153   ;
14154   return 0;
14155 }
14156 _ACEOF
14157 rm -f conftest.$ac_objext
14158 if { (ac_try="$ac_compile"
14159 case "(($ac_try" in
14160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161   *) ac_try_echo=$ac_try;;
14162 esac
14163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14164 $as_echo "$ac_try_echo") >&5
14165   (eval "$ac_compile") 2>conftest.er1
14166   ac_status=$?
14167   grep -v '^ *+' conftest.er1 >conftest.err
14168   rm -f conftest.er1
14169   cat conftest.err >&5
14170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171   (exit $ac_status); } && {
14172          test -z "$ac_c_werror_flag" ||
14173          test ! -s conftest.err
14174        } && test -s conftest.$ac_objext; then
14175   gt_cv_c_wchar_t=yes
14176 else
14177   $as_echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14179
14180         gt_cv_c_wchar_t=no
14181 fi
14182
14183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184 fi
14185 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
14186 $as_echo "$gt_cv_c_wchar_t" >&6; }
14187   if test $gt_cv_c_wchar_t = yes; then
14188
14189 cat >>confdefs.h <<\_ACEOF
14190 #define HAVE_WCHAR_T 1
14191 _ACEOF
14192
14193   fi
14194
14195
14196   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
14197 $as_echo_n "checking for wint_t... " >&6; }
14198 if test "${gt_cv_c_wint_t+set}" = set; then
14199   $as_echo_n "(cached) " >&6
14200 else
14201   cat >conftest.$ac_ext <<_ACEOF
14202 /* confdefs.h.  */
14203 _ACEOF
14204 cat confdefs.h >>conftest.$ac_ext
14205 cat >>conftest.$ac_ext <<_ACEOF
14206 /* end confdefs.h.  */
14207 #include <wchar.h>
14208        wint_t foo = (wchar_t)'\0';
14209 int
14210 main ()
14211 {
14212
14213   ;
14214   return 0;
14215 }
14216 _ACEOF
14217 rm -f conftest.$ac_objext
14218 if { (ac_try="$ac_compile"
14219 case "(($ac_try" in
14220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221   *) ac_try_echo=$ac_try;;
14222 esac
14223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14224 $as_echo "$ac_try_echo") >&5
14225   (eval "$ac_compile") 2>conftest.er1
14226   ac_status=$?
14227   grep -v '^ *+' conftest.er1 >conftest.err
14228   rm -f conftest.er1
14229   cat conftest.err >&5
14230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231   (exit $ac_status); } && {
14232          test -z "$ac_c_werror_flag" ||
14233          test ! -s conftest.err
14234        } && test -s conftest.$ac_objext; then
14235   gt_cv_c_wint_t=yes
14236 else
14237   $as_echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14239
14240         gt_cv_c_wint_t=no
14241 fi
14242
14243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244 fi
14245 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
14246 $as_echo "$gt_cv_c_wint_t" >&6; }
14247   if test $gt_cv_c_wint_t = yes; then
14248
14249 cat >>confdefs.h <<\_ACEOF
14250 #define HAVE_WINT_T 1
14251 _ACEOF
14252
14253   fi
14254
14255 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
14256 $as_echo_n "checking for size_t... " >&6; }
14257 if test "${ac_cv_type_size_t+set}" = set; then
14258   $as_echo_n "(cached) " >&6
14259 else
14260   ac_cv_type_size_t=no
14261 cat >conftest.$ac_ext <<_ACEOF
14262 /* confdefs.h.  */
14263 _ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h.  */
14267 $ac_includes_default
14268 int
14269 main ()
14270 {
14271 if (sizeof (size_t))
14272        return 0;
14273   ;
14274   return 0;
14275 }
14276 _ACEOF
14277 rm -f conftest.$ac_objext
14278 if { (ac_try="$ac_compile"
14279 case "(($ac_try" in
14280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14281   *) ac_try_echo=$ac_try;;
14282 esac
14283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14284 $as_echo "$ac_try_echo") >&5
14285   (eval "$ac_compile") 2>conftest.er1
14286   ac_status=$?
14287   grep -v '^ *+' conftest.er1 >conftest.err
14288   rm -f conftest.er1
14289   cat conftest.err >&5
14290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291   (exit $ac_status); } && {
14292          test -z "$ac_c_werror_flag" ||
14293          test ! -s conftest.err
14294        } && test -s conftest.$ac_objext; then
14295   cat >conftest.$ac_ext <<_ACEOF
14296 /* confdefs.h.  */
14297 _ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h.  */
14301 $ac_includes_default
14302 int
14303 main ()
14304 {
14305 if (sizeof ((size_t)))
14306           return 0;
14307   ;
14308   return 0;
14309 }
14310 _ACEOF
14311 rm -f conftest.$ac_objext
14312 if { (ac_try="$ac_compile"
14313 case "(($ac_try" in
14314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14315   *) ac_try_echo=$ac_try;;
14316 esac
14317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14318 $as_echo "$ac_try_echo") >&5
14319   (eval "$ac_compile") 2>conftest.er1
14320   ac_status=$?
14321   grep -v '^ *+' conftest.er1 >conftest.err
14322   rm -f conftest.er1
14323   cat conftest.err >&5
14324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); } && {
14326          test -z "$ac_c_werror_flag" ||
14327          test ! -s conftest.err
14328        } && test -s conftest.$ac_objext; then
14329   :
14330 else
14331   $as_echo "$as_me: failed program was:" >&5
14332 sed 's/^/| /' conftest.$ac_ext >&5
14333
14334         ac_cv_type_size_t=yes
14335 fi
14336
14337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14338 else
14339   $as_echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14341
14342
14343 fi
14344
14345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14346 fi
14347 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14348 $as_echo "$ac_cv_type_size_t" >&6; }
14349 if test "x$ac_cv_type_size_t" = x""yes; then
14350   :
14351 else
14352
14353 cat >>confdefs.h <<_ACEOF
14354 #define size_t unsigned int
14355 _ACEOF
14356
14357 fi
14358
14359
14360   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
14361 $as_echo_n "checking for inttypes.h... " >&6; }
14362 if test "${gl_cv_header_inttypes_h+set}" = set; then
14363   $as_echo_n "(cached) " >&6
14364 else
14365   cat >conftest.$ac_ext <<_ACEOF
14366 /* confdefs.h.  */
14367 _ACEOF
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h.  */
14371 #include <sys/types.h>
14372 #include <inttypes.h>
14373 int
14374 main ()
14375 {
14376 uintmax_t i = (uintmax_t) -1;
14377   ;
14378   return 0;
14379 }
14380 _ACEOF
14381 rm -f conftest.$ac_objext
14382 if { (ac_try="$ac_compile"
14383 case "(($ac_try" in
14384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385   *) ac_try_echo=$ac_try;;
14386 esac
14387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14388 $as_echo "$ac_try_echo") >&5
14389   (eval "$ac_compile") 2>conftest.er1
14390   ac_status=$?
14391   grep -v '^ *+' conftest.er1 >conftest.err
14392   rm -f conftest.er1
14393   cat conftest.err >&5
14394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395   (exit $ac_status); } && {
14396          test -z "$ac_c_werror_flag" ||
14397          test ! -s conftest.err
14398        } && test -s conftest.$ac_objext; then
14399   gl_cv_header_inttypes_h=yes
14400 else
14401   $as_echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14403
14404         gl_cv_header_inttypes_h=no
14405 fi
14406
14407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14408 fi
14409 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
14410 $as_echo "$gl_cv_header_inttypes_h" >&6; }
14411   if test $gl_cv_header_inttypes_h = yes; then
14412
14413 cat >>confdefs.h <<_ACEOF
14414 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
14415 _ACEOF
14416
14417   fi
14418
14419
14420   { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
14421 $as_echo_n "checking for stdint.h... " >&6; }
14422 if test "${gl_cv_header_stdint_h+set}" = set; then
14423   $as_echo_n "(cached) " >&6
14424 else
14425   cat >conftest.$ac_ext <<_ACEOF
14426 /* confdefs.h.  */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h.  */
14431 #include <sys/types.h>
14432 #include <stdint.h>
14433 int
14434 main ()
14435 {
14436 uintmax_t i = (uintmax_t) -1;
14437   ;
14438   return 0;
14439 }
14440 _ACEOF
14441 rm -f conftest.$ac_objext
14442 if { (ac_try="$ac_compile"
14443 case "(($ac_try" in
14444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14445   *) ac_try_echo=$ac_try;;
14446 esac
14447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14448 $as_echo "$ac_try_echo") >&5
14449   (eval "$ac_compile") 2>conftest.er1
14450   ac_status=$?
14451   grep -v '^ *+' conftest.er1 >conftest.err
14452   rm -f conftest.er1
14453   cat conftest.err >&5
14454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); } && {
14456          test -z "$ac_c_werror_flag" ||
14457          test ! -s conftest.err
14458        } && test -s conftest.$ac_objext; then
14459   gl_cv_header_stdint_h=yes
14460 else
14461   $as_echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14463
14464         gl_cv_header_stdint_h=no
14465 fi
14466
14467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14468 fi
14469 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
14470 $as_echo "$gl_cv_header_stdint_h" >&6; }
14471   if test $gl_cv_header_stdint_h = yes; then
14472
14473 cat >>confdefs.h <<_ACEOF
14474 #define HAVE_STDINT_H_WITH_UINTMAX 1
14475 _ACEOF
14476
14477   fi
14478
14479
14480
14481
14482   { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
14483 $as_echo_n "checking for intmax_t... " >&6; }
14484 if test "${gt_cv_c_intmax_t+set}" = set; then
14485   $as_echo_n "(cached) " >&6
14486 else
14487   cat >conftest.$ac_ext <<_ACEOF
14488 /* confdefs.h.  */
14489 _ACEOF
14490 cat confdefs.h >>conftest.$ac_ext
14491 cat >>conftest.$ac_ext <<_ACEOF
14492 /* end confdefs.h.  */
14493
14494 #include <stddef.h>
14495 #include <stdlib.h>
14496 #if HAVE_STDINT_H_WITH_UINTMAX
14497 #include <stdint.h>
14498 #endif
14499 #if HAVE_INTTYPES_H_WITH_UINTMAX
14500 #include <inttypes.h>
14501 #endif
14502
14503 int
14504 main ()
14505 {
14506 intmax_t x = -1; return !x;
14507   ;
14508   return 0;
14509 }
14510 _ACEOF
14511 rm -f conftest.$ac_objext
14512 if { (ac_try="$ac_compile"
14513 case "(($ac_try" in
14514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515   *) ac_try_echo=$ac_try;;
14516 esac
14517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14518 $as_echo "$ac_try_echo") >&5
14519   (eval "$ac_compile") 2>conftest.er1
14520   ac_status=$?
14521   grep -v '^ *+' conftest.er1 >conftest.err
14522   rm -f conftest.er1
14523   cat conftest.err >&5
14524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525   (exit $ac_status); } && {
14526          test -z "$ac_c_werror_flag" ||
14527          test ! -s conftest.err
14528        } && test -s conftest.$ac_objext; then
14529   gt_cv_c_intmax_t=yes
14530 else
14531   $as_echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14533
14534         gt_cv_c_intmax_t=no
14535 fi
14536
14537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14538 fi
14539 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
14540 $as_echo "$gt_cv_c_intmax_t" >&6; }
14541   if test $gt_cv_c_intmax_t = yes; then
14542
14543 cat >>confdefs.h <<\_ACEOF
14544 #define HAVE_INTMAX_T 1
14545 _ACEOF
14546
14547   else
14548
14549     test $ac_cv_type_long_long_int = yes \
14550       && ac_type='long long' \
14551       || ac_type='long'
14552
14553 cat >>confdefs.h <<_ACEOF
14554 #define intmax_t $ac_type
14555 _ACEOF
14556
14557   fi
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578    if true; then
14579   GL_COND_LIBTOOL_TRUE=
14580   GL_COND_LIBTOOL_FALSE='#'
14581 else
14582   GL_COND_LIBTOOL_TRUE='#'
14583   GL_COND_LIBTOOL_FALSE=
14584 fi
14585
14586   gl_cond_libtool=true
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596   gl_source_base='gnulib'
14597 LTALLOCA=`echo "$ALLOCA" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
14598
14599
14600
14601
14602
14603
14604   if test $ac_cv_func_alloca_works = no; then
14605     :
14606   fi
14607
14608   # Define an additional variable used in the Makefile substitution.
14609   if test $ac_cv_working_alloca_h = yes; then
14610     { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
14611 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
14612 if test "${gl_cv_rpl_alloca+set}" = set; then
14613   $as_echo_n "(cached) " >&6
14614 else
14615
14616       cat >conftest.$ac_ext <<_ACEOF
14617 /* confdefs.h.  */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h.  */
14622
14623 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
14624         Need own alloca
14625 #endif
14626
14627 _ACEOF
14628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14629   $EGREP "Need own alloca" >/dev/null 2>&1; then
14630   gl_cv_rpl_alloca=yes
14631 else
14632   gl_cv_rpl_alloca=no
14633 fi
14634 rm -f conftest*
14635
14636
14637 fi
14638 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
14639 $as_echo "$gl_cv_rpl_alloca" >&6; }
14640     if test $gl_cv_rpl_alloca = yes; then
14641
14642 cat >>confdefs.h <<\_ACEOF
14643 #define HAVE_ALLOCA 1
14644 _ACEOF
14645
14646       ALLOCA_H=alloca.h
14647     else
14648                   ALLOCA_H=
14649     fi
14650   else
14651     ALLOCA_H=alloca.h
14652   fi
14653
14654
14655
14656
14657
14658
14659   :
14660
14661
14662
14663
14664
14665   if test $ac_cv_header_arpa_inet_h = yes; then
14666     HAVE_ARPA_INET_H=1
14667   else
14668     ARPA_INET_H='arpa/inet.h'
14669     HAVE_ARPA_INET_H=0
14670   fi
14671
14672
14673
14674
14675
14676   :
14677
14678
14679
14680
14681
14682
14683
14684      if test $gl_cv_have_include_next = yes; then
14685        gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
14686      else
14687        { $as_echo "$as_me:$LINENO: checking absolute name of <arpa/inet.h>" >&5
14688 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
14689 if test "${gl_cv_next_arpa_inet_h+set}" = set; then
14690   $as_echo_n "(cached) " >&6
14691 else
14692
14693           if test $ac_cv_header_arpa_inet_h = yes; then
14694             cat >conftest.$ac_ext <<_ACEOF
14695 /* confdefs.h.  */
14696 _ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h.  */
14700 #include <arpa/inet.h>
14701
14702 _ACEOF
14703                                                                     case "$host_os" in
14704               aix*) gl_absname_cpp="$ac_cpp -C" ;;
14705               *)    gl_absname_cpp="$ac_cpp" ;;
14706             esac
14707                                     gl_cv_next_arpa_inet_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14708                sed -n '\#/arpa/inet.h#{
14709                  s#.*"\(.*/arpa/inet.h\)".*#\1#
14710                  s#^/[^/]#//&#
14711                  p
14712                  q
14713                }'`'"'
14714           else
14715             gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
14716           fi
14717
14718 fi
14719 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_arpa_inet_h" >&5
14720 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
14721      fi
14722      NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
14723
14724
14725
14726
14727   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
14728 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
14729 if test -z "$MKDIR_P"; then
14730   if test "${ac_cv_path_mkdir+set}" = set; then
14731   $as_echo_n "(cached) " >&6
14732 else
14733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14734 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
14735 do
14736   IFS=$as_save_IFS
14737   test -z "$as_dir" && as_dir=.
14738   for ac_prog in mkdir gmkdir; do
14739          for ac_exec_ext in '' $ac_executable_extensions; do
14740            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
14741            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
14742              'mkdir (GNU coreutils) '* | \
14743              'mkdir (coreutils) '* | \
14744              'mkdir (fileutils) '4.1*)
14745                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
14746                break 3;;
14747            esac
14748          done
14749        done
14750 done
14751 IFS=$as_save_IFS
14752
14753 fi
14754
14755   if test "${ac_cv_path_mkdir+set}" = set; then
14756     MKDIR_P="$ac_cv_path_mkdir -p"
14757   else
14758     # As a last resort, use the slow shell script.  Don't cache a
14759     # value for MKDIR_P within a source directory, because that will
14760     # break other packages using the cache if that directory is
14761     # removed, or if the value is a relative name.
14762     test -d ./--version && rmdir ./--version
14763     MKDIR_P="$ac_install_sh -d"
14764   fi
14765 fi
14766 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
14767 $as_echo "$MKDIR_P" >&6; }
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779   :
14780
14781
14782
14783
14784
14785   if test $ac_cv_func_btowc = no; then
14786     HAVE_BTOWC=0
14787   else
14788
14789
14790
14791          { $as_echo "$as_me:$LINENO: checking whether btowc(EOF) is correct" >&5
14792 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
14793 if test "${gl_cv_func_btowc_eof+set}" = set; then
14794   $as_echo_n "(cached) " >&6
14795 else
14796
14797                         case "$host_os" in
14798                  # Guess no on IRIX.
14799           irix*) gl_cv_func_btowc_eof="guessing no" ;;
14800                  # Guess yes otherwise.
14801           *)     gl_cv_func_btowc_eof="guessing yes" ;;
14802         esac
14803         if test $LOCALE_FR != none; then
14804           if test "$cross_compiling" = yes; then
14805   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14807 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14808 See \`config.log' for more details." >&5
14809 $as_echo "$as_me: error: cannot run test program while cross compiling
14810 See \`config.log' for more details." >&2;}
14811    { (exit 1); exit 1; }; }; }
14812 else
14813   cat >conftest.$ac_ext <<_ACEOF
14814 /* confdefs.h.  */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h.  */
14819
14820 #include <locale.h>
14821 #include <stdio.h>
14822 #include <string.h>
14823 #include <wchar.h>
14824 int main ()
14825 {
14826   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
14827     {
14828       if (btowc (EOF) != WEOF)
14829         return 1;
14830     }
14831   return 0;
14832 }
14833 _ACEOF
14834 rm -f conftest$ac_exeext
14835 if { (ac_try="$ac_link"
14836 case "(($ac_try" in
14837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838   *) ac_try_echo=$ac_try;;
14839 esac
14840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14841 $as_echo "$ac_try_echo") >&5
14842   (eval "$ac_link") 2>&5
14843   ac_status=$?
14844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14846   { (case "(($ac_try" in
14847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848   *) ac_try_echo=$ac_try;;
14849 esac
14850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14851 $as_echo "$ac_try_echo") >&5
14852   (eval "$ac_try") 2>&5
14853   ac_status=$?
14854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855   (exit $ac_status); }; }; then
14856   gl_cv_func_btowc_eof=yes
14857 else
14858   $as_echo "$as_me: program exited with status $ac_status" >&5
14859 $as_echo "$as_me: failed program was:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14861
14862 ( exit $ac_status )
14863 gl_cv_func_btowc_eof=no
14864 fi
14865 rm -rf conftest.dSYM
14866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14867 fi
14868
14869
14870         fi
14871
14872 fi
14873 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_eof" >&5
14874 $as_echo "$gl_cv_func_btowc_eof" >&6; }
14875     case "$gl_cv_func_btowc_eof" in
14876       *yes) ;;
14877       *) REPLACE_BTOWC=1 ;;
14878     esac
14879   fi
14880   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
14881
14882
14883   WCHAR_H=wchar.h
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893   gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
14894
14895
14896   :
14897
14898   fi
14899
14900
14901
14902   GNULIB_BTOWC=1
14903
14904
14905
14906
14907
14908   FLOAT_H=
14909   case "$host_os" in
14910     beos* | openbsd*)
14911       FLOAT_H=float.h
14912
14913
14914
14915
14916   :
14917
14918
14919
14920
14921
14922
14923
14924      if test $gl_cv_have_include_next = yes; then
14925        gl_cv_next_float_h='<'float.h'>'
14926      else
14927        { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
14928 $as_echo_n "checking absolute name of <float.h>... " >&6; }
14929 if test "${gl_cv_next_float_h+set}" = set; then
14930   $as_echo_n "(cached) " >&6
14931 else
14932
14933           if test $ac_cv_header_float_h = yes; then
14934             cat >conftest.$ac_ext <<_ACEOF
14935 /* confdefs.h.  */
14936 _ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h.  */
14940 #include <float.h>
14941
14942 _ACEOF
14943                                                                     case "$host_os" in
14944               aix*) gl_absname_cpp="$ac_cpp -C" ;;
14945               *)    gl_absname_cpp="$ac_cpp" ;;
14946             esac
14947                                     gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14948                sed -n '\#/float.h#{
14949                  s#.*"\(.*/float.h\)".*#\1#
14950                  s#^/[^/]#//&#
14951                  p
14952                  q
14953                }'`'"'
14954           else
14955             gl_cv_next_float_h='<'float.h'>'
14956           fi
14957
14958 fi
14959 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
14960 $as_echo "$gl_cv_next_float_h" >&6; }
14961      fi
14962      NEXT_FLOAT_H=$gl_cv_next_float_h
14963
14964
14965
14966       ;;
14967   esac
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977   { $as_echo "$as_me:$LINENO: checking for fseeko" >&5
14978 $as_echo_n "checking for fseeko... " >&6; }
14979 if test "${gl_cv_func_fseeko+set}" = set; then
14980   $as_echo_n "(cached) " >&6
14981 else
14982
14983       cat >conftest.$ac_ext <<_ACEOF
14984 /* confdefs.h.  */
14985 _ACEOF
14986 cat confdefs.h >>conftest.$ac_ext
14987 cat >>conftest.$ac_ext <<_ACEOF
14988 /* end confdefs.h.  */
14989 #include <stdio.h>
14990 int
14991 main ()
14992 {
14993 fseeko (stdin, 0, 0);
14994   ;
14995   return 0;
14996 }
14997 _ACEOF
14998 rm -f conftest.$ac_objext conftest$ac_exeext
14999 if { (ac_try="$ac_link"
15000 case "(($ac_try" in
15001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15002   *) ac_try_echo=$ac_try;;
15003 esac
15004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15005 $as_echo "$ac_try_echo") >&5
15006   (eval "$ac_link") 2>conftest.er1
15007   ac_status=$?
15008   grep -v '^ *+' conftest.er1 >conftest.err
15009   rm -f conftest.er1
15010   cat conftest.err >&5
15011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012   (exit $ac_status); } && {
15013          test -z "$ac_c_werror_flag" ||
15014          test ! -s conftest.err
15015        } && test -s conftest$ac_exeext && {
15016          test "$cross_compiling" = yes ||
15017          $as_test_x conftest$ac_exeext
15018        }; then
15019   gl_cv_func_fseeko=yes
15020 else
15021   $as_echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15023
15024         gl_cv_func_fseeko=no
15025 fi
15026
15027 rm -rf conftest.dSYM
15028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15029       conftest$ac_exeext conftest.$ac_ext
15030
15031 fi
15032 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
15033 $as_echo "$gl_cv_func_fseeko" >&6; }
15034   if test $gl_cv_func_fseeko = no; then
15035     HAVE_FSEEKO=0
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
15046
15047
15048   REPLACE_FSEEKO=1
15049
15050   elif test $gl_cv_var_stdin_large_offset = no; then
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
15061
15062
15063   REPLACE_FSEEKO=1
15064
15065   fi
15066
15067
15068
15069   GNULIB_FSEEKO=1
15070
15071
15072
15073   :
15074
15075
15076
15077
15078
15079
15080   :
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090 for ac_header in sys/mount.h
15091 do
15092 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15093 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15094 $as_echo_n "checking for $ac_header... " >&6; }
15095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15096   $as_echo_n "(cached) " >&6
15097 else
15098   cat >conftest.$ac_ext <<_ACEOF
15099 /* confdefs.h.  */
15100 _ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h.  */
15104 $ac_includes_default
15105      #if HAVE_SYS_PARAM_H
15106        #include <sys/param.h>
15107       #endif
15108
15109 #include <$ac_header>
15110 _ACEOF
15111 rm -f conftest.$ac_objext
15112 if { (ac_try="$ac_compile"
15113 case "(($ac_try" in
15114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115   *) ac_try_echo=$ac_try;;
15116 esac
15117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15118 $as_echo "$ac_try_echo") >&5
15119   (eval "$ac_compile") 2>conftest.er1
15120   ac_status=$?
15121   grep -v '^ *+' conftest.er1 >conftest.err
15122   rm -f conftest.er1
15123   cat conftest.err >&5
15124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125   (exit $ac_status); } && {
15126          test -z "$ac_c_werror_flag" ||
15127          test ! -s conftest.err
15128        } && test -s conftest.$ac_objext; then
15129   eval "$as_ac_Header=yes"
15130 else
15131   $as_echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15133
15134         eval "$as_ac_Header=no"
15135 fi
15136
15137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15138 fi
15139 ac_res=`eval 'as_val=${'$as_ac_Header'}
15140                  $as_echo "$as_val"'`
15141                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15142 $as_echo "$ac_res" >&6; }
15143 as_val=`eval 'as_val=${'$as_ac_Header'}
15144                  $as_echo "$as_val"'`
15145    if test "x$as_val" = x""yes; then
15146   cat >>confdefs.h <<_ACEOF
15147 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15148 _ACEOF
15149
15150 fi
15151
15152 done
15153
15154
15155
15156 { $as_echo "$as_me:$LINENO: checking how to get file system space usage" >&5
15157 $as_echo "$as_me: checking how to get file system space usage" >&6;}
15158 ac_fsusage_space=no
15159
15160 # Perform only the link test since it seems there are no variants of the
15161 # statvfs function.  This check is more than just AC_CHECK_FUNCS([statvfs])
15162 # because that got a false positive on SCO OSR5.  Adding the declaration
15163 # of a `struct statvfs' causes this test to fail (as it should) on such
15164 # systems.  That system is reported to work fine with STAT_STATFS4 which
15165 # is what it gets when this test fails.
15166 if test $ac_fsusage_space = no; then
15167   # SVR4
15168   { $as_echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
15169 $as_echo_n "checking for statvfs function (SVR4)... " >&6; }
15170 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
15171   $as_echo_n "(cached) " >&6
15172 else
15173   cat >conftest.$ac_ext <<_ACEOF
15174 /* confdefs.h.  */
15175 _ACEOF
15176 cat confdefs.h >>conftest.$ac_ext
15177 cat >>conftest.$ac_ext <<_ACEOF
15178 /* end confdefs.h.  */
15179 #include <sys/types.h>
15180 #if defined __GLIBC__ && defined __linux__
15181 Do not use statvfs on systems with GNU libc on Linux, because that function
15182 stats all preceding entries in /proc/mounts, and that makes df hang if even
15183 one of the corresponding file systems is hard-mounted, but not available.
15184 statvfs in GNU libc on Hurd, BeOS, Haiku operates differently: it only makes
15185 a system call.
15186 #endif
15187
15188 #ifdef __osf__
15189 "Do not use Tru64's statvfs implementation"
15190 #endif
15191
15192 #include <sys/statvfs.h>
15193 int
15194 main ()
15195 {
15196 struct statvfs fsd; statvfs (0, &fsd);
15197   ;
15198   return 0;
15199 }
15200 _ACEOF
15201 rm -f conftest.$ac_objext conftest$ac_exeext
15202 if { (ac_try="$ac_link"
15203 case "(($ac_try" in
15204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205   *) ac_try_echo=$ac_try;;
15206 esac
15207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15208 $as_echo "$ac_try_echo") >&5
15209   (eval "$ac_link") 2>conftest.er1
15210   ac_status=$?
15211   grep -v '^ *+' conftest.er1 >conftest.err
15212   rm -f conftest.er1
15213   cat conftest.err >&5
15214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); } && {
15216          test -z "$ac_c_werror_flag" ||
15217          test ! -s conftest.err
15218        } && test -s conftest$ac_exeext && {
15219          test "$cross_compiling" = yes ||
15220          $as_test_x conftest$ac_exeext
15221        }; then
15222   fu_cv_sys_stat_statvfs=yes
15223 else
15224   $as_echo "$as_me: failed program was:" >&5
15225 sed 's/^/| /' conftest.$ac_ext >&5
15226
15227         fu_cv_sys_stat_statvfs=no
15228 fi
15229
15230 rm -rf conftest.dSYM
15231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15232       conftest$ac_exeext conftest.$ac_ext
15233 fi
15234 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
15235 $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
15236   if test $fu_cv_sys_stat_statvfs = yes; then
15237     ac_fsusage_space=yes
15238
15239 cat >>confdefs.h <<\_ACEOF
15240 #define STAT_STATVFS 1
15241 _ACEOF
15242
15243   fi
15244 fi
15245
15246 if test $ac_fsusage_space = no; then
15247   # DEC Alpha running OSF/1
15248   { $as_echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
15249 $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
15250   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
15251   $as_echo_n "(cached) " >&6
15252 else
15253   if test "$cross_compiling" = yes; then
15254   fu_cv_sys_stat_statfs3_osf1=no
15255 else
15256   cat >conftest.$ac_ext <<_ACEOF
15257 /* confdefs.h.  */
15258 _ACEOF
15259 cat confdefs.h >>conftest.$ac_ext
15260 cat >>conftest.$ac_ext <<_ACEOF
15261 /* end confdefs.h.  */
15262
15263 #include <sys/param.h>
15264 #include <sys/types.h>
15265 #include <sys/mount.h>
15266   int
15267   main ()
15268   {
15269     struct statfs fsd;
15270     fsd.f_fsize = 0;
15271     return statfs (".", &fsd, sizeof (struct statfs)) != 0;
15272   }
15273 _ACEOF
15274 rm -f conftest$ac_exeext
15275 if { (ac_try="$ac_link"
15276 case "(($ac_try" in
15277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278   *) ac_try_echo=$ac_try;;
15279 esac
15280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15281 $as_echo "$ac_try_echo") >&5
15282   (eval "$ac_link") 2>&5
15283   ac_status=$?
15284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15286   { (case "(($ac_try" in
15287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15288   *) ac_try_echo=$ac_try;;
15289 esac
15290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15291 $as_echo "$ac_try_echo") >&5
15292   (eval "$ac_try") 2>&5
15293   ac_status=$?
15294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295   (exit $ac_status); }; }; then
15296   fu_cv_sys_stat_statfs3_osf1=yes
15297 else
15298   $as_echo "$as_me: program exited with status $ac_status" >&5
15299 $as_echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.$ac_ext >&5
15301
15302 ( exit $ac_status )
15303 fu_cv_sys_stat_statfs3_osf1=no
15304 fi
15305 rm -rf conftest.dSYM
15306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15307 fi
15308
15309
15310 fi
15311
15312   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
15313 $as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
15314   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
15315     ac_fsusage_space=yes
15316
15317 cat >>confdefs.h <<\_ACEOF
15318 #define STAT_STATFS3_OSF1 1
15319 _ACEOF
15320
15321   fi
15322 fi
15323
15324 if test $ac_fsusage_space = no; then
15325 # AIX
15326   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
15327 $as_echo_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... " >&6; }
15328   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
15329   $as_echo_n "(cached) " >&6
15330 else
15331   if test "$cross_compiling" = yes; then
15332   fu_cv_sys_stat_statfs2_bsize=no
15333 else
15334   cat >conftest.$ac_ext <<_ACEOF
15335 /* confdefs.h.  */
15336 _ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h.  */
15340
15341 #ifdef HAVE_SYS_PARAM_H
15342 #include <sys/param.h>
15343 #endif
15344 #ifdef HAVE_SYS_MOUNT_H
15345 #include <sys/mount.h>
15346 #endif
15347 #ifdef HAVE_SYS_VFS_H
15348 #include <sys/vfs.h>
15349 #endif
15350   int
15351   main ()
15352   {
15353   struct statfs fsd;
15354   fsd.f_bsize = 0;
15355   return statfs (".", &fsd) != 0;
15356   }
15357 _ACEOF
15358 rm -f conftest$ac_exeext
15359 if { (ac_try="$ac_link"
15360 case "(($ac_try" in
15361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362   *) ac_try_echo=$ac_try;;
15363 esac
15364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15365 $as_echo "$ac_try_echo") >&5
15366   (eval "$ac_link") 2>&5
15367   ac_status=$?
15368   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15370   { (case "(($ac_try" in
15371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372   *) ac_try_echo=$ac_try;;
15373 esac
15374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15375 $as_echo "$ac_try_echo") >&5
15376   (eval "$ac_try") 2>&5
15377   ac_status=$?
15378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); }; }; then
15380   fu_cv_sys_stat_statfs2_bsize=yes
15381 else
15382   $as_echo "$as_me: program exited with status $ac_status" >&5
15383 $as_echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.$ac_ext >&5
15385
15386 ( exit $ac_status )
15387 fu_cv_sys_stat_statfs2_bsize=no
15388 fi
15389 rm -rf conftest.dSYM
15390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15391 fi
15392
15393
15394 fi
15395
15396   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
15397 $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
15398   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
15399     ac_fsusage_space=yes
15400
15401 cat >>confdefs.h <<\_ACEOF
15402 #define STAT_STATFS2_BSIZE 1
15403 _ACEOF
15404
15405   fi
15406 fi
15407
15408 if test $ac_fsusage_space = no; then
15409 # SVR3
15410   { $as_echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
15411 $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
15412   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
15413   $as_echo_n "(cached) " >&6
15414 else
15415   if test "$cross_compiling" = yes; then
15416   fu_cv_sys_stat_statfs4=no
15417 else
15418   cat >conftest.$ac_ext <<_ACEOF
15419 /* confdefs.h.  */
15420 _ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h.  */
15424 #include <sys/types.h>
15425 #include <sys/statfs.h>
15426   int
15427   main ()
15428   {
15429   struct statfs fsd;
15430   return statfs (".", &fsd, sizeof fsd, 0) != 0;
15431   }
15432 _ACEOF
15433 rm -f conftest$ac_exeext
15434 if { (ac_try="$ac_link"
15435 case "(($ac_try" in
15436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437   *) ac_try_echo=$ac_try;;
15438 esac
15439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15440 $as_echo "$ac_try_echo") >&5
15441   (eval "$ac_link") 2>&5
15442   ac_status=$?
15443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15445   { (case "(($ac_try" in
15446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447   *) ac_try_echo=$ac_try;;
15448 esac
15449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15450 $as_echo "$ac_try_echo") >&5
15451   (eval "$ac_try") 2>&5
15452   ac_status=$?
15453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454   (exit $ac_status); }; }; then
15455   fu_cv_sys_stat_statfs4=yes
15456 else
15457   $as_echo "$as_me: program exited with status $ac_status" >&5
15458 $as_echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15460
15461 ( exit $ac_status )
15462 fu_cv_sys_stat_statfs4=no
15463 fi
15464 rm -rf conftest.dSYM
15465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15466 fi
15467
15468
15469 fi
15470
15471   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
15472 $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
15473   if test $fu_cv_sys_stat_statfs4 = yes; then
15474     ac_fsusage_space=yes
15475
15476 cat >>confdefs.h <<\_ACEOF
15477 #define STAT_STATFS4 1
15478 _ACEOF
15479
15480   fi
15481 fi
15482
15483 if test $ac_fsusage_space = no; then
15484 # 4.4BSD and NetBSD
15485   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
15486 $as_echo_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... " >&6; }
15487   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
15488   $as_echo_n "(cached) " >&6
15489 else
15490   if test "$cross_compiling" = yes; then
15491   fu_cv_sys_stat_statfs2_fsize=no
15492 else
15493   cat >conftest.$ac_ext <<_ACEOF
15494 /* confdefs.h.  */
15495 _ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h.  */
15499 #include <sys/types.h>
15500 #ifdef HAVE_SYS_PARAM_H
15501 #include <sys/param.h>
15502 #endif
15503 #ifdef HAVE_SYS_MOUNT_H
15504 #include <sys/mount.h>
15505 #endif
15506   int
15507   main ()
15508   {
15509   struct statfs fsd;
15510   fsd.f_fsize = 0;
15511   return statfs (".", &fsd) != 0;
15512   }
15513 _ACEOF
15514 rm -f conftest$ac_exeext
15515 if { (ac_try="$ac_link"
15516 case "(($ac_try" in
15517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15518   *) ac_try_echo=$ac_try;;
15519 esac
15520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15521 $as_echo "$ac_try_echo") >&5
15522   (eval "$ac_link") 2>&5
15523   ac_status=$?
15524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15526   { (case "(($ac_try" in
15527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528   *) ac_try_echo=$ac_try;;
15529 esac
15530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15531 $as_echo "$ac_try_echo") >&5
15532   (eval "$ac_try") 2>&5
15533   ac_status=$?
15534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535   (exit $ac_status); }; }; then
15536   fu_cv_sys_stat_statfs2_fsize=yes
15537 else
15538   $as_echo "$as_me: program exited with status $ac_status" >&5
15539 $as_echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.$ac_ext >&5
15541
15542 ( exit $ac_status )
15543 fu_cv_sys_stat_statfs2_fsize=no
15544 fi
15545 rm -rf conftest.dSYM
15546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15547 fi
15548
15549
15550 fi
15551
15552   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
15553 $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
15554   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
15555     ac_fsusage_space=yes
15556
15557 cat >>confdefs.h <<\_ACEOF
15558 #define STAT_STATFS2_FSIZE 1
15559 _ACEOF
15560
15561   fi
15562 fi
15563
15564 if test $ac_fsusage_space = no; then
15565   # Ultrix
15566   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
15567 $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
15568   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
15569   $as_echo_n "(cached) " >&6
15570 else
15571   if test "$cross_compiling" = yes; then
15572   fu_cv_sys_stat_fs_data=no
15573 else
15574   cat >conftest.$ac_ext <<_ACEOF
15575 /* confdefs.h.  */
15576 _ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h.  */
15580 #include <sys/types.h>
15581 #ifdef HAVE_SYS_PARAM_H
15582 #include <sys/param.h>
15583 #endif
15584 #ifdef HAVE_SYS_MOUNT_H
15585 #include <sys/mount.h>
15586 #endif
15587 #ifdef HAVE_SYS_FS_TYPES_H
15588 #include <sys/fs_types.h>
15589 #endif
15590   int
15591   main ()
15592   {
15593   struct fs_data fsd;
15594   /* Ultrix's statfs returns 1 for success,
15595      0 for not mounted, -1 for failure.  */
15596   return statfs (".", &fsd) != 1;
15597   }
15598 _ACEOF
15599 rm -f conftest$ac_exeext
15600 if { (ac_try="$ac_link"
15601 case "(($ac_try" in
15602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603   *) ac_try_echo=$ac_try;;
15604 esac
15605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15606 $as_echo "$ac_try_echo") >&5
15607   (eval "$ac_link") 2>&5
15608   ac_status=$?
15609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15611   { (case "(($ac_try" in
15612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613   *) ac_try_echo=$ac_try;;
15614 esac
15615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15616 $as_echo "$ac_try_echo") >&5
15617   (eval "$ac_try") 2>&5
15618   ac_status=$?
15619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620   (exit $ac_status); }; }; then
15621   fu_cv_sys_stat_fs_data=yes
15622 else
15623   $as_echo "$as_me: program exited with status $ac_status" >&5
15624 $as_echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15626
15627 ( exit $ac_status )
15628 fu_cv_sys_stat_fs_data=no
15629 fi
15630 rm -rf conftest.dSYM
15631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15632 fi
15633
15634
15635 fi
15636
15637   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
15638 $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
15639   if test $fu_cv_sys_stat_fs_data = yes; then
15640     ac_fsusage_space=yes
15641
15642 cat >>confdefs.h <<\_ACEOF
15643 #define STAT_STATFS2_FS_DATA 1
15644 _ACEOF
15645
15646   fi
15647 fi
15648
15649 if test $ac_fsusage_space = no; then
15650   # SVR2
15651   cat >conftest.$ac_ext <<_ACEOF
15652 /* confdefs.h.  */
15653 _ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h.  */
15657 #include <sys/filsys.h>
15658
15659 _ACEOF
15660 if { (ac_try="$ac_cpp conftest.$ac_ext"
15661 case "(($ac_try" in
15662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663   *) ac_try_echo=$ac_try;;
15664 esac
15665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15666 $as_echo "$ac_try_echo") >&5
15667   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15668   ac_status=$?
15669   grep -v '^ *+' conftest.er1 >conftest.err
15670   rm -f conftest.er1
15671   cat conftest.err >&5
15672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673   (exit $ac_status); } >/dev/null && {
15674          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15675          test ! -s conftest.err
15676        }; then
15677
15678 cat >>confdefs.h <<\_ACEOF
15679 #define STAT_READ_FILSYS 1
15680 _ACEOF
15681
15682     ac_fsusage_space=yes
15683 else
15684   $as_echo "$as_me: failed program was:" >&5
15685 sed 's/^/| /' conftest.$ac_ext >&5
15686
15687
15688 fi
15689
15690 rm -f conftest.err conftest.$ac_ext
15691 fi
15692
15693 if test $ac_fsusage_space = yes; then
15694   gl_cv_fs_space=yes
15695 else
15696   gl_cv_fs_space=no
15697 fi
15698
15699
15700
15701   if test $gl_cv_fs_space = yes; then
15702
15703
15704
15705
15706
15707
15708
15709
15710   gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
15711
15712
15713
15714
15715
15716
15717 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
15718 do
15719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15721   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15722 $as_echo_n "checking for $ac_header... " >&6; }
15723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15724   $as_echo_n "(cached) " >&6
15725 fi
15726 ac_res=`eval 'as_val=${'$as_ac_Header'}
15727                  $as_echo "$as_val"'`
15728                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15729 $as_echo "$ac_res" >&6; }
15730 else
15731   # Is the header compilable?
15732 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15733 $as_echo_n "checking $ac_header usability... " >&6; }
15734 cat >conftest.$ac_ext <<_ACEOF
15735 /* confdefs.h.  */
15736 _ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h.  */
15740 $ac_includes_default
15741 #include <$ac_header>
15742 _ACEOF
15743 rm -f conftest.$ac_objext
15744 if { (ac_try="$ac_compile"
15745 case "(($ac_try" in
15746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747   *) ac_try_echo=$ac_try;;
15748 esac
15749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15750 $as_echo "$ac_try_echo") >&5
15751   (eval "$ac_compile") 2>conftest.er1
15752   ac_status=$?
15753   grep -v '^ *+' conftest.er1 >conftest.err
15754   rm -f conftest.er1
15755   cat conftest.err >&5
15756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757   (exit $ac_status); } && {
15758          test -z "$ac_c_werror_flag" ||
15759          test ! -s conftest.err
15760        } && test -s conftest.$ac_objext; then
15761   ac_header_compiler=yes
15762 else
15763   $as_echo "$as_me: failed program was:" >&5
15764 sed 's/^/| /' conftest.$ac_ext >&5
15765
15766         ac_header_compiler=no
15767 fi
15768
15769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15770 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15771 $as_echo "$ac_header_compiler" >&6; }
15772
15773 # Is the header present?
15774 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15775 $as_echo_n "checking $ac_header presence... " >&6; }
15776 cat >conftest.$ac_ext <<_ACEOF
15777 /* confdefs.h.  */
15778 _ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h.  */
15782 #include <$ac_header>
15783 _ACEOF
15784 if { (ac_try="$ac_cpp conftest.$ac_ext"
15785 case "(($ac_try" in
15786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787   *) ac_try_echo=$ac_try;;
15788 esac
15789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15790 $as_echo "$ac_try_echo") >&5
15791   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15792   ac_status=$?
15793   grep -v '^ *+' conftest.er1 >conftest.err
15794   rm -f conftest.er1
15795   cat conftest.err >&5
15796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797   (exit $ac_status); } >/dev/null && {
15798          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15799          test ! -s conftest.err
15800        }; then
15801   ac_header_preproc=yes
15802 else
15803   $as_echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15805
15806   ac_header_preproc=no
15807 fi
15808
15809 rm -f conftest.err conftest.$ac_ext
15810 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15811 $as_echo "$ac_header_preproc" >&6; }
15812
15813 # So?  What about this header?
15814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15815   yes:no: )
15816     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15817 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15818     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15819 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15820     ac_header_preproc=yes
15821     ;;
15822   no:yes:* )
15823     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15824 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15825     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15826 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15827     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15828 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15829     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15830 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15831     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15832 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15833     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15834 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15835
15836     ;;
15837 esac
15838 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15839 $as_echo_n "checking for $ac_header... " >&6; }
15840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15841   $as_echo_n "(cached) " >&6
15842 else
15843   eval "$as_ac_Header=\$ac_header_preproc"
15844 fi
15845 ac_res=`eval 'as_val=${'$as_ac_Header'}
15846                  $as_echo "$as_val"'`
15847                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15848 $as_echo "$ac_res" >&6; }
15849
15850 fi
15851 as_val=`eval 'as_val=${'$as_ac_Header'}
15852                  $as_echo "$as_val"'`
15853    if test "x$as_val" = x""yes; then
15854   cat >>confdefs.h <<_ACEOF
15855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15856 _ACEOF
15857
15858 fi
15859
15860 done
15861
15862
15863   { $as_echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
15864 $as_echo_n "checking for statfs that truncates block counts... " >&6; }
15865   if test "${fu_cv_sys_truncating_statfs+set}" = set; then
15866   $as_echo_n "(cached) " >&6
15867 else
15868   cat >conftest.$ac_ext <<_ACEOF
15869 /* confdefs.h.  */
15870 _ACEOF
15871 cat confdefs.h >>conftest.$ac_ext
15872 cat >>conftest.$ac_ext <<_ACEOF
15873 /* end confdefs.h.  */
15874
15875 #if !defined(sun) && !defined(__sun)
15876 choke -- this is a workaround for a Sun-specific problem
15877 #endif
15878 #include <sys/types.h>
15879 #include <sys/vfs.h>
15880 int
15881 main ()
15882 {
15883 struct statfs t; long c = *(t.f_spare);
15884       if (c) return 0;
15885   ;
15886   return 0;
15887 }
15888 _ACEOF
15889 rm -f conftest.$ac_objext
15890 if { (ac_try="$ac_compile"
15891 case "(($ac_try" in
15892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15893   *) ac_try_echo=$ac_try;;
15894 esac
15895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15896 $as_echo "$ac_try_echo") >&5
15897   (eval "$ac_compile") 2>conftest.er1
15898   ac_status=$?
15899   grep -v '^ *+' conftest.er1 >conftest.err
15900   rm -f conftest.er1
15901   cat conftest.err >&5
15902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903   (exit $ac_status); } && {
15904          test -z "$ac_c_werror_flag" ||
15905          test ! -s conftest.err
15906        } && test -s conftest.$ac_objext; then
15907   fu_cv_sys_truncating_statfs=yes
15908 else
15909   $as_echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15911
15912         fu_cv_sys_truncating_statfs=no
15913 fi
15914
15915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15916 fi
15917
15918   if test $fu_cv_sys_truncating_statfs = yes; then
15919
15920 cat >>confdefs.h <<\_ACEOF
15921 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
15922 _ACEOF
15923
15924   fi
15925   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
15926 $as_echo "$fu_cv_sys_truncating_statfs" >&6; }
15927
15928
15929   fi
15930
15931
15932
15933
15934
15935
15936
15937
15938   { $as_echo "$as_me:$LINENO: checking for ftello" >&5
15939 $as_echo_n "checking for ftello... " >&6; }
15940 if test "${gl_cv_func_ftello+set}" = set; then
15941   $as_echo_n "(cached) " >&6
15942 else
15943
15944       cat >conftest.$ac_ext <<_ACEOF
15945 /* confdefs.h.  */
15946 _ACEOF
15947 cat confdefs.h >>conftest.$ac_ext
15948 cat >>conftest.$ac_ext <<_ACEOF
15949 /* end confdefs.h.  */
15950 #include <stdio.h>
15951 int
15952 main ()
15953 {
15954 ftello (stdin);
15955   ;
15956   return 0;
15957 }
15958 _ACEOF
15959 rm -f conftest.$ac_objext conftest$ac_exeext
15960 if { (ac_try="$ac_link"
15961 case "(($ac_try" in
15962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963   *) ac_try_echo=$ac_try;;
15964 esac
15965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15966 $as_echo "$ac_try_echo") >&5
15967   (eval "$ac_link") 2>conftest.er1
15968   ac_status=$?
15969   grep -v '^ *+' conftest.er1 >conftest.err
15970   rm -f conftest.er1
15971   cat conftest.err >&5
15972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973   (exit $ac_status); } && {
15974          test -z "$ac_c_werror_flag" ||
15975          test ! -s conftest.err
15976        } && test -s conftest$ac_exeext && {
15977          test "$cross_compiling" = yes ||
15978          $as_test_x conftest$ac_exeext
15979        }; then
15980   gl_cv_func_ftello=yes
15981 else
15982   $as_echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15984
15985         gl_cv_func_ftello=no
15986 fi
15987
15988 rm -rf conftest.dSYM
15989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15990       conftest$ac_exeext conftest.$ac_ext
15991
15992 fi
15993 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_ftello" >&5
15994 $as_echo "$gl_cv_func_ftello" >&6; }
15995   if test $gl_cv_func_ftello = no; then
15996     HAVE_FTELLO=0
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006   gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
16007
16008
16009   REPLACE_FTELLO=1
16010
16011   elif test $gl_cv_var_stdin_large_offset = no; then
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021   gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
16022
16023
16024   REPLACE_FTELLO=1
16025
16026   fi
16027
16028
16029
16030   GNULIB_FTELLO=1
16031
16032
16033
16034
16035
16036   :
16037
16038
16039
16040
16041
16042   if test $ac_cv_func_ftruncate = no; then
16043     HAVE_FTRUNCATE=0
16044
16045
16046
16047
16048
16049
16050
16051
16052   gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
16053
16054
16055
16056 for ac_func in chsize
16057 do
16058 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16059 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16060 $as_echo_n "checking for $ac_func... " >&6; }
16061 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16062   $as_echo_n "(cached) " >&6
16063 else
16064   cat >conftest.$ac_ext <<_ACEOF
16065 /* confdefs.h.  */
16066 _ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h.  */
16070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16072 #define $ac_func innocuous_$ac_func
16073
16074 /* System header to define __stub macros and hopefully few prototypes,
16075     which can conflict with char $ac_func (); below.
16076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16077     <limits.h> exists even on freestanding compilers.  */
16078
16079 #ifdef __STDC__
16080 # include <limits.h>
16081 #else
16082 # include <assert.h>
16083 #endif
16084
16085 #undef $ac_func
16086
16087 /* Override any GCC internal prototype to avoid an error.
16088    Use char because int might match the return type of a GCC
16089    builtin and then its argument prototype would still apply.  */
16090 #ifdef __cplusplus
16091 extern "C"
16092 #endif
16093 char $ac_func ();
16094 /* The GNU C library defines this for functions which it implements
16095     to always fail with ENOSYS.  Some functions are actually named
16096     something starting with __ and the normal name is an alias.  */
16097 #if defined __stub_$ac_func || defined __stub___$ac_func
16098 choke me
16099 #endif
16100
16101 int
16102 main ()
16103 {
16104 return $ac_func ();
16105   ;
16106   return 0;
16107 }
16108 _ACEOF
16109 rm -f conftest.$ac_objext conftest$ac_exeext
16110 if { (ac_try="$ac_link"
16111 case "(($ac_try" in
16112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113   *) ac_try_echo=$ac_try;;
16114 esac
16115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16116 $as_echo "$ac_try_echo") >&5
16117   (eval "$ac_link") 2>conftest.er1
16118   ac_status=$?
16119   grep -v '^ *+' conftest.er1 >conftest.err
16120   rm -f conftest.er1
16121   cat conftest.err >&5
16122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123   (exit $ac_status); } && {
16124          test -z "$ac_c_werror_flag" ||
16125          test ! -s conftest.err
16126        } && test -s conftest$ac_exeext && {
16127          test "$cross_compiling" = yes ||
16128          $as_test_x conftest$ac_exeext
16129        }; then
16130   eval "$as_ac_var=yes"
16131 else
16132   $as_echo "$as_me: failed program was:" >&5
16133 sed 's/^/| /' conftest.$ac_ext >&5
16134
16135         eval "$as_ac_var=no"
16136 fi
16137
16138 rm -rf conftest.dSYM
16139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16140       conftest$ac_exeext conftest.$ac_ext
16141 fi
16142 ac_res=`eval 'as_val=${'$as_ac_var'}
16143                  $as_echo "$as_val"'`
16144                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16145 $as_echo "$ac_res" >&6; }
16146 as_val=`eval 'as_val=${'$as_ac_var'}
16147                  $as_echo "$as_val"'`
16148    if test "x$as_val" = x""yes; then
16149   cat >>confdefs.h <<_ACEOF
16150 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16151 _ACEOF
16152
16153 fi
16154 done
16155
16156
16157     case "$host_os" in
16158       mingw*)
16159         # Yes, we know mingw lacks ftruncate.
16160         ;;
16161       *)
16162         # If someone lacks ftruncate, make configure fail, and request
16163         # a bug report to inform us about it.
16164         if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
16165           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16167 { { $as_echo "$as_me:$LINENO: error: Your system lacks the ftruncate function.
16168               Please report this, along with the output of \"uname -a\", to the
16169               bug-coreutils@gnu.org mailing list.  To continue past this point,
16170               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
16171               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
16172 See \`config.log' for more details." >&5
16173 $as_echo "$as_me: error: Your system lacks the ftruncate function.
16174               Please report this, along with the output of \"uname -a\", to the
16175               bug-coreutils@gnu.org mailing list.  To continue past this point,
16176               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
16177               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
16178 See \`config.log' for more details." >&2;}
16179    { (exit 1); exit 1; }; }; }
16180         fi
16181     esac
16182   fi
16183
16184
16185
16186   GNULIB_FTRUNCATE=1
16187
16188
16189       { $as_echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
16190 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
16191   GETADDRINFO_LIB=
16192   gai_saved_LIBS="$LIBS"
16193
16194               { $as_echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
16195 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
16196 if test "${ac_cv_search_getaddrinfo+set}" = set; then
16197   $as_echo_n "(cached) " >&6
16198 else
16199   ac_func_search_save_LIBS=$LIBS
16200 cat >conftest.$ac_ext <<_ACEOF
16201 /* confdefs.h.  */
16202 _ACEOF
16203 cat confdefs.h >>conftest.$ac_ext
16204 cat >>conftest.$ac_ext <<_ACEOF
16205 /* end confdefs.h.  */
16206
16207 /* Override any GCC internal prototype to avoid an error.
16208    Use char because int might match the return type of a GCC
16209    builtin and then its argument prototype would still apply.  */
16210 #ifdef __cplusplus
16211 extern "C"
16212 #endif
16213 char getaddrinfo ();
16214 int
16215 main ()
16216 {
16217 return getaddrinfo ();
16218   ;
16219   return 0;
16220 }
16221 _ACEOF
16222 for ac_lib in '' socket network net; do
16223   if test -z "$ac_lib"; then
16224     ac_res="none required"
16225   else
16226     ac_res=-l$ac_lib
16227     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16228   fi
16229   rm -f conftest.$ac_objext conftest$ac_exeext
16230 if { (ac_try="$ac_link"
16231 case "(($ac_try" in
16232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233   *) ac_try_echo=$ac_try;;
16234 esac
16235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16236 $as_echo "$ac_try_echo") >&5
16237   (eval "$ac_link") 2>conftest.er1
16238   ac_status=$?
16239   grep -v '^ *+' conftest.er1 >conftest.err
16240   rm -f conftest.er1
16241   cat conftest.err >&5
16242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); } && {
16244          test -z "$ac_c_werror_flag" ||
16245          test ! -s conftest.err
16246        } && test -s conftest$ac_exeext && {
16247          test "$cross_compiling" = yes ||
16248          $as_test_x conftest$ac_exeext
16249        }; then
16250   ac_cv_search_getaddrinfo=$ac_res
16251 else
16252   $as_echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16254
16255
16256 fi
16257
16258 rm -rf conftest.dSYM
16259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16260       conftest$ac_exeext
16261   if test "${ac_cv_search_getaddrinfo+set}" = set; then
16262   break
16263 fi
16264 done
16265 if test "${ac_cv_search_getaddrinfo+set}" = set; then
16266   :
16267 else
16268   ac_cv_search_getaddrinfo=no
16269 fi
16270 rm conftest.$ac_ext
16271 LIBS=$ac_func_search_save_LIBS
16272 fi
16273 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
16274 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
16275 ac_res=$ac_cv_search_getaddrinfo
16276 if test "$ac_res" != no; then
16277   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16278   if test "$ac_cv_search_getaddrinfo" != "none required"; then
16279        GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
16280      fi
16281 fi
16282
16283   LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
16284
16285   { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16286 $as_echo_n "checking for getaddrinfo... " >&6; }
16287 if test "${gl_cv_func_getaddrinfo+set}" = set; then
16288   $as_echo_n "(cached) " >&6
16289 else
16290
16291     cat >conftest.$ac_ext <<_ACEOF
16292 /* confdefs.h.  */
16293 _ACEOF
16294 cat confdefs.h >>conftest.$ac_ext
16295 cat >>conftest.$ac_ext <<_ACEOF
16296 /* end confdefs.h.  */
16297
16298 #include <sys/types.h>
16299 #ifdef HAVE_SYS_SOCKET_H
16300 #include <sys/socket.h>
16301 #endif
16302 #ifdef HAVE_NETDB_H
16303 #include <netdb.h>
16304 #endif
16305 #include <stddef.h>
16306
16307 int
16308 main ()
16309 {
16310 getaddrinfo("", "", NULL, NULL);
16311   ;
16312   return 0;
16313 }
16314 _ACEOF
16315 rm -f conftest.$ac_objext conftest$ac_exeext
16316 if { (ac_try="$ac_link"
16317 case "(($ac_try" in
16318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319   *) ac_try_echo=$ac_try;;
16320 esac
16321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16322 $as_echo "$ac_try_echo") >&5
16323   (eval "$ac_link") 2>conftest.er1
16324   ac_status=$?
16325   grep -v '^ *+' conftest.er1 >conftest.err
16326   rm -f conftest.er1
16327   cat conftest.err >&5
16328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329   (exit $ac_status); } && {
16330          test -z "$ac_c_werror_flag" ||
16331          test ! -s conftest.err
16332        } && test -s conftest$ac_exeext && {
16333          test "$cross_compiling" = yes ||
16334          $as_test_x conftest$ac_exeext
16335        }; then
16336   gl_cv_func_getaddrinfo=yes
16337 else
16338   $as_echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16340
16341         gl_cv_func_getaddrinfo=no
16342 fi
16343
16344 rm -rf conftest.dSYM
16345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16346       conftest$ac_exeext conftest.$ac_ext
16347 fi
16348 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getaddrinfo" >&5
16349 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
16350   if test $gl_cv_func_getaddrinfo = no; then
16351     { $as_echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
16352 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
16353 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
16354   $as_echo_n "(cached) " >&6
16355 else
16356
16357       gl_cv_w32_getaddrinfo=no
16358       am_save_LIBS="$LIBS"
16359       LIBS="$LIBS -lws2_32"
16360       cat >conftest.$ac_ext <<_ACEOF
16361 /* confdefs.h.  */
16362 _ACEOF
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h.  */
16366
16367 #ifdef HAVE_WS2TCPIP_H
16368 #include <ws2tcpip.h>
16369 #endif
16370 #include <stddef.h>
16371
16372 int
16373 main ()
16374 {
16375 getaddrinfo(NULL, NULL, NULL, NULL);
16376   ;
16377   return 0;
16378 }
16379 _ACEOF
16380 rm -f conftest.$ac_objext conftest$ac_exeext
16381 if { (ac_try="$ac_link"
16382 case "(($ac_try" in
16383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384   *) ac_try_echo=$ac_try;;
16385 esac
16386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16387 $as_echo "$ac_try_echo") >&5
16388   (eval "$ac_link") 2>conftest.er1
16389   ac_status=$?
16390   grep -v '^ *+' conftest.er1 >conftest.err
16391   rm -f conftest.er1
16392   cat conftest.err >&5
16393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394   (exit $ac_status); } && {
16395          test -z "$ac_c_werror_flag" ||
16396          test ! -s conftest.err
16397        } && test -s conftest$ac_exeext && {
16398          test "$cross_compiling" = yes ||
16399          $as_test_x conftest$ac_exeext
16400        }; then
16401   gl_cv_w32_getaddrinfo=yes
16402 else
16403   $as_echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16405
16406
16407 fi
16408
16409 rm -rf conftest.dSYM
16410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16411       conftest$ac_exeext conftest.$ac_ext
16412       LIBS="$am_save_LIBS"
16413
16414 fi
16415 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
16416 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
16417     if test "$gl_cv_w32_getaddrinfo" = "yes"; then
16418       GETADDRINFO_LIB="-lws2_32"
16419       LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
16420     else
16421
16422
16423
16424
16425
16426
16427
16428
16429   gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
16430
16431     fi
16432   fi
16433
16434   # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
16435   # inline function declared in ws2tcpip.h, so we need to get that
16436   # header included somehow.
16437   { $as_echo "$as_me:$LINENO: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
16438 $as_echo_n "checking for gai_strerror (possibly via ws2tcpip.h)... " >&6; }
16439 if test "${gl_cv_func_gai_strerror+set}" = set; then
16440   $as_echo_n "(cached) " >&6
16441 else
16442
16443       cat >conftest.$ac_ext <<_ACEOF
16444 /* confdefs.h.  */
16445 _ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h.  */
16449
16450 #include <sys/types.h>
16451 #ifdef HAVE_SYS_SOCKET_H
16452 #include <sys/socket.h>
16453 #endif
16454 #ifdef HAVE_NETDB_H
16455 #include <netdb.h>
16456 #endif
16457 #ifdef HAVE_WS2TCPIP_H
16458 #include <ws2tcpip.h>
16459 #endif
16460 #include <stddef.h>
16461
16462 int
16463 main ()
16464 {
16465 gai_strerror (NULL);
16466   ;
16467   return 0;
16468 }
16469 _ACEOF
16470 rm -f conftest.$ac_objext conftest$ac_exeext
16471 if { (ac_try="$ac_link"
16472 case "(($ac_try" in
16473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474   *) ac_try_echo=$ac_try;;
16475 esac
16476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16477 $as_echo "$ac_try_echo") >&5
16478   (eval "$ac_link") 2>conftest.er1
16479   ac_status=$?
16480   grep -v '^ *+' conftest.er1 >conftest.err
16481   rm -f conftest.er1
16482   cat conftest.err >&5
16483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484   (exit $ac_status); } && {
16485          test -z "$ac_c_werror_flag" ||
16486          test ! -s conftest.err
16487        } && test -s conftest$ac_exeext && {
16488          test "$cross_compiling" = yes ||
16489          $as_test_x conftest$ac_exeext
16490        }; then
16491   gl_cv_func_gai_strerror=yes
16492 else
16493   $as_echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16495
16496         gl_cv_func_gai_strerror=no
16497 fi
16498
16499 rm -rf conftest.dSYM
16500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16501       conftest$ac_exeext conftest.$ac_ext
16502 fi
16503 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gai_strerror" >&5
16504 $as_echo "$gl_cv_func_gai_strerror" >&6; }
16505   if test $gl_cv_func_gai_strerror = no; then
16506
16507
16508
16509
16510
16511
16512
16513
16514   gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
16515
16516   fi
16517
16518   LIBS="$gai_saved_LIBS"
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528       { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16529 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16530 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16531   $as_echo_n "(cached) " >&6
16532 else
16533   cat >conftest.$ac_ext <<_ACEOF
16534 /* confdefs.h.  */
16535 _ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h.  */
16539 #include <sys/socket.h>
16540
16541 int
16542 main ()
16543 {
16544 static struct sockaddr ac_aggr;
16545 if (ac_aggr.sa_len)
16546 return 0;
16547   ;
16548   return 0;
16549 }
16550 _ACEOF
16551 rm -f conftest.$ac_objext
16552 if { (ac_try="$ac_compile"
16553 case "(($ac_try" in
16554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555   *) ac_try_echo=$ac_try;;
16556 esac
16557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16558 $as_echo "$ac_try_echo") >&5
16559   (eval "$ac_compile") 2>conftest.er1
16560   ac_status=$?
16561   grep -v '^ *+' conftest.er1 >conftest.err
16562   rm -f conftest.er1
16563   cat conftest.err >&5
16564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); } && {
16566          test -z "$ac_c_werror_flag" ||
16567          test ! -s conftest.err
16568        } && test -s conftest.$ac_objext; then
16569   ac_cv_member_struct_sockaddr_sa_len=yes
16570 else
16571   $as_echo "$as_me: failed program was:" >&5
16572 sed 's/^/| /' conftest.$ac_ext >&5
16573
16574         cat >conftest.$ac_ext <<_ACEOF
16575 /* confdefs.h.  */
16576 _ACEOF
16577 cat confdefs.h >>conftest.$ac_ext
16578 cat >>conftest.$ac_ext <<_ACEOF
16579 /* end confdefs.h.  */
16580 #include <sys/socket.h>
16581
16582 int
16583 main ()
16584 {
16585 static struct sockaddr ac_aggr;
16586 if (sizeof ac_aggr.sa_len)
16587 return 0;
16588   ;
16589   return 0;
16590 }
16591 _ACEOF
16592 rm -f conftest.$ac_objext
16593 if { (ac_try="$ac_compile"
16594 case "(($ac_try" in
16595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596   *) ac_try_echo=$ac_try;;
16597 esac
16598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16599 $as_echo "$ac_try_echo") >&5
16600   (eval "$ac_compile") 2>conftest.er1
16601   ac_status=$?
16602   grep -v '^ *+' conftest.er1 >conftest.err
16603   rm -f conftest.er1
16604   cat conftest.err >&5
16605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); } && {
16607          test -z "$ac_c_werror_flag" ||
16608          test ! -s conftest.err
16609        } && test -s conftest.$ac_objext; then
16610   ac_cv_member_struct_sockaddr_sa_len=yes
16611 else
16612   $as_echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16614
16615         ac_cv_member_struct_sockaddr_sa_len=no
16616 fi
16617
16618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16619 fi
16620
16621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16622 fi
16623 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16624 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16625 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16626
16627 cat >>confdefs.h <<_ACEOF
16628 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16629 _ACEOF
16630
16631
16632 fi
16633
16634
16635
16636   :
16637
16638
16639
16640
16641
16642
16643   { $as_echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
16644 $as_echo_n "checking whether getaddrinfo is declared... " >&6; }
16645 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
16646   $as_echo_n "(cached) " >&6
16647 else
16648   cat >conftest.$ac_ext <<_ACEOF
16649 /* confdefs.h.  */
16650 _ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h.  */
16654
16655   /* sys/types.h is not needed according to POSIX, but the
16656      sys/socket.h in i386-unknown-freebsd4.10 and
16657      powerpc-apple-darwin5.5 required it. */
16658 #include <sys/types.h>
16659 #ifdef HAVE_SYS_SOCKET_H
16660 #include <sys/socket.h>
16661 #endif
16662 #ifdef HAVE_NETDB_H
16663 #include <netdb.h>
16664 #endif
16665 #ifdef HAVE_WS2TCPIP_H
16666 #include <ws2tcpip.h>
16667 #endif
16668
16669
16670 int
16671 main ()
16672 {
16673 #ifndef getaddrinfo
16674   (void) getaddrinfo;
16675 #endif
16676
16677   ;
16678   return 0;
16679 }
16680 _ACEOF
16681 rm -f conftest.$ac_objext
16682 if { (ac_try="$ac_compile"
16683 case "(($ac_try" in
16684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685   *) ac_try_echo=$ac_try;;
16686 esac
16687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16688 $as_echo "$ac_try_echo") >&5
16689   (eval "$ac_compile") 2>conftest.er1
16690   ac_status=$?
16691   grep -v '^ *+' conftest.er1 >conftest.err
16692   rm -f conftest.er1
16693   cat conftest.err >&5
16694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695   (exit $ac_status); } && {
16696          test -z "$ac_c_werror_flag" ||
16697          test ! -s conftest.err
16698        } && test -s conftest.$ac_objext; then
16699   ac_cv_have_decl_getaddrinfo=yes
16700 else
16701   $as_echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16703
16704         ac_cv_have_decl_getaddrinfo=no
16705 fi
16706
16707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16708 fi
16709 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
16710 $as_echo "$ac_cv_have_decl_getaddrinfo" >&6; }
16711 if test "x$ac_cv_have_decl_getaddrinfo" = x""yes; then
16712
16713 cat >>confdefs.h <<_ACEOF
16714 #define HAVE_DECL_GETADDRINFO 1
16715 _ACEOF
16716
16717
16718 else
16719   cat >>confdefs.h <<_ACEOF
16720 #define HAVE_DECL_GETADDRINFO 0
16721 _ACEOF
16722
16723
16724 fi
16725 { $as_echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
16726 $as_echo_n "checking whether freeaddrinfo is declared... " >&6; }
16727 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
16728   $as_echo_n "(cached) " >&6
16729 else
16730   cat >conftest.$ac_ext <<_ACEOF
16731 /* confdefs.h.  */
16732 _ACEOF
16733 cat confdefs.h >>conftest.$ac_ext
16734 cat >>conftest.$ac_ext <<_ACEOF
16735 /* end confdefs.h.  */
16736
16737   /* sys/types.h is not needed according to POSIX, but the
16738      sys/socket.h in i386-unknown-freebsd4.10 and
16739      powerpc-apple-darwin5.5 required it. */
16740 #include <sys/types.h>
16741 #ifdef HAVE_SYS_SOCKET_H
16742 #include <sys/socket.h>
16743 #endif
16744 #ifdef HAVE_NETDB_H
16745 #include <netdb.h>
16746 #endif
16747 #ifdef HAVE_WS2TCPIP_H
16748 #include <ws2tcpip.h>
16749 #endif
16750
16751
16752 int
16753 main ()
16754 {
16755 #ifndef freeaddrinfo
16756   (void) freeaddrinfo;
16757 #endif
16758
16759   ;
16760   return 0;
16761 }
16762 _ACEOF
16763 rm -f conftest.$ac_objext
16764 if { (ac_try="$ac_compile"
16765 case "(($ac_try" in
16766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767   *) ac_try_echo=$ac_try;;
16768 esac
16769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16770 $as_echo "$ac_try_echo") >&5
16771   (eval "$ac_compile") 2>conftest.er1
16772   ac_status=$?
16773   grep -v '^ *+' conftest.er1 >conftest.err
16774   rm -f conftest.er1
16775   cat conftest.err >&5
16776   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); } && {
16778          test -z "$ac_c_werror_flag" ||
16779          test ! -s conftest.err
16780        } && test -s conftest.$ac_objext; then
16781   ac_cv_have_decl_freeaddrinfo=yes
16782 else
16783   $as_echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16785
16786         ac_cv_have_decl_freeaddrinfo=no
16787 fi
16788
16789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16790 fi
16791 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
16792 $as_echo "$ac_cv_have_decl_freeaddrinfo" >&6; }
16793 if test "x$ac_cv_have_decl_freeaddrinfo" = x""yes; then
16794
16795 cat >>confdefs.h <<_ACEOF
16796 #define HAVE_DECL_FREEADDRINFO 1
16797 _ACEOF
16798
16799
16800 else
16801   cat >>confdefs.h <<_ACEOF
16802 #define HAVE_DECL_FREEADDRINFO 0
16803 _ACEOF
16804
16805
16806 fi
16807 { $as_echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
16808 $as_echo_n "checking whether gai_strerror is declared... " >&6; }
16809 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
16810   $as_echo_n "(cached) " >&6
16811 else
16812   cat >conftest.$ac_ext <<_ACEOF
16813 /* confdefs.h.  */
16814 _ACEOF
16815 cat confdefs.h >>conftest.$ac_ext
16816 cat >>conftest.$ac_ext <<_ACEOF
16817 /* end confdefs.h.  */
16818
16819   /* sys/types.h is not needed according to POSIX, but the
16820      sys/socket.h in i386-unknown-freebsd4.10 and
16821      powerpc-apple-darwin5.5 required it. */
16822 #include <sys/types.h>
16823 #ifdef HAVE_SYS_SOCKET_H
16824 #include <sys/socket.h>
16825 #endif
16826 #ifdef HAVE_NETDB_H
16827 #include <netdb.h>
16828 #endif
16829 #ifdef HAVE_WS2TCPIP_H
16830 #include <ws2tcpip.h>
16831 #endif
16832
16833
16834 int
16835 main ()
16836 {
16837 #ifndef gai_strerror
16838   (void) gai_strerror;
16839 #endif
16840
16841   ;
16842   return 0;
16843 }
16844 _ACEOF
16845 rm -f conftest.$ac_objext
16846 if { (ac_try="$ac_compile"
16847 case "(($ac_try" in
16848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849   *) ac_try_echo=$ac_try;;
16850 esac
16851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16852 $as_echo "$ac_try_echo") >&5
16853   (eval "$ac_compile") 2>conftest.er1
16854   ac_status=$?
16855   grep -v '^ *+' conftest.er1 >conftest.err
16856   rm -f conftest.er1
16857   cat conftest.err >&5
16858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859   (exit $ac_status); } && {
16860          test -z "$ac_c_werror_flag" ||
16861          test ! -s conftest.err
16862        } && test -s conftest.$ac_objext; then
16863   ac_cv_have_decl_gai_strerror=yes
16864 else
16865   $as_echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.$ac_ext >&5
16867
16868         ac_cv_have_decl_gai_strerror=no
16869 fi
16870
16871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16872 fi
16873 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
16874 $as_echo "$ac_cv_have_decl_gai_strerror" >&6; }
16875 if test "x$ac_cv_have_decl_gai_strerror" = x""yes; then
16876
16877 cat >>confdefs.h <<_ACEOF
16878 #define HAVE_DECL_GAI_STRERROR 1
16879 _ACEOF
16880
16881
16882 else
16883   cat >>confdefs.h <<_ACEOF
16884 #define HAVE_DECL_GAI_STRERROR 0
16885 _ACEOF
16886
16887
16888 fi
16889 { $as_echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
16890 $as_echo_n "checking whether getnameinfo is declared... " >&6; }
16891 if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
16892   $as_echo_n "(cached) " >&6
16893 else
16894   cat >conftest.$ac_ext <<_ACEOF
16895 /* confdefs.h.  */
16896 _ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h.  */
16900
16901   /* sys/types.h is not needed according to POSIX, but the
16902      sys/socket.h in i386-unknown-freebsd4.10 and
16903      powerpc-apple-darwin5.5 required it. */
16904 #include <sys/types.h>
16905 #ifdef HAVE_SYS_SOCKET_H
16906 #include <sys/socket.h>
16907 #endif
16908 #ifdef HAVE_NETDB_H
16909 #include <netdb.h>
16910 #endif
16911 #ifdef HAVE_WS2TCPIP_H
16912 #include <ws2tcpip.h>
16913 #endif
16914
16915
16916 int
16917 main ()
16918 {
16919 #ifndef getnameinfo
16920   (void) getnameinfo;
16921 #endif
16922
16923   ;
16924   return 0;
16925 }
16926 _ACEOF
16927 rm -f conftest.$ac_objext
16928 if { (ac_try="$ac_compile"
16929 case "(($ac_try" in
16930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931   *) ac_try_echo=$ac_try;;
16932 esac
16933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16934 $as_echo "$ac_try_echo") >&5
16935   (eval "$ac_compile") 2>conftest.er1
16936   ac_status=$?
16937   grep -v '^ *+' conftest.er1 >conftest.err
16938   rm -f conftest.er1
16939   cat conftest.err >&5
16940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); } && {
16942          test -z "$ac_c_werror_flag" ||
16943          test ! -s conftest.err
16944        } && test -s conftest.$ac_objext; then
16945   ac_cv_have_decl_getnameinfo=yes
16946 else
16947   $as_echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16949
16950         ac_cv_have_decl_getnameinfo=no
16951 fi
16952
16953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16954 fi
16955 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
16956 $as_echo "$ac_cv_have_decl_getnameinfo" >&6; }
16957 if test "x$ac_cv_have_decl_getnameinfo" = x""yes; then
16958
16959 cat >>confdefs.h <<_ACEOF
16960 #define HAVE_DECL_GETNAMEINFO 1
16961 _ACEOF
16962
16963
16964 else
16965   cat >>confdefs.h <<_ACEOF
16966 #define HAVE_DECL_GETNAMEINFO 0
16967 _ACEOF
16968
16969
16970 fi
16971
16972
16973   if test $ac_cv_have_decl_getaddrinfo = no; then
16974     HAVE_DECL_GETADDRINFO=0
16975   fi
16976   if test $ac_cv_have_decl_freeaddrinfo = no; then
16977     HAVE_DECL_FREEADDRINFO=0
16978   fi
16979   if test $ac_cv_have_decl_gai_strerror = no; then
16980     HAVE_DECL_GAI_STRERROR=0
16981   fi
16982   if test $ac_cv_have_decl_getnameinfo = no; then
16983     HAVE_DECL_GETNAMEINFO=0
16984   fi
16985
16986   { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16987 $as_echo_n "checking for struct addrinfo... " >&6; }
16988 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16989   $as_echo_n "(cached) " >&6
16990 else
16991   ac_cv_type_struct_addrinfo=no
16992 cat >conftest.$ac_ext <<_ACEOF
16993 /* confdefs.h.  */
16994 _ACEOF
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h.  */
16998
16999 #include <sys/types.h>
17000 #ifdef HAVE_SYS_SOCKET_H
17001 #include <sys/socket.h>
17002 #endif
17003 #ifdef HAVE_NETDB_H
17004 #include <netdb.h>
17005 #endif
17006 #ifdef HAVE_WS2TCPIP_H
17007 #include <ws2tcpip.h>
17008 #endif
17009
17010
17011 int
17012 main ()
17013 {
17014 if (sizeof (struct addrinfo))
17015        return 0;
17016   ;
17017   return 0;
17018 }
17019 _ACEOF
17020 rm -f conftest.$ac_objext
17021 if { (ac_try="$ac_compile"
17022 case "(($ac_try" in
17023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17024   *) ac_try_echo=$ac_try;;
17025 esac
17026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17027 $as_echo "$ac_try_echo") >&5
17028   (eval "$ac_compile") 2>conftest.er1
17029   ac_status=$?
17030   grep -v '^ *+' conftest.er1 >conftest.err
17031   rm -f conftest.er1
17032   cat conftest.err >&5
17033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); } && {
17035          test -z "$ac_c_werror_flag" ||
17036          test ! -s conftest.err
17037        } && test -s conftest.$ac_objext; then
17038   cat >conftest.$ac_ext <<_ACEOF
17039 /* confdefs.h.  */
17040 _ACEOF
17041 cat confdefs.h >>conftest.$ac_ext
17042 cat >>conftest.$ac_ext <<_ACEOF
17043 /* end confdefs.h.  */
17044
17045 #include <sys/types.h>
17046 #ifdef HAVE_SYS_SOCKET_H
17047 #include <sys/socket.h>
17048 #endif
17049 #ifdef HAVE_NETDB_H
17050 #include <netdb.h>
17051 #endif
17052 #ifdef HAVE_WS2TCPIP_H
17053 #include <ws2tcpip.h>
17054 #endif
17055
17056
17057 int
17058 main ()
17059 {
17060 if (sizeof ((struct addrinfo)))
17061           return 0;
17062   ;
17063   return 0;
17064 }
17065 _ACEOF
17066 rm -f conftest.$ac_objext
17067 if { (ac_try="$ac_compile"
17068 case "(($ac_try" in
17069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070   *) ac_try_echo=$ac_try;;
17071 esac
17072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17073 $as_echo "$ac_try_echo") >&5
17074   (eval "$ac_compile") 2>conftest.er1
17075   ac_status=$?
17076   grep -v '^ *+' conftest.er1 >conftest.err
17077   rm -f conftest.er1
17078   cat conftest.err >&5
17079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080   (exit $ac_status); } && {
17081          test -z "$ac_c_werror_flag" ||
17082          test ! -s conftest.err
17083        } && test -s conftest.$ac_objext; then
17084   :
17085 else
17086   $as_echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17088
17089         ac_cv_type_struct_addrinfo=yes
17090 fi
17091
17092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17093 else
17094   $as_echo "$as_me: failed program was:" >&5
17095 sed 's/^/| /' conftest.$ac_ext >&5
17096
17097
17098 fi
17099
17100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17101 fi
17102 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
17103 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
17104 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
17105
17106 cat >>confdefs.h <<_ACEOF
17107 #define HAVE_STRUCT_ADDRINFO 1
17108 _ACEOF
17109
17110
17111 fi
17112
17113   if test $ac_cv_type_struct_addrinfo = no; then
17114     HAVE_STRUCT_ADDRINFO=0
17115   fi
17116
17117     case " $GETADDRINFO_LIB " in
17118     *" $HOSTENT_LIB "*) ;;
17119     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
17120   esac
17121
17122     case " $GETADDRINFO_LIB " in
17123     *" $SERVENT_LIB "*) ;;
17124     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
17125   esac
17126
17127
17128
17129
17130
17131
17132   GNULIB_GETADDRINFO=1
17133
17134
17135
17136   if test -n "$GETOPT_H"; then
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
17157
17158
17159   GETOPT_H=getopt.h
17160
17161 cat >>confdefs.h <<\_ACEOF
17162 #define __GETOPT_PREFIX rpl_
17163 _ACEOF
17164
17165
17166
17167
17168
17169   :
17170
17171
17172
17173
17174
17175
17176
17177 fi
17178
17179
17180
17181
17182
17183
17184
17185
17186   :
17187
17188
17189
17190
17191
17192
17193   { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
17194 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
17195 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
17196   $as_echo_n "(cached) " >&6
17197 else
17198   cat >conftest.$ac_ext <<_ACEOF
17199 /* confdefs.h.  */
17200 _ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h.  */
17204 #include <sys/time.h>
17205             struct timeval c;
17206
17207 int
17208 main ()
17209 {
17210
17211             int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
17212             int x = f (&c, 0);
17213             return !(x | c.tv_sec | c.tv_usec);
17214
17215   ;
17216   return 0;
17217 }
17218 _ACEOF
17219 rm -f conftest.$ac_objext
17220 if { (ac_try="$ac_compile"
17221 case "(($ac_try" in
17222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223   *) ac_try_echo=$ac_try;;
17224 esac
17225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17226 $as_echo "$ac_try_echo") >&5
17227   (eval "$ac_compile") 2>conftest.er1
17228   ac_status=$?
17229   grep -v '^ *+' conftest.er1 >conftest.err
17230   rm -f conftest.er1
17231   cat conftest.err >&5
17232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); } && {
17234          test -z "$ac_c_werror_flag" ||
17235          test ! -s conftest.err
17236        } && test -s conftest.$ac_objext; then
17237   gl_cv_func_gettimeofday_posix_signature=yes
17238 else
17239   $as_echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17241
17242         gl_cv_func_gettimeofday_posix_signature=no
17243 fi
17244
17245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17246 fi
17247 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
17248 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
17249
17250
17251
17252
17253  { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
17254 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
17255 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
17256   $as_echo_n "(cached) " >&6
17257 else
17258   if test "$cross_compiling" = yes; then
17259        gl_cv_func_gettimeofday_clobber=yes
17260 else
17261   cat >conftest.$ac_ext <<_ACEOF
17262 /* confdefs.h.  */
17263 _ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h.  */
17267 #include <string.h>
17268           #include <sys/time.h>
17269           #include <time.h>
17270           #include <stdlib.h>
17271
17272 int
17273 main ()
17274 {
17275
17276           time_t t = 0;
17277           struct tm *lt;
17278           struct tm saved_lt;
17279           struct timeval tv;
17280           lt = localtime (&t);
17281           saved_lt = *lt;
17282           gettimeofday (&tv, NULL);
17283           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
17284
17285   ;
17286   return 0;
17287 }
17288 _ACEOF
17289 rm -f conftest$ac_exeext
17290 if { (ac_try="$ac_link"
17291 case "(($ac_try" in
17292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17293   *) ac_try_echo=$ac_try;;
17294 esac
17295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17296 $as_echo "$ac_try_echo") >&5
17297   (eval "$ac_link") 2>&5
17298   ac_status=$?
17299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17301   { (case "(($ac_try" in
17302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303   *) ac_try_echo=$ac_try;;
17304 esac
17305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17306 $as_echo "$ac_try_echo") >&5
17307   (eval "$ac_try") 2>&5
17308   ac_status=$?
17309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); }; }; then
17311   gl_cv_func_gettimeofday_clobber=no
17312 else
17313   $as_echo "$as_me: program exited with status $ac_status" >&5
17314 $as_echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.$ac_ext >&5
17316
17317 ( exit $ac_status )
17318 gl_cv_func_gettimeofday_clobber=yes
17319 fi
17320 rm -rf conftest.dSYM
17321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17322 fi
17323
17324
17325 fi
17326 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
17327 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
17328
17329  if test $gl_cv_func_gettimeofday_clobber = yes; then
17330    REPLACE_GETTIMEOFDAY=1
17331    SYS_TIME_H=sys/time.h
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
17342
17343
17344
17345 for ac_header in sys/timeb.h
17346 do
17347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17349   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17350 $as_echo_n "checking for $ac_header... " >&6; }
17351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17352   $as_echo_n "(cached) " >&6
17353 fi
17354 ac_res=`eval 'as_val=${'$as_ac_Header'}
17355                  $as_echo "$as_val"'`
17356                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17357 $as_echo "$ac_res" >&6; }
17358 else
17359   # Is the header compilable?
17360 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17361 $as_echo_n "checking $ac_header usability... " >&6; }
17362 cat >conftest.$ac_ext <<_ACEOF
17363 /* confdefs.h.  */
17364 _ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h.  */
17368 $ac_includes_default
17369 #include <$ac_header>
17370 _ACEOF
17371 rm -f conftest.$ac_objext
17372 if { (ac_try="$ac_compile"
17373 case "(($ac_try" in
17374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375   *) ac_try_echo=$ac_try;;
17376 esac
17377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17378 $as_echo "$ac_try_echo") >&5
17379   (eval "$ac_compile") 2>conftest.er1
17380   ac_status=$?
17381   grep -v '^ *+' conftest.er1 >conftest.err
17382   rm -f conftest.er1
17383   cat conftest.err >&5
17384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385   (exit $ac_status); } && {
17386          test -z "$ac_c_werror_flag" ||
17387          test ! -s conftest.err
17388        } && test -s conftest.$ac_objext; then
17389   ac_header_compiler=yes
17390 else
17391   $as_echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17393
17394         ac_header_compiler=no
17395 fi
17396
17397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17398 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17399 $as_echo "$ac_header_compiler" >&6; }
17400
17401 # Is the header present?
17402 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17403 $as_echo_n "checking $ac_header presence... " >&6; }
17404 cat >conftest.$ac_ext <<_ACEOF
17405 /* confdefs.h.  */
17406 _ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h.  */
17410 #include <$ac_header>
17411 _ACEOF
17412 if { (ac_try="$ac_cpp conftest.$ac_ext"
17413 case "(($ac_try" in
17414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415   *) ac_try_echo=$ac_try;;
17416 esac
17417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17418 $as_echo "$ac_try_echo") >&5
17419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17420   ac_status=$?
17421   grep -v '^ *+' conftest.er1 >conftest.err
17422   rm -f conftest.er1
17423   cat conftest.err >&5
17424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425   (exit $ac_status); } >/dev/null && {
17426          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17427          test ! -s conftest.err
17428        }; then
17429   ac_header_preproc=yes
17430 else
17431   $as_echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17433
17434   ac_header_preproc=no
17435 fi
17436
17437 rm -f conftest.err conftest.$ac_ext
17438 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17439 $as_echo "$ac_header_preproc" >&6; }
17440
17441 # So?  What about this header?
17442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17443   yes:no: )
17444     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17445 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17446     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17447 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17448     ac_header_preproc=yes
17449     ;;
17450   no:yes:* )
17451     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17452 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17453     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17454 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17455     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17456 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17457     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17458 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17459     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17460 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17461     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17462 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17463
17464     ;;
17465 esac
17466 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17467 $as_echo_n "checking for $ac_header... " >&6; }
17468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17469   $as_echo_n "(cached) " >&6
17470 else
17471   eval "$as_ac_Header=\$ac_header_preproc"
17472 fi
17473 ac_res=`eval 'as_val=${'$as_ac_Header'}
17474                  $as_echo "$as_val"'`
17475                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17476 $as_echo "$ac_res" >&6; }
17477
17478 fi
17479 as_val=`eval 'as_val=${'$as_ac_Header'}
17480                  $as_echo "$as_val"'`
17481    if test "x$as_val" = x""yes; then
17482   cat >>confdefs.h <<_ACEOF
17483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17484 _ACEOF
17485
17486 fi
17487
17488 done
17489
17490
17491 for ac_func in _ftime
17492 do
17493 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17494 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17495 $as_echo_n "checking for $ac_func... " >&6; }
17496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17497   $as_echo_n "(cached) " >&6
17498 else
17499   cat >conftest.$ac_ext <<_ACEOF
17500 /* confdefs.h.  */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h.  */
17505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17506    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17507 #define $ac_func innocuous_$ac_func
17508
17509 /* System header to define __stub macros and hopefully few prototypes,
17510     which can conflict with char $ac_func (); below.
17511     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17512     <limits.h> exists even on freestanding compilers.  */
17513
17514 #ifdef __STDC__
17515 # include <limits.h>
17516 #else
17517 # include <assert.h>
17518 #endif
17519
17520 #undef $ac_func
17521
17522 /* Override any GCC internal prototype to avoid an error.
17523    Use char because int might match the return type of a GCC
17524    builtin and then its argument prototype would still apply.  */
17525 #ifdef __cplusplus
17526 extern "C"
17527 #endif
17528 char $ac_func ();
17529 /* The GNU C library defines this for functions which it implements
17530     to always fail with ENOSYS.  Some functions are actually named
17531     something starting with __ and the normal name is an alias.  */
17532 #if defined __stub_$ac_func || defined __stub___$ac_func
17533 choke me
17534 #endif
17535
17536 int
17537 main ()
17538 {
17539 return $ac_func ();
17540   ;
17541   return 0;
17542 }
17543 _ACEOF
17544 rm -f conftest.$ac_objext conftest$ac_exeext
17545 if { (ac_try="$ac_link"
17546 case "(($ac_try" in
17547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17548   *) ac_try_echo=$ac_try;;
17549 esac
17550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17551 $as_echo "$ac_try_echo") >&5
17552   (eval "$ac_link") 2>conftest.er1
17553   ac_status=$?
17554   grep -v '^ *+' conftest.er1 >conftest.err
17555   rm -f conftest.er1
17556   cat conftest.err >&5
17557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558   (exit $ac_status); } && {
17559          test -z "$ac_c_werror_flag" ||
17560          test ! -s conftest.err
17561        } && test -s conftest$ac_exeext && {
17562          test "$cross_compiling" = yes ||
17563          $as_test_x conftest$ac_exeext
17564        }; then
17565   eval "$as_ac_var=yes"
17566 else
17567   $as_echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17569
17570         eval "$as_ac_var=no"
17571 fi
17572
17573 rm -rf conftest.dSYM
17574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17575       conftest$ac_exeext conftest.$ac_ext
17576 fi
17577 ac_res=`eval 'as_val=${'$as_ac_var'}
17578                  $as_echo "$as_val"'`
17579                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17580 $as_echo "$ac_res" >&6; }
17581 as_val=`eval 'as_val=${'$as_ac_var'}
17582                  $as_echo "$as_val"'`
17583    if test "x$as_val" = x""yes; then
17584   cat >>confdefs.h <<_ACEOF
17585 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17586 _ACEOF
17587
17588 fi
17589 done
17590
17591
17592
17593 cat >>confdefs.h <<\_ACEOF
17594 #define gmtime rpl_gmtime
17595 _ACEOF
17596
17597
17598 cat >>confdefs.h <<\_ACEOF
17599 #define localtime rpl_localtime
17600 _ACEOF
17601
17602
17603
17604 cat >>confdefs.h <<\_ACEOF
17605 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
17606 _ACEOF
17607
17608  fi
17609
17610
17611   if test $gl_cv_func_gettimeofday_posix_signature != yes; then
17612     REPLACE_GETTIMEOFDAY=1
17613     SYS_TIME_H=sys/time.h
17614     if test $gl_cv_func_gettimeofday_clobber != yes; then
17615
17616
17617
17618
17619
17620
17621
17622
17623   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
17624
17625
17626
17627 for ac_header in sys/timeb.h
17628 do
17629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17631   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17632 $as_echo_n "checking for $ac_header... " >&6; }
17633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17634   $as_echo_n "(cached) " >&6
17635 fi
17636 ac_res=`eval 'as_val=${'$as_ac_Header'}
17637                  $as_echo "$as_val"'`
17638                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17639 $as_echo "$ac_res" >&6; }
17640 else
17641   # Is the header compilable?
17642 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17643 $as_echo_n "checking $ac_header usability... " >&6; }
17644 cat >conftest.$ac_ext <<_ACEOF
17645 /* confdefs.h.  */
17646 _ACEOF
17647 cat confdefs.h >>conftest.$ac_ext
17648 cat >>conftest.$ac_ext <<_ACEOF
17649 /* end confdefs.h.  */
17650 $ac_includes_default
17651 #include <$ac_header>
17652 _ACEOF
17653 rm -f conftest.$ac_objext
17654 if { (ac_try="$ac_compile"
17655 case "(($ac_try" in
17656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657   *) ac_try_echo=$ac_try;;
17658 esac
17659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17660 $as_echo "$ac_try_echo") >&5
17661   (eval "$ac_compile") 2>conftest.er1
17662   ac_status=$?
17663   grep -v '^ *+' conftest.er1 >conftest.err
17664   rm -f conftest.er1
17665   cat conftest.err >&5
17666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667   (exit $ac_status); } && {
17668          test -z "$ac_c_werror_flag" ||
17669          test ! -s conftest.err
17670        } && test -s conftest.$ac_objext; then
17671   ac_header_compiler=yes
17672 else
17673   $as_echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.$ac_ext >&5
17675
17676         ac_header_compiler=no
17677 fi
17678
17679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17680 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17681 $as_echo "$ac_header_compiler" >&6; }
17682
17683 # Is the header present?
17684 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17685 $as_echo_n "checking $ac_header presence... " >&6; }
17686 cat >conftest.$ac_ext <<_ACEOF
17687 /* confdefs.h.  */
17688 _ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h.  */
17692 #include <$ac_header>
17693 _ACEOF
17694 if { (ac_try="$ac_cpp conftest.$ac_ext"
17695 case "(($ac_try" in
17696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17697   *) ac_try_echo=$ac_try;;
17698 esac
17699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17700 $as_echo "$ac_try_echo") >&5
17701   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17702   ac_status=$?
17703   grep -v '^ *+' conftest.er1 >conftest.err
17704   rm -f conftest.er1
17705   cat conftest.err >&5
17706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707   (exit $ac_status); } >/dev/null && {
17708          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17709          test ! -s conftest.err
17710        }; then
17711   ac_header_preproc=yes
17712 else
17713   $as_echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.$ac_ext >&5
17715
17716   ac_header_preproc=no
17717 fi
17718
17719 rm -f conftest.err conftest.$ac_ext
17720 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17721 $as_echo "$ac_header_preproc" >&6; }
17722
17723 # So?  What about this header?
17724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17725   yes:no: )
17726     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17727 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17728     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17729 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17730     ac_header_preproc=yes
17731     ;;
17732   no:yes:* )
17733     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17734 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17735     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17736 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17737     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17738 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17739     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17740 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17741     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17742 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17743     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17744 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17745
17746     ;;
17747 esac
17748 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17749 $as_echo_n "checking for $ac_header... " >&6; }
17750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17751   $as_echo_n "(cached) " >&6
17752 else
17753   eval "$as_ac_Header=\$ac_header_preproc"
17754 fi
17755 ac_res=`eval 'as_val=${'$as_ac_Header'}
17756                  $as_echo "$as_val"'`
17757                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17758 $as_echo "$ac_res" >&6; }
17759
17760 fi
17761 as_val=`eval 'as_val=${'$as_ac_Header'}
17762                  $as_echo "$as_val"'`
17763    if test "x$as_val" = x""yes; then
17764   cat >>confdefs.h <<_ACEOF
17765 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17766 _ACEOF
17767
17768 fi
17769
17770 done
17771
17772
17773 for ac_func in _ftime
17774 do
17775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17776 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17777 $as_echo_n "checking for $ac_func... " >&6; }
17778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17779   $as_echo_n "(cached) " >&6
17780 else
17781   cat >conftest.$ac_ext <<_ACEOF
17782 /* confdefs.h.  */
17783 _ACEOF
17784 cat confdefs.h >>conftest.$ac_ext
17785 cat >>conftest.$ac_ext <<_ACEOF
17786 /* end confdefs.h.  */
17787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17789 #define $ac_func innocuous_$ac_func
17790
17791 /* System header to define __stub macros and hopefully few prototypes,
17792     which can conflict with char $ac_func (); below.
17793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17794     <limits.h> exists even on freestanding compilers.  */
17795
17796 #ifdef __STDC__
17797 # include <limits.h>
17798 #else
17799 # include <assert.h>
17800 #endif
17801
17802 #undef $ac_func
17803
17804 /* Override any GCC internal prototype to avoid an error.
17805    Use char because int might match the return type of a GCC
17806    builtin and then its argument prototype would still apply.  */
17807 #ifdef __cplusplus
17808 extern "C"
17809 #endif
17810 char $ac_func ();
17811 /* The GNU C library defines this for functions which it implements
17812     to always fail with ENOSYS.  Some functions are actually named
17813     something starting with __ and the normal name is an alias.  */
17814 #if defined __stub_$ac_func || defined __stub___$ac_func
17815 choke me
17816 #endif
17817
17818 int
17819 main ()
17820 {
17821 return $ac_func ();
17822   ;
17823   return 0;
17824 }
17825 _ACEOF
17826 rm -f conftest.$ac_objext conftest$ac_exeext
17827 if { (ac_try="$ac_link"
17828 case "(($ac_try" in
17829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830   *) ac_try_echo=$ac_try;;
17831 esac
17832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17833 $as_echo "$ac_try_echo") >&5
17834   (eval "$ac_link") 2>conftest.er1
17835   ac_status=$?
17836   grep -v '^ *+' conftest.er1 >conftest.err
17837   rm -f conftest.er1
17838   cat conftest.err >&5
17839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840   (exit $ac_status); } && {
17841          test -z "$ac_c_werror_flag" ||
17842          test ! -s conftest.err
17843        } && test -s conftest$ac_exeext && {
17844          test "$cross_compiling" = yes ||
17845          $as_test_x conftest$ac_exeext
17846        }; then
17847   eval "$as_ac_var=yes"
17848 else
17849   $as_echo "$as_me: failed program was:" >&5
17850 sed 's/^/| /' conftest.$ac_ext >&5
17851
17852         eval "$as_ac_var=no"
17853 fi
17854
17855 rm -rf conftest.dSYM
17856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17857       conftest$ac_exeext conftest.$ac_ext
17858 fi
17859 ac_res=`eval 'as_val=${'$as_ac_var'}
17860                  $as_echo "$as_val"'`
17861                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17862 $as_echo "$ac_res" >&6; }
17863 as_val=`eval 'as_val=${'$as_ac_var'}
17864                  $as_echo "$as_val"'`
17865    if test "x$as_val" = x""yes; then
17866   cat >>confdefs.h <<_ACEOF
17867 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17868 _ACEOF
17869
17870 fi
17871 done
17872
17873
17874     fi
17875   fi
17876
17877
17878                   HOSTENT_LIB=
17879   gl_saved_libs="$LIBS"
17880   { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
17881 $as_echo_n "checking for library containing gethostbyname... " >&6; }
17882 if test "${ac_cv_search_gethostbyname+set}" = set; then
17883   $as_echo_n "(cached) " >&6
17884 else
17885   ac_func_search_save_LIBS=$LIBS
17886 cat >conftest.$ac_ext <<_ACEOF
17887 /* confdefs.h.  */
17888 _ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h.  */
17892
17893 /* Override any GCC internal prototype to avoid an error.
17894    Use char because int might match the return type of a GCC
17895    builtin and then its argument prototype would still apply.  */
17896 #ifdef __cplusplus
17897 extern "C"
17898 #endif
17899 char gethostbyname ();
17900 int
17901 main ()
17902 {
17903 return gethostbyname ();
17904   ;
17905   return 0;
17906 }
17907 _ACEOF
17908 for ac_lib in '' nsl network net; do
17909   if test -z "$ac_lib"; then
17910     ac_res="none required"
17911   else
17912     ac_res=-l$ac_lib
17913     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17914   fi
17915   rm -f conftest.$ac_objext conftest$ac_exeext
17916 if { (ac_try="$ac_link"
17917 case "(($ac_try" in
17918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919   *) ac_try_echo=$ac_try;;
17920 esac
17921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17922 $as_echo "$ac_try_echo") >&5
17923   (eval "$ac_link") 2>conftest.er1
17924   ac_status=$?
17925   grep -v '^ *+' conftest.er1 >conftest.err
17926   rm -f conftest.er1
17927   cat conftest.err >&5
17928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929   (exit $ac_status); } && {
17930          test -z "$ac_c_werror_flag" ||
17931          test ! -s conftest.err
17932        } && test -s conftest$ac_exeext && {
17933          test "$cross_compiling" = yes ||
17934          $as_test_x conftest$ac_exeext
17935        }; then
17936   ac_cv_search_gethostbyname=$ac_res
17937 else
17938   $as_echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.$ac_ext >&5
17940
17941
17942 fi
17943
17944 rm -rf conftest.dSYM
17945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17946       conftest$ac_exeext
17947   if test "${ac_cv_search_gethostbyname+set}" = set; then
17948   break
17949 fi
17950 done
17951 if test "${ac_cv_search_gethostbyname+set}" = set; then
17952   :
17953 else
17954   ac_cv_search_gethostbyname=no
17955 fi
17956 rm conftest.$ac_ext
17957 LIBS=$ac_func_search_save_LIBS
17958 fi
17959 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
17960 $as_echo "$ac_cv_search_gethostbyname" >&6; }
17961 ac_res=$ac_cv_search_gethostbyname
17962 if test "$ac_res" != no; then
17963   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17964   if test "$ac_cv_search_gethostbyname" != "none required"; then
17965        HOSTENT_LIB="$ac_cv_search_gethostbyname"
17966      fi
17967 fi
17968
17969   LIBS="$gl_saved_libs"
17970   if test -z "$HOSTENT_LIB"; then
17971
17972 for ac_func in gethostbyname
17973 do
17974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17975 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17976 $as_echo_n "checking for $ac_func... " >&6; }
17977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17978   $as_echo_n "(cached) " >&6
17979 else
17980   cat >conftest.$ac_ext <<_ACEOF
17981 /* confdefs.h.  */
17982 _ACEOF
17983 cat confdefs.h >>conftest.$ac_ext
17984 cat >>conftest.$ac_ext <<_ACEOF
17985 /* end confdefs.h.  */
17986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17988 #define $ac_func innocuous_$ac_func
17989
17990 /* System header to define __stub macros and hopefully few prototypes,
17991     which can conflict with char $ac_func (); below.
17992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17993     <limits.h> exists even on freestanding compilers.  */
17994
17995 #ifdef __STDC__
17996 # include <limits.h>
17997 #else
17998 # include <assert.h>
17999 #endif
18000
18001 #undef $ac_func
18002
18003 /* Override any GCC internal prototype to avoid an error.
18004    Use char because int might match the return type of a GCC
18005    builtin and then its argument prototype would still apply.  */
18006 #ifdef __cplusplus
18007 extern "C"
18008 #endif
18009 char $ac_func ();
18010 /* The GNU C library defines this for functions which it implements
18011     to always fail with ENOSYS.  Some functions are actually named
18012     something starting with __ and the normal name is an alias.  */
18013 #if defined __stub_$ac_func || defined __stub___$ac_func
18014 choke me
18015 #endif
18016
18017 int
18018 main ()
18019 {
18020 return $ac_func ();
18021   ;
18022   return 0;
18023 }
18024 _ACEOF
18025 rm -f conftest.$ac_objext conftest$ac_exeext
18026 if { (ac_try="$ac_link"
18027 case "(($ac_try" in
18028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029   *) ac_try_echo=$ac_try;;
18030 esac
18031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18032 $as_echo "$ac_try_echo") >&5
18033   (eval "$ac_link") 2>conftest.er1
18034   ac_status=$?
18035   grep -v '^ *+' conftest.er1 >conftest.err
18036   rm -f conftest.er1
18037   cat conftest.err >&5
18038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039   (exit $ac_status); } && {
18040          test -z "$ac_c_werror_flag" ||
18041          test ! -s conftest.err
18042        } && test -s conftest$ac_exeext && {
18043          test "$cross_compiling" = yes ||
18044          $as_test_x conftest$ac_exeext
18045        }; then
18046   eval "$as_ac_var=yes"
18047 else
18048   $as_echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18050
18051         eval "$as_ac_var=no"
18052 fi
18053
18054 rm -rf conftest.dSYM
18055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18056       conftest$ac_exeext conftest.$ac_ext
18057 fi
18058 ac_res=`eval 'as_val=${'$as_ac_var'}
18059                  $as_echo "$as_val"'`
18060                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18061 $as_echo "$ac_res" >&6; }
18062 as_val=`eval 'as_val=${'$as_ac_var'}
18063                  $as_echo "$as_val"'`
18064    if test "x$as_val" = x""yes; then
18065   cat >>confdefs.h <<_ACEOF
18066 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18067 _ACEOF
18068
18069 else
18070
18071       { $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
18072 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
18073 if test "${gl_cv_w32_gethostbyname+set}" = set; then
18074   $as_echo_n "(cached) " >&6
18075 else
18076   gl_cv_w32_gethostbyname=no
18077          gl_save_LIBS="$LIBS"
18078          LIBS="$LIBS -lws2_32"
18079          cat >conftest.$ac_ext <<_ACEOF
18080 /* confdefs.h.  */
18081 _ACEOF
18082 cat confdefs.h >>conftest.$ac_ext
18083 cat >>conftest.$ac_ext <<_ACEOF
18084 /* end confdefs.h.  */
18085
18086 #ifdef HAVE_WINSOCK2_H
18087 #include <winsock2.h>
18088 #endif
18089 #include <stddef.h>
18090
18091 int
18092 main ()
18093 {
18094 gethostbyname(NULL);
18095   ;
18096   return 0;
18097 }
18098 _ACEOF
18099 rm -f conftest.$ac_objext conftest$ac_exeext
18100 if { (ac_try="$ac_link"
18101 case "(($ac_try" in
18102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103   *) ac_try_echo=$ac_try;;
18104 esac
18105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18106 $as_echo "$ac_try_echo") >&5
18107   (eval "$ac_link") 2>conftest.er1
18108   ac_status=$?
18109   grep -v '^ *+' conftest.er1 >conftest.err
18110   rm -f conftest.er1
18111   cat conftest.err >&5
18112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113   (exit $ac_status); } && {
18114          test -z "$ac_c_werror_flag" ||
18115          test ! -s conftest.err
18116        } && test -s conftest$ac_exeext && {
18117          test "$cross_compiling" = yes ||
18118          $as_test_x conftest$ac_exeext
18119        }; then
18120   gl_cv_w32_gethostbyname=yes
18121 else
18122   $as_echo "$as_me: failed program was:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18124
18125
18126 fi
18127
18128 rm -rf conftest.dSYM
18129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18130       conftest$ac_exeext conftest.$ac_ext
18131          LIBS="$gl_save_LIBS"
18132
18133 fi
18134 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
18135 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
18136       if test "$gl_cv_w32_gethostbyname" = "yes"; then
18137         HOSTENT_LIB="-lws2_32"
18138       fi
18139
18140 fi
18141 done
18142
18143   fi
18144
18145
18146
18147
18148
18149
18150
18151   ARPA_INET_H='arpa/inet.h'
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163 for ac_func in inet_ntop
18164 do
18165 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18166 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18167 $as_echo_n "checking for $ac_func... " >&6; }
18168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18169   $as_echo_n "(cached) " >&6
18170 else
18171   cat >conftest.$ac_ext <<_ACEOF
18172 /* confdefs.h.  */
18173 _ACEOF
18174 cat confdefs.h >>conftest.$ac_ext
18175 cat >>conftest.$ac_ext <<_ACEOF
18176 /* end confdefs.h.  */
18177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18179 #define $ac_func innocuous_$ac_func
18180
18181 /* System header to define __stub macros and hopefully few prototypes,
18182     which can conflict with char $ac_func (); below.
18183     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18184     <limits.h> exists even on freestanding compilers.  */
18185
18186 #ifdef __STDC__
18187 # include <limits.h>
18188 #else
18189 # include <assert.h>
18190 #endif
18191
18192 #undef $ac_func
18193
18194 /* Override any GCC internal prototype to avoid an error.
18195    Use char because int might match the return type of a GCC
18196    builtin and then its argument prototype would still apply.  */
18197 #ifdef __cplusplus
18198 extern "C"
18199 #endif
18200 char $ac_func ();
18201 /* The GNU C library defines this for functions which it implements
18202     to always fail with ENOSYS.  Some functions are actually named
18203     something starting with __ and the normal name is an alias.  */
18204 #if defined __stub_$ac_func || defined __stub___$ac_func
18205 choke me
18206 #endif
18207
18208 int
18209 main ()
18210 {
18211 return $ac_func ();
18212   ;
18213   return 0;
18214 }
18215 _ACEOF
18216 rm -f conftest.$ac_objext conftest$ac_exeext
18217 if { (ac_try="$ac_link"
18218 case "(($ac_try" in
18219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220   *) ac_try_echo=$ac_try;;
18221 esac
18222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18223 $as_echo "$ac_try_echo") >&5
18224   (eval "$ac_link") 2>conftest.er1
18225   ac_status=$?
18226   grep -v '^ *+' conftest.er1 >conftest.err
18227   rm -f conftest.er1
18228   cat conftest.err >&5
18229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230   (exit $ac_status); } && {
18231          test -z "$ac_c_werror_flag" ||
18232          test ! -s conftest.err
18233        } && test -s conftest$ac_exeext && {
18234          test "$cross_compiling" = yes ||
18235          $as_test_x conftest$ac_exeext
18236        }; then
18237   eval "$as_ac_var=yes"
18238 else
18239   $as_echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18241
18242         eval "$as_ac_var=no"
18243 fi
18244
18245 rm -rf conftest.dSYM
18246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18247       conftest$ac_exeext conftest.$ac_ext
18248 fi
18249 ac_res=`eval 'as_val=${'$as_ac_var'}
18250                  $as_echo "$as_val"'`
18251                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18252 $as_echo "$ac_res" >&6; }
18253 as_val=`eval 'as_val=${'$as_ac_var'}
18254                  $as_echo "$as_val"'`
18255    if test "x$as_val" = x""yes; then
18256   cat >>confdefs.h <<_ACEOF
18257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18258 _ACEOF
18259
18260 else
18261
18262     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
18263
18264 fi
18265 done
18266
18267
18268
18269   { $as_echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
18270 $as_echo_n "checking whether inet_ntop is declared... " >&6; }
18271 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
18272   $as_echo_n "(cached) " >&6
18273 else
18274   cat >conftest.$ac_ext <<_ACEOF
18275 /* confdefs.h.  */
18276 _ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h.  */
18280 #include <arpa/inet.h>
18281
18282 int
18283 main ()
18284 {
18285 #ifndef inet_ntop
18286   (void) inet_ntop;
18287 #endif
18288
18289   ;
18290   return 0;
18291 }
18292 _ACEOF
18293 rm -f conftest.$ac_objext
18294 if { (ac_try="$ac_compile"
18295 case "(($ac_try" in
18296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297   *) ac_try_echo=$ac_try;;
18298 esac
18299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18300 $as_echo "$ac_try_echo") >&5
18301   (eval "$ac_compile") 2>conftest.er1
18302   ac_status=$?
18303   grep -v '^ *+' conftest.er1 >conftest.err
18304   rm -f conftest.er1
18305   cat conftest.err >&5
18306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307   (exit $ac_status); } && {
18308          test -z "$ac_c_werror_flag" ||
18309          test ! -s conftest.err
18310        } && test -s conftest.$ac_objext; then
18311   ac_cv_have_decl_inet_ntop=yes
18312 else
18313   $as_echo "$as_me: failed program was:" >&5
18314 sed 's/^/| /' conftest.$ac_ext >&5
18315
18316         ac_cv_have_decl_inet_ntop=no
18317 fi
18318
18319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18320 fi
18321 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
18322 $as_echo "$ac_cv_have_decl_inet_ntop" >&6; }
18323 if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then
18324
18325 cat >>confdefs.h <<_ACEOF
18326 #define HAVE_DECL_INET_NTOP 1
18327 _ACEOF
18328
18329
18330 else
18331   cat >>confdefs.h <<_ACEOF
18332 #define HAVE_DECL_INET_NTOP 0
18333 _ACEOF
18334
18335
18336 fi
18337
18338
18339   if test $ac_cv_have_decl_inet_ntop = no; then
18340     HAVE_DECL_INET_NTOP=0
18341   fi
18342
18343
18344
18345
18346
18347
18348   GNULIB_INET_NTOP=1
18349
18350
18351
18352
18353   :
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
18364
18365
18366
18367   if test "$gl_threads_api" = posix; then
18368     # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
18369     # pthread_rwlock_* functions.
18370     { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
18371 $as_echo_n "checking for pthread_rwlock_t... " >&6; }
18372 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
18373   $as_echo_n "(cached) " >&6
18374 else
18375   ac_cv_type_pthread_rwlock_t=no
18376 cat >conftest.$ac_ext <<_ACEOF
18377 /* confdefs.h.  */
18378 _ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h.  */
18382 #include <pthread.h>
18383
18384 int
18385 main ()
18386 {
18387 if (sizeof (pthread_rwlock_t))
18388        return 0;
18389   ;
18390   return 0;
18391 }
18392 _ACEOF
18393 rm -f conftest.$ac_objext
18394 if { (ac_try="$ac_compile"
18395 case "(($ac_try" in
18396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18397   *) ac_try_echo=$ac_try;;
18398 esac
18399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18400 $as_echo "$ac_try_echo") >&5
18401   (eval "$ac_compile") 2>conftest.er1
18402   ac_status=$?
18403   grep -v '^ *+' conftest.er1 >conftest.err
18404   rm -f conftest.er1
18405   cat conftest.err >&5
18406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407   (exit $ac_status); } && {
18408          test -z "$ac_c_werror_flag" ||
18409          test ! -s conftest.err
18410        } && test -s conftest.$ac_objext; then
18411   cat >conftest.$ac_ext <<_ACEOF
18412 /* confdefs.h.  */
18413 _ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h.  */
18417 #include <pthread.h>
18418
18419 int
18420 main ()
18421 {
18422 if (sizeof ((pthread_rwlock_t)))
18423           return 0;
18424   ;
18425   return 0;
18426 }
18427 _ACEOF
18428 rm -f conftest.$ac_objext
18429 if { (ac_try="$ac_compile"
18430 case "(($ac_try" in
18431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18432   *) ac_try_echo=$ac_try;;
18433 esac
18434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18435 $as_echo "$ac_try_echo") >&5
18436   (eval "$ac_compile") 2>conftest.er1
18437   ac_status=$?
18438   grep -v '^ *+' conftest.er1 >conftest.err
18439   rm -f conftest.er1
18440   cat conftest.err >&5
18441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442   (exit $ac_status); } && {
18443          test -z "$ac_c_werror_flag" ||
18444          test ! -s conftest.err
18445        } && test -s conftest.$ac_objext; then
18446   :
18447 else
18448   $as_echo "$as_me: failed program was:" >&5
18449 sed 's/^/| /' conftest.$ac_ext >&5
18450
18451         ac_cv_type_pthread_rwlock_t=yes
18452 fi
18453
18454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18455 else
18456   $as_echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18458
18459
18460 fi
18461
18462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18463 fi
18464 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
18465 $as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
18466 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
18467
18468 cat >>confdefs.h <<\_ACEOF
18469 #define HAVE_PTHREAD_RWLOCK 1
18470 _ACEOF
18471
18472 fi
18473
18474     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
18475     cat >conftest.$ac_ext <<_ACEOF
18476 /* confdefs.h.  */
18477 _ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h.  */
18481 #include <pthread.h>
18482 int
18483 main ()
18484 {
18485 #if __FreeBSD__ == 4
18486 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
18487 #else
18488 int x = (int)PTHREAD_MUTEX_RECURSIVE;
18489 return !x;
18490 #endif
18491   ;
18492   return 0;
18493 }
18494 _ACEOF
18495 rm -f conftest.$ac_objext
18496 if { (ac_try="$ac_compile"
18497 case "(($ac_try" in
18498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499   *) ac_try_echo=$ac_try;;
18500 esac
18501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18502 $as_echo "$ac_try_echo") >&5
18503   (eval "$ac_compile") 2>conftest.er1
18504   ac_status=$?
18505   grep -v '^ *+' conftest.er1 >conftest.err
18506   rm -f conftest.er1
18507   cat conftest.err >&5
18508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509   (exit $ac_status); } && {
18510          test -z "$ac_c_werror_flag" ||
18511          test ! -s conftest.err
18512        } && test -s conftest.$ac_objext; then
18513
18514 cat >>confdefs.h <<\_ACEOF
18515 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
18516 _ACEOF
18517
18518 else
18519   $as_echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18521
18522
18523 fi
18524
18525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18526   fi
18527
18528
18529
18530
18531
18532
18533
18534   { $as_echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
18535 $as_echo_n "checking whether lseek detects pipes... " >&6; }
18536 if test "${gl_cv_func_lseek_pipe+set}" = set; then
18537   $as_echo_n "(cached) " >&6
18538 else
18539   if test $cross_compiling = no; then
18540        cat >conftest.$ac_ext <<_ACEOF
18541
18542 #include <sys/types.h> /* for off_t */
18543 #include <stdio.h> /* for SEEK_CUR */
18544 #include <unistd.h>
18545 int main ()
18546 {
18547   /* Exit with success only if stdin is seekable.  */
18548   return lseek (0, (off_t)0, SEEK_CUR) < 0;
18549 }
18550 _ACEOF
18551 rm -f conftest.$ac_objext conftest$ac_exeext
18552 if { (ac_try="$ac_link"
18553 case "(($ac_try" in
18554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555   *) ac_try_echo=$ac_try;;
18556 esac
18557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18558 $as_echo "$ac_try_echo") >&5
18559   (eval "$ac_link") 2>conftest.er1
18560   ac_status=$?
18561   grep -v '^ *+' conftest.er1 >conftest.err
18562   rm -f conftest.er1
18563   cat conftest.err >&5
18564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565   (exit $ac_status); } && {
18566          test -z "$ac_c_werror_flag" ||
18567          test ! -s conftest.err
18568        } && test -s conftest$ac_exeext && {
18569          test "$cross_compiling" = yes ||
18570          $as_test_x conftest$ac_exeext
18571        }; then
18572   if test -s conftest$ac_exeext \
18573              && ./conftest$ac_exeext < conftest.$ac_ext \
18574              && { echo hi | ./conftest$ac_exeext; test $? = 1; }; then
18575             gl_cv_func_lseek_pipe=yes
18576           else
18577             gl_cv_func_lseek_pipe=no
18578           fi
18579 else
18580   $as_echo "$as_me: failed program was:" >&5
18581 sed 's/^/| /' conftest.$ac_ext >&5
18582
18583         gl_cv_func_lseek_pipe=no
18584 fi
18585
18586 rm -rf conftest.dSYM
18587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18588       conftest$ac_exeext conftest.$ac_ext
18589      else
18590        cat >conftest.$ac_ext <<_ACEOF
18591
18592 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
18593 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes.  */
18594   Choke me.
18595 #endif
18596 _ACEOF
18597 rm -f conftest.$ac_objext
18598 if { (ac_try="$ac_compile"
18599 case "(($ac_try" in
18600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601   *) ac_try_echo=$ac_try;;
18602 esac
18603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18604 $as_echo "$ac_try_echo") >&5
18605   (eval "$ac_compile") 2>conftest.er1
18606   ac_status=$?
18607   grep -v '^ *+' conftest.er1 >conftest.err
18608   rm -f conftest.er1
18609   cat conftest.err >&5
18610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611   (exit $ac_status); } && {
18612          test -z "$ac_c_werror_flag" ||
18613          test ! -s conftest.err
18614        } && test -s conftest.$ac_objext; then
18615   gl_cv_func_lseek_pipe=yes
18616 else
18617   $as_echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18619
18620         gl_cv_func_lseek_pipe=no
18621 fi
18622
18623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18624      fi
18625 fi
18626 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
18627 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
18628   if test $gl_cv_func_lseek_pipe = no; then
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
18639
18640
18641   REPLACE_LSEEK=1
18642
18643 cat >>confdefs.h <<\_ACEOF
18644 #define LSEEK_PIPE_BROKEN 1
18645 _ACEOF
18646
18647
18648   fi
18649
18650
18651
18652   GNULIB_LSEEK=1
18653
18654
18655
18656
18657   :
18658
18659
18660
18661
18662
18663   if test $ac_cv_func_lstat = yes; then
18664     { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
18665 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
18666 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
18667   $as_echo_n "(cached) " >&6
18668 else
18669   rm -f conftest.sym conftest.file
18670 echo >conftest.file
18671 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18672   if test "$cross_compiling" = yes; then
18673   ac_cv_func_lstat_dereferences_slashed_symlink=no
18674 else
18675   cat >conftest.$ac_ext <<_ACEOF
18676 /* confdefs.h.  */
18677 _ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h.  */
18681 $ac_includes_default
18682 int
18683 main ()
18684 {
18685 struct stat sbuf;
18686      /* Linux will dereference the symlink and fail.
18687         That is better in the sense that it means we will not
18688         have to compile and use the lstat wrapper.  */
18689      return lstat ("conftest.sym/", &sbuf) == 0;
18690   ;
18691   return 0;
18692 }
18693 _ACEOF
18694 rm -f conftest$ac_exeext
18695 if { (ac_try="$ac_link"
18696 case "(($ac_try" in
18697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698   *) ac_try_echo=$ac_try;;
18699 esac
18700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18701 $as_echo "$ac_try_echo") >&5
18702   (eval "$ac_link") 2>&5
18703   ac_status=$?
18704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18706   { (case "(($ac_try" in
18707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708   *) ac_try_echo=$ac_try;;
18709 esac
18710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18711 $as_echo "$ac_try_echo") >&5
18712   (eval "$ac_try") 2>&5
18713   ac_status=$?
18714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715   (exit $ac_status); }; }; then
18716   ac_cv_func_lstat_dereferences_slashed_symlink=yes
18717 else
18718   $as_echo "$as_me: program exited with status $ac_status" >&5
18719 $as_echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18721
18722 ( exit $ac_status )
18723 ac_cv_func_lstat_dereferences_slashed_symlink=no
18724 fi
18725 rm -rf conftest.dSYM
18726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18727 fi
18728
18729
18730 else
18731   # If the `ln -s' command failed, then we probably don't even
18732   # have an lstat function.
18733   ac_cv_func_lstat_dereferences_slashed_symlink=no
18734 fi
18735 rm -f conftest.sym conftest.file
18736
18737 fi
18738 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
18739 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18740
18741 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
18742
18743 cat >>confdefs.h <<_ACEOF
18744 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18745 _ACEOF
18746
18747
18748 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
18749
18750
18751
18752
18753
18754
18755
18756
18757   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
18758
18759 fi
18760
18761         if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
18762       REPLACE_LSTAT=1
18763     fi
18764     # Prerequisites of lib/lstat.c.
18765
18766   fi
18767
18768
18769
18770   GNULIB_LSTAT=1
18771
18772
18773 for ac_header in stdlib.h
18774 do
18775 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18777   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18778 $as_echo_n "checking for $ac_header... " >&6; }
18779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18780   $as_echo_n "(cached) " >&6
18781 fi
18782 ac_res=`eval 'as_val=${'$as_ac_Header'}
18783                  $as_echo "$as_val"'`
18784                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18785 $as_echo "$ac_res" >&6; }
18786 else
18787   # Is the header compilable?
18788 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18789 $as_echo_n "checking $ac_header usability... " >&6; }
18790 cat >conftest.$ac_ext <<_ACEOF
18791 /* confdefs.h.  */
18792 _ACEOF
18793 cat confdefs.h >>conftest.$ac_ext
18794 cat >>conftest.$ac_ext <<_ACEOF
18795 /* end confdefs.h.  */
18796 $ac_includes_default
18797 #include <$ac_header>
18798 _ACEOF
18799 rm -f conftest.$ac_objext
18800 if { (ac_try="$ac_compile"
18801 case "(($ac_try" in
18802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803   *) ac_try_echo=$ac_try;;
18804 esac
18805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18806 $as_echo "$ac_try_echo") >&5
18807   (eval "$ac_compile") 2>conftest.er1
18808   ac_status=$?
18809   grep -v '^ *+' conftest.er1 >conftest.err
18810   rm -f conftest.er1
18811   cat conftest.err >&5
18812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813   (exit $ac_status); } && {
18814          test -z "$ac_c_werror_flag" ||
18815          test ! -s conftest.err
18816        } && test -s conftest.$ac_objext; then
18817   ac_header_compiler=yes
18818 else
18819   $as_echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18821
18822         ac_header_compiler=no
18823 fi
18824
18825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18826 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18827 $as_echo "$ac_header_compiler" >&6; }
18828
18829 # Is the header present?
18830 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18831 $as_echo_n "checking $ac_header presence... " >&6; }
18832 cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h.  */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h.  */
18838 #include <$ac_header>
18839 _ACEOF
18840 if { (ac_try="$ac_cpp conftest.$ac_ext"
18841 case "(($ac_try" in
18842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843   *) ac_try_echo=$ac_try;;
18844 esac
18845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18846 $as_echo "$ac_try_echo") >&5
18847   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18848   ac_status=$?
18849   grep -v '^ *+' conftest.er1 >conftest.err
18850   rm -f conftest.er1
18851   cat conftest.err >&5
18852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853   (exit $ac_status); } >/dev/null && {
18854          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18855          test ! -s conftest.err
18856        }; then
18857   ac_header_preproc=yes
18858 else
18859   $as_echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18861
18862   ac_header_preproc=no
18863 fi
18864
18865 rm -f conftest.err conftest.$ac_ext
18866 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18867 $as_echo "$ac_header_preproc" >&6; }
18868
18869 # So?  What about this header?
18870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18871   yes:no: )
18872     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18873 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18874     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18875 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18876     ac_header_preproc=yes
18877     ;;
18878   no:yes:* )
18879     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18880 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18881     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18882 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18883     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18884 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18885     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18886 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18887     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18888 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18889     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18890 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18891
18892     ;;
18893 esac
18894 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18895 $as_echo_n "checking for $ac_header... " >&6; }
18896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18897   $as_echo_n "(cached) " >&6
18898 else
18899   eval "$as_ac_Header=\$ac_header_preproc"
18900 fi
18901 ac_res=`eval 'as_val=${'$as_ac_Header'}
18902                  $as_echo "$as_val"'`
18903                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18904 $as_echo "$ac_res" >&6; }
18905
18906 fi
18907 as_val=`eval 'as_val=${'$as_ac_Header'}
18908                  $as_echo "$as_val"'`
18909    if test "x$as_val" = x""yes; then
18910   cat >>confdefs.h <<_ACEOF
18911 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18912 _ACEOF
18913
18914 fi
18915
18916 done
18917
18918 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
18919 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
18920 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
18921   $as_echo_n "(cached) " >&6
18922 else
18923   if test "$cross_compiling" = yes; then
18924   ac_cv_func_malloc_0_nonnull=no
18925 else
18926   cat >conftest.$ac_ext <<_ACEOF
18927 /* confdefs.h.  */
18928 _ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h.  */
18932 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
18933 # include <stdlib.h>
18934 #else
18935 char *malloc ();
18936 #endif
18937
18938 int
18939 main ()
18940 {
18941 return ! malloc (0);
18942   ;
18943   return 0;
18944 }
18945 _ACEOF
18946 rm -f conftest$ac_exeext
18947 if { (ac_try="$ac_link"
18948 case "(($ac_try" in
18949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950   *) ac_try_echo=$ac_try;;
18951 esac
18952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18953 $as_echo "$ac_try_echo") >&5
18954   (eval "$ac_link") 2>&5
18955   ac_status=$?
18956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18958   { (case "(($ac_try" in
18959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960   *) ac_try_echo=$ac_try;;
18961 esac
18962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18963 $as_echo "$ac_try_echo") >&5
18964   (eval "$ac_try") 2>&5
18965   ac_status=$?
18966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967   (exit $ac_status); }; }; then
18968   ac_cv_func_malloc_0_nonnull=yes
18969 else
18970   $as_echo "$as_me: program exited with status $ac_status" >&5
18971 $as_echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18973
18974 ( exit $ac_status )
18975 ac_cv_func_malloc_0_nonnull=no
18976 fi
18977 rm -rf conftest.dSYM
18978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18979 fi
18980
18981
18982 fi
18983 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
18984 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
18985 if test $ac_cv_func_malloc_0_nonnull = yes; then
18986
18987 cat >>confdefs.h <<\_ACEOF
18988 #define HAVE_MALLOC 1
18989 _ACEOF
18990
18991 else
18992   cat >>confdefs.h <<\_ACEOF
18993 #define HAVE_MALLOC 0
18994 _ACEOF
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
19005
19006
19007 cat >>confdefs.h <<\_ACEOF
19008 #define malloc rpl_malloc
19009 _ACEOF
19010
19011 fi
19012
19013
19014
19015
19016 cat >>confdefs.h <<\_ACEOF
19017 #define GNULIB_MALLOC_GNU 1
19018 _ACEOF
19019
19020
19021
19022   if test $gl_cv_func_malloc_posix = yes; then
19023     HAVE_MALLOC_POSIX=1
19024
19025 cat >>confdefs.h <<\_ACEOF
19026 #define HAVE_MALLOC_POSIX 1
19027 _ACEOF
19028
19029   else
19030
19031
19032
19033
19034
19035
19036
19037
19038   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
19039
19040     HAVE_MALLOC_POSIX=0
19041   fi
19042
19043
19044
19045
19046   GNULIB_MALLOC_POSIX=1
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057   :
19058
19059
19060
19061
19062
19063
19064   :
19065
19066
19067
19068
19069
19070   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19071
19072
19073
19074      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
19075 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19076 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
19077   $as_echo_n "(cached) " >&6
19078 else
19079
19080                   case "$host_os" in
19081               # Guess no on AIX and OSF/1.
19082         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
19083               # Guess yes otherwise.
19084         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
19085       esac
19086       if test $LOCALE_JA != none; then
19087         if test "$cross_compiling" = yes; then
19088   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19090 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19091 See \`config.log' for more details." >&5
19092 $as_echo "$as_me: error: cannot run test program while cross compiling
19093 See \`config.log' for more details." >&2;}
19094    { (exit 1); exit 1; }; }; }
19095 else
19096   cat >conftest.$ac_ext <<_ACEOF
19097 /* confdefs.h.  */
19098 _ACEOF
19099 cat confdefs.h >>conftest.$ac_ext
19100 cat >>conftest.$ac_ext <<_ACEOF
19101 /* end confdefs.h.  */
19102
19103 #include <locale.h>
19104 #include <string.h>
19105 #include <wchar.h>
19106 int main ()
19107 {
19108   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19109     {
19110       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19111       mbstate_t state;
19112       wchar_t wc;
19113
19114       memset (&state, '\0', sizeof (mbstate_t));
19115       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19116         if (mbsinit (&state))
19117           return 1;
19118     }
19119   return 0;
19120 }
19121 _ACEOF
19122 rm -f conftest$ac_exeext
19123 if { (ac_try="$ac_link"
19124 case "(($ac_try" in
19125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126   *) ac_try_echo=$ac_try;;
19127 esac
19128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19129 $as_echo "$ac_try_echo") >&5
19130   (eval "$ac_link") 2>&5
19131   ac_status=$?
19132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19134   { (case "(($ac_try" in
19135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136   *) ac_try_echo=$ac_try;;
19137 esac
19138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19139 $as_echo "$ac_try_echo") >&5
19140   (eval "$ac_try") 2>&5
19141   ac_status=$?
19142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143   (exit $ac_status); }; }; then
19144   gl_cv_func_mbrtowc_incomplete_state=yes
19145 else
19146   $as_echo "$as_me: program exited with status $ac_status" >&5
19147 $as_echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19149
19150 ( exit $ac_status )
19151 gl_cv_func_mbrtowc_incomplete_state=no
19152 fi
19153 rm -rf conftest.dSYM
19154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19155 fi
19156
19157
19158       fi
19159
19160 fi
19161 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19162 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19163
19164
19165
19166
19167      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
19168 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19169 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
19170   $as_echo_n "(cached) " >&6
19171 else
19172
19173                   case "$host_os" in
19174                     # Guess no on Solaris 8.
19175         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
19176                     # Guess yes otherwise.
19177         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
19178       esac
19179       if test $LOCALE_ZH_CN != none; then
19180         if test "$cross_compiling" = yes; then
19181   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19183 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19184 See \`config.log' for more details." >&5
19185 $as_echo "$as_me: error: cannot run test program while cross compiling
19186 See \`config.log' for more details." >&2;}
19187    { (exit 1); exit 1; }; }; }
19188 else
19189   cat >conftest.$ac_ext <<_ACEOF
19190 /* confdefs.h.  */
19191 _ACEOF
19192 cat confdefs.h >>conftest.$ac_ext
19193 cat >>conftest.$ac_ext <<_ACEOF
19194 /* end confdefs.h.  */
19195
19196 #include <locale.h>
19197 #include <string.h>
19198 #include <wchar.h>
19199 int main ()
19200 {
19201   /* This fails on Solaris 8:
19202      mbrtowc returns 2, and sets wc to 0x00F0.
19203      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
19204   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19205     {
19206       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19207       mbstate_t state;
19208       wchar_t wc;
19209
19210       memset (&state, '\0', sizeof (mbstate_t));
19211       if (mbrtowc (&wc, input + 3, 6, &state) != 4
19212           && mbtowc (&wc, input + 3, 6) == 4)
19213         return 1;
19214     }
19215   return 0;
19216 }
19217 _ACEOF
19218 rm -f conftest$ac_exeext
19219 if { (ac_try="$ac_link"
19220 case "(($ac_try" in
19221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222   *) ac_try_echo=$ac_try;;
19223 esac
19224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19225 $as_echo "$ac_try_echo") >&5
19226   (eval "$ac_link") 2>&5
19227   ac_status=$?
19228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19230   { (case "(($ac_try" in
19231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232   *) ac_try_echo=$ac_try;;
19233 esac
19234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19235 $as_echo "$ac_try_echo") >&5
19236   (eval "$ac_try") 2>&5
19237   ac_status=$?
19238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239   (exit $ac_status); }; }; then
19240   gl_cv_func_mbrtowc_sanitycheck=yes
19241 else
19242   $as_echo "$as_me: program exited with status $ac_status" >&5
19243 $as_echo "$as_me: failed program was:" >&5
19244 sed 's/^/| /' conftest.$ac_ext >&5
19245
19246 ( exit $ac_status )
19247 gl_cv_func_mbrtowc_sanitycheck=no
19248 fi
19249 rm -rf conftest.dSYM
19250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19251 fi
19252
19253
19254       fi
19255
19256 fi
19257 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19258 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19259
19260     REPLACE_MBSTATE_T=0
19261     case "$gl_cv_func_mbrtowc_incomplete_state" in
19262       *yes) ;;
19263       *) REPLACE_MBSTATE_T=1 ;;
19264     esac
19265     case "$gl_cv_func_mbrtowc_sanitycheck" in
19266       *yes) ;;
19267       *) REPLACE_MBSTATE_T=1 ;;
19268     esac
19269   else
19270     REPLACE_MBSTATE_T=1
19271   fi
19272   if test $REPLACE_MBSTATE_T = 1; then
19273
19274
19275   WCHAR_H=wchar.h
19276
19277   fi
19278
19279   if test $REPLACE_MBSTATE_T = 1; then
19280     REPLACE_MBRTOWC=1
19281   fi
19282
19283   :
19284
19285
19286
19287
19288
19289   if test $ac_cv_func_mbrtowc = no; then
19290     HAVE_MBRTOWC=0
19291   fi
19292   if test $HAVE_MBRTOWC != 0 && test $REPLACE_MBRTOWC != 1; then
19293
19294
19295
19296      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
19297 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
19298 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then
19299   $as_echo_n "(cached) " >&6
19300 else
19301
19302                   case "$host_os" in
19303               # Guess no on OSF/1.
19304         osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
19305               # Guess yes otherwise.
19306         *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
19307       esac
19308       if test $LOCALE_FR_UTF8 != none; then
19309         if test "$cross_compiling" = yes; then
19310   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19312 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19313 See \`config.log' for more details." >&5
19314 $as_echo "$as_me: error: cannot run test program while cross compiling
19315 See \`config.log' for more details." >&2;}
19316    { (exit 1); exit 1; }; }; }
19317 else
19318   cat >conftest.$ac_ext <<_ACEOF
19319 /* confdefs.h.  */
19320 _ACEOF
19321 cat confdefs.h >>conftest.$ac_ext
19322 cat >>conftest.$ac_ext <<_ACEOF
19323 /* end confdefs.h.  */
19324
19325 #include <locale.h>
19326 #include <string.h>
19327 #include <wchar.h>
19328 int main ()
19329 {
19330   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19331     {
19332       mbstate_t state;
19333       wchar_t wc;
19334       int ret;
19335
19336       memset (&state, '\0', sizeof (mbstate_t));
19337       wc = (wchar_t) 0xBADFACE;
19338       mbrtowc (&wc, NULL, 5, &state);
19339       /* Check that wc was not modified.  */
19340       if (wc != (wchar_t) 0xBADFACE)
19341         return 1;
19342     }
19343   return 0;
19344 }
19345 _ACEOF
19346 rm -f conftest$ac_exeext
19347 if { (ac_try="$ac_link"
19348 case "(($ac_try" in
19349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19350   *) ac_try_echo=$ac_try;;
19351 esac
19352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19353 $as_echo "$ac_try_echo") >&5
19354   (eval "$ac_link") 2>&5
19355   ac_status=$?
19356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19358   { (case "(($ac_try" in
19359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360   *) ac_try_echo=$ac_try;;
19361 esac
19362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19363 $as_echo "$ac_try_echo") >&5
19364   (eval "$ac_try") 2>&5
19365   ac_status=$?
19366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); }; }; then
19368   gl_cv_func_mbrtowc_null_arg=yes
19369 else
19370   $as_echo "$as_me: program exited with status $ac_status" >&5
19371 $as_echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19373
19374 ( exit $ac_status )
19375 gl_cv_func_mbrtowc_null_arg=no
19376 fi
19377 rm -rf conftest.dSYM
19378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19379 fi
19380
19381
19382       fi
19383
19384 fi
19385 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5
19386 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
19387
19388
19389
19390
19391
19392      { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
19393 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
19394 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
19395   $as_echo_n "(cached) " >&6
19396 else
19397
19398                   case "$host_os" in
19399                           # Guess no on HP-UX and Solaris.
19400         hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
19401                           # Guess yes otherwise.
19402         *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
19403       esac
19404       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
19405         if test "$cross_compiling" = yes; then
19406   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19408 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19409 See \`config.log' for more details." >&5
19410 $as_echo "$as_me: error: cannot run test program while cross compiling
19411 See \`config.log' for more details." >&2;}
19412    { (exit 1); exit 1; }; }; }
19413 else
19414   cat >conftest.$ac_ext <<_ACEOF
19415 /* confdefs.h.  */
19416 _ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h.  */
19420
19421 #include <locale.h>
19422 #include <string.h>
19423 #include <wchar.h>
19424 int main ()
19425 {
19426   /* This fails on Solaris.  */
19427   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19428     {
19429       char input[] = "B\303\274\303\237er"; /* "Büßer" */
19430       mbstate_t state;
19431       wchar_t wc;
19432
19433       memset (&state, '\0', sizeof (mbstate_t));
19434       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19435         {
19436           input[1] = '\0';
19437           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
19438             return 1;
19439         }
19440     }
19441   /* This fails on HP-UX 11.11.  */
19442   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19443     {
19444       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19445       mbstate_t state;
19446       wchar_t wc;
19447
19448       memset (&state, '\0', sizeof (mbstate_t));
19449       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19450         {
19451           input[1] = '\0';
19452           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
19453             return 1;
19454         }
19455     }
19456   return 0;
19457 }
19458 _ACEOF
19459 rm -f conftest$ac_exeext
19460 if { (ac_try="$ac_link"
19461 case "(($ac_try" in
19462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463   *) ac_try_echo=$ac_try;;
19464 esac
19465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19466 $as_echo "$ac_try_echo") >&5
19467   (eval "$ac_link") 2>&5
19468   ac_status=$?
19469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19471   { (case "(($ac_try" in
19472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473   *) ac_try_echo=$ac_try;;
19474 esac
19475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19476 $as_echo "$ac_try_echo") >&5
19477   (eval "$ac_try") 2>&5
19478   ac_status=$?
19479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); }; }; then
19481   gl_cv_func_mbrtowc_retval=yes
19482 else
19483   $as_echo "$as_me: program exited with status $ac_status" >&5
19484 $as_echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19486
19487 ( exit $ac_status )
19488 gl_cv_func_mbrtowc_retval=no
19489 fi
19490 rm -rf conftest.dSYM
19491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19492 fi
19493
19494
19495       fi
19496
19497 fi
19498 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
19499 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
19500
19501
19502
19503
19504      { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
19505 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
19506 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
19507   $as_echo_n "(cached) " >&6
19508 else
19509
19510                   case "$host_os" in
19511                        # Guess no on Solaris 8 and 9.
19512         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
19513                        # Guess yes otherwise.
19514         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
19515       esac
19516       if test $LOCALE_ZH_CN != none; then
19517         if test "$cross_compiling" = yes; then
19518   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19520 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19521 See \`config.log' for more details." >&5
19522 $as_echo "$as_me: error: cannot run test program while cross compiling
19523 See \`config.log' for more details." >&2;}
19524    { (exit 1); exit 1; }; }; }
19525 else
19526   cat >conftest.$ac_ext <<_ACEOF
19527 /* confdefs.h.  */
19528 _ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h.  */
19532
19533 #include <locale.h>
19534 #include <string.h>
19535 #include <wchar.h>
19536 int main ()
19537 {
19538   /* This fails on Solaris 8 and 9.  */
19539   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19540     {
19541       mbstate_t state;
19542       wchar_t wc;
19543
19544       memset (&state, '\0', sizeof (mbstate_t));
19545       if (mbrtowc (&wc, "", 1, &state) != 0)
19546         return 1;
19547     }
19548   return 0;
19549 }
19550 _ACEOF
19551 rm -f conftest$ac_exeext
19552 if { (ac_try="$ac_link"
19553 case "(($ac_try" in
19554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555   *) ac_try_echo=$ac_try;;
19556 esac
19557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19558 $as_echo "$ac_try_echo") >&5
19559   (eval "$ac_link") 2>&5
19560   ac_status=$?
19561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19563   { (case "(($ac_try" in
19564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565   *) ac_try_echo=$ac_try;;
19566 esac
19567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19568 $as_echo "$ac_try_echo") >&5
19569   (eval "$ac_try") 2>&5
19570   ac_status=$?
19571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572   (exit $ac_status); }; }; then
19573   gl_cv_func_mbrtowc_nul_retval=yes
19574 else
19575   $as_echo "$as_me: program exited with status $ac_status" >&5
19576 $as_echo "$as_me: failed program was:" >&5
19577 sed 's/^/| /' conftest.$ac_ext >&5
19578
19579 ( exit $ac_status )
19580 gl_cv_func_mbrtowc_nul_retval=no
19581 fi
19582 rm -rf conftest.dSYM
19583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19584 fi
19585
19586
19587       fi
19588
19589 fi
19590 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
19591 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
19592
19593     case "$gl_cv_func_mbrtowc_null_arg" in
19594       *yes) ;;
19595       *)
19596 cat >>confdefs.h <<\_ACEOF
19597 #define MBRTOWC_NULL_ARG_BUG 1
19598 _ACEOF
19599
19600          REPLACE_MBRTOWC=1
19601          ;;
19602     esac
19603     case "$gl_cv_func_mbrtowc_retval" in
19604       *yes) ;;
19605       *)
19606 cat >>confdefs.h <<\_ACEOF
19607 #define MBRTOWC_RETVAL_BUG 1
19608 _ACEOF
19609
19610          REPLACE_MBRTOWC=1
19611          ;;
19612     esac
19613     case "$gl_cv_func_mbrtowc_nul_retval" in
19614       *yes) ;;
19615       *)
19616 cat >>confdefs.h <<\_ACEOF
19617 #define MBRTOWC_NUL_RETVAL_BUG 1
19618 _ACEOF
19619
19620          REPLACE_MBRTOWC=1
19621          ;;
19622     esac
19623   fi
19624   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
19625
19626
19627   WCHAR_H=wchar.h
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
19638
19639
19640   :
19641
19642   fi
19643
19644
19645
19646   GNULIB_MBRTOWC=1
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657   :
19658
19659
19660
19661
19662
19663
19664   :
19665
19666
19667
19668
19669
19670   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19671
19672
19673
19674      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
19675 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19676 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
19677   $as_echo_n "(cached) " >&6
19678 else
19679
19680                   case "$host_os" in
19681               # Guess no on AIX and OSF/1.
19682         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
19683               # Guess yes otherwise.
19684         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
19685       esac
19686       if test $LOCALE_JA != none; then
19687         if test "$cross_compiling" = yes; then
19688   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19690 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19691 See \`config.log' for more details." >&5
19692 $as_echo "$as_me: error: cannot run test program while cross compiling
19693 See \`config.log' for more details." >&2;}
19694    { (exit 1); exit 1; }; }; }
19695 else
19696   cat >conftest.$ac_ext <<_ACEOF
19697 /* confdefs.h.  */
19698 _ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h.  */
19702
19703 #include <locale.h>
19704 #include <string.h>
19705 #include <wchar.h>
19706 int main ()
19707 {
19708   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19709     {
19710       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19711       mbstate_t state;
19712       wchar_t wc;
19713
19714       memset (&state, '\0', sizeof (mbstate_t));
19715       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19716         if (mbsinit (&state))
19717           return 1;
19718     }
19719   return 0;
19720 }
19721 _ACEOF
19722 rm -f conftest$ac_exeext
19723 if { (ac_try="$ac_link"
19724 case "(($ac_try" in
19725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726   *) ac_try_echo=$ac_try;;
19727 esac
19728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19729 $as_echo "$ac_try_echo") >&5
19730   (eval "$ac_link") 2>&5
19731   ac_status=$?
19732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19734   { (case "(($ac_try" in
19735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736   *) ac_try_echo=$ac_try;;
19737 esac
19738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19739 $as_echo "$ac_try_echo") >&5
19740   (eval "$ac_try") 2>&5
19741   ac_status=$?
19742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743   (exit $ac_status); }; }; then
19744   gl_cv_func_mbrtowc_incomplete_state=yes
19745 else
19746   $as_echo "$as_me: program exited with status $ac_status" >&5
19747 $as_echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19749
19750 ( exit $ac_status )
19751 gl_cv_func_mbrtowc_incomplete_state=no
19752 fi
19753 rm -rf conftest.dSYM
19754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19755 fi
19756
19757
19758       fi
19759
19760 fi
19761 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19762 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19763
19764
19765
19766
19767      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
19768 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19769 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
19770   $as_echo_n "(cached) " >&6
19771 else
19772
19773                   case "$host_os" in
19774                     # Guess no on Solaris 8.
19775         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
19776                     # Guess yes otherwise.
19777         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
19778       esac
19779       if test $LOCALE_ZH_CN != none; then
19780         if test "$cross_compiling" = yes; then
19781   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19783 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19784 See \`config.log' for more details." >&5
19785 $as_echo "$as_me: error: cannot run test program while cross compiling
19786 See \`config.log' for more details." >&2;}
19787    { (exit 1); exit 1; }; }; }
19788 else
19789   cat >conftest.$ac_ext <<_ACEOF
19790 /* confdefs.h.  */
19791 _ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h.  */
19795
19796 #include <locale.h>
19797 #include <string.h>
19798 #include <wchar.h>
19799 int main ()
19800 {
19801   /* This fails on Solaris 8:
19802      mbrtowc returns 2, and sets wc to 0x00F0.
19803      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
19804   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19805     {
19806       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19807       mbstate_t state;
19808       wchar_t wc;
19809
19810       memset (&state, '\0', sizeof (mbstate_t));
19811       if (mbrtowc (&wc, input + 3, 6, &state) != 4
19812           && mbtowc (&wc, input + 3, 6) == 4)
19813         return 1;
19814     }
19815   return 0;
19816 }
19817 _ACEOF
19818 rm -f conftest$ac_exeext
19819 if { (ac_try="$ac_link"
19820 case "(($ac_try" in
19821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822   *) ac_try_echo=$ac_try;;
19823 esac
19824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19825 $as_echo "$ac_try_echo") >&5
19826   (eval "$ac_link") 2>&5
19827   ac_status=$?
19828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19830   { (case "(($ac_try" in
19831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832   *) ac_try_echo=$ac_try;;
19833 esac
19834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19835 $as_echo "$ac_try_echo") >&5
19836   (eval "$ac_try") 2>&5
19837   ac_status=$?
19838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839   (exit $ac_status); }; }; then
19840   gl_cv_func_mbrtowc_sanitycheck=yes
19841 else
19842   $as_echo "$as_me: program exited with status $ac_status" >&5
19843 $as_echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19845
19846 ( exit $ac_status )
19847 gl_cv_func_mbrtowc_sanitycheck=no
19848 fi
19849 rm -rf conftest.dSYM
19850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19851 fi
19852
19853
19854       fi
19855
19856 fi
19857 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19858 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19859
19860     REPLACE_MBSTATE_T=0
19861     case "$gl_cv_func_mbrtowc_incomplete_state" in
19862       *yes) ;;
19863       *) REPLACE_MBSTATE_T=1 ;;
19864     esac
19865     case "$gl_cv_func_mbrtowc_sanitycheck" in
19866       *yes) ;;
19867       *) REPLACE_MBSTATE_T=1 ;;
19868     esac
19869   else
19870     REPLACE_MBSTATE_T=1
19871   fi
19872   if test $REPLACE_MBSTATE_T = 1; then
19873
19874
19875   WCHAR_H=wchar.h
19876
19877   fi
19878
19879   if test $REPLACE_MBSTATE_T = 1; then
19880     REPLACE_MBSINIT=1
19881   fi
19882
19883   :
19884
19885
19886
19887
19888
19889   if test $ac_cv_func_mbsinit = no; then
19890     HAVE_MBSINIT=0
19891   fi
19892   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
19893
19894
19895   WCHAR_H=wchar.h
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
19906
19907
19908   :
19909
19910   fi
19911
19912
19913
19914   GNULIB_MBSINIT=1
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927 for ac_func in mkdtemp
19928 do
19929 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19930 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19931 $as_echo_n "checking for $ac_func... " >&6; }
19932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19933   $as_echo_n "(cached) " >&6
19934 else
19935   cat >conftest.$ac_ext <<_ACEOF
19936 /* confdefs.h.  */
19937 _ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h.  */
19941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19943 #define $ac_func innocuous_$ac_func
19944
19945 /* System header to define __stub macros and hopefully few prototypes,
19946     which can conflict with char $ac_func (); below.
19947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19948     <limits.h> exists even on freestanding compilers.  */
19949
19950 #ifdef __STDC__
19951 # include <limits.h>
19952 #else
19953 # include <assert.h>
19954 #endif
19955
19956 #undef $ac_func
19957
19958 /* Override any GCC internal prototype to avoid an error.
19959    Use char because int might match the return type of a GCC
19960    builtin and then its argument prototype would still apply.  */
19961 #ifdef __cplusplus
19962 extern "C"
19963 #endif
19964 char $ac_func ();
19965 /* The GNU C library defines this for functions which it implements
19966     to always fail with ENOSYS.  Some functions are actually named
19967     something starting with __ and the normal name is an alias.  */
19968 #if defined __stub_$ac_func || defined __stub___$ac_func
19969 choke me
19970 #endif
19971
19972 int
19973 main ()
19974 {
19975 return $ac_func ();
19976   ;
19977   return 0;
19978 }
19979 _ACEOF
19980 rm -f conftest.$ac_objext conftest$ac_exeext
19981 if { (ac_try="$ac_link"
19982 case "(($ac_try" in
19983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984   *) ac_try_echo=$ac_try;;
19985 esac
19986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19987 $as_echo "$ac_try_echo") >&5
19988   (eval "$ac_link") 2>conftest.er1
19989   ac_status=$?
19990   grep -v '^ *+' conftest.er1 >conftest.err
19991   rm -f conftest.er1
19992   cat conftest.err >&5
19993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); } && {
19995          test -z "$ac_c_werror_flag" ||
19996          test ! -s conftest.err
19997        } && test -s conftest$ac_exeext && {
19998          test "$cross_compiling" = yes ||
19999          $as_test_x conftest$ac_exeext
20000        }; then
20001   eval "$as_ac_var=yes"
20002 else
20003   $as_echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20005
20006         eval "$as_ac_var=no"
20007 fi
20008
20009 rm -rf conftest.dSYM
20010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20011       conftest$ac_exeext conftest.$ac_ext
20012 fi
20013 ac_res=`eval 'as_val=${'$as_ac_var'}
20014                  $as_echo "$as_val"'`
20015                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20016 $as_echo "$ac_res" >&6; }
20017 as_val=`eval 'as_val=${'$as_ac_var'}
20018                  $as_echo "$as_val"'`
20019    if test "x$as_val" = x""yes; then
20020   cat >>confdefs.h <<_ACEOF
20021 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20022 _ACEOF
20023
20024 else
20025
20026     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
20027
20028 fi
20029 done
20030
20031
20032   if test $ac_cv_func_mkdtemp = no; then
20033     HAVE_MKDTEMP=0
20034     :
20035
20036   fi
20037
20038
20039
20040   GNULIB_MKDTEMP=1
20041
20042
20043
20044
20045
20046
20047
20048
20049   :
20050
20051
20052
20053
20054
20055
20056
20057      if test $gl_cv_have_include_next = yes; then
20058        gl_cv_next_netdb_h='<'netdb.h'>'
20059      else
20060        { $as_echo "$as_me:$LINENO: checking absolute name of <netdb.h>" >&5
20061 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
20062 if test "${gl_cv_next_netdb_h+set}" = set; then
20063   $as_echo_n "(cached) " >&6
20064 else
20065
20066           if test $ac_cv_header_netdb_h = yes; then
20067             cat >conftest.$ac_ext <<_ACEOF
20068 /* confdefs.h.  */
20069 _ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h.  */
20073 #include <netdb.h>
20074
20075 _ACEOF
20076                                                                     case "$host_os" in
20077               aix*) gl_absname_cpp="$ac_cpp -C" ;;
20078               *)    gl_absname_cpp="$ac_cpp" ;;
20079             esac
20080                                     gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20081                sed -n '\#/netdb.h#{
20082                  s#.*"\(.*/netdb.h\)".*#\1#
20083                  s#^/[^/]#//&#
20084                  p
20085                  q
20086                }'`'"'
20087           else
20088             gl_cv_next_netdb_h='<'netdb.h'>'
20089           fi
20090
20091 fi
20092 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_netdb_h" >&5
20093 $as_echo "$gl_cv_next_netdb_h" >&6; }
20094      fi
20095      NEXT_NETDB_H=$gl_cv_next_netdb_h
20096
20097
20098
20099   if test $ac_cv_header_netdb_h = yes; then
20100     cat >conftest.$ac_ext <<_ACEOF
20101 /* confdefs.h.  */
20102 _ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h.  */
20106
20107          #include <netdb.h>
20108          struct addrinfo a;
20109          int b = EAI_OVERFLOW;
20110          int c = AI_NUMERICSERV;
20111
20112 int
20113 main ()
20114 {
20115
20116   ;
20117   return 0;
20118 }
20119 _ACEOF
20120 rm -f conftest.$ac_objext
20121 if { (ac_try="$ac_compile"
20122 case "(($ac_try" in
20123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20124   *) ac_try_echo=$ac_try;;
20125 esac
20126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20127 $as_echo "$ac_try_echo") >&5
20128   (eval "$ac_compile") 2>conftest.er1
20129   ac_status=$?
20130   grep -v '^ *+' conftest.er1 >conftest.err
20131   rm -f conftest.er1
20132   cat conftest.err >&5
20133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134   (exit $ac_status); } && {
20135          test -z "$ac_c_werror_flag" ||
20136          test ! -s conftest.err
20137        } && test -s conftest.$ac_objext; then
20138   NETDB_H=''
20139 else
20140   $as_echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20142
20143         NETDB_H='netdb.h'
20144 fi
20145
20146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20147     HAVE_NETDB_H=1
20148   else
20149     NETDB_H='netdb.h'
20150     HAVE_NETDB_H=0
20151   fi
20152
20153
20154
20155
20156   { $as_echo "$as_me:$LINENO: checking whether <netinet/in.h> is self-contained" >&5
20157 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
20158 if test "${gl_cv_header_netinet_in_h_selfcontained+set}" = set; then
20159   $as_echo_n "(cached) " >&6
20160 else
20161
20162       cat >conftest.$ac_ext <<_ACEOF
20163 /* confdefs.h.  */
20164 _ACEOF
20165 cat confdefs.h >>conftest.$ac_ext
20166 cat >>conftest.$ac_ext <<_ACEOF
20167 /* end confdefs.h.  */
20168 #include <netinet/in.h>
20169 int
20170 main ()
20171 {
20172
20173   ;
20174   return 0;
20175 }
20176 _ACEOF
20177 rm -f conftest.$ac_objext
20178 if { (ac_try="$ac_compile"
20179 case "(($ac_try" in
20180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20181   *) ac_try_echo=$ac_try;;
20182 esac
20183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20184 $as_echo "$ac_try_echo") >&5
20185   (eval "$ac_compile") 2>conftest.er1
20186   ac_status=$?
20187   grep -v '^ *+' conftest.er1 >conftest.err
20188   rm -f conftest.er1
20189   cat conftest.err >&5
20190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); } && {
20192          test -z "$ac_c_werror_flag" ||
20193          test ! -s conftest.err
20194        } && test -s conftest.$ac_objext; then
20195   gl_cv_header_netinet_in_h_selfcontained=yes
20196 else
20197   $as_echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20199
20200         gl_cv_header_netinet_in_h_selfcontained=no
20201 fi
20202
20203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20204
20205 fi
20206 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
20207 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
20208   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
20209     NETINET_IN_H=''
20210   else
20211     NETINET_IN_H='netinet/in.h'
20212
20213 for ac_header in netinet/in.h
20214 do
20215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20217   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20218 $as_echo_n "checking for $ac_header... " >&6; }
20219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20220   $as_echo_n "(cached) " >&6
20221 fi
20222 ac_res=`eval 'as_val=${'$as_ac_Header'}
20223                  $as_echo "$as_val"'`
20224                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20225 $as_echo "$ac_res" >&6; }
20226 else
20227   # Is the header compilable?
20228 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20229 $as_echo_n "checking $ac_header usability... " >&6; }
20230 cat >conftest.$ac_ext <<_ACEOF
20231 /* confdefs.h.  */
20232 _ACEOF
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h.  */
20236 $ac_includes_default
20237 #include <$ac_header>
20238 _ACEOF
20239 rm -f conftest.$ac_objext
20240 if { (ac_try="$ac_compile"
20241 case "(($ac_try" in
20242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243   *) ac_try_echo=$ac_try;;
20244 esac
20245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20246 $as_echo "$ac_try_echo") >&5
20247   (eval "$ac_compile") 2>conftest.er1
20248   ac_status=$?
20249   grep -v '^ *+' conftest.er1 >conftest.err
20250   rm -f conftest.er1
20251   cat conftest.err >&5
20252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253   (exit $ac_status); } && {
20254          test -z "$ac_c_werror_flag" ||
20255          test ! -s conftest.err
20256        } && test -s conftest.$ac_objext; then
20257   ac_header_compiler=yes
20258 else
20259   $as_echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.$ac_ext >&5
20261
20262         ac_header_compiler=no
20263 fi
20264
20265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20266 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20267 $as_echo "$ac_header_compiler" >&6; }
20268
20269 # Is the header present?
20270 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20271 $as_echo_n "checking $ac_header presence... " >&6; }
20272 cat >conftest.$ac_ext <<_ACEOF
20273 /* confdefs.h.  */
20274 _ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h.  */
20278 #include <$ac_header>
20279 _ACEOF
20280 if { (ac_try="$ac_cpp conftest.$ac_ext"
20281 case "(($ac_try" in
20282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283   *) ac_try_echo=$ac_try;;
20284 esac
20285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20286 $as_echo "$ac_try_echo") >&5
20287   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20288   ac_status=$?
20289   grep -v '^ *+' conftest.er1 >conftest.err
20290   rm -f conftest.er1
20291   cat conftest.err >&5
20292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); } >/dev/null && {
20294          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20295          test ! -s conftest.err
20296        }; then
20297   ac_header_preproc=yes
20298 else
20299   $as_echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302   ac_header_preproc=no
20303 fi
20304
20305 rm -f conftest.err conftest.$ac_ext
20306 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20307 $as_echo "$ac_header_preproc" >&6; }
20308
20309 # So?  What about this header?
20310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20311   yes:no: )
20312     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20313 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20314     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20315 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20316     ac_header_preproc=yes
20317     ;;
20318   no:yes:* )
20319     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20320 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20321     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20322 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20323     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20324 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20325     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20326 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20327     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20328 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20329     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20330 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20331
20332     ;;
20333 esac
20334 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20335 $as_echo_n "checking for $ac_header... " >&6; }
20336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20337   $as_echo_n "(cached) " >&6
20338 else
20339   eval "$as_ac_Header=\$ac_header_preproc"
20340 fi
20341 ac_res=`eval 'as_val=${'$as_ac_Header'}
20342                  $as_echo "$as_val"'`
20343                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20344 $as_echo "$ac_res" >&6; }
20345
20346 fi
20347 as_val=`eval 'as_val=${'$as_ac_Header'}
20348                  $as_echo "$as_val"'`
20349    if test "x$as_val" = x""yes; then
20350   cat >>confdefs.h <<_ACEOF
20351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20352 _ACEOF
20353
20354 fi
20355
20356 done
20357
20358
20359
20360
20361
20362   :
20363
20364
20365
20366
20367
20368
20369
20370      if test $gl_cv_have_include_next = yes; then
20371        gl_cv_next_netinet_in_h='<'netinet/in.h'>'
20372      else
20373        { $as_echo "$as_me:$LINENO: checking absolute name of <netinet/in.h>" >&5
20374 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
20375 if test "${gl_cv_next_netinet_in_h+set}" = set; then
20376   $as_echo_n "(cached) " >&6
20377 else
20378
20379           if test $ac_cv_header_netinet_in_h = yes; then
20380             cat >conftest.$ac_ext <<_ACEOF
20381 /* confdefs.h.  */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h.  */
20386 #include <netinet/in.h>
20387
20388 _ACEOF
20389                                                                     case "$host_os" in
20390               aix*) gl_absname_cpp="$ac_cpp -C" ;;
20391               *)    gl_absname_cpp="$ac_cpp" ;;
20392             esac
20393                                     gl_cv_next_netinet_in_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20394                sed -n '\#/netinet/in.h#{
20395                  s#.*"\(.*/netinet/in.h\)".*#\1#
20396                  s#^/[^/]#//&#
20397                  p
20398                  q
20399                }'`'"'
20400           else
20401             gl_cv_next_netinet_in_h='<'netinet/in.h'>'
20402           fi
20403
20404 fi
20405 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_netinet_in_h" >&5
20406 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
20407      fi
20408      NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
20409
20410
20411
20412     if test $ac_cv_header_netinet_in_h = yes; then
20413       HAVE_NETINET_IN_H=1
20414     else
20415       HAVE_NETINET_IN_H=0
20416     fi
20417
20418   fi
20419
20420
20421   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
20422 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
20423 if test -z "$MKDIR_P"; then
20424   if test "${ac_cv_path_mkdir+set}" = set; then
20425   $as_echo_n "(cached) " >&6
20426 else
20427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20428 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
20429 do
20430   IFS=$as_save_IFS
20431   test -z "$as_dir" && as_dir=.
20432   for ac_prog in mkdir gmkdir; do
20433          for ac_exec_ext in '' $ac_executable_extensions; do
20434            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
20435            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
20436              'mkdir (GNU coreutils) '* | \
20437              'mkdir (coreutils) '* | \
20438              'mkdir (fileutils) '4.1*)
20439                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
20440                break 3;;
20441            esac
20442          done
20443        done
20444 done
20445 IFS=$as_save_IFS
20446
20447 fi
20448
20449   if test "${ac_cv_path_mkdir+set}" = set; then
20450     MKDIR_P="$ac_cv_path_mkdir -p"
20451   else
20452     # As a last resort, use the slow shell script.  Don't cache a
20453     # value for MKDIR_P within a source directory, because that will
20454     # break other packages using the cache if that directory is
20455     # removed, or if the value is a relative name.
20456     test -d ./--version && rmdir ./--version
20457     MKDIR_P="$ac_install_sh -d"
20458   fi
20459 fi
20460 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
20461 $as_echo "$MKDIR_P" >&6; }
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472   gl_LIBOBJS="$gl_LIBOBJS physmem.$ac_objext"
20473
20474
20475   # Prerequisites of lib/physmem.c.
20476
20477
20478
20479
20480
20481
20482
20483
20484 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
20485     machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
20486     sys/systemcfg.h
20487 do
20488 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20489 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20490 $as_echo_n "checking for $ac_header... " >&6; }
20491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20492   $as_echo_n "(cached) " >&6
20493 else
20494   cat >conftest.$ac_ext <<_ACEOF
20495 /* confdefs.h.  */
20496 _ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h.  */
20500 $ac_includes_default
20501
20502 #include <$ac_header>
20503 _ACEOF
20504 rm -f conftest.$ac_objext
20505 if { (ac_try="$ac_compile"
20506 case "(($ac_try" in
20507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20508   *) ac_try_echo=$ac_try;;
20509 esac
20510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20511 $as_echo "$ac_try_echo") >&5
20512   (eval "$ac_compile") 2>conftest.er1
20513   ac_status=$?
20514   grep -v '^ *+' conftest.er1 >conftest.err
20515   rm -f conftest.er1
20516   cat conftest.err >&5
20517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); } && {
20519          test -z "$ac_c_werror_flag" ||
20520          test ! -s conftest.err
20521        } && test -s conftest.$ac_objext; then
20522   eval "$as_ac_Header=yes"
20523 else
20524   $as_echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20526
20527         eval "$as_ac_Header=no"
20528 fi
20529
20530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20531 fi
20532 ac_res=`eval 'as_val=${'$as_ac_Header'}
20533                  $as_echo "$as_val"'`
20534                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20535 $as_echo "$ac_res" >&6; }
20536 as_val=`eval 'as_val=${'$as_ac_Header'}
20537                  $as_echo "$as_val"'`
20538    if test "x$as_val" = x""yes; then
20539   cat >>confdefs.h <<_ACEOF
20540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20541 _ACEOF
20542
20543 fi
20544
20545 done
20546
20547
20548
20549
20550
20551
20552
20553
20554 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
20555 do
20556 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20557 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20558 $as_echo_n "checking for $ac_func... " >&6; }
20559 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20560   $as_echo_n "(cached) " >&6
20561 else
20562   cat >conftest.$ac_ext <<_ACEOF
20563 /* confdefs.h.  */
20564 _ACEOF
20565 cat confdefs.h >>conftest.$ac_ext
20566 cat >>conftest.$ac_ext <<_ACEOF
20567 /* end confdefs.h.  */
20568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20569    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20570 #define $ac_func innocuous_$ac_func
20571
20572 /* System header to define __stub macros and hopefully few prototypes,
20573     which can conflict with char $ac_func (); below.
20574     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20575     <limits.h> exists even on freestanding compilers.  */
20576
20577 #ifdef __STDC__
20578 # include <limits.h>
20579 #else
20580 # include <assert.h>
20581 #endif
20582
20583 #undef $ac_func
20584
20585 /* Override any GCC internal prototype to avoid an error.
20586    Use char because int might match the return type of a GCC
20587    builtin and then its argument prototype would still apply.  */
20588 #ifdef __cplusplus
20589 extern "C"
20590 #endif
20591 char $ac_func ();
20592 /* The GNU C library defines this for functions which it implements
20593     to always fail with ENOSYS.  Some functions are actually named
20594     something starting with __ and the normal name is an alias.  */
20595 #if defined __stub_$ac_func || defined __stub___$ac_func
20596 choke me
20597 #endif
20598
20599 int
20600 main ()
20601 {
20602 return $ac_func ();
20603   ;
20604   return 0;
20605 }
20606 _ACEOF
20607 rm -f conftest.$ac_objext conftest$ac_exeext
20608 if { (ac_try="$ac_link"
20609 case "(($ac_try" in
20610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611   *) ac_try_echo=$ac_try;;
20612 esac
20613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20614 $as_echo "$ac_try_echo") >&5
20615   (eval "$ac_link") 2>conftest.er1
20616   ac_status=$?
20617   grep -v '^ *+' conftest.er1 >conftest.err
20618   rm -f conftest.er1
20619   cat conftest.err >&5
20620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621   (exit $ac_status); } && {
20622          test -z "$ac_c_werror_flag" ||
20623          test ! -s conftest.err
20624        } && test -s conftest$ac_exeext && {
20625          test "$cross_compiling" = yes ||
20626          $as_test_x conftest$ac_exeext
20627        }; then
20628   eval "$as_ac_var=yes"
20629 else
20630   $as_echo "$as_me: failed program was:" >&5
20631 sed 's/^/| /' conftest.$ac_ext >&5
20632
20633         eval "$as_ac_var=no"
20634 fi
20635
20636 rm -rf conftest.dSYM
20637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20638       conftest$ac_exeext conftest.$ac_ext
20639 fi
20640 ac_res=`eval 'as_val=${'$as_ac_var'}
20641                  $as_echo "$as_val"'`
20642                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20643 $as_echo "$ac_res" >&6; }
20644 as_val=`eval 'as_val=${'$as_ac_var'}
20645                  $as_echo "$as_val"'`
20646    if test "x$as_val" = x""yes; then
20647   cat >>confdefs.h <<_ACEOF
20648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20649 _ACEOF
20650
20651 fi
20652 done
20653
20654
20655
20656
20657
20658   :
20659
20660
20661
20662
20663
20664
20665
20666 # Check whether --with-included-regex was given.
20667 if test "${with_included_regex+set}" = set; then
20668   withval=$with_included_regex;
20669 fi
20670
20671
20672   case $with_included_regex in #(
20673   yes|no) ac_use_included_regex=$with_included_regex
20674         ;;
20675   '')
20676     # If the system regex support is good enough that it passes the
20677     # following run test, then default to *not* using the included regex.c.
20678     # If cross compiling, assume the test would fail and use the included
20679     # regex.c.
20680     { $as_echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
20681 $as_echo_n "checking for working re_compile_pattern... " >&6; }
20682 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
20683   $as_echo_n "(cached) " >&6
20684 else
20685   if test "$cross_compiling" = yes; then
20686          gl_cv_func_re_compile_pattern_working=no
20687 else
20688   cat >conftest.$ac_ext <<_ACEOF
20689 /* confdefs.h.  */
20690 _ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h.  */
20694 $ac_includes_default
20695            #if HAVE_LOCALE_H
20696             #include <locale.h>
20697            #endif
20698            #include <limits.h>
20699            #include <regex.h>
20700
20701 int
20702 main ()
20703 {
20704 static struct re_pattern_buffer regex;
20705             unsigned char folded_chars[UCHAR_MAX + 1];
20706             int i;
20707             const char *s;
20708             struct re_registers regs;
20709
20710             #if HAVE_LOCALE_H
20711               /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
20712                  This test needs valgrind to catch the bug on Debian
20713                  GNU/Linux 3.1 x86, but it might catch the bug better
20714                  on other platforms and it shouldn't hurt to try the
20715                  test here.  */
20716               if (setlocale (LC_ALL, "en_US.UTF-8"))
20717                 {
20718                   static char const pat[] = "insert into";
20719                   static char const data[] =
20720                     "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
20721                   re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
20722                                  | RE_ICASE);
20723                   memset (&regex, 0, sizeof regex);
20724                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
20725                   if (s)
20726                     return 1;
20727                   if (re_search (&regex, data, sizeof data - 1,
20728                                  0, sizeof data - 1, &regs)
20729                       != -1)
20730                     return 1;
20731                   if (! setlocale (LC_ALL, "C"))
20732                     return 1;
20733                 }
20734             #endif
20735
20736             /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
20737             re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
20738             memset (&regex, 0, sizeof regex);
20739             s = re_compile_pattern ("a[^x]b", 6, &regex);
20740             if (s)
20741               return 1;
20742
20743             /* This should fail, but succeeds for glibc-2.5.  */
20744             if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
20745               return 1;
20746
20747             /* This regular expression is from Spencer ere test number 75
20748                in grep-2.3.  */
20749             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
20750             memset (&regex, 0, sizeof regex);
20751             for (i = 0; i <= UCHAR_MAX; i++)
20752               folded_chars[i] = i;
20753             regex.translate = folded_chars;
20754             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
20755             /* This should fail with _Invalid character class name_ error.  */
20756             if (!s)
20757               return 1;
20758
20759             /* This should succeed, but does not for glibc-2.1.3.  */
20760             memset (&regex, 0, sizeof regex);
20761             s = re_compile_pattern ("{1", 2, &regex);
20762
20763             if (s)
20764               return 1;
20765
20766             /* The following example is derived from a problem report
20767                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
20768             memset (&regex, 0, sizeof regex);
20769             s = re_compile_pattern ("[an\371]*n", 7, &regex);
20770             if (s)
20771               return 1;
20772
20773             /* This should match, but does not for glibc-2.2.1.  */
20774             if (re_match (&regex, "an", 2, 0, &regs) != 2)
20775               return 1;
20776
20777             memset (&regex, 0, sizeof regex);
20778             s = re_compile_pattern ("x", 1, &regex);
20779             if (s)
20780               return 1;
20781
20782             /* glibc-2.2.93 does not work with a negative RANGE argument.  */
20783             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
20784               return 1;
20785
20786             /* The version of regex.c in older versions of gnulib
20787                ignored RE_ICASE.  Detect that problem too.  */
20788             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
20789             memset (&regex, 0, sizeof regex);
20790             s = re_compile_pattern ("x", 1, &regex);
20791             if (s)
20792               return 1;
20793
20794             if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
20795               return 1;
20796
20797             /* Catch a bug reported by Vin Shelton in
20798                http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
20799                */
20800             re_set_syntax (RE_SYNTAX_POSIX_BASIC
20801                            & ~RE_CONTEXT_INVALID_DUP
20802                            & ~RE_NO_EMPTY_RANGES);
20803             memset (&regex, 0, sizeof regex);
20804             s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
20805             if (s)
20806               return 1;
20807
20808             /* REG_STARTEND was added to glibc on 2004-01-15.
20809                Reject older versions.  */
20810             if (! REG_STARTEND)
20811               return 1;
20812
20813             /* Reject hosts whose regoff_t values are too narrow.
20814                These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
20815                and 32-bit int.  */
20816             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
20817                 || sizeof (regoff_t) < sizeof (ssize_t))
20818               return 1;
20819
20820             return 0;
20821   ;
20822   return 0;
20823 }
20824 _ACEOF
20825 rm -f conftest$ac_exeext
20826 if { (ac_try="$ac_link"
20827 case "(($ac_try" in
20828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20829   *) ac_try_echo=$ac_try;;
20830 esac
20831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20832 $as_echo "$ac_try_echo") >&5
20833   (eval "$ac_link") 2>&5
20834   ac_status=$?
20835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20837   { (case "(($ac_try" in
20838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839   *) ac_try_echo=$ac_try;;
20840 esac
20841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20842 $as_echo "$ac_try_echo") >&5
20843   (eval "$ac_try") 2>&5
20844   ac_status=$?
20845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846   (exit $ac_status); }; }; then
20847   gl_cv_func_re_compile_pattern_working=yes
20848 else
20849   $as_echo "$as_me: program exited with status $ac_status" >&5
20850 $as_echo "$as_me: failed program was:" >&5
20851 sed 's/^/| /' conftest.$ac_ext >&5
20852
20853 ( exit $ac_status )
20854 gl_cv_func_re_compile_pattern_working=no
20855 fi
20856 rm -rf conftest.dSYM
20857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20858 fi
20859
20860
20861 fi
20862 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
20863 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
20864     case $gl_cv_func_re_compile_pattern_working in #(
20865     yes) ac_use_included_regex=no;; #(
20866     no) ac_use_included_regex=yes;;
20867     esac
20868     ;;
20869   *) { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
20870 $as_echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
20871    { (exit 1); exit 1; }; }
20872     ;;
20873   esac
20874
20875   if test $ac_use_included_regex = yes; then
20876
20877 cat >>confdefs.h <<\_ACEOF
20878 #define _REGEX_LARGE_OFFSETS 1
20879 _ACEOF
20880
20881
20882 cat >>confdefs.h <<\_ACEOF
20883 #define re_syntax_options rpl_re_syntax_options
20884 _ACEOF
20885
20886
20887 cat >>confdefs.h <<\_ACEOF
20888 #define re_set_syntax rpl_re_set_syntax
20889 _ACEOF
20890
20891
20892 cat >>confdefs.h <<\_ACEOF
20893 #define re_compile_pattern rpl_re_compile_pattern
20894 _ACEOF
20895
20896
20897 cat >>confdefs.h <<\_ACEOF
20898 #define re_compile_fastmap rpl_re_compile_fastmap
20899 _ACEOF
20900
20901
20902 cat >>confdefs.h <<\_ACEOF
20903 #define re_search rpl_re_search
20904 _ACEOF
20905
20906
20907 cat >>confdefs.h <<\_ACEOF
20908 #define re_search_2 rpl_re_search_2
20909 _ACEOF
20910
20911
20912 cat >>confdefs.h <<\_ACEOF
20913 #define re_match rpl_re_match
20914 _ACEOF
20915
20916
20917 cat >>confdefs.h <<\_ACEOF
20918 #define re_match_2 rpl_re_match_2
20919 _ACEOF
20920
20921
20922 cat >>confdefs.h <<\_ACEOF
20923 #define re_set_registers rpl_re_set_registers
20924 _ACEOF
20925
20926
20927 cat >>confdefs.h <<\_ACEOF
20928 #define re_comp rpl_re_comp
20929 _ACEOF
20930
20931
20932 cat >>confdefs.h <<\_ACEOF
20933 #define re_exec rpl_re_exec
20934 _ACEOF
20935
20936
20937 cat >>confdefs.h <<\_ACEOF
20938 #define regcomp rpl_regcomp
20939 _ACEOF
20940
20941
20942 cat >>confdefs.h <<\_ACEOF
20943 #define regexec rpl_regexec
20944 _ACEOF
20945
20946
20947 cat >>confdefs.h <<\_ACEOF
20948 #define regerror rpl_regerror
20949 _ACEOF
20950
20951
20952 cat >>confdefs.h <<\_ACEOF
20953 #define regfree rpl_regfree
20954 _ACEOF
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964   gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
20965
20966
20967
20968
20969
20970
20971 for ac_header in libintl.h
20972 do
20973 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20975   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20976 $as_echo_n "checking for $ac_header... " >&6; }
20977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20978   $as_echo_n "(cached) " >&6
20979 fi
20980 ac_res=`eval 'as_val=${'$as_ac_Header'}
20981                  $as_echo "$as_val"'`
20982                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20983 $as_echo "$ac_res" >&6; }
20984 else
20985   # Is the header compilable?
20986 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20987 $as_echo_n "checking $ac_header usability... " >&6; }
20988 cat >conftest.$ac_ext <<_ACEOF
20989 /* confdefs.h.  */
20990 _ACEOF
20991 cat confdefs.h >>conftest.$ac_ext
20992 cat >>conftest.$ac_ext <<_ACEOF
20993 /* end confdefs.h.  */
20994 $ac_includes_default
20995 #include <$ac_header>
20996 _ACEOF
20997 rm -f conftest.$ac_objext
20998 if { (ac_try="$ac_compile"
20999 case "(($ac_try" in
21000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001   *) ac_try_echo=$ac_try;;
21002 esac
21003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21004 $as_echo "$ac_try_echo") >&5
21005   (eval "$ac_compile") 2>conftest.er1
21006   ac_status=$?
21007   grep -v '^ *+' conftest.er1 >conftest.err
21008   rm -f conftest.er1
21009   cat conftest.err >&5
21010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011   (exit $ac_status); } && {
21012          test -z "$ac_c_werror_flag" ||
21013          test ! -s conftest.err
21014        } && test -s conftest.$ac_objext; then
21015   ac_header_compiler=yes
21016 else
21017   $as_echo "$as_me: failed program was:" >&5
21018 sed 's/^/| /' conftest.$ac_ext >&5
21019
21020         ac_header_compiler=no
21021 fi
21022
21023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21024 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21025 $as_echo "$ac_header_compiler" >&6; }
21026
21027 # Is the header present?
21028 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21029 $as_echo_n "checking $ac_header presence... " >&6; }
21030 cat >conftest.$ac_ext <<_ACEOF
21031 /* confdefs.h.  */
21032 _ACEOF
21033 cat confdefs.h >>conftest.$ac_ext
21034 cat >>conftest.$ac_ext <<_ACEOF
21035 /* end confdefs.h.  */
21036 #include <$ac_header>
21037 _ACEOF
21038 if { (ac_try="$ac_cpp conftest.$ac_ext"
21039 case "(($ac_try" in
21040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21041   *) ac_try_echo=$ac_try;;
21042 esac
21043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21044 $as_echo "$ac_try_echo") >&5
21045   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21046   ac_status=$?
21047   grep -v '^ *+' conftest.er1 >conftest.err
21048   rm -f conftest.er1
21049   cat conftest.err >&5
21050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051   (exit $ac_status); } >/dev/null && {
21052          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21053          test ! -s conftest.err
21054        }; then
21055   ac_header_preproc=yes
21056 else
21057   $as_echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21059
21060   ac_header_preproc=no
21061 fi
21062
21063 rm -f conftest.err conftest.$ac_ext
21064 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21065 $as_echo "$ac_header_preproc" >&6; }
21066
21067 # So?  What about this header?
21068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21069   yes:no: )
21070     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21071 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21072     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21073 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21074     ac_header_preproc=yes
21075     ;;
21076   no:yes:* )
21077     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21078 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21079     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21080 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21081     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21082 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21083     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21084 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21085     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21086 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21087     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21088 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21089
21090     ;;
21091 esac
21092 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21093 $as_echo_n "checking for $ac_header... " >&6; }
21094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21095   $as_echo_n "(cached) " >&6
21096 else
21097   eval "$as_ac_Header=\$ac_header_preproc"
21098 fi
21099 ac_res=`eval 'as_val=${'$as_ac_Header'}
21100                  $as_echo "$as_val"'`
21101                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21102 $as_echo "$ac_res" >&6; }
21103
21104 fi
21105 as_val=`eval 'as_val=${'$as_ac_Header'}
21106                  $as_echo "$as_val"'`
21107    if test "x$as_val" = x""yes; then
21108   cat >>confdefs.h <<_ACEOF
21109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21110 _ACEOF
21111
21112 fi
21113
21114 done
21115
21116
21117   :
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129   { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
21130 $as_echo_n "checking whether isblank is declared... " >&6; }
21131 if test "${ac_cv_have_decl_isblank+set}" = set; then
21132   $as_echo_n "(cached) " >&6
21133 else
21134   cat >conftest.$ac_ext <<_ACEOF
21135 /* confdefs.h.  */
21136 _ACEOF
21137 cat confdefs.h >>conftest.$ac_ext
21138 cat >>conftest.$ac_ext <<_ACEOF
21139 /* end confdefs.h.  */
21140 #include <ctype.h>
21141
21142 int
21143 main ()
21144 {
21145 #ifndef isblank
21146   (void) isblank;
21147 #endif
21148
21149   ;
21150   return 0;
21151 }
21152 _ACEOF
21153 rm -f conftest.$ac_objext
21154 if { (ac_try="$ac_compile"
21155 case "(($ac_try" in
21156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21157   *) ac_try_echo=$ac_try;;
21158 esac
21159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21160 $as_echo "$ac_try_echo") >&5
21161   (eval "$ac_compile") 2>conftest.er1
21162   ac_status=$?
21163   grep -v '^ *+' conftest.er1 >conftest.err
21164   rm -f conftest.er1
21165   cat conftest.err >&5
21166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); } && {
21168          test -z "$ac_c_werror_flag" ||
21169          test ! -s conftest.err
21170        } && test -s conftest.$ac_objext; then
21171   ac_cv_have_decl_isblank=yes
21172 else
21173   $as_echo "$as_me: failed program was:" >&5
21174 sed 's/^/| /' conftest.$ac_ext >&5
21175
21176         ac_cv_have_decl_isblank=no
21177 fi
21178
21179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21180 fi
21181 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
21182 $as_echo "$ac_cv_have_decl_isblank" >&6; }
21183 if test "x$ac_cv_have_decl_isblank" = x""yes; then
21184
21185 cat >>confdefs.h <<_ACEOF
21186 #define HAVE_DECL_ISBLANK 1
21187 _ACEOF
21188
21189
21190 else
21191   cat >>confdefs.h <<_ACEOF
21192 #define HAVE_DECL_ISBLANK 0
21193 _ACEOF
21194
21195
21196 fi
21197
21198
21199
21200   fi
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211   gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227   gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237                       SERVENT_LIB=
21238   gl_saved_libs="$LIBS"
21239   { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
21240 $as_echo_n "checking for library containing getservbyname... " >&6; }
21241 if test "${ac_cv_search_getservbyname+set}" = set; then
21242   $as_echo_n "(cached) " >&6
21243 else
21244   ac_func_search_save_LIBS=$LIBS
21245 cat >conftest.$ac_ext <<_ACEOF
21246 /* confdefs.h.  */
21247 _ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h.  */
21251
21252 /* Override any GCC internal prototype to avoid an error.
21253    Use char because int might match the return type of a GCC
21254    builtin and then its argument prototype would still apply.  */
21255 #ifdef __cplusplus
21256 extern "C"
21257 #endif
21258 char getservbyname ();
21259 int
21260 main ()
21261 {
21262 return getservbyname ();
21263   ;
21264   return 0;
21265 }
21266 _ACEOF
21267 for ac_lib in '' socket network net; do
21268   if test -z "$ac_lib"; then
21269     ac_res="none required"
21270   else
21271     ac_res=-l$ac_lib
21272     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21273   fi
21274   rm -f conftest.$ac_objext conftest$ac_exeext
21275 if { (ac_try="$ac_link"
21276 case "(($ac_try" in
21277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278   *) ac_try_echo=$ac_try;;
21279 esac
21280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21281 $as_echo "$ac_try_echo") >&5
21282   (eval "$ac_link") 2>conftest.er1
21283   ac_status=$?
21284   grep -v '^ *+' conftest.er1 >conftest.err
21285   rm -f conftest.er1
21286   cat conftest.err >&5
21287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288   (exit $ac_status); } && {
21289          test -z "$ac_c_werror_flag" ||
21290          test ! -s conftest.err
21291        } && test -s conftest$ac_exeext && {
21292          test "$cross_compiling" = yes ||
21293          $as_test_x conftest$ac_exeext
21294        }; then
21295   ac_cv_search_getservbyname=$ac_res
21296 else
21297   $as_echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21299
21300
21301 fi
21302
21303 rm -rf conftest.dSYM
21304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21305       conftest$ac_exeext
21306   if test "${ac_cv_search_getservbyname+set}" = set; then
21307   break
21308 fi
21309 done
21310 if test "${ac_cv_search_getservbyname+set}" = set; then
21311   :
21312 else
21313   ac_cv_search_getservbyname=no
21314 fi
21315 rm conftest.$ac_ext
21316 LIBS=$ac_func_search_save_LIBS
21317 fi
21318 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
21319 $as_echo "$ac_cv_search_getservbyname" >&6; }
21320 ac_res=$ac_cv_search_getservbyname
21321 if test "$ac_res" != no; then
21322   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21323   if test "$ac_cv_search_getservbyname" != "none required"; then
21324        SERVENT_LIB="$ac_cv_search_getservbyname"
21325      fi
21326 fi
21327
21328   LIBS="$gl_saved_libs"
21329   if test -z "$SERVENT_LIB"; then
21330
21331 for ac_func in getservbyname
21332 do
21333 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21334 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21335 $as_echo_n "checking for $ac_func... " >&6; }
21336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21337   $as_echo_n "(cached) " >&6
21338 else
21339   cat >conftest.$ac_ext <<_ACEOF
21340 /* confdefs.h.  */
21341 _ACEOF
21342 cat confdefs.h >>conftest.$ac_ext
21343 cat >>conftest.$ac_ext <<_ACEOF
21344 /* end confdefs.h.  */
21345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21347 #define $ac_func innocuous_$ac_func
21348
21349 /* System header to define __stub macros and hopefully few prototypes,
21350     which can conflict with char $ac_func (); below.
21351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21352     <limits.h> exists even on freestanding compilers.  */
21353
21354 #ifdef __STDC__
21355 # include <limits.h>
21356 #else
21357 # include <assert.h>
21358 #endif
21359
21360 #undef $ac_func
21361
21362 /* Override any GCC internal prototype to avoid an error.
21363    Use char because int might match the return type of a GCC
21364    builtin and then its argument prototype would still apply.  */
21365 #ifdef __cplusplus
21366 extern "C"
21367 #endif
21368 char $ac_func ();
21369 /* The GNU C library defines this for functions which it implements
21370     to always fail with ENOSYS.  Some functions are actually named
21371     something starting with __ and the normal name is an alias.  */
21372 #if defined __stub_$ac_func || defined __stub___$ac_func
21373 choke me
21374 #endif
21375
21376 int
21377 main ()
21378 {
21379 return $ac_func ();
21380   ;
21381   return 0;
21382 }
21383 _ACEOF
21384 rm -f conftest.$ac_objext conftest$ac_exeext
21385 if { (ac_try="$ac_link"
21386 case "(($ac_try" in
21387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21388   *) ac_try_echo=$ac_try;;
21389 esac
21390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21391 $as_echo "$ac_try_echo") >&5
21392   (eval "$ac_link") 2>conftest.er1
21393   ac_status=$?
21394   grep -v '^ *+' conftest.er1 >conftest.err
21395   rm -f conftest.er1
21396   cat conftest.err >&5
21397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398   (exit $ac_status); } && {
21399          test -z "$ac_c_werror_flag" ||
21400          test ! -s conftest.err
21401        } && test -s conftest$ac_exeext && {
21402          test "$cross_compiling" = yes ||
21403          $as_test_x conftest$ac_exeext
21404        }; then
21405   eval "$as_ac_var=yes"
21406 else
21407   $as_echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21409
21410         eval "$as_ac_var=no"
21411 fi
21412
21413 rm -rf conftest.dSYM
21414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21415       conftest$ac_exeext conftest.$ac_ext
21416 fi
21417 ac_res=`eval 'as_val=${'$as_ac_var'}
21418                  $as_echo "$as_val"'`
21419                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21420 $as_echo "$ac_res" >&6; }
21421 as_val=`eval 'as_val=${'$as_ac_var'}
21422                  $as_echo "$as_val"'`
21423    if test "x$as_val" = x""yes; then
21424   cat >>confdefs.h <<_ACEOF
21425 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21426 _ACEOF
21427
21428 else
21429
21430       { $as_echo "$as_me:$LINENO: checking for getservbyname in winsock2.h and -lws2_32" >&5
21431 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
21432 if test "${gl_cv_w32_getservbyname+set}" = set; then
21433   $as_echo_n "(cached) " >&6
21434 else
21435   gl_cv_w32_getservbyname=no
21436          gl_save_LIBS="$LIBS"
21437          LIBS="$LIBS -lws2_32"
21438          cat >conftest.$ac_ext <<_ACEOF
21439 /* confdefs.h.  */
21440 _ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h.  */
21444
21445 #ifdef HAVE_WINSOCK2_H
21446 #include <winsock2.h>
21447 #endif
21448 #include <stddef.h>
21449
21450 int
21451 main ()
21452 {
21453 getservbyname(NULL,NULL);
21454   ;
21455   return 0;
21456 }
21457 _ACEOF
21458 rm -f conftest.$ac_objext conftest$ac_exeext
21459 if { (ac_try="$ac_link"
21460 case "(($ac_try" in
21461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462   *) ac_try_echo=$ac_try;;
21463 esac
21464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21465 $as_echo "$ac_try_echo") >&5
21466   (eval "$ac_link") 2>conftest.er1
21467   ac_status=$?
21468   grep -v '^ *+' conftest.er1 >conftest.err
21469   rm -f conftest.er1
21470   cat conftest.err >&5
21471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472   (exit $ac_status); } && {
21473          test -z "$ac_c_werror_flag" ||
21474          test ! -s conftest.err
21475        } && test -s conftest$ac_exeext && {
21476          test "$cross_compiling" = yes ||
21477          $as_test_x conftest$ac_exeext
21478        }; then
21479   gl_cv_w32_getservbyname=yes
21480 else
21481   $as_echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21483
21484
21485 fi
21486
21487 rm -rf conftest.dSYM
21488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21489       conftest$ac_exeext conftest.$ac_ext
21490          LIBS="$gl_save_LIBS"
21491
21492 fi
21493 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getservbyname" >&5
21494 $as_echo "$gl_cv_w32_getservbyname" >&6; }
21495       if test "$gl_cv_w32_getservbyname" = "yes"; then
21496         SERVENT_LIB="-lws2_32"
21497       fi
21498
21499 fi
21500 done
21501
21502   fi
21503
21504
21505
21506
21507 for ac_header in stdint.h
21508 do
21509 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21511   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21512 $as_echo_n "checking for $ac_header... " >&6; }
21513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21514   $as_echo_n "(cached) " >&6
21515 fi
21516 ac_res=`eval 'as_val=${'$as_ac_Header'}
21517                  $as_echo "$as_val"'`
21518                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21519 $as_echo "$ac_res" >&6; }
21520 else
21521   # Is the header compilable?
21522 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21523 $as_echo_n "checking $ac_header usability... " >&6; }
21524 cat >conftest.$ac_ext <<_ACEOF
21525 /* confdefs.h.  */
21526 _ACEOF
21527 cat confdefs.h >>conftest.$ac_ext
21528 cat >>conftest.$ac_ext <<_ACEOF
21529 /* end confdefs.h.  */
21530 $ac_includes_default
21531 #include <$ac_header>
21532 _ACEOF
21533 rm -f conftest.$ac_objext
21534 if { (ac_try="$ac_compile"
21535 case "(($ac_try" in
21536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21537   *) ac_try_echo=$ac_try;;
21538 esac
21539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21540 $as_echo "$ac_try_echo") >&5
21541   (eval "$ac_compile") 2>conftest.er1
21542   ac_status=$?
21543   grep -v '^ *+' conftest.er1 >conftest.err
21544   rm -f conftest.er1
21545   cat conftest.err >&5
21546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547   (exit $ac_status); } && {
21548          test -z "$ac_c_werror_flag" ||
21549          test ! -s conftest.err
21550        } && test -s conftest.$ac_objext; then
21551   ac_header_compiler=yes
21552 else
21553   $as_echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21555
21556         ac_header_compiler=no
21557 fi
21558
21559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21560 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21561 $as_echo "$ac_header_compiler" >&6; }
21562
21563 # Is the header present?
21564 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21565 $as_echo_n "checking $ac_header presence... " >&6; }
21566 cat >conftest.$ac_ext <<_ACEOF
21567 /* confdefs.h.  */
21568 _ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h.  */
21572 #include <$ac_header>
21573 _ACEOF
21574 if { (ac_try="$ac_cpp conftest.$ac_ext"
21575 case "(($ac_try" in
21576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577   *) ac_try_echo=$ac_try;;
21578 esac
21579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21580 $as_echo "$ac_try_echo") >&5
21581   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21582   ac_status=$?
21583   grep -v '^ *+' conftest.er1 >conftest.err
21584   rm -f conftest.er1
21585   cat conftest.err >&5
21586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); } >/dev/null && {
21588          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21589          test ! -s conftest.err
21590        }; then
21591   ac_header_preproc=yes
21592 else
21593   $as_echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21595
21596   ac_header_preproc=no
21597 fi
21598
21599 rm -f conftest.err conftest.$ac_ext
21600 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21601 $as_echo "$ac_header_preproc" >&6; }
21602
21603 # So?  What about this header?
21604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21605   yes:no: )
21606     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21607 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21608     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21609 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21610     ac_header_preproc=yes
21611     ;;
21612   no:yes:* )
21613     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21614 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21615     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21616 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21617     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21618 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21619     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21620 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21621     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21622 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21623     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21624 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21625
21626     ;;
21627 esac
21628 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21629 $as_echo_n "checking for $ac_header... " >&6; }
21630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21631   $as_echo_n "(cached) " >&6
21632 else
21633   eval "$as_ac_Header=\$ac_header_preproc"
21634 fi
21635 ac_res=`eval 'as_val=${'$as_ac_Header'}
21636                  $as_echo "$as_val"'`
21637                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21638 $as_echo "$ac_res" >&6; }
21639
21640 fi
21641 as_val=`eval 'as_val=${'$as_ac_Header'}
21642                  $as_echo "$as_val"'`
21643    if test "x$as_val" = x""yes; then
21644   cat >>confdefs.h <<_ACEOF
21645 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21646 _ACEOF
21647
21648 fi
21649
21650 done
21651
21652     { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
21653 $as_echo_n "checking for SIZE_MAX... " >&6; }
21654   result=
21655   cat >conftest.$ac_ext <<_ACEOF
21656 /* confdefs.h.  */
21657 _ACEOF
21658 cat confdefs.h >>conftest.$ac_ext
21659 cat >>conftest.$ac_ext <<_ACEOF
21660 /* end confdefs.h.  */
21661
21662 #include <limits.h>
21663 #if HAVE_STDINT_H
21664 #include <stdint.h>
21665 #endif
21666 #ifdef SIZE_MAX
21667 Found it
21668 #endif
21669
21670 _ACEOF
21671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21672   $EGREP "Found it" >/dev/null 2>&1; then
21673   result=yes
21674 fi
21675 rm -f conftest*
21676
21677   if test -z "$result"; then
21678                 if test "$cross_compiling" = yes; then
21679   # Depending upon the size, compute the lo and hi bounds.
21680 cat >conftest.$ac_ext <<_ACEOF
21681 /* confdefs.h.  */
21682 _ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h.  */
21686 #include <stddef.h>
21687 #include <limits.h>
21688 int
21689 main ()
21690 {
21691 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
21692 test_array [0] = 0
21693
21694   ;
21695   return 0;
21696 }
21697 _ACEOF
21698 rm -f conftest.$ac_objext
21699 if { (ac_try="$ac_compile"
21700 case "(($ac_try" in
21701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702   *) ac_try_echo=$ac_try;;
21703 esac
21704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21705 $as_echo "$ac_try_echo") >&5
21706   (eval "$ac_compile") 2>conftest.er1
21707   ac_status=$?
21708   grep -v '^ *+' conftest.er1 >conftest.err
21709   rm -f conftest.er1
21710   cat conftest.err >&5
21711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712   (exit $ac_status); } && {
21713          test -z "$ac_c_werror_flag" ||
21714          test ! -s conftest.err
21715        } && test -s conftest.$ac_objext; then
21716   ac_lo=0 ac_mid=0
21717   while :; do
21718     cat >conftest.$ac_ext <<_ACEOF
21719 /* confdefs.h.  */
21720 _ACEOF
21721 cat confdefs.h >>conftest.$ac_ext
21722 cat >>conftest.$ac_ext <<_ACEOF
21723 /* end confdefs.h.  */
21724 #include <stddef.h>
21725 #include <limits.h>
21726 int
21727 main ()
21728 {
21729 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
21730 test_array [0] = 0
21731
21732   ;
21733   return 0;
21734 }
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   ac_hi=$ac_mid; break
21755 else
21756   $as_echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.$ac_ext >&5
21758
21759         ac_lo=`expr $ac_mid + 1`
21760                         if test $ac_lo -le $ac_mid; then
21761                           ac_lo= ac_hi=
21762                           break
21763                         fi
21764                         ac_mid=`expr 2 '*' $ac_mid + 1`
21765 fi
21766
21767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21768   done
21769 else
21770   $as_echo "$as_me: failed program was:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21772
21773         cat >conftest.$ac_ext <<_ACEOF
21774 /* confdefs.h.  */
21775 _ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h.  */
21779 #include <stddef.h>
21780 #include <limits.h>
21781 int
21782 main ()
21783 {
21784 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
21785 test_array [0] = 0
21786
21787   ;
21788   return 0;
21789 }
21790 _ACEOF
21791 rm -f conftest.$ac_objext
21792 if { (ac_try="$ac_compile"
21793 case "(($ac_try" in
21794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795   *) ac_try_echo=$ac_try;;
21796 esac
21797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21798 $as_echo "$ac_try_echo") >&5
21799   (eval "$ac_compile") 2>conftest.er1
21800   ac_status=$?
21801   grep -v '^ *+' conftest.er1 >conftest.err
21802   rm -f conftest.er1
21803   cat conftest.err >&5
21804   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805   (exit $ac_status); } && {
21806          test -z "$ac_c_werror_flag" ||
21807          test ! -s conftest.err
21808        } && test -s conftest.$ac_objext; then
21809   ac_hi=-1 ac_mid=-1
21810   while :; do
21811     cat >conftest.$ac_ext <<_ACEOF
21812 /* confdefs.h.  */
21813 _ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h.  */
21817 #include <stddef.h>
21818 #include <limits.h>
21819 int
21820 main ()
21821 {
21822 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
21823 test_array [0] = 0
21824
21825   ;
21826   return 0;
21827 }
21828 _ACEOF
21829 rm -f conftest.$ac_objext
21830 if { (ac_try="$ac_compile"
21831 case "(($ac_try" in
21832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21833   *) ac_try_echo=$ac_try;;
21834 esac
21835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21836 $as_echo "$ac_try_echo") >&5
21837   (eval "$ac_compile") 2>conftest.er1
21838   ac_status=$?
21839   grep -v '^ *+' conftest.er1 >conftest.err
21840   rm -f conftest.er1
21841   cat conftest.err >&5
21842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843   (exit $ac_status); } && {
21844          test -z "$ac_c_werror_flag" ||
21845          test ! -s conftest.err
21846        } && test -s conftest.$ac_objext; then
21847   ac_lo=$ac_mid; break
21848 else
21849   $as_echo "$as_me: failed program was:" >&5
21850 sed 's/^/| /' conftest.$ac_ext >&5
21851
21852         ac_hi=`expr '(' $ac_mid ')' - 1`
21853                         if test $ac_mid -le $ac_hi; then
21854                           ac_lo= ac_hi=
21855                           break
21856                         fi
21857                         ac_mid=`expr 2 '*' $ac_mid`
21858 fi
21859
21860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21861   done
21862 else
21863   $as_echo "$as_me: failed program was:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21865
21866         ac_lo= ac_hi=
21867 fi
21868
21869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21870 fi
21871
21872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21873 # Binary search between lo and hi bounds.
21874 while test "x$ac_lo" != "x$ac_hi"; do
21875   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21876   cat >conftest.$ac_ext <<_ACEOF
21877 /* confdefs.h.  */
21878 _ACEOF
21879 cat confdefs.h >>conftest.$ac_ext
21880 cat >>conftest.$ac_ext <<_ACEOF
21881 /* end confdefs.h.  */
21882 #include <stddef.h>
21883 #include <limits.h>
21884 int
21885 main ()
21886 {
21887 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
21888 test_array [0] = 0
21889
21890   ;
21891   return 0;
21892 }
21893 _ACEOF
21894 rm -f conftest.$ac_objext
21895 if { (ac_try="$ac_compile"
21896 case "(($ac_try" in
21897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21898   *) ac_try_echo=$ac_try;;
21899 esac
21900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21901 $as_echo "$ac_try_echo") >&5
21902   (eval "$ac_compile") 2>conftest.er1
21903   ac_status=$?
21904   grep -v '^ *+' conftest.er1 >conftest.err
21905   rm -f conftest.er1
21906   cat conftest.err >&5
21907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908   (exit $ac_status); } && {
21909          test -z "$ac_c_werror_flag" ||
21910          test ! -s conftest.err
21911        } && test -s conftest.$ac_objext; then
21912   ac_hi=$ac_mid
21913 else
21914   $as_echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21916
21917         ac_lo=`expr '(' $ac_mid ')' + 1`
21918 fi
21919
21920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21921 done
21922 case $ac_lo in
21923 ?*) size_t_bits_minus_1=$ac_lo;;
21924 '') size_t_bits_minus_1= ;;
21925 esac
21926 else
21927   cat >conftest.$ac_ext <<_ACEOF
21928 /* confdefs.h.  */
21929 _ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h.  */
21933 #include <stddef.h>
21934 #include <limits.h>
21935 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
21936 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
21937 #include <stdio.h>
21938 #include <stdlib.h>
21939 int
21940 main ()
21941 {
21942
21943   FILE *f = fopen ("conftest.val", "w");
21944   if (! f)
21945     return 1;
21946   if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
21947     {
21948       long int i = longval ();
21949       if (i != (sizeof (size_t) * CHAR_BIT - 1))
21950         return 1;
21951       fprintf (f, "%ld", i);
21952     }
21953   else
21954     {
21955       unsigned long int i = ulongval ();
21956       if (i != (sizeof (size_t) * CHAR_BIT - 1))
21957         return 1;
21958       fprintf (f, "%lu", i);
21959     }
21960   /* Do not output a trailing newline, as this causes \r\n confusion
21961      on some platforms.  */
21962   return ferror (f) || fclose (f) != 0;
21963
21964   ;
21965   return 0;
21966 }
21967 _ACEOF
21968 rm -f conftest$ac_exeext
21969 if { (ac_try="$ac_link"
21970 case "(($ac_try" in
21971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972   *) ac_try_echo=$ac_try;;
21973 esac
21974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21975 $as_echo "$ac_try_echo") >&5
21976   (eval "$ac_link") 2>&5
21977   ac_status=$?
21978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21980   { (case "(($ac_try" in
21981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21982   *) ac_try_echo=$ac_try;;
21983 esac
21984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21985 $as_echo "$ac_try_echo") >&5
21986   (eval "$ac_try") 2>&5
21987   ac_status=$?
21988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989   (exit $ac_status); }; }; then
21990   size_t_bits_minus_1=`cat conftest.val`
21991 else
21992   $as_echo "$as_me: program exited with status $ac_status" >&5
21993 $as_echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21995
21996 ( exit $ac_status )
21997 size_t_bits_minus_1=
21998 fi
21999 rm -rf conftest.dSYM
22000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22001 fi
22002 rm -f conftest.val
22003
22004     if test "$cross_compiling" = yes; then
22005   # Depending upon the size, compute the lo and hi bounds.
22006 cat >conftest.$ac_ext <<_ACEOF
22007 /* confdefs.h.  */
22008 _ACEOF
22009 cat confdefs.h >>conftest.$ac_ext
22010 cat >>conftest.$ac_ext <<_ACEOF
22011 /* end confdefs.h.  */
22012 #include <stddef.h>
22013 int
22014 main ()
22015 {
22016 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
22017 test_array [0] = 0
22018
22019   ;
22020   return 0;
22021 }
22022 _ACEOF
22023 rm -f conftest.$ac_objext
22024 if { (ac_try="$ac_compile"
22025 case "(($ac_try" in
22026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027   *) ac_try_echo=$ac_try;;
22028 esac
22029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22030 $as_echo "$ac_try_echo") >&5
22031   (eval "$ac_compile") 2>conftest.er1
22032   ac_status=$?
22033   grep -v '^ *+' conftest.er1 >conftest.err
22034   rm -f conftest.er1
22035   cat conftest.err >&5
22036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037   (exit $ac_status); } && {
22038          test -z "$ac_c_werror_flag" ||
22039          test ! -s conftest.err
22040        } && test -s conftest.$ac_objext; then
22041   ac_lo=0 ac_mid=0
22042   while :; do
22043     cat >conftest.$ac_ext <<_ACEOF
22044 /* confdefs.h.  */
22045 _ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h.  */
22049 #include <stddef.h>
22050 int
22051 main ()
22052 {
22053 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
22054 test_array [0] = 0
22055
22056   ;
22057   return 0;
22058 }
22059 _ACEOF
22060 rm -f conftest.$ac_objext
22061 if { (ac_try="$ac_compile"
22062 case "(($ac_try" in
22063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22064   *) ac_try_echo=$ac_try;;
22065 esac
22066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22067 $as_echo "$ac_try_echo") >&5
22068   (eval "$ac_compile") 2>conftest.er1
22069   ac_status=$?
22070   grep -v '^ *+' conftest.er1 >conftest.err
22071   rm -f conftest.er1
22072   cat conftest.err >&5
22073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074   (exit $ac_status); } && {
22075          test -z "$ac_c_werror_flag" ||
22076          test ! -s conftest.err
22077        } && test -s conftest.$ac_objext; then
22078   ac_hi=$ac_mid; break
22079 else
22080   $as_echo "$as_me: failed program was:" >&5
22081 sed 's/^/| /' conftest.$ac_ext >&5
22082
22083         ac_lo=`expr $ac_mid + 1`
22084                         if test $ac_lo -le $ac_mid; then
22085                           ac_lo= ac_hi=
22086                           break
22087                         fi
22088                         ac_mid=`expr 2 '*' $ac_mid + 1`
22089 fi
22090
22091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22092   done
22093 else
22094   $as_echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22096
22097         cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h.  */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h.  */
22103 #include <stddef.h>
22104 int
22105 main ()
22106 {
22107 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
22108 test_array [0] = 0
22109
22110   ;
22111   return 0;
22112 }
22113 _ACEOF
22114 rm -f conftest.$ac_objext
22115 if { (ac_try="$ac_compile"
22116 case "(($ac_try" in
22117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118   *) ac_try_echo=$ac_try;;
22119 esac
22120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22121 $as_echo "$ac_try_echo") >&5
22122   (eval "$ac_compile") 2>conftest.er1
22123   ac_status=$?
22124   grep -v '^ *+' conftest.er1 >conftest.err
22125   rm -f conftest.er1
22126   cat conftest.err >&5
22127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128   (exit $ac_status); } && {
22129          test -z "$ac_c_werror_flag" ||
22130          test ! -s conftest.err
22131        } && test -s conftest.$ac_objext; then
22132   ac_hi=-1 ac_mid=-1
22133   while :; do
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 #include <stddef.h>
22141 int
22142 main ()
22143 {
22144 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
22145 test_array [0] = 0
22146
22147   ;
22148   return 0;
22149 }
22150 _ACEOF
22151 rm -f conftest.$ac_objext
22152 if { (ac_try="$ac_compile"
22153 case "(($ac_try" in
22154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155   *) ac_try_echo=$ac_try;;
22156 esac
22157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22158 $as_echo "$ac_try_echo") >&5
22159   (eval "$ac_compile") 2>conftest.er1
22160   ac_status=$?
22161   grep -v '^ *+' conftest.er1 >conftest.err
22162   rm -f conftest.er1
22163   cat conftest.err >&5
22164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165   (exit $ac_status); } && {
22166          test -z "$ac_c_werror_flag" ||
22167          test ! -s conftest.err
22168        } && test -s conftest.$ac_objext; then
22169   ac_lo=$ac_mid; break
22170 else
22171   $as_echo "$as_me: failed program was:" >&5
22172 sed 's/^/| /' conftest.$ac_ext >&5
22173
22174         ac_hi=`expr '(' $ac_mid ')' - 1`
22175                         if test $ac_mid -le $ac_hi; then
22176                           ac_lo= ac_hi=
22177                           break
22178                         fi
22179                         ac_mid=`expr 2 '*' $ac_mid`
22180 fi
22181
22182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22183   done
22184 else
22185   $as_echo "$as_me: failed program was:" >&5
22186 sed 's/^/| /' conftest.$ac_ext >&5
22187
22188         ac_lo= ac_hi=
22189 fi
22190
22191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22192 fi
22193
22194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22195 # Binary search between lo and hi bounds.
22196 while test "x$ac_lo" != "x$ac_hi"; do
22197   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22198   cat >conftest.$ac_ext <<_ACEOF
22199 /* confdefs.h.  */
22200 _ACEOF
22201 cat confdefs.h >>conftest.$ac_ext
22202 cat >>conftest.$ac_ext <<_ACEOF
22203 /* end confdefs.h.  */
22204 #include <stddef.h>
22205 int
22206 main ()
22207 {
22208 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
22209 test_array [0] = 0
22210
22211   ;
22212   return 0;
22213 }
22214 _ACEOF
22215 rm -f conftest.$ac_objext
22216 if { (ac_try="$ac_compile"
22217 case "(($ac_try" in
22218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219   *) ac_try_echo=$ac_try;;
22220 esac
22221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22222 $as_echo "$ac_try_echo") >&5
22223   (eval "$ac_compile") 2>conftest.er1
22224   ac_status=$?
22225   grep -v '^ *+' conftest.er1 >conftest.err
22226   rm -f conftest.er1
22227   cat conftest.err >&5
22228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229   (exit $ac_status); } && {
22230          test -z "$ac_c_werror_flag" ||
22231          test ! -s conftest.err
22232        } && test -s conftest.$ac_objext; then
22233   ac_hi=$ac_mid
22234 else
22235   $as_echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.$ac_ext >&5
22237
22238         ac_lo=`expr '(' $ac_mid ')' + 1`
22239 fi
22240
22241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22242 done
22243 case $ac_lo in
22244 ?*) fits_in_uint=$ac_lo;;
22245 '') fits_in_uint= ;;
22246 esac
22247 else
22248   cat >conftest.$ac_ext <<_ACEOF
22249 /* confdefs.h.  */
22250 _ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h.  */
22254 #include <stddef.h>
22255 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
22256 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
22257 #include <stdio.h>
22258 #include <stdlib.h>
22259 int
22260 main ()
22261 {
22262
22263   FILE *f = fopen ("conftest.val", "w");
22264   if (! f)
22265     return 1;
22266   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
22267     {
22268       long int i = longval ();
22269       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22270         return 1;
22271       fprintf (f, "%ld", i);
22272     }
22273   else
22274     {
22275       unsigned long int i = ulongval ();
22276       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22277         return 1;
22278       fprintf (f, "%lu", i);
22279     }
22280   /* Do not output a trailing newline, as this causes \r\n confusion
22281      on some platforms.  */
22282   return ferror (f) || fclose (f) != 0;
22283
22284   ;
22285   return 0;
22286 }
22287 _ACEOF
22288 rm -f conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292   *) ac_try_echo=$ac_try;;
22293 esac
22294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22295 $as_echo "$ac_try_echo") >&5
22296   (eval "$ac_link") 2>&5
22297   ac_status=$?
22298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
22307   ac_status=$?
22308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309   (exit $ac_status); }; }; then
22310   fits_in_uint=`cat conftest.val`
22311 else
22312   $as_echo "$as_me: program exited with status $ac_status" >&5
22313 $as_echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22315
22316 ( exit $ac_status )
22317 fits_in_uint=
22318 fi
22319 rm -rf conftest.dSYM
22320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22321 fi
22322 rm -f conftest.val
22323
22324     if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
22325       if test $fits_in_uint = 1; then
22326                         cat >conftest.$ac_ext <<_ACEOF
22327 /* confdefs.h.  */
22328 _ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h.  */
22332 #include <stddef.h>
22333           extern size_t foo;
22334           extern unsigned long foo;
22335
22336 int
22337 main ()
22338 {
22339
22340   ;
22341   return 0;
22342 }
22343 _ACEOF
22344 rm -f conftest.$ac_objext
22345 if { (ac_try="$ac_compile"
22346 case "(($ac_try" in
22347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348   *) ac_try_echo=$ac_try;;
22349 esac
22350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22351 $as_echo "$ac_try_echo") >&5
22352   (eval "$ac_compile") 2>conftest.er1
22353   ac_status=$?
22354   grep -v '^ *+' conftest.er1 >conftest.err
22355   rm -f conftest.er1
22356   cat conftest.err >&5
22357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358   (exit $ac_status); } && {
22359          test -z "$ac_c_werror_flag" ||
22360          test ! -s conftest.err
22361        } && test -s conftest.$ac_objext; then
22362   fits_in_uint=0
22363 else
22364   $as_echo "$as_me: failed program was:" >&5
22365 sed 's/^/| /' conftest.$ac_ext >&5
22366
22367
22368 fi
22369
22370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22371       fi
22372                         if test $fits_in_uint = 1; then
22373         result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
22374       else
22375         result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
22376       fi
22377     else
22378             result='((size_t)~(size_t)0)'
22379     fi
22380   fi
22381   { $as_echo "$as_me:$LINENO: result: $result" >&5
22382 $as_echo "$result" >&6; }
22383   if test "$result" != yes; then
22384
22385 cat >>confdefs.h <<_ACEOF
22386 #define SIZE_MAX $result
22387 _ACEOF
22388
22389   fi
22390
22391
22392
22393   gl_cv_func_snprintf_usable=no
22394
22395 for ac_func in snprintf
22396 do
22397 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22398 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22399 $as_echo_n "checking for $ac_func... " >&6; }
22400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22401   $as_echo_n "(cached) " >&6
22402 else
22403   cat >conftest.$ac_ext <<_ACEOF
22404 /* confdefs.h.  */
22405 _ACEOF
22406 cat confdefs.h >>conftest.$ac_ext
22407 cat >>conftest.$ac_ext <<_ACEOF
22408 /* end confdefs.h.  */
22409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22410    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22411 #define $ac_func innocuous_$ac_func
22412
22413 /* System header to define __stub macros and hopefully few prototypes,
22414     which can conflict with char $ac_func (); below.
22415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22416     <limits.h> exists even on freestanding compilers.  */
22417
22418 #ifdef __STDC__
22419 # include <limits.h>
22420 #else
22421 # include <assert.h>
22422 #endif
22423
22424 #undef $ac_func
22425
22426 /* Override any GCC internal prototype to avoid an error.
22427    Use char because int might match the return type of a GCC
22428    builtin and then its argument prototype would still apply.  */
22429 #ifdef __cplusplus
22430 extern "C"
22431 #endif
22432 char $ac_func ();
22433 /* The GNU C library defines this for functions which it implements
22434     to always fail with ENOSYS.  Some functions are actually named
22435     something starting with __ and the normal name is an alias.  */
22436 #if defined __stub_$ac_func || defined __stub___$ac_func
22437 choke me
22438 #endif
22439
22440 int
22441 main ()
22442 {
22443 return $ac_func ();
22444   ;
22445   return 0;
22446 }
22447 _ACEOF
22448 rm -f conftest.$ac_objext conftest$ac_exeext
22449 if { (ac_try="$ac_link"
22450 case "(($ac_try" in
22451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22452   *) ac_try_echo=$ac_try;;
22453 esac
22454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22455 $as_echo "$ac_try_echo") >&5
22456   (eval "$ac_link") 2>conftest.er1
22457   ac_status=$?
22458   grep -v '^ *+' conftest.er1 >conftest.err
22459   rm -f conftest.er1
22460   cat conftest.err >&5
22461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462   (exit $ac_status); } && {
22463          test -z "$ac_c_werror_flag" ||
22464          test ! -s conftest.err
22465        } && test -s conftest$ac_exeext && {
22466          test "$cross_compiling" = yes ||
22467          $as_test_x conftest$ac_exeext
22468        }; then
22469   eval "$as_ac_var=yes"
22470 else
22471   $as_echo "$as_me: failed program was:" >&5
22472 sed 's/^/| /' conftest.$ac_ext >&5
22473
22474         eval "$as_ac_var=no"
22475 fi
22476
22477 rm -rf conftest.dSYM
22478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22479       conftest$ac_exeext conftest.$ac_ext
22480 fi
22481 ac_res=`eval 'as_val=${'$as_ac_var'}
22482                  $as_echo "$as_val"'`
22483                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22484 $as_echo "$ac_res" >&6; }
22485 as_val=`eval 'as_val=${'$as_ac_var'}
22486                  $as_echo "$as_val"'`
22487    if test "x$as_val" = x""yes; then
22488   cat >>confdefs.h <<_ACEOF
22489 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22490 _ACEOF
22491
22492 fi
22493 done
22494
22495   if test $ac_cv_func_snprintf = yes; then
22496
22497
22498   { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
22499 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
22500 if test "${gl_cv_func_snprintf_size1+set}" = set; then
22501   $as_echo_n "(cached) " >&6
22502 else
22503
22504       if test "$cross_compiling" = yes; then
22505   gl_cv_func_snprintf_size1="guessing yes"
22506 else
22507   cat >conftest.$ac_ext <<_ACEOF
22508 /* confdefs.h.  */
22509 _ACEOF
22510 cat confdefs.h >>conftest.$ac_ext
22511 cat >>conftest.$ac_ext <<_ACEOF
22512 /* end confdefs.h.  */
22513
22514 #include <stdio.h>
22515 int main()
22516 {
22517   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
22518   snprintf (buf, 1, "%d", 12345);
22519   return buf[1] != 'E';
22520 }
22521 _ACEOF
22522 rm -f conftest$ac_exeext
22523 if { (ac_try="$ac_link"
22524 case "(($ac_try" in
22525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526   *) ac_try_echo=$ac_try;;
22527 esac
22528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22529 $as_echo "$ac_try_echo") >&5
22530   (eval "$ac_link") 2>&5
22531   ac_status=$?
22532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22534   { (case "(($ac_try" in
22535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536   *) ac_try_echo=$ac_try;;
22537 esac
22538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22539 $as_echo "$ac_try_echo") >&5
22540   (eval "$ac_try") 2>&5
22541   ac_status=$?
22542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543   (exit $ac_status); }; }; then
22544   gl_cv_func_snprintf_size1=yes
22545 else
22546   $as_echo "$as_me: program exited with status $ac_status" >&5
22547 $as_echo "$as_me: failed program was:" >&5
22548 sed 's/^/| /' conftest.$ac_ext >&5
22549
22550 ( exit $ac_status )
22551 gl_cv_func_snprintf_size1=no
22552 fi
22553 rm -rf conftest.dSYM
22554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22555 fi
22556
22557
22558
22559 fi
22560 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
22561 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
22562
22563     case "$gl_cv_func_snprintf_size1" in
22564       *yes)
22565         gl_cv_func_snprintf_usable=yes
22566         ;;
22567     esac
22568   fi
22569   if test $gl_cv_func_snprintf_usable = no; then
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
22581
22582   if test $ac_cv_func_snprintf = yes; then
22583     REPLACE_SNPRINTF=1
22584   fi
22585   :
22586
22587   fi
22588
22589   :
22590
22591
22592
22593
22594
22595   if test $ac_cv_have_decl_snprintf = no; then
22596     HAVE_DECL_SNPRINTF=0
22597   fi
22598
22599
22600
22601   GNULIB_SNPRINTF=1
22602
22603      { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
22604 $as_echo_n "checking for socklen_t... " >&6; }
22605 if test "${ac_cv_type_socklen_t+set}" = set; then
22606   $as_echo_n "(cached) " >&6
22607 else
22608   ac_cv_type_socklen_t=no
22609 cat >conftest.$ac_ext <<_ACEOF
22610 /* confdefs.h.  */
22611 _ACEOF
22612 cat confdefs.h >>conftest.$ac_ext
22613 cat >>conftest.$ac_ext <<_ACEOF
22614 /* end confdefs.h.  */
22615 #include <sys/types.h>
22616       #if HAVE_SYS_SOCKET_H
22617       # include <sys/socket.h>
22618       #elif HAVE_WS2TCPIP_H
22619       # include <ws2tcpip.h>
22620       #endif
22621
22622 int
22623 main ()
22624 {
22625 if (sizeof (socklen_t))
22626        return 0;
22627   ;
22628   return 0;
22629 }
22630 _ACEOF
22631 rm -f conftest.$ac_objext
22632 if { (ac_try="$ac_compile"
22633 case "(($ac_try" in
22634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22635   *) ac_try_echo=$ac_try;;
22636 esac
22637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22638 $as_echo "$ac_try_echo") >&5
22639   (eval "$ac_compile") 2>conftest.er1
22640   ac_status=$?
22641   grep -v '^ *+' conftest.er1 >conftest.err
22642   rm -f conftest.er1
22643   cat conftest.err >&5
22644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645   (exit $ac_status); } && {
22646          test -z "$ac_c_werror_flag" ||
22647          test ! -s conftest.err
22648        } && test -s conftest.$ac_objext; then
22649   cat >conftest.$ac_ext <<_ACEOF
22650 /* confdefs.h.  */
22651 _ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h.  */
22655 #include <sys/types.h>
22656       #if HAVE_SYS_SOCKET_H
22657       # include <sys/socket.h>
22658       #elif HAVE_WS2TCPIP_H
22659       # include <ws2tcpip.h>
22660       #endif
22661
22662 int
22663 main ()
22664 {
22665 if (sizeof ((socklen_t)))
22666           return 0;
22667   ;
22668   return 0;
22669 }
22670 _ACEOF
22671 rm -f conftest.$ac_objext
22672 if { (ac_try="$ac_compile"
22673 case "(($ac_try" in
22674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22675   *) ac_try_echo=$ac_try;;
22676 esac
22677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22678 $as_echo "$ac_try_echo") >&5
22679   (eval "$ac_compile") 2>conftest.er1
22680   ac_status=$?
22681   grep -v '^ *+' conftest.er1 >conftest.err
22682   rm -f conftest.er1
22683   cat conftest.err >&5
22684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685   (exit $ac_status); } && {
22686          test -z "$ac_c_werror_flag" ||
22687          test ! -s conftest.err
22688        } && test -s conftest.$ac_objext; then
22689   :
22690 else
22691   $as_echo "$as_me: failed program was:" >&5
22692 sed 's/^/| /' conftest.$ac_ext >&5
22693
22694         ac_cv_type_socklen_t=yes
22695 fi
22696
22697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22698 else
22699   $as_echo "$as_me: failed program was:" >&5
22700 sed 's/^/| /' conftest.$ac_ext >&5
22701
22702
22703 fi
22704
22705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22706 fi
22707 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22708 $as_echo "$ac_cv_type_socklen_t" >&6; }
22709 if test "x$ac_cv_type_socklen_t" = x""yes; then
22710   :
22711 else
22712   { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
22713 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22714       if test "${gl_cv_socklen_t_equiv+set}" = set; then
22715   $as_echo_n "(cached) " >&6
22716 else
22717   # Systems have either "struct sockaddr *" or
22718          # "void *" as the second argument to getpeername
22719          gl_cv_socklen_t_equiv=
22720          for arg2 in "struct sockaddr" void; do
22721            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
22722              cat >conftest.$ac_ext <<_ACEOF
22723 /* confdefs.h.  */
22724 _ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h.  */
22728 #include <sys/types.h>
22729                 #include <sys/socket.h>
22730
22731                 int getpeername (int, $arg2 *, $t *);
22732 int
22733 main ()
22734 {
22735 $t len;
22736                 getpeername (0, 0, &len);
22737   ;
22738   return 0;
22739 }
22740 _ACEOF
22741 rm -f conftest.$ac_objext
22742 if { (ac_try="$ac_compile"
22743 case "(($ac_try" in
22744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745   *) ac_try_echo=$ac_try;;
22746 esac
22747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22748 $as_echo "$ac_try_echo") >&5
22749   (eval "$ac_compile") 2>conftest.er1
22750   ac_status=$?
22751   grep -v '^ *+' conftest.er1 >conftest.err
22752   rm -f conftest.er1
22753   cat conftest.err >&5
22754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755   (exit $ac_status); } && {
22756          test -z "$ac_c_werror_flag" ||
22757          test ! -s conftest.err
22758        } && test -s conftest.$ac_objext; then
22759   gl_cv_socklen_t_equiv="$t"
22760 else
22761   $as_echo "$as_me: failed program was:" >&5
22762 sed 's/^/| /' conftest.$ac_ext >&5
22763
22764
22765 fi
22766
22767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22768              test "$gl_cv_socklen_t_equiv" != "" && break
22769            done
22770            test "$gl_cv_socklen_t_equiv" != "" && break
22771          done
22772
22773 fi
22774
22775       if test "$gl_cv_socklen_t_equiv" = ""; then
22776         { { $as_echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
22777 $as_echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
22778    { (exit 1); exit 1; }; }
22779       fi
22780       { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
22781 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22782
22783 cat >>confdefs.h <<_ACEOF
22784 #define socklen_t $gl_cv_socklen_t_equiv
22785 _ACEOF
22786
22787 fi
22788
22789
22790   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
22791 $as_echo_n "checking for ssize_t... " >&6; }
22792 if test "${gt_cv_ssize_t+set}" = set; then
22793   $as_echo_n "(cached) " >&6
22794 else
22795   cat >conftest.$ac_ext <<_ACEOF
22796 /* confdefs.h.  */
22797 _ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h.  */
22801 #include <sys/types.h>
22802 int
22803 main ()
22804 {
22805 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22806         return !x;
22807   ;
22808   return 0;
22809 }
22810 _ACEOF
22811 rm -f conftest.$ac_objext
22812 if { (ac_try="$ac_compile"
22813 case "(($ac_try" in
22814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22815   *) ac_try_echo=$ac_try;;
22816 esac
22817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22818 $as_echo "$ac_try_echo") >&5
22819   (eval "$ac_compile") 2>conftest.er1
22820   ac_status=$?
22821   grep -v '^ *+' conftest.er1 >conftest.err
22822   rm -f conftest.er1
22823   cat conftest.err >&5
22824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825   (exit $ac_status); } && {
22826          test -z "$ac_c_werror_flag" ||
22827          test ! -s conftest.err
22828        } && test -s conftest.$ac_objext; then
22829   gt_cv_ssize_t=yes
22830 else
22831   $as_echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22833
22834         gt_cv_ssize_t=no
22835 fi
22836
22837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22838 fi
22839 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
22840 $as_echo "$gt_cv_ssize_t" >&6; }
22841   if test $gt_cv_ssize_t = no; then
22842
22843 cat >>confdefs.h <<\_ACEOF
22844 #define ssize_t int
22845 _ACEOF
22846
22847   fi
22848
22849
22850
22851
22852   # Define two additional variables used in the Makefile substitution.
22853
22854   if test "$ac_cv_header_stdbool_h" = yes; then
22855     STDBOOL_H=''
22856   else
22857     STDBOOL_H='stdbool.h'
22858   fi
22859
22860
22861   if test "$ac_cv_type__Bool" = yes; then
22862     HAVE__BOOL=1
22863   else
22864     HAVE__BOOL=0
22865   fi
22866
22867
22868
22869
22870
22871   if test $ac_cv_type_long_long_int = yes; then
22872     HAVE_LONG_LONG_INT=1
22873   else
22874     HAVE_LONG_LONG_INT=0
22875   fi
22876
22877
22878   if test $ac_cv_type_unsigned_long_long_int = yes; then
22879     HAVE_UNSIGNED_LONG_LONG_INT=1
22880   else
22881     HAVE_UNSIGNED_LONG_LONG_INT=0
22882   fi
22883
22884
22885       if test $ac_cv_header_inttypes_h = yes; then
22886     HAVE_INTTYPES_H=1
22887   else
22888     HAVE_INTTYPES_H=0
22889   fi
22890
22891
22892       if test $ac_cv_header_sys_types_h = yes; then
22893     HAVE_SYS_TYPES_H=1
22894   else
22895     HAVE_SYS_TYPES_H=0
22896   fi
22897
22898
22899
22900
22901
22902
22903   :
22904
22905
22906
22907
22908
22909
22910
22911      if test $gl_cv_have_include_next = yes; then
22912        gl_cv_next_stdint_h='<'stdint.h'>'
22913      else
22914        { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
22915 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
22916 if test "${gl_cv_next_stdint_h+set}" = set; then
22917   $as_echo_n "(cached) " >&6
22918 else
22919
22920           if test $ac_cv_header_stdint_h = yes; then
22921             cat >conftest.$ac_ext <<_ACEOF
22922 /* confdefs.h.  */
22923 _ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h.  */
22927 #include <stdint.h>
22928
22929 _ACEOF
22930                                                                     case "$host_os" in
22931               aix*) gl_absname_cpp="$ac_cpp -C" ;;
22932               *)    gl_absname_cpp="$ac_cpp" ;;
22933             esac
22934                                     gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22935                sed -n '\#/stdint.h#{
22936                  s#.*"\(.*/stdint.h\)".*#\1#
22937                  s#^/[^/]#//&#
22938                  p
22939                  q
22940                }'`'"'
22941           else
22942             gl_cv_next_stdint_h='<'stdint.h'>'
22943           fi
22944
22945 fi
22946 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
22947 $as_echo "$gl_cv_next_stdint_h" >&6; }
22948      fi
22949      NEXT_STDINT_H=$gl_cv_next_stdint_h
22950
22951
22952
22953   if test $ac_cv_header_stdint_h = yes; then
22954     HAVE_STDINT_H=1
22955   else
22956     HAVE_STDINT_H=0
22957   fi
22958
22959
22960     if test $ac_cv_header_stdint_h = yes; then
22961     { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
22962 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
22963 if test "${gl_cv_header_working_stdint_h+set}" = set; then
22964   $as_echo_n "(cached) " >&6
22965 else
22966   gl_cv_header_working_stdint_h=no
22967        cat >conftest.$ac_ext <<_ACEOF
22968
22969          /* confdefs.h.  */
22970 _ACEOF
22971 cat confdefs.h >>conftest.$ac_ext
22972 cat >>conftest.$ac_ext <<_ACEOF
22973 /* end confdefs.h.  */
22974
22975 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
22976 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
22977 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
22978 #include <stdint.h>
22979 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
22980 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
22981 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
22982 #endif
22983
22984
22985   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22986      included before <wchar.h>.  */
22987   #include <stddef.h>
22988   #include <signal.h>
22989   #if HAVE_WCHAR_H
22990   # include <stdio.h>
22991   # include <time.h>
22992   # include <wchar.h>
22993   #endif
22994
22995
22996 #ifdef INT8_MAX
22997 int8_t a1 = INT8_MAX;
22998 int8_t a1min = INT8_MIN;
22999 #endif
23000 #ifdef INT16_MAX
23001 int16_t a2 = INT16_MAX;
23002 int16_t a2min = INT16_MIN;
23003 #endif
23004 #ifdef INT32_MAX
23005 int32_t a3 = INT32_MAX;
23006 int32_t a3min = INT32_MIN;
23007 #endif
23008 #ifdef INT64_MAX
23009 int64_t a4 = INT64_MAX;
23010 int64_t a4min = INT64_MIN;
23011 #endif
23012 #ifdef UINT8_MAX
23013 uint8_t b1 = UINT8_MAX;
23014 #else
23015 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
23016 #endif
23017 #ifdef UINT16_MAX
23018 uint16_t b2 = UINT16_MAX;
23019 #endif
23020 #ifdef UINT32_MAX
23021 uint32_t b3 = UINT32_MAX;
23022 #endif
23023 #ifdef UINT64_MAX
23024 uint64_t b4 = UINT64_MAX;
23025 #endif
23026 int_least8_t c1 = INT8_C (0x7f);
23027 int_least8_t c1max = INT_LEAST8_MAX;
23028 int_least8_t c1min = INT_LEAST8_MIN;
23029 int_least16_t c2 = INT16_C (0x7fff);
23030 int_least16_t c2max = INT_LEAST16_MAX;
23031 int_least16_t c2min = INT_LEAST16_MIN;
23032 int_least32_t c3 = INT32_C (0x7fffffff);
23033 int_least32_t c3max = INT_LEAST32_MAX;
23034 int_least32_t c3min = INT_LEAST32_MIN;
23035 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
23036 int_least64_t c4max = INT_LEAST64_MAX;
23037 int_least64_t c4min = INT_LEAST64_MIN;
23038 uint_least8_t d1 = UINT8_C (0xff);
23039 uint_least8_t d1max = UINT_LEAST8_MAX;
23040 uint_least16_t d2 = UINT16_C (0xffff);
23041 uint_least16_t d2max = UINT_LEAST16_MAX;
23042 uint_least32_t d3 = UINT32_C (0xffffffff);
23043 uint_least32_t d3max = UINT_LEAST32_MAX;
23044 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
23045 uint_least64_t d4max = UINT_LEAST64_MAX;
23046 int_fast8_t e1 = INT_FAST8_MAX;
23047 int_fast8_t e1min = INT_FAST8_MIN;
23048 int_fast16_t e2 = INT_FAST16_MAX;
23049 int_fast16_t e2min = INT_FAST16_MIN;
23050 int_fast32_t e3 = INT_FAST32_MAX;
23051 int_fast32_t e3min = INT_FAST32_MIN;
23052 int_fast64_t e4 = INT_FAST64_MAX;
23053 int_fast64_t e4min = INT_FAST64_MIN;
23054 uint_fast8_t f1 = UINT_FAST8_MAX;
23055 uint_fast16_t f2 = UINT_FAST16_MAX;
23056 uint_fast32_t f3 = UINT_FAST32_MAX;
23057 uint_fast64_t f4 = UINT_FAST64_MAX;
23058 #ifdef INTPTR_MAX
23059 intptr_t g = INTPTR_MAX;
23060 intptr_t gmin = INTPTR_MIN;
23061 #endif
23062 #ifdef UINTPTR_MAX
23063 uintptr_t h = UINTPTR_MAX;
23064 #endif
23065 intmax_t i = INTMAX_MAX;
23066 uintmax_t j = UINTMAX_MAX;
23067
23068 #include <limits.h> /* for CHAR_BIT */
23069 #define TYPE_MINIMUM(t) \
23070   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
23071 #define TYPE_MAXIMUM(t) \
23072   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
23073 struct s {
23074   int check_PTRDIFF:
23075       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
23076       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
23077       ? 1 : -1;
23078   /* Detect bug in FreeBSD 6.0 / ia64.  */
23079   int check_SIG_ATOMIC:
23080       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
23081       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
23082       ? 1 : -1;
23083   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
23084   int check_WCHAR:
23085       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
23086       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
23087       ? 1 : -1;
23088   /* Detect bug in mingw.  */
23089   int check_WINT:
23090       WINT_MIN == TYPE_MINIMUM (wint_t)
23091       && WINT_MAX == TYPE_MAXIMUM (wint_t)
23092       ? 1 : -1;
23093
23094   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
23095   int check_UINT8_C:
23096         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
23097   int check_UINT16_C:
23098         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
23099
23100   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
23101 #ifdef UINT8_MAX
23102   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
23103 #endif
23104 #ifdef UINT16_MAX
23105   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
23106 #endif
23107 #ifdef UINT32_MAX
23108   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
23109 #endif
23110 #ifdef UINT64_MAX
23111   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
23112 #endif
23113   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
23114   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
23115   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
23116   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
23117   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
23118   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
23119   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
23120   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
23121   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
23122   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
23123   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
23124 };
23125
23126 int
23127 main ()
23128 {
23129
23130   ;
23131   return 0;
23132 }
23133 _ACEOF
23134 rm -f conftest.$ac_objext
23135 if { (ac_try="$ac_compile"
23136 case "(($ac_try" in
23137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138   *) ac_try_echo=$ac_try;;
23139 esac
23140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23141 $as_echo "$ac_try_echo") >&5
23142   (eval "$ac_compile") 2>conftest.er1
23143   ac_status=$?
23144   grep -v '^ *+' conftest.er1 >conftest.err
23145   rm -f conftest.er1
23146   cat conftest.err >&5
23147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148   (exit $ac_status); } && {
23149          test -z "$ac_c_werror_flag" ||
23150          test ! -s conftest.err
23151        } && test -s conftest.$ac_objext; then
23152                                                     if test "$cross_compiling" = yes; then
23153                  gl_cv_header_working_stdint_h=yes
23154
23155 else
23156   cat >conftest.$ac_ext <<_ACEOF
23157
23158             /* confdefs.h.  */
23159 _ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h.  */
23163
23164 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
23165 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
23166 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
23167 #include <stdint.h>
23168
23169
23170   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23171      included before <wchar.h>.  */
23172   #include <stddef.h>
23173   #include <signal.h>
23174   #if HAVE_WCHAR_H
23175   # include <stdio.h>
23176   # include <time.h>
23177   # include <wchar.h>
23178   #endif
23179
23180
23181 #include <stdio.h>
23182 #include <string.h>
23183 #define MVAL(macro) MVAL1(macro)
23184 #define MVAL1(expression) #expression
23185 static const char *macro_values[] =
23186   {
23187 #ifdef INT8_MAX
23188     MVAL (INT8_MAX),
23189 #endif
23190 #ifdef INT16_MAX
23191     MVAL (INT16_MAX),
23192 #endif
23193 #ifdef INT32_MAX
23194     MVAL (INT32_MAX),
23195 #endif
23196 #ifdef INT64_MAX
23197     MVAL (INT64_MAX),
23198 #endif
23199 #ifdef UINT8_MAX
23200     MVAL (UINT8_MAX),
23201 #endif
23202 #ifdef UINT16_MAX
23203     MVAL (UINT16_MAX),
23204 #endif
23205 #ifdef UINT32_MAX
23206     MVAL (UINT32_MAX),
23207 #endif
23208 #ifdef UINT64_MAX
23209     MVAL (UINT64_MAX),
23210 #endif
23211     NULL
23212   };
23213
23214 int
23215 main ()
23216 {
23217
23218   const char **mv;
23219   for (mv = macro_values; *mv != NULL; mv++)
23220     {
23221       const char *value = *mv;
23222       /* Test whether it looks like a cast expression.  */
23223       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
23224           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
23225           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
23226           || strncmp (value, "((int)"/*)*/, 6) == 0
23227           || strncmp (value, "((signed short)"/*)*/, 15) == 0
23228           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
23229         return 1;
23230     }
23231   return 0;
23232
23233   ;
23234   return 0;
23235 }
23236 _ACEOF
23237 rm -f conftest$ac_exeext
23238 if { (ac_try="$ac_link"
23239 case "(($ac_try" in
23240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23241   *) ac_try_echo=$ac_try;;
23242 esac
23243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23244 $as_echo "$ac_try_echo") >&5
23245   (eval "$ac_link") 2>&5
23246   ac_status=$?
23247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23249   { (case "(($ac_try" in
23250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23251   *) ac_try_echo=$ac_try;;
23252 esac
23253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23254 $as_echo "$ac_try_echo") >&5
23255   (eval "$ac_try") 2>&5
23256   ac_status=$?
23257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258   (exit $ac_status); }; }; then
23259   gl_cv_header_working_stdint_h=yes
23260 else
23261   $as_echo "$as_me: program exited with status $ac_status" >&5
23262 $as_echo "$as_me: failed program was:" >&5
23263 sed 's/^/| /' conftest.$ac_ext >&5
23264
23265 fi
23266 rm -rf conftest.dSYM
23267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23268 fi
23269
23270
23271
23272 else
23273   $as_echo "$as_me: failed program was:" >&5
23274 sed 's/^/| /' conftest.$ac_ext >&5
23275
23276
23277 fi
23278
23279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23280
23281 fi
23282 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
23283 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
23284   fi
23285   if test "$gl_cv_header_working_stdint_h" = yes; then
23286     STDINT_H=
23287   else
23288
23289
23290 for ac_header in sys/inttypes.h sys/bitypes.h
23291 do
23292 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23294   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23295 $as_echo_n "checking for $ac_header... " >&6; }
23296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23297   $as_echo_n "(cached) " >&6
23298 fi
23299 ac_res=`eval 'as_val=${'$as_ac_Header'}
23300                  $as_echo "$as_val"'`
23301                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23302 $as_echo "$ac_res" >&6; }
23303 else
23304   # Is the header compilable?
23305 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23306 $as_echo_n "checking $ac_header usability... " >&6; }
23307 cat >conftest.$ac_ext <<_ACEOF
23308 /* confdefs.h.  */
23309 _ACEOF
23310 cat confdefs.h >>conftest.$ac_ext
23311 cat >>conftest.$ac_ext <<_ACEOF
23312 /* end confdefs.h.  */
23313 $ac_includes_default
23314 #include <$ac_header>
23315 _ACEOF
23316 rm -f conftest.$ac_objext
23317 if { (ac_try="$ac_compile"
23318 case "(($ac_try" in
23319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23320   *) ac_try_echo=$ac_try;;
23321 esac
23322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23323 $as_echo "$ac_try_echo") >&5
23324   (eval "$ac_compile") 2>conftest.er1
23325   ac_status=$?
23326   grep -v '^ *+' conftest.er1 >conftest.err
23327   rm -f conftest.er1
23328   cat conftest.err >&5
23329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330   (exit $ac_status); } && {
23331          test -z "$ac_c_werror_flag" ||
23332          test ! -s conftest.err
23333        } && test -s conftest.$ac_objext; then
23334   ac_header_compiler=yes
23335 else
23336   $as_echo "$as_me: failed program was:" >&5
23337 sed 's/^/| /' conftest.$ac_ext >&5
23338
23339         ac_header_compiler=no
23340 fi
23341
23342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23343 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23344 $as_echo "$ac_header_compiler" >&6; }
23345
23346 # Is the header present?
23347 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23348 $as_echo_n "checking $ac_header presence... " >&6; }
23349 cat >conftest.$ac_ext <<_ACEOF
23350 /* confdefs.h.  */
23351 _ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h.  */
23355 #include <$ac_header>
23356 _ACEOF
23357 if { (ac_try="$ac_cpp conftest.$ac_ext"
23358 case "(($ac_try" in
23359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23360   *) ac_try_echo=$ac_try;;
23361 esac
23362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23363 $as_echo "$ac_try_echo") >&5
23364   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23365   ac_status=$?
23366   grep -v '^ *+' conftest.er1 >conftest.err
23367   rm -f conftest.er1
23368   cat conftest.err >&5
23369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370   (exit $ac_status); } >/dev/null && {
23371          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23372          test ! -s conftest.err
23373        }; then
23374   ac_header_preproc=yes
23375 else
23376   $as_echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23378
23379   ac_header_preproc=no
23380 fi
23381
23382 rm -f conftest.err conftest.$ac_ext
23383 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23384 $as_echo "$ac_header_preproc" >&6; }
23385
23386 # So?  What about this header?
23387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23388   yes:no: )
23389     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23390 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23391     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23392 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23393     ac_header_preproc=yes
23394     ;;
23395   no:yes:* )
23396     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23397 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23398     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23399 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23400     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23401 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23402     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23403 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23404     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23405 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23406     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23407 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23408
23409     ;;
23410 esac
23411 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23412 $as_echo_n "checking for $ac_header... " >&6; }
23413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23414   $as_echo_n "(cached) " >&6
23415 else
23416   eval "$as_ac_Header=\$ac_header_preproc"
23417 fi
23418 ac_res=`eval 'as_val=${'$as_ac_Header'}
23419                  $as_echo "$as_val"'`
23420                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23421 $as_echo "$ac_res" >&6; }
23422
23423 fi
23424 as_val=`eval 'as_val=${'$as_ac_Header'}
23425                  $as_echo "$as_val"'`
23426    if test "x$as_val" = x""yes; then
23427   cat >>confdefs.h <<_ACEOF
23428 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23429 _ACEOF
23430
23431 fi
23432
23433 done
23434
23435     if test $ac_cv_header_sys_inttypes_h = yes; then
23436       HAVE_SYS_INTTYPES_H=1
23437     else
23438       HAVE_SYS_INTTYPES_H=0
23439     fi
23440
23441     if test $ac_cv_header_sys_bitypes_h = yes; then
23442       HAVE_SYS_BITYPES_H=1
23443     else
23444       HAVE_SYS_BITYPES_H=0
23445     fi
23446
23447
23448
23449   :
23450
23451
23452
23453
23454
23455
23456
23457
23458   if test $APPLE_UNIVERSAL_BUILD = 0; then
23459
23460
23461
23462
23463   for gltype in ptrdiff_t size_t ; do
23464     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
23465 $as_echo_n "checking for bit size of $gltype... " >&6; }
23466 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
23467   $as_echo_n "(cached) " >&6
23468 else
23469   if test "$cross_compiling" = yes; then
23470   # Depending upon the size, compute the lo and hi bounds.
23471 cat >conftest.$ac_ext <<_ACEOF
23472 /* confdefs.h.  */
23473 _ACEOF
23474 cat confdefs.h >>conftest.$ac_ext
23475 cat >>conftest.$ac_ext <<_ACEOF
23476 /* end confdefs.h.  */
23477
23478   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23479      included before <wchar.h>.  */
23480   #include <stddef.h>
23481   #include <signal.h>
23482   #if HAVE_WCHAR_H
23483   # include <stdio.h>
23484   # include <time.h>
23485   # include <wchar.h>
23486   #endif
23487
23488 #include <limits.h>
23489 int
23490 main ()
23491 {
23492 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
23493 test_array [0] = 0
23494
23495   ;
23496   return 0;
23497 }
23498 _ACEOF
23499 rm -f conftest.$ac_objext
23500 if { (ac_try="$ac_compile"
23501 case "(($ac_try" in
23502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23503   *) ac_try_echo=$ac_try;;
23504 esac
23505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23506 $as_echo "$ac_try_echo") >&5
23507   (eval "$ac_compile") 2>conftest.er1
23508   ac_status=$?
23509   grep -v '^ *+' conftest.er1 >conftest.err
23510   rm -f conftest.er1
23511   cat conftest.err >&5
23512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513   (exit $ac_status); } && {
23514          test -z "$ac_c_werror_flag" ||
23515          test ! -s conftest.err
23516        } && test -s conftest.$ac_objext; then
23517   ac_lo=0 ac_mid=0
23518   while :; do
23519     cat >conftest.$ac_ext <<_ACEOF
23520 /* confdefs.h.  */
23521 _ACEOF
23522 cat confdefs.h >>conftest.$ac_ext
23523 cat >>conftest.$ac_ext <<_ACEOF
23524 /* end confdefs.h.  */
23525
23526   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23527      included before <wchar.h>.  */
23528   #include <stddef.h>
23529   #include <signal.h>
23530   #if HAVE_WCHAR_H
23531   # include <stdio.h>
23532   # include <time.h>
23533   # include <wchar.h>
23534   #endif
23535
23536 #include <limits.h>
23537 int
23538 main ()
23539 {
23540 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
23541 test_array [0] = 0
23542
23543   ;
23544   return 0;
23545 }
23546 _ACEOF
23547 rm -f conftest.$ac_objext
23548 if { (ac_try="$ac_compile"
23549 case "(($ac_try" in
23550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23551   *) ac_try_echo=$ac_try;;
23552 esac
23553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23554 $as_echo "$ac_try_echo") >&5
23555   (eval "$ac_compile") 2>conftest.er1
23556   ac_status=$?
23557   grep -v '^ *+' conftest.er1 >conftest.err
23558   rm -f conftest.er1
23559   cat conftest.err >&5
23560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561   (exit $ac_status); } && {
23562          test -z "$ac_c_werror_flag" ||
23563          test ! -s conftest.err
23564        } && test -s conftest.$ac_objext; then
23565   ac_hi=$ac_mid; break
23566 else
23567   $as_echo "$as_me: failed program was:" >&5
23568 sed 's/^/| /' conftest.$ac_ext >&5
23569
23570         ac_lo=`expr $ac_mid + 1`
23571                         if test $ac_lo -le $ac_mid; then
23572                           ac_lo= ac_hi=
23573                           break
23574                         fi
23575                         ac_mid=`expr 2 '*' $ac_mid + 1`
23576 fi
23577
23578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23579   done
23580 else
23581   $as_echo "$as_me: failed program was:" >&5
23582 sed 's/^/| /' conftest.$ac_ext >&5
23583
23584         cat >conftest.$ac_ext <<_ACEOF
23585 /* confdefs.h.  */
23586 _ACEOF
23587 cat confdefs.h >>conftest.$ac_ext
23588 cat >>conftest.$ac_ext <<_ACEOF
23589 /* end confdefs.h.  */
23590
23591   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23592      included before <wchar.h>.  */
23593   #include <stddef.h>
23594   #include <signal.h>
23595   #if HAVE_WCHAR_H
23596   # include <stdio.h>
23597   # include <time.h>
23598   # include <wchar.h>
23599   #endif
23600
23601 #include <limits.h>
23602 int
23603 main ()
23604 {
23605 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
23606 test_array [0] = 0
23607
23608   ;
23609   return 0;
23610 }
23611 _ACEOF
23612 rm -f conftest.$ac_objext
23613 if { (ac_try="$ac_compile"
23614 case "(($ac_try" in
23615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23616   *) ac_try_echo=$ac_try;;
23617 esac
23618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23619 $as_echo "$ac_try_echo") >&5
23620   (eval "$ac_compile") 2>conftest.er1
23621   ac_status=$?
23622   grep -v '^ *+' conftest.er1 >conftest.err
23623   rm -f conftest.er1
23624   cat conftest.err >&5
23625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626   (exit $ac_status); } && {
23627          test -z "$ac_c_werror_flag" ||
23628          test ! -s conftest.err
23629        } && test -s conftest.$ac_objext; then
23630   ac_hi=-1 ac_mid=-1
23631   while :; do
23632     cat >conftest.$ac_ext <<_ACEOF
23633 /* confdefs.h.  */
23634 _ACEOF
23635 cat confdefs.h >>conftest.$ac_ext
23636 cat >>conftest.$ac_ext <<_ACEOF
23637 /* end confdefs.h.  */
23638
23639   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23640      included before <wchar.h>.  */
23641   #include <stddef.h>
23642   #include <signal.h>
23643   #if HAVE_WCHAR_H
23644   # include <stdio.h>
23645   # include <time.h>
23646   # include <wchar.h>
23647   #endif
23648
23649 #include <limits.h>
23650 int
23651 main ()
23652 {
23653 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
23654 test_array [0] = 0
23655
23656   ;
23657   return 0;
23658 }
23659 _ACEOF
23660 rm -f conftest.$ac_objext
23661 if { (ac_try="$ac_compile"
23662 case "(($ac_try" in
23663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23664   *) ac_try_echo=$ac_try;;
23665 esac
23666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23667 $as_echo "$ac_try_echo") >&5
23668   (eval "$ac_compile") 2>conftest.er1
23669   ac_status=$?
23670   grep -v '^ *+' conftest.er1 >conftest.err
23671   rm -f conftest.er1
23672   cat conftest.err >&5
23673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674   (exit $ac_status); } && {
23675          test -z "$ac_c_werror_flag" ||
23676          test ! -s conftest.err
23677        } && test -s conftest.$ac_objext; then
23678   ac_lo=$ac_mid; break
23679 else
23680   $as_echo "$as_me: failed program was:" >&5
23681 sed 's/^/| /' conftest.$ac_ext >&5
23682
23683         ac_hi=`expr '(' $ac_mid ')' - 1`
23684                         if test $ac_mid -le $ac_hi; then
23685                           ac_lo= ac_hi=
23686                           break
23687                         fi
23688                         ac_mid=`expr 2 '*' $ac_mid`
23689 fi
23690
23691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23692   done
23693 else
23694   $as_echo "$as_me: failed program was:" >&5
23695 sed 's/^/| /' conftest.$ac_ext >&5
23696
23697         ac_lo= ac_hi=
23698 fi
23699
23700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23701 fi
23702
23703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23704 # Binary search between lo and hi bounds.
23705 while test "x$ac_lo" != "x$ac_hi"; do
23706   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23707   cat >conftest.$ac_ext <<_ACEOF
23708 /* confdefs.h.  */
23709 _ACEOF
23710 cat confdefs.h >>conftest.$ac_ext
23711 cat >>conftest.$ac_ext <<_ACEOF
23712 /* end confdefs.h.  */
23713
23714   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23715      included before <wchar.h>.  */
23716   #include <stddef.h>
23717   #include <signal.h>
23718   #if HAVE_WCHAR_H
23719   # include <stdio.h>
23720   # include <time.h>
23721   # include <wchar.h>
23722   #endif
23723
23724 #include <limits.h>
23725 int
23726 main ()
23727 {
23728 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
23729 test_array [0] = 0
23730
23731   ;
23732   return 0;
23733 }
23734 _ACEOF
23735 rm -f conftest.$ac_objext
23736 if { (ac_try="$ac_compile"
23737 case "(($ac_try" in
23738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23739   *) ac_try_echo=$ac_try;;
23740 esac
23741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23742 $as_echo "$ac_try_echo") >&5
23743   (eval "$ac_compile") 2>conftest.er1
23744   ac_status=$?
23745   grep -v '^ *+' conftest.er1 >conftest.err
23746   rm -f conftest.er1
23747   cat conftest.err >&5
23748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749   (exit $ac_status); } && {
23750          test -z "$ac_c_werror_flag" ||
23751          test ! -s conftest.err
23752        } && test -s conftest.$ac_objext; then
23753   ac_hi=$ac_mid
23754 else
23755   $as_echo "$as_me: failed program was:" >&5
23756 sed 's/^/| /' conftest.$ac_ext >&5
23757
23758         ac_lo=`expr '(' $ac_mid ')' + 1`
23759 fi
23760
23761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23762 done
23763 case $ac_lo in
23764 ?*) result=$ac_lo;;
23765 '') result=unknown ;;
23766 esac
23767 else
23768   cat >conftest.$ac_ext <<_ACEOF
23769 /* confdefs.h.  */
23770 _ACEOF
23771 cat confdefs.h >>conftest.$ac_ext
23772 cat >>conftest.$ac_ext <<_ACEOF
23773 /* end confdefs.h.  */
23774
23775   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23776      included before <wchar.h>.  */
23777   #include <stddef.h>
23778   #include <signal.h>
23779   #if HAVE_WCHAR_H
23780   # include <stdio.h>
23781   # include <time.h>
23782   # include <wchar.h>
23783   #endif
23784
23785 #include <limits.h>
23786 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
23787 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
23788 #include <stdio.h>
23789 #include <stdlib.h>
23790 int
23791 main ()
23792 {
23793
23794   FILE *f = fopen ("conftest.val", "w");
23795   if (! f)
23796     return 1;
23797   if ((sizeof ($gltype) * CHAR_BIT) < 0)
23798     {
23799       long int i = longval ();
23800       if (i != (sizeof ($gltype) * CHAR_BIT))
23801         return 1;
23802       fprintf (f, "%ld", i);
23803     }
23804   else
23805     {
23806       unsigned long int i = ulongval ();
23807       if (i != (sizeof ($gltype) * CHAR_BIT))
23808         return 1;
23809       fprintf (f, "%lu", i);
23810     }
23811   /* Do not output a trailing newline, as this causes \r\n confusion
23812      on some platforms.  */
23813   return ferror (f) || fclose (f) != 0;
23814
23815   ;
23816   return 0;
23817 }
23818 _ACEOF
23819 rm -f conftest$ac_exeext
23820 if { (ac_try="$ac_link"
23821 case "(($ac_try" in
23822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23823   *) ac_try_echo=$ac_try;;
23824 esac
23825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23826 $as_echo "$ac_try_echo") >&5
23827   (eval "$ac_link") 2>&5
23828   ac_status=$?
23829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23831   { (case "(($ac_try" in
23832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833   *) ac_try_echo=$ac_try;;
23834 esac
23835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23836 $as_echo "$ac_try_echo") >&5
23837   (eval "$ac_try") 2>&5
23838   ac_status=$?
23839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840   (exit $ac_status); }; }; then
23841   result=`cat conftest.val`
23842 else
23843   $as_echo "$as_me: program exited with status $ac_status" >&5
23844 $as_echo "$as_me: failed program was:" >&5
23845 sed 's/^/| /' conftest.$ac_ext >&5
23846
23847 ( exit $ac_status )
23848 result=unknown
23849 fi
23850 rm -rf conftest.dSYM
23851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23852 fi
23853 rm -f conftest.val
23854        eval gl_cv_bitsizeof_${gltype}=\$result
23855
23856 fi
23857 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
23858                  $as_echo "$as_val"'`
23859                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23860 $as_echo "$ac_res" >&6; }
23861     eval result=\$gl_cv_bitsizeof_${gltype}
23862     if test $result = unknown; then
23863                                                 result=0
23864     fi
23865     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
23866     cat >>confdefs.h <<_ACEOF
23867 #define BITSIZEOF_${GLTYPE} $result
23868 _ACEOF
23869
23870     eval BITSIZEOF_${GLTYPE}=\$result
23871   done
23872
23873
23874   fi
23875
23876
23877
23878
23879
23880   for gltype in sig_atomic_t wchar_t wint_t ; do
23881     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
23882 $as_echo_n "checking for bit size of $gltype... " >&6; }
23883 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
23884   $as_echo_n "(cached) " >&6
23885 else
23886   if test "$cross_compiling" = yes; then
23887   # Depending upon the size, compute the lo and hi bounds.
23888 cat >conftest.$ac_ext <<_ACEOF
23889 /* confdefs.h.  */
23890 _ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h.  */
23894
23895   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23896      included before <wchar.h>.  */
23897   #include <stddef.h>
23898   #include <signal.h>
23899   #if HAVE_WCHAR_H
23900   # include <stdio.h>
23901   # include <time.h>
23902   # include <wchar.h>
23903   #endif
23904
23905 #include <limits.h>
23906 int
23907 main ()
23908 {
23909 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
23910 test_array [0] = 0
23911
23912   ;
23913   return 0;
23914 }
23915 _ACEOF
23916 rm -f conftest.$ac_objext
23917 if { (ac_try="$ac_compile"
23918 case "(($ac_try" in
23919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23920   *) ac_try_echo=$ac_try;;
23921 esac
23922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23923 $as_echo "$ac_try_echo") >&5
23924   (eval "$ac_compile") 2>conftest.er1
23925   ac_status=$?
23926   grep -v '^ *+' conftest.er1 >conftest.err
23927   rm -f conftest.er1
23928   cat conftest.err >&5
23929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930   (exit $ac_status); } && {
23931          test -z "$ac_c_werror_flag" ||
23932          test ! -s conftest.err
23933        } && test -s conftest.$ac_objext; then
23934   ac_lo=0 ac_mid=0
23935   while :; do
23936     cat >conftest.$ac_ext <<_ACEOF
23937 /* confdefs.h.  */
23938 _ACEOF
23939 cat confdefs.h >>conftest.$ac_ext
23940 cat >>conftest.$ac_ext <<_ACEOF
23941 /* end confdefs.h.  */
23942
23943   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23944      included before <wchar.h>.  */
23945   #include <stddef.h>
23946   #include <signal.h>
23947   #if HAVE_WCHAR_H
23948   # include <stdio.h>
23949   # include <time.h>
23950   # include <wchar.h>
23951   #endif
23952
23953 #include <limits.h>
23954 int
23955 main ()
23956 {
23957 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
23958 test_array [0] = 0
23959
23960   ;
23961   return 0;
23962 }
23963 _ACEOF
23964 rm -f conftest.$ac_objext
23965 if { (ac_try="$ac_compile"
23966 case "(($ac_try" in
23967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23968   *) ac_try_echo=$ac_try;;
23969 esac
23970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23971 $as_echo "$ac_try_echo") >&5
23972   (eval "$ac_compile") 2>conftest.er1
23973   ac_status=$?
23974   grep -v '^ *+' conftest.er1 >conftest.err
23975   rm -f conftest.er1
23976   cat conftest.err >&5
23977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978   (exit $ac_status); } && {
23979          test -z "$ac_c_werror_flag" ||
23980          test ! -s conftest.err
23981        } && test -s conftest.$ac_objext; then
23982   ac_hi=$ac_mid; break
23983 else
23984   $as_echo "$as_me: failed program was:" >&5
23985 sed 's/^/| /' conftest.$ac_ext >&5
23986
23987         ac_lo=`expr $ac_mid + 1`
23988                         if test $ac_lo -le $ac_mid; then
23989                           ac_lo= ac_hi=
23990                           break
23991                         fi
23992                         ac_mid=`expr 2 '*' $ac_mid + 1`
23993 fi
23994
23995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23996   done
23997 else
23998   $as_echo "$as_me: failed program was:" >&5
23999 sed 's/^/| /' conftest.$ac_ext >&5
24000
24001         cat >conftest.$ac_ext <<_ACEOF
24002 /* confdefs.h.  */
24003 _ACEOF
24004 cat confdefs.h >>conftest.$ac_ext
24005 cat >>conftest.$ac_ext <<_ACEOF
24006 /* end confdefs.h.  */
24007
24008   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24009      included before <wchar.h>.  */
24010   #include <stddef.h>
24011   #include <signal.h>
24012   #if HAVE_WCHAR_H
24013   # include <stdio.h>
24014   # include <time.h>
24015   # include <wchar.h>
24016   #endif
24017
24018 #include <limits.h>
24019 int
24020 main ()
24021 {
24022 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
24023 test_array [0] = 0
24024
24025   ;
24026   return 0;
24027 }
24028 _ACEOF
24029 rm -f conftest.$ac_objext
24030 if { (ac_try="$ac_compile"
24031 case "(($ac_try" in
24032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24033   *) ac_try_echo=$ac_try;;
24034 esac
24035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24036 $as_echo "$ac_try_echo") >&5
24037   (eval "$ac_compile") 2>conftest.er1
24038   ac_status=$?
24039   grep -v '^ *+' conftest.er1 >conftest.err
24040   rm -f conftest.er1
24041   cat conftest.err >&5
24042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043   (exit $ac_status); } && {
24044          test -z "$ac_c_werror_flag" ||
24045          test ! -s conftest.err
24046        } && test -s conftest.$ac_objext; then
24047   ac_hi=-1 ac_mid=-1
24048   while :; do
24049     cat >conftest.$ac_ext <<_ACEOF
24050 /* confdefs.h.  */
24051 _ACEOF
24052 cat confdefs.h >>conftest.$ac_ext
24053 cat >>conftest.$ac_ext <<_ACEOF
24054 /* end confdefs.h.  */
24055
24056   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24057      included before <wchar.h>.  */
24058   #include <stddef.h>
24059   #include <signal.h>
24060   #if HAVE_WCHAR_H
24061   # include <stdio.h>
24062   # include <time.h>
24063   # include <wchar.h>
24064   #endif
24065
24066 #include <limits.h>
24067 int
24068 main ()
24069 {
24070 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
24071 test_array [0] = 0
24072
24073   ;
24074   return 0;
24075 }
24076 _ACEOF
24077 rm -f conftest.$ac_objext
24078 if { (ac_try="$ac_compile"
24079 case "(($ac_try" in
24080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24081   *) ac_try_echo=$ac_try;;
24082 esac
24083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24084 $as_echo "$ac_try_echo") >&5
24085   (eval "$ac_compile") 2>conftest.er1
24086   ac_status=$?
24087   grep -v '^ *+' conftest.er1 >conftest.err
24088   rm -f conftest.er1
24089   cat conftest.err >&5
24090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091   (exit $ac_status); } && {
24092          test -z "$ac_c_werror_flag" ||
24093          test ! -s conftest.err
24094        } && test -s conftest.$ac_objext; then
24095   ac_lo=$ac_mid; break
24096 else
24097   $as_echo "$as_me: failed program was:" >&5
24098 sed 's/^/| /' conftest.$ac_ext >&5
24099
24100         ac_hi=`expr '(' $ac_mid ')' - 1`
24101                         if test $ac_mid -le $ac_hi; then
24102                           ac_lo= ac_hi=
24103                           break
24104                         fi
24105                         ac_mid=`expr 2 '*' $ac_mid`
24106 fi
24107
24108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24109   done
24110 else
24111   $as_echo "$as_me: failed program was:" >&5
24112 sed 's/^/| /' conftest.$ac_ext >&5
24113
24114         ac_lo= ac_hi=
24115 fi
24116
24117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24118 fi
24119
24120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24121 # Binary search between lo and hi bounds.
24122 while test "x$ac_lo" != "x$ac_hi"; do
24123   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24124   cat >conftest.$ac_ext <<_ACEOF
24125 /* confdefs.h.  */
24126 _ACEOF
24127 cat confdefs.h >>conftest.$ac_ext
24128 cat >>conftest.$ac_ext <<_ACEOF
24129 /* end confdefs.h.  */
24130
24131   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24132      included before <wchar.h>.  */
24133   #include <stddef.h>
24134   #include <signal.h>
24135   #if HAVE_WCHAR_H
24136   # include <stdio.h>
24137   # include <time.h>
24138   # include <wchar.h>
24139   #endif
24140
24141 #include <limits.h>
24142 int
24143 main ()
24144 {
24145 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
24146 test_array [0] = 0
24147
24148   ;
24149   return 0;
24150 }
24151 _ACEOF
24152 rm -f conftest.$ac_objext
24153 if { (ac_try="$ac_compile"
24154 case "(($ac_try" in
24155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24156   *) ac_try_echo=$ac_try;;
24157 esac
24158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24159 $as_echo "$ac_try_echo") >&5
24160   (eval "$ac_compile") 2>conftest.er1
24161   ac_status=$?
24162   grep -v '^ *+' conftest.er1 >conftest.err
24163   rm -f conftest.er1
24164   cat conftest.err >&5
24165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166   (exit $ac_status); } && {
24167          test -z "$ac_c_werror_flag" ||
24168          test ! -s conftest.err
24169        } && test -s conftest.$ac_objext; then
24170   ac_hi=$ac_mid
24171 else
24172   $as_echo "$as_me: failed program was:" >&5
24173 sed 's/^/| /' conftest.$ac_ext >&5
24174
24175         ac_lo=`expr '(' $ac_mid ')' + 1`
24176 fi
24177
24178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24179 done
24180 case $ac_lo in
24181 ?*) result=$ac_lo;;
24182 '') result=unknown ;;
24183 esac
24184 else
24185   cat >conftest.$ac_ext <<_ACEOF
24186 /* confdefs.h.  */
24187 _ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h.  */
24191
24192   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24193      included before <wchar.h>.  */
24194   #include <stddef.h>
24195   #include <signal.h>
24196   #if HAVE_WCHAR_H
24197   # include <stdio.h>
24198   # include <time.h>
24199   # include <wchar.h>
24200   #endif
24201
24202 #include <limits.h>
24203 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
24204 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
24205 #include <stdio.h>
24206 #include <stdlib.h>
24207 int
24208 main ()
24209 {
24210
24211   FILE *f = fopen ("conftest.val", "w");
24212   if (! f)
24213     return 1;
24214   if ((sizeof ($gltype) * CHAR_BIT) < 0)
24215     {
24216       long int i = longval ();
24217       if (i != (sizeof ($gltype) * CHAR_BIT))
24218         return 1;
24219       fprintf (f, "%ld", i);
24220     }
24221   else
24222     {
24223       unsigned long int i = ulongval ();
24224       if (i != (sizeof ($gltype) * CHAR_BIT))
24225         return 1;
24226       fprintf (f, "%lu", i);
24227     }
24228   /* Do not output a trailing newline, as this causes \r\n confusion
24229      on some platforms.  */
24230   return ferror (f) || fclose (f) != 0;
24231
24232   ;
24233   return 0;
24234 }
24235 _ACEOF
24236 rm -f conftest$ac_exeext
24237 if { (ac_try="$ac_link"
24238 case "(($ac_try" in
24239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24240   *) ac_try_echo=$ac_try;;
24241 esac
24242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24243 $as_echo "$ac_try_echo") >&5
24244   (eval "$ac_link") 2>&5
24245   ac_status=$?
24246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24248   { (case "(($ac_try" in
24249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24250   *) ac_try_echo=$ac_try;;
24251 esac
24252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24253 $as_echo "$ac_try_echo") >&5
24254   (eval "$ac_try") 2>&5
24255   ac_status=$?
24256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257   (exit $ac_status); }; }; then
24258   result=`cat conftest.val`
24259 else
24260   $as_echo "$as_me: program exited with status $ac_status" >&5
24261 $as_echo "$as_me: failed program was:" >&5
24262 sed 's/^/| /' conftest.$ac_ext >&5
24263
24264 ( exit $ac_status )
24265 result=unknown
24266 fi
24267 rm -rf conftest.dSYM
24268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24269 fi
24270 rm -f conftest.val
24271        eval gl_cv_bitsizeof_${gltype}=\$result
24272
24273 fi
24274 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
24275                  $as_echo "$as_val"'`
24276                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24277 $as_echo "$ac_res" >&6; }
24278     eval result=\$gl_cv_bitsizeof_${gltype}
24279     if test $result = unknown; then
24280                                                 result=0
24281     fi
24282     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24283     cat >>confdefs.h <<_ACEOF
24284 #define BITSIZEOF_${GLTYPE} $result
24285 _ACEOF
24286
24287     eval BITSIZEOF_${GLTYPE}=\$result
24288   done
24289
24290
24291
24292
24293
24294
24295
24296   for gltype in sig_atomic_t wchar_t wint_t ; do
24297     { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
24298 $as_echo_n "checking whether $gltype is signed... " >&6; }
24299 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
24300   $as_echo_n "(cached) " >&6
24301 else
24302   cat >conftest.$ac_ext <<_ACEOF
24303 /* confdefs.h.  */
24304 _ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h.  */
24308
24309   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24310      included before <wchar.h>.  */
24311   #include <stddef.h>
24312   #include <signal.h>
24313   #if HAVE_WCHAR_H
24314   # include <stdio.h>
24315   # include <time.h>
24316   # include <wchar.h>
24317   #endif
24318
24319             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
24320 int
24321 main ()
24322 {
24323
24324   ;
24325   return 0;
24326 }
24327 _ACEOF
24328 rm -f conftest.$ac_objext
24329 if { (ac_try="$ac_compile"
24330 case "(($ac_try" in
24331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24332   *) ac_try_echo=$ac_try;;
24333 esac
24334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24335 $as_echo "$ac_try_echo") >&5
24336   (eval "$ac_compile") 2>conftest.er1
24337   ac_status=$?
24338   grep -v '^ *+' conftest.er1 >conftest.err
24339   rm -f conftest.er1
24340   cat conftest.err >&5
24341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342   (exit $ac_status); } && {
24343          test -z "$ac_c_werror_flag" ||
24344          test ! -s conftest.err
24345        } && test -s conftest.$ac_objext; then
24346   result=yes
24347 else
24348   $as_echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.$ac_ext >&5
24350
24351         result=no
24352 fi
24353
24354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24355        eval gl_cv_type_${gltype}_signed=\$result
24356
24357 fi
24358 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
24359                  $as_echo "$as_val"'`
24360                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24361 $as_echo "$ac_res" >&6; }
24362     eval result=\$gl_cv_type_${gltype}_signed
24363     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24364     if test "$result" = yes; then
24365       cat >>confdefs.h <<_ACEOF
24366 #define HAVE_SIGNED_${GLTYPE} 1
24367 _ACEOF
24368
24369       eval HAVE_SIGNED_${GLTYPE}=1
24370     else
24371       eval HAVE_SIGNED_${GLTYPE}=0
24372     fi
24373   done
24374
24375
24376   gl_cv_type_ptrdiff_t_signed=yes
24377   gl_cv_type_size_t_signed=no
24378   if test $APPLE_UNIVERSAL_BUILD = 0; then
24379
24380
24381
24382
24383   for gltype in ptrdiff_t size_t ; do
24384     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
24385 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
24386 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
24387   $as_echo_n "(cached) " >&6
24388 else
24389   eval gl_cv_type_${gltype}_suffix=no
24390        eval result=\$gl_cv_type_${gltype}_signed
24391        if test "$result" = yes; then
24392          glsufu=
24393        else
24394          glsufu=u
24395        fi
24396        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
24397          case $glsuf in
24398            '')  gltype1='int';;
24399            l)   gltype1='long int';;
24400            ll)  gltype1='long long int';;
24401            i64) gltype1='__int64';;
24402            u)   gltype1='unsigned int';;
24403            ul)  gltype1='unsigned long int';;
24404            ull) gltype1='unsigned long long int';;
24405            ui64)gltype1='unsigned __int64';;
24406          esac
24407          cat >conftest.$ac_ext <<_ACEOF
24408 /* confdefs.h.  */
24409 _ACEOF
24410 cat confdefs.h >>conftest.$ac_ext
24411 cat >>conftest.$ac_ext <<_ACEOF
24412 /* end confdefs.h.  */
24413
24414   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24415      included before <wchar.h>.  */
24416   #include <stddef.h>
24417   #include <signal.h>
24418   #if HAVE_WCHAR_H
24419   # include <stdio.h>
24420   # include <time.h>
24421   # include <wchar.h>
24422   #endif
24423
24424               extern $gltype foo;
24425               extern $gltype1 foo;
24426 int
24427 main ()
24428 {
24429
24430   ;
24431   return 0;
24432 }
24433 _ACEOF
24434 rm -f conftest.$ac_objext
24435 if { (ac_try="$ac_compile"
24436 case "(($ac_try" in
24437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24438   *) ac_try_echo=$ac_try;;
24439 esac
24440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24441 $as_echo "$ac_try_echo") >&5
24442   (eval "$ac_compile") 2>conftest.er1
24443   ac_status=$?
24444   grep -v '^ *+' conftest.er1 >conftest.err
24445   rm -f conftest.er1
24446   cat conftest.err >&5
24447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448   (exit $ac_status); } && {
24449          test -z "$ac_c_werror_flag" ||
24450          test ! -s conftest.err
24451        } && test -s conftest.$ac_objext; then
24452   eval gl_cv_type_${gltype}_suffix=\$glsuf
24453 else
24454   $as_echo "$as_me: failed program was:" >&5
24455 sed 's/^/| /' conftest.$ac_ext >&5
24456
24457
24458 fi
24459
24460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24461          eval result=\$gl_cv_type_${gltype}_suffix
24462          test "$result" != no && break
24463        done
24464 fi
24465 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
24466                  $as_echo "$as_val"'`
24467                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24468 $as_echo "$ac_res" >&6; }
24469     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24470     eval result=\$gl_cv_type_${gltype}_suffix
24471     test "$result" = no && result=
24472     eval ${GLTYPE}_SUFFIX=\$result
24473     cat >>confdefs.h <<_ACEOF
24474 #define ${GLTYPE}_SUFFIX $result
24475 _ACEOF
24476
24477   done
24478
24479
24480   fi
24481
24482
24483
24484
24485
24486   for gltype in sig_atomic_t wchar_t wint_t ; do
24487     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
24488 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
24489 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
24490   $as_echo_n "(cached) " >&6
24491 else
24492   eval gl_cv_type_${gltype}_suffix=no
24493        eval result=\$gl_cv_type_${gltype}_signed
24494        if test "$result" = yes; then
24495          glsufu=
24496        else
24497          glsufu=u
24498        fi
24499        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
24500          case $glsuf in
24501            '')  gltype1='int';;
24502            l)   gltype1='long int';;
24503            ll)  gltype1='long long int';;
24504            i64) gltype1='__int64';;
24505            u)   gltype1='unsigned int';;
24506            ul)  gltype1='unsigned long int';;
24507            ull) gltype1='unsigned long long int';;
24508            ui64)gltype1='unsigned __int64';;
24509          esac
24510          cat >conftest.$ac_ext <<_ACEOF
24511 /* confdefs.h.  */
24512 _ACEOF
24513 cat confdefs.h >>conftest.$ac_ext
24514 cat >>conftest.$ac_ext <<_ACEOF
24515 /* end confdefs.h.  */
24516
24517   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24518      included before <wchar.h>.  */
24519   #include <stddef.h>
24520   #include <signal.h>
24521   #if HAVE_WCHAR_H
24522   # include <stdio.h>
24523   # include <time.h>
24524   # include <wchar.h>
24525   #endif
24526
24527               extern $gltype foo;
24528               extern $gltype1 foo;
24529 int
24530 main ()
24531 {
24532
24533   ;
24534   return 0;
24535 }
24536 _ACEOF
24537 rm -f conftest.$ac_objext
24538 if { (ac_try="$ac_compile"
24539 case "(($ac_try" in
24540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24541   *) ac_try_echo=$ac_try;;
24542 esac
24543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24544 $as_echo "$ac_try_echo") >&5
24545   (eval "$ac_compile") 2>conftest.er1
24546   ac_status=$?
24547   grep -v '^ *+' conftest.er1 >conftest.err
24548   rm -f conftest.er1
24549   cat conftest.err >&5
24550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551   (exit $ac_status); } && {
24552          test -z "$ac_c_werror_flag" ||
24553          test ! -s conftest.err
24554        } && test -s conftest.$ac_objext; then
24555   eval gl_cv_type_${gltype}_suffix=\$glsuf
24556 else
24557   $as_echo "$as_me: failed program was:" >&5
24558 sed 's/^/| /' conftest.$ac_ext >&5
24559
24560
24561 fi
24562
24563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24564          eval result=\$gl_cv_type_${gltype}_suffix
24565          test "$result" != no && break
24566        done
24567 fi
24568 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
24569                  $as_echo "$as_val"'`
24570                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24571 $as_echo "$ac_res" >&6; }
24572     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24573     eval result=\$gl_cv_type_${gltype}_suffix
24574     test "$result" = no && result=
24575     eval ${GLTYPE}_SUFFIX=\$result
24576     cat >>confdefs.h <<_ACEOF
24577 #define ${GLTYPE}_SUFFIX $result
24578 _ACEOF
24579
24580   done
24581
24582
24583
24584     STDINT_H=stdint.h
24585   fi
24586
24587
24588
24589
24590
24591
24592
24593
24594   :
24595
24596
24597
24598
24599
24600
24601
24602      if test $gl_cv_have_include_next = yes; then
24603        gl_cv_next_stdio_h='<'stdio.h'>'
24604      else
24605        { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
24606 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
24607 if test "${gl_cv_next_stdio_h+set}" = set; then
24608   $as_echo_n "(cached) " >&6
24609 else
24610
24611           if test $ac_cv_header_stdio_h = yes; then
24612             cat >conftest.$ac_ext <<_ACEOF
24613 /* confdefs.h.  */
24614 _ACEOF
24615 cat confdefs.h >>conftest.$ac_ext
24616 cat >>conftest.$ac_ext <<_ACEOF
24617 /* end confdefs.h.  */
24618 #include <stdio.h>
24619
24620 _ACEOF
24621                                                                     case "$host_os" in
24622               aix*) gl_absname_cpp="$ac_cpp -C" ;;
24623               *)    gl_absname_cpp="$ac_cpp" ;;
24624             esac
24625                                     gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24626                sed -n '\#/stdio.h#{
24627                  s#.*"\(.*/stdio.h\)".*#\1#
24628                  s#^/[^/]#//&#
24629                  p
24630                  q
24631                }'`'"'
24632           else
24633             gl_cv_next_stdio_h='<'stdio.h'>'
24634           fi
24635
24636 fi
24637 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
24638 $as_echo "$gl_cv_next_stdio_h" >&6; }
24639      fi
24640      NEXT_STDIO_H=$gl_cv_next_stdio_h
24641
24642
24643
24644       GNULIB_FPRINTF=1
24645   GNULIB_PRINTF=1
24646   GNULIB_VFPRINTF=1
24647   GNULIB_VPRINTF=1
24648   GNULIB_FPUTC=1
24649   GNULIB_PUTC=1
24650   GNULIB_PUTCHAR=1
24651   GNULIB_FPUTS=1
24652   GNULIB_PUTS=1
24653   GNULIB_FWRITE=1
24654
24655
24656
24657
24658
24659
24660
24661
24662   :
24663
24664
24665
24666
24667
24668
24669
24670      if test $gl_cv_have_include_next = yes; then
24671        gl_cv_next_stdlib_h='<'stdlib.h'>'
24672      else
24673        { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
24674 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24675 if test "${gl_cv_next_stdlib_h+set}" = set; then
24676   $as_echo_n "(cached) " >&6
24677 else
24678
24679           if test $ac_cv_header_stdlib_h = yes; then
24680             cat >conftest.$ac_ext <<_ACEOF
24681 /* confdefs.h.  */
24682 _ACEOF
24683 cat confdefs.h >>conftest.$ac_ext
24684 cat >>conftest.$ac_ext <<_ACEOF
24685 /* end confdefs.h.  */
24686 #include <stdlib.h>
24687
24688 _ACEOF
24689                                                                     case "$host_os" in
24690               aix*) gl_absname_cpp="$ac_cpp -C" ;;
24691               *)    gl_absname_cpp="$ac_cpp" ;;
24692             esac
24693                                     gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24694                sed -n '\#/stdlib.h#{
24695                  s#.*"\(.*/stdlib.h\)".*#\1#
24696                  s#^/[^/]#//&#
24697                  p
24698                  q
24699                }'`'"'
24700           else
24701             gl_cv_next_stdlib_h='<'stdlib.h'>'
24702           fi
24703
24704 fi
24705 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
24706 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24707      fi
24708      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
24709
24710
24711
24712
24713 for ac_header in random.h
24714 do
24715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24716 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24717 $as_echo_n "checking for $ac_header... " >&6; }
24718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24719   $as_echo_n "(cached) " >&6
24720 else
24721   cat >conftest.$ac_ext <<_ACEOF
24722 /* confdefs.h.  */
24723 _ACEOF
24724 cat confdefs.h >>conftest.$ac_ext
24725 cat >>conftest.$ac_ext <<_ACEOF
24726 /* end confdefs.h.  */
24727 $ac_includes_default
24728
24729 #include <$ac_header>
24730 _ACEOF
24731 rm -f conftest.$ac_objext
24732 if { (ac_try="$ac_compile"
24733 case "(($ac_try" in
24734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24735   *) ac_try_echo=$ac_try;;
24736 esac
24737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24738 $as_echo "$ac_try_echo") >&5
24739   (eval "$ac_compile") 2>conftest.er1
24740   ac_status=$?
24741   grep -v '^ *+' conftest.er1 >conftest.err
24742   rm -f conftest.er1
24743   cat conftest.err >&5
24744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745   (exit $ac_status); } && {
24746          test -z "$ac_c_werror_flag" ||
24747          test ! -s conftest.err
24748        } && test -s conftest.$ac_objext; then
24749   eval "$as_ac_Header=yes"
24750 else
24751   $as_echo "$as_me: failed program was:" >&5
24752 sed 's/^/| /' conftest.$ac_ext >&5
24753
24754         eval "$as_ac_Header=no"
24755 fi
24756
24757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24758 fi
24759 ac_res=`eval 'as_val=${'$as_ac_Header'}
24760                  $as_echo "$as_val"'`
24761                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24762 $as_echo "$ac_res" >&6; }
24763 as_val=`eval 'as_val=${'$as_ac_Header'}
24764                  $as_echo "$as_val"'`
24765    if test "x$as_val" = x""yes; then
24766   cat >>confdefs.h <<_ACEOF
24767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24768 _ACEOF
24769
24770 fi
24771
24772 done
24773
24774   if test $ac_cv_header_random_h = yes; then
24775     HAVE_RANDOM_H=1
24776   else
24777     HAVE_RANDOM_H=0
24778   fi
24779
24780   { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
24781 $as_echo_n "checking for struct random_data... " >&6; }
24782 if test "${ac_cv_type_struct_random_data+set}" = set; then
24783   $as_echo_n "(cached) " >&6
24784 else
24785   ac_cv_type_struct_random_data=no
24786 cat >conftest.$ac_ext <<_ACEOF
24787 /* confdefs.h.  */
24788 _ACEOF
24789 cat confdefs.h >>conftest.$ac_ext
24790 cat >>conftest.$ac_ext <<_ACEOF
24791 /* end confdefs.h.  */
24792 #include <stdlib.h>
24793       #if HAVE_RANDOM_H
24794       # include <random.h>
24795       #endif
24796
24797
24798 int
24799 main ()
24800 {
24801 if (sizeof (struct random_data))
24802        return 0;
24803   ;
24804   return 0;
24805 }
24806 _ACEOF
24807 rm -f conftest.$ac_objext
24808 if { (ac_try="$ac_compile"
24809 case "(($ac_try" in
24810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24811   *) ac_try_echo=$ac_try;;
24812 esac
24813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24814 $as_echo "$ac_try_echo") >&5
24815   (eval "$ac_compile") 2>conftest.er1
24816   ac_status=$?
24817   grep -v '^ *+' conftest.er1 >conftest.err
24818   rm -f conftest.er1
24819   cat conftest.err >&5
24820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821   (exit $ac_status); } && {
24822          test -z "$ac_c_werror_flag" ||
24823          test ! -s conftest.err
24824        } && test -s conftest.$ac_objext; then
24825   cat >conftest.$ac_ext <<_ACEOF
24826 /* confdefs.h.  */
24827 _ACEOF
24828 cat confdefs.h >>conftest.$ac_ext
24829 cat >>conftest.$ac_ext <<_ACEOF
24830 /* end confdefs.h.  */
24831 #include <stdlib.h>
24832       #if HAVE_RANDOM_H
24833       # include <random.h>
24834       #endif
24835
24836
24837 int
24838 main ()
24839 {
24840 if (sizeof ((struct random_data)))
24841           return 0;
24842   ;
24843   return 0;
24844 }
24845 _ACEOF
24846 rm -f conftest.$ac_objext
24847 if { (ac_try="$ac_compile"
24848 case "(($ac_try" in
24849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24850   *) ac_try_echo=$ac_try;;
24851 esac
24852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24853 $as_echo "$ac_try_echo") >&5
24854   (eval "$ac_compile") 2>conftest.er1
24855   ac_status=$?
24856   grep -v '^ *+' conftest.er1 >conftest.err
24857   rm -f conftest.er1
24858   cat conftest.err >&5
24859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860   (exit $ac_status); } && {
24861          test -z "$ac_c_werror_flag" ||
24862          test ! -s conftest.err
24863        } && test -s conftest.$ac_objext; then
24864   :
24865 else
24866   $as_echo "$as_me: failed program was:" >&5
24867 sed 's/^/| /' conftest.$ac_ext >&5
24868
24869         ac_cv_type_struct_random_data=yes
24870 fi
24871
24872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24873 else
24874   $as_echo "$as_me: failed program was:" >&5
24875 sed 's/^/| /' conftest.$ac_ext >&5
24876
24877
24878 fi
24879
24880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24881 fi
24882 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
24883 $as_echo "$ac_cv_type_struct_random_data" >&6; }
24884 if test "x$ac_cv_type_struct_random_data" = x""yes; then
24885
24886 cat >>confdefs.h <<_ACEOF
24887 #define HAVE_STRUCT_RANDOM_DATA 1
24888 _ACEOF
24889
24890
24891 else
24892   HAVE_STRUCT_RANDOM_DATA=0
24893 fi
24894
24895
24896
24897
24898
24899
24900   { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
24901 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
24902 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
24903   $as_echo_n "(cached) " >&6
24904 else
24905
24906       cat >conftest.$ac_ext <<_ACEOF
24907 /* confdefs.h.  */
24908 _ACEOF
24909 cat confdefs.h >>conftest.$ac_ext
24910 cat >>conftest.$ac_ext <<_ACEOF
24911 /* end confdefs.h.  */
24912 #include <sys/socket.h>
24913 int
24914 main ()
24915 {
24916
24917   ;
24918   return 0;
24919 }
24920 _ACEOF
24921 rm -f conftest.$ac_objext
24922 if { (ac_try="$ac_compile"
24923 case "(($ac_try" in
24924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24925   *) ac_try_echo=$ac_try;;
24926 esac
24927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24928 $as_echo "$ac_try_echo") >&5
24929   (eval "$ac_compile") 2>conftest.er1
24930   ac_status=$?
24931   grep -v '^ *+' conftest.er1 >conftest.err
24932   rm -f conftest.er1
24933   cat conftest.err >&5
24934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935   (exit $ac_status); } && {
24936          test -z "$ac_c_werror_flag" ||
24937          test ! -s conftest.err
24938        } && test -s conftest.$ac_objext; then
24939   gl_cv_header_sys_socket_h_selfcontained=yes
24940 else
24941   $as_echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24943
24944         gl_cv_header_sys_socket_h_selfcontained=no
24945 fi
24946
24947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24948
24949 fi
24950 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
24951 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
24952   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
24953     SYS_SOCKET_H=''
24954
24955 for ac_func in shutdown
24956 do
24957 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24958 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24959 $as_echo_n "checking for $ac_func... " >&6; }
24960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24961   $as_echo_n "(cached) " >&6
24962 else
24963   cat >conftest.$ac_ext <<_ACEOF
24964 /* confdefs.h.  */
24965 _ACEOF
24966 cat confdefs.h >>conftest.$ac_ext
24967 cat >>conftest.$ac_ext <<_ACEOF
24968 /* end confdefs.h.  */
24969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24971 #define $ac_func innocuous_$ac_func
24972
24973 /* System header to define __stub macros and hopefully few prototypes,
24974     which can conflict with char $ac_func (); below.
24975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24976     <limits.h> exists even on freestanding compilers.  */
24977
24978 #ifdef __STDC__
24979 # include <limits.h>
24980 #else
24981 # include <assert.h>
24982 #endif
24983
24984 #undef $ac_func
24985
24986 /* Override any GCC internal prototype to avoid an error.
24987    Use char because int might match the return type of a GCC
24988    builtin and then its argument prototype would still apply.  */
24989 #ifdef __cplusplus
24990 extern "C"
24991 #endif
24992 char $ac_func ();
24993 /* The GNU C library defines this for functions which it implements
24994     to always fail with ENOSYS.  Some functions are actually named
24995     something starting with __ and the normal name is an alias.  */
24996 #if defined __stub_$ac_func || defined __stub___$ac_func
24997 choke me
24998 #endif
24999
25000 int
25001 main ()
25002 {
25003 return $ac_func ();
25004   ;
25005   return 0;
25006 }
25007 _ACEOF
25008 rm -f conftest.$ac_objext conftest$ac_exeext
25009 if { (ac_try="$ac_link"
25010 case "(($ac_try" in
25011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25012   *) ac_try_echo=$ac_try;;
25013 esac
25014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25015 $as_echo "$ac_try_echo") >&5
25016   (eval "$ac_link") 2>conftest.er1
25017   ac_status=$?
25018   grep -v '^ *+' conftest.er1 >conftest.err
25019   rm -f conftest.er1
25020   cat conftest.err >&5
25021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022   (exit $ac_status); } && {
25023          test -z "$ac_c_werror_flag" ||
25024          test ! -s conftest.err
25025        } && test -s conftest$ac_exeext && {
25026          test "$cross_compiling" = yes ||
25027          $as_test_x conftest$ac_exeext
25028        }; then
25029   eval "$as_ac_var=yes"
25030 else
25031   $as_echo "$as_me: failed program was:" >&5
25032 sed 's/^/| /' conftest.$ac_ext >&5
25033
25034         eval "$as_ac_var=no"
25035 fi
25036
25037 rm -rf conftest.dSYM
25038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25039       conftest$ac_exeext conftest.$ac_ext
25040 fi
25041 ac_res=`eval 'as_val=${'$as_ac_var'}
25042                  $as_echo "$as_val"'`
25043                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25044 $as_echo "$ac_res" >&6; }
25045 as_val=`eval 'as_val=${'$as_ac_var'}
25046                  $as_echo "$as_val"'`
25047    if test "x$as_val" = x""yes; then
25048   cat >>confdefs.h <<_ACEOF
25049 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25050 _ACEOF
25051
25052 fi
25053 done
25054
25055     if test $ac_cv_func_shutdown = yes; then
25056       { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
25057 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
25058 if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then
25059   $as_echo_n "(cached) " >&6
25060 else
25061
25062           cat >conftest.$ac_ext <<_ACEOF
25063 /* confdefs.h.  */
25064 _ACEOF
25065 cat confdefs.h >>conftest.$ac_ext
25066 cat >>conftest.$ac_ext <<_ACEOF
25067 /* end confdefs.h.  */
25068 #include <sys/socket.h>
25069 int
25070 main ()
25071 {
25072 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
25073   ;
25074   return 0;
25075 }
25076 _ACEOF
25077 rm -f conftest.$ac_objext
25078 if { (ac_try="$ac_compile"
25079 case "(($ac_try" in
25080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25081   *) ac_try_echo=$ac_try;;
25082 esac
25083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25084 $as_echo "$ac_try_echo") >&5
25085   (eval "$ac_compile") 2>conftest.er1
25086   ac_status=$?
25087   grep -v '^ *+' conftest.er1 >conftest.err
25088   rm -f conftest.er1
25089   cat conftest.err >&5
25090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091   (exit $ac_status); } && {
25092          test -z "$ac_c_werror_flag" ||
25093          test ! -s conftest.err
25094        } && test -s conftest.$ac_objext; then
25095   gl_cv_header_sys_socket_h_shut=yes
25096 else
25097   $as_echo "$as_me: failed program was:" >&5
25098 sed 's/^/| /' conftest.$ac_ext >&5
25099
25100         gl_cv_header_sys_socket_h_shut=no
25101 fi
25102
25103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25104
25105 fi
25106 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_shut" >&5
25107 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
25108       if test $gl_cv_header_sys_socket_h_shut = no; then
25109         SYS_SOCKET_H='sys/socket.h'
25110       fi
25111     fi
25112   else
25113     SYS_SOCKET_H='sys/socket.h'
25114   fi
25115   if test -n "$SYS_SOCKET_H"; then
25116
25117
25118
25119
25120   :
25121
25122
25123
25124
25125
25126
25127
25128      if test $gl_cv_have_include_next = yes; then
25129        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
25130      else
25131        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
25132 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
25133 if test "${gl_cv_next_sys_socket_h+set}" = set; then
25134   $as_echo_n "(cached) " >&6
25135 else
25136
25137           if test $ac_cv_header_sys_socket_h = yes; then
25138             cat >conftest.$ac_ext <<_ACEOF
25139 /* confdefs.h.  */
25140 _ACEOF
25141 cat confdefs.h >>conftest.$ac_ext
25142 cat >>conftest.$ac_ext <<_ACEOF
25143 /* end confdefs.h.  */
25144 #include <sys/socket.h>
25145
25146 _ACEOF
25147                                                                     case "$host_os" in
25148               aix*) gl_absname_cpp="$ac_cpp -C" ;;
25149               *)    gl_absname_cpp="$ac_cpp" ;;
25150             esac
25151                                     gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25152                sed -n '\#/sys/socket.h#{
25153                  s#.*"\(.*/sys/socket.h\)".*#\1#
25154                  s#^/[^/]#//&#
25155                  p
25156                  q
25157                }'`'"'
25158           else
25159             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
25160           fi
25161
25162 fi
25163 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
25164 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
25165      fi
25166      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
25167
25168
25169
25170     if test $ac_cv_header_sys_socket_h = yes; then
25171       HAVE_SYS_SOCKET_H=1
25172       HAVE_WS2TCPIP_H=0
25173     else
25174       HAVE_SYS_SOCKET_H=0
25175
25176 for ac_header in ws2tcpip.h
25177 do
25178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25180   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25181 $as_echo_n "checking for $ac_header... " >&6; }
25182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25183   $as_echo_n "(cached) " >&6
25184 fi
25185 ac_res=`eval 'as_val=${'$as_ac_Header'}
25186                  $as_echo "$as_val"'`
25187                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25188 $as_echo "$ac_res" >&6; }
25189 else
25190   # Is the header compilable?
25191 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25192 $as_echo_n "checking $ac_header usability... " >&6; }
25193 cat >conftest.$ac_ext <<_ACEOF
25194 /* confdefs.h.  */
25195 _ACEOF
25196 cat confdefs.h >>conftest.$ac_ext
25197 cat >>conftest.$ac_ext <<_ACEOF
25198 /* end confdefs.h.  */
25199 $ac_includes_default
25200 #include <$ac_header>
25201 _ACEOF
25202 rm -f conftest.$ac_objext
25203 if { (ac_try="$ac_compile"
25204 case "(($ac_try" in
25205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25206   *) ac_try_echo=$ac_try;;
25207 esac
25208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25209 $as_echo "$ac_try_echo") >&5
25210   (eval "$ac_compile") 2>conftest.er1
25211   ac_status=$?
25212   grep -v '^ *+' conftest.er1 >conftest.err
25213   rm -f conftest.er1
25214   cat conftest.err >&5
25215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216   (exit $ac_status); } && {
25217          test -z "$ac_c_werror_flag" ||
25218          test ! -s conftest.err
25219        } && test -s conftest.$ac_objext; then
25220   ac_header_compiler=yes
25221 else
25222   $as_echo "$as_me: failed program was:" >&5
25223 sed 's/^/| /' conftest.$ac_ext >&5
25224
25225         ac_header_compiler=no
25226 fi
25227
25228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25229 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25230 $as_echo "$ac_header_compiler" >&6; }
25231
25232 # Is the header present?
25233 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25234 $as_echo_n "checking $ac_header presence... " >&6; }
25235 cat >conftest.$ac_ext <<_ACEOF
25236 /* confdefs.h.  */
25237 _ACEOF
25238 cat confdefs.h >>conftest.$ac_ext
25239 cat >>conftest.$ac_ext <<_ACEOF
25240 /* end confdefs.h.  */
25241 #include <$ac_header>
25242 _ACEOF
25243 if { (ac_try="$ac_cpp conftest.$ac_ext"
25244 case "(($ac_try" in
25245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25246   *) ac_try_echo=$ac_try;;
25247 esac
25248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25249 $as_echo "$ac_try_echo") >&5
25250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25251   ac_status=$?
25252   grep -v '^ *+' conftest.er1 >conftest.err
25253   rm -f conftest.er1
25254   cat conftest.err >&5
25255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256   (exit $ac_status); } >/dev/null && {
25257          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25258          test ! -s conftest.err
25259        }; then
25260   ac_header_preproc=yes
25261 else
25262   $as_echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25264
25265   ac_header_preproc=no
25266 fi
25267
25268 rm -f conftest.err conftest.$ac_ext
25269 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25270 $as_echo "$ac_header_preproc" >&6; }
25271
25272 # So?  What about this header?
25273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25274   yes:no: )
25275     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25276 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25277     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25278 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25279     ac_header_preproc=yes
25280     ;;
25281   no:yes:* )
25282     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25283 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25284     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25285 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25286     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25287 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25288     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25289 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25290     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25291 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25292     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25293 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25294
25295     ;;
25296 esac
25297 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25298 $as_echo_n "checking for $ac_header... " >&6; }
25299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25300   $as_echo_n "(cached) " >&6
25301 else
25302   eval "$as_ac_Header=\$ac_header_preproc"
25303 fi
25304 ac_res=`eval 'as_val=${'$as_ac_Header'}
25305                  $as_echo "$as_val"'`
25306                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25307 $as_echo "$ac_res" >&6; }
25308
25309 fi
25310 as_val=`eval 'as_val=${'$as_ac_Header'}
25311                  $as_echo "$as_val"'`
25312    if test "x$as_val" = x""yes; then
25313   cat >>confdefs.h <<_ACEOF
25314 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25315 _ACEOF
25316
25317 fi
25318
25319 done
25320
25321       if test $ac_cv_header_ws2tcpip_h = yes; then
25322         HAVE_WS2TCPIP_H=1
25323       else
25324         HAVE_WS2TCPIP_H=0
25325       fi
25326     fi
25327
25328
25329
25330
25331   :
25332
25333
25334
25335
25336
25337   if test $ac_cv_header_sys_socket_h != yes; then
25338
25339 for ac_header in winsock2.h
25340 do
25341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25343   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25344 $as_echo_n "checking for $ac_header... " >&6; }
25345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25346   $as_echo_n "(cached) " >&6
25347 fi
25348 ac_res=`eval 'as_val=${'$as_ac_Header'}
25349                  $as_echo "$as_val"'`
25350                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25351 $as_echo "$ac_res" >&6; }
25352 else
25353   # Is the header compilable?
25354 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25355 $as_echo_n "checking $ac_header usability... " >&6; }
25356 cat >conftest.$ac_ext <<_ACEOF
25357 /* confdefs.h.  */
25358 _ACEOF
25359 cat confdefs.h >>conftest.$ac_ext
25360 cat >>conftest.$ac_ext <<_ACEOF
25361 /* end confdefs.h.  */
25362 $ac_includes_default
25363 #include <$ac_header>
25364 _ACEOF
25365 rm -f conftest.$ac_objext
25366 if { (ac_try="$ac_compile"
25367 case "(($ac_try" in
25368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25369   *) ac_try_echo=$ac_try;;
25370 esac
25371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25372 $as_echo "$ac_try_echo") >&5
25373   (eval "$ac_compile") 2>conftest.er1
25374   ac_status=$?
25375   grep -v '^ *+' conftest.er1 >conftest.err
25376   rm -f conftest.er1
25377   cat conftest.err >&5
25378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379   (exit $ac_status); } && {
25380          test -z "$ac_c_werror_flag" ||
25381          test ! -s conftest.err
25382        } && test -s conftest.$ac_objext; then
25383   ac_header_compiler=yes
25384 else
25385   $as_echo "$as_me: failed program was:" >&5
25386 sed 's/^/| /' conftest.$ac_ext >&5
25387
25388         ac_header_compiler=no
25389 fi
25390
25391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25392 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25393 $as_echo "$ac_header_compiler" >&6; }
25394
25395 # Is the header present?
25396 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25397 $as_echo_n "checking $ac_header presence... " >&6; }
25398 cat >conftest.$ac_ext <<_ACEOF
25399 /* confdefs.h.  */
25400 _ACEOF
25401 cat confdefs.h >>conftest.$ac_ext
25402 cat >>conftest.$ac_ext <<_ACEOF
25403 /* end confdefs.h.  */
25404 #include <$ac_header>
25405 _ACEOF
25406 if { (ac_try="$ac_cpp conftest.$ac_ext"
25407 case "(($ac_try" in
25408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25409   *) ac_try_echo=$ac_try;;
25410 esac
25411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25412 $as_echo "$ac_try_echo") >&5
25413   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25414   ac_status=$?
25415   grep -v '^ *+' conftest.er1 >conftest.err
25416   rm -f conftest.er1
25417   cat conftest.err >&5
25418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419   (exit $ac_status); } >/dev/null && {
25420          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25421          test ! -s conftest.err
25422        }; then
25423   ac_header_preproc=yes
25424 else
25425   $as_echo "$as_me: failed program was:" >&5
25426 sed 's/^/| /' conftest.$ac_ext >&5
25427
25428   ac_header_preproc=no
25429 fi
25430
25431 rm -f conftest.err conftest.$ac_ext
25432 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25433 $as_echo "$ac_header_preproc" >&6; }
25434
25435 # So?  What about this header?
25436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25437   yes:no: )
25438     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25439 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25440     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25441 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25442     ac_header_preproc=yes
25443     ;;
25444   no:yes:* )
25445     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25446 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25447     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25448 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25449     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25450 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25451     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25452 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25453     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25454 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25455     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25456 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25457
25458     ;;
25459 esac
25460 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25461 $as_echo_n "checking for $ac_header... " >&6; }
25462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25463   $as_echo_n "(cached) " >&6
25464 else
25465   eval "$as_ac_Header=\$ac_header_preproc"
25466 fi
25467 ac_res=`eval 'as_val=${'$as_ac_Header'}
25468                  $as_echo "$as_val"'`
25469                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25470 $as_echo "$ac_res" >&6; }
25471
25472 fi
25473 as_val=`eval 'as_val=${'$as_ac_Header'}
25474                  $as_echo "$as_val"'`
25475    if test "x$as_val" = x""yes; then
25476   cat >>confdefs.h <<_ACEOF
25477 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25478 _ACEOF
25479
25480 fi
25481
25482 done
25483
25484   fi
25485   if test "$ac_cv_header_winsock2_h" = yes; then
25486     HAVE_WINSOCK2_H=1
25487     UNISTD_H_HAVE_WINSOCK2_H=1
25488     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
25489   else
25490     HAVE_WINSOCK2_H=0
25491   fi
25492
25493
25494
25495
25496   fi
25497
25498
25499
25500
25501 cat >>confdefs.h <<\_ACEOF
25502 #define GNULIB_SYS_SOCKET 1
25503 _ACEOF
25504
25505
25506   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
25507 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
25508 if test -z "$MKDIR_P"; then
25509   if test "${ac_cv_path_mkdir+set}" = set; then
25510   $as_echo_n "(cached) " >&6
25511 else
25512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25513 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
25514 do
25515   IFS=$as_save_IFS
25516   test -z "$as_dir" && as_dir=.
25517   for ac_prog in mkdir gmkdir; do
25518          for ac_exec_ext in '' $ac_executable_extensions; do
25519            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
25520            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
25521              'mkdir (GNU coreutils) '* | \
25522              'mkdir (coreutils) '* | \
25523              'mkdir (fileutils) '4.1*)
25524                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
25525                break 3;;
25526            esac
25527          done
25528        done
25529 done
25530 IFS=$as_save_IFS
25531
25532 fi
25533
25534   if test "${ac_cv_path_mkdir+set}" = set; then
25535     MKDIR_P="$ac_cv_path_mkdir -p"
25536   else
25537     # As a last resort, use the slow shell script.  Don't cache a
25538     # value for MKDIR_P within a source directory, because that will
25539     # break other packages using the cache if that directory is
25540     # removed, or if the value is a relative name.
25541     test -d ./--version && rmdir ./--version
25542     MKDIR_P="$ac_install_sh -d"
25543   fi
25544 fi
25545 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
25546 $as_echo "$MKDIR_P" >&6; }
25547
25548
25549
25550
25551
25552   :
25553
25554
25555
25556
25557
25558   if test $ac_cv_func_lstat = yes; then
25559     HAVE_LSTAT=1
25560   else
25561     HAVE_LSTAT=0
25562   fi
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
25573   :
25574
25575
25576
25577
25578
25579
25580
25581      if test $gl_cv_have_include_next = yes; then
25582        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
25583      else
25584        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
25585 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
25586 if test "${gl_cv_next_sys_stat_h+set}" = set; then
25587   $as_echo_n "(cached) " >&6
25588 else
25589
25590           if test $ac_cv_header_sys_stat_h = yes; then
25591             cat >conftest.$ac_ext <<_ACEOF
25592 /* confdefs.h.  */
25593 _ACEOF
25594 cat confdefs.h >>conftest.$ac_ext
25595 cat >>conftest.$ac_ext <<_ACEOF
25596 /* end confdefs.h.  */
25597 #include <sys/stat.h>
25598
25599 _ACEOF
25600                                                                     case "$host_os" in
25601               aix*) gl_absname_cpp="$ac_cpp -C" ;;
25602               *)    gl_absname_cpp="$ac_cpp" ;;
25603             esac
25604                                     gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25605                sed -n '\#/sys/stat.h#{
25606                  s#.*"\(.*/sys/stat.h\)".*#\1#
25607                  s#^/[^/]#//&#
25608                  p
25609                  q
25610                }'`'"'
25611           else
25612             gl_cv_next_sys_stat_h='<'sys/stat.h'>'
25613           fi
25614
25615 fi
25616 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
25617 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
25618      fi
25619      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
25620
25621
25622
25623   SYS_STAT_H='sys/stat.h'
25624
25625
25626       { $as_echo "$as_me:$LINENO: checking for nlink_t" >&5
25627 $as_echo_n "checking for nlink_t... " >&6; }
25628 if test "${ac_cv_type_nlink_t+set}" = set; then
25629   $as_echo_n "(cached) " >&6
25630 else
25631   ac_cv_type_nlink_t=no
25632 cat >conftest.$ac_ext <<_ACEOF
25633 /* confdefs.h.  */
25634 _ACEOF
25635 cat confdefs.h >>conftest.$ac_ext
25636 cat >>conftest.$ac_ext <<_ACEOF
25637 /* end confdefs.h.  */
25638 #include <sys/types.h>
25639      #include <sys/stat.h>
25640
25641 int
25642 main ()
25643 {
25644 if (sizeof (nlink_t))
25645        return 0;
25646   ;
25647   return 0;
25648 }
25649 _ACEOF
25650 rm -f conftest.$ac_objext
25651 if { (ac_try="$ac_compile"
25652 case "(($ac_try" in
25653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25654   *) ac_try_echo=$ac_try;;
25655 esac
25656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25657 $as_echo "$ac_try_echo") >&5
25658   (eval "$ac_compile") 2>conftest.er1
25659   ac_status=$?
25660   grep -v '^ *+' conftest.er1 >conftest.err
25661   rm -f conftest.er1
25662   cat conftest.err >&5
25663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664   (exit $ac_status); } && {
25665          test -z "$ac_c_werror_flag" ||
25666          test ! -s conftest.err
25667        } && test -s conftest.$ac_objext; then
25668   cat >conftest.$ac_ext <<_ACEOF
25669 /* confdefs.h.  */
25670 _ACEOF
25671 cat confdefs.h >>conftest.$ac_ext
25672 cat >>conftest.$ac_ext <<_ACEOF
25673 /* end confdefs.h.  */
25674 #include <sys/types.h>
25675      #include <sys/stat.h>
25676
25677 int
25678 main ()
25679 {
25680 if (sizeof ((nlink_t)))
25681           return 0;
25682   ;
25683   return 0;
25684 }
25685 _ACEOF
25686 rm -f conftest.$ac_objext
25687 if { (ac_try="$ac_compile"
25688 case "(($ac_try" in
25689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25690   *) ac_try_echo=$ac_try;;
25691 esac
25692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25693 $as_echo "$ac_try_echo") >&5
25694   (eval "$ac_compile") 2>conftest.er1
25695   ac_status=$?
25696   grep -v '^ *+' conftest.er1 >conftest.err
25697   rm -f conftest.er1
25698   cat conftest.err >&5
25699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700   (exit $ac_status); } && {
25701          test -z "$ac_c_werror_flag" ||
25702          test ! -s conftest.err
25703        } && test -s conftest.$ac_objext; then
25704   :
25705 else
25706   $as_echo "$as_me: failed program was:" >&5
25707 sed 's/^/| /' conftest.$ac_ext >&5
25708
25709         ac_cv_type_nlink_t=yes
25710 fi
25711
25712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25713 else
25714   $as_echo "$as_me: failed program was:" >&5
25715 sed 's/^/| /' conftest.$ac_ext >&5
25716
25717
25718 fi
25719
25720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25721 fi
25722 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
25723 $as_echo "$ac_cv_type_nlink_t" >&6; }
25724 if test "x$ac_cv_type_nlink_t" = x""yes; then
25725   :
25726 else
25727
25728 cat >>confdefs.h <<\_ACEOF
25729 #define nlink_t int
25730 _ACEOF
25731
25732 fi
25733
25734
25735
25736   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
25737 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
25738 if test -z "$MKDIR_P"; then
25739   if test "${ac_cv_path_mkdir+set}" = set; then
25740   $as_echo_n "(cached) " >&6
25741 else
25742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25743 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
25744 do
25745   IFS=$as_save_IFS
25746   test -z "$as_dir" && as_dir=.
25747   for ac_prog in mkdir gmkdir; do
25748          for ac_exec_ext in '' $ac_executable_extensions; do
25749            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
25750            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
25751              'mkdir (GNU coreutils) '* | \
25752              'mkdir (coreutils) '* | \
25753              'mkdir (fileutils) '4.1*)
25754                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
25755                break 3;;
25756            esac
25757          done
25758        done
25759 done
25760 IFS=$as_save_IFS
25761
25762 fi
25763
25764   if test "${ac_cv_path_mkdir+set}" = set; then
25765     MKDIR_P="$ac_cv_path_mkdir -p"
25766   else
25767     # As a last resort, use the slow shell script.  Don't cache a
25768     # value for MKDIR_P within a source directory, because that will
25769     # break other packages using the cache if that directory is
25770     # removed, or if the value is a relative name.
25771     test -d ./--version && rmdir ./--version
25772     MKDIR_P="$ac_install_sh -d"
25773   fi
25774 fi
25775 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
25776 $as_echo "$MKDIR_P" >&6; }
25777
25778
25779
25780
25781   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
25782 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
25783 if test -z "$MKDIR_P"; then
25784   if test "${ac_cv_path_mkdir+set}" = set; then
25785   $as_echo_n "(cached) " >&6
25786 else
25787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25788 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
25789 do
25790   IFS=$as_save_IFS
25791   test -z "$as_dir" && as_dir=.
25792   for ac_prog in mkdir gmkdir; do
25793          for ac_exec_ext in '' $ac_executable_extensions; do
25794            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
25795            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
25796              'mkdir (GNU coreutils) '* | \
25797              'mkdir (coreutils) '* | \
25798              'mkdir (fileutils) '4.1*)
25799                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
25800                break 3;;
25801            esac
25802          done
25803        done
25804 done
25805 IFS=$as_save_IFS
25806
25807 fi
25808
25809   if test "${ac_cv_path_mkdir+set}" = set; then
25810     MKDIR_P="$ac_cv_path_mkdir -p"
25811   else
25812     # As a last resort, use the slow shell script.  Don't cache a
25813     # value for MKDIR_P within a source directory, because that will
25814     # break other packages using the cache if that directory is
25815     # removed, or if the value is a relative name.
25816     test -d ./--version && rmdir ./--version
25817     MKDIR_P="$ac_install_sh -d"
25818   fi
25819 fi
25820 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
25821 $as_echo "$MKDIR_P" >&6; }
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
25835
25836
25837   :
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
25850
25851   :
25852
25853
25854
25855
25856
25857
25858
25859      if test $gl_cv_have_include_next = yes; then
25860        gl_cv_next_unistd_h='<'unistd.h'>'
25861      else
25862        { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
25863 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25864 if test "${gl_cv_next_unistd_h+set}" = set; then
25865   $as_echo_n "(cached) " >&6
25866 else
25867
25868           if test $ac_cv_header_unistd_h = yes; then
25869             cat >conftest.$ac_ext <<_ACEOF
25870 /* confdefs.h.  */
25871 _ACEOF
25872 cat confdefs.h >>conftest.$ac_ext
25873 cat >>conftest.$ac_ext <<_ACEOF
25874 /* end confdefs.h.  */
25875 #include <unistd.h>
25876
25877 _ACEOF
25878                                                                     case "$host_os" in
25879               aix*) gl_absname_cpp="$ac_cpp -C" ;;
25880               *)    gl_absname_cpp="$ac_cpp" ;;
25881             esac
25882                                     gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25883                sed -n '\#/unistd.h#{
25884                  s#.*"\(.*/unistd.h\)".*#\1#
25885                  s#^/[^/]#//&#
25886                  p
25887                  q
25888                }'`'"'
25889           else
25890             gl_cv_next_unistd_h='<'unistd.h'>'
25891           fi
25892
25893 fi
25894 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
25895 $as_echo "$gl_cv_next_unistd_h" >&6; }
25896      fi
25897      NEXT_UNISTD_H=$gl_cv_next_unistd_h
25898
25899
25900
25901
25902
25903   :
25904
25905
25906
25907
25908
25909   if test $ac_cv_header_unistd_h = yes; then
25910     HAVE_UNISTD_H=1
25911   else
25912     HAVE_UNISTD_H=0
25913   fi
25914
25915
25916
25917
25918   :
25919
25920
25921
25922
25923
25924   if test $ac_cv_func_vasnprintf = no; then
25925
25926
25927   :
25928
25929
25930
25931
25932
25933
25934
25935
25936
25937
25938
25939
25940
25941   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
25942
25943
25944
25945
25946
25947
25948
25949
25950
25951   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
25952
25953
25954
25955
25956
25957
25958
25959
25960
25961   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
25962
25963
25964
25965
25966
25967
25968
25969
25970
25971   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
25972
25973   if test $ac_cv_func_vasnprintf = yes; then
25974
25975 cat >>confdefs.h <<\_ACEOF
25976 #define REPLACE_VASNPRINTF 1
25977 _ACEOF
25978
25979   fi
25980
25981
25982
25983
25984
25985
25986
25987
25988
25989
25990   { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25991 $as_echo_n "checking for ptrdiff_t... " >&6; }
25992 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25993   $as_echo_n "(cached) " >&6
25994 else
25995   ac_cv_type_ptrdiff_t=no
25996 cat >conftest.$ac_ext <<_ACEOF
25997 /* confdefs.h.  */
25998 _ACEOF
25999 cat confdefs.h >>conftest.$ac_ext
26000 cat >>conftest.$ac_ext <<_ACEOF
26001 /* end confdefs.h.  */
26002 $ac_includes_default
26003 int
26004 main ()
26005 {
26006 if (sizeof (ptrdiff_t))
26007        return 0;
26008   ;
26009   return 0;
26010 }
26011 _ACEOF
26012 rm -f conftest.$ac_objext
26013 if { (ac_try="$ac_compile"
26014 case "(($ac_try" in
26015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26016   *) ac_try_echo=$ac_try;;
26017 esac
26018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26019 $as_echo "$ac_try_echo") >&5
26020   (eval "$ac_compile") 2>conftest.er1
26021   ac_status=$?
26022   grep -v '^ *+' conftest.er1 >conftest.err
26023   rm -f conftest.er1
26024   cat conftest.err >&5
26025   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026   (exit $ac_status); } && {
26027          test -z "$ac_c_werror_flag" ||
26028          test ! -s conftest.err
26029        } && test -s conftest.$ac_objext; then
26030   cat >conftest.$ac_ext <<_ACEOF
26031 /* confdefs.h.  */
26032 _ACEOF
26033 cat confdefs.h >>conftest.$ac_ext
26034 cat >>conftest.$ac_ext <<_ACEOF
26035 /* end confdefs.h.  */
26036 $ac_includes_default
26037 int
26038 main ()
26039 {
26040 if (sizeof ((ptrdiff_t)))
26041           return 0;
26042   ;
26043   return 0;
26044 }
26045 _ACEOF
26046 rm -f conftest.$ac_objext
26047 if { (ac_try="$ac_compile"
26048 case "(($ac_try" in
26049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26050   *) ac_try_echo=$ac_try;;
26051 esac
26052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26053 $as_echo "$ac_try_echo") >&5
26054   (eval "$ac_compile") 2>conftest.er1
26055   ac_status=$?
26056   grep -v '^ *+' conftest.er1 >conftest.err
26057   rm -f conftest.er1
26058   cat conftest.err >&5
26059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060   (exit $ac_status); } && {
26061          test -z "$ac_c_werror_flag" ||
26062          test ! -s conftest.err
26063        } && test -s conftest.$ac_objext; then
26064   :
26065 else
26066   $as_echo "$as_me: failed program was:" >&5
26067 sed 's/^/| /' conftest.$ac_ext >&5
26068
26069         ac_cv_type_ptrdiff_t=yes
26070 fi
26071
26072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26073 else
26074   $as_echo "$as_me: failed program was:" >&5
26075 sed 's/^/| /' conftest.$ac_ext >&5
26076
26077
26078 fi
26079
26080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26081 fi
26082 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
26083 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
26084 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
26085   :
26086 else
26087
26088 cat >>confdefs.h <<\_ACEOF
26089 #define ptrdiff_t long
26090 _ACEOF
26091
26092
26093 fi
26094
26095
26096
26097
26098
26099
26100
26101
26102
26103
26104
26105
26106
26107
26108 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
26109 do
26110 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26111 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26112 $as_echo_n "checking for $ac_func... " >&6; }
26113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26114   $as_echo_n "(cached) " >&6
26115 else
26116   cat >conftest.$ac_ext <<_ACEOF
26117 /* confdefs.h.  */
26118 _ACEOF
26119 cat confdefs.h >>conftest.$ac_ext
26120 cat >>conftest.$ac_ext <<_ACEOF
26121 /* end confdefs.h.  */
26122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26123    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26124 #define $ac_func innocuous_$ac_func
26125
26126 /* System header to define __stub macros and hopefully few prototypes,
26127     which can conflict with char $ac_func (); below.
26128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26129     <limits.h> exists even on freestanding compilers.  */
26130
26131 #ifdef __STDC__
26132 # include <limits.h>
26133 #else
26134 # include <assert.h>
26135 #endif
26136
26137 #undef $ac_func
26138
26139 /* Override any GCC internal prototype to avoid an error.
26140    Use char because int might match the return type of a GCC
26141    builtin and then its argument prototype would still apply.  */
26142 #ifdef __cplusplus
26143 extern "C"
26144 #endif
26145 char $ac_func ();
26146 /* The GNU C library defines this for functions which it implements
26147     to always fail with ENOSYS.  Some functions are actually named
26148     something starting with __ and the normal name is an alias.  */
26149 #if defined __stub_$ac_func || defined __stub___$ac_func
26150 choke me
26151 #endif
26152
26153 int
26154 main ()
26155 {
26156 return $ac_func ();
26157   ;
26158   return 0;
26159 }
26160 _ACEOF
26161 rm -f conftest.$ac_objext conftest$ac_exeext
26162 if { (ac_try="$ac_link"
26163 case "(($ac_try" in
26164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26165   *) ac_try_echo=$ac_try;;
26166 esac
26167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26168 $as_echo "$ac_try_echo") >&5
26169   (eval "$ac_link") 2>conftest.er1
26170   ac_status=$?
26171   grep -v '^ *+' conftest.er1 >conftest.err
26172   rm -f conftest.er1
26173   cat conftest.err >&5
26174   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175   (exit $ac_status); } && {
26176          test -z "$ac_c_werror_flag" ||
26177          test ! -s conftest.err
26178        } && test -s conftest$ac_exeext && {
26179          test "$cross_compiling" = yes ||
26180          $as_test_x conftest$ac_exeext
26181        }; then
26182   eval "$as_ac_var=yes"
26183 else
26184   $as_echo "$as_me: failed program was:" >&5
26185 sed 's/^/| /' conftest.$ac_ext >&5
26186
26187         eval "$as_ac_var=no"
26188 fi
26189
26190 rm -rf conftest.dSYM
26191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26192       conftest$ac_exeext conftest.$ac_ext
26193 fi
26194 ac_res=`eval 'as_val=${'$as_ac_var'}
26195                  $as_echo "$as_val"'`
26196                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26197 $as_echo "$ac_res" >&6; }
26198 as_val=`eval 'as_val=${'$as_ac_var'}
26199                  $as_echo "$as_val"'`
26200    if test "x$as_val" = x""yes; then
26201   cat >>confdefs.h <<_ACEOF
26202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26203 _ACEOF
26204
26205 fi
26206 done
26207
26208       { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
26209 $as_echo_n "checking whether _snprintf is declared... " >&6; }
26210 if test "${ac_cv_have_decl__snprintf+set}" = set; then
26211   $as_echo_n "(cached) " >&6
26212 else
26213   cat >conftest.$ac_ext <<_ACEOF
26214 /* confdefs.h.  */
26215 _ACEOF
26216 cat confdefs.h >>conftest.$ac_ext
26217 cat >>conftest.$ac_ext <<_ACEOF
26218 /* end confdefs.h.  */
26219 #include <stdio.h>
26220
26221 int
26222 main ()
26223 {
26224 #ifndef _snprintf
26225   (void) _snprintf;
26226 #endif
26227
26228   ;
26229   return 0;
26230 }
26231 _ACEOF
26232 rm -f conftest.$ac_objext
26233 if { (ac_try="$ac_compile"
26234 case "(($ac_try" in
26235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26236   *) ac_try_echo=$ac_try;;
26237 esac
26238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26239 $as_echo "$ac_try_echo") >&5
26240   (eval "$ac_compile") 2>conftest.er1
26241   ac_status=$?
26242   grep -v '^ *+' conftest.er1 >conftest.err
26243   rm -f conftest.er1
26244   cat conftest.err >&5
26245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246   (exit $ac_status); } && {
26247          test -z "$ac_c_werror_flag" ||
26248          test ! -s conftest.err
26249        } && test -s conftest.$ac_objext; then
26250   ac_cv_have_decl__snprintf=yes
26251 else
26252   $as_echo "$as_me: failed program was:" >&5
26253 sed 's/^/| /' conftest.$ac_ext >&5
26254
26255         ac_cv_have_decl__snprintf=no
26256 fi
26257
26258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26259 fi
26260 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
26261 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
26262 if test "x$ac_cv_have_decl__snprintf" = x""yes; then
26263
26264 cat >>confdefs.h <<_ACEOF
26265 #define HAVE_DECL__SNPRINTF 1
26266 _ACEOF
26267
26268
26269 else
26270   cat >>confdefs.h <<_ACEOF
26271 #define HAVE_DECL__SNPRINTF 0
26272 _ACEOF
26273
26274
26275 fi
26276
26277
26278
26279
26280
26281
26282   fi
26283
26284
26285
26286   CFLAG_VISIBILITY=
26287   HAVE_VISIBILITY=0
26288   if test -n "$GCC"; then
26289     { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
26290 $as_echo_n "checking for simple visibility declarations... " >&6; }
26291     if test "${gl_cv_cc_visibility+set}" = set; then
26292   $as_echo_n "(cached) " >&6
26293 else
26294
26295       gl_save_CFLAGS="$CFLAGS"
26296       CFLAGS="$CFLAGS -fvisibility=hidden"
26297       cat >conftest.$ac_ext <<_ACEOF
26298 /* confdefs.h.  */
26299 _ACEOF
26300 cat confdefs.h >>conftest.$ac_ext
26301 cat >>conftest.$ac_ext <<_ACEOF
26302 /* end confdefs.h.  */
26303 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
26304          extern __attribute__((__visibility__("default"))) int exportedvar;
26305          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
26306          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
26307 int
26308 main ()
26309 {
26310
26311   ;
26312   return 0;
26313 }
26314 _ACEOF
26315 rm -f conftest.$ac_objext
26316 if { (ac_try="$ac_compile"
26317 case "(($ac_try" in
26318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26319   *) ac_try_echo=$ac_try;;
26320 esac
26321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26322 $as_echo "$ac_try_echo") >&5
26323   (eval "$ac_compile") 2>conftest.er1
26324   ac_status=$?
26325   grep -v '^ *+' conftest.er1 >conftest.err
26326   rm -f conftest.er1
26327   cat conftest.err >&5
26328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26329   (exit $ac_status); } && {
26330          test -z "$ac_c_werror_flag" ||
26331          test ! -s conftest.err
26332        } && test -s conftest.$ac_objext; then
26333   gl_cv_cc_visibility=yes
26334 else
26335   $as_echo "$as_me: failed program was:" >&5
26336 sed 's/^/| /' conftest.$ac_ext >&5
26337
26338         gl_cv_cc_visibility=no
26339 fi
26340
26341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26342       CFLAGS="$gl_save_CFLAGS"
26343 fi
26344
26345     { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
26346 $as_echo "$gl_cv_cc_visibility" >&6; }
26347     if test $gl_cv_cc_visibility = yes; then
26348       CFLAG_VISIBILITY="-fvisibility=hidden"
26349       HAVE_VISIBILITY=1
26350     fi
26351   fi
26352
26353
26354
26355 cat >>confdefs.h <<_ACEOF
26356 #define HAVE_VISIBILITY $HAVE_VISIBILITY
26357 _ACEOF
26358
26359
26360
26361
26362   { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
26363 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
26364 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
26365   $as_echo_n "(cached) " >&6
26366 else
26367   cat >conftest.$ac_ext <<_ACEOF
26368 #include <wchar.h>
26369 wchar_t w;
26370 _ACEOF
26371 rm -f conftest.$ac_objext
26372 if { (ac_try="$ac_compile"
26373 case "(($ac_try" in
26374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26375   *) ac_try_echo=$ac_try;;
26376 esac
26377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26378 $as_echo "$ac_try_echo") >&5
26379   (eval "$ac_compile") 2>conftest.er1
26380   ac_status=$?
26381   grep -v '^ *+' conftest.er1 >conftest.err
26382   rm -f conftest.er1
26383   cat conftest.err >&5
26384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385   (exit $ac_status); } && {
26386          test -z "$ac_c_werror_flag" ||
26387          test ! -s conftest.err
26388        } && test -s conftest.$ac_objext; then
26389   gl_cv_header_wchar_h_standalone=yes
26390 else
26391   $as_echo "$as_me: failed program was:" >&5
26392 sed 's/^/| /' conftest.$ac_ext >&5
26393
26394         gl_cv_header_wchar_h_standalone=no
26395 fi
26396
26397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26398 fi
26399 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
26400 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
26401
26402
26403   if test $gt_cv_c_wint_t = yes; then
26404     HAVE_WINT_T=1
26405   else
26406     HAVE_WINT_T=0
26407   fi
26408
26409
26410   if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
26411     WCHAR_H=wchar.h
26412   fi
26413
26414
26415   :
26416
26417
26418
26419
26420
26421   if test $ac_cv_header_wchar_h = yes; then
26422     HAVE_WCHAR_H=1
26423   else
26424     HAVE_WCHAR_H=0
26425   fi
26426
26427
26428
26429
26430
26431   :
26432
26433
26434
26435
26436
26437
26438
26439      if test $gl_cv_have_include_next = yes; then
26440        gl_cv_next_wchar_h='<'wchar.h'>'
26441      else
26442        { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
26443 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
26444 if test "${gl_cv_next_wchar_h+set}" = set; then
26445   $as_echo_n "(cached) " >&6
26446 else
26447
26448           if test $ac_cv_header_wchar_h = yes; then
26449             cat >conftest.$ac_ext <<_ACEOF
26450 /* confdefs.h.  */
26451 _ACEOF
26452 cat confdefs.h >>conftest.$ac_ext
26453 cat >>conftest.$ac_ext <<_ACEOF
26454 /* end confdefs.h.  */
26455 #include <wchar.h>
26456
26457 _ACEOF
26458                                                                     case "$host_os" in
26459               aix*) gl_absname_cpp="$ac_cpp -C" ;;
26460               *)    gl_absname_cpp="$ac_cpp" ;;
26461             esac
26462                                     gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26463                sed -n '\#/wchar.h#{
26464                  s#.*"\(.*/wchar.h\)".*#\1#
26465                  s#^/[^/]#//&#
26466                  p
26467                  q
26468                }'`'"'
26469           else
26470             gl_cv_next_wchar_h='<'wchar.h'>'
26471           fi
26472
26473 fi
26474 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
26475 $as_echo "$gl_cv_next_wchar_h" >&6; }
26476      fi
26477      NEXT_WCHAR_H=$gl_cv_next_wchar_h
26478
26479
26480
26481
26482
26483
26484
26485
26486
26487   :
26488
26489
26490
26491
26492
26493   if test $ac_cv_func_wcrtomb = no; then
26494     HAVE_WCRTOMB=0
26495   else
26496
26497
26498
26499
26500
26501
26502          { $as_echo "$as_me:$LINENO: checking whether wcrtomb return value is correct" >&5
26503 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
26504 if test "${gl_cv_func_wcrtomb_retval+set}" = set; then
26505   $as_echo_n "(cached) " >&6
26506 else
26507
26508                         case "$host_os" in
26509                            # Guess no on OSF/1 and Solaris.
26510           osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
26511                            # Guess yes otherwise.
26512           *)               gl_cv_func_wcrtomb_retval="guessing yes" ;;
26513         esac
26514         if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
26515           if test "$cross_compiling" = yes; then
26516   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26518 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26519 See \`config.log' for more details." >&5
26520 $as_echo "$as_me: error: cannot run test program while cross compiling
26521 See \`config.log' for more details." >&2;}
26522    { (exit 1); exit 1; }; }; }
26523 else
26524   cat >conftest.$ac_ext <<_ACEOF
26525 /* confdefs.h.  */
26526 _ACEOF
26527 cat confdefs.h >>conftest.$ac_ext
26528 cat >>conftest.$ac_ext <<_ACEOF
26529 /* end confdefs.h.  */
26530
26531 #include <locale.h>
26532 #include <stdio.h>
26533 #include <string.h>
26534 #include <wchar.h>
26535 int main ()
26536 {
26537   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
26538     {
26539       if (wcrtomb (NULL, 0, NULL) != 1)
26540         return 1;
26541     }
26542   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
26543     {
26544       if (wcrtomb (NULL, 0, NULL) != 1)
26545         return 1;
26546     }
26547   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
26548     {
26549       if (wcrtomb (NULL, 0, NULL) != 1)
26550         return 1;
26551     }
26552   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
26553     {
26554       if (wcrtomb (NULL, 0, NULL) != 1)
26555         return 1;
26556     }
26557   return 0;
26558 }
26559 _ACEOF
26560 rm -f conftest$ac_exeext
26561 if { (ac_try="$ac_link"
26562 case "(($ac_try" in
26563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26564   *) ac_try_echo=$ac_try;;
26565 esac
26566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26567 $as_echo "$ac_try_echo") >&5
26568   (eval "$ac_link") 2>&5
26569   ac_status=$?
26570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26572   { (case "(($ac_try" in
26573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26574   *) ac_try_echo=$ac_try;;
26575 esac
26576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26577 $as_echo "$ac_try_echo") >&5
26578   (eval "$ac_try") 2>&5
26579   ac_status=$?
26580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581   (exit $ac_status); }; }; then
26582   gl_cv_func_wcrtomb_retval=yes
26583 else
26584   $as_echo "$as_me: program exited with status $ac_status" >&5
26585 $as_echo "$as_me: failed program was:" >&5
26586 sed 's/^/| /' conftest.$ac_ext >&5
26587
26588 ( exit $ac_status )
26589 gl_cv_func_wcrtomb_retval=no
26590 fi
26591 rm -rf conftest.dSYM
26592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26593 fi
26594
26595
26596         fi
26597
26598 fi
26599 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcrtomb_retval" >&5
26600 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
26601     case "$gl_cv_func_wcrtomb_retval" in
26602       *yes) ;;
26603       *) REPLACE_WCRTOMB=1 ;;
26604     esac
26605   fi
26606   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
26607
26608
26609   WCHAR_H=wchar.h
26610
26611
26612
26613
26614
26615
26616
26617
26618
26619   gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
26620
26621
26622   :
26623
26624   fi
26625
26626
26627
26628   GNULIB_WCRTOMB=1
26629
26630
26631
26632
26633   :
26634
26635
26636
26637
26638
26639   if test $ac_cv_func_iswcntrl = yes; then
26640     HAVE_ISWCNTRL=1
26641   else
26642     HAVE_ISWCNTRL=0
26643   fi
26644
26645
26646   :
26647
26648
26649
26650
26651
26652
26653
26654
26655   if test $gt_cv_c_wint_t = yes; then
26656     HAVE_WINT_T=1
26657   else
26658     HAVE_WINT_T=0
26659   fi
26660
26661
26662   WCTYPE_H=wctype.h
26663   if test $ac_cv_header_wctype_h = yes; then
26664     if test $ac_cv_func_iswcntrl = yes; then
26665                   { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
26666 $as_echo_n "checking whether iswcntrl works... " >&6; }
26667 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
26668   $as_echo_n "(cached) " >&6
26669 else
26670
26671           if test "$cross_compiling" = yes; then
26672   cat >conftest.$ac_ext <<_ACEOF
26673 /* confdefs.h.  */
26674 _ACEOF
26675 cat confdefs.h >>conftest.$ac_ext
26676 cat >>conftest.$ac_ext <<_ACEOF
26677 /* end confdefs.h.  */
26678 #include <stdlib.h>
26679                           #if __GNU_LIBRARY__ == 1
26680                           Linux libc5 i18n is broken.
26681                           #endif
26682 int
26683 main ()
26684 {
26685
26686   ;
26687   return 0;
26688 }
26689 _ACEOF
26690 rm -f conftest.$ac_objext
26691 if { (ac_try="$ac_compile"
26692 case "(($ac_try" in
26693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26694   *) ac_try_echo=$ac_try;;
26695 esac
26696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26697 $as_echo "$ac_try_echo") >&5
26698   (eval "$ac_compile") 2>conftest.er1
26699   ac_status=$?
26700   grep -v '^ *+' conftest.er1 >conftest.err
26701   rm -f conftest.er1
26702   cat conftest.err >&5
26703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704   (exit $ac_status); } && {
26705          test -z "$ac_c_werror_flag" ||
26706          test ! -s conftest.err
26707        } && test -s conftest.$ac_objext; then
26708   gl_cv_func_iswcntrl_works=yes
26709 else
26710   $as_echo "$as_me: failed program was:" >&5
26711 sed 's/^/| /' conftest.$ac_ext >&5
26712
26713         gl_cv_func_iswcntrl_works=no
26714 fi
26715
26716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26717
26718 else
26719   cat >conftest.$ac_ext <<_ACEOF
26720 /* confdefs.h.  */
26721 _ACEOF
26722 cat confdefs.h >>conftest.$ac_ext
26723 cat >>conftest.$ac_ext <<_ACEOF
26724 /* end confdefs.h.  */
26725 #include <stddef.h>
26726                       #include <stdio.h>
26727                       #include <time.h>
26728                       #include <wchar.h>
26729                       #include <wctype.h>
26730                       int main () { return iswprint ('x') == 0; }
26731 _ACEOF
26732 rm -f conftest$ac_exeext
26733 if { (ac_try="$ac_link"
26734 case "(($ac_try" in
26735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26736   *) ac_try_echo=$ac_try;;
26737 esac
26738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26739 $as_echo "$ac_try_echo") >&5
26740   (eval "$ac_link") 2>&5
26741   ac_status=$?
26742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26744   { (case "(($ac_try" in
26745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26746   *) ac_try_echo=$ac_try;;
26747 esac
26748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26749 $as_echo "$ac_try_echo") >&5
26750   (eval "$ac_try") 2>&5
26751   ac_status=$?
26752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753   (exit $ac_status); }; }; then
26754   gl_cv_func_iswcntrl_works=yes
26755 else
26756   $as_echo "$as_me: program exited with status $ac_status" >&5
26757 $as_echo "$as_me: failed program was:" >&5
26758 sed 's/^/| /' conftest.$ac_ext >&5
26759
26760 ( exit $ac_status )
26761 gl_cv_func_iswcntrl_works=no
26762 fi
26763 rm -rf conftest.dSYM
26764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26765 fi
26766
26767
26768
26769 fi
26770 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
26771 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
26772       if test $gl_cv_func_iswcntrl_works = yes; then
26773         WCTYPE_H=
26774       fi
26775     fi
26776
26777
26778
26779
26780   :
26781
26782
26783
26784
26785
26786
26787
26788      if test $gl_cv_have_include_next = yes; then
26789        gl_cv_next_wctype_h='<'wctype.h'>'
26790      else
26791        { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
26792 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
26793 if test "${gl_cv_next_wctype_h+set}" = set; then
26794   $as_echo_n "(cached) " >&6
26795 else
26796
26797           if test $ac_cv_header_wctype_h = yes; then
26798             cat >conftest.$ac_ext <<_ACEOF
26799 /* confdefs.h.  */
26800 _ACEOF
26801 cat confdefs.h >>conftest.$ac_ext
26802 cat >>conftest.$ac_ext <<_ACEOF
26803 /* end confdefs.h.  */
26804 #include <wctype.h>
26805
26806 _ACEOF
26807                                                                     case "$host_os" in
26808               aix*) gl_absname_cpp="$ac_cpp -C" ;;
26809               *)    gl_absname_cpp="$ac_cpp" ;;
26810             esac
26811                                     gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26812                sed -n '\#/wctype.h#{
26813                  s#.*"\(.*/wctype.h\)".*#\1#
26814                  s#^/[^/]#//&#
26815                  p
26816                  q
26817                }'`'"'
26818           else
26819             gl_cv_next_wctype_h='<'wctype.h'>'
26820           fi
26821
26822 fi
26823 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
26824 $as_echo "$gl_cv_next_wctype_h" >&6; }
26825      fi
26826      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
26827
26828
26829
26830     HAVE_WCTYPE_H=1
26831   else
26832     HAVE_WCTYPE_H=0
26833   fi
26834
26835
26836
26837   if test "$gl_cv_func_iswcntrl_works" = no; then
26838     REPLACE_ISWCNTRL=1
26839   else
26840     REPLACE_ISWCNTRL=0
26841   fi
26842
26843
26844
26845
26846
26847
26848
26849
26850   GNULIB_WRITE=1
26851
26852
26853
26854
26855
26856 for ac_header in stdint.h
26857 do
26858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26860   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26861 $as_echo_n "checking for $ac_header... " >&6; }
26862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26863   $as_echo_n "(cached) " >&6
26864 fi
26865 ac_res=`eval 'as_val=${'$as_ac_Header'}
26866                  $as_echo "$as_val"'`
26867                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26868 $as_echo "$ac_res" >&6; }
26869 else
26870   # Is the header compilable?
26871 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26872 $as_echo_n "checking $ac_header usability... " >&6; }
26873 cat >conftest.$ac_ext <<_ACEOF
26874 /* confdefs.h.  */
26875 _ACEOF
26876 cat confdefs.h >>conftest.$ac_ext
26877 cat >>conftest.$ac_ext <<_ACEOF
26878 /* end confdefs.h.  */
26879 $ac_includes_default
26880 #include <$ac_header>
26881 _ACEOF
26882 rm -f conftest.$ac_objext
26883 if { (ac_try="$ac_compile"
26884 case "(($ac_try" in
26885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26886   *) ac_try_echo=$ac_try;;
26887 esac
26888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26889 $as_echo "$ac_try_echo") >&5
26890   (eval "$ac_compile") 2>conftest.er1
26891   ac_status=$?
26892   grep -v '^ *+' conftest.er1 >conftest.err
26893   rm -f conftest.er1
26894   cat conftest.err >&5
26895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896   (exit $ac_status); } && {
26897          test -z "$ac_c_werror_flag" ||
26898          test ! -s conftest.err
26899        } && test -s conftest.$ac_objext; then
26900   ac_header_compiler=yes
26901 else
26902   $as_echo "$as_me: failed program was:" >&5
26903 sed 's/^/| /' conftest.$ac_ext >&5
26904
26905         ac_header_compiler=no
26906 fi
26907
26908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26909 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26910 $as_echo "$ac_header_compiler" >&6; }
26911
26912 # Is the header present?
26913 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26914 $as_echo_n "checking $ac_header presence... " >&6; }
26915 cat >conftest.$ac_ext <<_ACEOF
26916 /* confdefs.h.  */
26917 _ACEOF
26918 cat confdefs.h >>conftest.$ac_ext
26919 cat >>conftest.$ac_ext <<_ACEOF
26920 /* end confdefs.h.  */
26921 #include <$ac_header>
26922 _ACEOF
26923 if { (ac_try="$ac_cpp conftest.$ac_ext"
26924 case "(($ac_try" in
26925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26926   *) ac_try_echo=$ac_try;;
26927 esac
26928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26929 $as_echo "$ac_try_echo") >&5
26930   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26931   ac_status=$?
26932   grep -v '^ *+' conftest.er1 >conftest.err
26933   rm -f conftest.er1
26934   cat conftest.err >&5
26935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936   (exit $ac_status); } >/dev/null && {
26937          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26938          test ! -s conftest.err
26939        }; then
26940   ac_header_preproc=yes
26941 else
26942   $as_echo "$as_me: failed program was:" >&5
26943 sed 's/^/| /' conftest.$ac_ext >&5
26944
26945   ac_header_preproc=no
26946 fi
26947
26948 rm -f conftest.err conftest.$ac_ext
26949 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26950 $as_echo "$ac_header_preproc" >&6; }
26951
26952 # So?  What about this header?
26953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26954   yes:no: )
26955     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26956 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26957     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26958 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26959     ac_header_preproc=yes
26960     ;;
26961   no:yes:* )
26962     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26963 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26964     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26965 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26966     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26967 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26968     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26969 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26970     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26971 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26972     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26973 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26974
26975     ;;
26976 esac
26977 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26978 $as_echo_n "checking for $ac_header... " >&6; }
26979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26980   $as_echo_n "(cached) " >&6
26981 else
26982   eval "$as_ac_Header=\$ac_header_preproc"
26983 fi
26984 ac_res=`eval 'as_val=${'$as_ac_Header'}
26985                  $as_echo "$as_val"'`
26986                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26987 $as_echo "$ac_res" >&6; }
26988
26989 fi
26990 as_val=`eval 'as_val=${'$as_ac_Header'}
26991                  $as_echo "$as_val"'`
26992    if test "x$as_val" = x""yes; then
26993   cat >>confdefs.h <<_ACEOF
26994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26995 _ACEOF
26996
26997 fi
26998
26999 done
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011   gltests_libdeps=
27012   gltests_ltlibdeps=
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022   gl_source_base='tests'
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034     # support deprecated ./configure flags to set various compiler flags
27035
27036
27037 # Check whether --with-cflags was given.
27038 if test "${with_cflags+set}" = set; then
27039   withval=$with_cflags;
27040             case "$withval" in
27041             "" | y | ye | yes | n | no)
27042                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-cflags option." >&5
27043 $as_echo "$as_me: error: *** You must supply an argument to the --with-cflags option." >&2;}
27044    { (exit 1); exit 1; }; }
27045                 ;;
27046             esac
27047
27048             CFLAGS="$withval"
27049
27050 fi
27051
27052
27053
27054 # Check whether --with-includes was given.
27055 if test "${with_includes+set}" = set; then
27056   withval=$with_includes;
27057             case "$withval" in
27058             "" | y | ye | yes | n | no)
27059                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
27060 $as_echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
27061    { (exit 1); exit 1; }; }
27062               ;;
27063             esac
27064
27065             for dir in $withval; do
27066                 if test -d "$dir"; then
27067                     CPPFLAGS="$CPPFLAGS -I$dir"
27068                 else
27069
27070     { $as_echo "$as_me:$LINENO: WARNING: Include directory $dir does not exist." >&5
27071 $as_echo "$as_me: WARNING: Include directory $dir does not exist." >&2;}
27072
27073
27074     cat <<AAW_EOF >>config.warnings
27075 Include directory $dir does not exist.
27076 AAW_EOF
27077
27078
27079                 fi
27080             done
27081
27082 fi
27083
27084
27085
27086 # Check whether --with-libraries was given.
27087 if test "${with_libraries+set}" = set; then
27088   withval=$with_libraries;
27089             case "$withval" in
27090             "" | y | ye | yes | n | no)
27091                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
27092 $as_echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
27093    { (exit 1); exit 1; }; }
27094               ;;
27095             esac
27096
27097             for dir in $withval; do
27098                 if test -d "$dir"; then
27099                     case "$host" in
27100                       *-solaris2*,*-netbsd*)
27101                             LDFLAGS="$LDFLAGS -R$dir"
27102                             ;;
27103                     esac
27104                     LDFLAGS="$LDFLAGS -L$dir"
27105                 else
27106
27107     { $as_echo "$as_me:$LINENO: WARNING: Library directory $dir does not exist." >&5
27108 $as_echo "$as_me: WARNING: Library directory $dir does not exist." >&2;}
27109
27110
27111     cat <<AAW_EOF >>config.warnings
27112 Library directory $dir does not exist.
27113 AAW_EOF
27114
27115
27116                 fi
27117             done
27118
27119 fi
27120
27121
27122     # Disable strict-aliasing optimizations
27123
27124     # test for -W'feature', then add the 'no-' version.
27125
27126
27127
27128     { $as_echo "$as_me:$LINENO: checking for gcc flag -fstrict-aliasing" >&5
27129 $as_echo_n "checking for gcc flag -fstrict-aliasing... " >&6; }
27130     if test "x$GCC" = "xyes"; then
27131                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
27132            $CC -v --help 2>&1) |
27133          $EGREP -- '[^[:alnum:]]-fstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
27134                 if test $? -eq 0; then
27135             found_warning=yes
27136             { $as_echo "$as_me:$LINENO: result: yes" >&5
27137 $as_echo "yes" >&6; }
27138         else
27139             found_warning=no
27140             { $as_echo "$as_me:$LINENO: result: no" >&5
27141 $as_echo "no" >&6; }
27142         fi
27143     else
27144         found_warning=no
27145         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
27146 $as_echo "no (not using gcc)" >&6; }
27147     fi
27148
27149     if test x"$found_warning" = x"yes"; then
27150         CFLAGS="$CFLAGS -fno-strict-aliasing"
27151
27152         CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
27153
27154
27155     else
27156         :
27157     fi
27158
27159
27160
27161     # Warn for just about everything
27162
27163
27164
27165
27166     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wall" >&5
27167 $as_echo_n "checking for gcc flag -Wall... " >&6; }
27168     if test "x$GCC" = "xyes"; then
27169                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
27170            $CC -v --help 2>&1) |
27171          $EGREP -- '[^[:alnum:]]-Wall[^[:alnum:]-]' 2>&1 > /dev/null
27172                 if test $? -eq 0; then
27173             found_warning=yes
27174             { $as_echo "$as_me:$LINENO: result: yes" >&5
27175 $as_echo "yes" >&6; }
27176         else
27177             found_warning=no
27178             { $as_echo "$as_me:$LINENO: result: no" >&5
27179 $as_echo "no" >&6; }
27180         fi
27181     else
27182         found_warning=no
27183         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
27184 $as_echo "no (not using gcc)" >&6; }
27185     fi
27186
27187     if test x"$found_warning" = x"yes"; then
27188         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wall"
27189
27190
27191     else
27192         :
27193     fi
27194
27195
27196
27197     # And add any extra warnings too
27198
27199
27200
27201     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wextra" >&5
27202 $as_echo_n "checking for gcc flag -Wextra... " >&6; }
27203     if test "x$GCC" = "xyes"; then
27204                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
27205            $CC -v --help 2>&1) |
27206          $EGREP -- '[^[:alnum:]]-Wextra[^[:alnum:]-]' 2>&1 > /dev/null
27207                 if test $? -eq 0; then
27208             found_warning=yes
27209             { $as_echo "$as_me:$LINENO: result: yes" >&5
27210 $as_echo "yes" >&6; }
27211         else
27212             found_warning=no
27213             { $as_echo "$as_me:$LINENO: result: no" >&5
27214 $as_echo "no" >&6; }
27215         fi
27216     else
27217         found_warning=no
27218         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
27219 $as_echo "no (not using gcc)" >&6; }
27220     fi
27221
27222     if test x"$found_warning" = x"yes"; then
27223         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wextra"
27224
27225
27226     else
27227
27228
27229
27230     { $as_echo "$as_me:$LINENO: checking for gcc flag -W" >&5
27231 $as_echo_n "checking for gcc flag -W... " >&6; }
27232     if test "x$GCC" = "xyes"; then
27233                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
27234            $CC -v --help 2>&1) |
27235          $EGREP -- '^[:alnum:]-W^[:alnum:]-' 2>&1 > /dev/null
27236                 if test $? -eq 0; then
27237             found_warning=yes
27238             { $as_echo "$as_me:$LINENO: result: yes" >&5
27239 $as_echo "yes" >&6; }
27240         else
27241             found_warning=no
27242             { $as_echo "$as_me:$LINENO: result: no" >&5
27243 $as_echo "no" >&6; }
27244         fi
27245     else
27246         found_warning=no
27247         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
27248 $as_echo "no (not using gcc)" >&6; }
27249     fi
27250
27251     if test x"$found_warning" = x"yes"; then
27252         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -W"
27253
27254
27255     else
27256         :
27257     fi
27258
27259
27260     fi
27261
27262
27263
27264 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
27265
27266
27267
27268 #
27269 # Configuration flags (--with-xxx and --enable-xxx)
27270 #
27271
27272
27273
27274 # Check whether --with-user was given.
27275 if test "${with_user+set}" = set; then
27276   withval=$with_user;
27277             case "$withval" in
27278                 "" | y | ye | yes | n | no)
27279                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
27280 $as_echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
27281    { (exit 1); exit 1; }; }
27282                   ;;
27283                 *)
27284                     CLIENT_LOGIN="$withval"
27285                   ;;
27286             esac
27287
27288 else
27289
27290
27291     { $as_echo "$as_me:$LINENO: WARNING: no user specified (--with-user) -- using 'amanda'" >&5
27292 $as_echo "$as_me: WARNING: no user specified (--with-user) -- using 'amanda'" >&2;}
27293
27294
27295     cat <<AAW_EOF >>config.warnings
27296 no user specified (--with-user) -- using 'amanda'
27297 AAW_EOF
27298
27299
27300             CLIENT_LOGIN=amanda
27301
27302
27303 fi
27304
27305
27306
27307 cat >>confdefs.h <<_ACEOF
27308 #define CLIENT_LOGIN "$CLIENT_LOGIN"
27309 _ACEOF
27310
27311
27312
27313
27314
27315 # Check whether --with-group was given.
27316 if test "${with_group+set}" = set; then
27317   withval=$with_group;
27318             case "$withval" in
27319                 "" | y | ye | yes | n | no)
27320                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
27321 $as_echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
27322    { (exit 1); exit 1; }; }
27323                   ;;
27324                 *) SETUID_GROUP="$withval"
27325                   ;;
27326             esac
27327
27328 else
27329
27330
27331     { $as_echo "$as_me:$LINENO: WARNING: no group specified (--with-group) -- using 'backup'" >&5
27332 $as_echo "$as_me: WARNING: no group specified (--with-group) -- using 'backup'" >&2;}
27333
27334
27335     cat <<AAW_EOF >>config.warnings
27336 no group specified (--with-group) -- using 'backup'
27337 AAW_EOF
27338
27339
27340             CLIENT_LOGIN=backup
27341
27342
27343 fi
27344
27345
27346
27347
27348
27349 # Check whether --with-dumperdir was given.
27350 if test "${with_dumperdir+set}" = set; then
27351   withval=$with_dumperdir;
27352
27353     { $as_echo "$as_me:$LINENO: WARNING: --with-dumperdir is no longer used." >&5
27354 $as_echo "$as_me: WARNING: --with-dumperdir is no longer used." >&2;}
27355
27356
27357     cat <<AAW_EOF >>config.warnings
27358 --with-dumperdir is no longer used.
27359 AAW_EOF
27360
27361
27362
27363
27364 fi
27365
27366
27367
27368
27369 # Check whether --with-configdir was given.
27370 if test "${with_configdir+set}" = set; then
27371   withval=$with_configdir;
27372             case "$withval" in
27373             "" | y | ye | yes | n | no)
27374                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
27375 $as_echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
27376    { (exit 1); exit 1; }; }
27377               ;;
27378             *) CONFIG_DIR="$withval"
27379               ;;
27380             esac
27381
27382 else
27383
27384             : ${CONFIG_DIR='${sysconfdir}/amanda'} # (variable will be evaluated below)
27385
27386
27387 fi
27388
27389
27390   prefix_NONE=
27391   exec_prefix_NONE=
27392   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27393   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27394   eval ac_define_dir="\"$CONFIG_DIR\""
27395   eval ac_define_dir="\"$ac_define_dir\""
27396   CONFIG_DIR="$ac_define_dir"
27397
27398
27399 cat >>confdefs.h <<_ACEOF
27400 #define CONFIG_DIR "$ac_define_dir"
27401 _ACEOF
27402
27403   test "$prefix_NONE" && prefix=NONE
27404   test "$exec_prefix_NONE" && exec_prefix=NONE
27405
27406
27407
27408
27409 # Check whether --with-indexdir was given.
27410 if test "${with_indexdir+set}" = set; then
27411   withval=$with_indexdir;    { { $as_echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&5
27412 $as_echo "$as_me: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&2;}
27413    { (exit 1); exit 1; }; }
27414
27415 fi
27416
27417
27418
27419
27420 # Check whether --with-dbdir was given.
27421 if test "${with_dbdir+set}" = set; then
27422   withval=$with_dbdir;    { { $as_echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&5
27423 $as_echo "$as_me: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&2;}
27424    { (exit 1); exit 1; }; }
27425
27426 fi
27427
27428
27429
27430
27431 # Check whether --with-logdir was given.
27432 if test "${with_logdir+set}" = set; then
27433   withval=$with_logdir;    { { $as_echo "$as_me:$LINENO: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&5
27434 $as_echo "$as_me: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&2;}
27435    { (exit 1); exit 1; }; }
27436
27437 fi
27438
27439
27440
27441
27442 # Check whether --with-suffixes was given.
27443 if test "${with_suffixes+set}" = set; then
27444   withval=$with_suffixes;
27445
27446     { $as_echo "$as_me:$LINENO: WARNING: ** --with-suffixes is deprecated" >&5
27447 $as_echo "$as_me: WARNING: ** --with-suffixes is deprecated" >&2;}
27448
27449
27450     cat <<AAW_EOF >>config.warnings
27451 ** --with-suffixes is deprecated
27452 AAW_EOF
27453
27454
27455
27456 fi
27457
27458
27459
27460
27461 # Check whether --with-gnutar-listdir was given.
27462 if test "${with_gnutar_listdir+set}" = set; then
27463   withval=$with_gnutar_listdir;
27464             case "$withval" in
27465                 n | no) GNUTAR_LISTDIR= ;;
27466                 y | ye | yes) GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists' ;;
27467                 *) GNUTAR_LISTDIR="$withval" ;;
27468             esac
27469
27470 else
27471
27472             GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists'
27473
27474
27475 fi
27476
27477
27478     # substitute $prefix, etc. if necessary
27479
27480   prefix_NONE=
27481   exec_prefix_NONE=
27482   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27483   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27484   eval ac_define_dir="\"$GNUTAR_LISTDIR\""
27485   eval ac_define_dir="\"$ac_define_dir\""
27486   GNUTAR_LISTED_INCREMENTAL_DIR="$ac_define_dir"
27487
27488
27489 cat >>confdefs.h <<_ACEOF
27490 #define GNUTAR_LISTED_INCREMENTAL_DIR "$ac_define_dir"
27491 _ACEOF
27492
27493   test "$prefix_NONE" && prefix=NONE
27494   test "$exec_prefix_NONE" && exec_prefix=NONE
27495
27496
27497     # handle deprecated option
27498
27499 # Check whether --with-gnutar-listed-incremental was given.
27500 if test "${with_gnutar_listed_incremental+set}" = set; then
27501   withval=$with_gnutar_listed_incremental;
27502             { { $as_echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&5
27503 $as_echo "$as_me: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&2;}
27504    { (exit 1); exit 1; }; }
27505
27506
27507 fi
27508
27509
27510
27511
27512 # Check whether --with-tmpdir was given.
27513 if test "${with_tmpdir+set}" = set; then
27514   withval=$with_tmpdir;
27515             tmpdir="$withval"
27516
27517 else
27518
27519             tmpdir=yes
27520
27521
27522 fi
27523
27524
27525     case "$tmpdir" in
27526         n | no) { { $as_echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
27527 $as_echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
27528    { (exit 1); exit 1; }; };;
27529         y |  ye | yes) AMANDA_TMPDIR="/tmp/amanda";;
27530         *) AMANDA_TMPDIR="$tmpdir";;
27531     esac
27532
27533
27534   prefix_NONE=
27535   exec_prefix_NONE=
27536   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27537   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27538   eval ac_define_dir="\"$AMANDA_TMPDIR\""
27539   eval ac_define_dir="\"$ac_define_dir\""
27540   AMANDA_TMPDIR="$ac_define_dir"
27541
27542
27543 cat >>confdefs.h <<_ACEOF
27544 #define AMANDA_TMPDIR "$ac_define_dir"
27545 _ACEOF
27546
27547   test "$prefix_NONE" && prefix=NONE
27548   test "$exec_prefix_NONE" && exec_prefix=NONE
27549
27550
27551
27552
27553 # Check whether --with-force-uid was given.
27554 if test "${with_force_uid+set}" = set; then
27555   withval=$with_force_uid; CHECK_USERID="$withval"
27556 else
27557   : ${CHECK_USERID=yes}
27558
27559 fi
27560
27561     case "$CHECK_USERID" in
27562         y | ye | yes)
27563             CHECK_USERID=1
27564
27565 cat >>confdefs.h <<\_ACEOF
27566 #define CHECK_USERID 1
27567 _ACEOF
27568
27569           ;;
27570         n | no) :
27571             CHECK_USERID=
27572           ;;
27573         *)
27574             { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
27575 $as_echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
27576    { (exit 1); exit 1; }; }
27577     esac
27578
27579      if test x"$CHECK_USERID" = x"1"; then
27580   CHECK_USERID_TRUE=
27581   CHECK_USERID_FALSE='#'
27582 else
27583   CHECK_USERID_TRUE='#'
27584   CHECK_USERID_FALSE=
27585 fi
27586
27587
27588
27589
27590
27591 # Check whether --with-owner was given.
27592 if test "${with_owner+set}" = set; then
27593   withval=$with_owner;
27594             case "$withval" in
27595             "" | y | ye | yes | n | no)
27596                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
27597 $as_echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
27598    { (exit 1); exit 1; }; }
27599               ;;
27600             *) BINARY_OWNER="$withval"
27601               ;;
27602             esac
27603
27604 else
27605
27606             BINARY_OWNER="$CLIENT_LOGIN"
27607
27608
27609 fi
27610
27611
27612 cat >>confdefs.h <<_ACEOF
27613 #define BINARY_OWNER "$BINARY_OWNER"
27614 _ACEOF
27615
27616
27617
27618
27619
27620 # Check whether --with-fqdn was given.
27621 if test "${with_fqdn+set}" = set; then
27622   withval=$with_fqdn;  USE_FQDN=$withval
27623 else
27624    USE_FQDN=no
27625 fi
27626
27627
27628     case "$USE_FQDN" in
27629     n | no) : ;;
27630     y |  ye | yes)
27631
27632 cat >>confdefs.h <<\_ACEOF
27633 #define USE_FQDN 1
27634 _ACEOF
27635
27636       ;;
27637     *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-fqdn option." >&5
27638 $as_echo "$as_me: error: You must not supply an argument to --with-fqdn option." >&2;}
27639    { (exit 1); exit 1; }; }
27640       ;;
27641     esac
27642
27643
27644
27645 # Check whether --with-reuseports was given.
27646 if test "${with_reuseports+set}" = set; then
27647   withval=$with_reuseports;  case "$withval" in
27648             y | ye | yes) USE_REUSEADDR=no;;
27649             n | no) USE_REUSEADDR=yes;;
27650             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --without-reuseports" >&5
27651 $as_echo "$as_me: error: You must not supply an argument to --without-reuseports" >&2;}
27652    { (exit 1); exit 1; }; };;
27653           esac
27654
27655 else
27656    USE_REUSEADDR=yes;
27657 fi
27658
27659     if test x"$USE_REUSEADDR" = x"yes"; then
27660
27661 cat >>confdefs.h <<\_ACEOF
27662 #define USE_REUSEADDR 1
27663 _ACEOF
27664
27665     fi
27666
27667
27668
27669 # Check whether --with-low-tcpportrange was given.
27670 if test "${with_low_tcpportrange+set}" = set; then
27671   withval=$with_low_tcpportrange;  LOW_TCPPORTRANGE="$withval"
27672 else
27673    LOW_TCPPORTRANGE=unlimited
27674 fi
27675
27676
27677     if test x"$LOW_TCPPORTRANGE" != x"unlimited"; then
27678         if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
27679             { { $as_echo "$as_me:$LINENO: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&5
27680 $as_echo "$as_me: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&2;}
27681    { (exit 1); exit 1; }; }
27682         fi
27683         min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
27684         max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
27685         if test $min_low_tcp_port -gt $max_low_tcp_port; then
27686             { { $as_echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&5
27687 $as_echo "$as_me: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&2;}
27688    { (exit 1); exit 1; }; }
27689         fi
27690         if test $min_low_tcp_port -lt 512; then
27691
27692     { $as_echo "$as_me:$LINENO: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
27693 $as_echo "$as_me: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
27694
27695
27696     cat <<AAW_EOF >>config.warnings
27697 the low TCP port range should be 512 or greater in --with-low-tcpportrange
27698 AAW_EOF
27699
27700
27701         fi
27702         if test $max_low_tcp_port -ge 1024; then
27703
27704     { $as_echo "$as_me:$LINENO: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
27705 $as_echo "$as_me: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
27706
27707
27708     cat <<AAW_EOF >>config.warnings
27709 the low TCP port range should be less than 1024 in --with-low-tcpportrange
27710 AAW_EOF
27711
27712
27713         fi
27714
27715 cat >>confdefs.h <<_ACEOF
27716 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
27717 _ACEOF
27718
27719     fi
27720
27721
27722 # Check whether --with-tcpportrange was given.
27723 if test "${with_tcpportrange+set}" = set; then
27724   withval=$with_tcpportrange;  TCPPORTRANGE="$withval"
27725 else
27726    TCPPORTRANGE="unlimited"
27727 fi
27728
27729
27730     if test x"$TCPPORTRANGE" != x"unlimited"; then
27731         if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
27732             { { $as_echo "$as_me:$LINENO: error: --with-tcpportrange requires two comma-separated positive numbers" >&5
27733 $as_echo "$as_me: error: --with-tcpportrange requires two comma-separated positive numbers" >&2;}
27734    { (exit 1); exit 1; }; }
27735         fi
27736         min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
27737         max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
27738         if test $min_tcp_port -gt $max_tcp_port; then
27739             { { $as_echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&5
27740 $as_echo "$as_me: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
27741    { (exit 1); exit 1; }; }
27742         fi
27743         if test $min_tcp_port -lt 1024; then
27744
27745     { $as_echo "$as_me:$LINENO: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
27746 $as_echo "$as_me: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
27747
27748
27749     cat <<AAW_EOF >>config.warnings
27750 the TCP port range should be 1024 or greater in --with-tcpportrange
27751 AAW_EOF
27752
27753
27754         fi
27755         if test $max_tcp_port -ge 65536; then
27756
27757     { $as_echo "$as_me:$LINENO: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&5
27758 $as_echo "$as_me: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
27759
27760
27761     cat <<AAW_EOF >>config.warnings
27762 the TCP port range should be less than 65536 in --with-tcpportrange
27763 AAW_EOF
27764
27765
27766         fi
27767
27768 cat >>confdefs.h <<_ACEOF
27769 #define TCPPORTRANGE $TCPPORTRANGE
27770 _ACEOF
27771
27772     fi
27773
27774
27775 # Check whether --with-udpportrange was given.
27776 if test "${with_udpportrange+set}" = set; then
27777   withval=$with_udpportrange;  UDPPORTRANGE="$withval"
27778 else
27779    UDPPORTRANGE="unlimited"
27780 fi
27781
27782     if test x"$UDPPORTRANGE" != x"unlimited"; then
27783         if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
27784             { { $as_echo "$as_me:$LINENO: error: --with-udpportrange requires two comma-separated positive numbers" >&5
27785 $as_echo "$as_me: error: --with-udpportrange requires two comma-separated positive numbers" >&2;}
27786    { (exit 1); exit 1; }; }
27787         fi
27788         min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
27789         max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
27790         if test $min_udp_port -gt $max_udp_port; then
27791             { { $as_echo "$as_me:$LINENO: error: the second UDP port number must be greater than the first in --with-udpportrange" >&5
27792 $as_echo "$as_me: error: the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
27793    { (exit 1); exit 1; }; }
27794         fi
27795         if test $max_udp_port -ge 1024; then
27796
27797     { $as_echo "$as_me:$LINENO: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&5
27798 $as_echo "$as_me: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&2;}
27799
27800
27801     cat <<AAW_EOF >>config.warnings
27802 the UDP port range should be less than 1025 in --with-udpportrange
27803 AAW_EOF
27804
27805
27806         fi
27807         if test $min_udp_port -le 0; then
27808
27809     { $as_echo "$as_me:$LINENO: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&5
27810 $as_echo "$as_me: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
27811
27812
27813     cat <<AAW_EOF >>config.warnings
27814 the UDP port range should be greater than 0 in --with-udpportrange
27815 AAW_EOF
27816
27817
27818         fi
27819
27820 cat >>confdefs.h <<_ACEOF
27821 #define UDPPORTRANGE $UDPPORTRANGE
27822 _ACEOF
27823
27824     fi
27825
27826
27827
27828
27829
27830
27831 # Check whether --with-buffered-dump was given.
27832 if test "${with_buffered_dump+set}" = set; then
27833   withval=$with_buffered_dump;  DUMPER_SOCKET_BUFFERING=$withval
27834 else
27835    DUMPER_SOCKET_BUFFERING=no
27836 fi
27837
27838     case "$DUMPER_SOCKET_BUFFERING" in
27839     n | no) ;;
27840     y | ye | yes)
27841
27842 cat >>confdefs.h <<\_ACEOF
27843 #define DUMPER_SOCKET_BUFFERING 1
27844 _ACEOF
27845
27846       ;;
27847     *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-buffered-dump." >&5
27848 $as_echo "$as_me: error: You must not supply an argument to --with-buffered-dump." >&2;}
27849    { (exit 1); exit 1; }; } ;;
27850     esac
27851
27852
27853
27854 # Check whether --with-maxtapeblocksize was given.
27855 if test "${with_maxtapeblocksize+set}" = set; then
27856   withval=$with_maxtapeblocksize;
27857     { $as_echo "$as_me:$LINENO: WARNING: --with-maxtapeblocksize is no longer needed" >&5
27858 $as_echo "$as_me: WARNING: --with-maxtapeblocksize is no longer needed" >&2;}
27859
27860
27861     cat <<AAW_EOF >>config.warnings
27862 --with-maxtapeblocksize is no longer needed
27863 AAW_EOF
27864
27865
27866
27867 fi
27868
27869
27870
27871     ASSERTIONS=
27872
27873 # Check whether --with-assertions was given.
27874 if test "${with_assertions+set}" = set; then
27875   withval=$with_assertions;
27876             case "$withval" in
27877                 n | no) : ;;
27878                 y |  ye | yes)
27879                     ASSERTIONS=1
27880
27881 cat >>confdefs.h <<\_ACEOF
27882 #define ASSERTIONS 1
27883 _ACEOF
27884
27885                   ;;
27886                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
27887 $as_echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
27888    { (exit 1); exit 1; }; }
27889                   ;;
27890             esac
27891
27892
27893 fi
27894
27895
27896
27897
27898
27899
27900 # Check whether --with-debugging was given.
27901 if test "${with_debugging+set}" = set; then
27902   withval=$with_debugging;  debugging="$withval"
27903 else
27904    debugging="yes"
27905
27906 fi
27907
27908
27909     case "$debugging" in
27910         n | no) { { $as_echo "$as_me:$LINENO: error: Amanda no longer supports building with debugging disabled" >&5
27911 $as_echo "$as_me: error: Amanda no longer supports building with debugging disabled" >&2;}
27912    { (exit 1); exit 1; }; };;
27913         y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
27914         *) AMANDA_DBGDIR="$debugging";;
27915     esac
27916
27917     # evaluate any extra variables in the directory
27918
27919   prefix_NONE=
27920   exec_prefix_NONE=
27921   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27922   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27923   eval ac_define_dir="\"$AMANDA_DBGDIR\""
27924   eval ac_define_dir="\"$ac_define_dir\""
27925   AMANDA_DBGDIR="$ac_define_dir"
27926
27927
27928 cat >>confdefs.h <<_ACEOF
27929 #define AMANDA_DBGDIR "$ac_define_dir"
27930 _ACEOF
27931
27932   test "$prefix_NONE" && prefix=NONE
27933   test "$exec_prefix_NONE" && exec_prefix=NONE
27934
27935
27936
27937
27938 # Check whether --with-debug_days was given.
27939 if test "${with_debug_days+set}" = set; then
27940   withval=$with_debug_days;
27941             debug_days="$withval"
27942
27943 else
27944
27945             debug_days="yes"
27946
27947
27948 fi
27949
27950     case "$debug_days" in
27951         n | no)
27952             AMANDA_DEBUG_DAYS=0 ;;
27953         y |  ye | yes)
27954             AMANDA_DEBUG_DAYS=4 ;;
27955         [0-9] | [0-9][0-9] | [0-9][0-9][0-9])
27956             AMANDA_DEBUG_DAYS="$debug_days" ;;
27957         *) { { $as_echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
27958 $as_echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
27959    { (exit 1); exit 1; }; }
27960           ;;
27961     esac
27962
27963 cat >>confdefs.h <<_ACEOF
27964 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
27965 _ACEOF
27966
27967
27968
27969
27970
27971 # Check whether --with-testing was given.
27972 if test "${with_testing+set}" = set; then
27973   withval=$with_testing;
27974             TESTING="$withval"
27975
27976 else
27977
27978             TESTING="no"
27979
27980
27981 fi
27982
27983     case "$TESTING" in
27984         n | no) SERVICE_SUFFIX="";;
27985         y |  ye | yes) SERVICE_SUFFIX="-test";;
27986         *) SERVICE_SUFFIX="-$TESTING";;
27987     esac
27988
27989     AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
27990     KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
27991
27992
27993
27994 cat >>confdefs.h <<_ACEOF
27995 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
27996 _ACEOF
27997
27998
27999 cat >>confdefs.h <<_ACEOF
28000 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
28001 _ACEOF
28002
28003
28004 cat >>confdefs.h <<_ACEOF
28005 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
28006 _ACEOF
28007
28008
28009
28010     SINGLE_USERID=${SINGLE_USERID:-no}
28011     WANT_SETUID_CLIENT=${WANT_SETUID_CLIENT:-true}
28012
28013
28014 # Check whether --with-single-userid was given.
28015 if test "${with_single_userid+set}" = set; then
28016   withval=$with_single_userid;    SINGLE_USERID=$withval
28017 fi
28018
28019
28020     case "$host" in
28021         *-pc-cygwin)
28022             WANT_SETUID_CLIENT=false
28023             SINGLE_USERID=yes
28024             ;;
28025     esac
28026
28027     if test x"$WANT_SETUID_CLIENT" = x"true"; then
28028
28029 cat >>confdefs.h <<\_ACEOF
28030 #define WANT_SETUID_CLIENT 1
28031 _ACEOF
28032
28033     fi
28034      if test x"$WANT_SETUID_CLIENT" = x"true"; then
28035   WANT_SETUID_CLIENT_TRUE=
28036   WANT_SETUID_CLIENT_FALSE='#'
28037 else
28038   WANT_SETUID_CLIENT_TRUE='#'
28039   WANT_SETUID_CLIENT_FALSE=
28040 fi
28041
28042
28043     if test x"$SINGLE_USERID" = x"yes"; then
28044
28045 cat >>confdefs.h <<\_ACEOF
28046 #define SINGLE_USERID 1
28047 _ACEOF
28048
28049     fi
28050
28051
28052     WANT_INSTALLPERMS=yes
28053     # Check whether --enable-installperms was given.
28054 if test "${enable_installperms+set}" = set; then
28055   enableval=$enable_installperms;  WANT_INSTALLPERMS="$enableval"
28056 else
28057    WANT_INSTALLPERMS="yes"
28058
28059 fi
28060
28061      if test x"$WANT_INSTALLPERMS" = x"yes"; then
28062   WANT_INSTALLPERMS_TRUE=
28063   WANT_INSTALLPERMS_FALSE='#'
28064 else
28065   WANT_INSTALLPERMS_TRUE='#'
28066   WANT_INSTALLPERMS_FALSE=
28067 fi
28068
28069
28070
28071     # Check whether --enable-syntax-checks was given.
28072 if test "${enable_syntax_checks+set}" = set; then
28073   enableval=$enable_syntax_checks;
28074             case "$enableval" in
28075                 no) CHECK_SCRIPTS_AT_BUILD=false;;
28076                 *) CHECK_SCRIPTS_AT_BUILD=true;;
28077             esac
28078
28079 else
28080
28081             CHECK_SCRIPTS_AT_BUILD=true
28082
28083 fi
28084
28085
28086      if $CHECK_SCRIPTS_AT_BUILD; then
28087   CHECK_SCRIPTS_AT_BUILD_TRUE=
28088   CHECK_SCRIPTS_AT_BUILD_FALSE='#'
28089 else
28090   CHECK_SCRIPTS_AT_BUILD_TRUE='#'
28091   CHECK_SCRIPTS_AT_BUILD_FALSE=
28092 fi
28093
28094
28095
28096
28097 #
28098 # Set up for Amanda components and modules
28099 #
28100
28101     WANT_SERVER=true
28102
28103 # Check whether --with-server was given.
28104 if test "${with_server+set}" = set; then
28105   withval=$with_server;
28106             case "$withval" in
28107             y | ye | yes) WANT_SERVER=true;;
28108             n | no) WANT_SERVER=false;;
28109             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to the --without-server option." >&5
28110 $as_echo "$as_me: error: You must not supply an argument to the --without-server option." >&2;}
28111    { (exit 1); exit 1; }; } ;;
28112             esac
28113
28114 fi
28115
28116
28117
28118     WANT_CLIENT=true
28119
28120 # Check whether --with-client was given.
28121 if test "${with_client+set}" = set; then
28122   withval=$with_client;
28123             case "$withval" in
28124             y | ye | yes) WANT_CLIENT=true;;
28125             n | no) WANT_CLIENT=false;;
28126             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to the --without-client option." >&5
28127 $as_echo "$as_me: error: You must not supply an argument to the --without-client option." >&2;}
28128    { (exit 1); exit 1; }; } ;;
28129             esac
28130
28131 fi
28132
28133
28134
28135
28136     WANT_RESTORE=${WANT_SERVER-true}
28137
28138 # Check whether --with-restore was given.
28139 if test "${with_restore+set}" = set; then
28140   withval=$with_restore;
28141             case "$withval" in
28142             y | ye | yes) WANT_RESTORE=true;;
28143             n | no) WANT_RESTORE=false;;
28144             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-restore option." >&5
28145 $as_echo "$as_me: error: You must not supply an argument to --with-restore option." >&2;}
28146    { (exit 1); exit 1; }; } ;;
28147             esac
28148
28149 fi
28150
28151
28152
28153
28154     WANT_RECOVER=${WANT_CLIENT-true}
28155
28156 # Check whether --with-amrecover was given.
28157 if test "${with_amrecover+set}" = set; then
28158   withval=$with_amrecover;
28159             case "$withval" in
28160             y | ye | yes) WANT_RECOVER=true;;
28161             n | no) WANT_RECOVER=false;;
28162             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-amrecover option." >&5
28163 $as_echo "$as_me: error: You must not supply an argument to --with-amrecover option." >&2;}
28164    { (exit 1); exit 1; }; } ;;
28165             esac
28166
28167 fi
28168
28169
28170
28171
28172 # Check whether --with-client-only was given.
28173 if test "${with_client_only+set}" = set; then
28174   withval=$with_client_only;    { { $as_echo "$as_me:$LINENO: error: --with-client-only is deprecated, use --without-server instead." >&5
28175 $as_echo "$as_me: error: --with-client-only is deprecated, use --without-server instead." >&2;}
28176    { (exit 1); exit 1; }; }
28177
28178 fi
28179
28180
28181
28182
28183 # Check whether --with-server-only was given.
28184 if test "${with_server_only+set}" = set; then
28185   withval=$with_server_only;    { { $as_echo "$as_me:$LINENO: error: --with-server-only is deprecated, use --without-client instead." >&5
28186 $as_echo "$as_me: error: --with-server-only is deprecated, use --without-client instead." >&2;}
28187    { (exit 1); exit 1; }; }
28188
28189 fi
28190
28191
28192
28193     WANT_NDMP=${WANT_NDMP-true}
28194
28195 # Check whether --with-ndmp was given.
28196 if test "${with_ndmp+set}" = set; then
28197   withval=$with_ndmp;
28198             case "$withval" in
28199             y | ye | yes) WANT_NDMP=true;;
28200             n | no) WANT_NDMP=false;;
28201             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-ndmp option." >&5
28202 $as_echo "$as_me: error: You must not supply an argument to --with-ndmp option." >&2;}
28203    { (exit 1); exit 1; }; } ;;
28204             esac
28205
28206 fi
28207
28208
28209
28210
28211
28212
28213
28214
28215
28216     # detect invalid combinations of components
28217     if ! ${WANT_SERVER-true} && ${WANT_RESTORE-true}; then
28218         { { $as_echo "$as_me:$LINENO: error: --without-server requires --without-restore" >&5
28219 $as_echo "$as_me: error: --without-server requires --without-restore" >&2;}
28220    { (exit 1); exit 1; }; }
28221     fi
28222     if ! ${WANT_CLIENT-true} && ${WANT_RECOVER-true}; then
28223         { { $as_echo "$as_me:$LINENO: error: --without-client requires --without-amrecover" >&5
28224 $as_echo "$as_me: error: --without-client requires --without-amrecover" >&2;}
28225    { (exit 1); exit 1; }; }
28226     fi
28227
28228      if $WANT_CLIENT; then
28229   WANT_CLIENT_TRUE=
28230   WANT_CLIENT_FALSE='#'
28231 else
28232   WANT_CLIENT_TRUE='#'
28233   WANT_CLIENT_FALSE=
28234 fi
28235
28236      if $WANT_RESTORE; then
28237   WANT_RESTORE_TRUE=
28238   WANT_RESTORE_FALSE='#'
28239 else
28240   WANT_RESTORE_TRUE='#'
28241   WANT_RESTORE_FALSE=
28242 fi
28243
28244      if $WANT_SERVER; then
28245   WANT_SERVER_TRUE=
28246   WANT_SERVER_FALSE='#'
28247 else
28248   WANT_SERVER_TRUE='#'
28249   WANT_SERVER_FALSE=
28250 fi
28251
28252      if $WANT_RECOVER; then
28253   WANT_RECOVER_TRUE=
28254   WANT_RECOVER_FALSE='#'
28255 else
28256   WANT_RECOVER_TRUE='#'
28257   WANT_RECOVER_FALSE=
28258 fi
28259
28260      if $WANT_NDMP; then
28261   WANT_NDMP_TRUE=
28262   WANT_NDMP_FALSE='#'
28263 else
28264   WANT_NDMP_TRUE='#'
28265   WANT_NDMP_FALSE=
28266 fi
28267
28268
28269      if $WANT_SERVER || $WANT_RESTORE; then
28270   WANT_TAPE_TRUE=
28271   WANT_TAPE_FALSE='#'
28272 else
28273   WANT_TAPE_TRUE='#'
28274   WANT_TAPE_FALSE=
28275 fi
28276
28277
28278     # AMANDA_COMPONENTS goes to Amanda::Constants; missing_components is just for the
28279     # summary, below
28280     AMANDA_COMPONENTS=''
28281     missing_components=''
28282
28283     if $WANT_SERVER; then
28284         AMANDA_COMPONENTS="$AMANDA_COMPONENTS server";
28285     else
28286         missing_components="$missing_components (no server)";
28287     fi
28288     if $WANT_RESTORE; then
28289         AMANDA_COMPONENTS="$AMANDA_COMPONENTS restore";
28290     else
28291         missing_components="$missing_components (no restore)";
28292     fi
28293     if $WANT_CLIENT; then
28294         AMANDA_COMPONENTS="$AMANDA_COMPONENTS client";
28295     else
28296         missing_components="$missing_components (no client)";
28297     fi
28298     if $WANT_RECOVER; then
28299         AMANDA_COMPONENTS="$AMANDA_COMPONENTS amrecover";
28300     else
28301         missing_components="$missing_components (no amrecover)";
28302     fi
28303     if $WANT_NDMP; then
28304         AMANDA_COMPONENTS="$AMANDA_COMPONENTS ndmp";
28305     else
28306         missing_components="$missing_components (no ndmp)";
28307     fi
28308
28309
28310
28311
28312
28313
28314
28315 # Check whether --with-gnuplot was given.
28316 if test "${with_gnuplot+set}" = set; then
28317   withval=$with_gnuplot;
28318             case "$withval" in
28319                 y | ye | yes) : ;;
28320                 n | no) GNUPLOT=no ;;
28321                 *) GNUPLOT="$withval" ;;
28322             esac
28323
28324 fi
28325
28326     if test "x$GNUPLOT" = "xno"; then
28327         GNUPLOT=
28328     else
28329         # Extract the first word of "gnuplot", so it can be a program name with args.
28330 set dummy gnuplot; ac_word=$2
28331 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28332 $as_echo_n "checking for $ac_word... " >&6; }
28333 if test "${ac_cv_path_GNUPLOT+set}" = set; then
28334   $as_echo_n "(cached) " >&6
28335 else
28336   case $GNUPLOT in
28337   [\\/]* | ?:[\\/]*)
28338   ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
28339   ;;
28340   *)
28341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28342 for as_dir in $LOCSYSPATH
28343 do
28344   IFS=$as_save_IFS
28345   test -z "$as_dir" && as_dir=.
28346   for ac_exec_ext in '' $ac_executable_extensions; do
28347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28348     ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
28349     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28350     break 2
28351   fi
28352 done
28353 done
28354 IFS=$as_save_IFS
28355
28356   ;;
28357 esac
28358 fi
28359 GNUPLOT=$ac_cv_path_GNUPLOT
28360 if test -n "$GNUPLOT"; then
28361   { $as_echo "$as_me:$LINENO: result: $GNUPLOT" >&5
28362 $as_echo "$GNUPLOT" >&6; }
28363 else
28364   { $as_echo "$as_me:$LINENO: result: no" >&5
28365 $as_echo "no" >&6; }
28366 fi
28367
28368
28369     fi
28370
28371
28372
28373
28374
28375
28376     # Extract the first word of "pcat", so it can be a program name with args.
28377 set dummy pcat; ac_word=$2
28378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28379 $as_echo_n "checking for $ac_word... " >&6; }
28380 if test "${ac_cv_path_PCAT+set}" = set; then
28381   $as_echo_n "(cached) " >&6
28382 else
28383   case $PCAT in
28384   [\\/]* | ?:[\\/]*)
28385   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
28386   ;;
28387   *)
28388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28389 for as_dir in $LOCSYSPATH
28390 do
28391   IFS=$as_save_IFS
28392   test -z "$as_dir" && as_dir=.
28393   for ac_exec_ext in '' $ac_executable_extensions; do
28394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28395     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
28396     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28397     break 2
28398   fi
28399 done
28400 done
28401 IFS=$as_save_IFS
28402
28403   ;;
28404 esac
28405 fi
28406 PCAT=$ac_cv_path_PCAT
28407 if test -n "$PCAT"; then
28408   { $as_echo "$as_me:$LINENO: result: $PCAT" >&5
28409 $as_echo "$PCAT" >&6; }
28410 else
28411   { $as_echo "$as_me:$LINENO: result: no" >&5
28412 $as_echo "no" >&6; }
28413 fi
28414
28415
28416
28417
28418
28419     # Extract the first word of "compress", so it can be a program name with args.
28420 set dummy compress; ac_word=$2
28421 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28422 $as_echo_n "checking for $ac_word... " >&6; }
28423 if test "${ac_cv_path_COMPRESS+set}" = set; then
28424   $as_echo_n "(cached) " >&6
28425 else
28426   case $COMPRESS in
28427   [\\/]* | ?:[\\/]*)
28428   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
28429   ;;
28430   *)
28431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28432 for as_dir in $LOCSYSPATH
28433 do
28434   IFS=$as_save_IFS
28435   test -z "$as_dir" && as_dir=.
28436   for ac_exec_ext in '' $ac_executable_extensions; do
28437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28438     ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
28439     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28440     break 2
28441   fi
28442 done
28443 done
28444 IFS=$as_save_IFS
28445
28446   ;;
28447 esac
28448 fi
28449 COMPRESS=$ac_cv_path_COMPRESS
28450 if test -n "$COMPRESS"; then
28451   { $as_echo "$as_me:$LINENO: result: $COMPRESS" >&5
28452 $as_echo "$COMPRESS" >&6; }
28453 else
28454   { $as_echo "$as_me:$LINENO: result: no" >&5
28455 $as_echo "no" >&6; }
28456 fi
28457
28458
28459
28460
28461
28462     # Extract the first word of "gzip", so it can be a program name with args.
28463 set dummy gzip; ac_word=$2
28464 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28465 $as_echo_n "checking for $ac_word... " >&6; }
28466 if test "${ac_cv_path_GZIP+set}" = set; then
28467   $as_echo_n "(cached) " >&6
28468 else
28469   case $GZIP in
28470   [\\/]* | ?:[\\/]*)
28471   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
28472   ;;
28473   *)
28474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28475 for as_dir in $LOCSYSPATH
28476 do
28477   IFS=$as_save_IFS
28478   test -z "$as_dir" && as_dir=.
28479   for ac_exec_ext in '' $ac_executable_extensions; do
28480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28481     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
28482     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28483     break 2
28484   fi
28485 done
28486 done
28487 IFS=$as_save_IFS
28488
28489   ;;
28490 esac
28491 fi
28492 GZIP=$ac_cv_path_GZIP
28493 if test -n "$GZIP"; then
28494   { $as_echo "$as_me:$LINENO: result: $GZIP" >&5
28495 $as_echo "$GZIP" >&6; }
28496 else
28497   { $as_echo "$as_me:$LINENO: result: no" >&5
28498 $as_echo "no" >&6; }
28499 fi
28500
28501
28502
28503
28504
28505
28506
28507
28508
28509
28510     if test "x$GNUPLOT" != "x"; then
28511         WANT_AMPLOT=true
28512
28513         # variable substitutions for amcat.awk
28514         if test "$PCAT"; then
28515             AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
28516         else
28517             AMPLOT_CAT_PACK=
28518         fi
28519         if test "$COMPRESS"; then
28520             AMPLOT_COMPRESS=$COMPRESS
28521             AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
28522         else
28523             AMPLOT_CAT_COMPRESS=
28524         fi
28525         if test "$GZIP"; then
28526             AMPLOT_COMPRESS=$GZIP
28527             AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
28528         else
28529             AMPLOT_CAT_GZIP=
28530         fi
28531
28532
28533
28534
28535
28536     else
28537         WANT_AMPLOT=false
28538
28539     { $as_echo "$as_me:$LINENO: WARNING: Not building 'amplot', because gnuplot was not found" >&5
28540 $as_echo "$as_me: WARNING: Not building 'amplot', because gnuplot was not found" >&2;}
28541
28542
28543     cat <<AAW_EOF >>config.warnings
28544 Not building 'amplot', because gnuplot was not found
28545 AAW_EOF
28546
28547
28548     fi
28549
28550      if test x"$WANT_AMPLOT" = x"true"; then
28551   WANT_AMPLOT_TRUE=
28552   WANT_AMPLOT_FALSE='#'
28553 else
28554   WANT_AMPLOT_TRUE='#'
28555   WANT_AMPLOT_FALSE=
28556 fi
28557
28558
28559
28560     # Check whether --enable-manpage-build was given.
28561 if test "${enable_manpage_build+set}" = set; then
28562   enableval=$enable_manpage_build;  ENABLE_MANPAGE_BUILD=$enableval
28563 else
28564    ENABLE_MANPAGE_BUILD=no
28565 fi
28566
28567
28568     # and ensure that everything docbook-related is OK if we'll be using it
28569     if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
28570         DOC_BUILD_DATE=`date '+%d-%m-%Y'`
28571
28572
28573 XSLTPROC_FLAGS="--nonet"
28574
28575
28576 # The (lack of) whitespace and overquoting here are all necessary for
28577 # proper formatting.
28578
28579 # Check whether --with-xsltproc was given.
28580 if test "${with_xsltproc+set}" = set; then
28581   withval=$with_xsltproc;  ac_with_xsltproc=$withval;
28582 else
28583    ac_with_xsltproc=maybe;
28584 fi
28585
28586
28587
28588 # Check whether --with-xsltproc-flags was given.
28589 if test "${with_xsltproc_flags+set}" = set; then
28590   withval=$with_xsltproc_flags;  if test "x$withval" == "xno"; then
28591         XSLTPROC_FLAGS=''
28592     else
28593         if test "x$withval" != "xyes"; then
28594             XSLTPROC_FLAGS="$withval"
28595         fi
28596     fi
28597
28598 fi
28599
28600
28601 # search for xsltproc if it wasn't specified
28602 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
28603     for ac_prog in xsltproc
28604 do
28605   # Extract the first word of "$ac_prog", so it can be a program name with args.
28606 set dummy $ac_prog; ac_word=$2
28607 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28608 $as_echo_n "checking for $ac_word... " >&6; }
28609 if test "${ac_cv_path_XSLTPROC+set}" = set; then
28610   $as_echo_n "(cached) " >&6
28611 else
28612   case $XSLTPROC in
28613   [\\/]* | ?:[\\/]*)
28614   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
28615   ;;
28616   *)
28617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28618 for as_dir in $LOCSYSPATH
28619 do
28620   IFS=$as_save_IFS
28621   test -z "$as_dir" && as_dir=.
28622   for ac_exec_ext in '' $ac_executable_extensions; do
28623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28624     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
28625     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28626     break 2
28627   fi
28628 done
28629 done
28630 IFS=$as_save_IFS
28631
28632   ;;
28633 esac
28634 fi
28635 XSLTPROC=$ac_cv_path_XSLTPROC
28636 if test -n "$XSLTPROC"; then
28637   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28638 $as_echo "$XSLTPROC" >&6; }
28639 else
28640   { $as_echo "$as_me:$LINENO: result: no" >&5
28641 $as_echo "no" >&6; }
28642 fi
28643
28644
28645   test -n "$XSLTPROC" && break
28646 done
28647
28648 else
28649     if test "$ac_with_xsltproc" != "no"; then
28650         if test -x "$ac_with_xsltproc"; then
28651             XSLTPROC="$ac_with_xsltproc";
28652         else
28653
28654     { $as_echo "$as_me:$LINENO: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&5
28655 $as_echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&2;}
28656
28657
28658     cat <<AAW_EOF >>config.warnings
28659 Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative.
28660 AAW_EOF
28661
28662
28663             for ac_prog in xsltproc
28664 do
28665   # Extract the first word of "$ac_prog", so it can be a program name with args.
28666 set dummy $ac_prog; ac_word=$2
28667 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28668 $as_echo_n "checking for $ac_word... " >&6; }
28669 if test "${ac_cv_path_XSLTPROC+set}" = set; then
28670   $as_echo_n "(cached) " >&6
28671 else
28672   case $XSLTPROC in
28673   [\\/]* | ?:[\\/]*)
28674   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
28675   ;;
28676   *)
28677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28678 for as_dir in $LOCSYSPATH
28679 do
28680   IFS=$as_save_IFS
28681   test -z "$as_dir" && as_dir=.
28682   for ac_exec_ext in '' $ac_executable_extensions; do
28683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28684     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
28685     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28686     break 2
28687   fi
28688 done
28689 done
28690 IFS=$as_save_IFS
28691
28692   ;;
28693 esac
28694 fi
28695 XSLTPROC=$ac_cv_path_XSLTPROC
28696 if test -n "$XSLTPROC"; then
28697   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28698 $as_echo "$XSLTPROC" >&6; }
28699 else
28700   { $as_echo "$as_me:$LINENO: result: no" >&5
28701 $as_echo "no" >&6; }
28702 fi
28703
28704
28705   test -n "$XSLTPROC" && break
28706 done
28707
28708         fi
28709     fi
28710 fi
28711
28712
28713
28714
28715
28716
28717
28718
28719
28720
28721     { $as_echo "$as_me:$LINENO: checking for Docbook XSLT version 1.72.0" >&5
28722 $as_echo_n "checking for Docbook XSLT version 1.72.0... " >&6; }
28723 if test "${ac_cv_docbook_xslt_1_72_0+set}" = set; then
28724   $as_echo_n "(cached) " >&6
28725 else
28726
28727         ac_cv_docbook_xslt_1_72_0=no
28728         if test -n "$XSLTPROC"; then
28729             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
28730             $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&5
28731
28732             if test "$?" = 0; then
28733                 ac_cv_docbook_xslt_1_72_0=yes
28734             fi
28735         fi
28736
28737 fi
28738 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_1_72_0" >&5
28739 $as_echo "$ac_cv_docbook_xslt_1_72_0" >&6; }
28740
28741     HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
28742     HAVE_DOCBOOK_XSLT="$HAVE_DOCBOOK_XSLT_1_72_0"
28743
28744
28745
28746
28747
28748
28749
28750
28751     { $as_echo "$as_me:$LINENO: checking for current Docbook XSLT version" >&5
28752 $as_echo_n "checking for current Docbook XSLT version... " >&6; }
28753 if test "${ac_cv_docbook_xslt_current_version+set}" = set; then
28754   $as_echo_n "(cached) " >&6
28755 else
28756
28757         ac_cv_docbook_xslt_current_version=no
28758
28759         if test -n "$XSLTPROC"; then
28760             cat >conftest.xsl <<EOF
28761                 <xsl:stylesheet
28762                     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
28763                     xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
28764                     version="1.0">
28765                     <xsl:output method="text"/>
28766                     <xsl:template match="fm:project/fm:Version">
28767                         <xsl:value-of select="." />
28768                     </xsl:template>
28769                     <!-- do nothing with any other text -->
28770                     <xsl:template match="text()"/>
28771                 </xsl:stylesheet>
28772 EOF
28773             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/VERSION' with input:" >&5
28774             echo "====" >&5
28775             cat conftest.xsl >&5
28776             echo "====" >&5
28777
28778             ac_cv_docbook_xslt_current_version=`$XSLTPROC $XSLTPROC_FLAGS conftest.xsl http://docbook.sourceforge.net/release/xsl/current/VERSION 2>&5`
28779
28780             if test "$?" != 0; then
28781                 ac_cv_docbook_xslt_current_version='no'
28782             fi
28783
28784             rm conftest.xsl
28785         fi
28786
28787 fi
28788 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_current_version" >&5
28789 $as_echo "$ac_cv_docbook_xslt_current_version" >&6; }
28790
28791     DOCBOOK_XSLT_CURRENT_VERSION="$ac_cv_docbook_xslt_current_version"
28792     { $as_echo "$as_me:$LINENO: checking whether Docbook XSLT version is 1.72.0 or newer" >&5
28793 $as_echo_n "checking whether Docbook XSLT version is 1.72.0 or newer... " >&6; }
28794
28795     if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
28796         { $as_echo "$as_me:$LINENO: result: no" >&5
28797 $as_echo "no" >&6; }
28798     else
28799
28800   # Used to indicate true or false condition
28801   ax_compare_version=false
28802
28803   # Convert the two version strings to be compared into a format that
28804   # allows a simple string comparison.  The end result is that a version
28805   # string of the form 1.12.5-r617 will be converted to the form
28806   # 0001001200050617.  In other words, each number is zero padded to four
28807   # digits, and non digits are removed.
28808
28809   ax_compare_version_A=`echo "$DOCBOOK_XSLT_CURRENT_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
28810                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
28811                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
28812                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
28813                      -e 's/[^0-9]//g'`
28814
28815
28816   ax_compare_version_B=`echo "1.72.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
28817                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
28818                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
28819                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
28820                      -e 's/[^0-9]//g'`
28821
28822
28823     ax_compare_version=`echo "x$ax_compare_version_A
28824 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"`
28825
28826
28827
28828     if test "$ax_compare_version" = "true" ; then
28829
28830             # version is less than required, so mark it as "no"
28831             DOCBOOK_XSLT_CURRENT_VERSION=no
28832
28833       fi
28834
28835
28836         if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
28837             { $as_echo "$as_me:$LINENO: result: no" >&5
28838 $as_echo "no" >&6; }
28839         else
28840             { $as_echo "$as_me:$LINENO: result: yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&5
28841 $as_echo "yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&6; }
28842         fi
28843     fi
28844
28845
28846
28847
28848
28849
28850
28851
28852
28853
28854     { $as_echo "$as_me:$LINENO: checking for Docbook DTD version 4.1.2" >&5
28855 $as_echo_n "checking for Docbook DTD version 4.1.2... " >&6; }
28856 if test "${ac_cv_docbook_dtd_4_1_2+set}" = set; then
28857   $as_echo_n "(cached) " >&6
28858 else
28859
28860         ac_cv_docbook_dtd_4_1_2=no
28861         if test -n "$XSLTPROC"; then
28862             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
28863             cat <<EOF >conftest.xml
28864 <?xml version="1.0" encoding='ISO-8859-1'?>
28865 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
28866 <book id="empty">
28867 </book>
28868 EOF
28869             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
28870             echo "conftest.xml:" >&5
28871             echo "====" >&5
28872             cat conftest.xml >&5
28873             echo "====" >&5
28874
28875             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
28876             if test "$?" = 0 -o "$?" = 5; then
28877                 # failing to load the DTD is just a warning, so check for it in the output.
28878                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
28879                     : # no good..
28880                 else
28881                     ac_cv_docbook_dtd_4_1_2=yes
28882                 fi
28883             fi
28884             cat conftest.out >&5
28885
28886             rm -f conftest.xml conftest.out
28887         fi
28888
28889 fi
28890 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_1_2" >&5
28891 $as_echo "$ac_cv_docbook_dtd_4_1_2" >&6; }
28892
28893     HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
28894     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_1_2"
28895
28896
28897
28898
28899
28900
28901
28902
28903
28904
28905
28906
28907
28908
28909     { $as_echo "$as_me:$LINENO: checking for Docbook DTD version 4.2" >&5
28910 $as_echo_n "checking for Docbook DTD version 4.2... " >&6; }
28911 if test "${ac_cv_docbook_dtd_4_2+set}" = set; then
28912   $as_echo_n "(cached) " >&6
28913 else
28914
28915         ac_cv_docbook_dtd_4_2=no
28916         if test -n "$XSLTPROC"; then
28917             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
28918             cat <<EOF >conftest.xml
28919 <?xml version="1.0" encoding='ISO-8859-1'?>
28920 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
28921 <book id="empty">
28922 </book>
28923 EOF
28924             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
28925             echo "conftest.xml:" >&5
28926             echo "====" >&5
28927             cat conftest.xml >&5
28928             echo "====" >&5
28929
28930             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
28931             if test "$?" = 0 -o "$?" = 5; then
28932                 # failing to load the DTD is just a warning, so check for it in the output.
28933                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
28934                     : # no good..
28935                 else
28936                     ac_cv_docbook_dtd_4_2=yes
28937                 fi
28938             fi
28939             cat conftest.out >&5
28940
28941             rm -f conftest.xml conftest.out
28942         fi
28943
28944 fi
28945 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_2" >&5
28946 $as_echo "$ac_cv_docbook_dtd_4_2" >&6; }
28947
28948     HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
28949     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_2"
28950
28951
28952
28953
28954
28955
28956         if test -z "$XSLTPROC"; then
28957             { { $as_echo "$as_me:$LINENO: error: Cannot build manpages: 'xsltproc' was not found." >&5
28958 $as_echo "$as_me: error: Cannot build manpages: 'xsltproc' was not found." >&2;}
28959    { (exit 1); exit 1; }; }
28960         fi
28961
28962         # if the 'current' Docbook revision is good enough, use that; otherwise,
28963         # if 1.72.0 is available, use that.
28964         XSLREL=current
28965         if test "x$DOCBOOK_XSLT_CURRENT_VERSION" = "xno"; then
28966             if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
28967                 { { $as_echo "$as_me:$LINENO: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&5
28968 $as_echo "$as_me: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&2;}
28969    { (exit 1); exit 1; }; }
28970             else
28971                 XSLREL=1.72.0
28972             fi
28973         fi
28974
28975         # disable validation if the correct DTDs are not available
28976         if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
28977
28978     { $as_echo "$as_me:$LINENO: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&5
28979 $as_echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
28980
28981
28982     cat <<AAW_EOF >>config.warnings
28983 Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation
28984 AAW_EOF
28985
28986
28987             XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
28988         fi
28989     fi
28990
28991      if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
28992   ENABLE_MANPAGE_BUILD_TRUE=
28993   ENABLE_MANPAGE_BUILD_FALSE='#'
28994 else
28995   ENABLE_MANPAGE_BUILD_TRUE='#'
28996   ENABLE_MANPAGE_BUILD_FALSE=
28997 fi
28998
28999
29000
29001
29002
29003     #allow configure CONFIG_CLOBBER_MY_CONFIG= to be used by make.
29004     CONFIG_CLOBBER_MY_CONFIG=$CLOBBER_MY_CONFIG
29005
29006
29007
29008 # Check whether --with-index-server was given.
29009 if test "${with_index_server+set}" = set; then
29010   withval=$with_index_server;
29011             case "$withval" in
29012             "" | y | ye | yes | n | no)
29013                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
29014 $as_echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
29015    { (exit 1); exit 1; }; }
29016               ;;
29017             *) DEFAULT_SERVER="$withval"
29018               ;;
29019             esac
29020
29021 else
29022   : ${DEFAULT_SERVER=`uname -n`}
29023
29024 fi
29025
29026
29027 cat >>confdefs.h <<_ACEOF
29028 #define DEFAULT_SERVER "$DEFAULT_SERVER"
29029 _ACEOF
29030
29031
29032
29033
29034 # Check whether --with-config was given.
29035 if test "${with_config+set}" = set; then
29036   withval=$with_config;
29037             case "$withval" in
29038             "" | y | ye | yes | n | no)
29039                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
29040 $as_echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
29041    { (exit 1); exit 1; }; }
29042               ;;
29043             *) DEFAULT_CONFIG="$withval"
29044               ;;
29045             esac
29046
29047 else
29048   : ${DEFAULT_CONFIG=DailySet1}
29049
29050 fi
29051
29052
29053 cat >>confdefs.h <<_ACEOF
29054 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
29055 _ACEOF
29056
29057
29058
29059
29060 # Check whether --with-tape-server was given.
29061 if test "${with_tape_server+set}" = set; then
29062   withval=$with_tape_server;
29063             case "$withval" in
29064             "" | y | ye | yes | n | no)
29065                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
29066 $as_echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
29067    { (exit 1); exit 1; }; }
29068               ;;
29069             *) DEFAULT_TAPE_SERVER="$withval"
29070               ;;
29071             esac
29072
29073 else
29074   : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
29075
29076 fi
29077
29078
29079 cat >>confdefs.h <<_ACEOF
29080 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
29081 _ACEOF
29082
29083
29084
29085
29086 # Check whether --with-tape-device was given.
29087 if test "${with_tape_device+set}" = set; then
29088   withval=$with_tape_device;
29089             case "$withval" in
29090             "" | y | ye | yes | n | no)
29091                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
29092 $as_echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
29093    { (exit 1); exit 1; }; }
29094               ;;
29095             *) DEFAULT_TAPE_DEVICE="$withval"
29096               ;;
29097             esac
29098
29099
29100 fi
29101
29102
29103
29104 cat >>confdefs.h <<_ACEOF
29105 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
29106 _ACEOF
29107
29108
29109
29110     if test "${DEFAULT_TAPE_DEVICE+set}" = "set"; then
29111         EXAMPLE_TAPEDEV="$DEFAULT_TAPE_DEVICE"
29112     else
29113         EXAMPLE_TAPEDEV="tape:/dev/YOUR-TAPE-DEVICE-HERE"
29114     fi
29115
29116
29117
29118 # Check whether --with-changer-device was given.
29119 if test "${with_changer_device+set}" = set; then
29120   withval=$with_changer_device;
29121
29122     { $as_echo "$as_me:$LINENO: WARNING: --with-changer-device is no longer used." >&5
29123 $as_echo "$as_me: WARNING: --with-changer-device is no longer used." >&2;}
29124
29125
29126     cat <<AAW_EOF >>config.warnings
29127 --with-changer-device is no longer used.
29128 AAW_EOF
29129
29130
29131
29132
29133 fi
29134
29135
29136
29137 # Check whether --with-amandates was given.
29138 if test "${with_amandates+set}" = set; then
29139   withval=$with_amandates;
29140             case "$withval" in
29141                 n | no) { { $as_echo "$as_me:$LINENO: error: *** --without-amandates is not allowed." >&5
29142 $as_echo "$as_me: error: *** --without-amandates is not allowed." >&2;}
29143    { (exit 1); exit 1; }; };;
29144                 y |  ye | yes) amandates='$localstatedir/amanda/amandates' ;;
29145                 *) amandates="$withval";;
29146             esac
29147
29148 else
29149   amandates='$localstatedir/amanda/amandates'
29150
29151 fi
29152
29153
29154
29155   prefix_NONE=
29156   exec_prefix_NONE=
29157   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29158   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29159   eval ac_define_dir="\"$amandates\""
29160   eval ac_define_dir="\"$ac_define_dir\""
29161   DEFAULT_AMANDATES_FILE="$ac_define_dir"
29162
29163
29164 cat >>confdefs.h <<_ACEOF
29165 #define DEFAULT_AMANDATES_FILE "$ac_define_dir"
29166 _ACEOF
29167
29168   test "$prefix_NONE" && prefix=NONE
29169   test "$exec_prefix_NONE" && exec_prefix=NONE
29170
29171
29172     DEFAULT_FSF_AFTER_FILEMARK="FALSE"
29173     case "$host" in
29174         *-solaris*) DEFAULT_FSF_AFTER_FILEMARK="TRUE"
29175                     ;;
29176     esac
29177
29178 cat >>confdefs.h <<_ACEOF
29179 #define DEFAULT_FSF_AFTER_FILEMARK $DEFAULT_FSF_AFTER_FILEMARK
29180 _ACEOF
29181
29182
29183
29184
29185     # Extract the first word of "getconf", so it can be a program name with args.
29186 set dummy getconf; ac_word=$2
29187 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29188 $as_echo_n "checking for $ac_word... " >&6; }
29189 if test "${ac_cv_path_GETCONF+set}" = set; then
29190   $as_echo_n "(cached) " >&6
29191 else
29192   case $GETCONF in
29193   [\\/]* | ?:[\\/]*)
29194   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
29195   ;;
29196   *)
29197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29198 for as_dir in $SYSPATH
29199 do
29200   IFS=$as_save_IFS
29201   test -z "$as_dir" && as_dir=.
29202   for ac_exec_ext in '' $ac_executable_extensions; do
29203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29204     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
29205     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29206     break 2
29207   fi
29208 done
29209 done
29210 IFS=$as_save_IFS
29211
29212   ;;
29213 esac
29214 fi
29215 GETCONF=$ac_cv_path_GETCONF
29216 if test -n "$GETCONF"; then
29217   { $as_echo "$as_me:$LINENO: result: $GETCONF" >&5
29218 $as_echo "$GETCONF" >&6; }
29219 else
29220   { $as_echo "$as_me:$LINENO: result: no" >&5
29221 $as_echo "no" >&6; }
29222 fi
29223
29224
29225
29226
29227
29228
29229
29230     # we use 'getconf', if it exists, to get the relevant
29231     # compiler flags.
29232     GETCONF_LFS="LFS"
29233     case "$host" in
29234         *-hp-*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
29235         *-ibm-aix*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
29236     esac
29237
29238     # Checks for compilers, typedefs, structures, and compiler characteristics.
29239     # Check for large file compilation environment.
29240     NEED_RESETOFS=yes
29241     { $as_echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
29242 $as_echo_n "checking for large file compilation CFLAGS... " >&6; }
29243 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
29244   $as_echo_n "(cached) " >&6
29245 else
29246
29247         amanda_cv_LFS_CFLAGS=
29248         if test "$GETCONF"; then
29249             if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
29250                 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
29251                 NEED_RESETOFS=no
29252             fi
29253         fi
29254
29255
29256 fi
29257 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
29258 $as_echo "$amanda_cv_LFS_CFLAGS" >&6; }
29259     CFLAGS="$CFLAGS $amanda_cv_LFS_CFLAGS"
29260
29261
29262     { $as_echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
29263 $as_echo_n "checking for large file compilation LDFLAGS... " >&6; }
29264 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
29265   $as_echo_n "(cached) " >&6
29266 else
29267
29268         amanda_cv_LFS_LDFLAGS=
29269         if test "$GETCONF"; then
29270             if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
29271                 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
29272                 NEED_RESETOFS=no
29273             fi
29274         fi
29275
29276
29277 fi
29278 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
29279 $as_echo "$amanda_cv_LFS_LDFLAGS" >&6; }
29280     LDFLAGS="$LDFLAGS $amanda_cv_LFS_LDFLAGS"
29281
29282
29283     { $as_echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
29284 $as_echo_n "checking for large file compilation LIBS... " >&6; }
29285 if test "${amanda_cv_LFS_LIBS+set}" = set; then
29286   $as_echo_n "(cached) " >&6
29287 else
29288
29289         amanda_cv_LFS_LIBS=
29290         if test "$GETCONF"; then
29291             if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
29292                 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
29293                 NEED_RESETOFS=no
29294             fi
29295         fi
29296
29297
29298 fi
29299 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
29300 $as_echo "$amanda_cv_LFS_LIBS" >&6; }
29301     LIBS="$amanda_cv_LFS_LIBS $LIBS"
29302
29303
29304     if test x"$NEED_RESETOFS" = x"yes"; then
29305
29306 cat >>confdefs.h <<\_ACEOF
29307 #define NEED_RESETOFS 1
29308 _ACEOF
29309
29310     fi
29311
29312
29313
29314     # Extract the first word of "chio", so it can be a program name with args.
29315 set dummy chio; ac_word=$2
29316 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29317 $as_echo_n "checking for $ac_word... " >&6; }
29318 if test "${ac_cv_path_CHIO+set}" = set; then
29319   $as_echo_n "(cached) " >&6
29320 else
29321   case $CHIO in
29322   [\\/]* | ?:[\\/]*)
29323   ac_cv_path_CHIO="$CHIO" # Let the user override the test with a path.
29324   ;;
29325   *)
29326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29327 for as_dir in $LOCSYSPATH
29328 do
29329   IFS=$as_save_IFS
29330   test -z "$as_dir" && as_dir=.
29331   for ac_exec_ext in '' $ac_executable_extensions; do
29332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29333     ac_cv_path_CHIO="$as_dir/$ac_word$ac_exec_ext"
29334     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29335     break 2
29336   fi
29337 done
29338 done
29339 IFS=$as_save_IFS
29340
29341   test -z "$ac_cv_path_CHIO" && ac_cv_path_CHIO="chio"
29342   ;;
29343 esac
29344 fi
29345 CHIO=$ac_cv_path_CHIO
29346 if test -n "$CHIO"; then
29347   { $as_echo "$as_me:$LINENO: result: $CHIO" >&5
29348 $as_echo "$CHIO" >&6; }
29349 else
29350   { $as_echo "$as_me:$LINENO: result: no" >&5
29351 $as_echo "no" >&6; }
29352 fi
29353
29354
29355
29356
29357
29358     # Extract the first word of "chs", so it can be a program name with args.
29359 set dummy chs; ac_word=$2
29360 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29361 $as_echo_n "checking for $ac_word... " >&6; }
29362 if test "${ac_cv_path_CHS+set}" = set; then
29363   $as_echo_n "(cached) " >&6
29364 else
29365   case $CHS in
29366   [\\/]* | ?:[\\/]*)
29367   ac_cv_path_CHS="$CHS" # Let the user override the test with a path.
29368   ;;
29369   *)
29370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29371 for as_dir in $LOCSYSPATH
29372 do
29373   IFS=$as_save_IFS
29374   test -z "$as_dir" && as_dir=.
29375   for ac_exec_ext in '' $ac_executable_extensions; do
29376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29377     ac_cv_path_CHS="$as_dir/$ac_word$ac_exec_ext"
29378     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29379     break 2
29380   fi
29381 done
29382 done
29383 IFS=$as_save_IFS
29384
29385   test -z "$ac_cv_path_CHS" && ac_cv_path_CHS="chs"
29386   ;;
29387 esac
29388 fi
29389 CHS=$ac_cv_path_CHS
29390 if test -n "$CHS"; then
29391   { $as_echo "$as_me:$LINENO: result: $CHS" >&5
29392 $as_echo "$CHS" >&6; }
29393 else
29394   { $as_echo "$as_me:$LINENO: result: no" >&5
29395 $as_echo "no" >&6; }
29396 fi
29397
29398
29399
29400
29401
29402     # Extract the first word of "mtx", so it can be a program name with args.
29403 set dummy mtx; ac_word=$2
29404 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29405 $as_echo_n "checking for $ac_word... " >&6; }
29406 if test "${ac_cv_path_MTX+set}" = set; then
29407   $as_echo_n "(cached) " >&6
29408 else
29409   case $MTX in
29410   [\\/]* | ?:[\\/]*)
29411   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
29412   ;;
29413   *)
29414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29415 for as_dir in $LOCSYSPATH
29416 do
29417   IFS=$as_save_IFS
29418   test -z "$as_dir" && as_dir=.
29419   for ac_exec_ext in '' $ac_executable_extensions; do
29420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29421     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
29422     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29423     break 2
29424   fi
29425 done
29426 done
29427 IFS=$as_save_IFS
29428
29429   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
29430   ;;
29431 esac
29432 fi
29433 MTX=$ac_cv_path_MTX
29434 if test -n "$MTX"; then
29435   { $as_echo "$as_me:$LINENO: result: $MTX" >&5
29436 $as_echo "$MTX" >&6; }
29437 else
29438   { $as_echo "$as_me:$LINENO: result: no" >&5
29439 $as_echo "no" >&6; }
29440 fi
29441
29442
29443
29444
29445
29446     # Extract the first word of "mcutil", so it can be a program name with args.
29447 set dummy mcutil; ac_word=$2
29448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29449 $as_echo_n "checking for $ac_word... " >&6; }
29450 if test "${ac_cv_path_MCUTIL+set}" = set; then
29451   $as_echo_n "(cached) " >&6
29452 else
29453   case $MCUTIL in
29454   [\\/]* | ?:[\\/]*)
29455   ac_cv_path_MCUTIL="$MCUTIL" # Let the user override the test with a path.
29456   ;;
29457   *)
29458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29459 for as_dir in $LOCSYSPATH
29460 do
29461   IFS=$as_save_IFS
29462   test -z "$as_dir" && as_dir=.
29463   for ac_exec_ext in '' $ac_executable_extensions; do
29464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29465     ac_cv_path_MCUTIL="$as_dir/$ac_word$ac_exec_ext"
29466     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29467     break 2
29468   fi
29469 done
29470 done
29471 IFS=$as_save_IFS
29472
29473   test -z "$ac_cv_path_MCUTIL" && ac_cv_path_MCUTIL="mcutil"
29474   ;;
29475 esac
29476 fi
29477 MCUTIL=$ac_cv_path_MCUTIL
29478 if test -n "$MCUTIL"; then
29479   { $as_echo "$as_me:$LINENO: result: $MCUTIL" >&5
29480 $as_echo "$MCUTIL" >&6; }
29481 else
29482   { $as_echo "$as_me:$LINENO: result: no" >&5
29483 $as_echo "no" >&6; }
29484 fi
29485
29486
29487
29488
29489
29490
29491
29492
29493
29494
29495
29496
29497
29498
29499
29500
29501
29502
29503
29504
29505
29506
29507
29508 for ac_header in \
29509         camlib.h \
29510         chio.h \
29511         linux/chio.h \
29512         scsi/sg.h \
29513         scsi/scsi_ioctl.h \
29514         sys/chio.h \
29515         sys/dsreq.h \
29516         sys/mtio.h \
29517         sys/scarray.h \
29518         sys/gscdds.h \
29519         sys/scsi.h \
29520         sys/scsiio.h \
29521         sys/scsi/impl/uscsi.h \
29522         sys/scsi/scsi/ioctl.h
29523 do
29524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29525 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29526 $as_echo_n "checking for $ac_header... " >&6; }
29527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29528   $as_echo_n "(cached) " >&6
29529 else
29530   cat >conftest.$ac_ext <<_ACEOF
29531 /* confdefs.h.  */
29532 _ACEOF
29533 cat confdefs.h >>conftest.$ac_ext
29534 cat >>conftest.$ac_ext <<_ACEOF
29535 /* end confdefs.h.  */
29536 $ac_includes_default
29537
29538 #include <$ac_header>
29539 _ACEOF
29540 rm -f conftest.$ac_objext
29541 if { (ac_try="$ac_compile"
29542 case "(($ac_try" in
29543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29544   *) ac_try_echo=$ac_try;;
29545 esac
29546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29547 $as_echo "$ac_try_echo") >&5
29548   (eval "$ac_compile") 2>conftest.er1
29549   ac_status=$?
29550   grep -v '^ *+' conftest.er1 >conftest.err
29551   rm -f conftest.er1
29552   cat conftest.err >&5
29553   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554   (exit $ac_status); } && {
29555          test -z "$ac_c_werror_flag" ||
29556          test ! -s conftest.err
29557        } && test -s conftest.$ac_objext; then
29558   eval "$as_ac_Header=yes"
29559 else
29560   $as_echo "$as_me: failed program was:" >&5
29561 sed 's/^/| /' conftest.$ac_ext >&5
29562
29563         eval "$as_ac_Header=no"
29564 fi
29565
29566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29567 fi
29568 ac_res=`eval 'as_val=${'$as_ac_Header'}
29569                  $as_echo "$as_val"'`
29570                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29571 $as_echo "$ac_res" >&6; }
29572 as_val=`eval 'as_val=${'$as_ac_Header'}
29573                  $as_echo "$as_val"'`
29574    if test "x$as_val" = x""yes; then
29575   cat >>confdefs.h <<_ACEOF
29576 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29577 _ACEOF
29578  \
29579
29580 fi
29581
29582 done
29583
29584
29585     #
29586     # chio support
29587     #
29588     if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
29589         { $as_echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
29590 $as_echo_n "checking for HP/UX-like scsi changer support... " >&6; }
29591 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
29592   $as_echo_n "(cached) " >&6
29593 else
29594   cat >conftest.$ac_ext <<_ACEOF
29595 /* confdefs.h.  */
29596 _ACEOF
29597 cat confdefs.h >>conftest.$ac_ext
29598 cat >>conftest.$ac_ext <<_ACEOF
29599 /* end confdefs.h.  */
29600
29601 #include <sys/scsi.h>
29602
29603 int
29604 main ()
29605 {
29606
29607             static struct element_addresses changer_info;
29608             int i = SIOC_ELEMENT_ADDRESSES;
29609             int j = SIOC_ELEMENT_STATUS;
29610             int k = SIOC_MOVE_MEDIUM;
29611
29612   ;
29613   return 0;
29614 }
29615 _ACEOF
29616 rm -f conftest.$ac_objext
29617 if { (ac_try="$ac_compile"
29618 case "(($ac_try" in
29619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29620   *) ac_try_echo=$ac_try;;
29621 esac
29622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29623 $as_echo "$ac_try_echo") >&5
29624   (eval "$ac_compile") 2>conftest.er1
29625   ac_status=$?
29626   grep -v '^ *+' conftest.er1 >conftest.err
29627   rm -f conftest.er1
29628   cat conftest.err >&5
29629   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630   (exit $ac_status); } && {
29631          test -z "$ac_c_werror_flag" ||
29632          test ! -s conftest.err
29633        } && test -s conftest.$ac_objext; then
29634   amanda_cv_hpux_scsi_chio=yes
29635 else
29636   $as_echo "$as_me: failed program was:" >&5
29637 sed 's/^/| /' conftest.$ac_ext >&5
29638
29639         amanda_cv_hpux_scsi_chio=no
29640 fi
29641
29642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29643 fi
29644 { $as_echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
29645 $as_echo "$amanda_cv_hpux_scsi_chio" >&6; }
29646         if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
29647             WANT_SCSI_HPUX=yes
29648             WANT_CHG_SCSI=yes
29649         fi
29650     fi
29651
29652     #
29653     # Linux SCSI based on ioctl
29654     #
29655     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
29656        test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
29657             { $as_echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
29658 $as_echo_n "checking for Linux like scsi support (ioctl)... " >&6; }
29659 if test "${amanda_cv_linux_scsi+set}" = set; then
29660   $as_echo_n "(cached) " >&6
29661 else
29662   cat >conftest.$ac_ext <<_ACEOF
29663 /* confdefs.h.  */
29664 _ACEOF
29665 cat confdefs.h >>conftest.$ac_ext
29666 cat >>conftest.$ac_ext <<_ACEOF
29667 /* end confdefs.h.  */
29668
29669 #include <scsi/scsi_ioctl.h>
29670 #include <sys/mtio.h>
29671
29672 int
29673 main ()
29674 {
29675
29676             int device;
29677             char *Command;
29678             ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
29679
29680   ;
29681   return 0;
29682 }
29683 _ACEOF
29684 rm -f conftest.$ac_objext
29685 if { (ac_try="$ac_compile"
29686 case "(($ac_try" in
29687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29688   *) ac_try_echo=$ac_try;;
29689 esac
29690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29691 $as_echo "$ac_try_echo") >&5
29692   (eval "$ac_compile") 2>conftest.er1
29693   ac_status=$?
29694   grep -v '^ *+' conftest.er1 >conftest.err
29695   rm -f conftest.er1
29696   cat conftest.err >&5
29697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698   (exit $ac_status); } && {
29699          test -z "$ac_c_werror_flag" ||
29700          test ! -s conftest.err
29701        } && test -s conftest.$ac_objext; then
29702   amanda_cv_linux_scsi=yes
29703 else
29704   $as_echo "$as_me: failed program was:" >&5
29705 sed 's/^/| /' conftest.$ac_ext >&5
29706
29707         amanda_cv_linux_scsi=no
29708 fi
29709
29710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29711 fi
29712 { $as_echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
29713 $as_echo "$amanda_cv_linux_scsi" >&6; }
29714     fi
29715
29716     #
29717     # Linux SCSI based on sg
29718     #
29719     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
29720        test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
29721             { $as_echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
29722 $as_echo_n "checking for Linux like scsi support (sg)... " >&6; }
29723 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
29724   $as_echo_n "(cached) " >&6
29725 else
29726   cat >conftest.$ac_ext <<_ACEOF
29727 /* confdefs.h.  */
29728 _ACEOF
29729 cat confdefs.h >>conftest.$ac_ext
29730 cat >>conftest.$ac_ext <<_ACEOF
29731 /* end confdefs.h.  */
29732
29733 #include <sys/types.h>
29734 #include <scsi/sg.h>
29735 #include <sys/mtio.h>
29736
29737 int
29738 main ()
29739 {
29740
29741             int device;
29742             struct sg_header *psg_header;
29743             char *buffer;
29744             write(device, buffer, 1);
29745
29746   ;
29747   return 0;
29748 }
29749 _ACEOF
29750 rm -f conftest.$ac_objext
29751 if { (ac_try="$ac_compile"
29752 case "(($ac_try" in
29753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754   *) ac_try_echo=$ac_try;;
29755 esac
29756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29757 $as_echo "$ac_try_echo") >&5
29758   (eval "$ac_compile") 2>conftest.er1
29759   ac_status=$?
29760   grep -v '^ *+' conftest.er1 >conftest.err
29761   rm -f conftest.er1
29762   cat conftest.err >&5
29763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764   (exit $ac_status); } && {
29765          test -z "$ac_c_werror_flag" ||
29766          test ! -s conftest.err
29767        } && test -s conftest.$ac_objext; then
29768   amanda_cv_linux_sg_scsi=yes
29769 else
29770   $as_echo "$as_me: failed program was:" >&5
29771 sed 's/^/| /' conftest.$ac_ext >&5
29772
29773         amanda_cv_linux_sg_scsi=no
29774 fi
29775
29776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29777 fi
29778 { $as_echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
29779 $as_echo "$amanda_cv_linux_sg_scsi" >&6; }
29780     fi
29781
29782     if test x"$amanda_cv_linux_scsi" = x"yes" ||
29783      test x"$amanda_cv_linux_sg_scsi" = x"yes";then
29784             WANT_SCSI_LINUX=yes
29785             WANT_CHG_SCSI=yes
29786     fi
29787
29788     #
29789     # HP-UX SCSI
29790     #
29791     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
29792        test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
29793             { $as_echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
29794 $as_echo_n "checking for HP-UX like scsi support... " >&6; }
29795 if test "${amanda_cv_hpux_scsi+set}" = set; then
29796   $as_echo_n "(cached) " >&6
29797 else
29798   cat >conftest.$ac_ext <<_ACEOF
29799 /* confdefs.h.  */
29800 _ACEOF
29801 cat confdefs.h >>conftest.$ac_ext
29802 cat >>conftest.$ac_ext <<_ACEOF
29803 /* end confdefs.h.  */
29804
29805 #include <stdio.h>
29806 #include <sys/ioctl.h>
29807 #include <sys/scsi.h>
29808 #include <sys/mtio.h>
29809
29810 int
29811 main ()
29812 {
29813
29814             int device;
29815             char *Command;
29816             ioctl(device, SIOC_IO, Command);
29817
29818   ;
29819   return 0;
29820 }
29821 _ACEOF
29822 rm -f conftest.$ac_objext
29823 if { (ac_try="$ac_compile"
29824 case "(($ac_try" in
29825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826   *) ac_try_echo=$ac_try;;
29827 esac
29828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29829 $as_echo "$ac_try_echo") >&5
29830   (eval "$ac_compile") 2>conftest.er1
29831   ac_status=$?
29832   grep -v '^ *+' conftest.er1 >conftest.err
29833   rm -f conftest.er1
29834   cat conftest.err >&5
29835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836   (exit $ac_status); } && {
29837          test -z "$ac_c_werror_flag" ||
29838          test ! -s conftest.err
29839        } && test -s conftest.$ac_objext; then
29840   amanda_cv_hpux_scsi=yes
29841 else
29842   $as_echo "$as_me: failed program was:" >&5
29843 sed 's/^/| /' conftest.$ac_ext >&5
29844
29845         amanda_cv_hpux_scsi=no
29846 fi
29847
29848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29849 fi
29850 { $as_echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
29851 $as_echo "$amanda_cv_hpux_scsi" >&6; }
29852             if test x"$amanda_cv_hpux_scsi" = x"yes";then
29853                     WANT_SCSI_HPUX_NEW=yes
29854                     WANT_CHG_SCSI=yes
29855                     WANT_CHG_SCSI_CHIO=yes
29856             fi
29857     fi
29858
29859     #
29860     # IRIX SCSI
29861     #
29862     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
29863        test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
29864             { $as_echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
29865 $as_echo_n "checking for Irix like scsi support... " >&6; }
29866 if test "${amanda_cv_irix_scsi+set}" = set; then
29867   $as_echo_n "(cached) " >&6
29868 else
29869   cat >conftest.$ac_ext <<_ACEOF
29870 /* confdefs.h.  */
29871 _ACEOF
29872 cat confdefs.h >>conftest.$ac_ext
29873 cat >>conftest.$ac_ext <<_ACEOF
29874 /* end confdefs.h.  */
29875
29876 #include <sys/types.h>
29877 #include <sys/dsreq.h>
29878 #include <sys/mtio.h>
29879
29880 int
29881 main ()
29882 {
29883
29884             int device=1;
29885             char Command;
29886             ioctl(device, DS_ENTER, &Command);
29887
29888   ;
29889   return 0;
29890 }
29891 _ACEOF
29892 rm -f conftest.$ac_objext
29893 if { (ac_try="$ac_compile"
29894 case "(($ac_try" in
29895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29896   *) ac_try_echo=$ac_try;;
29897 esac
29898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29899 $as_echo "$ac_try_echo") >&5
29900   (eval "$ac_compile") 2>conftest.er1
29901   ac_status=$?
29902   grep -v '^ *+' conftest.er1 >conftest.err
29903   rm -f conftest.er1
29904   cat conftest.err >&5
29905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906   (exit $ac_status); } && {
29907          test -z "$ac_c_werror_flag" ||
29908          test ! -s conftest.err
29909        } && test -s conftest.$ac_objext; then
29910   amanda_cv_irix_scsi=yes
29911 else
29912   $as_echo "$as_me: failed program was:" >&5
29913 sed 's/^/| /' conftest.$ac_ext >&5
29914
29915         amanda_cv_irix_scsi=no
29916 fi
29917
29918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29919 fi
29920 { $as_echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
29921 $as_echo "$amanda_cv_irix_scsi" >&6; }
29922             if test x"$amanda_cv_irix_scsi" = x"yes";then
29923                     WANT_SCSI_IRIX=yes
29924                     WANT_CHG_SCSI=yes
29925             fi
29926     fi
29927
29928     #
29929     # Solaris  SCSI
29930     #
29931     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
29932        test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
29933             { $as_echo "$as_me:$LINENO: checking for Solaris-like scsi support" >&5
29934 $as_echo_n "checking for Solaris-like scsi support... " >&6; }
29935 if test "${amanda_cv_solaris_scsi+set}" = set; then
29936   $as_echo_n "(cached) " >&6
29937 else
29938   cat >conftest.$ac_ext <<_ACEOF
29939 /* confdefs.h.  */
29940 _ACEOF
29941 cat confdefs.h >>conftest.$ac_ext
29942 cat >>conftest.$ac_ext <<_ACEOF
29943 /* end confdefs.h.  */
29944
29945 #include <sys/types.h>
29946 #include <sys/scsi/impl/uscsi.h>
29947 #include <sys/mtio.h>
29948
29949 int
29950 main ()
29951 {
29952
29953             int device;
29954             char *Command;
29955             ioctl(device, USCSICMD, Command);
29956
29957   ;
29958   return 0;
29959 }
29960 _ACEOF
29961 rm -f conftest.$ac_objext
29962 if { (ac_try="$ac_compile"
29963 case "(($ac_try" in
29964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29965   *) ac_try_echo=$ac_try;;
29966 esac
29967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29968 $as_echo "$ac_try_echo") >&5
29969   (eval "$ac_compile") 2>conftest.er1
29970   ac_status=$?
29971   grep -v '^ *+' conftest.er1 >conftest.err
29972   rm -f conftest.er1
29973   cat conftest.err >&5
29974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975   (exit $ac_status); } && {
29976          test -z "$ac_c_werror_flag" ||
29977          test ! -s conftest.err
29978        } && test -s conftest.$ac_objext; then
29979   amanda_cv_solaris_scsi=yes
29980 else
29981   $as_echo "$as_me: failed program was:" >&5
29982 sed 's/^/| /' conftest.$ac_ext >&5
29983
29984         amanda_cv_solaris_scsi=no
29985 fi
29986
29987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29988 fi
29989 { $as_echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
29990 $as_echo "$amanda_cv_solaris_scsi" >&6; }
29991             if test x"$amanda_cv_solaris_scsi" = x"yes";then
29992                     WANT_SCSI_SOLARIS=yes
29993                     WANT_CHG_SCSI=yes
29994             fi
29995     fi
29996
29997     #
29998     # AIX SCSI
29999     #
30000     if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
30001        test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
30002        test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
30003             { $as_echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
30004 $as_echo_n "checking for AIX like scsi support... " >&6; }
30005 if test "${amanda_cv_aix_scsi+set}" = set; then
30006   $as_echo_n "(cached) " >&6
30007 else
30008   cat >conftest.$ac_ext <<_ACEOF
30009 /* confdefs.h.  */
30010 _ACEOF
30011 cat confdefs.h >>conftest.$ac_ext
30012 cat >>conftest.$ac_ext <<_ACEOF
30013 /* end confdefs.h.  */
30014
30015 #include <sys/types.h>
30016 #include <sys/scarray.h>
30017 #include <sys/tape.h>
30018
30019 int
30020 main ()
30021 {
30022
30023             int device;
30024             char *Command;
30025             ioctl(device, STIOCMD, Command);
30026
30027   ;
30028   return 0;
30029 }
30030 _ACEOF
30031 rm -f conftest.$ac_objext
30032 if { (ac_try="$ac_compile"
30033 case "(($ac_try" in
30034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30035   *) ac_try_echo=$ac_try;;
30036 esac
30037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30038 $as_echo "$ac_try_echo") >&5
30039   (eval "$ac_compile") 2>conftest.er1
30040   ac_status=$?
30041   grep -v '^ *+' conftest.er1 >conftest.err
30042   rm -f conftest.er1
30043   cat conftest.err >&5
30044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045   (exit $ac_status); } && {
30046          test -z "$ac_c_werror_flag" ||
30047          test ! -s conftest.err
30048        } && test -s conftest.$ac_objext; then
30049   amanda_cv_aix_scsi=yes
30050 else
30051   $as_echo "$as_me: failed program was:" >&5
30052 sed 's/^/| /' conftest.$ac_ext >&5
30053
30054         amanda_cv_aix_scsi=no
30055 fi
30056
30057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30058 fi
30059 { $as_echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
30060 $as_echo "$amanda_cv_aix_scsi" >&6; }
30061             if test x"$amanda_cv_aix_scsi" = x"yes";then
30062                     WANT_SCSI_AIX=yes
30063                     WANT_CHG_SCSI=yes
30064             fi
30065     fi
30066     #
30067     # BSD CAM SCSI
30068     #
30069     if test x"$ac_cv_header_cam_cam_h" = x"yes";then
30070             { $as_echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
30071 $as_echo_n "checking for CAM like scsi support... " >&6; }
30072 if test "${amanda_cv_cam_scsi+set}" = set; then
30073   $as_echo_n "(cached) " >&6
30074 else
30075   cat >conftest.$ac_ext <<_ACEOF
30076 /* confdefs.h.  */
30077 _ACEOF
30078 cat confdefs.h >>conftest.$ac_ext
30079 cat >>conftest.$ac_ext <<_ACEOF
30080 /* end confdefs.h.  */
30081
30082 #include <stdio.h>
30083 # include <fcntl.h>
30084 # include <cam/cam.h>
30085 # include <cam/cam_ccb.h>
30086 # include <cam/scsi/scsi_message.h>
30087 # include <cam/scsi/scsi_pass.h>
30088 # include <camlib.h>
30089
30090 int
30091 main ()
30092 {
30093
30094             struct cam_device *curdev;
30095
30096             curdev = cam_open_pass("", O_RDWR, NULL);
30097
30098   ;
30099   return 0;
30100 }
30101 _ACEOF
30102 rm -f conftest.$ac_objext
30103 if { (ac_try="$ac_compile"
30104 case "(($ac_try" in
30105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30106   *) ac_try_echo=$ac_try;;
30107 esac
30108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30109 $as_echo "$ac_try_echo") >&5
30110   (eval "$ac_compile") 2>conftest.er1
30111   ac_status=$?
30112   grep -v '^ *+' conftest.er1 >conftest.err
30113   rm -f conftest.er1
30114   cat conftest.err >&5
30115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116   (exit $ac_status); } && {
30117          test -z "$ac_c_werror_flag" ||
30118          test ! -s conftest.err
30119        } && test -s conftest.$ac_objext; then
30120   amanda_cv_cam_scsi=yes
30121 else
30122   $as_echo "$as_me: failed program was:" >&5
30123 sed 's/^/| /' conftest.$ac_ext >&5
30124
30125         amanda_cv_cam_scsi=no
30126 fi
30127
30128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30129 fi
30130 { $as_echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
30131 $as_echo "$amanda_cv_cam_scsi" >&6; }
30132             if test x"$amanda_cv_cam_scsi" = x"yes";then
30133                     WANT_SCSI_CAM=yes
30134                     WANT_CHG_SCSI=yes
30135
30136 { $as_echo "$as_me:$LINENO: checking for main in -lcam" >&5
30137 $as_echo_n "checking for main in -lcam... " >&6; }
30138 if test "${ac_cv_lib_cam_main+set}" = set; then
30139   $as_echo_n "(cached) " >&6
30140 else
30141   ac_check_lib_save_LIBS=$LIBS
30142 LIBS="-lcam  $LIBS"
30143 cat >conftest.$ac_ext <<_ACEOF
30144 /* confdefs.h.  */
30145 _ACEOF
30146 cat confdefs.h >>conftest.$ac_ext
30147 cat >>conftest.$ac_ext <<_ACEOF
30148 /* end confdefs.h.  */
30149
30150
30151 int
30152 main ()
30153 {
30154 return main ();
30155   ;
30156   return 0;
30157 }
30158 _ACEOF
30159 rm -f conftest.$ac_objext conftest$ac_exeext
30160 if { (ac_try="$ac_link"
30161 case "(($ac_try" in
30162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30163   *) ac_try_echo=$ac_try;;
30164 esac
30165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30166 $as_echo "$ac_try_echo") >&5
30167   (eval "$ac_link") 2>conftest.er1
30168   ac_status=$?
30169   grep -v '^ *+' conftest.er1 >conftest.err
30170   rm -f conftest.er1
30171   cat conftest.err >&5
30172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173   (exit $ac_status); } && {
30174          test -z "$ac_c_werror_flag" ||
30175          test ! -s conftest.err
30176        } && test -s conftest$ac_exeext && {
30177          test "$cross_compiling" = yes ||
30178          $as_test_x conftest$ac_exeext
30179        }; then
30180   ac_cv_lib_cam_main=yes
30181 else
30182   $as_echo "$as_me: failed program was:" >&5
30183 sed 's/^/| /' conftest.$ac_ext >&5
30184
30185         ac_cv_lib_cam_main=no
30186 fi
30187
30188 rm -rf conftest.dSYM
30189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30190       conftest$ac_exeext conftest.$ac_ext
30191 LIBS=$ac_check_lib_save_LIBS
30192 fi
30193 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
30194 $as_echo "$ac_cv_lib_cam_main" >&6; }
30195 if test "x$ac_cv_lib_cam_main" = x""yes; then
30196   cat >>confdefs.h <<_ACEOF
30197 #define HAVE_LIBCAM 1
30198 _ACEOF
30199
30200   LIBS="-lcam $LIBS"
30201
30202 fi
30203
30204             fi
30205     fi
30206
30207
30208     #
30209     # BSD SCSI
30210     #
30211     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
30212        test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
30213         { $as_echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
30214 $as_echo_n "checking for BSD like scsi support... " >&6; }
30215 if test "${amanda_cv_bsd_scsi+set}" = set; then
30216   $as_echo_n "(cached) " >&6
30217 else
30218   cat >conftest.$ac_ext <<_ACEOF
30219 /* confdefs.h.  */
30220 _ACEOF
30221 cat confdefs.h >>conftest.$ac_ext
30222 cat >>conftest.$ac_ext <<_ACEOF
30223 /* end confdefs.h.  */
30224
30225 #include <sys/types.h>
30226 #include <sys/scsiio.h>
30227 #include <sys/mtio.h>
30228
30229 int
30230 main ()
30231 {
30232
30233         int device=1;
30234         char Command;
30235         ioctl(device, SCIOCCOMMAND, &Command);
30236
30237   ;
30238   return 0;
30239 }
30240 _ACEOF
30241 rm -f conftest.$ac_objext
30242 if { (ac_try="$ac_compile"
30243 case "(($ac_try" in
30244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30245   *) ac_try_echo=$ac_try;;
30246 esac
30247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30248 $as_echo "$ac_try_echo") >&5
30249   (eval "$ac_compile") 2>conftest.er1
30250   ac_status=$?
30251   grep -v '^ *+' conftest.er1 >conftest.err
30252   rm -f conftest.er1
30253   cat conftest.err >&5
30254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255   (exit $ac_status); } && {
30256          test -z "$ac_c_werror_flag" ||
30257          test ! -s conftest.err
30258        } && test -s conftest.$ac_objext; then
30259   amanda_cv_bsd_scsi=yes
30260 else
30261   $as_echo "$as_me: failed program was:" >&5
30262 sed 's/^/| /' conftest.$ac_ext >&5
30263
30264         amanda_cv_bsd_scsi=no
30265 fi
30266
30267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30268 fi
30269 { $as_echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
30270 $as_echo "$amanda_cv_bsd_scsi" >&6; }
30271         if test x"$amanda_cv_bsd_scsi" = x"yes";then
30272            WANT_SCSI_BSD=yes
30273            WANT_CHG_SCSI=yes
30274         fi
30275     fi
30276
30277     # Do not build chg-scsi-chio if we cannot find the needed support
30278     # include files for the SCSI interfaces
30279     # chio.h and sys/chio.h are chio based systems
30280     if test x"$ac_cv_header_chio_h" = x"yes" ||
30281        test x"$ac_cv_header_linux_chio_h" = x"yes" ||
30282        test x"$ac_cv_header_sys_chio_h" = x"yes"; then
30283        # chg-scsi does not support FreeBSD 3.0's chio.h; it became backward
30284        # incompatible with the introduction of camlib.h
30285        if test x"$ac_cv_header_camlib_h" != x"yes"; then
30286          WANT_SCSI_CHIO=yes
30287          # prefer to use chg-scsi, unless we already have a driver for that,
30288          # in which case set it up as chg-scsi-chio.
30289          if test x"$WANT_CHG_SCSI" = x"no"; then
30290            WANT_CHG_SCSI=yes
30291          else
30292            WANT_CHG_SCSI_CHIO=yes
30293          fi
30294        fi
30295     fi
30296
30297     # scsi-based implementations
30298      if test x"$WANT_CHG_SCSI" = x"yes"; then
30299   WANT_CHG_SCSI_TRUE=
30300   WANT_CHG_SCSI_FALSE='#'
30301 else
30302   WANT_CHG_SCSI_TRUE='#'
30303   WANT_CHG_SCSI_FALSE=
30304 fi
30305
30306      if test x"$WANT_SCSI_LINUX" = x"yes"; then
30307   WANT_SCSI_LINUX_TRUE=
30308   WANT_SCSI_LINUX_FALSE='#'
30309 else
30310   WANT_SCSI_LINUX_TRUE='#'
30311   WANT_SCSI_LINUX_FALSE=
30312 fi
30313
30314      if test x"$WANT_SCSI_HPUX_NEW" = x"yes"; then
30315   WANT_SCSI_HPUX_NEW_TRUE=
30316   WANT_SCSI_HPUX_NEW_FALSE='#'
30317 else
30318   WANT_SCSI_HPUX_NEW_TRUE='#'
30319   WANT_SCSI_HPUX_NEW_FALSE=
30320 fi
30321
30322      if test x"$WANT_SCSI_IRIX" = x"yes"; then
30323   WANT_SCSI_IRIX_TRUE=
30324   WANT_SCSI_IRIX_FALSE='#'
30325 else
30326   WANT_SCSI_IRIX_TRUE='#'
30327   WANT_SCSI_IRIX_FALSE=
30328 fi
30329
30330      if test x"$WANT_SCSI_SOLARIS" = x"yes"; then
30331   WANT_SCSI_SOLARIS_TRUE=
30332   WANT_SCSI_SOLARIS_FALSE='#'
30333 else
30334   WANT_SCSI_SOLARIS_TRUE='#'
30335   WANT_SCSI_SOLARIS_FALSE=
30336 fi
30337
30338      if test x"$WANT_SCSI_AIX" = x"yes"; then
30339   WANT_SCSI_AIX_TRUE=
30340   WANT_SCSI_AIX_FALSE='#'
30341 else
30342   WANT_SCSI_AIX_TRUE='#'
30343   WANT_SCSI_AIX_FALSE=
30344 fi
30345
30346      if test x"$WANT_SCSI_CAM" = x"yes"; then
30347   WANT_SCSI_CAM_TRUE=
30348   WANT_SCSI_CAM_FALSE='#'
30349 else
30350   WANT_SCSI_CAM_TRUE='#'
30351   WANT_SCSI_CAM_FALSE=
30352 fi
30353
30354      if test x"$WANT_SCSI_BSD" = x"yes"; then
30355   WANT_SCSI_BSD_TRUE=
30356   WANT_SCSI_BSD_FALSE='#'
30357 else
30358   WANT_SCSI_BSD_TRUE='#'
30359   WANT_SCSI_BSD_FALSE=
30360 fi
30361
30362
30363     # scsi-chio-based implementations
30364      if test x"$WANT_CHG_SCSI_CHIO" = x"yes"; then
30365   WANT_CHG_SCSI_CHIO_TRUE=
30366   WANT_CHG_SCSI_CHIO_FALSE='#'
30367 else
30368   WANT_CHG_SCSI_CHIO_TRUE='#'
30369   WANT_CHG_SCSI_CHIO_FALSE=
30370 fi
30371
30372      if test x"$WANT_SCSI_HPUX" = x"yes"; then
30373   WANT_SCSI_HPUX_TRUE=
30374   WANT_SCSI_HPUX_FALSE='#'
30375 else
30376   WANT_SCSI_HPUX_TRUE='#'
30377   WANT_SCSI_HPUX_FALSE=
30378 fi
30379
30380      if test x"$WANT_SCSI_CHIO" = x"yes"; then
30381   WANT_SCSI_CHIO_TRUE=
30382   WANT_SCSI_CHIO_FALSE='#'
30383 else
30384   WANT_SCSI_CHIO_TRUE='#'
30385   WANT_SCSI_CHIO_FALSE=
30386 fi
30387
30388
30389
30390
30391
30392
30393
30394 for ac_header in fstab.h \
30395         mntent.h \
30396         mnttab.h \
30397         sys/vfstab.h \
30398
30399 do
30400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30402   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30403 $as_echo_n "checking for $ac_header... " >&6; }
30404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30405   $as_echo_n "(cached) " >&6
30406 fi
30407 ac_res=`eval 'as_val=${'$as_ac_Header'}
30408                  $as_echo "$as_val"'`
30409                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30410 $as_echo "$ac_res" >&6; }
30411 else
30412   # Is the header compilable?
30413 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30414 $as_echo_n "checking $ac_header usability... " >&6; }
30415 cat >conftest.$ac_ext <<_ACEOF
30416 /* confdefs.h.  */
30417 _ACEOF
30418 cat confdefs.h >>conftest.$ac_ext
30419 cat >>conftest.$ac_ext <<_ACEOF
30420 /* end confdefs.h.  */
30421 $ac_includes_default
30422 #include <$ac_header>
30423 _ACEOF
30424 rm -f conftest.$ac_objext
30425 if { (ac_try="$ac_compile"
30426 case "(($ac_try" in
30427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30428   *) ac_try_echo=$ac_try;;
30429 esac
30430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30431 $as_echo "$ac_try_echo") >&5
30432   (eval "$ac_compile") 2>conftest.er1
30433   ac_status=$?
30434   grep -v '^ *+' conftest.er1 >conftest.err
30435   rm -f conftest.er1
30436   cat conftest.err >&5
30437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438   (exit $ac_status); } && {
30439          test -z "$ac_c_werror_flag" ||
30440          test ! -s conftest.err
30441        } && test -s conftest.$ac_objext; then
30442   ac_header_compiler=yes
30443 else
30444   $as_echo "$as_me: failed program was:" >&5
30445 sed 's/^/| /' conftest.$ac_ext >&5
30446
30447         ac_header_compiler=no
30448 fi
30449
30450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30451 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30452 $as_echo "$ac_header_compiler" >&6; }
30453
30454 # Is the header present?
30455 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30456 $as_echo_n "checking $ac_header presence... " >&6; }
30457 cat >conftest.$ac_ext <<_ACEOF
30458 /* confdefs.h.  */
30459 _ACEOF
30460 cat confdefs.h >>conftest.$ac_ext
30461 cat >>conftest.$ac_ext <<_ACEOF
30462 /* end confdefs.h.  */
30463 #include <$ac_header>
30464 _ACEOF
30465 if { (ac_try="$ac_cpp conftest.$ac_ext"
30466 case "(($ac_try" in
30467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30468   *) ac_try_echo=$ac_try;;
30469 esac
30470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30471 $as_echo "$ac_try_echo") >&5
30472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30473   ac_status=$?
30474   grep -v '^ *+' conftest.er1 >conftest.err
30475   rm -f conftest.er1
30476   cat conftest.err >&5
30477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478   (exit $ac_status); } >/dev/null && {
30479          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30480          test ! -s conftest.err
30481        }; then
30482   ac_header_preproc=yes
30483 else
30484   $as_echo "$as_me: failed program was:" >&5
30485 sed 's/^/| /' conftest.$ac_ext >&5
30486
30487   ac_header_preproc=no
30488 fi
30489
30490 rm -f conftest.err conftest.$ac_ext
30491 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30492 $as_echo "$ac_header_preproc" >&6; }
30493
30494 # So?  What about this header?
30495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30496   yes:no: )
30497     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30498 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30499     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30500 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30501     ac_header_preproc=yes
30502     ;;
30503   no:yes:* )
30504     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30505 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30506     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30507 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30508     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30509 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30510     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30511 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30512     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30513 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30514     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30515 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30516
30517     ;;
30518 esac
30519 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30520 $as_echo_n "checking for $ac_header... " >&6; }
30521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30522   $as_echo_n "(cached) " >&6
30523 else
30524   eval "$as_ac_Header=\$ac_header_preproc"
30525 fi
30526 ac_res=`eval 'as_val=${'$as_ac_Header'}
30527                  $as_echo "$as_val"'`
30528                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30529 $as_echo "$ac_res" >&6; }
30530
30531 fi
30532 as_val=`eval 'as_val=${'$as_ac_Header'}
30533                  $as_echo "$as_val"'`
30534    if test "x$as_val" = x""yes; then
30535   cat >>confdefs.h <<_ACEOF
30536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30537 _ACEOF
30538
30539 fi
30540
30541 done
30542
30543
30544
30545 for ac_func in endmntent
30546 do
30547 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30548 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30549 $as_echo_n "checking for $ac_func... " >&6; }
30550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30551   $as_echo_n "(cached) " >&6
30552 else
30553   cat >conftest.$ac_ext <<_ACEOF
30554 /* confdefs.h.  */
30555 _ACEOF
30556 cat confdefs.h >>conftest.$ac_ext
30557 cat >>conftest.$ac_ext <<_ACEOF
30558 /* end confdefs.h.  */
30559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30561 #define $ac_func innocuous_$ac_func
30562
30563 /* System header to define __stub macros and hopefully few prototypes,
30564     which can conflict with char $ac_func (); below.
30565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30566     <limits.h> exists even on freestanding compilers.  */
30567
30568 #ifdef __STDC__
30569 # include <limits.h>
30570 #else
30571 # include <assert.h>
30572 #endif
30573
30574 #undef $ac_func
30575
30576 /* Override any GCC internal prototype to avoid an error.
30577    Use char because int might match the return type of a GCC
30578    builtin and then its argument prototype would still apply.  */
30579 #ifdef __cplusplus
30580 extern "C"
30581 #endif
30582 char $ac_func ();
30583 /* The GNU C library defines this for functions which it implements
30584     to always fail with ENOSYS.  Some functions are actually named
30585     something starting with __ and the normal name is an alias.  */
30586 #if defined __stub_$ac_func || defined __stub___$ac_func
30587 choke me
30588 #endif
30589
30590 int
30591 main ()
30592 {
30593 return $ac_func ();
30594   ;
30595   return 0;
30596 }
30597 _ACEOF
30598 rm -f conftest.$ac_objext conftest$ac_exeext
30599 if { (ac_try="$ac_link"
30600 case "(($ac_try" in
30601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30602   *) ac_try_echo=$ac_try;;
30603 esac
30604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30605 $as_echo "$ac_try_echo") >&5
30606   (eval "$ac_link") 2>conftest.er1
30607   ac_status=$?
30608   grep -v '^ *+' conftest.er1 >conftest.err
30609   rm -f conftest.er1
30610   cat conftest.err >&5
30611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612   (exit $ac_status); } && {
30613          test -z "$ac_c_werror_flag" ||
30614          test ! -s conftest.err
30615        } && test -s conftest$ac_exeext && {
30616          test "$cross_compiling" = yes ||
30617          $as_test_x conftest$ac_exeext
30618        }; then
30619   eval "$as_ac_var=yes"
30620 else
30621   $as_echo "$as_me: failed program was:" >&5
30622 sed 's/^/| /' conftest.$ac_ext >&5
30623
30624         eval "$as_ac_var=no"
30625 fi
30626
30627 rm -rf conftest.dSYM
30628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30629       conftest$ac_exeext conftest.$ac_ext
30630 fi
30631 ac_res=`eval 'as_val=${'$as_ac_var'}
30632                  $as_echo "$as_val"'`
30633                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30634 $as_echo "$ac_res" >&6; }
30635 as_val=`eval 'as_val=${'$as_ac_var'}
30636                  $as_echo "$as_val"'`
30637    if test "x$as_val" = x""yes; then
30638   cat >>confdefs.h <<_ACEOF
30639 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30640 _ACEOF
30641
30642 fi
30643 done
30644
30645
30646 for ac_func in setmntent
30647 do
30648 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30649 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30650 $as_echo_n "checking for $ac_func... " >&6; }
30651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30652   $as_echo_n "(cached) " >&6
30653 else
30654   cat >conftest.$ac_ext <<_ACEOF
30655 /* confdefs.h.  */
30656 _ACEOF
30657 cat confdefs.h >>conftest.$ac_ext
30658 cat >>conftest.$ac_ext <<_ACEOF
30659 /* end confdefs.h.  */
30660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30662 #define $ac_func innocuous_$ac_func
30663
30664 /* System header to define __stub macros and hopefully few prototypes,
30665     which can conflict with char $ac_func (); below.
30666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30667     <limits.h> exists even on freestanding compilers.  */
30668
30669 #ifdef __STDC__
30670 # include <limits.h>
30671 #else
30672 # include <assert.h>
30673 #endif
30674
30675 #undef $ac_func
30676
30677 /* Override any GCC internal prototype to avoid an error.
30678    Use char because int might match the return type of a GCC
30679    builtin and then its argument prototype would still apply.  */
30680 #ifdef __cplusplus
30681 extern "C"
30682 #endif
30683 char $ac_func ();
30684 /* The GNU C library defines this for functions which it implements
30685     to always fail with ENOSYS.  Some functions are actually named
30686     something starting with __ and the normal name is an alias.  */
30687 #if defined __stub_$ac_func || defined __stub___$ac_func
30688 choke me
30689 #endif
30690
30691 int
30692 main ()
30693 {
30694 return $ac_func ();
30695   ;
30696   return 0;
30697 }
30698 _ACEOF
30699 rm -f conftest.$ac_objext conftest$ac_exeext
30700 if { (ac_try="$ac_link"
30701 case "(($ac_try" in
30702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30703   *) ac_try_echo=$ac_try;;
30704 esac
30705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30706 $as_echo "$ac_try_echo") >&5
30707   (eval "$ac_link") 2>conftest.er1
30708   ac_status=$?
30709   grep -v '^ *+' conftest.er1 >conftest.err
30710   rm -f conftest.er1
30711   cat conftest.err >&5
30712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30713   (exit $ac_status); } && {
30714          test -z "$ac_c_werror_flag" ||
30715          test ! -s conftest.err
30716        } && test -s conftest$ac_exeext && {
30717          test "$cross_compiling" = yes ||
30718          $as_test_x conftest$ac_exeext
30719        }; then
30720   eval "$as_ac_var=yes"
30721 else
30722   $as_echo "$as_me: failed program was:" >&5
30723 sed 's/^/| /' conftest.$ac_ext >&5
30724
30725         eval "$as_ac_var=no"
30726 fi
30727
30728 rm -rf conftest.dSYM
30729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30730       conftest$ac_exeext conftest.$ac_ext
30731 fi
30732 ac_res=`eval 'as_val=${'$as_ac_var'}
30733                  $as_echo "$as_val"'`
30734                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30735 $as_echo "$ac_res" >&6; }
30736 as_val=`eval 'as_val=${'$as_ac_var'}
30737                  $as_echo "$as_val"'`
30738    if test "x$as_val" = x""yes; then
30739   cat >>confdefs.h <<_ACEOF
30740 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30741 _ACEOF
30742
30743 fi
30744 done
30745
30746
30747
30748
30749
30750
30751
30752
30753 for ac_header in fcntl.h \
30754         sys/fcntl.h \
30755         sys/types.h \
30756         sys/file.h \
30757         unistd.h \
30758
30759 do
30760 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30762   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30763 $as_echo_n "checking for $ac_header... " >&6; }
30764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30765   $as_echo_n "(cached) " >&6
30766 fi
30767 ac_res=`eval 'as_val=${'$as_ac_Header'}
30768                  $as_echo "$as_val"'`
30769                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30770 $as_echo "$ac_res" >&6; }
30771 else
30772   # Is the header compilable?
30773 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30774 $as_echo_n "checking $ac_header usability... " >&6; }
30775 cat >conftest.$ac_ext <<_ACEOF
30776 /* confdefs.h.  */
30777 _ACEOF
30778 cat confdefs.h >>conftest.$ac_ext
30779 cat >>conftest.$ac_ext <<_ACEOF
30780 /* end confdefs.h.  */
30781 $ac_includes_default
30782 #include <$ac_header>
30783 _ACEOF
30784 rm -f conftest.$ac_objext
30785 if { (ac_try="$ac_compile"
30786 case "(($ac_try" in
30787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30788   *) ac_try_echo=$ac_try;;
30789 esac
30790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30791 $as_echo "$ac_try_echo") >&5
30792   (eval "$ac_compile") 2>conftest.er1
30793   ac_status=$?
30794   grep -v '^ *+' conftest.er1 >conftest.err
30795   rm -f conftest.er1
30796   cat conftest.err >&5
30797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30798   (exit $ac_status); } && {
30799          test -z "$ac_c_werror_flag" ||
30800          test ! -s conftest.err
30801        } && test -s conftest.$ac_objext; then
30802   ac_header_compiler=yes
30803 else
30804   $as_echo "$as_me: failed program was:" >&5
30805 sed 's/^/| /' conftest.$ac_ext >&5
30806
30807         ac_header_compiler=no
30808 fi
30809
30810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30811 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30812 $as_echo "$ac_header_compiler" >&6; }
30813
30814 # Is the header present?
30815 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30816 $as_echo_n "checking $ac_header presence... " >&6; }
30817 cat >conftest.$ac_ext <<_ACEOF
30818 /* confdefs.h.  */
30819 _ACEOF
30820 cat confdefs.h >>conftest.$ac_ext
30821 cat >>conftest.$ac_ext <<_ACEOF
30822 /* end confdefs.h.  */
30823 #include <$ac_header>
30824 _ACEOF
30825 if { (ac_try="$ac_cpp conftest.$ac_ext"
30826 case "(($ac_try" in
30827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30828   *) ac_try_echo=$ac_try;;
30829 esac
30830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30831 $as_echo "$ac_try_echo") >&5
30832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30833   ac_status=$?
30834   grep -v '^ *+' conftest.er1 >conftest.err
30835   rm -f conftest.er1
30836   cat conftest.err >&5
30837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838   (exit $ac_status); } >/dev/null && {
30839          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30840          test ! -s conftest.err
30841        }; then
30842   ac_header_preproc=yes
30843 else
30844   $as_echo "$as_me: failed program was:" >&5
30845 sed 's/^/| /' conftest.$ac_ext >&5
30846
30847   ac_header_preproc=no
30848 fi
30849
30850 rm -f conftest.err conftest.$ac_ext
30851 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30852 $as_echo "$ac_header_preproc" >&6; }
30853
30854 # So?  What about this header?
30855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30856   yes:no: )
30857     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30858 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30859     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30860 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30861     ac_header_preproc=yes
30862     ;;
30863   no:yes:* )
30864     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30865 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30866     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30867 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30868     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30869 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30870     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30871 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30872     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30873 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30874     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30875 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30876
30877     ;;
30878 esac
30879 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30880 $as_echo_n "checking for $ac_header... " >&6; }
30881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30882   $as_echo_n "(cached) " >&6
30883 else
30884   eval "$as_ac_Header=\$ac_header_preproc"
30885 fi
30886 ac_res=`eval 'as_val=${'$as_ac_Header'}
30887                  $as_echo "$as_val"'`
30888                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30889 $as_echo "$ac_res" >&6; }
30890
30891 fi
30892 as_val=`eval 'as_val=${'$as_ac_Header'}
30893                  $as_echo "$as_val"'`
30894    if test "x$as_val" = x""yes; then
30895   cat >>confdefs.h <<_ACEOF
30896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30897 _ACEOF
30898
30899 fi
30900
30901 done
30902
30903
30904     # find a working file-locking mechanism.
30905     # Note: these all use AC_TRY_LINK to make sure that we can compile
30906     # and link each variant.  They do not try to test the variants --
30907     # that is left to runtime.
30908     LOCKING="no"
30909
30910     # check POSIX locking
30911     { $as_echo "$as_me:$LINENO: checking whether POSIX locking (with fcntl(2)) is available" >&5
30912 $as_echo_n "checking whether POSIX locking (with fcntl(2)) is available... " >&6; }
30913 if test "${amanda_cv_posix_filelocking+set}" = set; then
30914   $as_echo_n "(cached) " >&6
30915 else
30916
30917             cat >conftest.$ac_ext <<_ACEOF
30918 /* confdefs.h.  */
30919 _ACEOF
30920 cat confdefs.h >>conftest.$ac_ext
30921 cat >>conftest.$ac_ext <<_ACEOF
30922 /* end confdefs.h.  */
30923
30924 #if HAVE_SYS_TYPES_H
30925 # include <sys/types.h>
30926 #endif
30927 #if HAVE_UNISTD_H
30928 # include <unistd.h>
30929 #endif
30930 #if HAVE_FCNTL_H
30931 # include <fcntl.h>
30932 #endif
30933
30934 int
30935 main ()
30936 {
30937
30938             struct flock lock;
30939
30940             lock.l_type = F_RDLCK;
30941             lock.l_start = 0;
30942             lock.l_whence = SEEK_CUR;
30943             lock.l_len = 0;
30944             return fcntl(1, F_SETLK, &lock);
30945
30946   ;
30947   return 0;
30948 }
30949 _ACEOF
30950 rm -f conftest.$ac_objext conftest$ac_exeext
30951 if { (ac_try="$ac_link"
30952 case "(($ac_try" in
30953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30954   *) ac_try_echo=$ac_try;;
30955 esac
30956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30957 $as_echo "$ac_try_echo") >&5
30958   (eval "$ac_link") 2>conftest.er1
30959   ac_status=$?
30960   grep -v '^ *+' conftest.er1 >conftest.err
30961   rm -f conftest.er1
30962   cat conftest.err >&5
30963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30964   (exit $ac_status); } && {
30965          test -z "$ac_c_werror_flag" ||
30966          test ! -s conftest.err
30967        } && test -s conftest$ac_exeext && {
30968          test "$cross_compiling" = yes ||
30969          $as_test_x conftest$ac_exeext
30970        }; then
30971
30972         amanda_cv_posix_filelocking="yes"
30973
30974 else
30975   $as_echo "$as_me: failed program was:" >&5
30976 sed 's/^/| /' conftest.$ac_ext >&5
30977
30978
30979         amanda_cv_posix_filelocking="no"
30980
30981 fi
30982
30983 rm -rf conftest.dSYM
30984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30985       conftest$ac_exeext conftest.$ac_ext
30986
30987 fi
30988 { $as_echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
30989 $as_echo "$amanda_cv_posix_filelocking" >&6; }
30990     if test "x$amanda_cv_posix_filelocking" = xyes; then
30991
30992 cat >>confdefs.h <<\_ACEOF
30993 #define WANT_AMFLOCK_POSIX 1
30994 _ACEOF
30995
30996         WANT_AMFLOCK_POSIX="yes"
30997         LOCKING="POSIX_FCNTL"
30998     fi
30999      if test x"$WANT_AMFLOCK_POSIX" = x"yes"; then
31000   WANT_AMFLOCK_POSIX_TRUE=
31001   WANT_AMFLOCK_POSIX_FALSE='#'
31002 else
31003   WANT_AMFLOCK_POSIX_TRUE='#'
31004   WANT_AMFLOCK_POSIX_FALSE=
31005 fi
31006
31007
31008     # check flock-based (BSD) locking
31009     { $as_echo "$as_me:$LINENO: checking whether flock locking is available" >&5
31010 $as_echo_n "checking whether flock locking is available... " >&6; }
31011 if test "${amanda_cv_flock_filelocking+set}" = set; then
31012   $as_echo_n "(cached) " >&6
31013 else
31014
31015             cat >conftest.$ac_ext <<_ACEOF
31016 /* confdefs.h.  */
31017 _ACEOF
31018 cat confdefs.h >>conftest.$ac_ext
31019 cat >>conftest.$ac_ext <<_ACEOF
31020 /* end confdefs.h.  */
31021
31022 #if HAVE_SYS_FILE_H
31023 # include <sys/file.h>
31024 #endif
31025
31026 int
31027 main ()
31028 {
31029
31030             return flock(1, LOCK_SH);
31031
31032   ;
31033   return 0;
31034 }
31035 _ACEOF
31036 rm -f conftest.$ac_objext conftest$ac_exeext
31037 if { (ac_try="$ac_link"
31038 case "(($ac_try" in
31039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31040   *) ac_try_echo=$ac_try;;
31041 esac
31042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31043 $as_echo "$ac_try_echo") >&5
31044   (eval "$ac_link") 2>conftest.er1
31045   ac_status=$?
31046   grep -v '^ *+' conftest.er1 >conftest.err
31047   rm -f conftest.er1
31048   cat conftest.err >&5
31049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31050   (exit $ac_status); } && {
31051          test -z "$ac_c_werror_flag" ||
31052          test ! -s conftest.err
31053        } && test -s conftest$ac_exeext && {
31054          test "$cross_compiling" = yes ||
31055          $as_test_x conftest$ac_exeext
31056        }; then
31057
31058         amanda_cv_flock_filelocking="yes"
31059
31060 else
31061   $as_echo "$as_me: failed program was:" >&5
31062 sed 's/^/| /' conftest.$ac_ext >&5
31063
31064
31065         amanda_cv_flock_filelocking="no"
31066
31067 fi
31068
31069 rm -rf conftest.dSYM
31070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31071       conftest$ac_exeext conftest.$ac_ext
31072
31073 fi
31074 { $as_echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
31075 $as_echo "$amanda_cv_flock_filelocking" >&6; }
31076     if test "x$amanda_cv_flock_filelocking" = xyes; then
31077
31078 cat >>confdefs.h <<\_ACEOF
31079 #define WANT_AMFLOCK_FLOCK 1
31080 _ACEOF
31081
31082         WANT_AMFLOCK_FLOCK="yes"
31083         LOCKING="FLOCK"
31084     fi
31085      if test x"$WANT_AMFLOCK_FLOCK" = x"yes"; then
31086   WANT_AMFLOCK_FLOCK_TRUE=
31087   WANT_AMFLOCK_FLOCK_FALSE='#'
31088 else
31089   WANT_AMFLOCK_FLOCK_TRUE='#'
31090   WANT_AMFLOCK_FLOCK_FALSE=
31091 fi
31092
31093
31094     # check lockf-based (SVR2, SVR3, SVR4) locking
31095     { $as_echo "$as_me:$LINENO: checking whether lockf(3) locking is available" >&5
31096 $as_echo_n "checking whether lockf(3) locking is available... " >&6; }
31097 if test "${amanda_cv_lockf_filelocking+set}" = set; then
31098   $as_echo_n "(cached) " >&6
31099 else
31100
31101             cat >conftest.$ac_ext <<_ACEOF
31102 /* confdefs.h.  */
31103 _ACEOF
31104 cat confdefs.h >>conftest.$ac_ext
31105 cat >>conftest.$ac_ext <<_ACEOF
31106 /* end confdefs.h.  */
31107
31108 #if HAVE_UNISTD_H
31109 # include <unistd.h>
31110 #endif
31111
31112 int
31113 main ()
31114 {
31115
31116             return lockf(1, F_LOCK, 0);
31117
31118   ;
31119   return 0;
31120 }
31121 _ACEOF
31122 rm -f conftest.$ac_objext conftest$ac_exeext
31123 if { (ac_try="$ac_link"
31124 case "(($ac_try" in
31125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31126   *) ac_try_echo=$ac_try;;
31127 esac
31128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31129 $as_echo "$ac_try_echo") >&5
31130   (eval "$ac_link") 2>conftest.er1
31131   ac_status=$?
31132   grep -v '^ *+' conftest.er1 >conftest.err
31133   rm -f conftest.er1
31134   cat conftest.err >&5
31135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136   (exit $ac_status); } && {
31137          test -z "$ac_c_werror_flag" ||
31138          test ! -s conftest.err
31139        } && test -s conftest$ac_exeext && {
31140          test "$cross_compiling" = yes ||
31141          $as_test_x conftest$ac_exeext
31142        }; then
31143
31144         amanda_cv_lockf_filelocking="yes"
31145
31146 else
31147   $as_echo "$as_me: failed program was:" >&5
31148 sed 's/^/| /' conftest.$ac_ext >&5
31149
31150
31151         amanda_cv_lockf_filelocking="no"
31152
31153 fi
31154
31155 rm -rf conftest.dSYM
31156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31157       conftest$ac_exeext conftest.$ac_ext
31158
31159 fi
31160 { $as_echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
31161 $as_echo "$amanda_cv_lockf_filelocking" >&6; }
31162     if test "x$amanda_cv_lockf_filelocking" = xyes; then
31163
31164 cat >>confdefs.h <<\_ACEOF
31165 #define WANT_AMFLOCK_LOCKF 1
31166 _ACEOF
31167
31168         WANT_AMFLOCK_LOCKF="yes"
31169         LOCKING="LOCKF"
31170     fi
31171      if test x"$WANT_AMFLOCK_LOCKF" = x"yes"; then
31172   WANT_AMFLOCK_LOCKF_TRUE=
31173   WANT_AMFLOCK_LOCKF_FALSE='#'
31174 else
31175   WANT_AMFLOCK_LOCKF_TRUE='#'
31176   WANT_AMFLOCK_LOCKF_FALSE=
31177 fi
31178
31179
31180     # check our homebrew hardlink-based locking (requires hardlinks)
31181     { $as_echo "$as_me:$LINENO: checking whether link(2) is available for locking" >&5
31182 $as_echo_n "checking whether link(2) is available for locking... " >&6; }
31183 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
31184   $as_echo_n "(cached) " >&6
31185 else
31186
31187             cat >conftest.$ac_ext <<_ACEOF
31188 /* confdefs.h.  */
31189 _ACEOF
31190 cat confdefs.h >>conftest.$ac_ext
31191 cat >>conftest.$ac_ext <<_ACEOF
31192 /* end confdefs.h.  */
31193
31194 #if HAVE_UNISTD_H
31195 # include <unistd.h>
31196 #endif
31197
31198 int
31199 main ()
31200 {
31201
31202             return link("/tmp/foo", "/tmp/bar");
31203
31204   ;
31205   return 0;
31206 }
31207 _ACEOF
31208 rm -f conftest.$ac_objext conftest$ac_exeext
31209 if { (ac_try="$ac_link"
31210 case "(($ac_try" in
31211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31212   *) ac_try_echo=$ac_try;;
31213 esac
31214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31215 $as_echo "$ac_try_echo") >&5
31216   (eval "$ac_link") 2>conftest.er1
31217   ac_status=$?
31218   grep -v '^ *+' conftest.er1 >conftest.err
31219   rm -f conftest.er1
31220   cat conftest.err >&5
31221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222   (exit $ac_status); } && {
31223          test -z "$ac_c_werror_flag" ||
31224          test ! -s conftest.err
31225        } && test -s conftest$ac_exeext && {
31226          test "$cross_compiling" = yes ||
31227          $as_test_x conftest$ac_exeext
31228        }; then
31229
31230         amanda_cv_lnlock_filelocking="yes"
31231
31232 else
31233   $as_echo "$as_me: failed program was:" >&5
31234 sed 's/^/| /' conftest.$ac_ext >&5
31235
31236
31237         amanda_cv_lnlock_filelocking="no"
31238
31239 fi
31240
31241 rm -rf conftest.dSYM
31242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31243       conftest$ac_exeext conftest.$ac_ext
31244
31245 fi
31246 { $as_echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
31247 $as_echo "$amanda_cv_lnlock_filelocking" >&6; }
31248     if test "x$amanda_cv_lnlock_filelocking" = xyes; then
31249
31250 cat >>confdefs.h <<\_ACEOF
31251 #define WANT_AMFLOCK_LNLOCK 1
31252 _ACEOF
31253
31254         WANT_AMFLOCK_LNLOCK="yes"
31255         LOCKING="LNLOCK"
31256     fi
31257      if test x"$WANT_AMFLOCK_LNLOCK" = x"yes"; then
31258   WANT_AMFLOCK_LNLOCK_TRUE=
31259   WANT_AMFLOCK_LNLOCK_FALSE='#'
31260 else
31261   WANT_AMFLOCK_LNLOCK_TRUE='#'
31262   WANT_AMFLOCK_LNLOCK_FALSE=
31263 fi
31264
31265
31266     if test x"$LOCKING" = "no"; then
31267         # this shouldn't happen, and is *bad* if it does
31268         { { $as_echo "$as_me:$LINENO: error: *** No working file locking capability found!" >&5
31269 $as_echo "$as_me: error: *** No working file locking capability found!" >&2;}
31270    { (exit 1); exit 1; }; }
31271     fi
31272
31273
31274
31275
31276
31277     for ac_prog in swig
31278 do
31279   # Extract the first word of "$ac_prog", so it can be a program name with args.
31280 set dummy $ac_prog; ac_word=$2
31281 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31282 $as_echo_n "checking for $ac_word... " >&6; }
31283 if test "${ac_cv_path_SWIG+set}" = set; then
31284   $as_echo_n "(cached) " >&6
31285 else
31286   case $SWIG in
31287   [\\/]* | ?:[\\/]*)
31288   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
31289   ;;
31290   *)
31291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31292 for as_dir in $LOCSYSPATH
31293 do
31294   IFS=$as_save_IFS
31295   test -z "$as_dir" && as_dir=.
31296   for ac_exec_ext in '' $ac_executable_extensions; do
31297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31298     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
31299     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31300     break 2
31301   fi
31302 done
31303 done
31304 IFS=$as_save_IFS
31305
31306   ;;
31307 esac
31308 fi
31309 SWIG=$ac_cv_path_SWIG
31310 if test -n "$SWIG"; then
31311   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
31312 $as_echo "$SWIG" >&6; }
31313 else
31314   { $as_echo "$as_me:$LINENO: result: no" >&5
31315 $as_echo "no" >&6; }
31316 fi
31317
31318
31319   test -n "$SWIG" && break
31320 done
31321
31322
31323     # 1.3.32 introduces a change in the way empty strings are handled (old versions
31324     # returned undef in Perl, while new versions return an empty Perl string)
31325
31326         # Extract the first word of "swig", so it can be a program name with args.
31327 set dummy swig; ac_word=$2
31328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31329 $as_echo_n "checking for $ac_word... " >&6; }
31330 if test "${ac_cv_path_SWIG+set}" = set; then
31331   $as_echo_n "(cached) " >&6
31332 else
31333   case $SWIG in
31334   [\\/]* | ?:[\\/]*)
31335   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
31336   ;;
31337   *)
31338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31339 for as_dir in $PATH
31340 do
31341   IFS=$as_save_IFS
31342   test -z "$as_dir" && as_dir=.
31343   for ac_exec_ext in '' $ac_executable_extensions; do
31344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31345     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
31346     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31347     break 2
31348   fi
31349 done
31350 done
31351 IFS=$as_save_IFS
31352
31353   ;;
31354 esac
31355 fi
31356 SWIG=$ac_cv_path_SWIG
31357 if test -n "$SWIG"; then
31358   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
31359 $as_echo "$SWIG" >&6; }
31360 else
31361   { $as_echo "$as_me:$LINENO: result: no" >&5
31362 $as_echo "no" >&6; }
31363 fi
31364
31365
31366         if test -z "$SWIG" ; then
31367                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
31368         elif test -n "1.3.32" ; then
31369                 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
31370 $as_echo_n "checking for SWIG version... " >&6; }
31371                 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'`
31372                 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
31373 $as_echo "$swig_version" >&6; }
31374                 if test -n "$swig_version" ; then
31375                         # Calculate the required version number components
31376                         required=1.3.32
31377                         required_major=`echo $required | sed 's/[^0-9].*//'`
31378                         if test -z "$required_major" ; then
31379                                 required_major=0
31380                         fi
31381                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
31382                         required_minor=`echo $required | sed 's/[^0-9].*//'`
31383                         if test -z "$required_minor" ; then
31384                                 required_minor=0
31385                         fi
31386                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
31387                         required_patch=`echo $required | sed 's/[^0-9].*//'`
31388                         if test -z "$required_patch" ; then
31389                                 required_patch=0
31390                         fi
31391                         # Calculate the available version number components
31392                         available=$swig_version
31393                         available_major=`echo $available | sed 's/[^0-9].*//'`
31394                         if test -z "$available_major" ; then
31395                                 available_major=0
31396                         fi
31397                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
31398                         available_minor=`echo $available | sed 's/[^0-9].*//'`
31399                         if test -z "$available_minor" ; then
31400                                 available_minor=0
31401                         fi
31402                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
31403                         available_patch=`echo $available | sed 's/[^0-9].*//'`
31404                         if test -z "$available_patch" ; then
31405                                 available_patch=0
31406                         fi
31407                         if test $available_major -ne $required_major \
31408                                 -o $available_minor -ne $required_minor \
31409                                 -o $available_patch -lt $required_patch ; then
31410                                 SWIG='echo "Error: SWIG version >= 1.3.32 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
31411                         else
31412                                 SWIG_LIB=`$SWIG -swiglib`
31413                         fi
31414                 else
31415                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
31416                 fi
31417         fi
31418
31419
31420
31421
31422
31423     for ac_prog in perl5 perl
31424 do
31425   # Extract the first word of "$ac_prog", so it can be a program name with args.
31426 set dummy $ac_prog; ac_word=$2
31427 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31428 $as_echo_n "checking for $ac_word... " >&6; }
31429 if test "${ac_cv_path_PERL+set}" = set; then
31430   $as_echo_n "(cached) " >&6
31431 else
31432   case $PERL in
31433   [\\/]* | ?:[\\/]*)
31434   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31435   ;;
31436   *)
31437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31438 for as_dir in $LOCSYSPATH
31439 do
31440   IFS=$as_save_IFS
31441   test -z "$as_dir" && as_dir=.
31442   for ac_exec_ext in '' $ac_executable_extensions; do
31443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31444     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
31445     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31446     break 2
31447   fi
31448 done
31449 done
31450 IFS=$as_save_IFS
31451
31452   ;;
31453 esac
31454 fi
31455 PERL=$ac_cv_path_PERL
31456 if test -n "$PERL"; then
31457   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
31458 $as_echo "$PERL" >&6; }
31459 else
31460   { $as_echo "$as_me:$LINENO: result: no" >&5
31461 $as_echo "no" >&6; }
31462 fi
31463
31464
31465   test -n "$PERL" && break
31466 done
31467
31468
31469     # Make sure we have perl
31470 if test -z "$PERL"; then
31471 # Extract the first word of "perl", so it can be a program name with args.
31472 set dummy perl; ac_word=$2
31473 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31474 $as_echo_n "checking for $ac_word... " >&6; }
31475 if test "${ac_cv_prog_PERL+set}" = set; then
31476   $as_echo_n "(cached) " >&6
31477 else
31478   if test -n "$PERL"; then
31479   ac_cv_prog_PERL="$PERL" # Let the user override the test.
31480 else
31481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31482 for as_dir in $PATH
31483 do
31484   IFS=$as_save_IFS
31485   test -z "$as_dir" && as_dir=.
31486   for ac_exec_ext in '' $ac_executable_extensions; do
31487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31488     ac_cv_prog_PERL="perl"
31489     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31490     break 2
31491   fi
31492 done
31493 done
31494 IFS=$as_save_IFS
31495
31496 fi
31497 fi
31498 PERL=$ac_cv_prog_PERL
31499 if test -n "$PERL"; then
31500   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
31501 $as_echo "$PERL" >&6; }
31502 else
31503   { $as_echo "$as_me:$LINENO: result: no" >&5
31504 $as_echo "no" >&6; }
31505 fi
31506
31507
31508 fi
31509
31510 # Check if version of Perl is sufficient
31511 ac_perl_version="5.6.0"
31512
31513 if test "x$PERL" != "x"; then
31514   { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
31515 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
31516   # NB: It would be nice to log the error if there is one, but we cannot rely
31517   # on autoconf internals
31518   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
31519   if test $? -ne 0; then
31520     { $as_echo "$as_me:$LINENO: result: no" >&5
31521 $as_echo "no" >&6; };
31522
31523         { { $as_echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
31524 $as_echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
31525    { (exit 1); exit 1; }; }
31526
31527   else
31528     { $as_echo "$as_me:$LINENO: result: ok" >&5
31529 $as_echo "ok" >&6; };
31530
31531   fi
31532 else
31533   { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
31534 $as_echo "$as_me: WARNING: could not find perl" >&2;}
31535 fi
31536
31537
31538
31539
31540
31541
31542     # If we want cygwin to copy ddl to modules directory.
31543     WANT_CYGWIN_COPY_PERL_DLL="false"
31544
31545     # test for ExtUtils::Embed
31546     ac_perl_list_modules="ExtUtils::Embed 0.0"
31547 # Make sure we have perl
31548 if test -z "$PERL"; then
31549 # Extract the first word of "perl", so it can be a program name with args.
31550 set dummy perl; ac_word=$2
31551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31552 $as_echo_n "checking for $ac_word... " >&6; }
31553 if test "${ac_cv_prog_PERL+set}" = set; then
31554   $as_echo_n "(cached) " >&6
31555 else
31556   if test -n "$PERL"; then
31557   ac_cv_prog_PERL="$PERL" # Let the user override the test.
31558 else
31559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31560 for as_dir in $PATH
31561 do
31562   IFS=$as_save_IFS
31563   test -z "$as_dir" && as_dir=.
31564   for ac_exec_ext in '' $ac_executable_extensions; do
31565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31566     ac_cv_prog_PERL="perl"
31567     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31568     break 2
31569   fi
31570 done
31571 done
31572 IFS=$as_save_IFS
31573
31574 fi
31575 fi
31576 PERL=$ac_cv_prog_PERL
31577 if test -n "$PERL"; then
31578   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
31579 $as_echo "$PERL" >&6; }
31580 else
31581   { $as_echo "$as_me:$LINENO: result: no" >&5
31582 $as_echo "no" >&6; }
31583 fi
31584
31585
31586 fi
31587
31588 # Check the number of arguments
31589 args_num=`echo $ac_perl_list_modules | wc -w`
31590 let "ckeck_args = $args_num % 2"
31591 if test "$check_args" = "1" ; then
31592   { { $as_echo "$as_me:$LINENO: error: syntax error" >&5
31593 $as_echo "$as_me: error: syntax error" >&2;}
31594    { (exit 1); exit 1; }; }
31595 else
31596   eval
31597 fi
31598
31599 if test "x$PERL" != x; then
31600   ac_failed=0
31601   while test ${#ac_perl_list_modules} -gt 2 ; do
31602         module_name=`echo $ac_perl_list_modules | cut -d " " -f 1`
31603         module_version=`echo $ac_perl_list_modules | cut -d " " -f 2`
31604         ac_perl_list_modules=`echo $ac_perl_list_modules | cut -d " " -f 3-`
31605         { $as_echo "$as_me:$LINENO: checking for perl module $module_name version $module_version" >&5
31606 $as_echo_n "checking for perl module $module_name version $module_version... " >&6; }
31607
31608         $PERL "-M$module_name" -e exit > /dev/null 2>&1
31609         if test $? -ne 0; then
31610           { $as_echo "$as_me:$LINENO: result: no" >&5
31611 $as_echo "no" >&6; };
31612           ac_failed=1
31613           ac_perl_list_modules=""
31614         else
31615           version=`$PERL "-M$module_name" -e 'print $'"$module_name::VERSION" 2>&1`
31616           $PERL -e 'exit(shift cmp shift)' "$version" "$module_version"
31617           if test $? -eq 0 -o $? -eq 1 ; then
31618             { $as_echo "$as_me:$LINENO: result: ok" >&5
31619 $as_echo "ok" >&6; };
31620           else
31621             { $as_echo "$as_me:$LINENO: result: no" >&5
31622 $as_echo "no" >&6; }
31623             ac_failed=1
31624             ac_perl_list_modules=""
31625           fi
31626         fi;
31627   done
31628
31629   if test "$ac_failed" = 0; then
31630     :
31631
31632   else
31633     :
31634
31635         { { $as_echo "$as_me:$LINENO: error: *** Amanda requires the perl package ExtUtils::Embed to build its perl modules" >&5
31636 $as_echo "$as_me: error: *** Amanda requires the perl package ExtUtils::Embed to build its perl modules" >&2;}
31637    { (exit 1); exit 1; }; }
31638
31639   fi
31640 else
31641   { { $as_echo "$as_me:$LINENO: error: could not find perl" >&5
31642 $as_echo "$as_me: error: could not find perl" >&2;}
31643    { (exit 1); exit 1; }; }
31644 fi
31645
31646     # get the include path for building perl extensions
31647     PERL_INC=`$PERL -MExtUtils::Embed -e perl_inc`
31648
31649
31650     if test x"$enable_shared" = x"no"; then
31651         { { $as_echo "$as_me:$LINENO: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&5
31652 $as_echo "$as_me: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&2;}
31653    { (exit 1); exit 1; }; }
31654     fi
31655
31656     case "$host" in
31657         *freebsd[123456]*) # up to and including FreeBSD 6.*
31658             # Before 7.0, FreeBSD systems don't include a DT_NEEDS segment in
31659             # libgthread to automatically pull in the desired threading library.
31660             # Instead, they assume that any application linking against
31661             # libgthread will pull in the threading library.  This is fine for
31662             # Amanda C applications, but for Perl applications this assumption
31663             # means that the perl binary would pull in the threading library.
31664             # But perl is compiled without threading by default.
31665             #
31666             # Specifically, this occurs on any FreeBSD using gcc-3.*: the linking
31667             # decision is made in gcc's spec files, which were changed in
31668             # gcc-4.0.  For a more in-depth discussion, see
31669             #  http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_FreeBSD
31670             #
31671             # The easiest solution for the "default" case is to link all perl
31672             # extension libraries against the threading library, so it is loaded
31673             # when perl loads the extension library.  The default threading
31674             # library in FreeBSD is libpthread.  The below default will work on
31675             # such a FreeBSD system, but ports maintainers and those with
31676             # different configurations may need to override this value with
31677             # --with-perlextlibs.
31678             #
31679             # We can't use -pthread because gcc on FreeBSD ignores -pthread in
31680             # combination with -shared.  See
31681             #   http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026229.html
31682
31683             PERLEXTLIBS="-lpthread"
31684             ;;
31685         *-pc-cygwin)
31686             # When need -lperl and the '-L' where it is located,
31687             # we don't want the DynaLoader.a
31688             PERLEXTLIBS=`perl -MExtUtils::Embed -e ldopts | sed -e 's/^.*-L/-L/'`
31689             WANT_CYGWIN_COPY_PERL_DLL="true";
31690             ;;
31691     esac
31692      if $WANT_CYGWIN_COPY_PERL_DLL; then
31693   WANT_CYGWIN_COPY_PERL_DLL_TRUE=
31694   WANT_CYGWIN_COPY_PERL_DLL_FALSE='#'
31695 else
31696   WANT_CYGWIN_COPY_PERL_DLL_TRUE='#'
31697   WANT_CYGWIN_COPY_PERL_DLL_FALSE=
31698 fi
31699
31700
31701
31702 # Check whether --with-perlextlibs was given.
31703 if test "${with_perlextlibs+set}" = set; then
31704   withval=$with_perlextlibs;
31705             case "$withval" in
31706                 y|ye|yes) { { $as_echo "$as_me:$LINENO: error: *** You must specify a value for --with-perlextlibs" >&5
31707 $as_echo "$as_me: error: *** You must specify a value for --with-perlextlibs" >&2;}
31708    { (exit 1); exit 1; }; };;
31709                 n|no) PERLEXTLIBS='';;
31710                 *) PERLEXTLIBS="$withval" ;;
31711             esac
31712
31713 fi
31714
31715
31716
31717
31718
31719     # Extract the first word of "cat", so it can be a program name with args.
31720 set dummy cat; ac_word=$2
31721 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31722 $as_echo_n "checking for $ac_word... " >&6; }
31723 if test "${ac_cv_path_CAT+set}" = set; then
31724   $as_echo_n "(cached) " >&6
31725 else
31726   case $CAT in
31727   [\\/]* | ?:[\\/]*)
31728   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
31729   ;;
31730   *)
31731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31732 for as_dir in $LOCSYSPATH
31733 do
31734   IFS=$as_save_IFS
31735   test -z "$as_dir" && as_dir=.
31736   for ac_exec_ext in '' $ac_executable_extensions; do
31737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31738     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
31739     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31740     break 2
31741   fi
31742 done
31743 done
31744 IFS=$as_save_IFS
31745
31746   test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="cat"
31747   ;;
31748 esac
31749 fi
31750 CAT=$ac_cv_path_CAT
31751 if test -n "$CAT"; then
31752   { $as_echo "$as_me:$LINENO: result: $CAT" >&5
31753 $as_echo "$CAT" >&6; }
31754 else
31755   { $as_echo "$as_me:$LINENO: result: no" >&5
31756 $as_echo "no" >&6; }
31757 fi
31758
31759
31760
31761
31762
31763
31764
31765
31766     HAVE_GZIP=
31767     if test "$GZIP"; then
31768
31769 cat >>confdefs.h <<\_ACEOF
31770 #define HAVE_GZIP 1
31771 _ACEOF
31772
31773         HAVE_GZIP=1
31774         COMPRESS_PATH="$GZIP"
31775         COMPRESS_SUFFIX=".gz"
31776         COMPRESS_FAST_OPT="--fast"
31777         COMPRESS_BEST_OPT="--best"
31778         UNCOMPRESS_PATH="$GZIP"
31779         UNCOMPRESS_OPT="-dc"
31780     else
31781         if test "$COMPRESS"; then
31782             COMPRESS_PATH="$COMPRESS"
31783             COMPRESS_SUFFIX=".Z"
31784             COMPRESS_FAST_OPT="-f"
31785             COMPRESS_BEST_OPT="-f"
31786             UNCOMPRESS_PATH="$COMPRESS"
31787             UNCOMPRESS_OPT="-dc"
31788         else
31789             # If we have to use cat, we don't define COMPRESS_FAST_OPT,
31790             # COMPRESS_BEST_OPT, or UNCOMPRESS_OPT as "" since cat will look
31791             # look for a file by the name of "".
31792             # XXX is the above true? --dustin
31793
31794
31795     { $as_echo "$as_me:$LINENO: WARNING: Cannot find either gzip or compress.  Using cat." >&5
31796 $as_echo "$as_me: WARNING: Cannot find either gzip or compress.  Using cat." >&2;}
31797
31798
31799     cat <<AAW_EOF >>config.warnings
31800 Cannot find either gzip or compress.  Using cat.
31801 AAW_EOF
31802
31803
31804             COMPRESS_PATH="$CAT"
31805             COMPRESS_SUFFIX=""
31806             COMPRESS_FAST_OPT=""
31807             COMPRESS_BEST_OPT=""
31808             UNCOMPRESS_PATH="$CAT"
31809             UNCOMPRESS_OPT=""
31810         fi
31811     fi
31812
31813
31814 cat >>confdefs.h <<_ACEOF
31815 #define COMPRESS_PATH "$COMPRESS_PATH"
31816 _ACEOF
31817
31818
31819 cat >>confdefs.h <<_ACEOF
31820 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
31821 _ACEOF
31822
31823
31824 cat >>confdefs.h <<_ACEOF
31825 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
31826 _ACEOF
31827
31828
31829 cat >>confdefs.h <<_ACEOF
31830 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
31831 _ACEOF
31832
31833
31834 cat >>confdefs.h <<_ACEOF
31835 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
31836 _ACEOF
31837
31838
31839 cat >>confdefs.h <<_ACEOF
31840 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
31841 _ACEOF
31842
31843
31844
31845
31846
31847
31848
31849
31850
31851
31852     # Empty GZIP so that make dist works.
31853     GZIP=
31854
31855
31856     { $as_echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
31857 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
31858 if test "${ac_cv_has_sockaddr_storage+set}" = set; then
31859   $as_echo_n "(cached) " >&6
31860 else
31861
31862         cat >conftest.$ac_ext <<_ACEOF
31863 /* confdefs.h.  */
31864 _ACEOF
31865 cat confdefs.h >>conftest.$ac_ext
31866 cat >>conftest.$ac_ext <<_ACEOF
31867 /* end confdefs.h.  */
31868
31869 #       include <sys/types.h>
31870 #       include <sys/socket.h>
31871 int
31872 main ()
31873 {
31874 u_int i = sizeof (struct sockaddr_storage)
31875   ;
31876   return 0;
31877 }
31878 _ACEOF
31879 rm -f conftest.$ac_objext
31880 if { (ac_try="$ac_compile"
31881 case "(($ac_try" in
31882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31883   *) ac_try_echo=$ac_try;;
31884 esac
31885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31886 $as_echo "$ac_try_echo") >&5
31887   (eval "$ac_compile") 2>conftest.er1
31888   ac_status=$?
31889   grep -v '^ *+' conftest.er1 >conftest.err
31890   rm -f conftest.er1
31891   cat conftest.err >&5
31892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893   (exit $ac_status); } && {
31894          test -z "$ac_c_werror_flag" ||
31895          test ! -s conftest.err
31896        } && test -s conftest.$ac_objext; then
31897   ac_cv_has_sockaddr_storage=yes
31898 else
31899   $as_echo "$as_me: failed program was:" >&5
31900 sed 's/^/| /' conftest.$ac_ext >&5
31901
31902         ac_cv_has_sockaddr_storage=no
31903 fi
31904
31905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31906
31907 fi
31908 { $as_echo "$as_me:$LINENO: result: $ac_cv_has_sockaddr_storage" >&5
31909 $as_echo "$ac_cv_has_sockaddr_storage" >&6; }
31910
31911     if test $ac_cv_has_sockaddr_storage = yes ; then
31912
31913 cat >>confdefs.h <<\_ACEOF
31914 #define HAVE_SOCKADDR_STORAGE 1
31915 _ACEOF
31916
31917     fi
31918
31919
31920
31921
31922     WORKING_IPV6=no
31923
31924 # Check whether --with-ipv6 was given.
31925 if test "${with_ipv6+set}" = set; then
31926   withval=$with_ipv6;
31927             case "$withval" in
31928             y | ye | yes) amanda_with_ipv6=yes;;
31929             n | no) amanda_with_ipv6=no;;
31930             *)
31931                 { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ipv6 option." >&5
31932 $as_echo "$as_me: error: *** You must not supply an argument to --with-ipv6 option." >&2;}
31933    { (exit 1); exit 1; }; }
31934               ;;
31935             esac
31936
31937 else
31938
31939             amanda_with_ipv6=maybe
31940
31941
31942 fi
31943
31944
31945     if test x"$amanda_with_ipv6" = x"yes" ||
31946        test x"$amanda_with_ipv6" = x"maybe" ; then
31947         { $as_echo "$as_me:$LINENO: checking for working IPv6" >&5
31948 $as_echo_n "checking for working IPv6... " >&6; }
31949 if test "${amanda_cv_working_ipv6+set}" = set; then
31950   $as_echo_n "(cached) " >&6
31951 else
31952
31953             case "$host" in
31954                 *-pc-cygwin) amanda_cv_working_ipv6=no;;
31955                 *)
31956                     if test "$cross_compiling" = yes; then
31957    amanda_cv_working_ipv6=yes
31958
31959 else
31960   cat >conftest.$ac_ext <<_ACEOF
31961 /* confdefs.h.  */
31962 _ACEOF
31963 cat confdefs.h >>conftest.$ac_ext
31964 cat >>conftest.$ac_ext <<_ACEOF
31965 /* end confdefs.h.  */
31966
31967 #include <sys/types.h>
31968 #ifdef HAVE_SYS_SOCKET_H
31969 #include <sys/socket.h>
31970 #endif
31971 #ifdef HAVE_NETINET_IN_H
31972 #include <netinet/in.h>
31973 #endif
31974 #ifdef HAVE_WINSOCK2_H
31975 #include <winsock2.h>
31976 #endif
31977 #include <sys/socket.h>
31978 #include <errno.h>
31979
31980 main()
31981 {
31982    int aa;
31983    aa = socket(AF_INET6, SOCK_STREAM, 0);
31984    if (aa > 0) return 0;
31985    return aa;
31986 }
31987 _ACEOF
31988 rm -f conftest$ac_exeext
31989 if { (ac_try="$ac_link"
31990 case "(($ac_try" in
31991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31992   *) ac_try_echo=$ac_try;;
31993 esac
31994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31995 $as_echo "$ac_try_echo") >&5
31996   (eval "$ac_link") 2>&5
31997   ac_status=$?
31998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32000   { (case "(($ac_try" in
32001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32002   *) ac_try_echo=$ac_try;;
32003 esac
32004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32005 $as_echo "$ac_try_echo") >&5
32006   (eval "$ac_try") 2>&5
32007   ac_status=$?
32008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009   (exit $ac_status); }; }; then
32010    amanda_cv_working_ipv6=yes
32011 else
32012   $as_echo "$as_me: program exited with status $ac_status" >&5
32013 $as_echo "$as_me: failed program was:" >&5
32014 sed 's/^/| /' conftest.$ac_ext >&5
32015
32016 ( exit $ac_status )
32017  amanda_cv_working_ipv6=no
32018 fi
32019 rm -rf conftest.dSYM
32020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32021 fi
32022
32023
32024             esac
32025
32026 fi
32027 { $as_echo "$as_me:$LINENO: result: $amanda_cv_working_ipv6" >&5
32028 $as_echo "$amanda_cv_working_ipv6" >&6; }
32029
32030         if test "$amanda_cv_working_ipv6" = yes; then
32031             WORKING_IPV6=yes
32032
32033 cat >>confdefs.h <<\_ACEOF
32034 #define WORKING_IPV6 1
32035 _ACEOF
32036
32037         else
32038             # error out only if the user specifically requested support
32039             if test x"$amanda_with_ipv6" = x"yes"; then
32040                 { { $as_echo "$as_me:$LINENO: error: IPv6 support was requested, but it is not working." >&5
32041 $as_echo "$as_me: error: IPv6 support was requested, but it is not working." >&2;}
32042    { (exit 1); exit 1; }; }
32043             fi
32044         fi
32045     fi
32046
32047
32048
32049
32050 # Check whether --with-mmap was given.
32051 if test "${with_mmap+set}" = set; then
32052   withval=$with_mmap;
32053             case "$FORCE_MMAP" in
32054                 y | ye | yes | n | no) : ;;
32055                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-mmap." >&5
32056 $as_echo "$as_me: error: *** You must not supply an argument to --with-mmap." >&2;}
32057    { (exit 1); exit 1; }; } ;;
32058             esac
32059             FORCE_MMAP=$withval
32060
32061 else
32062    : ${FORCE_MMAP=no}
32063
32064 fi
32065
32066
32067
32068
32069
32070 for ac_header in \
32071             sys/shm.h \
32072             sys/mman.h \
32073
32074 do
32075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32077   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32078 $as_echo_n "checking for $ac_header... " >&6; }
32079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32080   $as_echo_n "(cached) " >&6
32081 fi
32082 ac_res=`eval 'as_val=${'$as_ac_Header'}
32083                  $as_echo "$as_val"'`
32084                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32085 $as_echo "$ac_res" >&6; }
32086 else
32087   # Is the header compilable?
32088 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32089 $as_echo_n "checking $ac_header usability... " >&6; }
32090 cat >conftest.$ac_ext <<_ACEOF
32091 /* confdefs.h.  */
32092 _ACEOF
32093 cat confdefs.h >>conftest.$ac_ext
32094 cat >>conftest.$ac_ext <<_ACEOF
32095 /* end confdefs.h.  */
32096 $ac_includes_default
32097 #include <$ac_header>
32098 _ACEOF
32099 rm -f conftest.$ac_objext
32100 if { (ac_try="$ac_compile"
32101 case "(($ac_try" in
32102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32103   *) ac_try_echo=$ac_try;;
32104 esac
32105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32106 $as_echo "$ac_try_echo") >&5
32107   (eval "$ac_compile") 2>conftest.er1
32108   ac_status=$?
32109   grep -v '^ *+' conftest.er1 >conftest.err
32110   rm -f conftest.er1
32111   cat conftest.err >&5
32112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113   (exit $ac_status); } && {
32114          test -z "$ac_c_werror_flag" ||
32115          test ! -s conftest.err
32116        } && test -s conftest.$ac_objext; then
32117   ac_header_compiler=yes
32118 else
32119   $as_echo "$as_me: failed program was:" >&5
32120 sed 's/^/| /' conftest.$ac_ext >&5
32121
32122         ac_header_compiler=no
32123 fi
32124
32125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32126 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32127 $as_echo "$ac_header_compiler" >&6; }
32128
32129 # Is the header present?
32130 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32131 $as_echo_n "checking $ac_header presence... " >&6; }
32132 cat >conftest.$ac_ext <<_ACEOF
32133 /* confdefs.h.  */
32134 _ACEOF
32135 cat confdefs.h >>conftest.$ac_ext
32136 cat >>conftest.$ac_ext <<_ACEOF
32137 /* end confdefs.h.  */
32138 #include <$ac_header>
32139 _ACEOF
32140 if { (ac_try="$ac_cpp conftest.$ac_ext"
32141 case "(($ac_try" in
32142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32143   *) ac_try_echo=$ac_try;;
32144 esac
32145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32146 $as_echo "$ac_try_echo") >&5
32147   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32148   ac_status=$?
32149   grep -v '^ *+' conftest.er1 >conftest.err
32150   rm -f conftest.er1
32151   cat conftest.err >&5
32152   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32153   (exit $ac_status); } >/dev/null && {
32154          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32155          test ! -s conftest.err
32156        }; then
32157   ac_header_preproc=yes
32158 else
32159   $as_echo "$as_me: failed program was:" >&5
32160 sed 's/^/| /' conftest.$ac_ext >&5
32161
32162   ac_header_preproc=no
32163 fi
32164
32165 rm -f conftest.err conftest.$ac_ext
32166 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32167 $as_echo "$ac_header_preproc" >&6; }
32168
32169 # So?  What about this header?
32170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32171   yes:no: )
32172     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32173 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32174     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32175 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32176     ac_header_preproc=yes
32177     ;;
32178   no:yes:* )
32179     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32180 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32181     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32182 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32183     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32184 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32185     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32186 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32187     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32188 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32189     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32190 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32191
32192     ;;
32193 esac
32194 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32195 $as_echo_n "checking for $ac_header... " >&6; }
32196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32197   $as_echo_n "(cached) " >&6
32198 else
32199   eval "$as_ac_Header=\$ac_header_preproc"
32200 fi
32201 ac_res=`eval 'as_val=${'$as_ac_Header'}
32202                  $as_echo "$as_val"'`
32203                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32204 $as_echo "$ac_res" >&6; }
32205
32206 fi
32207 as_val=`eval 'as_val=${'$as_ac_Header'}
32208                  $as_echo "$as_val"'`
32209    if test "x$as_val" = x""yes; then
32210   cat >>confdefs.h <<_ACEOF
32211 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32212 _ACEOF
32213
32214 fi
32215
32216 done
32217
32218
32219
32220
32221 for ac_header in stdlib.h unistd.h
32222 do
32223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32225   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32226 $as_echo_n "checking for $ac_header... " >&6; }
32227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32228   $as_echo_n "(cached) " >&6
32229 fi
32230 ac_res=`eval 'as_val=${'$as_ac_Header'}
32231                  $as_echo "$as_val"'`
32232                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32233 $as_echo "$ac_res" >&6; }
32234 else
32235   # Is the header compilable?
32236 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32237 $as_echo_n "checking $ac_header usability... " >&6; }
32238 cat >conftest.$ac_ext <<_ACEOF
32239 /* confdefs.h.  */
32240 _ACEOF
32241 cat confdefs.h >>conftest.$ac_ext
32242 cat >>conftest.$ac_ext <<_ACEOF
32243 /* end confdefs.h.  */
32244 $ac_includes_default
32245 #include <$ac_header>
32246 _ACEOF
32247 rm -f conftest.$ac_objext
32248 if { (ac_try="$ac_compile"
32249 case "(($ac_try" in
32250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32251   *) ac_try_echo=$ac_try;;
32252 esac
32253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32254 $as_echo "$ac_try_echo") >&5
32255   (eval "$ac_compile") 2>conftest.er1
32256   ac_status=$?
32257   grep -v '^ *+' conftest.er1 >conftest.err
32258   rm -f conftest.er1
32259   cat conftest.err >&5
32260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261   (exit $ac_status); } && {
32262          test -z "$ac_c_werror_flag" ||
32263          test ! -s conftest.err
32264        } && test -s conftest.$ac_objext; then
32265   ac_header_compiler=yes
32266 else
32267   $as_echo "$as_me: failed program was:" >&5
32268 sed 's/^/| /' conftest.$ac_ext >&5
32269
32270         ac_header_compiler=no
32271 fi
32272
32273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32274 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32275 $as_echo "$ac_header_compiler" >&6; }
32276
32277 # Is the header present?
32278 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32279 $as_echo_n "checking $ac_header presence... " >&6; }
32280 cat >conftest.$ac_ext <<_ACEOF
32281 /* confdefs.h.  */
32282 _ACEOF
32283 cat confdefs.h >>conftest.$ac_ext
32284 cat >>conftest.$ac_ext <<_ACEOF
32285 /* end confdefs.h.  */
32286 #include <$ac_header>
32287 _ACEOF
32288 if { (ac_try="$ac_cpp conftest.$ac_ext"
32289 case "(($ac_try" in
32290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32291   *) ac_try_echo=$ac_try;;
32292 esac
32293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32294 $as_echo "$ac_try_echo") >&5
32295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32296   ac_status=$?
32297   grep -v '^ *+' conftest.er1 >conftest.err
32298   rm -f conftest.er1
32299   cat conftest.err >&5
32300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301   (exit $ac_status); } >/dev/null && {
32302          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32303          test ! -s conftest.err
32304        }; then
32305   ac_header_preproc=yes
32306 else
32307   $as_echo "$as_me: failed program was:" >&5
32308 sed 's/^/| /' conftest.$ac_ext >&5
32309
32310   ac_header_preproc=no
32311 fi
32312
32313 rm -f conftest.err conftest.$ac_ext
32314 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32315 $as_echo "$ac_header_preproc" >&6; }
32316
32317 # So?  What about this header?
32318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32319   yes:no: )
32320     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32321 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32322     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32323 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32324     ac_header_preproc=yes
32325     ;;
32326   no:yes:* )
32327     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32328 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32329     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32330 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32331     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32332 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32333     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32334 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32335     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32336 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32337     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32338 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32339
32340     ;;
32341 esac
32342 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32343 $as_echo_n "checking for $ac_header... " >&6; }
32344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32345   $as_echo_n "(cached) " >&6
32346 else
32347   eval "$as_ac_Header=\$ac_header_preproc"
32348 fi
32349 ac_res=`eval 'as_val=${'$as_ac_Header'}
32350                  $as_echo "$as_val"'`
32351                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32352 $as_echo "$ac_res" >&6; }
32353
32354 fi
32355 as_val=`eval 'as_val=${'$as_ac_Header'}
32356                  $as_echo "$as_val"'`
32357    if test "x$as_val" = x""yes; then
32358   cat >>confdefs.h <<_ACEOF
32359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32360 _ACEOF
32361
32362 fi
32363
32364 done
32365
32366
32367 for ac_func in getpagesize
32368 do
32369 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32370 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32371 $as_echo_n "checking for $ac_func... " >&6; }
32372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32373   $as_echo_n "(cached) " >&6
32374 else
32375   cat >conftest.$ac_ext <<_ACEOF
32376 /* confdefs.h.  */
32377 _ACEOF
32378 cat confdefs.h >>conftest.$ac_ext
32379 cat >>conftest.$ac_ext <<_ACEOF
32380 /* end confdefs.h.  */
32381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32383 #define $ac_func innocuous_$ac_func
32384
32385 /* System header to define __stub macros and hopefully few prototypes,
32386     which can conflict with char $ac_func (); below.
32387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32388     <limits.h> exists even on freestanding compilers.  */
32389
32390 #ifdef __STDC__
32391 # include <limits.h>
32392 #else
32393 # include <assert.h>
32394 #endif
32395
32396 #undef $ac_func
32397
32398 /* Override any GCC internal prototype to avoid an error.
32399    Use char because int might match the return type of a GCC
32400    builtin and then its argument prototype would still apply.  */
32401 #ifdef __cplusplus
32402 extern "C"
32403 #endif
32404 char $ac_func ();
32405 /* The GNU C library defines this for functions which it implements
32406     to always fail with ENOSYS.  Some functions are actually named
32407     something starting with __ and the normal name is an alias.  */
32408 #if defined __stub_$ac_func || defined __stub___$ac_func
32409 choke me
32410 #endif
32411
32412 int
32413 main ()
32414 {
32415 return $ac_func ();
32416   ;
32417   return 0;
32418 }
32419 _ACEOF
32420 rm -f conftest.$ac_objext conftest$ac_exeext
32421 if { (ac_try="$ac_link"
32422 case "(($ac_try" in
32423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32424   *) ac_try_echo=$ac_try;;
32425 esac
32426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32427 $as_echo "$ac_try_echo") >&5
32428   (eval "$ac_link") 2>conftest.er1
32429   ac_status=$?
32430   grep -v '^ *+' conftest.er1 >conftest.err
32431   rm -f conftest.er1
32432   cat conftest.err >&5
32433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434   (exit $ac_status); } && {
32435          test -z "$ac_c_werror_flag" ||
32436          test ! -s conftest.err
32437        } && test -s conftest$ac_exeext && {
32438          test "$cross_compiling" = yes ||
32439          $as_test_x conftest$ac_exeext
32440        }; then
32441   eval "$as_ac_var=yes"
32442 else
32443   $as_echo "$as_me: failed program was:" >&5
32444 sed 's/^/| /' conftest.$ac_ext >&5
32445
32446         eval "$as_ac_var=no"
32447 fi
32448
32449 rm -rf conftest.dSYM
32450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32451       conftest$ac_exeext conftest.$ac_ext
32452 fi
32453 ac_res=`eval 'as_val=${'$as_ac_var'}
32454                  $as_echo "$as_val"'`
32455                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32456 $as_echo "$ac_res" >&6; }
32457 as_val=`eval 'as_val=${'$as_ac_var'}
32458                  $as_echo "$as_val"'`
32459    if test "x$as_val" = x""yes; then
32460   cat >>confdefs.h <<_ACEOF
32461 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32462 _ACEOF
32463
32464 fi
32465 done
32466
32467 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
32468 $as_echo_n "checking for working mmap... " >&6; }
32469 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32470   $as_echo_n "(cached) " >&6
32471 else
32472   if test "$cross_compiling" = yes; then
32473   ac_cv_func_mmap_fixed_mapped=no
32474 else
32475   cat >conftest.$ac_ext <<_ACEOF
32476 /* confdefs.h.  */
32477 _ACEOF
32478 cat confdefs.h >>conftest.$ac_ext
32479 cat >>conftest.$ac_ext <<_ACEOF
32480 /* end confdefs.h.  */
32481 $ac_includes_default
32482 /* malloc might have been renamed as rpl_malloc. */
32483 #undef malloc
32484
32485 /* Thanks to Mike Haertel and Jim Avera for this test.
32486    Here is a matrix of mmap possibilities:
32487         mmap private not fixed
32488         mmap private fixed at somewhere currently unmapped
32489         mmap private fixed at somewhere already mapped
32490         mmap shared not fixed
32491         mmap shared fixed at somewhere currently unmapped
32492         mmap shared fixed at somewhere already mapped
32493    For private mappings, we should verify that changes cannot be read()
32494    back from the file, nor mmap's back from the file at a different
32495    address.  (There have been systems where private was not correctly
32496    implemented like the infamous i386 svr4.0, and systems where the
32497    VM page cache was not coherent with the file system buffer cache
32498    like early versions of FreeBSD and possibly contemporary NetBSD.)
32499    For shared mappings, we should conversely verify that changes get
32500    propagated back to all the places they're supposed to be.
32501
32502    Grep wants private fixed already mapped.
32503    The main things grep needs to know about mmap are:
32504    * does it exist and is it safe to write into the mmap'd area
32505    * how to use it (BSD variants)  */
32506
32507 #include <fcntl.h>
32508 #include <sys/mman.h>
32509
32510 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
32511 char *malloc ();
32512 #endif
32513
32514 /* This mess was copied from the GNU getpagesize.h.  */
32515 #ifndef HAVE_GETPAGESIZE
32516 /* Assume that all systems that can run configure have sys/param.h.  */
32517 # ifndef HAVE_SYS_PARAM_H
32518 #  define HAVE_SYS_PARAM_H 1
32519 # endif
32520
32521 # ifdef _SC_PAGESIZE
32522 #  define getpagesize() sysconf(_SC_PAGESIZE)
32523 # else /* no _SC_PAGESIZE */
32524 #  ifdef HAVE_SYS_PARAM_H
32525 #   include <sys/param.h>
32526 #   ifdef EXEC_PAGESIZE
32527 #    define getpagesize() EXEC_PAGESIZE
32528 #   else /* no EXEC_PAGESIZE */
32529 #    ifdef NBPG
32530 #     define getpagesize() NBPG * CLSIZE
32531 #     ifndef CLSIZE
32532 #      define CLSIZE 1
32533 #     endif /* no CLSIZE */
32534 #    else /* no NBPG */
32535 #     ifdef NBPC
32536 #      define getpagesize() NBPC
32537 #     else /* no NBPC */
32538 #      ifdef PAGESIZE
32539 #       define getpagesize() PAGESIZE
32540 #      endif /* PAGESIZE */
32541 #     endif /* no NBPC */
32542 #    endif /* no NBPG */
32543 #   endif /* no EXEC_PAGESIZE */
32544 #  else /* no HAVE_SYS_PARAM_H */
32545 #   define getpagesize() 8192   /* punt totally */
32546 #  endif /* no HAVE_SYS_PARAM_H */
32547 # endif /* no _SC_PAGESIZE */
32548
32549 #endif /* no HAVE_GETPAGESIZE */
32550
32551 int
32552 main ()
32553 {
32554   char *data, *data2, *data3;
32555   int i, pagesize;
32556   int fd;
32557
32558   pagesize = getpagesize ();
32559
32560   /* First, make a file with some known garbage in it. */
32561   data = (char *) malloc (pagesize);
32562   if (!data)
32563     return 1;
32564   for (i = 0; i < pagesize; ++i)
32565     *(data + i) = rand ();
32566   umask (0);
32567   fd = creat ("conftest.mmap", 0600);
32568   if (fd < 0)
32569     return 1;
32570   if (write (fd, data, pagesize) != pagesize)
32571     return 1;
32572   close (fd);
32573
32574   /* Next, try to mmap the file at a fixed address which already has
32575      something else allocated at it.  If we can, also make sure that
32576      we see the same garbage.  */
32577   fd = open ("conftest.mmap", O_RDWR);
32578   if (fd < 0)
32579     return 1;
32580   data2 = (char *) malloc (2 * pagesize);
32581   if (!data2)
32582     return 1;
32583   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
32584   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
32585                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
32586     return 1;
32587   for (i = 0; i < pagesize; ++i)
32588     if (*(data + i) != *(data2 + i))
32589       return 1;
32590
32591   /* Finally, make sure that changes to the mapped area do not
32592      percolate back to the file as seen by read().  (This is a bug on
32593      some variants of i386 svr4.0.)  */
32594   for (i = 0; i < pagesize; ++i)
32595     *(data2 + i) = *(data2 + i) + 1;
32596   data3 = (char *) malloc (pagesize);
32597   if (!data3)
32598     return 1;
32599   if (read (fd, data3, pagesize) != pagesize)
32600     return 1;
32601   for (i = 0; i < pagesize; ++i)
32602     if (*(data + i) != *(data3 + i))
32603       return 1;
32604   close (fd);
32605   return 0;
32606 }
32607 _ACEOF
32608 rm -f 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>&5
32617   ac_status=$?
32618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32620   { (case "(($ac_try" in
32621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32622   *) ac_try_echo=$ac_try;;
32623 esac
32624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32625 $as_echo "$ac_try_echo") >&5
32626   (eval "$ac_try") 2>&5
32627   ac_status=$?
32628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32629   (exit $ac_status); }; }; then
32630   ac_cv_func_mmap_fixed_mapped=yes
32631 else
32632   $as_echo "$as_me: program exited with status $ac_status" >&5
32633 $as_echo "$as_me: failed program was:" >&5
32634 sed 's/^/| /' conftest.$ac_ext >&5
32635
32636 ( exit $ac_status )
32637 ac_cv_func_mmap_fixed_mapped=no
32638 fi
32639 rm -rf conftest.dSYM
32640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32641 fi
32642
32643
32644 fi
32645 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
32646 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
32647 if test $ac_cv_func_mmap_fixed_mapped = yes; then
32648
32649 cat >>confdefs.h <<\_ACEOF
32650 #define HAVE_MMAP 1
32651 _ACEOF
32652
32653 fi
32654 rm -f conftest.mmap
32655
32656
32657
32658 for ac_func in shmget
32659 do
32660 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32661 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32662 $as_echo_n "checking for $ac_func... " >&6; }
32663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32664   $as_echo_n "(cached) " >&6
32665 else
32666   cat >conftest.$ac_ext <<_ACEOF
32667 /* confdefs.h.  */
32668 _ACEOF
32669 cat confdefs.h >>conftest.$ac_ext
32670 cat >>conftest.$ac_ext <<_ACEOF
32671 /* end confdefs.h.  */
32672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32674 #define $ac_func innocuous_$ac_func
32675
32676 /* System header to define __stub macros and hopefully few prototypes,
32677     which can conflict with char $ac_func (); below.
32678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32679     <limits.h> exists even on freestanding compilers.  */
32680
32681 #ifdef __STDC__
32682 # include <limits.h>
32683 #else
32684 # include <assert.h>
32685 #endif
32686
32687 #undef $ac_func
32688
32689 /* Override any GCC internal prototype to avoid an error.
32690    Use char because int might match the return type of a GCC
32691    builtin and then its argument prototype would still apply.  */
32692 #ifdef __cplusplus
32693 extern "C"
32694 #endif
32695 char $ac_func ();
32696 /* The GNU C library defines this for functions which it implements
32697     to always fail with ENOSYS.  Some functions are actually named
32698     something starting with __ and the normal name is an alias.  */
32699 #if defined __stub_$ac_func || defined __stub___$ac_func
32700 choke me
32701 #endif
32702
32703 int
32704 main ()
32705 {
32706 return $ac_func ();
32707   ;
32708   return 0;
32709 }
32710 _ACEOF
32711 rm -f conftest.$ac_objext conftest$ac_exeext
32712 if { (ac_try="$ac_link"
32713 case "(($ac_try" in
32714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32715   *) ac_try_echo=$ac_try;;
32716 esac
32717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32718 $as_echo "$ac_try_echo") >&5
32719   (eval "$ac_link") 2>conftest.er1
32720   ac_status=$?
32721   grep -v '^ *+' conftest.er1 >conftest.err
32722   rm -f conftest.er1
32723   cat conftest.err >&5
32724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32725   (exit $ac_status); } && {
32726          test -z "$ac_c_werror_flag" ||
32727          test ! -s conftest.err
32728        } && test -s conftest$ac_exeext && {
32729          test "$cross_compiling" = yes ||
32730          $as_test_x conftest$ac_exeext
32731        }; then
32732   eval "$as_ac_var=yes"
32733 else
32734   $as_echo "$as_me: failed program was:" >&5
32735 sed 's/^/| /' conftest.$ac_ext >&5
32736
32737         eval "$as_ac_var=no"
32738 fi
32739
32740 rm -rf conftest.dSYM
32741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32742       conftest$ac_exeext conftest.$ac_ext
32743 fi
32744 ac_res=`eval 'as_val=${'$as_ac_var'}
32745                  $as_echo "$as_val"'`
32746                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32747 $as_echo "$ac_res" >&6; }
32748 as_val=`eval 'as_val=${'$as_ac_var'}
32749                  $as_echo "$as_val"'`
32750    if test "x$as_val" = x""yes; then
32751   cat >>confdefs.h <<_ACEOF
32752 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32753 _ACEOF
32754
32755
32756
32757
32758
32759 for ac_header in sys/types.h \
32760             sys/ipc.h \
32761             sys/shm.h \
32762
32763 do
32764 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32766   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32767 $as_echo_n "checking for $ac_header... " >&6; }
32768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32769   $as_echo_n "(cached) " >&6
32770 fi
32771 ac_res=`eval 'as_val=${'$as_ac_Header'}
32772                  $as_echo "$as_val"'`
32773                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32774 $as_echo "$ac_res" >&6; }
32775 else
32776   # Is the header compilable?
32777 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32778 $as_echo_n "checking $ac_header usability... " >&6; }
32779 cat >conftest.$ac_ext <<_ACEOF
32780 /* confdefs.h.  */
32781 _ACEOF
32782 cat confdefs.h >>conftest.$ac_ext
32783 cat >>conftest.$ac_ext <<_ACEOF
32784 /* end confdefs.h.  */
32785 $ac_includes_default
32786 #include <$ac_header>
32787 _ACEOF
32788 rm -f conftest.$ac_objext
32789 if { (ac_try="$ac_compile"
32790 case "(($ac_try" in
32791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792   *) ac_try_echo=$ac_try;;
32793 esac
32794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32795 $as_echo "$ac_try_echo") >&5
32796   (eval "$ac_compile") 2>conftest.er1
32797   ac_status=$?
32798   grep -v '^ *+' conftest.er1 >conftest.err
32799   rm -f conftest.er1
32800   cat conftest.err >&5
32801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802   (exit $ac_status); } && {
32803          test -z "$ac_c_werror_flag" ||
32804          test ! -s conftest.err
32805        } && test -s conftest.$ac_objext; then
32806   ac_header_compiler=yes
32807 else
32808   $as_echo "$as_me: failed program was:" >&5
32809 sed 's/^/| /' conftest.$ac_ext >&5
32810
32811         ac_header_compiler=no
32812 fi
32813
32814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32815 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32816 $as_echo "$ac_header_compiler" >&6; }
32817
32818 # Is the header present?
32819 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32820 $as_echo_n "checking $ac_header presence... " >&6; }
32821 cat >conftest.$ac_ext <<_ACEOF
32822 /* confdefs.h.  */
32823 _ACEOF
32824 cat confdefs.h >>conftest.$ac_ext
32825 cat >>conftest.$ac_ext <<_ACEOF
32826 /* end confdefs.h.  */
32827 #include <$ac_header>
32828 _ACEOF
32829 if { (ac_try="$ac_cpp conftest.$ac_ext"
32830 case "(($ac_try" in
32831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32832   *) ac_try_echo=$ac_try;;
32833 esac
32834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32835 $as_echo "$ac_try_echo") >&5
32836   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32837   ac_status=$?
32838   grep -v '^ *+' conftest.er1 >conftest.err
32839   rm -f conftest.er1
32840   cat conftest.err >&5
32841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32842   (exit $ac_status); } >/dev/null && {
32843          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32844          test ! -s conftest.err
32845        }; then
32846   ac_header_preproc=yes
32847 else
32848   $as_echo "$as_me: failed program was:" >&5
32849 sed 's/^/| /' conftest.$ac_ext >&5
32850
32851   ac_header_preproc=no
32852 fi
32853
32854 rm -f conftest.err conftest.$ac_ext
32855 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32856 $as_echo "$ac_header_preproc" >&6; }
32857
32858 # So?  What about this header?
32859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32860   yes:no: )
32861     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32862 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32863     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32864 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32865     ac_header_preproc=yes
32866     ;;
32867   no:yes:* )
32868     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32869 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32870     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32871 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32872     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32873 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32874     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32875 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32876     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32877 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32878     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32879 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32880
32881     ;;
32882 esac
32883 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32884 $as_echo_n "checking for $ac_header... " >&6; }
32885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32886   $as_echo_n "(cached) " >&6
32887 else
32888   eval "$as_ac_Header=\$ac_header_preproc"
32889 fi
32890 ac_res=`eval 'as_val=${'$as_ac_Header'}
32891                  $as_echo "$as_val"'`
32892                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32893 $as_echo "$ac_res" >&6; }
32894
32895 fi
32896 as_val=`eval 'as_val=${'$as_ac_Header'}
32897                  $as_echo "$as_val"'`
32898    if test "x$as_val" = x""yes; then
32899   cat >>confdefs.h <<_ACEOF
32900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32901 _ACEOF
32902
32903 fi
32904
32905 done
32906
32907
32908         { $as_echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
32909 $as_echo_n "checking for shmdt() argument type... " >&6; }
32910 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
32911   $as_echo_n "(cached) " >&6
32912 else
32913
32914                 if test "$ac_cv_func_shmget" = yes; then
32915                     cat <<EOF >conftest.$ac_ext
32916 #include "confdefs.h"
32917 #ifdef HAVE_SYS_TYPES_H
32918 # include <sys/types.h>
32919 #endif
32920 #ifdef HAVE_SYS_IPC_H
32921 # include <sys/ipc.h>
32922 #endif
32923 #ifdef HAVE_SYS_SHM_H
32924 # include <sys/shm.h>
32925 #endif
32926
32927 #ifdef __cplusplus
32928 extern "C" void *shmat(int, void *, int);
32929 #else
32930 void *shmat();
32931 #endif
32932
32933 int main()
32934 {
32935     int i;
32936     return 0;
32937 }
32938 EOF
32939                     ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
32940                     if test $? = 0; then
32941                         amanda_cv_shmdt_arg_type=void
32942                     else
32943                         amanda_cv_shmdt_arg_type=char
32944                     fi
32945                     rm -f conftest*
32946                 else
32947                     amanda_cv_shmdt_arg_type=nothing
32948                 fi
32949
32950
32951 fi
32952 { $as_echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
32953 $as_echo "$amanda_cv_shmdt_arg_type" >&6; }
32954
32955 cat >>confdefs.h <<_ACEOF
32956 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
32957 _ACEOF
32958
32959
32960
32961             case "$FORCE_MMAP" in
32962             n | no)
32963
32964 cat >>confdefs.h <<\_ACEOF
32965 #define HAVE_SYSVSHM 1
32966 _ACEOF
32967
32968               ;;
32969             esac
32970
32971
32972 fi
32973 done
32974
32975
32976 ice_have_shmat=no
32977
32978 for ac_func in shmat
32979 do
32980 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32981 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32982 $as_echo_n "checking for $ac_func... " >&6; }
32983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32984   $as_echo_n "(cached) " >&6
32985 else
32986   cat >conftest.$ac_ext <<_ACEOF
32987 /* confdefs.h.  */
32988 _ACEOF
32989 cat confdefs.h >>conftest.$ac_ext
32990 cat >>conftest.$ac_ext <<_ACEOF
32991 /* end confdefs.h.  */
32992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32993    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32994 #define $ac_func innocuous_$ac_func
32995
32996 /* System header to define __stub macros and hopefully few prototypes,
32997     which can conflict with char $ac_func (); below.
32998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32999     <limits.h> exists even on freestanding compilers.  */
33000
33001 #ifdef __STDC__
33002 # include <limits.h>
33003 #else
33004 # include <assert.h>
33005 #endif
33006
33007 #undef $ac_func
33008
33009 /* Override any GCC internal prototype to avoid an error.
33010    Use char because int might match the return type of a GCC
33011    builtin and then its argument prototype would still apply.  */
33012 #ifdef __cplusplus
33013 extern "C"
33014 #endif
33015 char $ac_func ();
33016 /* The GNU C library defines this for functions which it implements
33017     to always fail with ENOSYS.  Some functions are actually named
33018     something starting with __ and the normal name is an alias.  */
33019 #if defined __stub_$ac_func || defined __stub___$ac_func
33020 choke me
33021 #endif
33022
33023 int
33024 main ()
33025 {
33026 return $ac_func ();
33027   ;
33028   return 0;
33029 }
33030 _ACEOF
33031 rm -f conftest.$ac_objext conftest$ac_exeext
33032 if { (ac_try="$ac_link"
33033 case "(($ac_try" in
33034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33035   *) ac_try_echo=$ac_try;;
33036 esac
33037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33038 $as_echo "$ac_try_echo") >&5
33039   (eval "$ac_link") 2>conftest.er1
33040   ac_status=$?
33041   grep -v '^ *+' conftest.er1 >conftest.err
33042   rm -f conftest.er1
33043   cat conftest.err >&5
33044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33045   (exit $ac_status); } && {
33046          test -z "$ac_c_werror_flag" ||
33047          test ! -s conftest.err
33048        } && test -s conftest$ac_exeext && {
33049          test "$cross_compiling" = yes ||
33050          $as_test_x conftest$ac_exeext
33051        }; then
33052   eval "$as_ac_var=yes"
33053 else
33054   $as_echo "$as_me: failed program was:" >&5
33055 sed 's/^/| /' conftest.$ac_ext >&5
33056
33057         eval "$as_ac_var=no"
33058 fi
33059
33060 rm -rf conftest.dSYM
33061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33062       conftest$ac_exeext conftest.$ac_ext
33063 fi
33064 ac_res=`eval 'as_val=${'$as_ac_var'}
33065                  $as_echo "$as_val"'`
33066                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33067 $as_echo "$ac_res" >&6; }
33068 as_val=`eval 'as_val=${'$as_ac_var'}
33069                  $as_echo "$as_val"'`
33070    if test "x$as_val" = x""yes; then
33071   cat >>confdefs.h <<_ACEOF
33072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33073 _ACEOF
33074  ice_have_shmat=yes
33075 fi
33076 done
33077
33078 if test "${ice_have_shmat}" = yes; then
33079 { $as_echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
33080 $as_echo_n "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
33081 if test "${ice_cv_have_shmat_decl+set}" = set; then
33082   $as_echo_n "(cached) " >&6
33083 else
33084
33085 ice_cv_have_shmat_decl=no
33086 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33087 ice_re_word='(^|[^a-zA-Z0-9_])'
33088 for header in sys/types.h sys/ipc.h sys/shm.h; do
33089 # Check for ordinary declaration
33090 cat >conftest.$ac_ext <<_ACEOF
33091 /* confdefs.h.  */
33092 _ACEOF
33093 cat confdefs.h >>conftest.$ac_ext
33094 cat >>conftest.$ac_ext <<_ACEOF
33095 /* end confdefs.h.  */
33096 #include <$header>
33097
33098 _ACEOF
33099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33100   $EGREP "${ice_re_word}shmat[  ]*\(" >/dev/null 2>&1; then
33101   ice_cv_have_shmat_decl=yes
33102 fi
33103 rm -f conftest*
33104
33105 if test "$ice_cv_have_shmat_decl" = yes; then
33106         break
33107 fi
33108 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33109 cat >conftest.$ac_ext <<_ACEOF
33110 /* confdefs.h.  */
33111 _ACEOF
33112 cat confdefs.h >>conftest.$ac_ext
33113 cat >>conftest.$ac_ext <<_ACEOF
33114 /* end confdefs.h.  */
33115 #include <$header>
33116
33117 _ACEOF
33118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33119   $EGREP "${ice_re_word}shmat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33120   ice_cv_have_shmat_decl=yes
33121 fi
33122 rm -f conftest*
33123
33124 if test "$ice_cv_have_shmat_decl" = yes; then
33125         break
33126 fi
33127 done
33128
33129 fi
33130
33131 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
33132 $as_echo "$ice_cv_have_shmat_decl" >&6; }
33133 if test "$ice_cv_have_shmat_decl" = yes; then
33134
33135 cat >>confdefs.h <<_ACEOF
33136 #define HAVE_SHMAT_DECL 1
33137 _ACEOF
33138
33139 fi
33140 fi
33141
33142
33143 ice_have_shmctl=no
33144
33145 for ac_func in shmctl
33146 do
33147 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33148 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33149 $as_echo_n "checking for $ac_func... " >&6; }
33150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33151   $as_echo_n "(cached) " >&6
33152 else
33153   cat >conftest.$ac_ext <<_ACEOF
33154 /* confdefs.h.  */
33155 _ACEOF
33156 cat confdefs.h >>conftest.$ac_ext
33157 cat >>conftest.$ac_ext <<_ACEOF
33158 /* end confdefs.h.  */
33159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33161 #define $ac_func innocuous_$ac_func
33162
33163 /* System header to define __stub macros and hopefully few prototypes,
33164     which can conflict with char $ac_func (); below.
33165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33166     <limits.h> exists even on freestanding compilers.  */
33167
33168 #ifdef __STDC__
33169 # include <limits.h>
33170 #else
33171 # include <assert.h>
33172 #endif
33173
33174 #undef $ac_func
33175
33176 /* Override any GCC internal prototype to avoid an error.
33177    Use char because int might match the return type of a GCC
33178    builtin and then its argument prototype would still apply.  */
33179 #ifdef __cplusplus
33180 extern "C"
33181 #endif
33182 char $ac_func ();
33183 /* The GNU C library defines this for functions which it implements
33184     to always fail with ENOSYS.  Some functions are actually named
33185     something starting with __ and the normal name is an alias.  */
33186 #if defined __stub_$ac_func || defined __stub___$ac_func
33187 choke me
33188 #endif
33189
33190 int
33191 main ()
33192 {
33193 return $ac_func ();
33194   ;
33195   return 0;
33196 }
33197 _ACEOF
33198 rm -f conftest.$ac_objext conftest$ac_exeext
33199 if { (ac_try="$ac_link"
33200 case "(($ac_try" in
33201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33202   *) ac_try_echo=$ac_try;;
33203 esac
33204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33205 $as_echo "$ac_try_echo") >&5
33206   (eval "$ac_link") 2>conftest.er1
33207   ac_status=$?
33208   grep -v '^ *+' conftest.er1 >conftest.err
33209   rm -f conftest.er1
33210   cat conftest.err >&5
33211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33212   (exit $ac_status); } && {
33213          test -z "$ac_c_werror_flag" ||
33214          test ! -s conftest.err
33215        } && test -s conftest$ac_exeext && {
33216          test "$cross_compiling" = yes ||
33217          $as_test_x conftest$ac_exeext
33218        }; then
33219   eval "$as_ac_var=yes"
33220 else
33221   $as_echo "$as_me: failed program was:" >&5
33222 sed 's/^/| /' conftest.$ac_ext >&5
33223
33224         eval "$as_ac_var=no"
33225 fi
33226
33227 rm -rf conftest.dSYM
33228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33229       conftest$ac_exeext conftest.$ac_ext
33230 fi
33231 ac_res=`eval 'as_val=${'$as_ac_var'}
33232                  $as_echo "$as_val"'`
33233                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33234 $as_echo "$ac_res" >&6; }
33235 as_val=`eval 'as_val=${'$as_ac_var'}
33236                  $as_echo "$as_val"'`
33237    if test "x$as_val" = x""yes; then
33238   cat >>confdefs.h <<_ACEOF
33239 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33240 _ACEOF
33241  ice_have_shmctl=yes
33242 fi
33243 done
33244
33245 if test "${ice_have_shmctl}" = yes; then
33246 { $as_echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
33247 $as_echo_n "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
33248 if test "${ice_cv_have_shmctl_decl+set}" = set; then
33249   $as_echo_n "(cached) " >&6
33250 else
33251
33252 ice_cv_have_shmctl_decl=no
33253 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33254 ice_re_word='(^|[^a-zA-Z0-9_])'
33255 for header in sys/types.h sys/ipc.h sys/shm.h; do
33256 # Check for ordinary declaration
33257 cat >conftest.$ac_ext <<_ACEOF
33258 /* confdefs.h.  */
33259 _ACEOF
33260 cat confdefs.h >>conftest.$ac_ext
33261 cat >>conftest.$ac_ext <<_ACEOF
33262 /* end confdefs.h.  */
33263 #include <$header>
33264
33265 _ACEOF
33266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33267   $EGREP "${ice_re_word}shmctl[         ]*\(" >/dev/null 2>&1; then
33268   ice_cv_have_shmctl_decl=yes
33269 fi
33270 rm -f conftest*
33271
33272 if test "$ice_cv_have_shmctl_decl" = yes; then
33273         break
33274 fi
33275 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33276 cat >conftest.$ac_ext <<_ACEOF
33277 /* confdefs.h.  */
33278 _ACEOF
33279 cat confdefs.h >>conftest.$ac_ext
33280 cat >>conftest.$ac_ext <<_ACEOF
33281 /* end confdefs.h.  */
33282 #include <$header>
33283
33284 _ACEOF
33285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33286   $EGREP "${ice_re_word}shmctl[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33287   ice_cv_have_shmctl_decl=yes
33288 fi
33289 rm -f conftest*
33290
33291 if test "$ice_cv_have_shmctl_decl" = yes; then
33292         break
33293 fi
33294 done
33295
33296 fi
33297
33298 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
33299 $as_echo "$ice_cv_have_shmctl_decl" >&6; }
33300 if test "$ice_cv_have_shmctl_decl" = yes; then
33301
33302 cat >>confdefs.h <<_ACEOF
33303 #define HAVE_SHMCTL_DECL 1
33304 _ACEOF
33305
33306 fi
33307 fi
33308
33309
33310 ice_have_shmdt=no
33311
33312 for ac_func in shmdt
33313 do
33314 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33315 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33316 $as_echo_n "checking for $ac_func... " >&6; }
33317 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33318   $as_echo_n "(cached) " >&6
33319 else
33320   cat >conftest.$ac_ext <<_ACEOF
33321 /* confdefs.h.  */
33322 _ACEOF
33323 cat confdefs.h >>conftest.$ac_ext
33324 cat >>conftest.$ac_ext <<_ACEOF
33325 /* end confdefs.h.  */
33326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33327    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33328 #define $ac_func innocuous_$ac_func
33329
33330 /* System header to define __stub macros and hopefully few prototypes,
33331     which can conflict with char $ac_func (); below.
33332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33333     <limits.h> exists even on freestanding compilers.  */
33334
33335 #ifdef __STDC__
33336 # include <limits.h>
33337 #else
33338 # include <assert.h>
33339 #endif
33340
33341 #undef $ac_func
33342
33343 /* Override any GCC internal prototype to avoid an error.
33344    Use char because int might match the return type of a GCC
33345    builtin and then its argument prototype would still apply.  */
33346 #ifdef __cplusplus
33347 extern "C"
33348 #endif
33349 char $ac_func ();
33350 /* The GNU C library defines this for functions which it implements
33351     to always fail with ENOSYS.  Some functions are actually named
33352     something starting with __ and the normal name is an alias.  */
33353 #if defined __stub_$ac_func || defined __stub___$ac_func
33354 choke me
33355 #endif
33356
33357 int
33358 main ()
33359 {
33360 return $ac_func ();
33361   ;
33362   return 0;
33363 }
33364 _ACEOF
33365 rm -f conftest.$ac_objext conftest$ac_exeext
33366 if { (ac_try="$ac_link"
33367 case "(($ac_try" in
33368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33369   *) ac_try_echo=$ac_try;;
33370 esac
33371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33372 $as_echo "$ac_try_echo") >&5
33373   (eval "$ac_link") 2>conftest.er1
33374   ac_status=$?
33375   grep -v '^ *+' conftest.er1 >conftest.err
33376   rm -f conftest.er1
33377   cat conftest.err >&5
33378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379   (exit $ac_status); } && {
33380          test -z "$ac_c_werror_flag" ||
33381          test ! -s conftest.err
33382        } && test -s conftest$ac_exeext && {
33383          test "$cross_compiling" = yes ||
33384          $as_test_x conftest$ac_exeext
33385        }; then
33386   eval "$as_ac_var=yes"
33387 else
33388   $as_echo "$as_me: failed program was:" >&5
33389 sed 's/^/| /' conftest.$ac_ext >&5
33390
33391         eval "$as_ac_var=no"
33392 fi
33393
33394 rm -rf conftest.dSYM
33395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33396       conftest$ac_exeext conftest.$ac_ext
33397 fi
33398 ac_res=`eval 'as_val=${'$as_ac_var'}
33399                  $as_echo "$as_val"'`
33400                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33401 $as_echo "$ac_res" >&6; }
33402 as_val=`eval 'as_val=${'$as_ac_var'}
33403                  $as_echo "$as_val"'`
33404    if test "x$as_val" = x""yes; then
33405   cat >>confdefs.h <<_ACEOF
33406 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33407 _ACEOF
33408  ice_have_shmdt=yes
33409 fi
33410 done
33411
33412 if test "${ice_have_shmdt}" = yes; then
33413 { $as_echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
33414 $as_echo_n "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
33415 if test "${ice_cv_have_shmdt_decl+set}" = set; then
33416   $as_echo_n "(cached) " >&6
33417 else
33418
33419 ice_cv_have_shmdt_decl=no
33420 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33421 ice_re_word='(^|[^a-zA-Z0-9_])'
33422 for header in sys/types.h sys/ipc.h sys/shm.h; do
33423 # Check for ordinary declaration
33424 cat >conftest.$ac_ext <<_ACEOF
33425 /* confdefs.h.  */
33426 _ACEOF
33427 cat confdefs.h >>conftest.$ac_ext
33428 cat >>conftest.$ac_ext <<_ACEOF
33429 /* end confdefs.h.  */
33430 #include <$header>
33431
33432 _ACEOF
33433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33434   $EGREP "${ice_re_word}shmdt[  ]*\(" >/dev/null 2>&1; then
33435   ice_cv_have_shmdt_decl=yes
33436 fi
33437 rm -f conftest*
33438
33439 if test "$ice_cv_have_shmdt_decl" = yes; then
33440         break
33441 fi
33442 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33443 cat >conftest.$ac_ext <<_ACEOF
33444 /* confdefs.h.  */
33445 _ACEOF
33446 cat confdefs.h >>conftest.$ac_ext
33447 cat >>conftest.$ac_ext <<_ACEOF
33448 /* end confdefs.h.  */
33449 #include <$header>
33450
33451 _ACEOF
33452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33453   $EGREP "${ice_re_word}shmdt[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33454   ice_cv_have_shmdt_decl=yes
33455 fi
33456 rm -f conftest*
33457
33458 if test "$ice_cv_have_shmdt_decl" = yes; then
33459         break
33460 fi
33461 done
33462
33463 fi
33464
33465 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
33466 $as_echo "$ice_cv_have_shmdt_decl" >&6; }
33467 if test "$ice_cv_have_shmdt_decl" = yes; then
33468
33469 cat >>confdefs.h <<_ACEOF
33470 #define HAVE_SHMDT_DECL 1
33471 _ACEOF
33472
33473 fi
33474 fi
33475
33476
33477 ice_have_shmget=no
33478
33479 for ac_func in shmget
33480 do
33481 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33482 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33483 $as_echo_n "checking for $ac_func... " >&6; }
33484 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33485   $as_echo_n "(cached) " >&6
33486 else
33487   cat >conftest.$ac_ext <<_ACEOF
33488 /* confdefs.h.  */
33489 _ACEOF
33490 cat confdefs.h >>conftest.$ac_ext
33491 cat >>conftest.$ac_ext <<_ACEOF
33492 /* end confdefs.h.  */
33493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33495 #define $ac_func innocuous_$ac_func
33496
33497 /* System header to define __stub macros and hopefully few prototypes,
33498     which can conflict with char $ac_func (); below.
33499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33500     <limits.h> exists even on freestanding compilers.  */
33501
33502 #ifdef __STDC__
33503 # include <limits.h>
33504 #else
33505 # include <assert.h>
33506 #endif
33507
33508 #undef $ac_func
33509
33510 /* Override any GCC internal prototype to avoid an error.
33511    Use char because int might match the return type of a GCC
33512    builtin and then its argument prototype would still apply.  */
33513 #ifdef __cplusplus
33514 extern "C"
33515 #endif
33516 char $ac_func ();
33517 /* The GNU C library defines this for functions which it implements
33518     to always fail with ENOSYS.  Some functions are actually named
33519     something starting with __ and the normal name is an alias.  */
33520 #if defined __stub_$ac_func || defined __stub___$ac_func
33521 choke me
33522 #endif
33523
33524 int
33525 main ()
33526 {
33527 return $ac_func ();
33528   ;
33529   return 0;
33530 }
33531 _ACEOF
33532 rm -f conftest.$ac_objext conftest$ac_exeext
33533 if { (ac_try="$ac_link"
33534 case "(($ac_try" in
33535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33536   *) ac_try_echo=$ac_try;;
33537 esac
33538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33539 $as_echo "$ac_try_echo") >&5
33540   (eval "$ac_link") 2>conftest.er1
33541   ac_status=$?
33542   grep -v '^ *+' conftest.er1 >conftest.err
33543   rm -f conftest.er1
33544   cat conftest.err >&5
33545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546   (exit $ac_status); } && {
33547          test -z "$ac_c_werror_flag" ||
33548          test ! -s conftest.err
33549        } && test -s conftest$ac_exeext && {
33550          test "$cross_compiling" = yes ||
33551          $as_test_x conftest$ac_exeext
33552        }; then
33553   eval "$as_ac_var=yes"
33554 else
33555   $as_echo "$as_me: failed program was:" >&5
33556 sed 's/^/| /' conftest.$ac_ext >&5
33557
33558         eval "$as_ac_var=no"
33559 fi
33560
33561 rm -rf conftest.dSYM
33562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33563       conftest$ac_exeext conftest.$ac_ext
33564 fi
33565 ac_res=`eval 'as_val=${'$as_ac_var'}
33566                  $as_echo "$as_val"'`
33567                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33568 $as_echo "$ac_res" >&6; }
33569 as_val=`eval 'as_val=${'$as_ac_var'}
33570                  $as_echo "$as_val"'`
33571    if test "x$as_val" = x""yes; then
33572   cat >>confdefs.h <<_ACEOF
33573 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33574 _ACEOF
33575  ice_have_shmget=yes
33576 fi
33577 done
33578
33579 if test "${ice_have_shmget}" = yes; then
33580 { $as_echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
33581 $as_echo_n "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
33582 if test "${ice_cv_have_shmget_decl+set}" = set; then
33583   $as_echo_n "(cached) " >&6
33584 else
33585
33586 ice_cv_have_shmget_decl=no
33587 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33588 ice_re_word='(^|[^a-zA-Z0-9_])'
33589 for header in sys/types.h sys/ipc.h sys/shm.h; do
33590 # Check for ordinary declaration
33591 cat >conftest.$ac_ext <<_ACEOF
33592 /* confdefs.h.  */
33593 _ACEOF
33594 cat confdefs.h >>conftest.$ac_ext
33595 cat >>conftest.$ac_ext <<_ACEOF
33596 /* end confdefs.h.  */
33597 #include <$header>
33598
33599 _ACEOF
33600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33601   $EGREP "${ice_re_word}shmget[         ]*\(" >/dev/null 2>&1; then
33602   ice_cv_have_shmget_decl=yes
33603 fi
33604 rm -f conftest*
33605
33606 if test "$ice_cv_have_shmget_decl" = yes; then
33607         break
33608 fi
33609 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33610 cat >conftest.$ac_ext <<_ACEOF
33611 /* confdefs.h.  */
33612 _ACEOF
33613 cat confdefs.h >>conftest.$ac_ext
33614 cat >>conftest.$ac_ext <<_ACEOF
33615 /* end confdefs.h.  */
33616 #include <$header>
33617
33618 _ACEOF
33619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33620   $EGREP "${ice_re_word}shmget[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33621   ice_cv_have_shmget_decl=yes
33622 fi
33623 rm -f conftest*
33624
33625 if test "$ice_cv_have_shmget_decl" = yes; then
33626         break
33627 fi
33628 done
33629
33630 fi
33631
33632 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
33633 $as_echo "$ice_cv_have_shmget_decl" >&6; }
33634 if test "$ice_cv_have_shmget_decl" = yes; then
33635
33636 cat >>confdefs.h <<_ACEOF
33637 #define HAVE_SHMGET_DECL 1
33638 _ACEOF
33639
33640 fi
33641 fi
33642
33643
33644     if test "x$ac_cv_func_mmap_fixed_mapped" != xyes; then
33645         case "$FORCE_MMAP" in
33646         n | no)
33647             if test "x$ac_cv_func_shmget" != xyes; then
33648
33649     { $as_echo "$as_me:$LINENO: WARNING: Neither shmget() nor mmap() found. This system will not support the Amanda server." >&5
33650 $as_echo "$as_me: WARNING: Neither shmget() nor mmap() found. This system will not support the Amanda server." >&2;}
33651
33652
33653     cat <<AAW_EOF >>config.warnings
33654 Neither shmget() nor mmap() found. This system will not support the Amanda server.
33655 AAW_EOF
33656
33657
33658                 NO_SERVER_MODE=true
33659             fi
33660           ;;
33661         y | ye | yes)
33662
33663     { $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
33664 $as_echo "$as_me: WARNING: --with-mmap used on a system with no mmap() support.  This system will not support the Amanda server." >&2;}
33665
33666
33667     cat <<AAW_EOF >>config.warnings
33668 --with-mmap used on a system with no mmap() support.  This system will not support the Amanda server.
33669 AAW_EOF
33670
33671
33672             NO_SERVER_MODE=true
33673           ;;
33674         esac
33675     fi
33676
33677
33678
33679
33680
33681
33682
33683 ac_header_dirent=no
33684 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
33685   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
33686 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
33687 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
33688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33689   $as_echo_n "(cached) " >&6
33690 else
33691   cat >conftest.$ac_ext <<_ACEOF
33692 /* confdefs.h.  */
33693 _ACEOF
33694 cat confdefs.h >>conftest.$ac_ext
33695 cat >>conftest.$ac_ext <<_ACEOF
33696 /* end confdefs.h.  */
33697 #include <sys/types.h>
33698 #include <$ac_hdr>
33699
33700 int
33701 main ()
33702 {
33703 if ((DIR *) 0)
33704 return 0;
33705   ;
33706   return 0;
33707 }
33708 _ACEOF
33709 rm -f conftest.$ac_objext
33710 if { (ac_try="$ac_compile"
33711 case "(($ac_try" in
33712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33713   *) ac_try_echo=$ac_try;;
33714 esac
33715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33716 $as_echo "$ac_try_echo") >&5
33717   (eval "$ac_compile") 2>conftest.er1
33718   ac_status=$?
33719   grep -v '^ *+' conftest.er1 >conftest.err
33720   rm -f conftest.er1
33721   cat conftest.err >&5
33722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33723   (exit $ac_status); } && {
33724          test -z "$ac_c_werror_flag" ||
33725          test ! -s conftest.err
33726        } && test -s conftest.$ac_objext; then
33727   eval "$as_ac_Header=yes"
33728 else
33729   $as_echo "$as_me: failed program was:" >&5
33730 sed 's/^/| /' conftest.$ac_ext >&5
33731
33732         eval "$as_ac_Header=no"
33733 fi
33734
33735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33736 fi
33737 ac_res=`eval 'as_val=${'$as_ac_Header'}
33738                  $as_echo "$as_val"'`
33739                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33740 $as_echo "$ac_res" >&6; }
33741 as_val=`eval 'as_val=${'$as_ac_Header'}
33742                  $as_echo "$as_val"'`
33743    if test "x$as_val" = x""yes; then
33744   cat >>confdefs.h <<_ACEOF
33745 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
33746 _ACEOF
33747
33748 ac_header_dirent=$ac_hdr; break
33749 fi
33750
33751 done
33752 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
33753 if test $ac_header_dirent = dirent.h; then
33754   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
33755 $as_echo_n "checking for library containing opendir... " >&6; }
33756 if test "${ac_cv_search_opendir+set}" = set; then
33757   $as_echo_n "(cached) " >&6
33758 else
33759   ac_func_search_save_LIBS=$LIBS
33760 cat >conftest.$ac_ext <<_ACEOF
33761 /* confdefs.h.  */
33762 _ACEOF
33763 cat confdefs.h >>conftest.$ac_ext
33764 cat >>conftest.$ac_ext <<_ACEOF
33765 /* end confdefs.h.  */
33766
33767 /* Override any GCC internal prototype to avoid an error.
33768    Use char because int might match the return type of a GCC
33769    builtin and then its argument prototype would still apply.  */
33770 #ifdef __cplusplus
33771 extern "C"
33772 #endif
33773 char opendir ();
33774 int
33775 main ()
33776 {
33777 return opendir ();
33778   ;
33779   return 0;
33780 }
33781 _ACEOF
33782 for ac_lib in '' dir; do
33783   if test -z "$ac_lib"; then
33784     ac_res="none required"
33785   else
33786     ac_res=-l$ac_lib
33787     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33788   fi
33789   rm -f conftest.$ac_objext conftest$ac_exeext
33790 if { (ac_try="$ac_link"
33791 case "(($ac_try" in
33792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33793   *) ac_try_echo=$ac_try;;
33794 esac
33795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33796 $as_echo "$ac_try_echo") >&5
33797   (eval "$ac_link") 2>conftest.er1
33798   ac_status=$?
33799   grep -v '^ *+' conftest.er1 >conftest.err
33800   rm -f conftest.er1
33801   cat conftest.err >&5
33802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33803   (exit $ac_status); } && {
33804          test -z "$ac_c_werror_flag" ||
33805          test ! -s conftest.err
33806        } && test -s conftest$ac_exeext && {
33807          test "$cross_compiling" = yes ||
33808          $as_test_x conftest$ac_exeext
33809        }; then
33810   ac_cv_search_opendir=$ac_res
33811 else
33812   $as_echo "$as_me: failed program was:" >&5
33813 sed 's/^/| /' conftest.$ac_ext >&5
33814
33815
33816 fi
33817
33818 rm -rf conftest.dSYM
33819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33820       conftest$ac_exeext
33821   if test "${ac_cv_search_opendir+set}" = set; then
33822   break
33823 fi
33824 done
33825 if test "${ac_cv_search_opendir+set}" = set; then
33826   :
33827 else
33828   ac_cv_search_opendir=no
33829 fi
33830 rm conftest.$ac_ext
33831 LIBS=$ac_func_search_save_LIBS
33832 fi
33833 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
33834 $as_echo "$ac_cv_search_opendir" >&6; }
33835 ac_res=$ac_cv_search_opendir
33836 if test "$ac_res" != no; then
33837   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33838
33839 fi
33840
33841 else
33842   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
33843 $as_echo_n "checking for library containing opendir... " >&6; }
33844 if test "${ac_cv_search_opendir+set}" = set; then
33845   $as_echo_n "(cached) " >&6
33846 else
33847   ac_func_search_save_LIBS=$LIBS
33848 cat >conftest.$ac_ext <<_ACEOF
33849 /* confdefs.h.  */
33850 _ACEOF
33851 cat confdefs.h >>conftest.$ac_ext
33852 cat >>conftest.$ac_ext <<_ACEOF
33853 /* end confdefs.h.  */
33854
33855 /* Override any GCC internal prototype to avoid an error.
33856    Use char because int might match the return type of a GCC
33857    builtin and then its argument prototype would still apply.  */
33858 #ifdef __cplusplus
33859 extern "C"
33860 #endif
33861 char opendir ();
33862 int
33863 main ()
33864 {
33865 return opendir ();
33866   ;
33867   return 0;
33868 }
33869 _ACEOF
33870 for ac_lib in '' x; do
33871   if test -z "$ac_lib"; then
33872     ac_res="none required"
33873   else
33874     ac_res=-l$ac_lib
33875     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33876   fi
33877   rm -f conftest.$ac_objext conftest$ac_exeext
33878 if { (ac_try="$ac_link"
33879 case "(($ac_try" in
33880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33881   *) ac_try_echo=$ac_try;;
33882 esac
33883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33884 $as_echo "$ac_try_echo") >&5
33885   (eval "$ac_link") 2>conftest.er1
33886   ac_status=$?
33887   grep -v '^ *+' conftest.er1 >conftest.err
33888   rm -f conftest.er1
33889   cat conftest.err >&5
33890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33891   (exit $ac_status); } && {
33892          test -z "$ac_c_werror_flag" ||
33893          test ! -s conftest.err
33894        } && test -s conftest$ac_exeext && {
33895          test "$cross_compiling" = yes ||
33896          $as_test_x conftest$ac_exeext
33897        }; then
33898   ac_cv_search_opendir=$ac_res
33899 else
33900   $as_echo "$as_me: failed program was:" >&5
33901 sed 's/^/| /' conftest.$ac_ext >&5
33902
33903
33904 fi
33905
33906 rm -rf conftest.dSYM
33907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33908       conftest$ac_exeext
33909   if test "${ac_cv_search_opendir+set}" = set; then
33910   break
33911 fi
33912 done
33913 if test "${ac_cv_search_opendir+set}" = set; then
33914   :
33915 else
33916   ac_cv_search_opendir=no
33917 fi
33918 rm conftest.$ac_ext
33919 LIBS=$ac_func_search_save_LIBS
33920 fi
33921 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
33922 $as_echo "$ac_cv_search_opendir" >&6; }
33923 ac_res=$ac_cv_search_opendir
33924 if test "$ac_res" != no; then
33925   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33926
33927 fi
33928
33929 fi
33930
33931
33932     # include the dirent headers as described in the autoconf documentation.
33933     { $as_echo "$as_me:$LINENO: checking whether readdir is declared" >&5
33934 $as_echo_n "checking whether readdir is declared... " >&6; }
33935 if test "${ac_cv_have_decl_readdir+set}" = set; then
33936   $as_echo_n "(cached) " >&6
33937 else
33938   cat >conftest.$ac_ext <<_ACEOF
33939 /* confdefs.h.  */
33940 _ACEOF
33941 cat confdefs.h >>conftest.$ac_ext
33942 cat >>conftest.$ac_ext <<_ACEOF
33943 /* end confdefs.h.  */
33944
33945 #if HAVE_DIRENT_H
33946 # include <dirent.h>
33947 # define NAMLEN(dirent) strlen((dirent)->d_name)
33948 #else
33949 # define dirent direct
33950 # define NAMLEN(dirent) (dirent)->d_namlen
33951 # if HAVE_SYS_NDIR_H
33952 #  include <sys/ndir.h>
33953 # endif
33954 # if HAVE_SYS_DIR_H
33955 #  include <sys/dir.h>
33956 # endif
33957 # if HAVE_NDIR_H
33958 #  include <ndir.h>
33959 # endif
33960 #endif
33961
33962
33963 int
33964 main ()
33965 {
33966 #ifndef readdir
33967   (void) readdir;
33968 #endif
33969
33970   ;
33971   return 0;
33972 }
33973 _ACEOF
33974 rm -f conftest.$ac_objext
33975 if { (ac_try="$ac_compile"
33976 case "(($ac_try" in
33977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33978   *) ac_try_echo=$ac_try;;
33979 esac
33980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33981 $as_echo "$ac_try_echo") >&5
33982   (eval "$ac_compile") 2>conftest.er1
33983   ac_status=$?
33984   grep -v '^ *+' conftest.er1 >conftest.err
33985   rm -f conftest.er1
33986   cat conftest.err >&5
33987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33988   (exit $ac_status); } && {
33989          test -z "$ac_c_werror_flag" ||
33990          test ! -s conftest.err
33991        } && test -s conftest.$ac_objext; then
33992   ac_cv_have_decl_readdir=yes
33993 else
33994   $as_echo "$as_me: failed program was:" >&5
33995 sed 's/^/| /' conftest.$ac_ext >&5
33996
33997         ac_cv_have_decl_readdir=no
33998 fi
33999
34000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34001 fi
34002 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir" >&5
34003 $as_echo "$ac_cv_have_decl_readdir" >&6; }
34004 if test "x$ac_cv_have_decl_readdir" = x""yes; then
34005
34006 cat >>confdefs.h <<_ACEOF
34007 #define HAVE_DECL_READDIR 1
34008 _ACEOF
34009
34010
34011 else
34012   cat >>confdefs.h <<_ACEOF
34013 #define HAVE_DECL_READDIR 0
34014 _ACEOF
34015
34016
34017 fi
34018 { $as_echo "$as_me:$LINENO: checking whether readdir_r is declared" >&5
34019 $as_echo_n "checking whether readdir_r is declared... " >&6; }
34020 if test "${ac_cv_have_decl_readdir_r+set}" = set; then
34021   $as_echo_n "(cached) " >&6
34022 else
34023   cat >conftest.$ac_ext <<_ACEOF
34024 /* confdefs.h.  */
34025 _ACEOF
34026 cat confdefs.h >>conftest.$ac_ext
34027 cat >>conftest.$ac_ext <<_ACEOF
34028 /* end confdefs.h.  */
34029
34030 #if HAVE_DIRENT_H
34031 # include <dirent.h>
34032 # define NAMLEN(dirent) strlen((dirent)->d_name)
34033 #else
34034 # define dirent direct
34035 # define NAMLEN(dirent) (dirent)->d_namlen
34036 # if HAVE_SYS_NDIR_H
34037 #  include <sys/ndir.h>
34038 # endif
34039 # if HAVE_SYS_DIR_H
34040 #  include <sys/dir.h>
34041 # endif
34042 # if HAVE_NDIR_H
34043 #  include <ndir.h>
34044 # endif
34045 #endif
34046
34047
34048 int
34049 main ()
34050 {
34051 #ifndef readdir_r
34052   (void) readdir_r;
34053 #endif
34054
34055   ;
34056   return 0;
34057 }
34058 _ACEOF
34059 rm -f conftest.$ac_objext
34060 if { (ac_try="$ac_compile"
34061 case "(($ac_try" in
34062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34063   *) ac_try_echo=$ac_try;;
34064 esac
34065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34066 $as_echo "$ac_try_echo") >&5
34067   (eval "$ac_compile") 2>conftest.er1
34068   ac_status=$?
34069   grep -v '^ *+' conftest.er1 >conftest.err
34070   rm -f conftest.er1
34071   cat conftest.err >&5
34072   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34073   (exit $ac_status); } && {
34074          test -z "$ac_c_werror_flag" ||
34075          test ! -s conftest.err
34076        } && test -s conftest.$ac_objext; then
34077   ac_cv_have_decl_readdir_r=yes
34078 else
34079   $as_echo "$as_me: failed program was:" >&5
34080 sed 's/^/| /' conftest.$ac_ext >&5
34081
34082         ac_cv_have_decl_readdir_r=no
34083 fi
34084
34085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34086 fi
34087 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir_r" >&5
34088 $as_echo "$ac_cv_have_decl_readdir_r" >&6; }
34089 if test "x$ac_cv_have_decl_readdir_r" = x""yes; then
34090
34091 cat >>confdefs.h <<_ACEOF
34092 #define HAVE_DECL_READDIR_R 1
34093 _ACEOF
34094
34095
34096 else
34097   cat >>confdefs.h <<_ACEOF
34098 #define HAVE_DECL_READDIR_R 0
34099 _ACEOF
34100
34101
34102 fi
34103 { $as_echo "$as_me:$LINENO: checking whether readdir64 is declared" >&5
34104 $as_echo_n "checking whether readdir64 is declared... " >&6; }
34105 if test "${ac_cv_have_decl_readdir64+set}" = set; then
34106   $as_echo_n "(cached) " >&6
34107 else
34108   cat >conftest.$ac_ext <<_ACEOF
34109 /* confdefs.h.  */
34110 _ACEOF
34111 cat confdefs.h >>conftest.$ac_ext
34112 cat >>conftest.$ac_ext <<_ACEOF
34113 /* end confdefs.h.  */
34114
34115 #if HAVE_DIRENT_H
34116 # include <dirent.h>
34117 # define NAMLEN(dirent) strlen((dirent)->d_name)
34118 #else
34119 # define dirent direct
34120 # define NAMLEN(dirent) (dirent)->d_namlen
34121 # if HAVE_SYS_NDIR_H
34122 #  include <sys/ndir.h>
34123 # endif
34124 # if HAVE_SYS_DIR_H
34125 #  include <sys/dir.h>
34126 # endif
34127 # if HAVE_NDIR_H
34128 #  include <ndir.h>
34129 # endif
34130 #endif
34131
34132
34133 int
34134 main ()
34135 {
34136 #ifndef readdir64
34137   (void) readdir64;
34138 #endif
34139
34140   ;
34141   return 0;
34142 }
34143 _ACEOF
34144 rm -f conftest.$ac_objext
34145 if { (ac_try="$ac_compile"
34146 case "(($ac_try" in
34147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34148   *) ac_try_echo=$ac_try;;
34149 esac
34150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34151 $as_echo "$ac_try_echo") >&5
34152   (eval "$ac_compile") 2>conftest.er1
34153   ac_status=$?
34154   grep -v '^ *+' conftest.er1 >conftest.err
34155   rm -f conftest.er1
34156   cat conftest.err >&5
34157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34158   (exit $ac_status); } && {
34159          test -z "$ac_c_werror_flag" ||
34160          test ! -s conftest.err
34161        } && test -s conftest.$ac_objext; then
34162   ac_cv_have_decl_readdir64=yes
34163 else
34164   $as_echo "$as_me: failed program was:" >&5
34165 sed 's/^/| /' conftest.$ac_ext >&5
34166
34167         ac_cv_have_decl_readdir64=no
34168 fi
34169
34170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34171 fi
34172 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64" >&5
34173 $as_echo "$ac_cv_have_decl_readdir64" >&6; }
34174 if test "x$ac_cv_have_decl_readdir64" = x""yes; then
34175
34176 cat >>confdefs.h <<_ACEOF
34177 #define HAVE_DECL_READDIR64 1
34178 _ACEOF
34179
34180
34181 else
34182   cat >>confdefs.h <<_ACEOF
34183 #define HAVE_DECL_READDIR64 0
34184 _ACEOF
34185
34186
34187 fi
34188 { $as_echo "$as_me:$LINENO: checking whether readdir64_r is declared" >&5
34189 $as_echo_n "checking whether readdir64_r is declared... " >&6; }
34190 if test "${ac_cv_have_decl_readdir64_r+set}" = set; then
34191   $as_echo_n "(cached) " >&6
34192 else
34193   cat >conftest.$ac_ext <<_ACEOF
34194 /* confdefs.h.  */
34195 _ACEOF
34196 cat confdefs.h >>conftest.$ac_ext
34197 cat >>conftest.$ac_ext <<_ACEOF
34198 /* end confdefs.h.  */
34199
34200 #if HAVE_DIRENT_H
34201 # include <dirent.h>
34202 # define NAMLEN(dirent) strlen((dirent)->d_name)
34203 #else
34204 # define dirent direct
34205 # define NAMLEN(dirent) (dirent)->d_namlen
34206 # if HAVE_SYS_NDIR_H
34207 #  include <sys/ndir.h>
34208 # endif
34209 # if HAVE_SYS_DIR_H
34210 #  include <sys/dir.h>
34211 # endif
34212 # if HAVE_NDIR_H
34213 #  include <ndir.h>
34214 # endif
34215 #endif
34216
34217
34218 int
34219 main ()
34220 {
34221 #ifndef readdir64_r
34222   (void) readdir64_r;
34223 #endif
34224
34225   ;
34226   return 0;
34227 }
34228 _ACEOF
34229 rm -f conftest.$ac_objext
34230 if { (ac_try="$ac_compile"
34231 case "(($ac_try" in
34232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34233   *) ac_try_echo=$ac_try;;
34234 esac
34235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34236 $as_echo "$ac_try_echo") >&5
34237   (eval "$ac_compile") 2>conftest.er1
34238   ac_status=$?
34239   grep -v '^ *+' conftest.er1 >conftest.err
34240   rm -f conftest.er1
34241   cat conftest.err >&5
34242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34243   (exit $ac_status); } && {
34244          test -z "$ac_c_werror_flag" ||
34245          test ! -s conftest.err
34246        } && test -s conftest.$ac_objext; then
34247   ac_cv_have_decl_readdir64_r=yes
34248 else
34249   $as_echo "$as_me: failed program was:" >&5
34250 sed 's/^/| /' conftest.$ac_ext >&5
34251
34252         ac_cv_have_decl_readdir64_r=no
34253 fi
34254
34255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34256 fi
34257 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64_r" >&5
34258 $as_echo "$ac_cv_have_decl_readdir64_r" >&6; }
34259 if test "x$ac_cv_have_decl_readdir64_r" = x""yes; then
34260
34261 cat >>confdefs.h <<_ACEOF
34262 #define HAVE_DECL_READDIR64_R 1
34263 _ACEOF
34264
34265
34266 else
34267   cat >>confdefs.h <<_ACEOF
34268 #define HAVE_DECL_READDIR64_R 0
34269 _ACEOF
34270
34271
34272 fi
34273
34274
34275
34276
34277     # disk device prefixes
34278     { $as_echo "$as_me:$LINENO: checking disk device prefixes" >&5
34279 $as_echo_n "checking disk device prefixes... " >&6; }
34280
34281     # Use df to find the mount point for the root filesystem.  Use
34282     # the positional parameters to find the particular line from df
34283     # that contains the root paritition.  We put it in a subshell so
34284     # that the original positional parameters are not messed with.
34285     dfline=`(
34286         df / | while read line; do
34287             set -- $line
34288                     while test $# -gt 0; do
34289                 if test "x$1" = "x/"; then
34290                     echo $line
34291                     break 2
34292                 fi
34293                 shift
34294             done
34295         done
34296     ) | sed 's/(//' | sed 's/)//' `
34297
34298     # Search for the mount point by using expr to find the parameter
34299     # with dev in it.
34300     mount=`(
34301         set -- $dfline
34302                 while test $# -gt 0; do
34303             if expr "$1" : '.*dev' >/dev/null 2>&1; then
34304                 echo $1
34305                 break
34306             fi
34307             shift
34308         done
34309     )`
34310
34311     # get any system-specific configuration information
34312     case "$host" in
34313         *-hp-*)
34314             CLIENT_SCRIPTS_OPT=amhpfixdevs
34315             case $mount in
34316                 /dev/vg*)
34317
34318     { $as_echo "$as_me:$LINENO: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&5
34319 $as_echo "$as_me: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&2;}
34320
34321
34322     cat <<AAW_EOF >>config.warnings
34323 Run amhpfixdevs on HP-UX systems using /dev/vg??.
34324 AAW_EOF
34325
34326
34327                     ;;
34328             esac
34329             ;;
34330         *-sni-sysv4)
34331             DEV_PREFIX=/dev/dsk/
34332             RDEV_PREFIX=/dev/rdsk/
34333             CLIENT_SCRIPTS_OPT=amsinixfixdevs
34334             if ! test -d /dev/dsk; then
34335
34336     { $as_echo "$as_me:$LINENO: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&5
34337 $as_echo "$as_me: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&2;}
34338
34339
34340     cat <<AAW_EOF >>config.warnings
34341 Run amsinixfixdevs on Sinix systems using VxFS.
34342 AAW_EOF
34343
34344
34345             fi
34346             ;;
34347         *-sco3.2v4*)
34348             DEV_PREFIX=/dev/
34349             RDEV_PREFIX=/dev/
34350             ;;
34351         *)
34352             CLIENT_SCRIPTS_OPT=
34353             ;;
34354     esac
34355
34356     if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
34357         { $as_echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
34358 $as_echo "(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6; }
34359     else
34360         if test -d /dev/dsk; then
34361             DEV_PREFIX=/dev/dsk/
34362             if test -d /dev/rdsk; then
34363                 RDEV_PREFIX=/dev/rdsk/
34364             else
34365                 RDEV_PREFIX=/dev/dsk/
34366             fi
34367         elif test -d /dev; then
34368             DEV_PREFIX=/dev/
34369
34370             # Some systems, notably Linux, do not have raw disk devices
34371             # names.  Check this by trying to see if a raw disk device name
34372             # exists using the normal raw device path prepended to the
34373             # mount point of the root filesystem.
34374             if test "$mount"; then
34375                 dev_name="/dev/r`basename $mount`"
34376                 if test -b $dev_name -o -c $dev_name; then
34377                     RDEV_PREFIX=/dev/r
34378                 else
34379                     RDEV_PREFIX=/dev/
34380                 fi
34381             else
34382                 RDEV_PREFIX=/dev/r
34383             fi
34384         else
34385             # just fake it..
34386             DEV_PREFIX=/
34387             RDEV_PREFIX=/
34388         fi
34389         { $as_echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
34390 $as_echo "$DEV_PREFIX - $RDEV_PREFIX" >&6; }
34391     fi
34392
34393
34394 cat >>confdefs.h <<_ACEOF
34395 #define DEV_PREFIX "${DEV_PREFIX}"
34396 _ACEOF
34397
34398
34399 cat >>confdefs.h <<_ACEOF
34400 #define RDEV_PREFIX "${RDEV_PREFIX}"
34401 _ACEOF
34402
34403
34404
34405
34406     case "$host" in
34407         *-dec-osf*)
34408                     ;;
34409         *-dg-*)
34410                     ;;
34411         *-netbsd*)
34412                     ;;
34413         *-freebsd*)
34414                     ;;
34415         *-openbsd*)
34416                     ;;
34417         *-hp-*)
34418                     case "$CC" in
34419                         *gcc*)
34420                             CPPFLAGS="$CPPFLAGS -D__STDC_EXT__"
34421
34422                             ;;
34423                         *cc*)
34424                             CFLAGS="$CFLAGS -Ae"
34425
34426                             ;;
34427                     esac
34428                     ;;
34429         *-ibm-aix*)
34430                     ;;
34431         m88k-motorola-sysv4)
34432                     ;;
34433         *-nextstep3)
34434                     ;;
34435         *-pc-bsdi*)
34436                     ;;
34437         *-pc-linux-*)
34438                     ;;
34439         *-redhat-linux-*)
34440                     ;;
34441         *-suse-linux-*)
34442                     ;;
34443         x86_64-*-linux-*)
34444                     ;;
34445         alpha*-*-linux-*)
34446                     ;;
34447         sparc*-*-linux-*)
34448                     ;;
34449         powerpc-*-linux-*)
34450                     ;;
34451         *-sgi-irix3*)
34452                     # The old cc won't work!
34453                     if test "x$GCC" != "xyes"; then
34454                         { { $as_echo "$as_me:$LINENO: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&5
34455 $as_echo "$as_me: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&2;}
34456    { (exit 1); exit 1; }; }
34457                     fi
34458                     ;;
34459         *-sgi-irix4*)
34460                     ;;
34461         *-sgi-irix5*)
34462                     ;;
34463         *-sgi-irix6*)
34464                     ;;
34465         *-solaris2*)
34466                     ;;
34467         *-sun-sunos4.1*)
34468                     ;;
34469         *-ultrix*)
34470                     ;;
34471         *-sysv4.2uw2*)
34472                     ;;
34473         *-sco3.2v5*)
34474                     ;;
34475         i386-pc-isc4*)
34476                     ;;
34477         *-sni-sysv4)
34478                     ;;
34479         *-pc-cygwin)
34480
34481 cat >>confdefs.h <<\_ACEOF
34482 #define IGNORE_TAR_ERRORS 1
34483 _ACEOF
34484
34485                     # Cygwin needs PATH to find cygwin1.dll
34486
34487 cat >>confdefs.h <<\_ACEOF
34488 #define NEED_PATH_ENV 1
34489 _ACEOF
34490
34491
34492 cat >>confdefs.h <<\_ACEOF
34493 #define IGNORE_FSTAB 1
34494 _ACEOF
34495
34496                     LDFLAGS="$LDFLAGS -Wl,-enable-runtime-pseudo-reloc -no-undefined"
34497
34498                     ;;
34499         *-apple-darwin7*) # MacOS X 10.3.* (Panther)
34500                     ;;
34501         *-apple-darwin8*) # MacOS X 10.4.* (Tiger)
34502                     ;;
34503         *-apple-darwin9*) # MacOS X 10.5.* (Leopard)
34504                     ;;
34505       *)
34506
34507
34508     cat <<AAW_EOF >>config.warnings
34509 *****
34510 This machine, target type $host, is not known to be fully supported
34511 by this configure script.  If the installation of Amanda on this system
34512 succeeds or needed any patches, please email amanda-hackers@amanda.org
34513 with the patches or an indication of the sucess or failure of the
34514 Amanda installation on your system.
34515 *****
34516 AAW_EOF
34517
34518                     ;;
34519     esac
34520
34521
34522
34523
34524
34525   prefix_NONE=
34526   exec_prefix_NONE=
34527   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
34528   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
34529   eval ac_define_dir="\"$bindir\""
34530   eval ac_define_dir="\"$ac_define_dir\""
34531   bindir="$ac_define_dir"
34532
34533
34534 cat >>confdefs.h <<_ACEOF
34535 #define bindir "$ac_define_dir"
34536 _ACEOF
34537
34538   test "$prefix_NONE" && prefix=NONE
34539   test "$exec_prefix_NONE" && exec_prefix=NONE
34540
34541
34542
34543   prefix_NONE=
34544   exec_prefix_NONE=
34545   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
34546   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
34547   eval ac_define_dir="\"$sbindir\""
34548   eval ac_define_dir="\"$ac_define_dir\""
34549   sbindir="$ac_define_dir"
34550
34551
34552 cat >>confdefs.h <<_ACEOF
34553 #define sbindir "$ac_define_dir"
34554 _ACEOF
34555
34556   test "$prefix_NONE" && prefix=NONE
34557   test "$exec_prefix_NONE" && exec_prefix=NONE
34558
34559
34560
34561   prefix_NONE=
34562   exec_prefix_NONE=
34563   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
34564   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
34565   eval ac_define_dir="\"$libexecdir\""
34566   eval ac_define_dir="\"$ac_define_dir\""
34567   libexecdir="$ac_define_dir"
34568
34569
34570 cat >>confdefs.h <<_ACEOF
34571 #define libexecdir "$ac_define_dir"
34572 _ACEOF
34573
34574   test "$prefix_NONE" && prefix=NONE
34575   test "$exec_prefix_NONE" && exec_prefix=NONE
34576
34577
34578
34579   prefix_NONE=
34580   exec_prefix_NONE=
34581   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
34582   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
34583   eval ac_define_dir="\"$mandir\""
34584   eval ac_define_dir="\"$ac_define_dir\""
34585   mandir="$ac_define_dir"
34586
34587
34588 cat >>confdefs.h <<_ACEOF
34589 #define mandir "$ac_define_dir"
34590 _ACEOF
34591
34592   test "$prefix_NONE" && prefix=NONE
34593   test "$exec_prefix_NONE" && exec_prefix=NONE
34594
34595
34596
34597     # amanda-specific directories
34598     AMLIBDIR=$libdir/amanda
34599
34600 # Check whether --with-amlibdir was given.
34601 if test "${with_amlibdir+set}" = set; then
34602   withval=$with_amlibdir;
34603             case "$withval" in
34604                 n | no) AMLIBDIR=$libdir ;;
34605                 y | ye | yes) AMLIBDIR=$libdir/amanda ;;
34606                 *) AMLIBDIR=$withval ;;
34607             esac
34608
34609
34610 fi
34611
34612
34613   prefix_NONE=
34614   exec_prefix_NONE=
34615   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
34616   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
34617   eval ac_define_dir="\"$AMLIBDIR\""
34618   eval ac_define_dir="\"$ac_define_dir\""
34619   amlibdir="$ac_define_dir"
34620
34621
34622 cat >>confdefs.h <<_ACEOF
34623 #define amlibdir "$ac_define_dir"
34624 _ACEOF
34625
34626   test "$prefix_NONE" && prefix=NONE
34627   test "$exec_prefix_NONE" && exec_prefix=NONE
34628
34629
34630     AMLIBEXECDIR=$libexecdir/amanda
34631
34632 # Check whether --with-amlibexecdir was given.
34633 if test "${with_amlibexecdir+set}" = set; then
34634   withval=$with_amlibexecdir;
34635             case "$withval" in
34636                 n | no) AMLIBEXECDIR=$libexecdir ;;
34637                 y | ye | yes) AMLIBEXECDIR=$libexecdir/amanda ;;
34638                 *) AMLIBEXECDIR=$withval ;;
34639             esac
34640
34641
34642 fi
34643
34644
34645   prefix_NONE=
34646   exec_prefix_NONE=
34647   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
34648   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
34649   eval ac_define_dir="\"$AMLIBEXECDIR\""
34650   eval ac_define_dir="\"$ac_define_dir\""
34651   amlibexecdir="$ac_define_dir"
34652
34653
34654 cat >>confdefs.h <<_ACEOF
34655 #define amlibexecdir "$ac_define_dir"
34656 _ACEOF
34657
34658   test "$prefix_NONE" && prefix=NONE
34659   test "$exec_prefix_NONE" && exec_prefix=NONE
34660
34661
34662     amincludedir="${includedir}/amanda"
34663
34664   prefix_NONE=
34665   exec_prefix_NONE=
34666   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
34667   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
34668   eval ac_define_dir="\"$amincludedir\""
34669   eval ac_define_dir="\"$ac_define_dir\""
34670   amincludedir="$ac_define_dir"
34671
34672
34673 cat >>confdefs.h <<_ACEOF
34674 #define amincludedir "$ac_define_dir"
34675 _ACEOF
34676
34677   test "$prefix_NONE" && prefix=NONE
34678   test "$exec_prefix_NONE" && exec_prefix=NONE
34679
34680
34681
34682 # Check whether --with-amperldir was given.
34683 if test "${with_amperldir+set}" = set; then
34684   withval=$with_amperldir;
34685             case "$withval" in
34686                 y | ye | yes) AMPERLLIB=DEFAULT ;;
34687                 n | no) AMPERLLIB=$amlibdir/perl ;;
34688                 *) AMPERLLIB=$withval ;;
34689             esac
34690
34691 else
34692
34693             AMPERLLIB=DEFAULT
34694
34695
34696 fi
34697
34698     # apply the default if no value was given.
34699     if test x"$AMPERLLIB" = x"DEFAULT"; then
34700         eval `$PERL -V:installsitelib`
34701         AMPERLLIB=$installsitelib
34702     fi
34703
34704   prefix_NONE=
34705   exec_prefix_NONE=
34706   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
34707   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
34708   eval ac_define_dir="\"$AMPERLLIB\""
34709   eval ac_define_dir="\"$ac_define_dir\""
34710   amperldir="$ac_define_dir"
34711
34712
34713 cat >>confdefs.h <<_ACEOF
34714 #define amperldir "$ac_define_dir"
34715 _ACEOF
34716
34717   test "$prefix_NONE" && prefix=NONE
34718   test "$exec_prefix_NONE" && exec_prefix=NONE
34719
34720
34721     APPLICATION_DIR='${amlibexecdir}/application'
34722
34723   prefix_NONE=
34724   exec_prefix_NONE=
34725   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
34726   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
34727   eval ac_define_dir="\"$APPLICATION_DIR\""
34728   eval ac_define_dir="\"$ac_define_dir\""
34729   APPLICATION_DIR="$ac_define_dir"
34730
34731
34732 cat >>confdefs.h <<_ACEOF
34733 #define APPLICATION_DIR "$ac_define_dir"
34734 _ACEOF
34735
34736   test "$prefix_NONE" && prefix=NONE
34737   test "$exec_prefix_NONE" && exec_prefix=NONE
34738
34739
34740
34741 # Check whether --with-amdatadir was given.
34742 if test "${with_amdatadir+set}" = set; then
34743   withval=$with_amdatadir;
34744             AMDATADIR=$withval
34745
34746 else
34747
34748             AMDATADIR=$datadir/amanda
34749
34750
34751 fi
34752
34753
34754   prefix_NONE=
34755   exec_prefix_NONE=
34756   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
34757   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
34758   eval ac_define_dir="\"$AMDATADIR\""
34759   eval ac_define_dir="\"$ac_define_dir\""
34760   amdatadir="$ac_define_dir"
34761
34762
34763 cat >>confdefs.h <<_ACEOF
34764 #define amdatadir "$ac_define_dir"
34765 _ACEOF
34766
34767   test "$prefix_NONE" && prefix=NONE
34768   test "$exec_prefix_NONE" && exec_prefix=NONE
34769
34770
34771
34772 #
34773 # Internationalization
34774 #
34775
34776     # FreeBSD needs to link libxpg4
34777
34778 { $as_echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
34779 $as_echo_n "checking for setlocale in -lxpg4... " >&6; }
34780 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
34781   $as_echo_n "(cached) " >&6
34782 else
34783   ac_check_lib_save_LIBS=$LIBS
34784 LIBS="-lxpg4  $LIBS"
34785 cat >conftest.$ac_ext <<_ACEOF
34786 /* confdefs.h.  */
34787 _ACEOF
34788 cat confdefs.h >>conftest.$ac_ext
34789 cat >>conftest.$ac_ext <<_ACEOF
34790 /* end confdefs.h.  */
34791
34792 /* Override any GCC internal prototype to avoid an error.
34793    Use char because int might match the return type of a GCC
34794    builtin and then its argument prototype would still apply.  */
34795 #ifdef __cplusplus
34796 extern "C"
34797 #endif
34798 char setlocale ();
34799 int
34800 main ()
34801 {
34802 return setlocale ();
34803   ;
34804   return 0;
34805 }
34806 _ACEOF
34807 rm -f conftest.$ac_objext conftest$ac_exeext
34808 if { (ac_try="$ac_link"
34809 case "(($ac_try" in
34810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34811   *) ac_try_echo=$ac_try;;
34812 esac
34813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34814 $as_echo "$ac_try_echo") >&5
34815   (eval "$ac_link") 2>conftest.er1
34816   ac_status=$?
34817   grep -v '^ *+' conftest.er1 >conftest.err
34818   rm -f conftest.er1
34819   cat conftest.err >&5
34820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34821   (exit $ac_status); } && {
34822          test -z "$ac_c_werror_flag" ||
34823          test ! -s conftest.err
34824        } && test -s conftest$ac_exeext && {
34825          test "$cross_compiling" = yes ||
34826          $as_test_x conftest$ac_exeext
34827        }; then
34828   ac_cv_lib_xpg4_setlocale=yes
34829 else
34830   $as_echo "$as_me: failed program was:" >&5
34831 sed 's/^/| /' conftest.$ac_ext >&5
34832
34833         ac_cv_lib_xpg4_setlocale=no
34834 fi
34835
34836 rm -rf conftest.dSYM
34837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34838       conftest$ac_exeext conftest.$ac_ext
34839 LIBS=$ac_check_lib_save_LIBS
34840 fi
34841 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
34842 $as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
34843 if test "x$ac_cv_lib_xpg4_setlocale" = x""yes; then
34844   cat >>confdefs.h <<_ACEOF
34845 #define HAVE_LIBXPG4 1
34846 _ACEOF
34847
34848   LIBS="-lxpg4 $LIBS"
34849
34850 fi
34851
34852
34853     # ------------------------------------------------------------------
34854     # All list of languages for which a translation exist. Each
34855     #  language is separated by a space.
34856     # ------------------------------------------------------------------
34857     ALL_LINGUAS=""
34858
34859
34860     # Extract the first word of "msgfmt", so it can be a program name with args.
34861 set dummy msgfmt; ac_word=$2
34862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34863 $as_echo_n "checking for $ac_word... " >&6; }
34864 if test "${ac_cv_path_MSGFMT+set}" = set; then
34865   $as_echo_n "(cached) " >&6
34866 else
34867   case $MSGFMT in
34868   [\\/]* | ?:[\\/]*)
34869   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
34870   ;;
34871   *)
34872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34873 for as_dir in $LOCSYSPATH
34874 do
34875   IFS=$as_save_IFS
34876   test -z "$as_dir" && as_dir=.
34877   for ac_exec_ext in '' $ac_executable_extensions; do
34878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34879     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
34880     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34881     break 2
34882   fi
34883 done
34884 done
34885 IFS=$as_save_IFS
34886
34887   ;;
34888 esac
34889 fi
34890 MSGFMT=$ac_cv_path_MSGFMT
34891 if test -n "$MSGFMT"; then
34892   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
34893 $as_echo "$MSGFMT" >&6; }
34894 else
34895   { $as_echo "$as_me:$LINENO: result: no" >&5
34896 $as_echo "no" >&6; }
34897 fi
34898
34899
34900     # Extract the first word of "gettext", so it can be a program name with args.
34901 set dummy gettext; ac_word=$2
34902 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34903 $as_echo_n "checking for $ac_word... " >&6; }
34904 if test "${ac_cv_path_GETTEXT+set}" = set; then
34905   $as_echo_n "(cached) " >&6
34906 else
34907   case $GETTEXT in
34908   [\\/]* | ?:[\\/]*)
34909   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
34910   ;;
34911   *)
34912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34913 for as_dir in $LOCSYSPATH
34914 do
34915   IFS=$as_save_IFS
34916   test -z "$as_dir" && as_dir=.
34917   for ac_exec_ext in '' $ac_executable_extensions; do
34918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34919     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
34920     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34921     break 2
34922   fi
34923 done
34924 done
34925 IFS=$as_save_IFS
34926
34927   ;;
34928 esac
34929 fi
34930 GETTEXT=$ac_cv_path_GETTEXT
34931 if test -n "$GETTEXT"; then
34932   { $as_echo "$as_me:$LINENO: result: $GETTEXT" >&5
34933 $as_echo "$GETTEXT" >&6; }
34934 else
34935   { $as_echo "$as_me:$LINENO: result: no" >&5
34936 $as_echo "no" >&6; }
34937 fi
34938
34939
34940
34941
34942
34943   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
34944 $as_echo_n "checking whether NLS is requested... " >&6; }
34945     # Check whether --enable-nls was given.
34946 if test "${enable_nls+set}" = set; then
34947   enableval=$enable_nls; USE_NLS=$enableval
34948 else
34949   USE_NLS=yes
34950 fi
34951
34952   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
34953 $as_echo "$USE_NLS" >&6; }
34954
34955
34956
34957
34958
34959
34960 # Prepare PATH_SEPARATOR.
34961 # The user is always right.
34962 if test "${PATH_SEPARATOR+set}" != set; then
34963   echo "#! /bin/sh" >conf$$.sh
34964   echo  "exit 0"   >>conf$$.sh
34965   chmod +x conf$$.sh
34966   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34967     PATH_SEPARATOR=';'
34968   else
34969     PATH_SEPARATOR=:
34970   fi
34971   rm -f conf$$.sh
34972 fi
34973
34974 # Find out how to test for executable files. Don't use a zero-byte file,
34975 # as systems may use methods other than mode bits to determine executability.
34976 cat >conf$$.file <<_ASEOF
34977 #! /bin/sh
34978 exit 0
34979 _ASEOF
34980 chmod +x conf$$.file
34981 if test -x conf$$.file >/dev/null 2>&1; then
34982   ac_executable_p="test -x"
34983 else
34984   ac_executable_p="test -f"
34985 fi
34986 rm -f conf$$.file
34987
34988 # Extract the first word of "msgfmt", so it can be a program name with args.
34989 set dummy msgfmt; ac_word=$2
34990 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34991 $as_echo_n "checking for $ac_word... " >&6; }
34992 if test "${ac_cv_path_MSGFMT+set}" = set; then
34993   $as_echo_n "(cached) " >&6
34994 else
34995   case "$MSGFMT" in
34996   [\\/]* | ?:[\\/]*)
34997     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
34998     ;;
34999   *)
35000     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
35001     for ac_dir in $PATH; do
35002       IFS="$ac_save_IFS"
35003       test -z "$ac_dir" && ac_dir=.
35004       for ac_exec_ext in '' $ac_executable_extensions; do
35005         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
35006           echo "$as_me: trying $ac_dir/$ac_word..." >&5
35007           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
35008      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
35009             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
35010             break 2
35011           fi
35012         fi
35013       done
35014     done
35015     IFS="$ac_save_IFS"
35016   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
35017     ;;
35018 esac
35019 fi
35020 MSGFMT="$ac_cv_path_MSGFMT"
35021 if test "$MSGFMT" != ":"; then
35022   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
35023 $as_echo "$MSGFMT" >&6; }
35024 else
35025   { $as_echo "$as_me:$LINENO: result: no" >&5
35026 $as_echo "no" >&6; }
35027 fi
35028
35029   # Extract the first word of "gmsgfmt", so it can be a program name with args.
35030 set dummy gmsgfmt; ac_word=$2
35031 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35032 $as_echo_n "checking for $ac_word... " >&6; }
35033 if test "${ac_cv_path_GMSGFMT+set}" = set; then
35034   $as_echo_n "(cached) " >&6
35035 else
35036   case $GMSGFMT in
35037   [\\/]* | ?:[\\/]*)
35038   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
35039   ;;
35040   *)
35041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35042 for as_dir in $PATH
35043 do
35044   IFS=$as_save_IFS
35045   test -z "$as_dir" && as_dir=.
35046   for ac_exec_ext in '' $ac_executable_extensions; do
35047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35048     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
35049     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35050     break 2
35051   fi
35052 done
35053 done
35054 IFS=$as_save_IFS
35055
35056   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
35057   ;;
35058 esac
35059 fi
35060 GMSGFMT=$ac_cv_path_GMSGFMT
35061 if test -n "$GMSGFMT"; then
35062   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
35063 $as_echo "$GMSGFMT" >&6; }
35064 else
35065   { $as_echo "$as_me:$LINENO: result: no" >&5
35066 $as_echo "no" >&6; }
35067 fi
35068
35069
35070
35071     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
35072     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
35073     *) MSGFMT_015=$MSGFMT ;;
35074   esac
35075
35076   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
35077     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
35078     *) GMSGFMT_015=$GMSGFMT ;;
35079   esac
35080
35081
35082
35083 # Prepare PATH_SEPARATOR.
35084 # The user is always right.
35085 if test "${PATH_SEPARATOR+set}" != set; then
35086   echo "#! /bin/sh" >conf$$.sh
35087   echo  "exit 0"   >>conf$$.sh
35088   chmod +x conf$$.sh
35089   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35090     PATH_SEPARATOR=';'
35091   else
35092     PATH_SEPARATOR=:
35093   fi
35094   rm -f conf$$.sh
35095 fi
35096
35097 # Find out how to test for executable files. Don't use a zero-byte file,
35098 # as systems may use methods other than mode bits to determine executability.
35099 cat >conf$$.file <<_ASEOF
35100 #! /bin/sh
35101 exit 0
35102 _ASEOF
35103 chmod +x conf$$.file
35104 if test -x conf$$.file >/dev/null 2>&1; then
35105   ac_executable_p="test -x"
35106 else
35107   ac_executable_p="test -f"
35108 fi
35109 rm -f conf$$.file
35110
35111 # Extract the first word of "xgettext", so it can be a program name with args.
35112 set dummy xgettext; ac_word=$2
35113 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35114 $as_echo_n "checking for $ac_word... " >&6; }
35115 if test "${ac_cv_path_XGETTEXT+set}" = set; then
35116   $as_echo_n "(cached) " >&6
35117 else
35118   case "$XGETTEXT" in
35119   [\\/]* | ?:[\\/]*)
35120     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
35121     ;;
35122   *)
35123     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
35124     for ac_dir in $PATH; do
35125       IFS="$ac_save_IFS"
35126       test -z "$ac_dir" && ac_dir=.
35127       for ac_exec_ext in '' $ac_executable_extensions; do
35128         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
35129           echo "$as_me: trying $ac_dir/$ac_word..." >&5
35130           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
35131      (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
35132             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
35133             break 2
35134           fi
35135         fi
35136       done
35137     done
35138     IFS="$ac_save_IFS"
35139   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
35140     ;;
35141 esac
35142 fi
35143 XGETTEXT="$ac_cv_path_XGETTEXT"
35144 if test "$XGETTEXT" != ":"; then
35145   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
35146 $as_echo "$XGETTEXT" >&6; }
35147 else
35148   { $as_echo "$as_me:$LINENO: result: no" >&5
35149 $as_echo "no" >&6; }
35150 fi
35151
35152     rm -f messages.po
35153
35154     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
35155     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
35156     *) XGETTEXT_015=$XGETTEXT ;;
35157   esac
35158
35159
35160
35161 # Prepare PATH_SEPARATOR.
35162 # The user is always right.
35163 if test "${PATH_SEPARATOR+set}" != set; then
35164   echo "#! /bin/sh" >conf$$.sh
35165   echo  "exit 0"   >>conf$$.sh
35166   chmod +x conf$$.sh
35167   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35168     PATH_SEPARATOR=';'
35169   else
35170     PATH_SEPARATOR=:
35171   fi
35172   rm -f conf$$.sh
35173 fi
35174
35175 # Find out how to test for executable files. Don't use a zero-byte file,
35176 # as systems may use methods other than mode bits to determine executability.
35177 cat >conf$$.file <<_ASEOF
35178 #! /bin/sh
35179 exit 0
35180 _ASEOF
35181 chmod +x conf$$.file
35182 if test -x conf$$.file >/dev/null 2>&1; then
35183   ac_executable_p="test -x"
35184 else
35185   ac_executable_p="test -f"
35186 fi
35187 rm -f conf$$.file
35188
35189 # Extract the first word of "msgmerge", so it can be a program name with args.
35190 set dummy msgmerge; ac_word=$2
35191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35192 $as_echo_n "checking for $ac_word... " >&6; }
35193 if test "${ac_cv_path_MSGMERGE+set}" = set; then
35194   $as_echo_n "(cached) " >&6
35195 else
35196   case "$MSGMERGE" in
35197   [\\/]* | ?:[\\/]*)
35198     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
35199     ;;
35200   *)
35201     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
35202     for ac_dir in $PATH; do
35203       IFS="$ac_save_IFS"
35204       test -z "$ac_dir" && ac_dir=.
35205       for ac_exec_ext in '' $ac_executable_extensions; do
35206         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
35207           echo "$as_me: trying $ac_dir/$ac_word..." >&5
35208           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
35209             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
35210             break 2
35211           fi
35212         fi
35213       done
35214     done
35215     IFS="$ac_save_IFS"
35216   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
35217     ;;
35218 esac
35219 fi
35220 MSGMERGE="$ac_cv_path_MSGMERGE"
35221 if test "$MSGMERGE" != ":"; then
35222   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
35223 $as_echo "$MSGMERGE" >&6; }
35224 else
35225   { $as_echo "$as_me:$LINENO: result: no" >&5
35226 $as_echo "no" >&6; }
35227 fi
35228
35229
35230         test -n "$localedir" || localedir='${datadir}/locale'
35231
35232
35233   ac_config_commands="$ac_config_commands po-directories"
35234
35235
35236
35237
35238
35239
35240
35241
35242
35243     use_additional=yes
35244
35245   acl_save_prefix="$prefix"
35246   prefix="$acl_final_prefix"
35247   acl_save_exec_prefix="$exec_prefix"
35248   exec_prefix="$acl_final_exec_prefix"
35249
35250     eval additional_includedir=\"$includedir\"
35251     eval additional_libdir=\"$libdir\"
35252
35253   exec_prefix="$acl_save_exec_prefix"
35254   prefix="$acl_save_prefix"
35255
35256
35257 # Check whether --with-libiconv-prefix was given.
35258 if test "${with_libiconv_prefix+set}" = set; then
35259   withval=$with_libiconv_prefix;
35260     if test "X$withval" = "Xno"; then
35261       use_additional=no
35262     else
35263       if test "X$withval" = "X"; then
35264
35265   acl_save_prefix="$prefix"
35266   prefix="$acl_final_prefix"
35267   acl_save_exec_prefix="$exec_prefix"
35268   exec_prefix="$acl_final_exec_prefix"
35269
35270           eval additional_includedir=\"$includedir\"
35271           eval additional_libdir=\"$libdir\"
35272
35273   exec_prefix="$acl_save_exec_prefix"
35274   prefix="$acl_save_prefix"
35275
35276       else
35277         additional_includedir="$withval/include"
35278         additional_libdir="$withval/$acl_libdirstem"
35279       fi
35280     fi
35281
35282 fi
35283
35284       LIBICONV=
35285   LTLIBICONV=
35286   INCICONV=
35287   rpathdirs=
35288   ltrpathdirs=
35289   names_already_handled=
35290   names_next_round='iconv '
35291   while test -n "$names_next_round"; do
35292     names_this_round="$names_next_round"
35293     names_next_round=
35294     for name in $names_this_round; do
35295       already_handled=
35296       for n in $names_already_handled; do
35297         if test "$n" = "$name"; then
35298           already_handled=yes
35299           break
35300         fi
35301       done
35302       if test -z "$already_handled"; then
35303         names_already_handled="$names_already_handled $name"
35304                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
35305         eval value=\"\$HAVE_LIB$uppername\"
35306         if test -n "$value"; then
35307           if test "$value" = yes; then
35308             eval value=\"\$LIB$uppername\"
35309             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
35310             eval value=\"\$LTLIB$uppername\"
35311             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
35312           else
35313                                     :
35314           fi
35315         else
35316                               found_dir=
35317           found_la=
35318           found_so=
35319           found_a=
35320           if test $use_additional = yes; then
35321             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
35322               found_dir="$additional_libdir"
35323               found_so="$additional_libdir/lib$name.$shlibext"
35324               if test -f "$additional_libdir/lib$name.la"; then
35325                 found_la="$additional_libdir/lib$name.la"
35326               fi
35327             else
35328               if test -f "$additional_libdir/lib$name.$libext"; then
35329                 found_dir="$additional_libdir"
35330                 found_a="$additional_libdir/lib$name.$libext"
35331                 if test -f "$additional_libdir/lib$name.la"; then
35332                   found_la="$additional_libdir/lib$name.la"
35333                 fi
35334               fi
35335             fi
35336           fi
35337           if test "X$found_dir" = "X"; then
35338             for x in $LDFLAGS $LTLIBICONV; do
35339
35340   acl_save_prefix="$prefix"
35341   prefix="$acl_final_prefix"
35342   acl_save_exec_prefix="$exec_prefix"
35343   exec_prefix="$acl_final_exec_prefix"
35344   eval x=\"$x\"
35345   exec_prefix="$acl_save_exec_prefix"
35346   prefix="$acl_save_prefix"
35347
35348               case "$x" in
35349                 -L*)
35350                   dir=`echo "X$x" | sed -e 's/^X-L//'`
35351                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
35352                     found_dir="$dir"
35353                     found_so="$dir/lib$name.$shlibext"
35354                     if test -f "$dir/lib$name.la"; then
35355                       found_la="$dir/lib$name.la"
35356                     fi
35357                   else
35358                     if test -f "$dir/lib$name.$libext"; then
35359                       found_dir="$dir"
35360                       found_a="$dir/lib$name.$libext"
35361                       if test -f "$dir/lib$name.la"; then
35362                         found_la="$dir/lib$name.la"
35363                       fi
35364                     fi
35365                   fi
35366                   ;;
35367               esac
35368               if test "X$found_dir" != "X"; then
35369                 break
35370               fi
35371             done
35372           fi
35373           if test "X$found_dir" != "X"; then
35374                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
35375             if test "X$found_so" != "X"; then
35376                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
35377                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35378               else
35379                                                                                 haveit=
35380                 for x in $ltrpathdirs; do
35381                   if test "X$x" = "X$found_dir"; then
35382                     haveit=yes
35383                     break
35384                   fi
35385                 done
35386                 if test -z "$haveit"; then
35387                   ltrpathdirs="$ltrpathdirs $found_dir"
35388                 fi
35389                                 if test "$hardcode_direct" = yes; then
35390                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35391                 else
35392                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
35393                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35394                                                             haveit=
35395                     for x in $rpathdirs; do
35396                       if test "X$x" = "X$found_dir"; then
35397                         haveit=yes
35398                         break
35399                       fi
35400                     done
35401                     if test -z "$haveit"; then
35402                       rpathdirs="$rpathdirs $found_dir"
35403                     fi
35404                   else
35405                                                                                 haveit=
35406                     for x in $LDFLAGS $LIBICONV; do
35407
35408   acl_save_prefix="$prefix"
35409   prefix="$acl_final_prefix"
35410   acl_save_exec_prefix="$exec_prefix"
35411   exec_prefix="$acl_final_exec_prefix"
35412   eval x=\"$x\"
35413   exec_prefix="$acl_save_exec_prefix"
35414   prefix="$acl_save_prefix"
35415
35416                       if test "X$x" = "X-L$found_dir"; then
35417                         haveit=yes
35418                         break
35419                       fi
35420                     done
35421                     if test -z "$haveit"; then
35422                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
35423                     fi
35424                     if test "$hardcode_minus_L" != no; then
35425                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
35426                     else
35427                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
35428                     fi
35429                   fi
35430                 fi
35431               fi
35432             else
35433               if test "X$found_a" != "X"; then
35434                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
35435               else
35436                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
35437               fi
35438             fi
35439                         additional_includedir=
35440             case "$found_dir" in
35441               */$acl_libdirstem | */$acl_libdirstem/)
35442                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
35443                 additional_includedir="$basedir/include"
35444                 ;;
35445             esac
35446             if test "X$additional_includedir" != "X"; then
35447                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
35448                 haveit=
35449                 if test "X$additional_includedir" = "X/usr/local/include"; then
35450                   if test -n "$GCC"; then
35451                     case $host_os in
35452                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
35453                     esac
35454                   fi
35455                 fi
35456                 if test -z "$haveit"; then
35457                   for x in $CPPFLAGS $INCICONV; do
35458
35459   acl_save_prefix="$prefix"
35460   prefix="$acl_final_prefix"
35461   acl_save_exec_prefix="$exec_prefix"
35462   exec_prefix="$acl_final_exec_prefix"
35463   eval x=\"$x\"
35464   exec_prefix="$acl_save_exec_prefix"
35465   prefix="$acl_save_prefix"
35466
35467                     if test "X$x" = "X-I$additional_includedir"; then
35468                       haveit=yes
35469                       break
35470                     fi
35471                   done
35472                   if test -z "$haveit"; then
35473                     if test -d "$additional_includedir"; then
35474                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
35475                     fi
35476                   fi
35477                 fi
35478               fi
35479             fi
35480                         if test -n "$found_la"; then
35481                                                         save_libdir="$libdir"
35482               case "$found_la" in
35483                 */* | *\\*) . "$found_la" ;;
35484                 *) . "./$found_la" ;;
35485               esac
35486               libdir="$save_libdir"
35487                             for dep in $dependency_libs; do
35488                 case "$dep" in
35489                   -L*)
35490                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
35491                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
35492                       haveit=
35493                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
35494                         if test -n "$GCC"; then
35495                           case $host_os in
35496                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
35497                           esac
35498                         fi
35499                       fi
35500                       if test -z "$haveit"; then
35501                         haveit=
35502                         for x in $LDFLAGS $LIBICONV; do
35503
35504   acl_save_prefix="$prefix"
35505   prefix="$acl_final_prefix"
35506   acl_save_exec_prefix="$exec_prefix"
35507   exec_prefix="$acl_final_exec_prefix"
35508   eval x=\"$x\"
35509   exec_prefix="$acl_save_exec_prefix"
35510   prefix="$acl_save_prefix"
35511
35512                           if test "X$x" = "X-L$additional_libdir"; then
35513                             haveit=yes
35514                             break
35515                           fi
35516                         done
35517                         if test -z "$haveit"; then
35518                           if test -d "$additional_libdir"; then
35519                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
35520                           fi
35521                         fi
35522                         haveit=
35523                         for x in $LDFLAGS $LTLIBICONV; do
35524
35525   acl_save_prefix="$prefix"
35526   prefix="$acl_final_prefix"
35527   acl_save_exec_prefix="$exec_prefix"
35528   exec_prefix="$acl_final_exec_prefix"
35529   eval x=\"$x\"
35530   exec_prefix="$acl_save_exec_prefix"
35531   prefix="$acl_save_prefix"
35532
35533                           if test "X$x" = "X-L$additional_libdir"; then
35534                             haveit=yes
35535                             break
35536                           fi
35537                         done
35538                         if test -z "$haveit"; then
35539                           if test -d "$additional_libdir"; then
35540                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
35541                           fi
35542                         fi
35543                       fi
35544                     fi
35545                     ;;
35546                   -R*)
35547                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
35548                     if test "$enable_rpath" != no; then
35549                                                                   haveit=
35550                       for x in $rpathdirs; do
35551                         if test "X$x" = "X$dir"; then
35552                           haveit=yes
35553                           break
35554                         fi
35555                       done
35556                       if test -z "$haveit"; then
35557                         rpathdirs="$rpathdirs $dir"
35558                       fi
35559                                                                   haveit=
35560                       for x in $ltrpathdirs; do
35561                         if test "X$x" = "X$dir"; then
35562                           haveit=yes
35563                           break
35564                         fi
35565                       done
35566                       if test -z "$haveit"; then
35567                         ltrpathdirs="$ltrpathdirs $dir"
35568                       fi
35569                     fi
35570                     ;;
35571                   -l*)
35572                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
35573                     ;;
35574                   *.la)
35575                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
35576                     ;;
35577                   *)
35578                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
35579                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
35580                     ;;
35581                 esac
35582               done
35583             fi
35584           else
35585                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
35586             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
35587           fi
35588         fi
35589       fi
35590     done
35591   done
35592   if test "X$rpathdirs" != "X"; then
35593     if test -n "$hardcode_libdir_separator"; then
35594                         alldirs=
35595       for found_dir in $rpathdirs; do
35596         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
35597       done
35598             acl_save_libdir="$libdir"
35599       libdir="$alldirs"
35600       eval flag=\"$hardcode_libdir_flag_spec\"
35601       libdir="$acl_save_libdir"
35602       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
35603     else
35604             for found_dir in $rpathdirs; do
35605         acl_save_libdir="$libdir"
35606         libdir="$found_dir"
35607         eval flag=\"$hardcode_libdir_flag_spec\"
35608         libdir="$acl_save_libdir"
35609         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
35610       done
35611     fi
35612   fi
35613   if test "X$ltrpathdirs" != "X"; then
35614             for found_dir in $ltrpathdirs; do
35615       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
35616     done
35617   fi
35618
35619
35620
35621
35622
35623
35624
35625
35626
35627
35628
35629
35630
35631
35632
35633
35634
35635
35636     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
35637 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
35638 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
35639   $as_echo_n "(cached) " >&6
35640 else
35641   gt_save_LIBS="$LIBS"
35642      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
35643      cat >conftest.$ac_ext <<_ACEOF
35644 /* confdefs.h.  */
35645 _ACEOF
35646 cat confdefs.h >>conftest.$ac_ext
35647 cat >>conftest.$ac_ext <<_ACEOF
35648 /* end confdefs.h.  */
35649 #include <CoreFoundation/CFPreferences.h>
35650 int
35651 main ()
35652 {
35653 CFPreferencesCopyAppValue(NULL, NULL)
35654   ;
35655   return 0;
35656 }
35657 _ACEOF
35658 rm -f conftest.$ac_objext conftest$ac_exeext
35659 if { (ac_try="$ac_link"
35660 case "(($ac_try" in
35661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35662   *) ac_try_echo=$ac_try;;
35663 esac
35664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35665 $as_echo "$ac_try_echo") >&5
35666   (eval "$ac_link") 2>conftest.er1
35667   ac_status=$?
35668   grep -v '^ *+' conftest.er1 >conftest.err
35669   rm -f conftest.er1
35670   cat conftest.err >&5
35671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35672   (exit $ac_status); } && {
35673          test -z "$ac_c_werror_flag" ||
35674          test ! -s conftest.err
35675        } && test -s conftest$ac_exeext && {
35676          test "$cross_compiling" = yes ||
35677          $as_test_x conftest$ac_exeext
35678        }; then
35679   gt_cv_func_CFPreferencesCopyAppValue=yes
35680 else
35681   $as_echo "$as_me: failed program was:" >&5
35682 sed 's/^/| /' conftest.$ac_ext >&5
35683
35684         gt_cv_func_CFPreferencesCopyAppValue=no
35685 fi
35686
35687 rm -rf conftest.dSYM
35688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35689       conftest$ac_exeext conftest.$ac_ext
35690      LIBS="$gt_save_LIBS"
35691 fi
35692 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
35693 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
35694   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
35695
35696 cat >>confdefs.h <<\_ACEOF
35697 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
35698 _ACEOF
35699
35700   fi
35701     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
35702 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
35703 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
35704   $as_echo_n "(cached) " >&6
35705 else
35706   gt_save_LIBS="$LIBS"
35707      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
35708      cat >conftest.$ac_ext <<_ACEOF
35709 /* confdefs.h.  */
35710 _ACEOF
35711 cat confdefs.h >>conftest.$ac_ext
35712 cat >>conftest.$ac_ext <<_ACEOF
35713 /* end confdefs.h.  */
35714 #include <CoreFoundation/CFLocale.h>
35715 int
35716 main ()
35717 {
35718 CFLocaleCopyCurrent();
35719   ;
35720   return 0;
35721 }
35722 _ACEOF
35723 rm -f conftest.$ac_objext conftest$ac_exeext
35724 if { (ac_try="$ac_link"
35725 case "(($ac_try" in
35726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35727   *) ac_try_echo=$ac_try;;
35728 esac
35729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35730 $as_echo "$ac_try_echo") >&5
35731   (eval "$ac_link") 2>conftest.er1
35732   ac_status=$?
35733   grep -v '^ *+' conftest.er1 >conftest.err
35734   rm -f conftest.er1
35735   cat conftest.err >&5
35736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737   (exit $ac_status); } && {
35738          test -z "$ac_c_werror_flag" ||
35739          test ! -s conftest.err
35740        } && test -s conftest$ac_exeext && {
35741          test "$cross_compiling" = yes ||
35742          $as_test_x conftest$ac_exeext
35743        }; then
35744   gt_cv_func_CFLocaleCopyCurrent=yes
35745 else
35746   $as_echo "$as_me: failed program was:" >&5
35747 sed 's/^/| /' conftest.$ac_ext >&5
35748
35749         gt_cv_func_CFLocaleCopyCurrent=no
35750 fi
35751
35752 rm -rf conftest.dSYM
35753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35754       conftest$ac_exeext conftest.$ac_ext
35755      LIBS="$gt_save_LIBS"
35756 fi
35757 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
35758 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
35759   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
35760
35761 cat >>confdefs.h <<\_ACEOF
35762 #define HAVE_CFLOCALECOPYCURRENT 1
35763 _ACEOF
35764
35765   fi
35766   INTL_MACOSX_LIBS=
35767   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
35768     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
35769   fi
35770
35771
35772
35773
35774
35775
35776   LIBINTL=
35777   LTLIBINTL=
35778   POSUB=
35779
35780     if test "$USE_NLS" = "yes"; then
35781     gt_use_preinstalled_gnugettext=no
35782
35783
35784
35785
35786
35787
35788         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
35789 $as_echo_n "checking for GNU gettext in libc... " >&6; }
35790 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
35791   $as_echo_n "(cached) " >&6
35792 else
35793   cat >conftest.$ac_ext <<_ACEOF
35794 /* confdefs.h.  */
35795 _ACEOF
35796 cat confdefs.h >>conftest.$ac_ext
35797 cat >>conftest.$ac_ext <<_ACEOF
35798 /* end confdefs.h.  */
35799 #include <libintl.h>
35800 extern int _nl_msg_cat_cntr;
35801 extern int *_nl_domain_bindings;
35802 int
35803 main ()
35804 {
35805 bindtextdomain ("", "");
35806 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
35807   ;
35808   return 0;
35809 }
35810 _ACEOF
35811 rm -f conftest.$ac_objext conftest$ac_exeext
35812 if { (ac_try="$ac_link"
35813 case "(($ac_try" in
35814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35815   *) ac_try_echo=$ac_try;;
35816 esac
35817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35818 $as_echo "$ac_try_echo") >&5
35819   (eval "$ac_link") 2>conftest.er1
35820   ac_status=$?
35821   grep -v '^ *+' conftest.er1 >conftest.err
35822   rm -f conftest.er1
35823   cat conftest.err >&5
35824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35825   (exit $ac_status); } && {
35826          test -z "$ac_c_werror_flag" ||
35827          test ! -s conftest.err
35828        } && test -s conftest$ac_exeext && {
35829          test "$cross_compiling" = yes ||
35830          $as_test_x conftest$ac_exeext
35831        }; then
35832   gt_cv_func_gnugettext1_libc=yes
35833 else
35834   $as_echo "$as_me: failed program was:" >&5
35835 sed 's/^/| /' conftest.$ac_ext >&5
35836
35837         gt_cv_func_gnugettext1_libc=no
35838 fi
35839
35840 rm -rf conftest.dSYM
35841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35842       conftest$ac_exeext conftest.$ac_ext
35843 fi
35844 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
35845 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
35846
35847         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
35848
35849
35850
35851
35852
35853           am_save_CPPFLAGS="$CPPFLAGS"
35854
35855   for element in $INCICONV; do
35856     haveit=
35857     for x in $CPPFLAGS; do
35858
35859   acl_save_prefix="$prefix"
35860   prefix="$acl_final_prefix"
35861   acl_save_exec_prefix="$exec_prefix"
35862   exec_prefix="$acl_final_exec_prefix"
35863   eval x=\"$x\"
35864   exec_prefix="$acl_save_exec_prefix"
35865   prefix="$acl_save_prefix"
35866
35867       if test "X$x" = "X$element"; then
35868         haveit=yes
35869         break
35870       fi
35871     done
35872     if test -z "$haveit"; then
35873       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
35874     fi
35875   done
35876
35877
35878   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
35879 $as_echo_n "checking for iconv... " >&6; }
35880 if test "${am_cv_func_iconv+set}" = set; then
35881   $as_echo_n "(cached) " >&6
35882 else
35883
35884     am_cv_func_iconv="no, consider installing GNU libiconv"
35885     am_cv_lib_iconv=no
35886     cat >conftest.$ac_ext <<_ACEOF
35887 /* confdefs.h.  */
35888 _ACEOF
35889 cat confdefs.h >>conftest.$ac_ext
35890 cat >>conftest.$ac_ext <<_ACEOF
35891 /* end confdefs.h.  */
35892 #include <stdlib.h>
35893 #include <iconv.h>
35894 int
35895 main ()
35896 {
35897 iconv_t cd = iconv_open("","");
35898        iconv(cd,NULL,NULL,NULL,NULL);
35899        iconv_close(cd);
35900   ;
35901   return 0;
35902 }
35903 _ACEOF
35904 rm -f conftest.$ac_objext conftest$ac_exeext
35905 if { (ac_try="$ac_link"
35906 case "(($ac_try" in
35907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35908   *) ac_try_echo=$ac_try;;
35909 esac
35910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35911 $as_echo "$ac_try_echo") >&5
35912   (eval "$ac_link") 2>conftest.er1
35913   ac_status=$?
35914   grep -v '^ *+' conftest.er1 >conftest.err
35915   rm -f conftest.er1
35916   cat conftest.err >&5
35917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35918   (exit $ac_status); } && {
35919          test -z "$ac_c_werror_flag" ||
35920          test ! -s conftest.err
35921        } && test -s conftest$ac_exeext && {
35922          test "$cross_compiling" = yes ||
35923          $as_test_x conftest$ac_exeext
35924        }; then
35925   am_cv_func_iconv=yes
35926 else
35927   $as_echo "$as_me: failed program was:" >&5
35928 sed 's/^/| /' conftest.$ac_ext >&5
35929
35930
35931 fi
35932
35933 rm -rf conftest.dSYM
35934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35935       conftest$ac_exeext conftest.$ac_ext
35936     if test "$am_cv_func_iconv" != yes; then
35937       am_save_LIBS="$LIBS"
35938       LIBS="$LIBS $LIBICONV"
35939       cat >conftest.$ac_ext <<_ACEOF
35940 /* confdefs.h.  */
35941 _ACEOF
35942 cat confdefs.h >>conftest.$ac_ext
35943 cat >>conftest.$ac_ext <<_ACEOF
35944 /* end confdefs.h.  */
35945 #include <stdlib.h>
35946 #include <iconv.h>
35947 int
35948 main ()
35949 {
35950 iconv_t cd = iconv_open("","");
35951          iconv(cd,NULL,NULL,NULL,NULL);
35952          iconv_close(cd);
35953   ;
35954   return 0;
35955 }
35956 _ACEOF
35957 rm -f conftest.$ac_objext conftest$ac_exeext
35958 if { (ac_try="$ac_link"
35959 case "(($ac_try" in
35960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35961   *) ac_try_echo=$ac_try;;
35962 esac
35963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35964 $as_echo "$ac_try_echo") >&5
35965   (eval "$ac_link") 2>conftest.er1
35966   ac_status=$?
35967   grep -v '^ *+' conftest.er1 >conftest.err
35968   rm -f conftest.er1
35969   cat conftest.err >&5
35970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35971   (exit $ac_status); } && {
35972          test -z "$ac_c_werror_flag" ||
35973          test ! -s conftest.err
35974        } && test -s conftest$ac_exeext && {
35975          test "$cross_compiling" = yes ||
35976          $as_test_x conftest$ac_exeext
35977        }; then
35978   am_cv_lib_iconv=yes
35979         am_cv_func_iconv=yes
35980 else
35981   $as_echo "$as_me: failed program was:" >&5
35982 sed 's/^/| /' conftest.$ac_ext >&5
35983
35984
35985 fi
35986
35987 rm -rf conftest.dSYM
35988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35989       conftest$ac_exeext conftest.$ac_ext
35990       LIBS="$am_save_LIBS"
35991     fi
35992
35993 fi
35994 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35995 $as_echo "$am_cv_func_iconv" >&6; }
35996   if test "$am_cv_func_iconv" = yes; then
35997
35998 cat >>confdefs.h <<\_ACEOF
35999 #define HAVE_ICONV 1
36000 _ACEOF
36001
36002   fi
36003   if test "$am_cv_lib_iconv" = yes; then
36004     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
36005 $as_echo_n "checking how to link with libiconv... " >&6; }
36006     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
36007 $as_echo "$LIBICONV" >&6; }
36008   else
36009             CPPFLAGS="$am_save_CPPFLAGS"
36010     LIBICONV=
36011     LTLIBICONV=
36012   fi
36013
36014
36015
36016
36017
36018
36019
36020     use_additional=yes
36021
36022   acl_save_prefix="$prefix"
36023   prefix="$acl_final_prefix"
36024   acl_save_exec_prefix="$exec_prefix"
36025   exec_prefix="$acl_final_exec_prefix"
36026
36027     eval additional_includedir=\"$includedir\"
36028     eval additional_libdir=\"$libdir\"
36029
36030   exec_prefix="$acl_save_exec_prefix"
36031   prefix="$acl_save_prefix"
36032
36033
36034 # Check whether --with-libintl-prefix was given.
36035 if test "${with_libintl_prefix+set}" = set; then
36036   withval=$with_libintl_prefix;
36037     if test "X$withval" = "Xno"; then
36038       use_additional=no
36039     else
36040       if test "X$withval" = "X"; then
36041
36042   acl_save_prefix="$prefix"
36043   prefix="$acl_final_prefix"
36044   acl_save_exec_prefix="$exec_prefix"
36045   exec_prefix="$acl_final_exec_prefix"
36046
36047           eval additional_includedir=\"$includedir\"
36048           eval additional_libdir=\"$libdir\"
36049
36050   exec_prefix="$acl_save_exec_prefix"
36051   prefix="$acl_save_prefix"
36052
36053       else
36054         additional_includedir="$withval/include"
36055         additional_libdir="$withval/$acl_libdirstem"
36056       fi
36057     fi
36058
36059 fi
36060
36061       LIBINTL=
36062   LTLIBINTL=
36063   INCINTL=
36064   rpathdirs=
36065   ltrpathdirs=
36066   names_already_handled=
36067   names_next_round='intl '
36068   while test -n "$names_next_round"; do
36069     names_this_round="$names_next_round"
36070     names_next_round=
36071     for name in $names_this_round; do
36072       already_handled=
36073       for n in $names_already_handled; do
36074         if test "$n" = "$name"; then
36075           already_handled=yes
36076           break
36077         fi
36078       done
36079       if test -z "$already_handled"; then
36080         names_already_handled="$names_already_handled $name"
36081                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
36082         eval value=\"\$HAVE_LIB$uppername\"
36083         if test -n "$value"; then
36084           if test "$value" = yes; then
36085             eval value=\"\$LIB$uppername\"
36086             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
36087             eval value=\"\$LTLIB$uppername\"
36088             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
36089           else
36090                                     :
36091           fi
36092         else
36093                               found_dir=
36094           found_la=
36095           found_so=
36096           found_a=
36097           if test $use_additional = yes; then
36098             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
36099               found_dir="$additional_libdir"
36100               found_so="$additional_libdir/lib$name.$shlibext"
36101               if test -f "$additional_libdir/lib$name.la"; then
36102                 found_la="$additional_libdir/lib$name.la"
36103               fi
36104             else
36105               if test -f "$additional_libdir/lib$name.$libext"; then
36106                 found_dir="$additional_libdir"
36107                 found_a="$additional_libdir/lib$name.$libext"
36108                 if test -f "$additional_libdir/lib$name.la"; then
36109                   found_la="$additional_libdir/lib$name.la"
36110                 fi
36111               fi
36112             fi
36113           fi
36114           if test "X$found_dir" = "X"; then
36115             for x in $LDFLAGS $LTLIBINTL; do
36116
36117   acl_save_prefix="$prefix"
36118   prefix="$acl_final_prefix"
36119   acl_save_exec_prefix="$exec_prefix"
36120   exec_prefix="$acl_final_exec_prefix"
36121   eval x=\"$x\"
36122   exec_prefix="$acl_save_exec_prefix"
36123   prefix="$acl_save_prefix"
36124
36125               case "$x" in
36126                 -L*)
36127                   dir=`echo "X$x" | sed -e 's/^X-L//'`
36128                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
36129                     found_dir="$dir"
36130                     found_so="$dir/lib$name.$shlibext"
36131                     if test -f "$dir/lib$name.la"; then
36132                       found_la="$dir/lib$name.la"
36133                     fi
36134                   else
36135                     if test -f "$dir/lib$name.$libext"; then
36136                       found_dir="$dir"
36137                       found_a="$dir/lib$name.$libext"
36138                       if test -f "$dir/lib$name.la"; then
36139                         found_la="$dir/lib$name.la"
36140                       fi
36141                     fi
36142                   fi
36143                   ;;
36144               esac
36145               if test "X$found_dir" != "X"; then
36146                 break
36147               fi
36148             done
36149           fi
36150           if test "X$found_dir" != "X"; then
36151                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
36152             if test "X$found_so" != "X"; then
36153                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
36154                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
36155               else
36156                                                                                 haveit=
36157                 for x in $ltrpathdirs; do
36158                   if test "X$x" = "X$found_dir"; then
36159                     haveit=yes
36160                     break
36161                   fi
36162                 done
36163                 if test -z "$haveit"; then
36164                   ltrpathdirs="$ltrpathdirs $found_dir"
36165                 fi
36166                                 if test "$hardcode_direct" = yes; then
36167                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
36168                 else
36169                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
36170                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
36171                                                             haveit=
36172                     for x in $rpathdirs; do
36173                       if test "X$x" = "X$found_dir"; then
36174                         haveit=yes
36175                         break
36176                       fi
36177                     done
36178                     if test -z "$haveit"; then
36179                       rpathdirs="$rpathdirs $found_dir"
36180                     fi
36181                   else
36182                                                                                 haveit=
36183                     for x in $LDFLAGS $LIBINTL; do
36184
36185   acl_save_prefix="$prefix"
36186   prefix="$acl_final_prefix"
36187   acl_save_exec_prefix="$exec_prefix"
36188   exec_prefix="$acl_final_exec_prefix"
36189   eval x=\"$x\"
36190   exec_prefix="$acl_save_exec_prefix"
36191   prefix="$acl_save_prefix"
36192
36193                       if test "X$x" = "X-L$found_dir"; then
36194                         haveit=yes
36195                         break
36196                       fi
36197                     done
36198                     if test -z "$haveit"; then
36199                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
36200                     fi
36201                     if test "$hardcode_minus_L" != no; then
36202                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
36203                     else
36204                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
36205                     fi
36206                   fi
36207                 fi
36208               fi
36209             else
36210               if test "X$found_a" != "X"; then
36211                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
36212               else
36213                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
36214               fi
36215             fi
36216                         additional_includedir=
36217             case "$found_dir" in
36218               */$acl_libdirstem | */$acl_libdirstem/)
36219                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
36220                 additional_includedir="$basedir/include"
36221                 ;;
36222             esac
36223             if test "X$additional_includedir" != "X"; then
36224                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
36225                 haveit=
36226                 if test "X$additional_includedir" = "X/usr/local/include"; then
36227                   if test -n "$GCC"; then
36228                     case $host_os in
36229                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
36230                     esac
36231                   fi
36232                 fi
36233                 if test -z "$haveit"; then
36234                   for x in $CPPFLAGS $INCINTL; do
36235
36236   acl_save_prefix="$prefix"
36237   prefix="$acl_final_prefix"
36238   acl_save_exec_prefix="$exec_prefix"
36239   exec_prefix="$acl_final_exec_prefix"
36240   eval x=\"$x\"
36241   exec_prefix="$acl_save_exec_prefix"
36242   prefix="$acl_save_prefix"
36243
36244                     if test "X$x" = "X-I$additional_includedir"; then
36245                       haveit=yes
36246                       break
36247                     fi
36248                   done
36249                   if test -z "$haveit"; then
36250                     if test -d "$additional_includedir"; then
36251                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
36252                     fi
36253                   fi
36254                 fi
36255               fi
36256             fi
36257                         if test -n "$found_la"; then
36258                                                         save_libdir="$libdir"
36259               case "$found_la" in
36260                 */* | *\\*) . "$found_la" ;;
36261                 *) . "./$found_la" ;;
36262               esac
36263               libdir="$save_libdir"
36264                             for dep in $dependency_libs; do
36265                 case "$dep" in
36266                   -L*)
36267                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
36268                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
36269                       haveit=
36270                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
36271                         if test -n "$GCC"; then
36272                           case $host_os in
36273                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
36274                           esac
36275                         fi
36276                       fi
36277                       if test -z "$haveit"; then
36278                         haveit=
36279                         for x in $LDFLAGS $LIBINTL; do
36280
36281   acl_save_prefix="$prefix"
36282   prefix="$acl_final_prefix"
36283   acl_save_exec_prefix="$exec_prefix"
36284   exec_prefix="$acl_final_exec_prefix"
36285   eval x=\"$x\"
36286   exec_prefix="$acl_save_exec_prefix"
36287   prefix="$acl_save_prefix"
36288
36289                           if test "X$x" = "X-L$additional_libdir"; then
36290                             haveit=yes
36291                             break
36292                           fi
36293                         done
36294                         if test -z "$haveit"; then
36295                           if test -d "$additional_libdir"; then
36296                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
36297                           fi
36298                         fi
36299                         haveit=
36300                         for x in $LDFLAGS $LTLIBINTL; do
36301
36302   acl_save_prefix="$prefix"
36303   prefix="$acl_final_prefix"
36304   acl_save_exec_prefix="$exec_prefix"
36305   exec_prefix="$acl_final_exec_prefix"
36306   eval x=\"$x\"
36307   exec_prefix="$acl_save_exec_prefix"
36308   prefix="$acl_save_prefix"
36309
36310                           if test "X$x" = "X-L$additional_libdir"; then
36311                             haveit=yes
36312                             break
36313                           fi
36314                         done
36315                         if test -z "$haveit"; then
36316                           if test -d "$additional_libdir"; then
36317                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
36318                           fi
36319                         fi
36320                       fi
36321                     fi
36322                     ;;
36323                   -R*)
36324                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
36325                     if test "$enable_rpath" != no; then
36326                                                                   haveit=
36327                       for x in $rpathdirs; do
36328                         if test "X$x" = "X$dir"; then
36329                           haveit=yes
36330                           break
36331                         fi
36332                       done
36333                       if test -z "$haveit"; then
36334                         rpathdirs="$rpathdirs $dir"
36335                       fi
36336                                                                   haveit=
36337                       for x in $ltrpathdirs; do
36338                         if test "X$x" = "X$dir"; then
36339                           haveit=yes
36340                           break
36341                         fi
36342                       done
36343                       if test -z "$haveit"; then
36344                         ltrpathdirs="$ltrpathdirs $dir"
36345                       fi
36346                     fi
36347                     ;;
36348                   -l*)
36349                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
36350                     ;;
36351                   *.la)
36352                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
36353                     ;;
36354                   *)
36355                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
36356                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
36357                     ;;
36358                 esac
36359               done
36360             fi
36361           else
36362                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
36363             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
36364           fi
36365         fi
36366       fi
36367     done
36368   done
36369   if test "X$rpathdirs" != "X"; then
36370     if test -n "$hardcode_libdir_separator"; then
36371                         alldirs=
36372       for found_dir in $rpathdirs; do
36373         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
36374       done
36375             acl_save_libdir="$libdir"
36376       libdir="$alldirs"
36377       eval flag=\"$hardcode_libdir_flag_spec\"
36378       libdir="$acl_save_libdir"
36379       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
36380     else
36381             for found_dir in $rpathdirs; do
36382         acl_save_libdir="$libdir"
36383         libdir="$found_dir"
36384         eval flag=\"$hardcode_libdir_flag_spec\"
36385         libdir="$acl_save_libdir"
36386         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
36387       done
36388     fi
36389   fi
36390   if test "X$ltrpathdirs" != "X"; then
36391             for found_dir in $ltrpathdirs; do
36392       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
36393     done
36394   fi
36395
36396           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
36397 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
36398 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
36399   $as_echo_n "(cached) " >&6
36400 else
36401   gt_save_CPPFLAGS="$CPPFLAGS"
36402             CPPFLAGS="$CPPFLAGS $INCINTL"
36403             gt_save_LIBS="$LIBS"
36404             LIBS="$LIBS $LIBINTL"
36405                         cat >conftest.$ac_ext <<_ACEOF
36406 /* confdefs.h.  */
36407 _ACEOF
36408 cat confdefs.h >>conftest.$ac_ext
36409 cat >>conftest.$ac_ext <<_ACEOF
36410 /* end confdefs.h.  */
36411 #include <libintl.h>
36412 extern int _nl_msg_cat_cntr;
36413 extern
36414 #ifdef __cplusplus
36415 "C"
36416 #endif
36417 const char *_nl_expand_alias (const char *);
36418 int
36419 main ()
36420 {
36421 bindtextdomain ("", "");
36422 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
36423   ;
36424   return 0;
36425 }
36426 _ACEOF
36427 rm -f conftest.$ac_objext conftest$ac_exeext
36428 if { (ac_try="$ac_link"
36429 case "(($ac_try" in
36430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36431   *) ac_try_echo=$ac_try;;
36432 esac
36433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36434 $as_echo "$ac_try_echo") >&5
36435   (eval "$ac_link") 2>conftest.er1
36436   ac_status=$?
36437   grep -v '^ *+' conftest.er1 >conftest.err
36438   rm -f conftest.er1
36439   cat conftest.err >&5
36440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36441   (exit $ac_status); } && {
36442          test -z "$ac_c_werror_flag" ||
36443          test ! -s conftest.err
36444        } && test -s conftest$ac_exeext && {
36445          test "$cross_compiling" = yes ||
36446          $as_test_x conftest$ac_exeext
36447        }; then
36448   gt_cv_func_gnugettext1_libintl=yes
36449 else
36450   $as_echo "$as_me: failed program was:" >&5
36451 sed 's/^/| /' conftest.$ac_ext >&5
36452
36453         gt_cv_func_gnugettext1_libintl=no
36454 fi
36455
36456 rm -rf conftest.dSYM
36457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36458       conftest$ac_exeext conftest.$ac_ext
36459                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
36460               LIBS="$LIBS $LIBICONV"
36461               cat >conftest.$ac_ext <<_ACEOF
36462 /* confdefs.h.  */
36463 _ACEOF
36464 cat confdefs.h >>conftest.$ac_ext
36465 cat >>conftest.$ac_ext <<_ACEOF
36466 /* end confdefs.h.  */
36467 #include <libintl.h>
36468 extern int _nl_msg_cat_cntr;
36469 extern
36470 #ifdef __cplusplus
36471 "C"
36472 #endif
36473 const char *_nl_expand_alias (const char *);
36474 int
36475 main ()
36476 {
36477 bindtextdomain ("", "");
36478 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
36479   ;
36480   return 0;
36481 }
36482 _ACEOF
36483 rm -f conftest.$ac_objext conftest$ac_exeext
36484 if { (ac_try="$ac_link"
36485 case "(($ac_try" in
36486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36487   *) ac_try_echo=$ac_try;;
36488 esac
36489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36490 $as_echo "$ac_try_echo") >&5
36491   (eval "$ac_link") 2>conftest.er1
36492   ac_status=$?
36493   grep -v '^ *+' conftest.er1 >conftest.err
36494   rm -f conftest.er1
36495   cat conftest.err >&5
36496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36497   (exit $ac_status); } && {
36498          test -z "$ac_c_werror_flag" ||
36499          test ! -s conftest.err
36500        } && test -s conftest$ac_exeext && {
36501          test "$cross_compiling" = yes ||
36502          $as_test_x conftest$ac_exeext
36503        }; then
36504   LIBINTL="$LIBINTL $LIBICONV"
36505                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
36506                 gt_cv_func_gnugettext1_libintl=yes
36507
36508 else
36509   $as_echo "$as_me: failed program was:" >&5
36510 sed 's/^/| /' conftest.$ac_ext >&5
36511
36512
36513 fi
36514
36515 rm -rf conftest.dSYM
36516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36517       conftest$ac_exeext conftest.$ac_ext
36518             fi
36519             CPPFLAGS="$gt_save_CPPFLAGS"
36520             LIBS="$gt_save_LIBS"
36521 fi
36522 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
36523 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
36524         fi
36525
36526                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
36527            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
36528                 && test "$PACKAGE" != gettext-runtime \
36529                 && test "$PACKAGE" != gettext-tools; }; then
36530           gt_use_preinstalled_gnugettext=yes
36531         else
36532                     LIBINTL=
36533           LTLIBINTL=
36534           INCINTL=
36535         fi
36536
36537
36538
36539     if test -n "$INTL_MACOSX_LIBS"; then
36540       if test "$gt_use_preinstalled_gnugettext" = "yes" \
36541          || test "$nls_cv_use_gnu_gettext" = "yes"; then
36542                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
36543         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
36544       fi
36545     fi
36546
36547     if test "$gt_use_preinstalled_gnugettext" = "yes" \
36548        || test "$nls_cv_use_gnu_gettext" = "yes"; then
36549
36550 cat >>confdefs.h <<\_ACEOF
36551 #define ENABLE_NLS 1
36552 _ACEOF
36553
36554     else
36555       USE_NLS=no
36556     fi
36557   fi
36558
36559   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
36560 $as_echo_n "checking whether to use NLS... " >&6; }
36561   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
36562 $as_echo "$USE_NLS" >&6; }
36563   if test "$USE_NLS" = "yes"; then
36564     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
36565 $as_echo_n "checking where the gettext function comes from... " >&6; }
36566     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
36567       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
36568         gt_source="external libintl"
36569       else
36570         gt_source="libc"
36571       fi
36572     else
36573       gt_source="included intl directory"
36574     fi
36575     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
36576 $as_echo "$gt_source" >&6; }
36577   fi
36578
36579   if test "$USE_NLS" = "yes"; then
36580
36581     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
36582       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
36583         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
36584 $as_echo_n "checking how to link with libintl... " >&6; }
36585         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
36586 $as_echo "$LIBINTL" >&6; }
36587
36588   for element in $INCINTL; do
36589     haveit=
36590     for x in $CPPFLAGS; do
36591
36592   acl_save_prefix="$prefix"
36593   prefix="$acl_final_prefix"
36594   acl_save_exec_prefix="$exec_prefix"
36595   exec_prefix="$acl_final_exec_prefix"
36596   eval x=\"$x\"
36597   exec_prefix="$acl_save_exec_prefix"
36598   prefix="$acl_save_prefix"
36599
36600       if test "X$x" = "X$element"; then
36601         haveit=yes
36602         break
36603       fi
36604     done
36605     if test -z "$haveit"; then
36606       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
36607     fi
36608   done
36609
36610       fi
36611
36612
36613 cat >>confdefs.h <<\_ACEOF
36614 #define HAVE_GETTEXT 1
36615 _ACEOF
36616
36617
36618 cat >>confdefs.h <<\_ACEOF
36619 #define HAVE_DCGETTEXT 1
36620 _ACEOF
36621
36622     fi
36623
36624         POSUB=po
36625   fi
36626
36627
36628
36629     INTLLIBS="$LIBINTL"
36630
36631
36632
36633
36634
36635
36636
36637 #
36638 # Devices
36639 #
36640
36641     case "$host" in
36642         sparc-sun-solaris2.10) # Solaris 10
36643         # curl is not in the LD_LIBRARY_PATH on Solaris 10, so we search
36644         # for it in a few common paths; we then extract the -L flags and
36645         # translate them to -R flags, as required by the runtime linker.
36646         # Extract the first word of "curl-config", so it can be a program name with args.
36647 set dummy curl-config; ac_word=$2
36648 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36649 $as_echo_n "checking for $ac_word... " >&6; }
36650 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
36651   $as_echo_n "(cached) " >&6
36652 else
36653   case $CURL_CONFIG in
36654   [\\/]* | ?:[\\/]*)
36655   ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
36656   ;;
36657   *)
36658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36659 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
36660 for as_dir in $as_dummy
36661 do
36662   IFS=$as_save_IFS
36663   test -z "$as_dir" && as_dir=.
36664   for ac_exec_ext in '' $ac_executable_extensions; do
36665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36666     ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36667     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36668     break 2
36669   fi
36670 done
36671 done
36672 IFS=$as_save_IFS
36673
36674   ;;
36675 esac
36676 fi
36677 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
36678 if test -n "$CURL_CONFIG"; then
36679   { $as_echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
36680 $as_echo "$CURL_CONFIG" >&6; }
36681 else
36682   { $as_echo "$as_me:$LINENO: result: no" >&5
36683 $as_echo "no" >&6; }
36684 fi
36685
36686
36687         if test -n "$CURL_CONFIG"; then
36688             curlflags=`$CURL_CONFIG --libs 2>/dev/null`
36689             for flag in curlflags; do
36690                 case $flag in
36691                     -L*) LDFLAGS="$LDFLAGS "`echo "x$flag" | sed -e 's/^x-L/-R/'`;;
36692                 esac
36693             done
36694         fi
36695         ;;
36696     esac
36697
36698
36699
36700
36701
36702
36703
36704
36705
36706
36707
36708
36709
36710
36711
36712
36713
36714
36715
36716
36717
36718
36719
36720
36721
36722
36723
36724
36725
36726
36727
36728
36729
36730
36731
36732
36733
36734
36735
36736 # Check whether --with-libcurl was given.
36737 if test "${with_libcurl+set}" = set; then
36738   withval=$with_libcurl; _libcurl_with=$withval
36739 else
36740   _libcurl_with=yes
36741 fi
36742
36743
36744   if test "$_libcurl_with" != "no" ; then
36745
36746      for ac_prog in gawk mawk nawk awk
36747 do
36748   # Extract the first word of "$ac_prog", so it can be a program name with args.
36749 set dummy $ac_prog; ac_word=$2
36750 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36751 $as_echo_n "checking for $ac_word... " >&6; }
36752 if test "${ac_cv_prog_AWK+set}" = set; then
36753   $as_echo_n "(cached) " >&6
36754 else
36755   if test -n "$AWK"; then
36756   ac_cv_prog_AWK="$AWK" # Let the user override the test.
36757 else
36758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36759 for as_dir in $PATH
36760 do
36761   IFS=$as_save_IFS
36762   test -z "$as_dir" && as_dir=.
36763   for ac_exec_ext in '' $ac_executable_extensions; do
36764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36765     ac_cv_prog_AWK="$ac_prog"
36766     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36767     break 2
36768   fi
36769 done
36770 done
36771 IFS=$as_save_IFS
36772
36773 fi
36774 fi
36775 AWK=$ac_cv_prog_AWK
36776 if test -n "$AWK"; then
36777   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
36778 $as_echo "$AWK" >&6; }
36779 else
36780   { $as_echo "$as_me:$LINENO: result: no" >&5
36781 $as_echo "no" >&6; }
36782 fi
36783
36784
36785   test -n "$AWK" && break
36786 done
36787
36788
36789      _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
36790
36791      _libcurl_try_link=yes
36792
36793      if test -d "$_libcurl_with" ; then
36794         LIBCURL_CPPFLAGS="-I$withval/include"
36795         _libcurl_ldflags="-L$withval/lib"
36796         # Extract the first word of "curl-config", so it can be a program name with args.
36797 set dummy curl-config; ac_word=$2
36798 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36799 $as_echo_n "checking for $ac_word... " >&6; }
36800 if test "${ac_cv_path__libcurl_config+set}" = set; then
36801   $as_echo_n "(cached) " >&6
36802 else
36803   case $_libcurl_config in
36804   [\\/]* | ?:[\\/]*)
36805   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
36806   ;;
36807   *)
36808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36809 for as_dir in "$withval/bin"
36810 do
36811   IFS=$as_save_IFS
36812   test -z "$as_dir" && as_dir=.
36813   for ac_exec_ext in '' $ac_executable_extensions; do
36814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36815     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
36816     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36817     break 2
36818   fi
36819 done
36820 done
36821 IFS=$as_save_IFS
36822
36823   test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
36824   ;;
36825 esac
36826 fi
36827 _libcurl_config=$ac_cv_path__libcurl_config
36828 if test -n "$_libcurl_config"; then
36829   { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
36830 $as_echo "$_libcurl_config" >&6; }
36831 else
36832   { $as_echo "$as_me:$LINENO: result: no" >&5
36833 $as_echo "no" >&6; }
36834 fi
36835
36836
36837      else
36838         # Extract the first word of "curl-config", so it can be a program name with args.
36839 set dummy curl-config; ac_word=$2
36840 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36841 $as_echo_n "checking for $ac_word... " >&6; }
36842 if test "${ac_cv_path__libcurl_config+set}" = set; then
36843   $as_echo_n "(cached) " >&6
36844 else
36845   case $_libcurl_config in
36846   [\\/]* | ?:[\\/]*)
36847   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
36848   ;;
36849   *)
36850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36851 for as_dir in $PATH
36852 do
36853   IFS=$as_save_IFS
36854   test -z "$as_dir" && as_dir=.
36855   for ac_exec_ext in '' $ac_executable_extensions; do
36856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36857     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
36858     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36859     break 2
36860   fi
36861 done
36862 done
36863 IFS=$as_save_IFS
36864
36865   ;;
36866 esac
36867 fi
36868 _libcurl_config=$ac_cv_path__libcurl_config
36869 if test -n "$_libcurl_config"; then
36870   { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
36871 $as_echo "$_libcurl_config" >&6; }
36872 else
36873   { $as_echo "$as_me:$LINENO: result: no" >&5
36874 $as_echo "no" >&6; }
36875 fi
36876
36877
36878      fi
36879
36880      if test x$_libcurl_config != "x" ; then
36881         { $as_echo "$as_me:$LINENO: checking for the version of libcurl" >&5
36882 $as_echo_n "checking for the version of libcurl... " >&6; }
36883 if test "${libcurl_cv_lib_curl_version+set}" = set; then
36884   $as_echo_n "(cached) " >&6
36885 else
36886   libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
36887 fi
36888 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_version" >&5
36889 $as_echo "$libcurl_cv_lib_curl_version" >&6; }
36890
36891         _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
36892         _libcurl_wanted=`echo 7.10.0 | $_libcurl_version_parse`
36893
36894         if test $_libcurl_wanted -gt 0 ; then
36895            { $as_echo "$as_me:$LINENO: checking for libcurl >= version 7.10.0" >&5
36896 $as_echo_n "checking for libcurl >= version 7.10.0... " >&6; }
36897 if test "${libcurl_cv_lib_version_ok+set}" = set; then
36898   $as_echo_n "(cached) " >&6
36899 else
36900
36901               if test $_libcurl_version -ge $_libcurl_wanted ; then
36902                  libcurl_cv_lib_version_ok=yes
36903               else
36904                  libcurl_cv_lib_version_ok=no
36905               fi
36906
36907 fi
36908 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_version_ok" >&5
36909 $as_echo "$libcurl_cv_lib_version_ok" >&6; }
36910         fi
36911
36912         if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
36913            if test x"$LIBCURL_CPPFLAGS" = "x" ; then
36914               LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
36915            fi
36916            if test x"$LIBCURL" = "x" ; then
36917               LIBCURL=`$_libcurl_config --libs`
36918
36919               # This is so silly, but Apple actually has a bug in their
36920               # curl-config script.  Fixed in Tiger, but there are still
36921               # lots of Panther installs around.
36922               case "${host}" in
36923                  powerpc-apple-darwin7*)
36924                     LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
36925                  ;;
36926               esac
36927            fi
36928
36929            # All curl-config scripts support --feature
36930            _libcurl_features=`$_libcurl_config --feature`
36931
36932            # Is it modern enough to have --protocols? (7.12.4)
36933            if test $_libcurl_version -ge 461828 ; then
36934               _libcurl_protocols=`$_libcurl_config --protocols`
36935            fi
36936         else
36937            _libcurl_try_link=no
36938         fi
36939
36940         unset _libcurl_wanted
36941      fi
36942
36943      if test $_libcurl_try_link = yes ; then
36944
36945         # we didn't find curl-config, so let's see if the user-supplied
36946         # link line (or failing that, "-lcurl") is enough.
36947         LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
36948
36949         { $as_echo "$as_me:$LINENO: checking whether libcurl is usable" >&5
36950 $as_echo_n "checking whether libcurl is usable... " >&6; }
36951 if test "${libcurl_cv_lib_curl_usable+set}" = set; then
36952   $as_echo_n "(cached) " >&6
36953 else
36954
36955            _libcurl_save_cppflags=$CPPFLAGS
36956            CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
36957            _libcurl_save_libs=$LIBS
36958            LIBS="$LIBCURL $LIBS"
36959
36960            cat >conftest.$ac_ext <<_ACEOF
36961 /* confdefs.h.  */
36962 _ACEOF
36963 cat confdefs.h >>conftest.$ac_ext
36964 cat >>conftest.$ac_ext <<_ACEOF
36965 /* end confdefs.h.  */
36966 #include <curl/curl.h>
36967 int
36968 main ()
36969 {
36970
36971 /* Try and use a few common options to force a failure if we are
36972    missing symbols or can't link. */
36973 int x;
36974 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
36975 x=CURL_ERROR_SIZE;
36976 x=CURLOPT_WRITEFUNCTION;
36977 x=CURLOPT_FILE;
36978 x=CURLOPT_ERRORBUFFER;
36979 x=CURLOPT_STDERR;
36980 x=CURLOPT_VERBOSE;
36981
36982   ;
36983   return 0;
36984 }
36985 _ACEOF
36986 rm -f conftest.$ac_objext conftest$ac_exeext
36987 if { (ac_try="$ac_link"
36988 case "(($ac_try" in
36989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36990   *) ac_try_echo=$ac_try;;
36991 esac
36992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36993 $as_echo "$ac_try_echo") >&5
36994   (eval "$ac_link") 2>conftest.er1
36995   ac_status=$?
36996   grep -v '^ *+' conftest.er1 >conftest.err
36997   rm -f conftest.er1
36998   cat conftest.err >&5
36999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37000   (exit $ac_status); } && {
37001          test -z "$ac_c_werror_flag" ||
37002          test ! -s conftest.err
37003        } && test -s conftest$ac_exeext && {
37004          test "$cross_compiling" = yes ||
37005          $as_test_x conftest$ac_exeext
37006        }; then
37007   libcurl_cv_lib_curl_usable=yes
37008 else
37009   $as_echo "$as_me: failed program was:" >&5
37010 sed 's/^/| /' conftest.$ac_ext >&5
37011
37012         libcurl_cv_lib_curl_usable=no
37013 fi
37014
37015 rm -rf conftest.dSYM
37016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37017       conftest$ac_exeext conftest.$ac_ext
37018
37019            CPPFLAGS=$_libcurl_save_cppflags
37020            LIBS=$_libcurl_save_libs
37021            unset _libcurl_save_cppflags
37022            unset _libcurl_save_libs
37023
37024 fi
37025 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_usable" >&5
37026 $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
37027
37028         if test $libcurl_cv_lib_curl_usable = yes ; then
37029
37030            # Does curl_free() exist in this version of libcurl?
37031            # If not, fake it with free()
37032
37033            _libcurl_save_cppflags=$CPPFLAGS
37034            CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
37035            _libcurl_save_libs=$LIBS
37036            LIBS="$LIBS $LIBCURL"
37037
37038            { $as_echo "$as_me:$LINENO: checking for curl_free" >&5
37039 $as_echo_n "checking for curl_free... " >&6; }
37040 if test "${ac_cv_func_curl_free+set}" = set; then
37041   $as_echo_n "(cached) " >&6
37042 else
37043   cat >conftest.$ac_ext <<_ACEOF
37044 /* confdefs.h.  */
37045 _ACEOF
37046 cat confdefs.h >>conftest.$ac_ext
37047 cat >>conftest.$ac_ext <<_ACEOF
37048 /* end confdefs.h.  */
37049 /* Define curl_free to an innocuous variant, in case <limits.h> declares curl_free.
37050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37051 #define curl_free innocuous_curl_free
37052
37053 /* System header to define __stub macros and hopefully few prototypes,
37054     which can conflict with char curl_free (); below.
37055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37056     <limits.h> exists even on freestanding compilers.  */
37057
37058 #ifdef __STDC__
37059 # include <limits.h>
37060 #else
37061 # include <assert.h>
37062 #endif
37063
37064 #undef curl_free
37065
37066 /* Override any GCC internal prototype to avoid an error.
37067    Use char because int might match the return type of a GCC
37068    builtin and then its argument prototype would still apply.  */
37069 #ifdef __cplusplus
37070 extern "C"
37071 #endif
37072 char curl_free ();
37073 /* The GNU C library defines this for functions which it implements
37074     to always fail with ENOSYS.  Some functions are actually named
37075     something starting with __ and the normal name is an alias.  */
37076 #if defined __stub_curl_free || defined __stub___curl_free
37077 choke me
37078 #endif
37079
37080 int
37081 main ()
37082 {
37083 return curl_free ();
37084   ;
37085   return 0;
37086 }
37087 _ACEOF
37088 rm -f conftest.$ac_objext conftest$ac_exeext
37089 if { (ac_try="$ac_link"
37090 case "(($ac_try" in
37091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37092   *) ac_try_echo=$ac_try;;
37093 esac
37094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37095 $as_echo "$ac_try_echo") >&5
37096   (eval "$ac_link") 2>conftest.er1
37097   ac_status=$?
37098   grep -v '^ *+' conftest.er1 >conftest.err
37099   rm -f conftest.er1
37100   cat conftest.err >&5
37101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37102   (exit $ac_status); } && {
37103          test -z "$ac_c_werror_flag" ||
37104          test ! -s conftest.err
37105        } && test -s conftest$ac_exeext && {
37106          test "$cross_compiling" = yes ||
37107          $as_test_x conftest$ac_exeext
37108        }; then
37109   ac_cv_func_curl_free=yes
37110 else
37111   $as_echo "$as_me: failed program was:" >&5
37112 sed 's/^/| /' conftest.$ac_ext >&5
37113
37114         ac_cv_func_curl_free=no
37115 fi
37116
37117 rm -rf conftest.dSYM
37118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37119       conftest$ac_exeext conftest.$ac_ext
37120 fi
37121 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_curl_free" >&5
37122 $as_echo "$ac_cv_func_curl_free" >&6; }
37123 if test "x$ac_cv_func_curl_free" = x""yes; then
37124   :
37125 else
37126
37127 cat >>confdefs.h <<\_ACEOF
37128 #define curl_free free
37129 _ACEOF
37130
37131 fi
37132
37133
37134            CPPFLAGS=$_libcurl_save_cppflags
37135            LIBS=$_libcurl_save_libs
37136            unset _libcurl_save_cppflags
37137            unset _libcurl_save_libs
37138
37139
37140 cat >>confdefs.h <<\_ACEOF
37141 #define HAVE_LIBCURL 1
37142 _ACEOF
37143
37144
37145
37146
37147            for _libcurl_feature in $_libcurl_features ; do
37148               cat >>confdefs.h <<_ACEOF
37149 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
37150 _ACEOF
37151
37152               eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
37153            done
37154
37155            if test "x$_libcurl_protocols" = "x" ; then
37156
37157               # We don't have --protocols, so just assume that all
37158               # protocols are available
37159               _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
37160
37161               if test x$libcurl_feature_SSL = xyes ; then
37162                  _libcurl_protocols="$_libcurl_protocols HTTPS"
37163
37164                  # FTPS wasn't standards-compliant until version
37165                  # 7.11.0
37166                  if test $_libcurl_version -ge 461568; then
37167                     _libcurl_protocols="$_libcurl_protocols FTPS"
37168                  fi
37169               fi
37170            fi
37171
37172            for _libcurl_protocol in $_libcurl_protocols ; do
37173               cat >>confdefs.h <<_ACEOF
37174 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
37175 _ACEOF
37176
37177               eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
37178            done
37179         else
37180            unset LIBCURL
37181            unset LIBCURL_CPPFLAGS
37182         fi
37183      fi
37184
37185      unset _libcurl_try_link
37186      unset _libcurl_version_parse
37187      unset _libcurl_config
37188      unset _libcurl_feature
37189      unset _libcurl_features
37190      unset _libcurl_protocol
37191      unset _libcurl_protocols
37192      unset _libcurl_version
37193      unset _libcurl_ldflags
37194   fi
37195
37196   if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
37197      # This is the IF-NO path
37198      HAVE_CURL=no
37199   else
37200      # This is the IF-YES path
37201      HAVE_CURL=yes
37202   fi
37203
37204   unset _libcurl_with
37205
37206     if test x"$HAVE_CURL" = x"yes"; then
37207         LIBS="$LIBCURL $LIBS"
37208
37209         CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
37210
37211
37212
37213
37214     { $as_echo "$as_me:$LINENO: checking for curl_off_t" >&5
37215 $as_echo_n "checking for curl_off_t... " >&6; }
37216 if test "${ac_cv_type_curl_off_t+set}" = set; then
37217   $as_echo_n "(cached) " >&6
37218 else
37219   ac_cv_type_curl_off_t=no
37220 cat >conftest.$ac_ext <<_ACEOF
37221 /* confdefs.h.  */
37222 _ACEOF
37223 cat confdefs.h >>conftest.$ac_ext
37224 cat >>conftest.$ac_ext <<_ACEOF
37225 /* end confdefs.h.  */
37226
37227 #ifdef HAVE_SYS_TYPES_H
37228 #include <sys/types.h>
37229 #endif
37230 #ifdef STDC_HEADERS
37231 #include <stdlib.h>
37232 #include <stddef.h>
37233 #endif
37234 #include <curl/curl.h>
37235
37236
37237
37238 int
37239 main ()
37240 {
37241 if (sizeof (curl_off_t))
37242        return 0;
37243   ;
37244   return 0;
37245 }
37246 _ACEOF
37247 rm -f conftest.$ac_objext
37248 if { (ac_try="$ac_compile"
37249 case "(($ac_try" in
37250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37251   *) ac_try_echo=$ac_try;;
37252 esac
37253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37254 $as_echo "$ac_try_echo") >&5
37255   (eval "$ac_compile") 2>conftest.er1
37256   ac_status=$?
37257   grep -v '^ *+' conftest.er1 >conftest.err
37258   rm -f conftest.er1
37259   cat conftest.err >&5
37260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261   (exit $ac_status); } && {
37262          test -z "$ac_c_werror_flag" ||
37263          test ! -s conftest.err
37264        } && test -s conftest.$ac_objext; then
37265   cat >conftest.$ac_ext <<_ACEOF
37266 /* confdefs.h.  */
37267 _ACEOF
37268 cat confdefs.h >>conftest.$ac_ext
37269 cat >>conftest.$ac_ext <<_ACEOF
37270 /* end confdefs.h.  */
37271
37272 #ifdef HAVE_SYS_TYPES_H
37273 #include <sys/types.h>
37274 #endif
37275 #ifdef STDC_HEADERS
37276 #include <stdlib.h>
37277 #include <stddef.h>
37278 #endif
37279 #include <curl/curl.h>
37280
37281
37282
37283 int
37284 main ()
37285 {
37286 if (sizeof ((curl_off_t)))
37287           return 0;
37288   ;
37289   return 0;
37290 }
37291 _ACEOF
37292 rm -f conftest.$ac_objext
37293 if { (ac_try="$ac_compile"
37294 case "(($ac_try" in
37295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37296   *) ac_try_echo=$ac_try;;
37297 esac
37298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37299 $as_echo "$ac_try_echo") >&5
37300   (eval "$ac_compile") 2>conftest.er1
37301   ac_status=$?
37302   grep -v '^ *+' conftest.er1 >conftest.err
37303   rm -f conftest.er1
37304   cat conftest.err >&5
37305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37306   (exit $ac_status); } && {
37307          test -z "$ac_c_werror_flag" ||
37308          test ! -s conftest.err
37309        } && test -s conftest.$ac_objext; then
37310   :
37311 else
37312   $as_echo "$as_me: failed program was:" >&5
37313 sed 's/^/| /' conftest.$ac_ext >&5
37314
37315         ac_cv_type_curl_off_t=yes
37316 fi
37317
37318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37319 else
37320   $as_echo "$as_me: failed program was:" >&5
37321 sed 's/^/| /' conftest.$ac_ext >&5
37322
37323
37324 fi
37325
37326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37327 fi
37328 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_curl_off_t" >&5
37329 $as_echo "$ac_cv_type_curl_off_t" >&6; }
37330 if test "x$ac_cv_type_curl_off_t" = x""yes; then
37331   :
37332 else
37333
37334
37335 cat >>confdefs.h <<\_ACEOF
37336 #define curl_off_t off_t
37337 _ACEOF
37338
37339
37340 fi
37341
37342
37343     fi
37344
37345
37346     HAVE_HMAC=yes
37347
37348 { $as_echo "$as_me:$LINENO: checking for HMAC_CTX_init in -lcrypto" >&5
37349 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
37350 if test "${ac_cv_lib_crypto_HMAC_CTX_init+set}" = set; then
37351   $as_echo_n "(cached) " >&6
37352 else
37353   ac_check_lib_save_LIBS=$LIBS
37354 LIBS="-lcrypto  $LIBS"
37355 cat >conftest.$ac_ext <<_ACEOF
37356 /* confdefs.h.  */
37357 _ACEOF
37358 cat confdefs.h >>conftest.$ac_ext
37359 cat >>conftest.$ac_ext <<_ACEOF
37360 /* end confdefs.h.  */
37361
37362 /* Override any GCC internal prototype to avoid an error.
37363    Use char because int might match the return type of a GCC
37364    builtin and then its argument prototype would still apply.  */
37365 #ifdef __cplusplus
37366 extern "C"
37367 #endif
37368 char HMAC_CTX_init ();
37369 int
37370 main ()
37371 {
37372 return HMAC_CTX_init ();
37373   ;
37374   return 0;
37375 }
37376 _ACEOF
37377 rm -f conftest.$ac_objext conftest$ac_exeext
37378 if { (ac_try="$ac_link"
37379 case "(($ac_try" in
37380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37381   *) ac_try_echo=$ac_try;;
37382 esac
37383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37384 $as_echo "$ac_try_echo") >&5
37385   (eval "$ac_link") 2>conftest.er1
37386   ac_status=$?
37387   grep -v '^ *+' conftest.er1 >conftest.err
37388   rm -f conftest.er1
37389   cat conftest.err >&5
37390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37391   (exit $ac_status); } && {
37392          test -z "$ac_c_werror_flag" ||
37393          test ! -s conftest.err
37394        } && test -s conftest$ac_exeext && {
37395          test "$cross_compiling" = yes ||
37396          $as_test_x conftest$ac_exeext
37397        }; then
37398   ac_cv_lib_crypto_HMAC_CTX_init=yes
37399 else
37400   $as_echo "$as_me: failed program was:" >&5
37401 sed 's/^/| /' conftest.$ac_ext >&5
37402
37403         ac_cv_lib_crypto_HMAC_CTX_init=no
37404 fi
37405
37406 rm -rf conftest.dSYM
37407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37408       conftest$ac_exeext conftest.$ac_ext
37409 LIBS=$ac_check_lib_save_LIBS
37410 fi
37411 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
37412 $as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
37413 if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = x""yes; then
37414   cat >>confdefs.h <<_ACEOF
37415 #define HAVE_LIBCRYPTO 1
37416 _ACEOF
37417
37418   LIBS="-lcrypto $LIBS"
37419
37420 else
37421   HAVE_HMAC=no
37422 fi
37423
37424
37425     found_hmac_h=no
37426
37427
37428
37429 for ac_header in openssl/hmac.h crypto/hmac.h hmac.h
37430 do
37431 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37433   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
37434 $as_echo_n "checking for $ac_header... " >&6; }
37435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37436   $as_echo_n "(cached) " >&6
37437 fi
37438 ac_res=`eval 'as_val=${'$as_ac_Header'}
37439                  $as_echo "$as_val"'`
37440                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37441 $as_echo "$ac_res" >&6; }
37442 else
37443   # Is the header compilable?
37444 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
37445 $as_echo_n "checking $ac_header usability... " >&6; }
37446 cat >conftest.$ac_ext <<_ACEOF
37447 /* confdefs.h.  */
37448 _ACEOF
37449 cat confdefs.h >>conftest.$ac_ext
37450 cat >>conftest.$ac_ext <<_ACEOF
37451 /* end confdefs.h.  */
37452 $ac_includes_default
37453 #include <$ac_header>
37454 _ACEOF
37455 rm -f conftest.$ac_objext
37456 if { (ac_try="$ac_compile"
37457 case "(($ac_try" in
37458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37459   *) ac_try_echo=$ac_try;;
37460 esac
37461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37462 $as_echo "$ac_try_echo") >&5
37463   (eval "$ac_compile") 2>conftest.er1
37464   ac_status=$?
37465   grep -v '^ *+' conftest.er1 >conftest.err
37466   rm -f conftest.er1
37467   cat conftest.err >&5
37468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37469   (exit $ac_status); } && {
37470          test -z "$ac_c_werror_flag" ||
37471          test ! -s conftest.err
37472        } && test -s conftest.$ac_objext; then
37473   ac_header_compiler=yes
37474 else
37475   $as_echo "$as_me: failed program was:" >&5
37476 sed 's/^/| /' conftest.$ac_ext >&5
37477
37478         ac_header_compiler=no
37479 fi
37480
37481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37482 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37483 $as_echo "$ac_header_compiler" >&6; }
37484
37485 # Is the header present?
37486 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
37487 $as_echo_n "checking $ac_header presence... " >&6; }
37488 cat >conftest.$ac_ext <<_ACEOF
37489 /* confdefs.h.  */
37490 _ACEOF
37491 cat confdefs.h >>conftest.$ac_ext
37492 cat >>conftest.$ac_ext <<_ACEOF
37493 /* end confdefs.h.  */
37494 #include <$ac_header>
37495 _ACEOF
37496 if { (ac_try="$ac_cpp conftest.$ac_ext"
37497 case "(($ac_try" in
37498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37499   *) ac_try_echo=$ac_try;;
37500 esac
37501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37502 $as_echo "$ac_try_echo") >&5
37503   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37504   ac_status=$?
37505   grep -v '^ *+' conftest.er1 >conftest.err
37506   rm -f conftest.er1
37507   cat conftest.err >&5
37508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37509   (exit $ac_status); } >/dev/null && {
37510          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37511          test ! -s conftest.err
37512        }; then
37513   ac_header_preproc=yes
37514 else
37515   $as_echo "$as_me: failed program was:" >&5
37516 sed 's/^/| /' conftest.$ac_ext >&5
37517
37518   ac_header_preproc=no
37519 fi
37520
37521 rm -f conftest.err conftest.$ac_ext
37522 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37523 $as_echo "$ac_header_preproc" >&6; }
37524
37525 # So?  What about this header?
37526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37527   yes:no: )
37528     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37529 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37530     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37531 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37532     ac_header_preproc=yes
37533     ;;
37534   no:yes:* )
37535     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37536 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37537     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37538 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37539     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37540 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37541     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37542 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37543     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37544 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37545     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37546 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37547
37548     ;;
37549 esac
37550 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
37551 $as_echo_n "checking for $ac_header... " >&6; }
37552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37553   $as_echo_n "(cached) " >&6
37554 else
37555   eval "$as_ac_Header=\$ac_header_preproc"
37556 fi
37557 ac_res=`eval 'as_val=${'$as_ac_Header'}
37558                  $as_echo "$as_val"'`
37559                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37560 $as_echo "$ac_res" >&6; }
37561
37562 fi
37563 as_val=`eval 'as_val=${'$as_ac_Header'}
37564                  $as_echo "$as_val"'`
37565    if test "x$as_val" = x""yes; then
37566   cat >>confdefs.h <<_ACEOF
37567 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37568 _ACEOF
37569  found_hmac_h=yes; break
37570 fi
37571
37572 done
37573
37574     if test x"$found_hmac_h" != x"yes"; then
37575         HAVE_HMAC=no
37576     fi
37577
37578
37579
37580
37581
37582     # Check whether --enable-s3-device was given.
37583 if test "${enable_s3_device+set}" = set; then
37584   enableval=$enable_s3_device;  WANT_S3_DEVICE=$enableval
37585 else
37586    WANT_S3_DEVICE=maybe
37587 fi
37588
37589
37590     { $as_echo "$as_me:$LINENO: checking whether to include the Amazon S3 device" >&5
37591 $as_echo_n "checking whether to include the Amazon S3 device... " >&6; }
37592     # if the user didn't specify 'no', then check for support
37593     if test x"$WANT_S3_DEVICE" != x"no"; then
37594         if test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"; then
37595             WANT_S3_DEVICE=yes
37596         else
37597             # no support -- if the user explicitly enabled the device,
37598             # then this is an error
37599             if test x"$WANT_S3_DEVICE" = x"yes"; then
37600                 { $as_echo "$as_me:$LINENO: result: no" >&5
37601 $as_echo "no" >&6; }
37602                 { { $as_echo "$as_me:$LINENO: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&5
37603 $as_echo "$as_me: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&2;}
37604    { (exit 1); exit 1; }; }
37605             else
37606                 WANT_S3_DEVICE=no
37607             fi
37608         fi
37609     fi
37610     { $as_echo "$as_me:$LINENO: result: $WANT_S3_DEVICE" >&5
37611 $as_echo "$WANT_S3_DEVICE" >&6; }
37612
37613      if test x"$WANT_S3_DEVICE" = x"yes"; then
37614   WANT_S3_DEVICE_TRUE=
37615   WANT_S3_DEVICE_FALSE='#'
37616 else
37617   WANT_S3_DEVICE_TRUE='#'
37618   WANT_S3_DEVICE_FALSE=
37619 fi
37620
37621
37622     # Now handle any setup for S3, if we want it.
37623     if test x"$WANT_S3_DEVICE" = x"yes"; then
37624
37625 cat >>confdefs.h <<\_ACEOF
37626 #define WANT_S3_DEVICE /**/
37627 _ACEOF
37628
37629     fi
37630
37631
37632
37633
37634
37635 for ac_header in \
37636         linux/zftape.h \
37637         sys/tape.h \
37638         sys/mtio.h \
37639
37640 do
37641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37643   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
37644 $as_echo_n "checking for $ac_header... " >&6; }
37645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37646   $as_echo_n "(cached) " >&6
37647 fi
37648 ac_res=`eval 'as_val=${'$as_ac_Header'}
37649                  $as_echo "$as_val"'`
37650                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37651 $as_echo "$ac_res" >&6; }
37652 else
37653   # Is the header compilable?
37654 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
37655 $as_echo_n "checking $ac_header usability... " >&6; }
37656 cat >conftest.$ac_ext <<_ACEOF
37657 /* confdefs.h.  */
37658 _ACEOF
37659 cat confdefs.h >>conftest.$ac_ext
37660 cat >>conftest.$ac_ext <<_ACEOF
37661 /* end confdefs.h.  */
37662 $ac_includes_default
37663 #include <$ac_header>
37664 _ACEOF
37665 rm -f conftest.$ac_objext
37666 if { (ac_try="$ac_compile"
37667 case "(($ac_try" in
37668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37669   *) ac_try_echo=$ac_try;;
37670 esac
37671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37672 $as_echo "$ac_try_echo") >&5
37673   (eval "$ac_compile") 2>conftest.er1
37674   ac_status=$?
37675   grep -v '^ *+' conftest.er1 >conftest.err
37676   rm -f conftest.er1
37677   cat conftest.err >&5
37678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37679   (exit $ac_status); } && {
37680          test -z "$ac_c_werror_flag" ||
37681          test ! -s conftest.err
37682        } && test -s conftest.$ac_objext; then
37683   ac_header_compiler=yes
37684 else
37685   $as_echo "$as_me: failed program was:" >&5
37686 sed 's/^/| /' conftest.$ac_ext >&5
37687
37688         ac_header_compiler=no
37689 fi
37690
37691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37692 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37693 $as_echo "$ac_header_compiler" >&6; }
37694
37695 # Is the header present?
37696 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
37697 $as_echo_n "checking $ac_header presence... " >&6; }
37698 cat >conftest.$ac_ext <<_ACEOF
37699 /* confdefs.h.  */
37700 _ACEOF
37701 cat confdefs.h >>conftest.$ac_ext
37702 cat >>conftest.$ac_ext <<_ACEOF
37703 /* end confdefs.h.  */
37704 #include <$ac_header>
37705 _ACEOF
37706 if { (ac_try="$ac_cpp conftest.$ac_ext"
37707 case "(($ac_try" in
37708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37709   *) ac_try_echo=$ac_try;;
37710 esac
37711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37712 $as_echo "$ac_try_echo") >&5
37713   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37714   ac_status=$?
37715   grep -v '^ *+' conftest.er1 >conftest.err
37716   rm -f conftest.er1
37717   cat conftest.err >&5
37718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37719   (exit $ac_status); } >/dev/null && {
37720          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37721          test ! -s conftest.err
37722        }; then
37723   ac_header_preproc=yes
37724 else
37725   $as_echo "$as_me: failed program was:" >&5
37726 sed 's/^/| /' conftest.$ac_ext >&5
37727
37728   ac_header_preproc=no
37729 fi
37730
37731 rm -f conftest.err conftest.$ac_ext
37732 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37733 $as_echo "$ac_header_preproc" >&6; }
37734
37735 # So?  What about this header?
37736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37737   yes:no: )
37738     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37739 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37740     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37741 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37742     ac_header_preproc=yes
37743     ;;
37744   no:yes:* )
37745     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37746 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37747     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37748 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37749     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37750 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37751     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37752 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37753     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37754 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37755     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37756 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37757
37758     ;;
37759 esac
37760 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
37761 $as_echo_n "checking for $ac_header... " >&6; }
37762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37763   $as_echo_n "(cached) " >&6
37764 else
37765   eval "$as_ac_Header=\$ac_header_preproc"
37766 fi
37767 ac_res=`eval 'as_val=${'$as_ac_Header'}
37768                  $as_echo "$as_val"'`
37769                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37770 $as_echo "$ac_res" >&6; }
37771
37772 fi
37773 as_val=`eval 'as_val=${'$as_ac_Header'}
37774                  $as_echo "$as_val"'`
37775    if test "x$as_val" = x""yes; then
37776   cat >>confdefs.h <<_ACEOF
37777 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37778 _ACEOF
37779
37780 fi
37781
37782 done
37783
37784
37785     # check for MTIOCTOP, an indicator of POSIX tape support
37786     { $as_echo "$as_me:$LINENO: checking for MTIOCTOP" >&5
37787 $as_echo_n "checking for MTIOCTOP... " >&6; }
37788 if test "${amanda_cv_HAVE_MTIOCTOP+set}" = set; then
37789   $as_echo_n "(cached) " >&6
37790 else
37791
37792         cat >conftest.$ac_ext <<_ACEOF
37793 /* confdefs.h.  */
37794 _ACEOF
37795 cat confdefs.h >>conftest.$ac_ext
37796 cat >>conftest.$ac_ext <<_ACEOF
37797 /* end confdefs.h.  */
37798
37799 #ifdef HAVE_SYS_TAPE_H
37800 # include <sys/tape.h>
37801 #endif
37802 #ifdef HAVE_SYS_MTIO_H
37803 # include <sys/mtio.h>
37804 #endif
37805 #ifndef MTIOCTOP
37806 #error MTIOCTOP not defined
37807 #endif
37808
37809 int
37810 main ()
37811 {
37812  int dummy = 0;
37813   ;
37814   return 0;
37815 }
37816 _ACEOF
37817 rm -f conftest.$ac_objext
37818 if { (ac_try="$ac_compile"
37819 case "(($ac_try" in
37820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37821   *) ac_try_echo=$ac_try;;
37822 esac
37823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37824 $as_echo "$ac_try_echo") >&5
37825   (eval "$ac_compile") 2>conftest.er1
37826   ac_status=$?
37827   grep -v '^ *+' conftest.er1 >conftest.err
37828   rm -f conftest.er1
37829   cat conftest.err >&5
37830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37831   (exit $ac_status); } && {
37832          test -z "$ac_c_werror_flag" ||
37833          test ! -s conftest.err
37834        } && test -s conftest.$ac_objext; then
37835   amanda_cv_HAVE_MTIOCTOP=yes
37836 else
37837   $as_echo "$as_me: failed program was:" >&5
37838 sed 's/^/| /' conftest.$ac_ext >&5
37839
37840         amanda_cv_HAVE_MTIOCTOP=no
37841 fi
37842
37843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37844
37845         HAVE_MTIOCTOP=$amanda_cv_HAVE_MTIOCTOP
37846
37847 fi
37848 { $as_echo "$as_me:$LINENO: result: $amanda_cv_HAVE_MTIOCTOP" >&5
37849 $as_echo "$amanda_cv_HAVE_MTIOCTOP" >&6; }
37850
37851     # decide which tape device to compile (arranged in such a way that
37852     # only one actually gets compiled)
37853     case "$host" in
37854       *-ibm-aix*) aix_tapeio=yes ;;
37855       *-sysv4.2uw2*) uware_tapeio=yes ;;
37856       *-sco3.2v5*) xenix_tapeio=yes ;;
37857       i386-pc-isc4*) xenix_tapeio=yes ;;
37858     esac
37859
37860     # maybe we have no tape device at all (e.g., Mac OS X)?
37861     if test -n "$xenix_tapeio" ||
37862        test -n "$aix_tapeio" ||
37863        test -n "$uware_tapeio" ||
37864        test -n "$HAVE_MTIOCTOP"; then
37865         want_tape_device=yes
37866
37867 cat >>confdefs.h <<\_ACEOF
37868 #define WANT_TAPE_DEVICE 1
37869 _ACEOF
37870
37871     fi
37872
37873      if test -n "$xenix_tapeio"; then
37874   WANT_TAPE_XENIX_TRUE=
37875   WANT_TAPE_XENIX_FALSE='#'
37876 else
37877   WANT_TAPE_XENIX_TRUE='#'
37878   WANT_TAPE_XENIX_FALSE=
37879 fi
37880
37881      if test -n "$aix_tapeio"; then
37882   WANT_TAPE_AIX_TRUE=
37883   WANT_TAPE_AIX_FALSE='#'
37884 else
37885   WANT_TAPE_AIX_TRUE='#'
37886   WANT_TAPE_AIX_FALSE=
37887 fi
37888
37889      if test -n "$uware_tapeio"; then
37890   WANT_TAPE_UWARE_TRUE=
37891   WANT_TAPE_UWARE_FALSE='#'
37892 else
37893   WANT_TAPE_UWARE_TRUE='#'
37894   WANT_TAPE_UWARE_FALSE=
37895 fi
37896
37897      if test -n "$HAVE_MTIOCTOP"; then
37898   WANT_TAPE_POSIX_TRUE=
37899   WANT_TAPE_POSIX_FALSE='#'
37900 else
37901   WANT_TAPE_POSIX_TRUE='#'
37902   WANT_TAPE_POSIX_FALSE=
37903 fi
37904
37905      if test -n "$want_tape_device"; then
37906   WANT_TAPE_DEVICE_TRUE=
37907   WANT_TAPE_DEVICE_FALSE='#'
37908 else
37909   WANT_TAPE_DEVICE_TRUE='#'
37910   WANT_TAPE_DEVICE_FALSE=
37911 fi
37912
37913
37914     if test -n "$xenix_tapeio"; then
37915
37916 cat >>confdefs.h <<\_ACEOF
37917 #define WANT_TAPE_XENIX 1
37918 _ACEOF
37919
37920     fi
37921
37922     if test -n "$aix_tapeio"; then
37923
37924 cat >>confdefs.h <<\_ACEOF
37925 #define WANT_TAPE_AIX 1
37926 _ACEOF
37927
37928     fi
37929
37930     if test -n "$uware_tapeio"; then
37931
37932 cat >>confdefs.h <<\_ACEOF
37933 #define WANT_TAPE_UWARE 1
37934 _ACEOF
37935
37936     fi
37937
37938     #
37939     # Check for various "mt status" related structure elements.
37940     #
37941     { $as_echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
37942 $as_echo_n "checking for mt_flags mtget structure element... " >&6; }
37943     cat >conftest.$ac_ext <<_ACEOF
37944 /* confdefs.h.  */
37945 _ACEOF
37946 cat confdefs.h >>conftest.$ac_ext
37947 cat >>conftest.$ac_ext <<_ACEOF
37948 /* end confdefs.h.  */
37949
37950 #include <stdio.h>
37951 #include <sys/types.h>
37952 #include <sys/mtio.h>
37953
37954 int
37955 main ()
37956 {
37957
37958             struct mtget buf;
37959             long ds;
37960
37961             ds = buf.mt_flags;
37962
37963   ;
37964   return 0;
37965 }
37966 _ACEOF
37967 rm -f conftest.$ac_objext
37968 if { (ac_try="$ac_compile"
37969 case "(($ac_try" in
37970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37971   *) ac_try_echo=$ac_try;;
37972 esac
37973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37974 $as_echo "$ac_try_echo") >&5
37975   (eval "$ac_compile") 2>conftest.er1
37976   ac_status=$?
37977   grep -v '^ *+' conftest.er1 >conftest.err
37978   rm -f conftest.er1
37979   cat conftest.err >&5
37980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37981   (exit $ac_status); } && {
37982          test -z "$ac_c_werror_flag" ||
37983          test ! -s conftest.err
37984        } && test -s conftest.$ac_objext; then
37985
37986             { $as_echo "$as_me:$LINENO: result: yes" >&5
37987 $as_echo "yes" >&6; }
37988
37989 cat >>confdefs.h <<\_ACEOF
37990 #define HAVE_MT_FLAGS 1
37991 _ACEOF
37992
37993
37994 else
37995   $as_echo "$as_me: failed program was:" >&5
37996 sed 's/^/| /' conftest.$ac_ext >&5
37997
37998
37999             { $as_echo "$as_me:$LINENO: result: no" >&5
38000 $as_echo "no" >&6; }
38001
38002 fi
38003
38004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38005
38006     { $as_echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
38007 $as_echo_n "checking for mt_fileno mtget structure element... " >&6; }
38008     mt_fileno_result="found"
38009     cat >conftest.$ac_ext <<_ACEOF
38010 /* confdefs.h.  */
38011 _ACEOF
38012 cat confdefs.h >>conftest.$ac_ext
38013 cat >>conftest.$ac_ext <<_ACEOF
38014 /* end confdefs.h.  */
38015
38016 #include <stdio.h>
38017 #include <sys/types.h>
38018 #include <sys/mtio.h>
38019
38020 int
38021 main ()
38022 {
38023
38024             struct mtget buf;
38025             long ds;
38026
38027             ds = buf.mt_fileno;
38028
38029   ;
38030   return 0;
38031 }
38032 _ACEOF
38033 rm -f conftest.$ac_objext
38034 if { (ac_try="$ac_compile"
38035 case "(($ac_try" in
38036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38037   *) ac_try_echo=$ac_try;;
38038 esac
38039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38040 $as_echo "$ac_try_echo") >&5
38041   (eval "$ac_compile") 2>conftest.er1
38042   ac_status=$?
38043   grep -v '^ *+' conftest.er1 >conftest.err
38044   rm -f conftest.er1
38045   cat conftest.err >&5
38046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38047   (exit $ac_status); } && {
38048          test -z "$ac_c_werror_flag" ||
38049          test ! -s conftest.err
38050        } && test -s conftest.$ac_objext; then
38051
38052             { $as_echo "$as_me:$LINENO: result: yes" >&5
38053 $as_echo "yes" >&6; }
38054
38055 cat >>confdefs.h <<\_ACEOF
38056 #define HAVE_MT_FILENO 1
38057 _ACEOF
38058
38059
38060 else
38061   $as_echo "$as_me: failed program was:" >&5
38062 sed 's/^/| /' conftest.$ac_ext >&5
38063
38064
38065             { $as_echo "$as_me:$LINENO: result: no" >&5
38066 $as_echo "no" >&6; }
38067
38068 fi
38069
38070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38071
38072     { $as_echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
38073 $as_echo_n "checking for mt_blkno mtget structure element... " >&6; }
38074     cat >conftest.$ac_ext <<_ACEOF
38075 /* confdefs.h.  */
38076 _ACEOF
38077 cat confdefs.h >>conftest.$ac_ext
38078 cat >>conftest.$ac_ext <<_ACEOF
38079 /* end confdefs.h.  */
38080
38081 #include <stdio.h>
38082 #include <sys/types.h>
38083 #include <sys/mtio.h>
38084
38085 int
38086 main ()
38087 {
38088
38089             struct mtget buf;
38090             long ds;
38091
38092             ds = buf.mt_blkno;
38093
38094   ;
38095   return 0;
38096 }
38097 _ACEOF
38098 rm -f conftest.$ac_objext
38099 if { (ac_try="$ac_compile"
38100 case "(($ac_try" in
38101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38102   *) ac_try_echo=$ac_try;;
38103 esac
38104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38105 $as_echo "$ac_try_echo") >&5
38106   (eval "$ac_compile") 2>conftest.er1
38107   ac_status=$?
38108   grep -v '^ *+' conftest.er1 >conftest.err
38109   rm -f conftest.er1
38110   cat conftest.err >&5
38111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38112   (exit $ac_status); } && {
38113          test -z "$ac_c_werror_flag" ||
38114          test ! -s conftest.err
38115        } && test -s conftest.$ac_objext; then
38116
38117             { $as_echo "$as_me:$LINENO: result: yes" >&5
38118 $as_echo "yes" >&6; }
38119
38120 cat >>confdefs.h <<\_ACEOF
38121 #define HAVE_MT_BLKNO 1
38122 _ACEOF
38123
38124
38125 else
38126   $as_echo "$as_me: failed program was:" >&5
38127 sed 's/^/| /' conftest.$ac_ext >&5
38128
38129
38130             { $as_echo "$as_me:$LINENO: result: no" >&5
38131 $as_echo "no" >&6; }
38132
38133 fi
38134
38135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38136
38137     { $as_echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
38138 $as_echo_n "checking for mt_dsreg mtget structure element... " >&6; }
38139     cat >conftest.$ac_ext <<_ACEOF
38140 /* confdefs.h.  */
38141 _ACEOF
38142 cat confdefs.h >>conftest.$ac_ext
38143 cat >>conftest.$ac_ext <<_ACEOF
38144 /* end confdefs.h.  */
38145
38146 #include <stdio.h>
38147 #include <sys/types.h>
38148 #include <sys/mtio.h>
38149
38150 int
38151 main ()
38152 {
38153
38154             struct mtget buf;
38155             long ds;
38156
38157             ds = buf.mt_dsreg;
38158
38159   ;
38160   return 0;
38161 }
38162 _ACEOF
38163 rm -f conftest.$ac_objext
38164 if { (ac_try="$ac_compile"
38165 case "(($ac_try" in
38166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38167   *) ac_try_echo=$ac_try;;
38168 esac
38169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38170 $as_echo "$ac_try_echo") >&5
38171   (eval "$ac_compile") 2>conftest.er1
38172   ac_status=$?
38173   grep -v '^ *+' conftest.er1 >conftest.err
38174   rm -f conftest.er1
38175   cat conftest.err >&5
38176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38177   (exit $ac_status); } && {
38178          test -z "$ac_c_werror_flag" ||
38179          test ! -s conftest.err
38180        } && test -s conftest.$ac_objext; then
38181
38182             { $as_echo "$as_me:$LINENO: result: yes" >&5
38183 $as_echo "yes" >&6; }
38184
38185 cat >>confdefs.h <<\_ACEOF
38186 #define HAVE_MT_DSREG 1
38187 _ACEOF
38188
38189
38190 else
38191   $as_echo "$as_me: failed program was:" >&5
38192 sed 's/^/| /' conftest.$ac_ext >&5
38193
38194
38195             { $as_echo "$as_me:$LINENO: result: no" >&5
38196 $as_echo "no" >&6; }
38197
38198 fi
38199
38200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38201
38202     { $as_echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
38203 $as_echo_n "checking for mt_erreg mtget structure element... " >&6; }
38204     cat >conftest.$ac_ext <<_ACEOF
38205 /* confdefs.h.  */
38206 _ACEOF
38207 cat confdefs.h >>conftest.$ac_ext
38208 cat >>conftest.$ac_ext <<_ACEOF
38209 /* end confdefs.h.  */
38210
38211 #include <stdio.h>
38212 #include <sys/types.h>
38213 #include <sys/mtio.h>
38214
38215 int
38216 main ()
38217 {
38218
38219             struct mtget buf;
38220             long ds;
38221
38222             ds = buf.mt_erreg;
38223
38224   ;
38225   return 0;
38226 }
38227 _ACEOF
38228 rm -f conftest.$ac_objext
38229 if { (ac_try="$ac_compile"
38230 case "(($ac_try" in
38231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38232   *) ac_try_echo=$ac_try;;
38233 esac
38234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38235 $as_echo "$ac_try_echo") >&5
38236   (eval "$ac_compile") 2>conftest.er1
38237   ac_status=$?
38238   grep -v '^ *+' conftest.er1 >conftest.err
38239   rm -f conftest.er1
38240   cat conftest.err >&5
38241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38242   (exit $ac_status); } && {
38243          test -z "$ac_c_werror_flag" ||
38244          test ! -s conftest.err
38245        } && test -s conftest.$ac_objext; then
38246
38247             { $as_echo "$as_me:$LINENO: result: yes" >&5
38248 $as_echo "yes" >&6; }
38249
38250 cat >>confdefs.h <<\_ACEOF
38251 #define HAVE_MT_ERREG 1
38252 _ACEOF
38253
38254
38255 else
38256   $as_echo "$as_me: failed program was:" >&5
38257 sed 's/^/| /' conftest.$ac_ext >&5
38258
38259
38260             { $as_echo "$as_me:$LINENO: result: no" >&5
38261 $as_echo "no" >&6; }
38262
38263 fi
38264
38265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38266
38267     case "$host" in
38268         *linux*)
38269 cat >>confdefs.h <<\_ACEOF
38270 #define DEFAULT_TAPE_NON_BLOCKING_OPEN 1
38271 _ACEOF
38272 ;;
38273     esac
38274
38275
38276         # Check whether --enable-dvdrw-device was given.
38277 if test "${enable_dvdrw_device+set}" = set; then
38278   enableval=$enable_dvdrw_device;  WANT_DVDRW_DEVICE=$enableval
38279 else
38280    WANT_DVDRW_DEVICE=yes
38281 fi
38282
38283
38284         { $as_echo "$as_me:$LINENO: checking whether to include the DVD-RW device" >&5
38285 $as_echo_n "checking whether to include the DVD-RW device... " >&6; }
38286         { $as_echo "$as_me:$LINENO: result: $WANT_DVDRW_DEVICE" >&5
38287 $as_echo "$WANT_DVDRW_DEVICE" >&6; }
38288
38289          if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
38290   WANT_DVDRW_DEVICE_TRUE=
38291   WANT_DVDRW_DEVICE_FALSE='#'
38292 else
38293   WANT_DVDRW_DEVICE_TRUE='#'
38294   WANT_DVDRW_DEVICE_FALSE=
38295 fi
38296
38297
38298         # Now handle any setup for DVDRW, if we want it.
38299         if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
38300
38301 cat >>confdefs.h <<\_ACEOF
38302 #define WANT_DVDRW_DEVICE /**/
38303 _ACEOF
38304
38305         fi
38306
38307
38308
38309
38310     # Check whether --enable-ndmp-device was given.
38311 if test "${enable_ndmp_device+set}" = set; then
38312   enableval=$enable_ndmp_device;  WANT_NDMP_DEVICE=$enableval
38313 else
38314    WANT_NDMP_DEVICE=$WANT_NDMP
38315 fi
38316
38317
38318     if test x"$WANT_NDMP" != x"true" -a x"$WANT_NDMP_DEVICE" = x"true"; then
38319         { { $as_echo "$as_me:$LINENO: error: NDMP support is required to build the ndmp device (--with-ndmp)" >&5
38320 $as_echo "$as_me: error: NDMP support is required to build the ndmp device (--with-ndmp)" >&2;}
38321    { (exit 1); exit 1; }; }
38322     fi
38323
38324     if test x"$WANT_NDMP_DEVICE" = x"true"; then
38325
38326 cat >>confdefs.h <<\_ACEOF
38327 #define WANT_NDMP_DEVICE 1
38328 _ACEOF
38329
38330     fi
38331
38332      if test x"$WANT_NDMP_DEVICE" = x"true"; then
38333   WANT_NDMP_DEVICE_TRUE=
38334   WANT_NDMP_DEVICE_FALSE='#'
38335 else
38336   WANT_NDMP_DEVICE_TRUE='#'
38337   WANT_NDMP_DEVICE_FALSE=
38338 fi
38339
38340
38341
38342 #
38343 # Security (authentication) mechansims
38344 #
38345
38346     BSD_SECURITY="yes"
38347
38348 # Check whether --with-bsd-security was given.
38349 if test "${with_bsd_security+set}" = set; then
38350   withval=$with_bsd_security;
38351             case "$withval" in
38352                 n | no) BSD_SECURITY=no ;;
38353                 y |  ye | yes) BSD_SECURITY=yes ;;
38354                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-bsd-security." >&5
38355 $as_echo "$as_me: error: *** You must not supply an argument to --without-bsd-security." >&2;}
38356    { (exit 1); exit 1; }; }
38357                     ;;
38358             esac
38359
38360 fi
38361
38362
38363     USE_AMANDAHOSTS=yes
38364
38365 # Check whether --with-amandahosts was given.
38366 if test "${with_amandahosts+set}" = set; then
38367   withval=$with_amandahosts;
38368             case "$withval" in
38369                 n | no ) USE_AMANDAHOSTS=no ;;
38370                 y |  ye | yes) USE_AMANDAHOSTS=yes ;;
38371                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-amandahosts option." >&5
38372 $as_echo "$as_me: error: *** You must not supply an argument to --without-amandahosts option." >&2;}
38373    { (exit 1); exit 1; }; }
38374                   ;;
38375             esac
38376
38377
38378 fi
38379
38380
38381     if test "x$BSD_SECURITY" = "xyes"; then
38382
38383 cat >>confdefs.h <<\_ACEOF
38384 #define BSD_SECURITY 1
38385 _ACEOF
38386
38387         if test "x$USE_AMANDAHOSTS" = "xyes"; then
38388
38389 cat >>confdefs.h <<\_ACEOF
38390 #define USE_AMANDAHOSTS 1
38391 _ACEOF
38392
38393         fi
38394     fi
38395
38396      if test x"$BSD_SECURITY" = x"yes"; then
38397   WANT_BSD_SECURITY_TRUE=
38398   WANT_BSD_SECURITY_FALSE='#'
38399 else
38400   WANT_BSD_SECURITY_TRUE='#'
38401   WANT_BSD_SECURITY_FALSE=
38402 fi
38403
38404
38405
38406
38407
38408     BSDTCP_SECURITY="yes"
38409
38410 # Check whether --with-bsdtcp-security was given.
38411 if test "${with_bsdtcp_security+set}" = set; then
38412   withval=$with_bsdtcp_security;
38413             case "$withval" in
38414                 n | no) BSDTCP_SECURITY=no ;;
38415                 y |  ye | yes) BSDTCP_SECURITY=yes ;;
38416                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdtcp-security." >&5
38417 $as_echo "$as_me: error: *** You must not supply an argument to --with-bsdtcp-security." >&2;}
38418    { (exit 1); exit 1; }; }
38419               ;;
38420             esac
38421
38422 fi
38423
38424
38425     if test "x$BSDTCP_SECURITY" = "xyes"; then
38426
38427 cat >>confdefs.h <<\_ACEOF
38428 #define BSDTCP_SECURITY 1
38429 _ACEOF
38430
38431     fi
38432
38433      if test x"$BSDTCP_SECURITY" = x"yes"; then
38434   WANT_BSDTCP_SECURITY_TRUE=
38435   WANT_BSDTCP_SECURITY_FALSE='#'
38436 else
38437   WANT_BSDTCP_SECURITY_TRUE='#'
38438   WANT_BSDTCP_SECURITY_FALSE=
38439 fi
38440
38441
38442
38443
38444     BSDUDP_SECURITY="no"
38445
38446 # Check whether --with-bsdudp-security was given.
38447 if test "${with_bsdudp_security+set}" = set; then
38448   withval=$with_bsdudp_security;
38449             case "$withval" in
38450                 n | no) : ;;
38451                 y |  ye | yes) BSDUDP_SECURITY=yes ;;
38452                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdudp-security." >&5
38453 $as_echo "$as_me: error: *** You must not supply an argument to --with-bsdudp-security." >&2;}
38454    { (exit 1); exit 1; }; }
38455               ;;
38456             esac
38457
38458 fi
38459
38460
38461     if test "x$BSDUDP_SECURITY" = "xyes"; then
38462
38463 cat >>confdefs.h <<\_ACEOF
38464 #define BSDUDP_SECURITY 1
38465 _ACEOF
38466
38467     fi
38468
38469      if test x"$BSDUDP_SECURITY" = x"yes"; then
38470   WANT_BSDUDP_SECURITY_TRUE=
38471   WANT_BSDUDP_SECURITY_FALSE='#'
38472 else
38473   WANT_BSDUDP_SECURITY_TRUE='#'
38474   WANT_BSDUDP_SECURITY_FALSE=
38475 fi
38476
38477
38478
38479
38480     RSH_SECURITY=no
38481
38482 # Check whether --with-rsh-security was given.
38483 if test "${with_rsh_security+set}" = set; then
38484   withval=$with_rsh_security;
38485             case "$withval" in
38486                 n | no) : ;;
38487                 y |  ye | yes) RSH_SECURITY=yes ;;
38488                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rsh-security." >&5
38489 $as_echo "$as_me: error: *** You must not supply an argument to --with-rsh-security." >&2;}
38490    { (exit 1); exit 1; }; }
38491               ;;
38492             esac
38493
38494 fi
38495
38496
38497     if test "x$RSH_SECURITY" = "xyes"; then
38498
38499 cat >>confdefs.h <<\_ACEOF
38500 #define RSH_SECURITY 1
38501 _ACEOF
38502
38503     fi
38504      if test x"$RSH_SECURITY" = x"yes"; then
38505   WANT_RSH_SECURITY_TRUE=
38506   WANT_RSH_SECURITY_FALSE='#'
38507 else
38508   WANT_RSH_SECURITY_TRUE='#'
38509   WANT_RSH_SECURITY_FALSE=
38510 fi
38511
38512
38513
38514
38515     SSH_SECURITY=yes
38516
38517 # Check whether --with-ssh-security was given.
38518 if test "${with_ssh_security+set}" = set; then
38519   withval=$with_ssh_security;
38520             case "$withval" in
38521                 n | no) SSH_SECURITY=no ;;
38522                 y |  ye | yes) SSH_SECURITY=yes ;;
38523                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ssh-security." >&5
38524 $as_echo "$as_me: error: *** You must not supply an argument to --with-ssh-security." >&2;}
38525    { (exit 1); exit 1; }; }
38526               ;;
38527             esac
38528
38529 fi
38530
38531
38532     if test "x$SSH_SECURITY" = "xyes"; then
38533         # find the SSH binary
38534         for ac_prog in ssh
38535 do
38536   # Extract the first word of "$ac_prog", so it can be a program name with args.
38537 set dummy $ac_prog; ac_word=$2
38538 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38539 $as_echo_n "checking for $ac_word... " >&6; }
38540 if test "${ac_cv_path_SSH+set}" = set; then
38541   $as_echo_n "(cached) " >&6
38542 else
38543   case $SSH in
38544   [\\/]* | ?:[\\/]*)
38545   ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
38546   ;;
38547   *)
38548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38549 for as_dir in $LOCSYSPATH
38550 do
38551   IFS=$as_save_IFS
38552   test -z "$as_dir" && as_dir=.
38553   for ac_exec_ext in '' $ac_executable_extensions; do
38554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38555     ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
38556     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38557     break 2
38558   fi
38559 done
38560 done
38561 IFS=$as_save_IFS
38562
38563   ;;
38564 esac
38565 fi
38566 SSH=$ac_cv_path_SSH
38567 if test -n "$SSH"; then
38568   { $as_echo "$as_me:$LINENO: result: $SSH" >&5
38569 $as_echo "$SSH" >&6; }
38570 else
38571   { $as_echo "$as_me:$LINENO: result: no" >&5
38572 $as_echo "no" >&6; }
38573 fi
38574
38575
38576   test -n "$SSH" && break
38577 done
38578
38579
38580         # see what options we should use
38581
38582 # Check whether --with-ssh-options was given.
38583 if test "${with_ssh_options+set}" = set; then
38584   withval=$with_ssh_options;  SSH_OPTIONS="$withval"
38585 else
38586    SSH_OPTIONS=''
38587
38588 fi
38589
38590
38591         case "$SSH_OPTIONS" in
38592             y | ye | yes | n | no)
38593                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to --with-ssh-options." >&5
38594 $as_echo "$as_me: error: *** You must supply an argument to --with-ssh-options." >&2;}
38595    { (exit 1); exit 1; }; };;
38596             *) : ;;
38597         esac
38598
38599         { $as_echo "$as_me:$LINENO: checking SSH options" >&5
38600 $as_echo_n "checking SSH options... " >&6; }
38601         # if we didn't get SSH options from the user, figure them out for ourselves
38602         if test -z "$SSH_OPTIONS"; then
38603             case `$SSH -V 2>&1` in
38604                 OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
38605                 *) SSH_OPTIONS='-x -o BatchMode=yes' ;;
38606             esac
38607         fi
38608
38609         # now convert that to a comma-separated list of C strings
38610         eval "set dummy ${SSH_OPTIONS}"; shift
38611         SSH_OPTIONS=''
38612         for i in "${@}"; do
38613             quoted="\"`echo "$i" | sed -e 's/\"/\\\"/'`\""
38614             SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }$quoted";
38615         done
38616         { $as_echo "$as_me:$LINENO: result: $SSH_OPTIONS" >&5
38617 $as_echo "$SSH_OPTIONS" >&6; }
38618
38619         # finally, make the various outputs for all of this
38620
38621 cat >>confdefs.h <<\_ACEOF
38622 #define SSH_SECURITY 1
38623 _ACEOF
38624
38625
38626 cat >>confdefs.h <<_ACEOF
38627 #define SSH "$SSH"
38628 _ACEOF
38629
38630
38631 cat >>confdefs.h <<_ACEOF
38632 #define SSH_OPTIONS $SSH_OPTIONS
38633 _ACEOF
38634
38635     fi
38636      if test x"$SSH_SECURITY" = x"yes"; then
38637   WANT_SSH_SECURITY_TRUE=
38638   WANT_SSH_SECURITY_FALSE='#'
38639 else
38640   WANT_SSH_SECURITY_TRUE='#'
38641   WANT_SSH_SECURITY_FALSE=
38642 fi
38643
38644
38645
38646     # (note -- don't just substitute SSH_OPTIONS -- shell quoting will break)
38647
38648
38649     # Specify --with-krb5-security if Kerberos software is in somewhere
38650     # other than the listed KRB5_SPOTS.  We only compile kerberos support in
38651     # if the right files are there.
38652
38653     KRB5_SECURITY="no"
38654     : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
38655
38656
38657 # Check whether --with-krb5-security was given.
38658 if test "${with_krb5_security+set}" = set; then
38659   withval=$with_krb5_security;
38660             case "$withval" in
38661                 n | no) KRB5_SECURITY=no ;;
38662                 y | ye | yes) KRB5_SECURITY=yes ;;
38663                 *) KRB5_SPOTS="$KRB5_SECURITY"
38664                    KRB5_SECURITY=yes
38665                    ;;
38666             esac
38667
38668
38669 fi
38670
38671
38672     if test "x$KRB5_SECURITY" = "xyes"; then
38673         # if found, force the static versions of these libs (.a) by linking directly
38674         # with the .a files.  I don't know how to get -R dependancies checked
38675         # in autoconf at this time. -kashmir
38676         { $as_echo "$as_me:$LINENO: checking for Kerberos V libraries" >&5
38677 $as_echo_n "checking for Kerberos V libraries... " >&6; }
38678         KRB5_DIR_FOUND=""
38679         for dir in $KRB5_SPOTS; do
38680           for lib in lib lib64; do
38681             k5libdir=${dir}/${lib}
38682             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
38683                 if test -f ${k5libdir}/libk5crypto.a -o -f ${k5libdir}/libk5crypto.so; then
38684                     K5CRYPTO=-lk5crypto
38685                 elif test -f ${k5libdir}/libcrypto.a -o -f ${k5libdir}/libcrypto.so; then
38686                     K5CRYPTO=-lcrypto
38687                 else
38688                     K5CRYPTO=""
38689                 fi
38690                 if test -f ${k5libdir}/libkrb5support.a -o -f ${k5libdir}/libkrb5support.so; then
38691                     K5SUPPORT=-lkrb5support
38692                 else
38693                     K5SUPPORT=""
38694                 fi
38695                 KRB5_DIR_FOUND=$dir
38696                 KRB5_LIBDIR_FOUND=$k5libdir
38697                 LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err $LIBS"
38698
38699                 break
38700             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
38701                 LIBS="-lgssapi -lkrb5 -lasn1 $LIBS"
38702
38703                 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL_INCLUDES"
38704
38705                 break
38706             fi
38707           done
38708         done
38709
38710         if test "$KRB5_DIR_FOUND"; then
38711             { $as_echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
38712 $as_echo "found in $KRB5_DIR_FOUND" >&6; }
38713             #
38714             # some OS's, such as NetBSD, stick krb5 includes out of the way...
38715             # should probably just use autoconf to look for various include
38716             # options and set them, but don't quite want to do that until I've
38717             # dug into it a bit more.
38718             #
38719             if test -d "$KRB5_DIR_FOUND/krb5" ; then
38720                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include/krb5"
38721
38722             else
38723                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include"
38724
38725             fi
38726
38727 { $as_echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
38728 $as_echo_n "checking for main in -lkrb5support... " >&6; }
38729 if test "${ac_cv_lib_krb5support_main+set}" = set; then
38730   $as_echo_n "(cached) " >&6
38731 else
38732   ac_check_lib_save_LIBS=$LIBS
38733 LIBS="-lkrb5support  $LIBS"
38734 cat >conftest.$ac_ext <<_ACEOF
38735 /* confdefs.h.  */
38736 _ACEOF
38737 cat confdefs.h >>conftest.$ac_ext
38738 cat >>conftest.$ac_ext <<_ACEOF
38739 /* end confdefs.h.  */
38740
38741
38742 int
38743 main ()
38744 {
38745 return main ();
38746   ;
38747   return 0;
38748 }
38749 _ACEOF
38750 rm -f conftest.$ac_objext conftest$ac_exeext
38751 if { (ac_try="$ac_link"
38752 case "(($ac_try" in
38753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38754   *) ac_try_echo=$ac_try;;
38755 esac
38756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38757 $as_echo "$ac_try_echo") >&5
38758   (eval "$ac_link") 2>conftest.er1
38759   ac_status=$?
38760   grep -v '^ *+' conftest.er1 >conftest.err
38761   rm -f conftest.er1
38762   cat conftest.err >&5
38763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38764   (exit $ac_status); } && {
38765          test -z "$ac_c_werror_flag" ||
38766          test ! -s conftest.err
38767        } && test -s conftest$ac_exeext && {
38768          test "$cross_compiling" = yes ||
38769          $as_test_x conftest$ac_exeext
38770        }; then
38771   ac_cv_lib_krb5support_main=yes
38772 else
38773   $as_echo "$as_me: failed program was:" >&5
38774 sed 's/^/| /' conftest.$ac_ext >&5
38775
38776         ac_cv_lib_krb5support_main=no
38777 fi
38778
38779 rm -rf conftest.dSYM
38780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38781       conftest$ac_exeext conftest.$ac_ext
38782 LIBS=$ac_check_lib_save_LIBS
38783 fi
38784 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
38785 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
38786 if test "x$ac_cv_lib_krb5support_main" = x""yes; then
38787   cat >>confdefs.h <<_ACEOF
38788 #define HAVE_LIBKRB5SUPPORT 1
38789 _ACEOF
38790
38791   LIBS="-lkrb5support $LIBS"
38792
38793 fi
38794
38795             LDFLAGS="$LDFLAGS -L$KRB5_LIBDIR_FOUND"
38796
38797
38798
38799 cat >>confdefs.h <<\_ACEOF
38800 #define KRB5_SECURITY 1
38801 _ACEOF
38802
38803         else
38804             { $as_echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
38805 $as_echo "no krb5 system libraries found" >&6; }
38806             { { $as_echo "$as_me:$LINENO: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&5
38807 $as_echo "$as_me: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&2;}
38808    { (exit 1); exit 1; }; }
38809             KRB5_SECURITY="no"
38810         fi
38811     fi
38812
38813      if test x"$KRB5_SECURITY" = x"yes"; then
38814   WANT_KRB5_SECURITY_TRUE=
38815   WANT_KRB5_SECURITY_FALSE='#'
38816 else
38817   WANT_KRB5_SECURITY_TRUE='#'
38818   WANT_KRB5_SECURITY_FALSE=
38819 fi
38820
38821
38822
38823
38824 #
38825 # Dumpers
38826 #
38827
38828
38829
38830     for ac_prog in xfsdump
38831 do
38832   # Extract the first word of "$ac_prog", so it can be a program name with args.
38833 set dummy $ac_prog; ac_word=$2
38834 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38835 $as_echo_n "checking for $ac_word... " >&6; }
38836 if test "${ac_cv_path_XFSDUMP+set}" = set; then
38837   $as_echo_n "(cached) " >&6
38838 else
38839   case $XFSDUMP in
38840   [\\/]* | ?:[\\/]*)
38841   ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
38842   ;;
38843   *)
38844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38845 for as_dir in $SYSLOCPATH
38846 do
38847   IFS=$as_save_IFS
38848   test -z "$as_dir" && as_dir=.
38849   for ac_exec_ext in '' $ac_executable_extensions; do
38850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38851     ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
38852     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38853     break 2
38854   fi
38855 done
38856 done
38857 IFS=$as_save_IFS
38858
38859   ;;
38860 esac
38861 fi
38862 XFSDUMP=$ac_cv_path_XFSDUMP
38863 if test -n "$XFSDUMP"; then
38864   { $as_echo "$as_me:$LINENO: result: $XFSDUMP" >&5
38865 $as_echo "$XFSDUMP" >&6; }
38866 else
38867   { $as_echo "$as_me:$LINENO: result: no" >&5
38868 $as_echo "no" >&6; }
38869 fi
38870
38871
38872   test -n "$XFSDUMP" && break
38873 done
38874
38875     for ac_prog in xfsrestore
38876 do
38877   # Extract the first word of "$ac_prog", so it can be a program name with args.
38878 set dummy $ac_prog; ac_word=$2
38879 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38880 $as_echo_n "checking for $ac_word... " >&6; }
38881 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
38882   $as_echo_n "(cached) " >&6
38883 else
38884   case $XFSRESTORE in
38885   [\\/]* | ?:[\\/]*)
38886   ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
38887   ;;
38888   *)
38889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38890 for as_dir in $SYSLOCPATH
38891 do
38892   IFS=$as_save_IFS
38893   test -z "$as_dir" && as_dir=.
38894   for ac_exec_ext in '' $ac_executable_extensions; do
38895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38896     ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
38897     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38898     break 2
38899   fi
38900 done
38901 done
38902 IFS=$as_save_IFS
38903
38904   ;;
38905 esac
38906 fi
38907 XFSRESTORE=$ac_cv_path_XFSRESTORE
38908 if test -n "$XFSRESTORE"; then
38909   { $as_echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
38910 $as_echo "$XFSRESTORE" >&6; }
38911 else
38912   { $as_echo "$as_me:$LINENO: result: no" >&5
38913 $as_echo "no" >&6; }
38914 fi
38915
38916
38917   test -n "$XFSRESTORE" && break
38918 done
38919
38920     if test "$XFSDUMP" -a "$XFSRESTORE"; then
38921
38922 cat >>confdefs.h <<_ACEOF
38923 #define XFSDUMP "$XFSDUMP"
38924 _ACEOF
38925
38926
38927 cat >>confdefs.h <<_ACEOF
38928 #define XFSRESTORE "$XFSRESTORE"
38929 _ACEOF
38930
38931
38932     { $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
38933 $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;}
38934
38935
38936     cat <<AAW_EOF >>config.warnings
38937 xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h
38938 AAW_EOF
38939
38940
38941     fi
38942
38943
38944
38945
38946     # Extract the first word of "vxdump", so it can be a program name with args.
38947 set dummy vxdump; ac_word=$2
38948 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38949 $as_echo_n "checking for $ac_word... " >&6; }
38950 if test "${ac_cv_path_VXDUMP+set}" = set; then
38951   $as_echo_n "(cached) " >&6
38952 else
38953   case $VXDUMP in
38954   [\\/]* | ?:[\\/]*)
38955   ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
38956   ;;
38957   *)
38958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38959 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
38960 for as_dir in $as_dummy
38961 do
38962   IFS=$as_save_IFS
38963   test -z "$as_dir" && as_dir=.
38964   for ac_exec_ext in '' $ac_executable_extensions; do
38965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38966     ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
38967     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38968     break 2
38969   fi
38970 done
38971 done
38972 IFS=$as_save_IFS
38973
38974   ;;
38975 esac
38976 fi
38977 VXDUMP=$ac_cv_path_VXDUMP
38978 if test -n "$VXDUMP"; then
38979   { $as_echo "$as_me:$LINENO: result: $VXDUMP" >&5
38980 $as_echo "$VXDUMP" >&6; }
38981 else
38982   { $as_echo "$as_me:$LINENO: result: no" >&5
38983 $as_echo "no" >&6; }
38984 fi
38985
38986
38987     # Extract the first word of "vxrestore", so it can be a program name with args.
38988 set dummy vxrestore; ac_word=$2
38989 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38990 $as_echo_n "checking for $ac_word... " >&6; }
38991 if test "${ac_cv_path_VXRESTORE+set}" = set; then
38992   $as_echo_n "(cached) " >&6
38993 else
38994   case $VXRESTORE in
38995   [\\/]* | ?:[\\/]*)
38996   ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
38997   ;;
38998   *)
38999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39000 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
39001 for as_dir in $as_dummy
39002 do
39003   IFS=$as_save_IFS
39004   test -z "$as_dir" && as_dir=.
39005   for ac_exec_ext in '' $ac_executable_extensions; do
39006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39007     ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
39008     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39009     break 2
39010   fi
39011 done
39012 done
39013 IFS=$as_save_IFS
39014
39015   ;;
39016 esac
39017 fi
39018 VXRESTORE=$ac_cv_path_VXRESTORE
39019 if test -n "$VXRESTORE"; then
39020   { $as_echo "$as_me:$LINENO: result: $VXRESTORE" >&5
39021 $as_echo "$VXRESTORE" >&6; }
39022 else
39023   { $as_echo "$as_me:$LINENO: result: no" >&5
39024 $as_echo "no" >&6; }
39025 fi
39026
39027
39028     if test "$VXDUMP" -a "$VXRESTORE"; then
39029
39030 cat >>confdefs.h <<_ACEOF
39031 #define VXDUMP "$VXDUMP"
39032 _ACEOF
39033
39034
39035 cat >>confdefs.h <<_ACEOF
39036 #define VXRESTORE "$VXRESTORE"
39037 _ACEOF
39038
39039     fi
39040
39041
39042
39043
39044     # Extract the first word of "vdump", so it can be a program name with args.
39045 set dummy vdump; ac_word=$2
39046 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
39047 $as_echo_n "checking for $ac_word... " >&6; }
39048 if test "${ac_cv_path_VDUMP+set}" = set; then
39049   $as_echo_n "(cached) " >&6
39050 else
39051   case $VDUMP in
39052   [\\/]* | ?:[\\/]*)
39053   ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
39054   ;;
39055   *)
39056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39057 for as_dir in $SYSLOCPATH
39058 do
39059   IFS=$as_save_IFS
39060   test -z "$as_dir" && as_dir=.
39061   for ac_exec_ext in '' $ac_executable_extensions; do
39062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39063     ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
39064     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39065     break 2
39066   fi
39067 done
39068 done
39069 IFS=$as_save_IFS
39070
39071   ;;
39072 esac
39073 fi
39074 VDUMP=$ac_cv_path_VDUMP
39075 if test -n "$VDUMP"; then
39076   { $as_echo "$as_me:$LINENO: result: $VDUMP" >&5
39077 $as_echo "$VDUMP" >&6; }
39078 else
39079   { $as_echo "$as_me:$LINENO: result: no" >&5
39080 $as_echo "no" >&6; }
39081 fi
39082
39083
39084     # Extract the first word of "vrestore", so it can be a program name with args.
39085 set dummy vrestore; ac_word=$2
39086 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
39087 $as_echo_n "checking for $ac_word... " >&6; }
39088 if test "${ac_cv_path_VRESTORE+set}" = set; then
39089   $as_echo_n "(cached) " >&6
39090 else
39091   case $VRESTORE in
39092   [\\/]* | ?:[\\/]*)
39093   ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
39094   ;;
39095   *)
39096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39097 for as_dir in $SYSLOCPATH
39098 do
39099   IFS=$as_save_IFS
39100   test -z "$as_dir" && as_dir=.
39101   for ac_exec_ext in '' $ac_executable_extensions; do
39102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39103     ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
39104     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39105     break 2
39106   fi
39107 done
39108 done
39109 IFS=$as_save_IFS
39110
39111   ;;
39112 esac
39113 fi
39114 VRESTORE=$ac_cv_path_VRESTORE
39115 if test -n "$VRESTORE"; then
39116   { $as_echo "$as_me:$LINENO: result: $VRESTORE" >&5
39117 $as_echo "$VRESTORE" >&6; }
39118 else
39119   { $as_echo "$as_me:$LINENO: result: no" >&5
39120 $as_echo "no" >&6; }
39121 fi
39122
39123
39124     if test "$VDUMP" -a "$VRESTORE"; then
39125
39126 cat >>confdefs.h <<_ACEOF
39127 #define VDUMP "$VDUMP"
39128 _ACEOF
39129
39130
39131 cat >>confdefs.h <<_ACEOF
39132 #define VRESTORE "$VRESTORE"
39133 _ACEOF
39134
39135     fi
39136
39137
39138
39139
39140
39141     # Set the order of dump programs to look for.  Finding the proper file
39142     # system dumping program is problematic.  Some systems, notably HP-UX
39143     # and AIX, have both the backup and dump programs.  HP-UX can't use the
39144     # the backup program while AIX systems can't use the dump program.  So
39145     # a variable is set up here to specify the order of dump programs to
39146     # search for on the system.
39147     DUMP_PROGRAMS="ufsdump dump backup"
39148     DUMP_RETURNS_1=
39149     AIX_BACKUP=
39150     case "$host" in
39151         *-dg-*)
39152             DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
39153             DUMP_RETURNS_1=1
39154             ;;
39155       *-ibm-aix*)
39156             DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
39157             AIX_BACKUP=1
39158
39159 cat >>confdefs.h <<\_ACEOF
39160 #define AIX_BACKUP 1
39161 _ACEOF
39162
39163             ;;
39164       *-ultrix*)
39165             DUMP_RETURNS_1=1
39166             ;;
39167     esac
39168
39169     if test -n "$DUMP_RETURNS_1"; then
39170
39171 cat >>confdefs.h <<\_ACEOF
39172 #define DUMP_RETURNS_1 1
39173 _ACEOF
39174
39175     fi
39176
39177     for ac_prog in $DUMP_PROGRAMS
39178 do
39179   # Extract the first word of "$ac_prog", so it can be a program name with args.
39180 set dummy $ac_prog; ac_word=$2
39181 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
39182 $as_echo_n "checking for $ac_word... " >&6; }
39183 if test "${ac_cv_path_DUMP+set}" = set; then
39184   $as_echo_n "(cached) " >&6
39185 else
39186   case $DUMP in
39187   [\\/]* | ?:[\\/]*)
39188   ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
39189   ;;
39190   *)
39191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39192 for as_dir in $SYSLOCPATH
39193 do
39194   IFS=$as_save_IFS
39195   test -z "$as_dir" && as_dir=.
39196   for ac_exec_ext in '' $ac_executable_extensions; do
39197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39198     ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
39199     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39200     break 2
39201   fi
39202 done
39203 done
39204 IFS=$as_save_IFS
39205
39206   ;;
39207 esac
39208 fi
39209 DUMP=$ac_cv_path_DUMP
39210 if test -n "$DUMP"; then
39211   { $as_echo "$as_me:$LINENO: result: $DUMP" >&5
39212 $as_echo "$DUMP" >&6; }
39213 else
39214   { $as_echo "$as_me:$LINENO: result: no" >&5
39215 $as_echo "no" >&6; }
39216 fi
39217
39218
39219   test -n "$DUMP" && break
39220 done
39221
39222     for ac_prog in ufsrestore restore
39223 do
39224   # Extract the first word of "$ac_prog", so it can be a program name with args.
39225 set dummy $ac_prog; ac_word=$2
39226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
39227 $as_echo_n "checking for $ac_word... " >&6; }
39228 if test "${ac_cv_path_RESTORE+set}" = set; then
39229   $as_echo_n "(cached) " >&6
39230 else
39231   case $RESTORE in
39232   [\\/]* | ?:[\\/]*)
39233   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
39234   ;;
39235   *)
39236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39237 for as_dir in $SYSLOCPATH
39238 do
39239   IFS=$as_save_IFS
39240   test -z "$as_dir" && as_dir=.
39241   for ac_exec_ext in '' $ac_executable_extensions; do
39242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39243     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
39244     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39245     break 2
39246   fi
39247 done
39248 done
39249 IFS=$as_save_IFS
39250
39251   ;;
39252 esac
39253 fi
39254 RESTORE=$ac_cv_path_RESTORE
39255 if test -n "$RESTORE"; then
39256   { $as_echo "$as_me:$LINENO: result: $RESTORE" >&5
39257 $as_echo "$RESTORE" >&6; }
39258 else
39259   { $as_echo "$as_me:$LINENO: result: no" >&5
39260 $as_echo "no" >&6; }
39261 fi
39262
39263
39264   test -n "$RESTORE" && break
39265 done
39266
39267
39268     # newer versions of GNU tar include a program named 'backup' which
39269     # does *not* implement the expected 'dump' interface.  Detect that here
39270     # and pretend we never saw it.
39271     if test -n "$DUMP"; then
39272       if test "`basename $DUMP`" = "backup"; then
39273         backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
39274         if test $? -eq 0; then
39275           DUMP=
39276         fi
39277       fi
39278     fi
39279
39280     if test "$DUMP" -a "$RESTORE"; then
39281
39282 cat >>confdefs.h <<_ACEOF
39283 #define DUMP "$DUMP"
39284 _ACEOF
39285
39286
39287 cat >>confdefs.h <<_ACEOF
39288 #define RESTORE "$RESTORE"
39289 _ACEOF
39290
39291
39292         # check for an estimate flag
39293         if test -x $DUMP; then
39294             { $as_echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
39295 $as_echo_n "checking whether $DUMP supports -E or -S for estimates... " >&6; }
39296 if test "${amanda_cv_dump_estimate+set}" = set; then
39297   $as_echo_n "(cached) " >&6
39298 else
39299
39300                     case "$DUMP" in
39301                     *dump)
39302                         { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
39303                             | $GREP -v Dumping
39304                             | $GREP -v Date
39305                             | $GREP -v Label >conftest.d-E 2>&1'
39306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39307   (eval $ac_try) 2>&5
39308   ac_status=$?
39309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39310   (exit $ac_status); }; }
39311                         cat conftest.d-E >&5
39312                         { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
39313                             | $GREP -v Dumping
39314                             | $GREP -v Date
39315                             | $GREP -v Label >conftest.d-S 2>&1'
39316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39317   (eval $ac_try) 2>&5
39318   ac_status=$?
39319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39320   (exit $ac_status); }; }
39321                         cat conftest.d-S >&5
39322                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
39323                             | $GREP -v Dumping
39324                             | $GREP -v Date
39325                             | $GREP -v Label >conftest.d 2>&1'
39326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39327   (eval $ac_try) 2>&5
39328   ac_status=$?
39329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39330   (exit $ac_status); }; }
39331                         cat conftest.d >&5
39332                         if { ac_try='cmp conftest.d-E conftest.d 1>&2'
39333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39334   (eval $ac_try) 2>&5
39335   ac_status=$?
39336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39337   (exit $ac_status); }; }; then
39338                             amanda_cv_dump_estimate=E
39339                         elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
39340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39341   (eval $ac_try) 2>&5
39342   ac_status=$?
39343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39344   (exit $ac_status); }; }; then
39345                             amanda_cv_dump_estimate=S
39346                         else
39347                             amanda_cv_dump_estimate=no
39348                         fi
39349                         rm -f conftest.d conftest.d-E conftest.d-S
39350                       ;;
39351                     *) amanda_cv_dump_estimate=no
39352                       ;;
39353                     esac
39354
39355 fi
39356 { $as_echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
39357 $as_echo "$amanda_cv_dump_estimate" >&6; }
39358         else
39359
39360     { $as_echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -E/-S test" >&5
39361 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -E/-S test" >&2;}
39362
39363
39364     cat <<AAW_EOF >>config.warnings
39365 $DUMP is not executable, cannot run -E/-S test
39366 AAW_EOF
39367
39368
39369             amanda_cv_dump_estimate=no
39370         fi
39371         if test "x$amanda_cv_dump_estimate" != xno; then
39372
39373 cat >>confdefs.h <<_ACEOF
39374 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
39375 _ACEOF
39376
39377         fi
39378
39379
39380 # Check whether --with-dump-honor-nodump was given.
39381 if test "${with_dump_honor_nodump+set}" = set; then
39382   withval=$with_dump_honor_nodump;
39383             if test -x $DUMP; then
39384                 { $as_echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
39385 $as_echo_n "checking whether $DUMP supports -h (honor nodump flag)... " >&6; }
39386 if test "${amanda_cv_honor_nodump+set}" = set; then
39387   $as_echo_n "(cached) " >&6
39388 else
39389
39390                     case "$DUMP" in
39391                     *dump)
39392                         { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
39393                             | $GREP -v Dumping
39394                             | $GREP -v Date
39395                             | $GREP -v Label >conftest.d-h 2>&1'
39396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39397   (eval $ac_try) 2>&5
39398   ac_status=$?
39399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39400   (exit $ac_status); }; }
39401                         cat conftest.d-h >&5
39402                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
39403                             | $GREP -v Dumping
39404                             | $GREP -v Date
39405                             | $GREP -v Label >conftest.d 2>&1'
39406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39407   (eval $ac_try) 2>&5
39408   ac_status=$?
39409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39410   (exit $ac_status); }; }
39411                         cat conftest.d >&5
39412                         if { ac_try='diff conftest.d-h conftest.d 1>&2'
39413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39414   (eval $ac_try) 2>&5
39415   ac_status=$?
39416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39417   (exit $ac_status); }; }; then
39418                             amanda_cv_honor_nodump=yes
39419                         else
39420                             amanda_cv_honor_nodump=no
39421                         fi
39422                         rm -f conftest.d conftest.d-h
39423                       ;;
39424                     *) amanda_cv_honor_nodump=no
39425                       ;;
39426                     esac
39427
39428 fi
39429 { $as_echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
39430 $as_echo "$amanda_cv_honor_nodump" >&6; }
39431             else
39432
39433     { $as_echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -h test" >&5
39434 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -h test" >&2;}
39435
39436
39437     cat <<AAW_EOF >>config.warnings
39438 $DUMP is not executable, cannot run -h test
39439 AAW_EOF
39440
39441
39442                 amanda_cv_honor_nodump=no
39443             fi
39444             if test "x$amanda_cv_honor_nodump" = xyes; then
39445
39446 cat >>confdefs.h <<\_ACEOF
39447 #define HAVE_HONOR_NODUMP 1
39448 _ACEOF
39449
39450             fi
39451
39452 fi
39453
39454     fi
39455
39456
39457
39458
39459
39460
39461
39462     # call with
39463
39464 # Check whether --with-gnutar was given.
39465 if test "${with_gnutar+set}" = set; then
39466   withval=$with_gnutar;
39467             # check withval
39468             case "$withval" in
39469                 /*) GNUTAR="$withval";;
39470                 y|ye|yes) :;;
39471                 n|no) GNUTAR=no ;;
39472                 *)  { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
39473 $as_echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
39474    { (exit 1); exit 1; }; };;
39475             esac
39476             # done
39477
39478
39479 fi
39480
39481
39482     if test "x$GNUTAR" = "xno"; then
39483         GNUTAR=
39484     else
39485         OLD_GNUTAR=$GNUTAR
39486         for gnutar_name in gtar gnutar tar; do
39487             for ac_prog in $gnutar_name
39488 do
39489   # Extract the first word of "$ac_prog", so it can be a program name with args.
39490 set dummy $ac_prog; ac_word=$2
39491 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
39492 $as_echo_n "checking for $ac_word... " >&6; }
39493 if test "${ac_cv_path_GNUTAR+set}" = set; then
39494   $as_echo_n "(cached) " >&6
39495 else
39496   case $GNUTAR in
39497   [\\/]* | ?:[\\/]*)
39498   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
39499   ;;
39500   *)
39501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39502 for as_dir in $LOCSYSPATH
39503 do
39504   IFS=$as_save_IFS
39505   test -z "$as_dir" && as_dir=.
39506   for ac_exec_ext in '' $ac_executable_extensions; do
39507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39508     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
39509     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39510     break 2
39511   fi
39512 done
39513 done
39514 IFS=$as_save_IFS
39515
39516   ;;
39517 esac
39518 fi
39519 GNUTAR=$ac_cv_path_GNUTAR
39520 if test -n "$GNUTAR"; then
39521   { $as_echo "$as_me:$LINENO: result: $GNUTAR" >&5
39522 $as_echo "$GNUTAR" >&6; }
39523 else
39524   { $as_echo "$as_me:$LINENO: result: no" >&5
39525 $as_echo "no" >&6; }
39526 fi
39527
39528
39529   test -n "$GNUTAR" && break
39530 done
39531
39532             if test -n "$GNUTAR"; then
39533               case `"$GNUTAR" --version 2>&1` in
39534                *GNU*tar* | *Free*paxutils* )
39535                             # OK, it is GNU tar
39536                             break
39537                             ;;
39538                *)
39539                             if test -n "$OLD_GNUTAR"; then
39540
39541     { $as_echo "$as_me:$LINENO: WARNING: $GNUTAR is not GNU tar, it will be used." >&5
39542 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, it will be used." >&2;}
39543
39544
39545     cat <<AAW_EOF >>config.warnings
39546 $GNUTAR is not GNU tar, it will be used.
39547 AAW_EOF
39548
39549
39550                             else
39551                                     # warning..
39552
39553     { $as_echo "$as_me:$LINENO: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&5
39554 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&2;}
39555
39556
39557     cat <<AAW_EOF >>config.warnings
39558 $GNUTAR is not GNU tar, so it will not be used.
39559 AAW_EOF
39560
39561
39562                                     # reset the cache for GNUTAR so AC_PATH_PROGS will search again
39563                                     GNUTAR=''
39564                                     unset ac_cv_path_GNUTAR
39565                             fi
39566                             ;;
39567               esac
39568             fi
39569         done
39570     fi
39571
39572     if test "x$GNUTAR" != "x"; then
39573         # define unquoted
39574
39575 cat >>confdefs.h <<_ACEOF
39576 #define GNUTAR "$GNUTAR"
39577 _ACEOF
39578
39579     fi
39580
39581
39582
39583
39584
39585
39586     # call with
39587
39588 # Check whether --with-star was given.
39589 if test "${with_star+set}" = set; then
39590   withval=$with_star;
39591             # check withval
39592             case "$withval" in
39593                 /*) STAR="$withval";;
39594                 y|ye|yes) :;;
39595                 n|no) STAR=no ;;
39596                 *)  { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-star" >&5
39597 $as_echo "$as_me: error: *** You must supply a full pathname to --with-star" >&2;}
39598    { (exit 1); exit 1; }; };;
39599             esac
39600             # done
39601
39602
39603 fi
39604
39605
39606     if test "x$STAR" = "xno"; then
39607         STAR=
39608     else
39609         OLD_STAR=$STAR
39610         for ac_prog in star
39611 do
39612   # Extract the first word of "$ac_prog", so it can be a program name with args.
39613 set dummy $ac_prog; ac_word=$2
39614 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
39615 $as_echo_n "checking for $ac_word... " >&6; }
39616 if test "${ac_cv_path_STAR+set}" = set; then
39617   $as_echo_n "(cached) " >&6
39618 else
39619   case $STAR in
39620   [\\/]* | ?:[\\/]*)
39621   ac_cv_path_STAR="$STAR" # Let the user override the test with a path.
39622   ;;
39623   *)
39624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39625 for as_dir in $LOCSYSPATH
39626 do
39627   IFS=$as_save_IFS
39628   test -z "$as_dir" && as_dir=.
39629   for ac_exec_ext in '' $ac_executable_extensions; do
39630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39631     ac_cv_path_STAR="$as_dir/$ac_word$ac_exec_ext"
39632     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39633     break 2
39634   fi
39635 done
39636 done
39637 IFS=$as_save_IFS
39638
39639   ;;
39640 esac
39641 fi
39642 STAR=$ac_cv_path_STAR
39643 if test -n "$STAR"; then
39644   { $as_echo "$as_me:$LINENO: result: $STAR" >&5
39645 $as_echo "$STAR" >&6; }
39646 else
39647   { $as_echo "$as_me:$LINENO: result: no" >&5
39648 $as_echo "no" >&6; }
39649 fi
39650
39651
39652   test -n "$STAR" && break
39653 done
39654
39655         if test -n "$STAR"; then
39656             case `"$STAR" --version 2>/dev/null` in
39657              *star*)
39658                     # OK, it is star
39659                     break
39660                     ;;
39661              *)
39662                     if test -n "$OLD_STAR"; then
39663
39664     { $as_echo "$as_me:$LINENO: WARNING: $STAR is not star, it will be used." >&5
39665 $as_echo "$as_me: WARNING: $STAR is not star, it will be used." >&2;}
39666
39667
39668     cat <<AAW_EOF >>config.warnings
39669 $STAR is not star, it will be used.
39670 AAW_EOF
39671
39672
39673                     else
39674                         # warning..
39675
39676     { $as_echo "$as_me:$LINENO: WARNING: $STAR is not star, so it will not be used." >&5
39677 $as_echo "$as_me: WARNING: $STAR is not star, so it will not be used." >&2;}
39678
39679
39680     cat <<AAW_EOF >>config.warnings
39681 $STAR is not star, so it will not be used.
39682 AAW_EOF
39683
39684
39685                         # reset the cache for STAR so AC_PATH_PROGS will search again
39686                         STAR=''
39687                         unset ac_cv_path_STAR
39688                     fi
39689                     ;;
39690             esac
39691         fi
39692     fi
39693
39694     if test "x$STAR" != "x"; then
39695         # define unquoted
39696
39697 cat >>confdefs.h <<_ACEOF
39698 #define STAR "$STAR"
39699 _ACEOF
39700
39701     fi
39702
39703
39704
39705
39706
39707
39708
39709 # Check whether --with-smbclient was given.
39710 if test "${with_smbclient+set}" = set; then
39711   withval=$with_smbclient;
39712             case "$withval" in
39713                 /*) SAMBA_CLIENT="$withval";;
39714                 y|ye|yes) :;;
39715                 n|no) SAMBA_CLIENT=no ;;
39716                 *)  { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
39717 $as_echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
39718    { (exit 1); exit 1; }; };;
39719             esac
39720
39721
39722 fi
39723
39724
39725
39726 # Check whether --with-samba-user was given.
39727 if test "${with_samba_user+set}" = set; then
39728   withval=$with_samba_user;  { { $as_echo "$as_me:$LINENO: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&5
39729 $as_echo "$as_me: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&2;}
39730    { (exit 1); exit 1; }; }
39731
39732 fi
39733
39734
39735     if test "x$SAMBA_CLIENT" != "xno"; then
39736       # Extract the first word of "smbclient", so it can be a program name with args.
39737 set dummy smbclient; ac_word=$2
39738 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
39739 $as_echo_n "checking for $ac_word... " >&6; }
39740 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
39741   $as_echo_n "(cached) " >&6
39742 else
39743   case $SAMBA_CLIENT in
39744   [\\/]* | ?:[\\/]*)
39745   ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
39746   ;;
39747   *)
39748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39749 for as_dir in $LOCSYSPATH
39750 do
39751   IFS=$as_save_IFS
39752   test -z "$as_dir" && as_dir=.
39753   for ac_exec_ext in '' $ac_executable_extensions; do
39754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39755     ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
39756     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39757     break 2
39758   fi
39759 done
39760 done
39761 IFS=$as_save_IFS
39762
39763   ;;
39764 esac
39765 fi
39766 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
39767 if test -n "$SAMBA_CLIENT"; then
39768   { $as_echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
39769 $as_echo "$SAMBA_CLIENT" >&6; }
39770 else
39771   { $as_echo "$as_me:$LINENO: result: no" >&5
39772 $as_echo "no" >&6; }
39773 fi
39774
39775
39776       smbversion=0
39777       if test ! -z "$SAMBA_CLIENT"; then
39778         case `"$SAMBA_CLIENT" '\\\\nosuchhost.amanda.org\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1` in
39779         *"Unknown host"*)
39780                       smbversion=1
39781                       ;;
39782         *"Connection to nosuchhost.amanda.org failed"*)
39783                       smbversion=2
39784                       ;;
39785         *)
39786
39787     { $as_echo "$as_me:$LINENO: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
39788 $as_echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
39789
39790
39791     cat <<AAW_EOF >>config.warnings
39792 $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.
39793 AAW_EOF
39794
39795
39796                       SAMBA_CLIENT=
39797                       ;;
39798         esac
39799         if test -n "$SAMBA_CLIENT"; then
39800
39801 cat >>confdefs.h <<_ACEOF
39802 #define SAMBA_CLIENT "$SAMBA_CLIENT"
39803 _ACEOF
39804
39805
39806 cat >>confdefs.h <<_ACEOF
39807 #define SAMBA_VERSION $smbversion
39808 _ACEOF
39809
39810         fi
39811       fi
39812     fi
39813
39814      if test -n "$SAMBA_CLIENT"; then
39815   WANT_SAMBA_TRUE=
39816   WANT_SAMBA_FALSE='#'
39817 else
39818   WANT_SAMBA_TRUE='#'
39819   WANT_SAMBA_FALSE=
39820 fi
39821
39822
39823
39824     USE_RUNDUMP=no
39825
39826     # some systems require rundump unconditionally
39827     case "$host" in
39828         *-ultrix*) USE_RUNDUMP=yes ;;
39829         *-dg-*) USE_RUNDUMP=yes ;;
39830     esac
39831
39832
39833 # Check whether --with-rundump was given.
39834 if test "${with_rundump+set}" = set; then
39835   withval=$with_rundump;
39836         case "$withval" in
39837             n | no) USE_RUNDUMP=no ;;
39838             y | ye | yes) USE_RUNDUMP=yes ;;
39839             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-rundump option." >&5
39840 $as_echo "$as_me: error: You must not supply an argument to --with-rundump option." >&2;}
39841    { (exit 1); exit 1; }; };;
39842         esac
39843
39844 fi
39845
39846
39847     if test x"$USE_RUNDUMP" = x"yes"; then
39848         USE_RUNDUMP=1
39849
39850 cat >>confdefs.h <<\_ACEOF
39851 #define USE_RUNDUMP 1
39852 _ACEOF
39853
39854     else
39855         USE_RUNDUMP=
39856     fi
39857
39858
39859
39860
39861 #
39862 # Look for other programs Amanda will use
39863 #
39864
39865
39866     # Extract the first word of "grep", so it can be a program name with args.
39867 set dummy grep; ac_word=$2
39868 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
39869 $as_echo_n "checking for $ac_word... " >&6; }
39870 if test "${ac_cv_path_GREP+set}" = set; then
39871   $as_echo_n "(cached) " >&6
39872 else
39873   case $GREP in
39874   [\\/]* | ?:[\\/]*)
39875   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
39876   ;;
39877   *)
39878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39879 for as_dir in $LOCSYSPATH
39880 do
39881   IFS=$as_save_IFS
39882   test -z "$as_dir" && as_dir=.
39883   for ac_exec_ext in '' $ac_executable_extensions; do
39884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39885     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
39886     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39887     break 2
39888   fi
39889 done
39890 done
39891 IFS=$as_save_IFS
39892
39893   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
39894   ;;
39895 esac
39896 fi
39897 GREP=$ac_cv_path_GREP
39898 if test -n "$GREP"; then
39899   { $as_echo "$as_me:$LINENO: result: $GREP" >&5
39900 $as_echo "$GREP" >&6; }
39901 else
39902   { $as_echo "$as_me:$LINENO: result: no" >&5
39903 $as_echo "no" >&6; }
39904 fi
39905
39906
39907
39908 cat >>confdefs.h <<_ACEOF
39909 #define GREP "$GREP"
39910 _ACEOF
39911
39912
39913 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
39914 $as_echo_n "checking for egrep... " >&6; }
39915 if test "${ac_cv_path_EGREP+set}" = set; then
39916   $as_echo_n "(cached) " >&6
39917 else
39918   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
39919    then ac_cv_path_EGREP="$GREP -E"
39920    else
39921      if test -z "$EGREP"; then
39922   ac_path_EGREP_found=false
39923   # Loop through the user's path and test for each of PROGNAME-LIST
39924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39925 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
39926 do
39927   IFS=$as_save_IFS
39928   test -z "$as_dir" && as_dir=.
39929   for ac_prog in egrep; do
39930     for ac_exec_ext in '' $ac_executable_extensions; do
39931       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
39932       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
39933 # Check for GNU ac_path_EGREP and select it if it is found.
39934   # Check for GNU $ac_path_EGREP
39935 case `"$ac_path_EGREP" --version 2>&1` in
39936 *GNU*)
39937   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
39938 *)
39939   ac_count=0
39940   $as_echo_n 0123456789 >"conftest.in"
39941   while :
39942   do
39943     cat "conftest.in" "conftest.in" >"conftest.tmp"
39944     mv "conftest.tmp" "conftest.in"
39945     cp "conftest.in" "conftest.nl"
39946     $as_echo 'EGREP' >> "conftest.nl"
39947     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
39948     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
39949     ac_count=`expr $ac_count + 1`
39950     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
39951       # Best one so far, save it but keep looking for a better one
39952       ac_cv_path_EGREP="$ac_path_EGREP"
39953       ac_path_EGREP_max=$ac_count
39954     fi
39955     # 10*(2^10) chars as input seems more than enough
39956     test $ac_count -gt 10 && break
39957   done
39958   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
39959 esac
39960
39961       $ac_path_EGREP_found && break 3
39962     done
39963   done
39964 done
39965 IFS=$as_save_IFS
39966   if test -z "$ac_cv_path_EGREP"; then
39967     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
39968 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
39969    { (exit 1); exit 1; }; }
39970   fi
39971 else
39972   ac_cv_path_EGREP=$EGREP
39973 fi
39974
39975    fi
39976 fi
39977 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
39978 $as_echo "$ac_cv_path_EGREP" >&6; }
39979  EGREP="$ac_cv_path_EGREP"
39980
39981
39982
39983
39984
39985
39986     # Extract the first word of "lint", so it can be a program name with args.
39987 set dummy lint; ac_word=$2
39988 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
39989 $as_echo_n "checking for $ac_word... " >&6; }
39990 if test "${ac_cv_path_AMLINT+set}" = set; then
39991   $as_echo_n "(cached) " >&6
39992 else
39993   case $AMLINT in
39994   [\\/]* | ?:[\\/]*)
39995   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
39996   ;;
39997   *)
39998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39999 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
40000 for as_dir in $as_dummy
40001 do
40002   IFS=$as_save_IFS
40003   test -z "$as_dir" && as_dir=.
40004   for ac_exec_ext in '' $ac_executable_extensions; do
40005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40006     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
40007     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40008     break 2
40009   fi
40010 done
40011 done
40012 IFS=$as_save_IFS
40013
40014   ;;
40015 esac
40016 fi
40017 AMLINT=$ac_cv_path_AMLINT
40018 if test -n "$AMLINT"; then
40019   { $as_echo "$as_me:$LINENO: result: $AMLINT" >&5
40020 $as_echo "$AMLINT" >&6; }
40021 else
40022   { $as_echo "$as_me:$LINENO: result: no" >&5
40023 $as_echo "no" >&6; }
40024 fi
40025
40026
40027     if test ! -z "$AMLINT"; then
40028       $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
40029       if test $? -eq 0; then
40030         AMLINTFLAGS="-n -s -u -m -x"
40031         AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
40032         AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
40033         AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
40034         AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
40035         AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
40036         AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
40037         AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
40038         AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
40039         AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
40040         AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
40041         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
40042         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
40043         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
40044         AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
40045         AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
40046         AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
40047         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
40048         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
40049         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
40050         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
40051         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
40052         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
40053         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
40054         AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
40055         AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
40056         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
40057         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
40058         AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
40059         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
40060         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
40061         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
40062         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
40063         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
40064         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
40065         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
40066         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
40067         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
40068         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
40069         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
40070         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
40071         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
40072         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
40073         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
40074         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
40075         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
40076         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
40077         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
40078         AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
40079         AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
40080         AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
40081       else
40082         AMLINTFLAGS=""
40083       fi
40084     else
40085       # Extract the first word of "splint", so it can be a program name with args.
40086 set dummy splint; ac_word=$2
40087 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40088 $as_echo_n "checking for $ac_word... " >&6; }
40089 if test "${ac_cv_path_AMLINT+set}" = set; then
40090   $as_echo_n "(cached) " >&6
40091 else
40092   case $AMLINT in
40093   [\\/]* | ?:[\\/]*)
40094   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
40095   ;;
40096   *)
40097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40098 for as_dir in $SYSLOCPATH
40099 do
40100   IFS=$as_save_IFS
40101   test -z "$as_dir" && as_dir=.
40102   for ac_exec_ext in '' $ac_executable_extensions; do
40103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40104     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
40105     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40106     break 2
40107   fi
40108 done
40109 done
40110 IFS=$as_save_IFS
40111
40112   ;;
40113 esac
40114 fi
40115 AMLINT=$ac_cv_path_AMLINT
40116 if test -n "$AMLINT"; then
40117   { $as_echo "$as_me:$LINENO: result: $AMLINT" >&5
40118 $as_echo "$AMLINT" >&6; }
40119 else
40120   { $as_echo "$as_me:$LINENO: result: no" >&5
40121 $as_echo "no" >&6; }
40122 fi
40123
40124
40125       if test ! -z "$AMLINT"; then
40126         AMLINT="splint"
40127         AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
40128       else
40129         AMLINT='echo "Error: LINT is not installed" ; false'
40130         AMLINTFLAGS=''
40131       fi
40132     fi
40133
40134
40135 for ac_prog in flex lex
40136 do
40137   # Extract the first word of "$ac_prog", so it can be a program name with args.
40138 set dummy $ac_prog; ac_word=$2
40139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40140 $as_echo_n "checking for $ac_word... " >&6; }
40141 if test "${ac_cv_prog_LEX+set}" = set; then
40142   $as_echo_n "(cached) " >&6
40143 else
40144   if test -n "$LEX"; then
40145   ac_cv_prog_LEX="$LEX" # Let the user override the test.
40146 else
40147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40148 for as_dir in $PATH
40149 do
40150   IFS=$as_save_IFS
40151   test -z "$as_dir" && as_dir=.
40152   for ac_exec_ext in '' $ac_executable_extensions; do
40153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40154     ac_cv_prog_LEX="$ac_prog"
40155     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40156     break 2
40157   fi
40158 done
40159 done
40160 IFS=$as_save_IFS
40161
40162 fi
40163 fi
40164 LEX=$ac_cv_prog_LEX
40165 if test -n "$LEX"; then
40166   { $as_echo "$as_me:$LINENO: result: $LEX" >&5
40167 $as_echo "$LEX" >&6; }
40168 else
40169   { $as_echo "$as_me:$LINENO: result: no" >&5
40170 $as_echo "no" >&6; }
40171 fi
40172
40173
40174   test -n "$LEX" && break
40175 done
40176 test -n "$LEX" || LEX=":"
40177
40178 if test "x$LEX" != "x:"; then
40179   cat >conftest.l <<_ACEOF
40180 %%
40181 a { ECHO; }
40182 b { REJECT; }
40183 c { yymore (); }
40184 d { yyless (1); }
40185 e { yyless (input () != 0); }
40186 f { unput (yytext[0]); }
40187 . { BEGIN INITIAL; }
40188 %%
40189 #ifdef YYTEXT_POINTER
40190 extern char *yytext;
40191 #endif
40192 int
40193 main (void)
40194 {
40195   return ! yylex () + ! yywrap ();
40196 }
40197 _ACEOF
40198 { (ac_try="$LEX conftest.l"
40199 case "(($ac_try" in
40200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40201   *) ac_try_echo=$ac_try;;
40202 esac
40203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40204 $as_echo "$ac_try_echo") >&5
40205   (eval "$LEX conftest.l") 2>&5
40206   ac_status=$?
40207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40208   (exit $ac_status); }
40209 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
40210 $as_echo_n "checking lex output file root... " >&6; }
40211 if test "${ac_cv_prog_lex_root+set}" = set; then
40212   $as_echo_n "(cached) " >&6
40213 else
40214
40215 if test -f lex.yy.c; then
40216   ac_cv_prog_lex_root=lex.yy
40217 elif test -f lexyy.c; then
40218   ac_cv_prog_lex_root=lexyy
40219 else
40220   { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
40221 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
40222    { (exit 1); exit 1; }; }
40223 fi
40224 fi
40225 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
40226 $as_echo "$ac_cv_prog_lex_root" >&6; }
40227 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
40228
40229 if test -z "${LEXLIB+set}"; then
40230   { $as_echo "$as_me:$LINENO: checking lex library" >&5
40231 $as_echo_n "checking lex library... " >&6; }
40232 if test "${ac_cv_lib_lex+set}" = set; then
40233   $as_echo_n "(cached) " >&6
40234 else
40235
40236     ac_save_LIBS=$LIBS
40237     ac_cv_lib_lex='none needed'
40238     for ac_lib in '' -lfl -ll; do
40239       LIBS="$ac_lib $ac_save_LIBS"
40240       cat >conftest.$ac_ext <<_ACEOF
40241 `cat $LEX_OUTPUT_ROOT.c`
40242 _ACEOF
40243 rm -f conftest.$ac_objext conftest$ac_exeext
40244 if { (ac_try="$ac_link"
40245 case "(($ac_try" in
40246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40247   *) ac_try_echo=$ac_try;;
40248 esac
40249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40250 $as_echo "$ac_try_echo") >&5
40251   (eval "$ac_link") 2>conftest.er1
40252   ac_status=$?
40253   grep -v '^ *+' conftest.er1 >conftest.err
40254   rm -f conftest.er1
40255   cat conftest.err >&5
40256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40257   (exit $ac_status); } && {
40258          test -z "$ac_c_werror_flag" ||
40259          test ! -s conftest.err
40260        } && test -s conftest$ac_exeext && {
40261          test "$cross_compiling" = yes ||
40262          $as_test_x conftest$ac_exeext
40263        }; then
40264   ac_cv_lib_lex=$ac_lib
40265 else
40266   $as_echo "$as_me: failed program was:" >&5
40267 sed 's/^/| /' conftest.$ac_ext >&5
40268
40269
40270 fi
40271
40272 rm -rf conftest.dSYM
40273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40274       conftest$ac_exeext conftest.$ac_ext
40275       test "$ac_cv_lib_lex" != 'none needed' && break
40276     done
40277     LIBS=$ac_save_LIBS
40278
40279 fi
40280 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
40281 $as_echo "$ac_cv_lib_lex" >&6; }
40282   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
40283 fi
40284
40285
40286 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
40287 $as_echo_n "checking whether yytext is a pointer... " >&6; }
40288 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
40289   $as_echo_n "(cached) " >&6
40290 else
40291   # POSIX says lex can declare yytext either as a pointer or an array; the
40292 # default is implementation-dependent.  Figure out which it is, since
40293 # not all implementations provide the %pointer and %array declarations.
40294 ac_cv_prog_lex_yytext_pointer=no
40295 ac_save_LIBS=$LIBS
40296 LIBS="$LEXLIB $ac_save_LIBS"
40297 cat >conftest.$ac_ext <<_ACEOF
40298 #define YYTEXT_POINTER 1
40299 `cat $LEX_OUTPUT_ROOT.c`
40300 _ACEOF
40301 rm -f conftest.$ac_objext conftest$ac_exeext
40302 if { (ac_try="$ac_link"
40303 case "(($ac_try" in
40304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40305   *) ac_try_echo=$ac_try;;
40306 esac
40307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40308 $as_echo "$ac_try_echo") >&5
40309   (eval "$ac_link") 2>conftest.er1
40310   ac_status=$?
40311   grep -v '^ *+' conftest.er1 >conftest.err
40312   rm -f conftest.er1
40313   cat conftest.err >&5
40314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40315   (exit $ac_status); } && {
40316          test -z "$ac_c_werror_flag" ||
40317          test ! -s conftest.err
40318        } && test -s conftest$ac_exeext && {
40319          test "$cross_compiling" = yes ||
40320          $as_test_x conftest$ac_exeext
40321        }; then
40322   ac_cv_prog_lex_yytext_pointer=yes
40323 else
40324   $as_echo "$as_me: failed program was:" >&5
40325 sed 's/^/| /' conftest.$ac_ext >&5
40326
40327
40328 fi
40329
40330 rm -rf conftest.dSYM
40331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40332       conftest$ac_exeext conftest.$ac_ext
40333 LIBS=$ac_save_LIBS
40334
40335 fi
40336 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
40337 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
40338 if test $ac_cv_prog_lex_yytext_pointer = yes; then
40339
40340 cat >>confdefs.h <<\_ACEOF
40341 #define YYTEXT_POINTER 1
40342 _ACEOF
40343
40344 fi
40345 rm -f conftest.l $LEX_OUTPUT_ROOT.c
40346
40347 fi
40348 if test "$LEX" = :; then
40349   LEX=${am_missing_run}flex
40350 fi
40351
40352
40353     # Extract the first word of "ar", so it can be a program name with args.
40354 set dummy ar; ac_word=$2
40355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40356 $as_echo_n "checking for $ac_word... " >&6; }
40357 if test "${ac_cv_path_AR+set}" = set; then
40358   $as_echo_n "(cached) " >&6
40359 else
40360   case $AR in
40361   [\\/]* | ?:[\\/]*)
40362   ac_cv_path_AR="$AR" # Let the user override the test with a path.
40363   ;;
40364   *)
40365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40366 for as_dir in $LOCSYSPATH
40367 do
40368   IFS=$as_save_IFS
40369   test -z "$as_dir" && as_dir=.
40370   for ac_exec_ext in '' $ac_executable_extensions; do
40371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40372     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
40373     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40374     break 2
40375   fi
40376 done
40377 done
40378 IFS=$as_save_IFS
40379
40380   ;;
40381 esac
40382 fi
40383 AR=$ac_cv_path_AR
40384 if test -n "$AR"; then
40385   { $as_echo "$as_me:$LINENO: result: $AR" >&5
40386 $as_echo "$AR" >&6; }
40387 else
40388   { $as_echo "$as_me:$LINENO: result: no" >&5
40389 $as_echo "no" >&6; }
40390 fi
40391
40392
40393
40394
40395
40396     # Extract the first word of "gettext", so it can be a program name with args.
40397 set dummy gettext; ac_word=$2
40398 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40399 $as_echo_n "checking for $ac_word... " >&6; }
40400 if test "${ac_cv_path_GETTEXT+set}" = set; then
40401   $as_echo_n "(cached) " >&6
40402 else
40403   case $GETTEXT in
40404   [\\/]* | ?:[\\/]*)
40405   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
40406   ;;
40407   *)
40408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40409 for as_dir in $LOCSYSPATH
40410 do
40411   IFS=$as_save_IFS
40412   test -z "$as_dir" && as_dir=.
40413   for ac_exec_ext in '' $ac_executable_extensions; do
40414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40415     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
40416     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40417     break 2
40418   fi
40419 done
40420 done
40421 IFS=$as_save_IFS
40422
40423   ;;
40424 esac
40425 fi
40426 GETTEXT=$ac_cv_path_GETTEXT
40427 if test -n "$GETTEXT"; then
40428   { $as_echo "$as_me:$LINENO: result: $GETTEXT" >&5
40429 $as_echo "$GETTEXT" >&6; }
40430 else
40431   { $as_echo "$as_me:$LINENO: result: no" >&5
40432 $as_echo "no" >&6; }
40433 fi
40434
40435
40436
40437 for ac_prog in gawk mawk nawk awk
40438 do
40439   # Extract the first word of "$ac_prog", so it can be a program name with args.
40440 set dummy $ac_prog; ac_word=$2
40441 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40442 $as_echo_n "checking for $ac_word... " >&6; }
40443 if test "${ac_cv_prog_AWK+set}" = set; then
40444   $as_echo_n "(cached) " >&6
40445 else
40446   if test -n "$AWK"; then
40447   ac_cv_prog_AWK="$AWK" # Let the user override the test.
40448 else
40449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40450 for as_dir in $PATH
40451 do
40452   IFS=$as_save_IFS
40453   test -z "$as_dir" && as_dir=.
40454   for ac_exec_ext in '' $ac_executable_extensions; do
40455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40456     ac_cv_prog_AWK="$ac_prog"
40457     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40458     break 2
40459   fi
40460 done
40461 done
40462 IFS=$as_save_IFS
40463
40464 fi
40465 fi
40466 AWK=$ac_cv_prog_AWK
40467 if test -n "$AWK"; then
40468   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
40469 $as_echo "$AWK" >&6; }
40470 else
40471   { $as_echo "$as_me:$LINENO: result: no" >&5
40472 $as_echo "no" >&6; }
40473 fi
40474
40475
40476   test -n "$AWK" && break
40477 done
40478
40479 for ac_prog in 'bison -y' byacc
40480 do
40481   # Extract the first word of "$ac_prog", so it can be a program name with args.
40482 set dummy $ac_prog; ac_word=$2
40483 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40484 $as_echo_n "checking for $ac_word... " >&6; }
40485 if test "${ac_cv_prog_YACC+set}" = set; then
40486   $as_echo_n "(cached) " >&6
40487 else
40488   if test -n "$YACC"; then
40489   ac_cv_prog_YACC="$YACC" # Let the user override the test.
40490 else
40491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40492 for as_dir in $PATH
40493 do
40494   IFS=$as_save_IFS
40495   test -z "$as_dir" && as_dir=.
40496   for ac_exec_ext in '' $ac_executable_extensions; do
40497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40498     ac_cv_prog_YACC="$ac_prog"
40499     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40500     break 2
40501   fi
40502 done
40503 done
40504 IFS=$as_save_IFS
40505
40506 fi
40507 fi
40508 YACC=$ac_cv_prog_YACC
40509 if test -n "$YACC"; then
40510   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
40511 $as_echo "$YACC" >&6; }
40512 else
40513   { $as_echo "$as_me:$LINENO: result: no" >&5
40514 $as_echo "no" >&6; }
40515 fi
40516
40517
40518   test -n "$YACC" && break
40519 done
40520 test -n "$YACC" || YACC="yacc"
40521
40522 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
40523 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
40524 if test -z "$MKDIR_P"; then
40525   if test "${ac_cv_path_mkdir+set}" = set; then
40526   $as_echo_n "(cached) " >&6
40527 else
40528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40529 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
40530 do
40531   IFS=$as_save_IFS
40532   test -z "$as_dir" && as_dir=.
40533   for ac_prog in mkdir gmkdir; do
40534          for ac_exec_ext in '' $ac_executable_extensions; do
40535            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
40536            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
40537              'mkdir (GNU coreutils) '* | \
40538              'mkdir (coreutils) '* | \
40539              'mkdir (fileutils) '4.1*)
40540                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
40541                break 3;;
40542            esac
40543          done
40544        done
40545 done
40546 IFS=$as_save_IFS
40547
40548 fi
40549
40550   if test "${ac_cv_path_mkdir+set}" = set; then
40551     MKDIR_P="$ac_cv_path_mkdir -p"
40552   else
40553     # As a last resort, use the slow shell script.  Don't cache a
40554     # value for MKDIR_P within a source directory, because that will
40555     # break other packages using the cache if that directory is
40556     # removed, or if the value is a relative name.
40557     test -d ./--version && rmdir ./--version
40558     MKDIR_P="$ac_install_sh -d"
40559   fi
40560 fi
40561 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
40562 $as_echo "$MKDIR_P" >&6; }
40563
40564
40565
40566     # Extract the first word of "dd", so it can be a program name with args.
40567 set dummy dd; ac_word=$2
40568 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40569 $as_echo_n "checking for $ac_word... " >&6; }
40570 if test "${ac_cv_path_DD+set}" = set; then
40571   $as_echo_n "(cached) " >&6
40572 else
40573   case $DD in
40574   [\\/]* | ?:[\\/]*)
40575   ac_cv_path_DD="$DD" # Let the user override the test with a path.
40576   ;;
40577   *)
40578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40579 for as_dir in $LOCSYSPATH
40580 do
40581   IFS=$as_save_IFS
40582   test -z "$as_dir" && as_dir=.
40583   for ac_exec_ext in '' $ac_executable_extensions; do
40584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40585     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
40586     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40587     break 2
40588   fi
40589 done
40590 done
40591 IFS=$as_save_IFS
40592
40593   ;;
40594 esac
40595 fi
40596 DD=$ac_cv_path_DD
40597 if test -n "$DD"; then
40598   { $as_echo "$as_me:$LINENO: result: $DD" >&5
40599 $as_echo "$DD" >&6; }
40600 else
40601   { $as_echo "$as_me:$LINENO: result: no" >&5
40602 $as_echo "no" >&6; }
40603 fi
40604
40605
40606
40607
40608
40609     # Extract the first word of "bash", so it can be a program name with args.
40610 set dummy bash; ac_word=$2
40611 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40612 $as_echo_n "checking for $ac_word... " >&6; }
40613 if test "${ac_cv_path_BASH+set}" = set; then
40614   $as_echo_n "(cached) " >&6
40615 else
40616   case $BASH in
40617   [\\/]* | ?:[\\/]*)
40618   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
40619   ;;
40620   *)
40621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40622 for as_dir in $SYSPATH
40623 do
40624   IFS=$as_save_IFS
40625   test -z "$as_dir" && as_dir=.
40626   for ac_exec_ext in '' $ac_executable_extensions; do
40627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40628     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
40629     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40630     break 2
40631   fi
40632 done
40633 done
40634 IFS=$as_save_IFS
40635
40636   ;;
40637 esac
40638 fi
40639 BASH=$ac_cv_path_BASH
40640 if test -n "$BASH"; then
40641   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
40642 $as_echo "$BASH" >&6; }
40643 else
40644   { $as_echo "$as_me:$LINENO: result: no" >&5
40645 $as_echo "no" >&6; }
40646 fi
40647
40648
40649
40650
40651
40652
40653
40654     # Extract the first word of "sort", so it can be a program name with args.
40655 set dummy sort; ac_word=$2
40656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40657 $as_echo_n "checking for $ac_word... " >&6; }
40658 if test "${ac_cv_path_SORT+set}" = set; then
40659   $as_echo_n "(cached) " >&6
40660 else
40661   case $SORT in
40662   [\\/]* | ?:[\\/]*)
40663   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
40664   ;;
40665   *)
40666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40667 for as_dir in $LOCSYSPATH
40668 do
40669   IFS=$as_save_IFS
40670   test -z "$as_dir" && as_dir=.
40671   for ac_exec_ext in '' $ac_executable_extensions; do
40672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40673     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
40674     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40675     break 2
40676   fi
40677 done
40678 done
40679 IFS=$as_save_IFS
40680
40681   test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
40682   ;;
40683 esac
40684 fi
40685 SORT=$ac_cv_path_SORT
40686 if test -n "$SORT"; then
40687   { $as_echo "$as_me:$LINENO: result: $SORT" >&5
40688 $as_echo "$SORT" >&6; }
40689 else
40690   { $as_echo "$as_me:$LINENO: result: no" >&5
40691 $as_echo "no" >&6; }
40692 fi
40693
40694
40695
40696     # sort is only needed in the server build
40697     if test x"$SORT" = x"NONE" && $WANT_SERVER; then
40698         { { $as_echo "$as_me:$LINENO: error: Set SORT to the path of the sort program." >&5
40699 $as_echo "$as_me: error: Set SORT to the path of the sort program." >&2;}
40700    { (exit 1); exit 1; }; }
40701     fi
40702
40703
40704 cat >>confdefs.h <<_ACEOF
40705 #define SORT_PATH "$SORT"
40706 _ACEOF
40707
40708
40709
40710
40711     for ac_prog in Mail mailx mail
40712 do
40713   # Extract the first word of "$ac_prog", so it can be a program name with args.
40714 set dummy $ac_prog; ac_word=$2
40715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40716 $as_echo_n "checking for $ac_word... " >&6; }
40717 if test "${ac_cv_path_MAILER+set}" = set; then
40718   $as_echo_n "(cached) " >&6
40719 else
40720   case $MAILER in
40721   [\\/]* | ?:[\\/]*)
40722   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
40723   ;;
40724   *)
40725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40726 for as_dir in $PATH
40727 do
40728   IFS=$as_save_IFS
40729   test -z "$as_dir" && as_dir=.
40730   for ac_exec_ext in '' $ac_executable_extensions; do
40731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40732     ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
40733     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40734     break 2
40735   fi
40736 done
40737 done
40738 IFS=$as_save_IFS
40739
40740   ;;
40741 esac
40742 fi
40743 MAILER=$ac_cv_path_MAILER
40744 if test -n "$MAILER"; then
40745   { $as_echo "$as_me:$LINENO: result: $MAILER" >&5
40746 $as_echo "$MAILER" >&6; }
40747 else
40748   { $as_echo "$as_me:$LINENO: result: no" >&5
40749 $as_echo "no" >&6; }
40750 fi
40751
40752
40753   test -n "$MAILER" && break
40754 done
40755 test -n "$MAILER" || MAILER="NONE"
40756
40757     if test x"$MAILER" = x"NONE"; then
40758
40759     { $as_echo "$as_me:$LINENO: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
40760 $as_echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
40761
40762
40763     cat <<AAW_EOF >>config.warnings
40764 WARNING: Amanda cannot send mail reports without a mailer.
40765 AAW_EOF
40766
40767
40768         DEFAULT_MAILER=""
40769     else
40770         DEFAULT_MAILER="$MAILER"
40771     fi
40772
40773 cat >>confdefs.h <<_ACEOF
40774 #define DEFAULT_MAILER "$DEFAULT_MAILER"
40775 _ACEOF
40776
40777
40778
40779
40780
40781     # Extract the first word of "mt", so it can be a program name with args.
40782 set dummy mt; ac_word=$2
40783 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40784 $as_echo_n "checking for $ac_word... " >&6; }
40785 if test "${ac_cv_path_MT+set}" = set; then
40786   $as_echo_n "(cached) " >&6
40787 else
40788   case $MT in
40789   [\\/]* | ?:[\\/]*)
40790   ac_cv_path_MT="$MT" # Let the user override the test with a path.
40791   ;;
40792   *)
40793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40794 for as_dir in $LOCSYSPATH
40795 do
40796   IFS=$as_save_IFS
40797   test -z "$as_dir" && as_dir=.
40798   for ac_exec_ext in '' $ac_executable_extensions; do
40799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40800     ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
40801     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40802     break 2
40803   fi
40804 done
40805 done
40806 IFS=$as_save_IFS
40807
40808   test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
40809   ;;
40810 esac
40811 fi
40812 MT=$ac_cv_path_MT
40813 if test -n "$MT"; then
40814   { $as_echo "$as_me:$LINENO: result: $MT" >&5
40815 $as_echo "$MT" >&6; }
40816 else
40817   { $as_echo "$as_me:$LINENO: result: no" >&5
40818 $as_echo "no" >&6; }
40819 fi
40820
40821
40822
40823     case "$host" in
40824         *-hp-*) MT_FILE_FLAG="-t" ;;
40825         *) MT_FILE_FLAG="-f" ;;
40826     esac
40827
40828
40829
40830 cat >>confdefs.h <<_ACEOF
40831 #define MT_FILE_FLAG "$MT_FILE_FLAG"
40832 _ACEOF
40833
40834
40835
40836
40837
40838     for ac_prog in lpr lp
40839 do
40840   # Extract the first word of "$ac_prog", so it can be a program name with args.
40841 set dummy $ac_prog; ac_word=$2
40842 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40843 $as_echo_n "checking for $ac_word... " >&6; }
40844 if test "${ac_cv_path_LPR+set}" = set; then
40845   $as_echo_n "(cached) " >&6
40846 else
40847   case $LPR in
40848   [\\/]* | ?:[\\/]*)
40849   ac_cv_path_LPR="$LPR" # Let the user override the test with a path.
40850   ;;
40851   *)
40852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40853 for as_dir in $PATH
40854 do
40855   IFS=$as_save_IFS
40856   test -z "$as_dir" && as_dir=.
40857   for ac_exec_ext in '' $ac_executable_extensions; do
40858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40859     ac_cv_path_LPR="$as_dir/$ac_word$ac_exec_ext"
40860     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40861     break 2
40862   fi
40863 done
40864 done
40865 IFS=$as_save_IFS
40866
40867   ;;
40868 esac
40869 fi
40870 LPR=$ac_cv_path_LPR
40871 if test -n "$LPR"; then
40872   { $as_echo "$as_me:$LINENO: result: $LPR" >&5
40873 $as_echo "$LPR" >&6; }
40874 else
40875   { $as_echo "$as_me:$LINENO: result: no" >&5
40876 $as_echo "no" >&6; }
40877 fi
40878
40879
40880   test -n "$LPR" && break
40881 done
40882
40883     if test ! -z "$LPR"; then
40884
40885 cat >>confdefs.h <<\_ACEOF
40886 #define HAVE_LPR_CMD 1
40887 _ACEOF
40888
40889
40890         { $as_echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
40891 $as_echo_n "checking which flag to use to select a printer... " >&6; }
40892 if test "${amanda_cv_printer_flag+set}" = set; then
40893   $as_echo_n "(cached) " >&6
40894 else
40895
40896             amanda_cv_printer_flag=$LPRFLAG
40897             case "$LPR" in
40898                 lpr|*/lpr) amanda_cv_printer_flag="-P";;
40899                 lp|*/lp) amanda_cv_printer_flag="-d";;
40900             esac
40901
40902 fi
40903 { $as_echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
40904 $as_echo "$amanda_cv_printer_flag" >&6; }
40905         if test -z "$amanda_cv_printer_flag"; then
40906
40907     { $as_echo "$as_me:$LINENO: WARNING: WARNING: amanda will always print to the default printer" >&5
40908 $as_echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
40909
40910
40911     cat <<AAW_EOF >>config.warnings
40912 WARNING: amanda will always print to the default printer
40913 AAW_EOF
40914
40915
40916         fi
40917     fi
40918
40919
40920
40921
40922
40923
40924     # Extract the first word of "pcat", so it can be a program name with args.
40925 set dummy pcat; ac_word=$2
40926 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40927 $as_echo_n "checking for $ac_word... " >&6; }
40928 if test "${ac_cv_path_PCAT+set}" = set; then
40929   $as_echo_n "(cached) " >&6
40930 else
40931   case $PCAT in
40932   [\\/]* | ?:[\\/]*)
40933   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
40934   ;;
40935   *)
40936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40937 for as_dir in $LOCSYSPATH
40938 do
40939   IFS=$as_save_IFS
40940   test -z "$as_dir" && as_dir=.
40941   for ac_exec_ext in '' $ac_executable_extensions; do
40942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40943     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
40944     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40945     break 2
40946   fi
40947 done
40948 done
40949 IFS=$as_save_IFS
40950
40951   ;;
40952 esac
40953 fi
40954 PCAT=$ac_cv_path_PCAT
40955 if test -n "$PCAT"; then
40956   { $as_echo "$as_me:$LINENO: result: $PCAT" >&5
40957 $as_echo "$PCAT" >&6; }
40958 else
40959   { $as_echo "$as_me:$LINENO: result: no" >&5
40960 $as_echo "no" >&6; }
40961 fi
40962
40963
40964
40965
40966
40967     for ac_prog in perl5 perl
40968 do
40969   # Extract the first word of "$ac_prog", so it can be a program name with args.
40970 set dummy $ac_prog; ac_word=$2
40971 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40972 $as_echo_n "checking for $ac_word... " >&6; }
40973 if test "${ac_cv_path_PERL+set}" = set; then
40974   $as_echo_n "(cached) " >&6
40975 else
40976   case $PERL in
40977   [\\/]* | ?:[\\/]*)
40978   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
40979   ;;
40980   *)
40981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40982 for as_dir in $LOCSYSPATH
40983 do
40984   IFS=$as_save_IFS
40985   test -z "$as_dir" && as_dir=.
40986   for ac_exec_ext in '' $ac_executable_extensions; do
40987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40988     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
40989     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40990     break 2
40991   fi
40992 done
40993 done
40994 IFS=$as_save_IFS
40995
40996   ;;
40997 esac
40998 fi
40999 PERL=$ac_cv_path_PERL
41000 if test -n "$PERL"; then
41001   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
41002 $as_echo "$PERL" >&6; }
41003 else
41004   { $as_echo "$as_me:$LINENO: result: no" >&5
41005 $as_echo "no" >&6; }
41006 fi
41007
41008
41009   test -n "$PERL" && break
41010 done
41011
41012
41013     # Make sure we have perl
41014 if test -z "$PERL"; then
41015 # Extract the first word of "perl", so it can be a program name with args.
41016 set dummy perl; ac_word=$2
41017 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
41018 $as_echo_n "checking for $ac_word... " >&6; }
41019 if test "${ac_cv_prog_PERL+set}" = set; then
41020   $as_echo_n "(cached) " >&6
41021 else
41022   if test -n "$PERL"; then
41023   ac_cv_prog_PERL="$PERL" # Let the user override the test.
41024 else
41025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41026 for as_dir in $PATH
41027 do
41028   IFS=$as_save_IFS
41029   test -z "$as_dir" && as_dir=.
41030   for ac_exec_ext in '' $ac_executable_extensions; do
41031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41032     ac_cv_prog_PERL="perl"
41033     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41034     break 2
41035   fi
41036 done
41037 done
41038 IFS=$as_save_IFS
41039
41040 fi
41041 fi
41042 PERL=$ac_cv_prog_PERL
41043 if test -n "$PERL"; then
41044   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
41045 $as_echo "$PERL" >&6; }
41046 else
41047   { $as_echo "$as_me:$LINENO: result: no" >&5
41048 $as_echo "no" >&6; }
41049 fi
41050
41051
41052 fi
41053
41054 # Check if version of Perl is sufficient
41055 ac_perl_version="5.6.0"
41056
41057 if test "x$PERL" != "x"; then
41058   { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
41059 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
41060   # NB: It would be nice to log the error if there is one, but we cannot rely
41061   # on autoconf internals
41062   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
41063   if test $? -ne 0; then
41064     { $as_echo "$as_me:$LINENO: result: no" >&5
41065 $as_echo "no" >&6; };
41066
41067         { { $as_echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
41068 $as_echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
41069    { (exit 1); exit 1; }; }
41070
41071   else
41072     { $as_echo "$as_me:$LINENO: result: ok" >&5
41073 $as_echo "ok" >&6; };
41074
41075   fi
41076 else
41077   { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
41078 $as_echo "$as_me: WARNING: could not find perl" >&2;}
41079 fi
41080
41081
41082
41083
41084     for ac_prog in swig
41085 do
41086   # Extract the first word of "$ac_prog", so it can be a program name with args.
41087 set dummy $ac_prog; ac_word=$2
41088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
41089 $as_echo_n "checking for $ac_word... " >&6; }
41090 if test "${ac_cv_path_SWIG+set}" = set; then
41091   $as_echo_n "(cached) " >&6
41092 else
41093   case $SWIG in
41094   [\\/]* | ?:[\\/]*)
41095   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
41096   ;;
41097   *)
41098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41099 for as_dir in $LOCSYSPATH
41100 do
41101   IFS=$as_save_IFS
41102   test -z "$as_dir" && as_dir=.
41103   for ac_exec_ext in '' $ac_executable_extensions; do
41104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41105     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
41106     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41107     break 2
41108   fi
41109 done
41110 done
41111 IFS=$as_save_IFS
41112
41113   ;;
41114 esac
41115 fi
41116 SWIG=$ac_cv_path_SWIG
41117 if test -n "$SWIG"; then
41118   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
41119 $as_echo "$SWIG" >&6; }
41120 else
41121   { $as_echo "$as_me:$LINENO: result: no" >&5
41122 $as_echo "no" >&6; }
41123 fi
41124
41125
41126   test -n "$SWIG" && break
41127 done
41128
41129
41130     # 1.3.32 introduces a change in the way empty strings are handled (old versions
41131     # returned undef in Perl, while new versions return an empty Perl string)
41132
41133         # Extract the first word of "swig", so it can be a program name with args.
41134 set dummy swig; ac_word=$2
41135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
41136 $as_echo_n "checking for $ac_word... " >&6; }
41137 if test "${ac_cv_path_SWIG+set}" = set; then
41138   $as_echo_n "(cached) " >&6
41139 else
41140   case $SWIG in
41141   [\\/]* | ?:[\\/]*)
41142   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
41143   ;;
41144   *)
41145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41146 for as_dir in $PATH
41147 do
41148   IFS=$as_save_IFS
41149   test -z "$as_dir" && as_dir=.
41150   for ac_exec_ext in '' $ac_executable_extensions; do
41151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41152     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
41153     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41154     break 2
41155   fi
41156 done
41157 done
41158 IFS=$as_save_IFS
41159
41160   ;;
41161 esac
41162 fi
41163 SWIG=$ac_cv_path_SWIG
41164 if test -n "$SWIG"; then
41165   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
41166 $as_echo "$SWIG" >&6; }
41167 else
41168   { $as_echo "$as_me:$LINENO: result: no" >&5
41169 $as_echo "no" >&6; }
41170 fi
41171
41172
41173         if test -z "$SWIG" ; then
41174                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
41175         elif test -n "1.3.32" ; then
41176                 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
41177 $as_echo_n "checking for SWIG version... " >&6; }
41178                 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'`
41179                 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
41180 $as_echo "$swig_version" >&6; }
41181                 if test -n "$swig_version" ; then
41182                         # Calculate the required version number components
41183                         required=1.3.32
41184                         required_major=`echo $required | sed 's/[^0-9].*//'`
41185                         if test -z "$required_major" ; then
41186                                 required_major=0
41187                         fi
41188                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
41189                         required_minor=`echo $required | sed 's/[^0-9].*//'`
41190                         if test -z "$required_minor" ; then
41191                                 required_minor=0
41192                         fi
41193                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
41194                         required_patch=`echo $required | sed 's/[^0-9].*//'`
41195                         if test -z "$required_patch" ; then
41196                                 required_patch=0
41197                         fi
41198                         # Calculate the available version number components
41199                         available=$swig_version
41200                         available_major=`echo $available | sed 's/[^0-9].*//'`
41201                         if test -z "$available_major" ; then
41202                                 available_major=0
41203                         fi
41204                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
41205                         available_minor=`echo $available | sed 's/[^0-9].*//'`
41206                         if test -z "$available_minor" ; then
41207                                 available_minor=0
41208                         fi
41209                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
41210                         available_patch=`echo $available | sed 's/[^0-9].*//'`
41211                         if test -z "$available_patch" ; then
41212                                 available_patch=0
41213                         fi
41214                         if test $available_major -ne $required_major \
41215                                 -o $available_minor -ne $required_minor \
41216                                 -o $available_patch -lt $required_patch ; then
41217                                 SWIG='echo "Error: SWIG version >= 1.3.32 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
41218                         else
41219                                 SWIG_LIB=`$SWIG -swiglib`
41220                         fi
41221                 else
41222                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
41223                 fi
41224         fi
41225
41226
41227
41228
41229     # Extract the first word of "ps", so it can be a program name with args.
41230 set dummy ps; ac_word=$2
41231 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
41232 $as_echo_n "checking for $ac_word... " >&6; }
41233 if test "${ac_cv_path_PS+set}" = set; then
41234   $as_echo_n "(cached) " >&6
41235 else
41236   case $PS in
41237   [\\/]* | ?:[\\/]*)
41238   ac_cv_path_PS="$PS" # Let the user override the test with a path.
41239   ;;
41240   *)
41241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41242 for as_dir in $PATH
41243 do
41244   IFS=$as_save_IFS
41245   test -z "$as_dir" && as_dir=.
41246   for ac_exec_ext in '' $ac_executable_extensions; do
41247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41248     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
41249     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41250     break 2
41251   fi
41252 done
41253 done
41254 IFS=$as_save_IFS
41255
41256   ;;
41257 esac
41258 fi
41259 PS=$ac_cv_path_PS
41260 if test -n "$PS"; then
41261   { $as_echo "$as_me:$LINENO: result: $PS" >&5
41262 $as_echo "$PS" >&6; }
41263 else
41264   { $as_echo "$as_me:$LINENO: result: no" >&5
41265 $as_echo "no" >&6; }
41266 fi
41267
41268
41269     { $as_echo "$as_me:$LINENO: checking ps argument to use" >&5
41270 $as_echo_n "checking ps argument to use... " >&6; }
41271     PS_ARGUMENT=
41272
41273     # ps is *very* non-portable, and across many systems, the same option
41274     # (e.g., -e) can mean different things.  So this macro tries to
41275     # special-case most known systems, and makes an effort to detect unknown
41276     # systems
41277     case "$host" in
41278         *-*-solaris*)
41279             PS_ARGUMENT="-eo pid,ppid,comm"
41280             PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
41281             ;;
41282
41283         *-*-linux-*)
41284             PS_ARGUMENT="-eo pid,ppid,command"
41285             PS_ARGUMENT_ARGS="-eo pid,ppid,command"
41286             ;;
41287
41288         *-*-*bsd*)
41289             PS_ARGUMENT="-axo pid,ppid,command"
41290             PS_ARGUMENT_ARGS="-axo pid,ppid,command"
41291             ;;
41292
41293         *-apple-darwin*)
41294             PS_ARGUMENT="-aAco pid,ppid,command"
41295             PS_ARGUMENT_ARGS="-aAo pid,ppid,command"
41296             ;;
41297
41298         *-pc-cygwin)
41299             # Cygwin is special-cased in Amanda::Process
41300             PS_ARGUMENT=CYGWIN
41301             PS_ARGUMENT_ARGS="-ef"
41302             ;;
41303
41304         *-*-hpux*)
41305             # HPUX's 'PS' needs the env var UNIX95 to run in "xpg4" mode
41306             PS="UNIX95=1 $PS"
41307             PS_ARGUMENT="-eo pid,ppid,comm"
41308             PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
41309             ;;
41310
41311         *)
41312             for try in \
41313                 "-axo pid,ppid,command" \
41314                 "-aAco pid,ppid,command" \
41315                 "-eo pid,ppid,comm"
41316             do
41317                 ps $try >/dev/null 2>/dev/null
41318                 if test $? -eq 0; then
41319                     PS_ARGUMENT="$try"
41320                     break
41321                 fi
41322             done
41323             for try in \
41324                 "-axo pid,ppid,command" \
41325                 "-aAo pid,ppid,command" \
41326                 "-eo pid,ppid,comm"
41327             do
41328                 ps $try >/dev/null 2>/dev/null
41329                 if test $? -eq 0; then
41330                     PS_ARGUMENT_ARGS="$try"
41331                     break
41332                 fi
41333             done
41334             if test -z "$PS_ARGUMENT" -o -z "$PS_ARGUMENT_ARGS"; then
41335                 { { $as_echo "$as_me:$LINENO: error: Can't find ps argument to use." >&5
41336 $as_echo "$as_me: error: Can't find ps argument to use." >&2;}
41337    { (exit 1); exit 1; }; }
41338             fi
41339             ;;
41340     esac
41341
41342     { $as_echo "$as_me:$LINENO: result: $PS_ARGUMENT" >&5
41343 $as_echo "$PS_ARGUMENT" >&6; }
41344
41345     { $as_echo "$as_me:$LINENO: result: $PS_ARGUMENT_ARGS" >&5
41346 $as_echo "$PS_ARGUMENT_ARGS" >&6; }
41347
41348
41349
41350
41351     # Extract the first word of "rpcgen", so it can be a program name with args.
41352 set dummy rpcgen; ac_word=$2
41353 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
41354 $as_echo_n "checking for $ac_word... " >&6; }
41355 if test "${ac_cv_path_RPCGEN+set}" = set; then
41356   $as_echo_n "(cached) " >&6
41357 else
41358   case $RPCGEN in
41359   [\\/]* | ?:[\\/]*)
41360   ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a path.
41361   ;;
41362   *)
41363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41364 for as_dir in $LOCSYSPATH
41365 do
41366   IFS=$as_save_IFS
41367   test -z "$as_dir" && as_dir=.
41368   for ac_exec_ext in '' $ac_executable_extensions; do
41369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41370     ac_cv_path_RPCGEN="$as_dir/$ac_word$ac_exec_ext"
41371     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41372     break 2
41373   fi
41374 done
41375 done
41376 IFS=$as_save_IFS
41377
41378   ;;
41379 esac
41380 fi
41381 RPCGEN=$ac_cv_path_RPCGEN
41382 if test -n "$RPCGEN"; then
41383   { $as_echo "$as_me:$LINENO: result: $RPCGEN" >&5
41384 $as_echo "$RPCGEN" >&6; }
41385 else
41386   { $as_echo "$as_me:$LINENO: result: no" >&5
41387 $as_echo "no" >&6; }
41388 fi
41389
41390
41391
41392     # rpcgen rules (which only appear in ndmp-src) are disabled completely
41393     # on systems where rpcgen is not available
41394      if test "x$RPCGEN" != "x"; then
41395   HAVE_RPCGEN_TRUE=
41396   HAVE_RPCGEN_FALSE='#'
41397 else
41398   HAVE_RPCGEN_TRUE='#'
41399   HAVE_RPCGEN_FALSE=
41400 fi
41401
41402
41403
41404
41405 #
41406 # Compiler / system characteristics
41407 #
41408
41409 #
41410 # compiler
41411 #
41412 if test $ac_cv_c_compiler_gnu = yes; then
41413     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
41414 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
41415 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
41416   $as_echo_n "(cached) " >&6
41417 else
41418     ac_pattern="Autoconf.*'x'"
41419   cat >conftest.$ac_ext <<_ACEOF
41420 /* confdefs.h.  */
41421 _ACEOF
41422 cat confdefs.h >>conftest.$ac_ext
41423 cat >>conftest.$ac_ext <<_ACEOF
41424 /* end confdefs.h.  */
41425 #include <sgtty.h>
41426 Autoconf TIOCGETP
41427 _ACEOF
41428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41429   $EGREP "$ac_pattern" >/dev/null 2>&1; then
41430   ac_cv_prog_gcc_traditional=yes
41431 else
41432   ac_cv_prog_gcc_traditional=no
41433 fi
41434 rm -f conftest*
41435
41436
41437   if test $ac_cv_prog_gcc_traditional = no; then
41438     cat >conftest.$ac_ext <<_ACEOF
41439 /* confdefs.h.  */
41440 _ACEOF
41441 cat confdefs.h >>conftest.$ac_ext
41442 cat >>conftest.$ac_ext <<_ACEOF
41443 /* end confdefs.h.  */
41444 #include <termio.h>
41445 Autoconf TCGETA
41446 _ACEOF
41447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41448   $EGREP "$ac_pattern" >/dev/null 2>&1; then
41449   ac_cv_prog_gcc_traditional=yes
41450 fi
41451 rm -f conftest*
41452
41453   fi
41454 fi
41455 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
41456 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
41457   if test $ac_cv_prog_gcc_traditional = yes; then
41458     CC="$CC -traditional"
41459   fi
41460 fi
41461
41462 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
41463 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
41464 if test "${ac_cv_c_const+set}" = set; then
41465   $as_echo_n "(cached) " >&6
41466 else
41467   cat >conftest.$ac_ext <<_ACEOF
41468 /* confdefs.h.  */
41469 _ACEOF
41470 cat confdefs.h >>conftest.$ac_ext
41471 cat >>conftest.$ac_ext <<_ACEOF
41472 /* end confdefs.h.  */
41473
41474 int
41475 main ()
41476 {
41477 /* FIXME: Include the comments suggested by Paul. */
41478 #ifndef __cplusplus
41479   /* Ultrix mips cc rejects this.  */
41480   typedef int charset[2];
41481   const charset cs;
41482   /* SunOS 4.1.1 cc rejects this.  */
41483   char const *const *pcpcc;
41484   char **ppc;
41485   /* NEC SVR4.0.2 mips cc rejects this.  */
41486   struct point {int x, y;};
41487   static struct point const zero = {0,0};
41488   /* AIX XL C 1.02.0.0 rejects this.
41489      It does not let you subtract one const X* pointer from another in
41490      an arm of an if-expression whose if-part is not a constant
41491      expression */
41492   const char *g = "string";
41493   pcpcc = &g + (g ? g-g : 0);
41494   /* HPUX 7.0 cc rejects these. */
41495   ++pcpcc;
41496   ppc = (char**) pcpcc;
41497   pcpcc = (char const *const *) ppc;
41498   { /* SCO 3.2v4 cc rejects this.  */
41499     char *t;
41500     char const *s = 0 ? (char *) 0 : (char const *) 0;
41501
41502     *t++ = 0;
41503     if (s) return 0;
41504   }
41505   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
41506     int x[] = {25, 17};
41507     const int *foo = &x[0];
41508     ++foo;
41509   }
41510   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
41511     typedef const int *iptr;
41512     iptr p = 0;
41513     ++p;
41514   }
41515   { /* AIX XL C 1.02.0.0 rejects this saying
41516        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
41517     struct s { int j; const int *ap[3]; };
41518     struct s *b; b->j = 5;
41519   }
41520   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
41521     const int foo = 10;
41522     if (!foo) return 0;
41523   }
41524   return !cs[0] && !zero.x;
41525 #endif
41526
41527   ;
41528   return 0;
41529 }
41530 _ACEOF
41531 rm -f conftest.$ac_objext
41532 if { (ac_try="$ac_compile"
41533 case "(($ac_try" in
41534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41535   *) ac_try_echo=$ac_try;;
41536 esac
41537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41538 $as_echo "$ac_try_echo") >&5
41539   (eval "$ac_compile") 2>conftest.er1
41540   ac_status=$?
41541   grep -v '^ *+' conftest.er1 >conftest.err
41542   rm -f conftest.er1
41543   cat conftest.err >&5
41544   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41545   (exit $ac_status); } && {
41546          test -z "$ac_c_werror_flag" ||
41547          test ! -s conftest.err
41548        } && test -s conftest.$ac_objext; then
41549   ac_cv_c_const=yes
41550 else
41551   $as_echo "$as_me: failed program was:" >&5
41552 sed 's/^/| /' conftest.$ac_ext >&5
41553
41554         ac_cv_c_const=no
41555 fi
41556
41557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41558 fi
41559 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
41560 $as_echo "$ac_cv_c_const" >&6; }
41561 if test $ac_cv_c_const = no; then
41562
41563 cat >>confdefs.h <<\_ACEOF
41564 #define const /**/
41565 _ACEOF
41566
41567 fi
41568
41569
41570  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
41571 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
41572 if test "${ac_cv_c_bigendian+set}" = set; then
41573   $as_echo_n "(cached) " >&6
41574 else
41575   ac_cv_c_bigendian=unknown
41576     # See if we're dealing with a universal compiler.
41577     cat >conftest.$ac_ext <<_ACEOF
41578 /* confdefs.h.  */
41579 _ACEOF
41580 cat confdefs.h >>conftest.$ac_ext
41581 cat >>conftest.$ac_ext <<_ACEOF
41582 /* end confdefs.h.  */
41583 #ifndef __APPLE_CC__
41584                not a universal capable compiler
41585              #endif
41586              typedef int dummy;
41587
41588 _ACEOF
41589 rm -f conftest.$ac_objext
41590 if { (ac_try="$ac_compile"
41591 case "(($ac_try" in
41592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41593   *) ac_try_echo=$ac_try;;
41594 esac
41595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41596 $as_echo "$ac_try_echo") >&5
41597   (eval "$ac_compile") 2>conftest.er1
41598   ac_status=$?
41599   grep -v '^ *+' conftest.er1 >conftest.err
41600   rm -f conftest.er1
41601   cat conftest.err >&5
41602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41603   (exit $ac_status); } && {
41604          test -z "$ac_c_werror_flag" ||
41605          test ! -s conftest.err
41606        } && test -s conftest.$ac_objext; then
41607
41608         # Check for potential -arch flags.  It is not universal unless
41609         # there are some -arch flags.  Note that *ppc* also matches
41610         # ppc64.  This check is also rather less than ideal.
41611         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
41612           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
41613         esac
41614 else
41615   $as_echo "$as_me: failed program was:" >&5
41616 sed 's/^/| /' conftest.$ac_ext >&5
41617
41618
41619 fi
41620
41621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41622     if test $ac_cv_c_bigendian = unknown; then
41623       # See if sys/param.h defines the BYTE_ORDER macro.
41624       cat >conftest.$ac_ext <<_ACEOF
41625 /* confdefs.h.  */
41626 _ACEOF
41627 cat confdefs.h >>conftest.$ac_ext
41628 cat >>conftest.$ac_ext <<_ACEOF
41629 /* end confdefs.h.  */
41630 #include <sys/types.h>
41631              #include <sys/param.h>
41632
41633 int
41634 main ()
41635 {
41636 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
41637                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
41638                      && LITTLE_ENDIAN)
41639               bogus endian macros
41640              #endif
41641
41642   ;
41643   return 0;
41644 }
41645 _ACEOF
41646 rm -f conftest.$ac_objext
41647 if { (ac_try="$ac_compile"
41648 case "(($ac_try" in
41649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41650   *) ac_try_echo=$ac_try;;
41651 esac
41652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41653 $as_echo "$ac_try_echo") >&5
41654   (eval "$ac_compile") 2>conftest.er1
41655   ac_status=$?
41656   grep -v '^ *+' conftest.er1 >conftest.err
41657   rm -f conftest.er1
41658   cat conftest.err >&5
41659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41660   (exit $ac_status); } && {
41661          test -z "$ac_c_werror_flag" ||
41662          test ! -s conftest.err
41663        } && test -s conftest.$ac_objext; then
41664   # It does; now see whether it defined to BIG_ENDIAN or not.
41665          cat >conftest.$ac_ext <<_ACEOF
41666 /* confdefs.h.  */
41667 _ACEOF
41668 cat confdefs.h >>conftest.$ac_ext
41669 cat >>conftest.$ac_ext <<_ACEOF
41670 /* end confdefs.h.  */
41671 #include <sys/types.h>
41672                 #include <sys/param.h>
41673
41674 int
41675 main ()
41676 {
41677 #if BYTE_ORDER != BIG_ENDIAN
41678                  not big endian
41679                 #endif
41680
41681   ;
41682   return 0;
41683 }
41684 _ACEOF
41685 rm -f conftest.$ac_objext
41686 if { (ac_try="$ac_compile"
41687 case "(($ac_try" in
41688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41689   *) ac_try_echo=$ac_try;;
41690 esac
41691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41692 $as_echo "$ac_try_echo") >&5
41693   (eval "$ac_compile") 2>conftest.er1
41694   ac_status=$?
41695   grep -v '^ *+' conftest.er1 >conftest.err
41696   rm -f conftest.er1
41697   cat conftest.err >&5
41698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41699   (exit $ac_status); } && {
41700          test -z "$ac_c_werror_flag" ||
41701          test ! -s conftest.err
41702        } && test -s conftest.$ac_objext; then
41703   ac_cv_c_bigendian=yes
41704 else
41705   $as_echo "$as_me: failed program was:" >&5
41706 sed 's/^/| /' conftest.$ac_ext >&5
41707
41708         ac_cv_c_bigendian=no
41709 fi
41710
41711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41712 else
41713   $as_echo "$as_me: failed program was:" >&5
41714 sed 's/^/| /' conftest.$ac_ext >&5
41715
41716
41717 fi
41718
41719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41720     fi
41721     if test $ac_cv_c_bigendian = unknown; then
41722       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
41723       cat >conftest.$ac_ext <<_ACEOF
41724 /* confdefs.h.  */
41725 _ACEOF
41726 cat confdefs.h >>conftest.$ac_ext
41727 cat >>conftest.$ac_ext <<_ACEOF
41728 /* end confdefs.h.  */
41729 #include <limits.h>
41730
41731 int
41732 main ()
41733 {
41734 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
41735               bogus endian macros
41736              #endif
41737
41738   ;
41739   return 0;
41740 }
41741 _ACEOF
41742 rm -f conftest.$ac_objext
41743 if { (ac_try="$ac_compile"
41744 case "(($ac_try" in
41745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41746   *) ac_try_echo=$ac_try;;
41747 esac
41748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41749 $as_echo "$ac_try_echo") >&5
41750   (eval "$ac_compile") 2>conftest.er1
41751   ac_status=$?
41752   grep -v '^ *+' conftest.er1 >conftest.err
41753   rm -f conftest.er1
41754   cat conftest.err >&5
41755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41756   (exit $ac_status); } && {
41757          test -z "$ac_c_werror_flag" ||
41758          test ! -s conftest.err
41759        } && test -s conftest.$ac_objext; then
41760   # It does; now see whether it defined to _BIG_ENDIAN or not.
41761          cat >conftest.$ac_ext <<_ACEOF
41762 /* confdefs.h.  */
41763 _ACEOF
41764 cat confdefs.h >>conftest.$ac_ext
41765 cat >>conftest.$ac_ext <<_ACEOF
41766 /* end confdefs.h.  */
41767 #include <limits.h>
41768
41769 int
41770 main ()
41771 {
41772 #ifndef _BIG_ENDIAN
41773                  not big endian
41774                 #endif
41775
41776   ;
41777   return 0;
41778 }
41779 _ACEOF
41780 rm -f conftest.$ac_objext
41781 if { (ac_try="$ac_compile"
41782 case "(($ac_try" in
41783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41784   *) ac_try_echo=$ac_try;;
41785 esac
41786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41787 $as_echo "$ac_try_echo") >&5
41788   (eval "$ac_compile") 2>conftest.er1
41789   ac_status=$?
41790   grep -v '^ *+' conftest.er1 >conftest.err
41791   rm -f conftest.er1
41792   cat conftest.err >&5
41793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41794   (exit $ac_status); } && {
41795          test -z "$ac_c_werror_flag" ||
41796          test ! -s conftest.err
41797        } && test -s conftest.$ac_objext; then
41798   ac_cv_c_bigendian=yes
41799 else
41800   $as_echo "$as_me: failed program was:" >&5
41801 sed 's/^/| /' conftest.$ac_ext >&5
41802
41803         ac_cv_c_bigendian=no
41804 fi
41805
41806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41807 else
41808   $as_echo "$as_me: failed program was:" >&5
41809 sed 's/^/| /' conftest.$ac_ext >&5
41810
41811
41812 fi
41813
41814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41815     fi
41816     if test $ac_cv_c_bigendian = unknown; then
41817       # Compile a test program.
41818       if test "$cross_compiling" = yes; then
41819   # Try to guess by grepping values from an object file.
41820          cat >conftest.$ac_ext <<_ACEOF
41821 /* confdefs.h.  */
41822 _ACEOF
41823 cat confdefs.h >>conftest.$ac_ext
41824 cat >>conftest.$ac_ext <<_ACEOF
41825 /* end confdefs.h.  */
41826 short int ascii_mm[] =
41827                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
41828                 short int ascii_ii[] =
41829                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
41830                 int use_ascii (int i) {
41831                   return ascii_mm[i] + ascii_ii[i];
41832                 }
41833                 short int ebcdic_ii[] =
41834                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
41835                 short int ebcdic_mm[] =
41836                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
41837                 int use_ebcdic (int i) {
41838                   return ebcdic_mm[i] + ebcdic_ii[i];
41839                 }
41840                 extern int foo;
41841
41842 int
41843 main ()
41844 {
41845 return use_ascii (foo) == use_ebcdic (foo);
41846   ;
41847   return 0;
41848 }
41849 _ACEOF
41850 rm -f conftest.$ac_objext
41851 if { (ac_try="$ac_compile"
41852 case "(($ac_try" in
41853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41854   *) ac_try_echo=$ac_try;;
41855 esac
41856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41857 $as_echo "$ac_try_echo") >&5
41858   (eval "$ac_compile") 2>conftest.er1
41859   ac_status=$?
41860   grep -v '^ *+' conftest.er1 >conftest.err
41861   rm -f conftest.er1
41862   cat conftest.err >&5
41863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41864   (exit $ac_status); } && {
41865          test -z "$ac_c_werror_flag" ||
41866          test ! -s conftest.err
41867        } && test -s conftest.$ac_objext; then
41868   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
41869               ac_cv_c_bigendian=yes
41870             fi
41871             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
41872               if test "$ac_cv_c_bigendian" = unknown; then
41873                 ac_cv_c_bigendian=no
41874               else
41875                 # finding both strings is unlikely to happen, but who knows?
41876                 ac_cv_c_bigendian=unknown
41877               fi
41878             fi
41879 else
41880   $as_echo "$as_me: failed program was:" >&5
41881 sed 's/^/| /' conftest.$ac_ext >&5
41882
41883
41884 fi
41885
41886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41887 else
41888   cat >conftest.$ac_ext <<_ACEOF
41889 /* confdefs.h.  */
41890 _ACEOF
41891 cat confdefs.h >>conftest.$ac_ext
41892 cat >>conftest.$ac_ext <<_ACEOF
41893 /* end confdefs.h.  */
41894 $ac_includes_default
41895 int
41896 main ()
41897 {
41898
41899              /* Are we little or big endian?  From Harbison&Steele.  */
41900              union
41901              {
41902                long int l;
41903                char c[sizeof (long int)];
41904              } u;
41905              u.l = 1;
41906              return u.c[sizeof (long int) - 1] == 1;
41907
41908   ;
41909   return 0;
41910 }
41911 _ACEOF
41912 rm -f conftest$ac_exeext
41913 if { (ac_try="$ac_link"
41914 case "(($ac_try" in
41915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41916   *) ac_try_echo=$ac_try;;
41917 esac
41918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41919 $as_echo "$ac_try_echo") >&5
41920   (eval "$ac_link") 2>&5
41921   ac_status=$?
41922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41923   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41924   { (case "(($ac_try" in
41925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41926   *) ac_try_echo=$ac_try;;
41927 esac
41928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41929 $as_echo "$ac_try_echo") >&5
41930   (eval "$ac_try") 2>&5
41931   ac_status=$?
41932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41933   (exit $ac_status); }; }; then
41934   ac_cv_c_bigendian=no
41935 else
41936   $as_echo "$as_me: program exited with status $ac_status" >&5
41937 $as_echo "$as_me: failed program was:" >&5
41938 sed 's/^/| /' conftest.$ac_ext >&5
41939
41940 ( exit $ac_status )
41941 ac_cv_c_bigendian=yes
41942 fi
41943 rm -rf conftest.dSYM
41944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41945 fi
41946
41947
41948     fi
41949 fi
41950 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
41951 $as_echo "$ac_cv_c_bigendian" >&6; }
41952  case $ac_cv_c_bigendian in #(
41953    yes)
41954      cat >>confdefs.h <<\_ACEOF
41955 #define WORDS_BIGENDIAN 1
41956 _ACEOF
41957 ;; #(
41958    no)
41959       ;; #(
41960    universal)
41961
41962 cat >>confdefs.h <<\_ACEOF
41963 #define AC_APPLE_UNIVERSAL_BUILD 1
41964 _ACEOF
41965
41966      ;; #(
41967    *)
41968      { { $as_echo "$as_me:$LINENO: error: unknown endianness
41969  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
41970 $as_echo "$as_me: error: unknown endianness
41971  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
41972    { (exit 1); exit 1; }; } ;;
41973  esac
41974
41975
41976 # GCC_COMPILER is needed in the gnulib Makefile to silence errors
41977  if test "x$GCC" = "xyes"; then
41978   GCC_COMPILER_TRUE=
41979   GCC_COMPILER_FALSE='#'
41980 else
41981   GCC_COMPILER_TRUE='#'
41982   GCC_COMPILER_FALSE=
41983 fi
41984
41985
41986 #
41987 # Warnings
41988 #
41989
41990
41991
41992
41993     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wparentheses" >&5
41994 $as_echo_n "checking for gcc flag -Wparentheses... " >&6; }
41995     if test "x$GCC" = "xyes"; then
41996                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
41997            $CC -v --help 2>&1) |
41998          $EGREP -- '[^[:alnum:]]-Wparentheses[^[:alnum:]-]' 2>&1 > /dev/null
41999                 if test $? -eq 0; then
42000             found_warning=yes
42001             { $as_echo "$as_me:$LINENO: result: yes" >&5
42002 $as_echo "yes" >&6; }
42003         else
42004             found_warning=no
42005             { $as_echo "$as_me:$LINENO: result: no" >&5
42006 $as_echo "no" >&6; }
42007         fi
42008     else
42009         found_warning=no
42010         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
42011 $as_echo "no (not using gcc)" >&6; }
42012     fi
42013
42014     if test x"$found_warning" = x"yes"; then
42015         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
42016
42017
42018     else
42019         :
42020     fi
42021
42022
42023
42024
42025
42026
42027     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wdeclaration-after-statement" >&5
42028 $as_echo_n "checking for gcc flag -Wdeclaration-after-statement... " >&6; }
42029     if test "x$GCC" = "xyes"; then
42030                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
42031            $CC -v --help 2>&1) |
42032          $EGREP -- '[^[:alnum:]]-Wdeclaration-after-statement[^[:alnum:]-]' 2>&1 > /dev/null
42033                 if test $? -eq 0; then
42034             found_warning=yes
42035             { $as_echo "$as_me:$LINENO: result: yes" >&5
42036 $as_echo "yes" >&6; }
42037         else
42038             found_warning=no
42039             { $as_echo "$as_me:$LINENO: result: no" >&5
42040 $as_echo "no" >&6; }
42041         fi
42042     else
42043         found_warning=no
42044         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
42045 $as_echo "no (not using gcc)" >&6; }
42046     fi
42047
42048     if test x"$found_warning" = x"yes"; then
42049         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
42050
42051
42052     else
42053         :
42054     fi
42055
42056
42057
42058
42059
42060
42061     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wmissing-prototypes" >&5
42062 $as_echo_n "checking for gcc flag -Wmissing-prototypes... " >&6; }
42063     if test "x$GCC" = "xyes"; then
42064                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
42065            $CC -v --help 2>&1) |
42066          $EGREP -- '[^[:alnum:]]-Wmissing-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
42067                 if test $? -eq 0; then
42068             found_warning=yes
42069             { $as_echo "$as_me:$LINENO: result: yes" >&5
42070 $as_echo "yes" >&6; }
42071         else
42072             found_warning=no
42073             { $as_echo "$as_me:$LINENO: result: no" >&5
42074 $as_echo "no" >&6; }
42075         fi
42076     else
42077         found_warning=no
42078         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
42079 $as_echo "no (not using gcc)" >&6; }
42080     fi
42081
42082     if test x"$found_warning" = x"yes"; then
42083         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
42084
42085
42086     else
42087         :
42088     fi
42089
42090
42091
42092
42093
42094
42095     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wstrict-prototypes" >&5
42096 $as_echo_n "checking for gcc flag -Wstrict-prototypes... " >&6; }
42097     if test "x$GCC" = "xyes"; then
42098                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
42099            $CC -v --help 2>&1) |
42100          $EGREP -- '[^[:alnum:]]-Wstrict-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
42101                 if test $? -eq 0; then
42102             found_warning=yes
42103             { $as_echo "$as_me:$LINENO: result: yes" >&5
42104 $as_echo "yes" >&6; }
42105         else
42106             found_warning=no
42107             { $as_echo "$as_me:$LINENO: result: no" >&5
42108 $as_echo "no" >&6; }
42109         fi
42110     else
42111         found_warning=no
42112         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
42113 $as_echo "no (not using gcc)" >&6; }
42114     fi
42115
42116     if test x"$found_warning" = x"yes"; then
42117         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
42118
42119
42120     else
42121         :
42122     fi
42123
42124
42125
42126
42127
42128
42129     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wmissing-declarations" >&5
42130 $as_echo_n "checking for gcc flag -Wmissing-declarations... " >&6; }
42131     if test "x$GCC" = "xyes"; then
42132                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
42133            $CC -v --help 2>&1) |
42134          $EGREP -- '[^[:alnum:]]-Wmissing-declarations[^[:alnum:]-]' 2>&1 > /dev/null
42135                 if test $? -eq 0; then
42136             found_warning=yes
42137             { $as_echo "$as_me:$LINENO: result: yes" >&5
42138 $as_echo "yes" >&6; }
42139         else
42140             found_warning=no
42141             { $as_echo "$as_me:$LINENO: result: no" >&5
42142 $as_echo "no" >&6; }
42143         fi
42144     else
42145         found_warning=no
42146         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
42147 $as_echo "no (not using gcc)" >&6; }
42148     fi
42149
42150     if test x"$found_warning" = x"yes"; then
42151         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
42152
42153
42154     else
42155         :
42156     fi
42157
42158
42159
42160
42161
42162
42163     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wformat" >&5
42164 $as_echo_n "checking for gcc flag -Wformat... " >&6; }
42165     if test "x$GCC" = "xyes"; then
42166                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
42167            $CC -v --help 2>&1) |
42168          $EGREP -- '[^[:alnum:]]-Wformat[^[:alnum:]-]' 2>&1 > /dev/null
42169                 if test $? -eq 0; then
42170             found_warning=yes
42171             { $as_echo "$as_me:$LINENO: result: yes" >&5
42172 $as_echo "yes" >&6; }
42173         else
42174             found_warning=no
42175             { $as_echo "$as_me:$LINENO: result: no" >&5
42176 $as_echo "no" >&6; }
42177         fi
42178     else
42179         found_warning=no
42180         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
42181 $as_echo "no (not using gcc)" >&6; }
42182     fi
42183
42184     if test x"$found_warning" = x"yes"; then
42185         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
42186
42187
42188     else
42189         :
42190     fi
42191
42192
42193
42194
42195
42196
42197     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wformat-security" >&5
42198 $as_echo_n "checking for gcc flag -Wformat-security... " >&6; }
42199     if test "x$GCC" = "xyes"; then
42200                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
42201            $CC -v --help 2>&1) |
42202          $EGREP -- '[^[:alnum:]]-Wformat-security[^[:alnum:]-]' 2>&1 > /dev/null
42203                 if test $? -eq 0; then
42204             found_warning=yes
42205             { $as_echo "$as_me:$LINENO: result: yes" >&5
42206 $as_echo "yes" >&6; }
42207         else
42208             found_warning=no
42209             { $as_echo "$as_me:$LINENO: result: no" >&5
42210 $as_echo "no" >&6; }
42211         fi
42212     else
42213         found_warning=no
42214         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
42215 $as_echo "no (not using gcc)" >&6; }
42216     fi
42217
42218     if test x"$found_warning" = x"yes"; then
42219         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat-security"
42220
42221
42222     else
42223         :
42224     fi
42225
42226
42227
42228
42229
42230
42231     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wsign-compare" >&5
42232 $as_echo_n "checking for gcc flag -Wsign-compare... " >&6; }
42233     if test "x$GCC" = "xyes"; then
42234                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
42235            $CC -v --help 2>&1) |
42236          $EGREP -- '[^[:alnum:]]-Wsign-compare[^[:alnum:]-]' 2>&1 > /dev/null
42237                 if test $? -eq 0; then
42238             found_warning=yes
42239             { $as_echo "$as_me:$LINENO: result: yes" >&5
42240 $as_echo "yes" >&6; }
42241         else
42242             found_warning=no
42243             { $as_echo "$as_me:$LINENO: result: no" >&5
42244 $as_echo "no" >&6; }
42245         fi
42246     else
42247         found_warning=no
42248         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
42249 $as_echo "no (not using gcc)" >&6; }
42250     fi
42251
42252     if test x"$found_warning" = x"yes"; then
42253         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
42254
42255
42256     else
42257         :
42258     fi
42259
42260
42261
42262
42263
42264
42265     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wfloat-equal" >&5
42266 $as_echo_n "checking for gcc flag -Wfloat-equal... " >&6; }
42267     if test "x$GCC" = "xyes"; then
42268                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
42269            $CC -v --help 2>&1) |
42270          $EGREP -- '[^[:alnum:]]-Wfloat-equal[^[:alnum:]-]' 2>&1 > /dev/null
42271                 if test $? -eq 0; then
42272             found_warning=yes
42273             { $as_echo "$as_me:$LINENO: result: yes" >&5
42274 $as_echo "yes" >&6; }
42275         else
42276             found_warning=no
42277             { $as_echo "$as_me:$LINENO: result: no" >&5
42278 $as_echo "no" >&6; }
42279         fi
42280     else
42281         found_warning=no
42282         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
42283 $as_echo "no (not using gcc)" >&6; }
42284     fi
42285
42286     if test x"$found_warning" = x"yes"; then
42287         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
42288
42289
42290     else
42291         :
42292     fi
42293
42294
42295
42296
42297
42298
42299     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wold-style-definition" >&5
42300 $as_echo_n "checking for gcc flag -Wold-style-definition... " >&6; }
42301     if test "x$GCC" = "xyes"; then
42302                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
42303            $CC -v --help 2>&1) |
42304          $EGREP -- '[^[:alnum:]]-Wold-style-definition[^[:alnum:]-]' 2>&1 > /dev/null
42305                 if test $? -eq 0; then
42306             found_warning=yes
42307             { $as_echo "$as_me:$LINENO: result: yes" >&5
42308 $as_echo "yes" >&6; }
42309         else
42310             found_warning=no
42311             { $as_echo "$as_me:$LINENO: result: no" >&5
42312 $as_echo "no" >&6; }
42313         fi
42314     else
42315         found_warning=no
42316         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
42317 $as_echo "no (not using gcc)" >&6; }
42318     fi
42319
42320     if test x"$found_warning" = x"yes"; then
42321         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
42322
42323
42324     else
42325         :
42326     fi
42327
42328
42329
42330     # test for -W'warning', then add the 'no-' version.
42331
42332
42333
42334     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wstrict-aliasing" >&5
42335 $as_echo_n "checking for gcc flag -Wstrict-aliasing... " >&6; }
42336     if test "x$GCC" = "xyes"; then
42337                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
42338            $CC -v --help 2>&1) |
42339          $EGREP -- '[^[:alnum:]]-Wstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
42340                 if test $? -eq 0; then
42341             found_warning=yes
42342             { $as_echo "$as_me:$LINENO: result: yes" >&5
42343 $as_echo "yes" >&6; }
42344         else
42345             found_warning=no
42346             { $as_echo "$as_me:$LINENO: result: no" >&5
42347 $as_echo "no" >&6; }
42348         fi
42349     else
42350         found_warning=no
42351         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
42352 $as_echo "no (not using gcc)" >&6; }
42353     fi
42354
42355     if test x"$found_warning" = x"yes"; then
42356         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
42357
42358
42359     else
42360         :
42361     fi
42362
42363
42364
42365     # test for -W'warning', then add the 'no-' version.
42366
42367
42368
42369     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wunknown-pragmas" >&5
42370 $as_echo_n "checking for gcc flag -Wunknown-pragmas... " >&6; }
42371     if test "x$GCC" = "xyes"; then
42372                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
42373            $CC -v --help 2>&1) |
42374          $EGREP -- '[^[:alnum:]]-Wunknown-pragmas[^[:alnum:]-]' 2>&1 > /dev/null
42375                 if test $? -eq 0; then
42376             found_warning=yes
42377             { $as_echo "$as_me:$LINENO: result: yes" >&5
42378 $as_echo "yes" >&6; }
42379         else
42380             found_warning=no
42381             { $as_echo "$as_me:$LINENO: result: no" >&5
42382 $as_echo "no" >&6; }
42383         fi
42384     else
42385         found_warning=no
42386         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
42387 $as_echo "no (not using gcc)" >&6; }
42388     fi
42389
42390     if test x"$found_warning" = x"yes"; then
42391         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
42392
42393
42394     else
42395         :
42396     fi
42397
42398
42399
42400     # Check whether --enable-werror was given.
42401 if test "${enable_werror+set}" = set; then
42402   enableval=$enable_werror;
42403             case "$enableval" in
42404             "" | y | ye | yes)
42405
42406
42407
42408
42409     { $as_echo "$as_me:$LINENO: checking for gcc flag -Werror" >&5
42410 $as_echo_n "checking for gcc flag -Werror... " >&6; }
42411     if test "x$GCC" = "xyes"; then
42412                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
42413            $CC -v --help 2>&1) |
42414          $EGREP -- '[^[:alnum:]]-Werror[^[:alnum:]-]' 2>&1 > /dev/null
42415                 if test $? -eq 0; then
42416             found_warning=yes
42417             { $as_echo "$as_me:$LINENO: result: yes" >&5
42418 $as_echo "yes" >&6; }
42419         else
42420             found_warning=no
42421             { $as_echo "$as_me:$LINENO: result: no" >&5
42422 $as_echo "no" >&6; }
42423         fi
42424     else
42425         found_warning=no
42426         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
42427 $as_echo "no (not using gcc)" >&6; }
42428     fi
42429
42430     if test x"$found_warning" = x"yes"; then
42431         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Werror"
42432
42433
42434     else
42435         :
42436     fi
42437
42438
42439                 ;;
42440             esac
42441
42442 fi
42443
42444
42445
42446     # Check whether --enable-swig-error was given.
42447 if test "${enable_swig_error+set}" = set; then
42448   enableval=$enable_swig_error;
42449             case "$enableval" in
42450             "" | y | ye | yes)
42451                 AMANDA_SWIG_PERL_CFLAGS=-Werror
42452                 ;;
42453             *n | no)
42454                 AMANDA_SWIG_PERL_CFLAGS=
42455                 ;;
42456             esac
42457
42458 fi
42459
42460
42461
42462
42463 #
42464 # Libtool
42465 #
42466 case `pwd` in
42467   *\ * | *\     *)
42468     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
42469 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
42470 esac
42471
42472
42473
42474 macro_version='2.2.4'
42475 macro_revision='1.2976'
42476
42477
42478
42479
42480
42481
42482
42483
42484
42485
42486
42487
42488
42489 ltmain="$ac_aux_dir/ltmain.sh"
42490
42491 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
42492 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
42493 if test "${ac_cv_path_SED+set}" = set; then
42494   $as_echo_n "(cached) " >&6
42495 else
42496             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
42497      for ac_i in 1 2 3 4 5 6 7; do
42498        ac_script="$ac_script$as_nl$ac_script"
42499      done
42500      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
42501      $as_unset ac_script || ac_script=
42502      if test -z "$SED"; then
42503   ac_path_SED_found=false
42504   # Loop through the user's path and test for each of PROGNAME-LIST
42505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42506 for as_dir in $PATH
42507 do
42508   IFS=$as_save_IFS
42509   test -z "$as_dir" && as_dir=.
42510   for ac_prog in sed gsed; do
42511     for ac_exec_ext in '' $ac_executable_extensions; do
42512       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
42513       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
42514 # Check for GNU ac_path_SED and select it if it is found.
42515   # Check for GNU $ac_path_SED
42516 case `"$ac_path_SED" --version 2>&1` in
42517 *GNU*)
42518   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
42519 *)
42520   ac_count=0
42521   $as_echo_n 0123456789 >"conftest.in"
42522   while :
42523   do
42524     cat "conftest.in" "conftest.in" >"conftest.tmp"
42525     mv "conftest.tmp" "conftest.in"
42526     cp "conftest.in" "conftest.nl"
42527     $as_echo '' >> "conftest.nl"
42528     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
42529     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
42530     ac_count=`expr $ac_count + 1`
42531     if test $ac_count -gt ${ac_path_SED_max-0}; then
42532       # Best one so far, save it but keep looking for a better one
42533       ac_cv_path_SED="$ac_path_SED"
42534       ac_path_SED_max=$ac_count
42535     fi
42536     # 10*(2^10) chars as input seems more than enough
42537     test $ac_count -gt 10 && break
42538   done
42539   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
42540 esac
42541
42542       $ac_path_SED_found && break 3
42543     done
42544   done
42545 done
42546 IFS=$as_save_IFS
42547   if test -z "$ac_cv_path_SED"; then
42548     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
42549 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
42550    { (exit 1); exit 1; }; }
42551   fi
42552 else
42553   ac_cv_path_SED=$SED
42554 fi
42555
42556 fi
42557 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
42558 $as_echo "$ac_cv_path_SED" >&6; }
42559  SED="$ac_cv_path_SED"
42560   rm -f conftest.sed
42561
42562 test -z "$SED" && SED=sed
42563 Xsed="$SED -e 1s/^X//"
42564
42565
42566
42567
42568
42569
42570
42571
42572
42573
42574
42575 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
42576 $as_echo_n "checking for fgrep... " >&6; }
42577 if test "${ac_cv_path_FGREP+set}" = set; then
42578   $as_echo_n "(cached) " >&6
42579 else
42580   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
42581    then ac_cv_path_FGREP="$GREP -F"
42582    else
42583      if test -z "$FGREP"; then
42584   ac_path_FGREP_found=false
42585   # Loop through the user's path and test for each of PROGNAME-LIST
42586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42587 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
42588 do
42589   IFS=$as_save_IFS
42590   test -z "$as_dir" && as_dir=.
42591   for ac_prog in fgrep; do
42592     for ac_exec_ext in '' $ac_executable_extensions; do
42593       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
42594       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
42595 # Check for GNU ac_path_FGREP and select it if it is found.
42596   # Check for GNU $ac_path_FGREP
42597 case `"$ac_path_FGREP" --version 2>&1` in
42598 *GNU*)
42599   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
42600 *)
42601   ac_count=0
42602   $as_echo_n 0123456789 >"conftest.in"
42603   while :
42604   do
42605     cat "conftest.in" "conftest.in" >"conftest.tmp"
42606     mv "conftest.tmp" "conftest.in"
42607     cp "conftest.in" "conftest.nl"
42608     $as_echo 'FGREP' >> "conftest.nl"
42609     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
42610     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
42611     ac_count=`expr $ac_count + 1`
42612     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
42613       # Best one so far, save it but keep looking for a better one
42614       ac_cv_path_FGREP="$ac_path_FGREP"
42615       ac_path_FGREP_max=$ac_count
42616     fi
42617     # 10*(2^10) chars as input seems more than enough
42618     test $ac_count -gt 10 && break
42619   done
42620   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
42621 esac
42622
42623       $ac_path_FGREP_found && break 3
42624     done
42625   done
42626 done
42627 IFS=$as_save_IFS
42628   if test -z "$ac_cv_path_FGREP"; then
42629     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
42630 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
42631    { (exit 1); exit 1; }; }
42632   fi
42633 else
42634   ac_cv_path_FGREP=$FGREP
42635 fi
42636
42637    fi
42638 fi
42639 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
42640 $as_echo "$ac_cv_path_FGREP" >&6; }
42641  FGREP="$ac_cv_path_FGREP"
42642
42643
42644 test -z "$GREP" && GREP=grep
42645
42646
42647
42648
42649
42650
42651
42652
42653
42654
42655
42656
42657
42658
42659
42660
42661
42662
42663
42664 # Check whether --with-gnu-ld was given.
42665 if test "${with_gnu_ld+set}" = set; then
42666   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
42667 else
42668   with_gnu_ld=no
42669 fi
42670
42671 ac_prog=ld
42672 if test "$GCC" = yes; then
42673   # Check if gcc -print-prog-name=ld gives a path.
42674   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
42675 $as_echo_n "checking for ld used by $CC... " >&6; }
42676   case $host in
42677   *-*-mingw*)
42678     # gcc leaves a trailing carriage return which upsets mingw
42679     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
42680   *)
42681     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
42682   esac
42683   case $ac_prog in
42684     # Accept absolute paths.
42685     [\\/]* | ?:[\\/]*)
42686       re_direlt='/[^/][^/]*/\.\./'
42687       # Canonicalize the pathname of ld
42688       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
42689       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
42690         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
42691       done
42692       test -z "$LD" && LD="$ac_prog"
42693       ;;
42694   "")
42695     # If it fails, then pretend we aren't using GCC.
42696     ac_prog=ld
42697     ;;
42698   *)
42699     # If it is relative, then search for the first ld in PATH.
42700     with_gnu_ld=unknown
42701     ;;
42702   esac
42703 elif test "$with_gnu_ld" = yes; then
42704   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
42705 $as_echo_n "checking for GNU ld... " >&6; }
42706 else
42707   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
42708 $as_echo_n "checking for non-GNU ld... " >&6; }
42709 fi
42710 if test "${lt_cv_path_LD+set}" = set; then
42711   $as_echo_n "(cached) " >&6
42712 else
42713   if test -z "$LD"; then
42714   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
42715   for ac_dir in $PATH; do
42716     IFS="$lt_save_ifs"
42717     test -z "$ac_dir" && ac_dir=.
42718     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
42719       lt_cv_path_LD="$ac_dir/$ac_prog"
42720       # Check to see if the program is GNU ld.  I'd rather use --version,
42721       # but apparently some variants of GNU ld only accept -v.
42722       # Break only if it was the GNU/non-GNU ld that we prefer.
42723       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
42724       *GNU* | *'with BFD'*)
42725         test "$with_gnu_ld" != no && break
42726         ;;
42727       *)
42728         test "$with_gnu_ld" != yes && break
42729         ;;
42730       esac
42731     fi
42732   done
42733   IFS="$lt_save_ifs"
42734 else
42735   lt_cv_path_LD="$LD" # Let the user override the test with a path.
42736 fi
42737 fi
42738
42739 LD="$lt_cv_path_LD"
42740 if test -n "$LD"; then
42741   { $as_echo "$as_me:$LINENO: result: $LD" >&5
42742 $as_echo "$LD" >&6; }
42743 else
42744   { $as_echo "$as_me:$LINENO: result: no" >&5
42745 $as_echo "no" >&6; }
42746 fi
42747 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
42748 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
42749    { (exit 1); exit 1; }; }
42750 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
42751 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
42752 if test "${lt_cv_prog_gnu_ld+set}" = set; then
42753   $as_echo_n "(cached) " >&6
42754 else
42755   # I'd rather use --version here, but apparently some GNU lds only accept -v.
42756 case `$LD -v 2>&1 </dev/null` in
42757 *GNU* | *'with BFD'*)
42758   lt_cv_prog_gnu_ld=yes
42759   ;;
42760 *)
42761   lt_cv_prog_gnu_ld=no
42762   ;;
42763 esac
42764 fi
42765 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
42766 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
42767 with_gnu_ld=$lt_cv_prog_gnu_ld
42768
42769
42770
42771
42772
42773
42774
42775
42776
42777 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
42778 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
42779 if test "${lt_cv_path_NM+set}" = set; then
42780   $as_echo_n "(cached) " >&6
42781 else
42782   if test -n "$NM"; then
42783   # Let the user override the test.
42784   lt_cv_path_NM="$NM"
42785 else
42786   lt_nm_to_check="${ac_tool_prefix}nm"
42787   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
42788     lt_nm_to_check="$lt_nm_to_check nm"
42789   fi
42790   for lt_tmp_nm in $lt_nm_to_check; do
42791     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
42792     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
42793       IFS="$lt_save_ifs"
42794       test -z "$ac_dir" && ac_dir=.
42795       tmp_nm="$ac_dir/$lt_tmp_nm"
42796       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
42797         # Check to see if the nm accepts a BSD-compat flag.
42798         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
42799         #   nm: unknown option "B" ignored
42800         # Tru64's nm complains that /dev/null is an invalid object file
42801         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
42802         */dev/null* | *'Invalid file or object type'*)
42803           lt_cv_path_NM="$tmp_nm -B"
42804           break
42805           ;;
42806         *)
42807           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
42808           */dev/null*)
42809             lt_cv_path_NM="$tmp_nm -p"
42810             break
42811             ;;
42812           *)
42813             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
42814             continue # so that we can try to find one that supports BSD flags
42815             ;;
42816           esac
42817           ;;
42818         esac
42819       fi
42820     done
42821     IFS="$lt_save_ifs"
42822   done
42823   : ${lt_cv_path_NM=no}
42824 fi
42825 fi
42826 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
42827 $as_echo "$lt_cv_path_NM" >&6; }
42828 if test "$lt_cv_path_NM" != "no"; then
42829   NM="$lt_cv_path_NM"
42830 else
42831   # Didn't find any BSD compatible name lister, look for dumpbin.
42832   if test -n "$ac_tool_prefix"; then
42833   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
42834   do
42835     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
42836 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
42837 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42838 $as_echo_n "checking for $ac_word... " >&6; }
42839 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
42840   $as_echo_n "(cached) " >&6
42841 else
42842   if test -n "$DUMPBIN"; then
42843   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
42844 else
42845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42846 for as_dir in $PATH
42847 do
42848   IFS=$as_save_IFS
42849   test -z "$as_dir" && as_dir=.
42850   for ac_exec_ext in '' $ac_executable_extensions; do
42851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42852     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
42853     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42854     break 2
42855   fi
42856 done
42857 done
42858 IFS=$as_save_IFS
42859
42860 fi
42861 fi
42862 DUMPBIN=$ac_cv_prog_DUMPBIN
42863 if test -n "$DUMPBIN"; then
42864   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
42865 $as_echo "$DUMPBIN" >&6; }
42866 else
42867   { $as_echo "$as_me:$LINENO: result: no" >&5
42868 $as_echo "no" >&6; }
42869 fi
42870
42871
42872     test -n "$DUMPBIN" && break
42873   done
42874 fi
42875 if test -z "$DUMPBIN"; then
42876   ac_ct_DUMPBIN=$DUMPBIN
42877   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
42878 do
42879   # Extract the first word of "$ac_prog", so it can be a program name with args.
42880 set dummy $ac_prog; ac_word=$2
42881 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42882 $as_echo_n "checking for $ac_word... " >&6; }
42883 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
42884   $as_echo_n "(cached) " >&6
42885 else
42886   if test -n "$ac_ct_DUMPBIN"; then
42887   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
42888 else
42889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42890 for as_dir in $PATH
42891 do
42892   IFS=$as_save_IFS
42893   test -z "$as_dir" && as_dir=.
42894   for ac_exec_ext in '' $ac_executable_extensions; do
42895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42896     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
42897     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42898     break 2
42899   fi
42900 done
42901 done
42902 IFS=$as_save_IFS
42903
42904 fi
42905 fi
42906 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
42907 if test -n "$ac_ct_DUMPBIN"; then
42908   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
42909 $as_echo "$ac_ct_DUMPBIN" >&6; }
42910 else
42911   { $as_echo "$as_me:$LINENO: result: no" >&5
42912 $as_echo "no" >&6; }
42913 fi
42914
42915
42916   test -n "$ac_ct_DUMPBIN" && break
42917 done
42918
42919   if test "x$ac_ct_DUMPBIN" = x; then
42920     DUMPBIN=":"
42921   else
42922     case $cross_compiling:$ac_tool_warned in
42923 yes:)
42924 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
42925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
42926 ac_tool_warned=yes ;;
42927 esac
42928     DUMPBIN=$ac_ct_DUMPBIN
42929   fi
42930 fi
42931
42932
42933   if test "$DUMPBIN" != ":"; then
42934     NM="$DUMPBIN"
42935   fi
42936 fi
42937 test -z "$NM" && NM=nm
42938
42939
42940
42941
42942
42943
42944 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
42945 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
42946 if test "${lt_cv_nm_interface+set}" = set; then
42947   $as_echo_n "(cached) " >&6
42948 else
42949   lt_cv_nm_interface="BSD nm"
42950   echo "int some_variable = 0;" > conftest.$ac_ext
42951   (eval echo "\"\$as_me:42951: $ac_compile\"" >&5)
42952   (eval "$ac_compile" 2>conftest.err)
42953   cat conftest.err >&5
42954   (eval echo "\"\$as_me:42954: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
42955   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
42956   cat conftest.err >&5
42957   (eval echo "\"\$as_me:42957: output\"" >&5)
42958   cat conftest.out >&5
42959   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
42960     lt_cv_nm_interface="MS dumpbin"
42961   fi
42962   rm -f conftest*
42963 fi
42964 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
42965 $as_echo "$lt_cv_nm_interface" >&6; }
42966
42967 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
42968 $as_echo_n "checking whether ln -s works... " >&6; }
42969 LN_S=$as_ln_s
42970 if test "$LN_S" = "ln -s"; then
42971   { $as_echo "$as_me:$LINENO: result: yes" >&5
42972 $as_echo "yes" >&6; }
42973 else
42974   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
42975 $as_echo "no, using $LN_S" >&6; }
42976 fi
42977
42978 # find the maximum length of command line arguments
42979 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
42980 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
42981 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
42982   $as_echo_n "(cached) " >&6
42983 else
42984     i=0
42985   teststring="ABCD"
42986
42987   case $build_os in
42988   msdosdjgpp*)
42989     # On DJGPP, this test can blow up pretty badly due to problems in libc
42990     # (any single argument exceeding 2000 bytes causes a buffer overrun
42991     # during glob expansion).  Even if it were fixed, the result of this
42992     # check would be larger than it should be.
42993     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
42994     ;;
42995
42996   gnu*)
42997     # Under GNU Hurd, this test is not required because there is
42998     # no limit to the length of command line arguments.
42999     # Libtool will interpret -1 as no limit whatsoever
43000     lt_cv_sys_max_cmd_len=-1;
43001     ;;
43002
43003   cygwin* | mingw*)
43004     # On Win9x/ME, this test blows up -- it succeeds, but takes
43005     # about 5 minutes as the teststring grows exponentially.
43006     # Worse, since 9x/ME are not pre-emptively multitasking,
43007     # you end up with a "frozen" computer, even though with patience
43008     # the test eventually succeeds (with a max line length of 256k).
43009     # Instead, let's just punt: use the minimum linelength reported by
43010     # all of the supported platforms: 8192 (on NT/2K/XP).
43011     lt_cv_sys_max_cmd_len=8192;
43012     ;;
43013
43014   amigaos*)
43015     # On AmigaOS with pdksh, this test takes hours, literally.
43016     # So we just punt and use a minimum line length of 8192.
43017     lt_cv_sys_max_cmd_len=8192;
43018     ;;
43019
43020   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
43021     # This has been around since 386BSD, at least.  Likely further.
43022     if test -x /sbin/sysctl; then
43023       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
43024     elif test -x /usr/sbin/sysctl; then
43025       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
43026     else
43027       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
43028     fi
43029     # And add a safety zone
43030     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
43031     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
43032     ;;
43033
43034   interix*)
43035     # We know the value 262144 and hardcode it with a safety zone (like BSD)
43036     lt_cv_sys_max_cmd_len=196608
43037     ;;
43038
43039   osf*)
43040     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
43041     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
43042     # nice to cause kernel panics so lets avoid the loop below.
43043     # First set a reasonable default.
43044     lt_cv_sys_max_cmd_len=16384
43045     #
43046     if test -x /sbin/sysconfig; then
43047       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
43048         *1*) lt_cv_sys_max_cmd_len=-1 ;;
43049       esac
43050     fi
43051     ;;
43052   sco3.2v5*)
43053     lt_cv_sys_max_cmd_len=102400
43054     ;;
43055   sysv5* | sco5v6* | sysv4.2uw2*)
43056     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
43057     if test -n "$kargmax"; then
43058       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
43059     else
43060       lt_cv_sys_max_cmd_len=32768
43061     fi
43062     ;;
43063   *)
43064     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
43065     if test -n "$lt_cv_sys_max_cmd_len"; then
43066       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
43067       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
43068     else
43069       # Make teststring a little bigger before we do anything with it.
43070       # a 1K string should be a reasonable start.
43071       for i in 1 2 3 4 5 6 7 8 ; do
43072         teststring=$teststring$teststring
43073       done
43074       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
43075       # If test is not a shell built-in, we'll probably end up computing a
43076       # maximum length that is only half of the actual maximum length, but
43077       # we can't tell.
43078       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
43079                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
43080               test $i != 17 # 1/2 MB should be enough
43081       do
43082         i=`expr $i + 1`
43083         teststring=$teststring$teststring
43084       done
43085       # Only check the string length outside the loop.
43086       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
43087       teststring=
43088       # Add a significant safety factor because C++ compilers can tack on
43089       # massive amounts of additional arguments before passing them to the
43090       # linker.  It appears as though 1/2 is a usable value.
43091       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
43092     fi
43093     ;;
43094   esac
43095
43096 fi
43097
43098 if test -n $lt_cv_sys_max_cmd_len ; then
43099   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
43100 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
43101 else
43102   { $as_echo "$as_me:$LINENO: result: none" >&5
43103 $as_echo "none" >&6; }
43104 fi
43105 max_cmd_len=$lt_cv_sys_max_cmd_len
43106
43107
43108
43109
43110
43111
43112 : ${CP="cp -f"}
43113 : ${MV="mv -f"}
43114 : ${RM="rm -f"}
43115
43116 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
43117 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
43118 # Try some XSI features
43119 xsi_shell=no
43120 ( _lt_dummy="a/b/c"
43121   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
43122       = c,a/b,, \
43123     && eval 'test $(( 1 + 1 )) -eq 2 \
43124     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
43125   && xsi_shell=yes
43126 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
43127 $as_echo "$xsi_shell" >&6; }
43128
43129
43130 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
43131 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
43132 lt_shell_append=no
43133 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
43134     >/dev/null 2>&1 \
43135   && lt_shell_append=yes
43136 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
43137 $as_echo "$lt_shell_append" >&6; }
43138
43139
43140 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43141   lt_unset=unset
43142 else
43143   lt_unset=false
43144 fi
43145
43146
43147
43148
43149
43150 # test EBCDIC or ASCII
43151 case `echo X|tr X '\101'` in
43152  A) # ASCII based system
43153     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
43154   lt_SP2NL='tr \040 \012'
43155   lt_NL2SP='tr \015\012 \040\040'
43156   ;;
43157  *) # EBCDIC based system
43158   lt_SP2NL='tr \100 \n'
43159   lt_NL2SP='tr \r\n \100\100'
43160   ;;
43161 esac
43162
43163
43164
43165
43166
43167
43168
43169
43170
43171 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
43172 $as_echo_n "checking for $LD option to reload object files... " >&6; }
43173 if test "${lt_cv_ld_reload_flag+set}" = set; then
43174   $as_echo_n "(cached) " >&6
43175 else
43176   lt_cv_ld_reload_flag='-r'
43177 fi
43178 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
43179 $as_echo "$lt_cv_ld_reload_flag" >&6; }
43180 reload_flag=$lt_cv_ld_reload_flag
43181 case $reload_flag in
43182 "" | " "*) ;;
43183 *) reload_flag=" $reload_flag" ;;
43184 esac
43185 reload_cmds='$LD$reload_flag -o $output$reload_objs'
43186 case $host_os in
43187   darwin*)
43188     if test "$GCC" = yes; then
43189       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
43190     else
43191       reload_cmds='$LD$reload_flag -o $output$reload_objs'
43192     fi
43193     ;;
43194 esac
43195
43196
43197
43198
43199
43200
43201
43202
43203
43204
43205 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
43206 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
43207 if test "${lt_cv_deplibs_check_method+set}" = set; then
43208   $as_echo_n "(cached) " >&6
43209 else
43210   lt_cv_file_magic_cmd='$MAGIC_CMD'
43211 lt_cv_file_magic_test_file=
43212 lt_cv_deplibs_check_method='unknown'
43213 # Need to set the preceding variable on all platforms that support
43214 # interlibrary dependencies.
43215 # 'none' -- dependencies not supported.
43216 # `unknown' -- same as none, but documents that we really don't know.
43217 # 'pass_all' -- all dependencies passed with no checks.
43218 # 'test_compile' -- check by making test program.
43219 # 'file_magic [[regex]]' -- check by looking for files in library path
43220 # which responds to the $file_magic_cmd with a given extended regex.
43221 # If you have `file' or equivalent on your system and you're not sure
43222 # whether `pass_all' will *always* work, you probably want this one.
43223
43224 case $host_os in
43225 aix[4-9]*)
43226   lt_cv_deplibs_check_method=pass_all
43227   ;;
43228
43229 beos*)
43230   lt_cv_deplibs_check_method=pass_all
43231   ;;
43232
43233 bsdi[45]*)
43234   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
43235   lt_cv_file_magic_cmd='/usr/bin/file -L'
43236   lt_cv_file_magic_test_file=/shlib/libc.so
43237   ;;
43238
43239 cygwin*)
43240   # func_win32_libid is a shell function defined in ltmain.sh
43241   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
43242   lt_cv_file_magic_cmd='func_win32_libid'
43243   ;;
43244
43245 mingw* | pw32*)
43246   # Base MSYS/MinGW do not provide the 'file' command needed by
43247   # func_win32_libid shell function, so use a weaker test based on 'objdump',
43248   # unless we find 'file', for example because we are cross-compiling.
43249   if ( file / ) >/dev/null 2>&1; then
43250     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
43251     lt_cv_file_magic_cmd='func_win32_libid'
43252   else
43253     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
43254     lt_cv_file_magic_cmd='$OBJDUMP -f'
43255   fi
43256   ;;
43257
43258 darwin* | rhapsody*)
43259   lt_cv_deplibs_check_method=pass_all
43260   ;;
43261
43262 freebsd* | dragonfly*)
43263   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
43264     case $host_cpu in
43265     i*86 )
43266       # Not sure whether the presence of OpenBSD here was a mistake.
43267       # Let's accept both of them until this is cleared up.
43268       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
43269       lt_cv_file_magic_cmd=/usr/bin/file
43270       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
43271       ;;
43272     esac
43273   else
43274     lt_cv_deplibs_check_method=pass_all
43275   fi
43276   ;;
43277
43278 gnu*)
43279   lt_cv_deplibs_check_method=pass_all
43280   ;;
43281
43282 hpux10.20* | hpux11*)
43283   lt_cv_file_magic_cmd=/usr/bin/file
43284   case $host_cpu in
43285   ia64*)
43286     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
43287     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
43288     ;;
43289   hppa*64*)
43290     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]'
43291     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
43292     ;;
43293   *)
43294     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
43295     lt_cv_file_magic_test_file=/usr/lib/libc.sl
43296     ;;
43297   esac
43298   ;;
43299
43300 interix[3-9]*)
43301   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
43302   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
43303   ;;
43304
43305 irix5* | irix6* | nonstopux*)
43306   case $LD in
43307   *-32|*"-32 ") libmagic=32-bit;;
43308   *-n32|*"-n32 ") libmagic=N32;;
43309   *-64|*"-64 ") libmagic=64-bit;;
43310   *) libmagic=never-match;;
43311   esac
43312   lt_cv_deplibs_check_method=pass_all
43313   ;;
43314
43315 # This must be Linux ELF.
43316 linux* | k*bsd*-gnu)
43317   lt_cv_deplibs_check_method=pass_all
43318   ;;
43319
43320 netbsd*)
43321   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
43322     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
43323   else
43324     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
43325   fi
43326   ;;
43327
43328 newos6*)
43329   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
43330   lt_cv_file_magic_cmd=/usr/bin/file
43331   lt_cv_file_magic_test_file=/usr/lib/libnls.so
43332   ;;
43333
43334 *nto* | *qnx*)
43335   lt_cv_deplibs_check_method=pass_all
43336   ;;
43337
43338 openbsd*)
43339   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
43340     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
43341   else
43342     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
43343   fi
43344   ;;
43345
43346 osf3* | osf4* | osf5*)
43347   lt_cv_deplibs_check_method=pass_all
43348   ;;
43349
43350 rdos*)
43351   lt_cv_deplibs_check_method=pass_all
43352   ;;
43353
43354 solaris*)
43355   lt_cv_deplibs_check_method=pass_all
43356   ;;
43357
43358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
43359   lt_cv_deplibs_check_method=pass_all
43360   ;;
43361
43362 sysv4 | sysv4.3*)
43363   case $host_vendor in
43364   motorola)
43365     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]'
43366     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
43367     ;;
43368   ncr)
43369     lt_cv_deplibs_check_method=pass_all
43370     ;;
43371   sequent)
43372     lt_cv_file_magic_cmd='/bin/file'
43373     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
43374     ;;
43375   sni)
43376     lt_cv_file_magic_cmd='/bin/file'
43377     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
43378     lt_cv_file_magic_test_file=/lib/libc.so
43379     ;;
43380   siemens)
43381     lt_cv_deplibs_check_method=pass_all
43382     ;;
43383   pc)
43384     lt_cv_deplibs_check_method=pass_all
43385     ;;
43386   esac
43387   ;;
43388
43389 tpf*)
43390   lt_cv_deplibs_check_method=pass_all
43391   ;;
43392 esac
43393
43394 fi
43395 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
43396 $as_echo "$lt_cv_deplibs_check_method" >&6; }
43397 file_magic_cmd=$lt_cv_file_magic_cmd
43398 deplibs_check_method=$lt_cv_deplibs_check_method
43399 test -z "$deplibs_check_method" && deplibs_check_method=unknown
43400
43401
43402
43403
43404
43405
43406
43407
43408
43409
43410
43411
43412 if test -n "$ac_tool_prefix"; then
43413   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
43414 set dummy ${ac_tool_prefix}ar; ac_word=$2
43415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43416 $as_echo_n "checking for $ac_word... " >&6; }
43417 if test "${ac_cv_prog_AR+set}" = set; then
43418   $as_echo_n "(cached) " >&6
43419 else
43420   if test -n "$AR"; then
43421   ac_cv_prog_AR="$AR" # Let the user override the test.
43422 else
43423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43424 for as_dir in $PATH
43425 do
43426   IFS=$as_save_IFS
43427   test -z "$as_dir" && as_dir=.
43428   for ac_exec_ext in '' $ac_executable_extensions; do
43429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43430     ac_cv_prog_AR="${ac_tool_prefix}ar"
43431     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43432     break 2
43433   fi
43434 done
43435 done
43436 IFS=$as_save_IFS
43437
43438 fi
43439 fi
43440 AR=$ac_cv_prog_AR
43441 if test -n "$AR"; then
43442   { $as_echo "$as_me:$LINENO: result: $AR" >&5
43443 $as_echo "$AR" >&6; }
43444 else
43445   { $as_echo "$as_me:$LINENO: result: no" >&5
43446 $as_echo "no" >&6; }
43447 fi
43448
43449
43450 fi
43451 if test -z "$ac_cv_prog_AR"; then
43452   ac_ct_AR=$AR
43453   # Extract the first word of "ar", so it can be a program name with args.
43454 set dummy ar; ac_word=$2
43455 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43456 $as_echo_n "checking for $ac_word... " >&6; }
43457 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
43458   $as_echo_n "(cached) " >&6
43459 else
43460   if test -n "$ac_ct_AR"; then
43461   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
43462 else
43463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43464 for as_dir in $PATH
43465 do
43466   IFS=$as_save_IFS
43467   test -z "$as_dir" && as_dir=.
43468   for ac_exec_ext in '' $ac_executable_extensions; do
43469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43470     ac_cv_prog_ac_ct_AR="ar"
43471     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43472     break 2
43473   fi
43474 done
43475 done
43476 IFS=$as_save_IFS
43477
43478 fi
43479 fi
43480 ac_ct_AR=$ac_cv_prog_ac_ct_AR
43481 if test -n "$ac_ct_AR"; then
43482   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
43483 $as_echo "$ac_ct_AR" >&6; }
43484 else
43485   { $as_echo "$as_me:$LINENO: result: no" >&5
43486 $as_echo "no" >&6; }
43487 fi
43488
43489   if test "x$ac_ct_AR" = x; then
43490     AR="false"
43491   else
43492     case $cross_compiling:$ac_tool_warned in
43493 yes:)
43494 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
43495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43496 ac_tool_warned=yes ;;
43497 esac
43498     AR=$ac_ct_AR
43499   fi
43500 else
43501   AR="$ac_cv_prog_AR"
43502 fi
43503
43504 test -z "$AR" && AR=ar
43505 test -z "$AR_FLAGS" && AR_FLAGS=cru
43506
43507
43508
43509
43510
43511
43512
43513
43514
43515
43516
43517 if test -n "$ac_tool_prefix"; then
43518   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
43519 set dummy ${ac_tool_prefix}strip; ac_word=$2
43520 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43521 $as_echo_n "checking for $ac_word... " >&6; }
43522 if test "${ac_cv_prog_STRIP+set}" = set; then
43523   $as_echo_n "(cached) " >&6
43524 else
43525   if test -n "$STRIP"; then
43526   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
43527 else
43528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43529 for as_dir in $PATH
43530 do
43531   IFS=$as_save_IFS
43532   test -z "$as_dir" && as_dir=.
43533   for ac_exec_ext in '' $ac_executable_extensions; do
43534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43535     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
43536     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43537     break 2
43538   fi
43539 done
43540 done
43541 IFS=$as_save_IFS
43542
43543 fi
43544 fi
43545 STRIP=$ac_cv_prog_STRIP
43546 if test -n "$STRIP"; then
43547   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
43548 $as_echo "$STRIP" >&6; }
43549 else
43550   { $as_echo "$as_me:$LINENO: result: no" >&5
43551 $as_echo "no" >&6; }
43552 fi
43553
43554
43555 fi
43556 if test -z "$ac_cv_prog_STRIP"; then
43557   ac_ct_STRIP=$STRIP
43558   # Extract the first word of "strip", so it can be a program name with args.
43559 set dummy strip; ac_word=$2
43560 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43561 $as_echo_n "checking for $ac_word... " >&6; }
43562 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
43563   $as_echo_n "(cached) " >&6
43564 else
43565   if test -n "$ac_ct_STRIP"; then
43566   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
43567 else
43568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43569 for as_dir in $PATH
43570 do
43571   IFS=$as_save_IFS
43572   test -z "$as_dir" && as_dir=.
43573   for ac_exec_ext in '' $ac_executable_extensions; do
43574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43575     ac_cv_prog_ac_ct_STRIP="strip"
43576     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43577     break 2
43578   fi
43579 done
43580 done
43581 IFS=$as_save_IFS
43582
43583 fi
43584 fi
43585 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
43586 if test -n "$ac_ct_STRIP"; then
43587   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
43588 $as_echo "$ac_ct_STRIP" >&6; }
43589 else
43590   { $as_echo "$as_me:$LINENO: result: no" >&5
43591 $as_echo "no" >&6; }
43592 fi
43593
43594   if test "x$ac_ct_STRIP" = x; then
43595     STRIP=":"
43596   else
43597     case $cross_compiling:$ac_tool_warned in
43598 yes:)
43599 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
43600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43601 ac_tool_warned=yes ;;
43602 esac
43603     STRIP=$ac_ct_STRIP
43604   fi
43605 else
43606   STRIP="$ac_cv_prog_STRIP"
43607 fi
43608
43609 test -z "$STRIP" && STRIP=:
43610
43611
43612
43613
43614
43615
43616 if test -n "$ac_tool_prefix"; then
43617   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
43618 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
43619 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43620 $as_echo_n "checking for $ac_word... " >&6; }
43621 if test "${ac_cv_prog_RANLIB+set}" = set; then
43622   $as_echo_n "(cached) " >&6
43623 else
43624   if test -n "$RANLIB"; then
43625   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
43626 else
43627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43628 for as_dir in $PATH
43629 do
43630   IFS=$as_save_IFS
43631   test -z "$as_dir" && as_dir=.
43632   for ac_exec_ext in '' $ac_executable_extensions; do
43633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43634     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
43635     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43636     break 2
43637   fi
43638 done
43639 done
43640 IFS=$as_save_IFS
43641
43642 fi
43643 fi
43644 RANLIB=$ac_cv_prog_RANLIB
43645 if test -n "$RANLIB"; then
43646   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
43647 $as_echo "$RANLIB" >&6; }
43648 else
43649   { $as_echo "$as_me:$LINENO: result: no" >&5
43650 $as_echo "no" >&6; }
43651 fi
43652
43653
43654 fi
43655 if test -z "$ac_cv_prog_RANLIB"; then
43656   ac_ct_RANLIB=$RANLIB
43657   # Extract the first word of "ranlib", so it can be a program name with args.
43658 set dummy ranlib; ac_word=$2
43659 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43660 $as_echo_n "checking for $ac_word... " >&6; }
43661 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
43662   $as_echo_n "(cached) " >&6
43663 else
43664   if test -n "$ac_ct_RANLIB"; then
43665   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
43666 else
43667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43668 for as_dir in $PATH
43669 do
43670   IFS=$as_save_IFS
43671   test -z "$as_dir" && as_dir=.
43672   for ac_exec_ext in '' $ac_executable_extensions; do
43673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43674     ac_cv_prog_ac_ct_RANLIB="ranlib"
43675     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43676     break 2
43677   fi
43678 done
43679 done
43680 IFS=$as_save_IFS
43681
43682 fi
43683 fi
43684 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
43685 if test -n "$ac_ct_RANLIB"; then
43686   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
43687 $as_echo "$ac_ct_RANLIB" >&6; }
43688 else
43689   { $as_echo "$as_me:$LINENO: result: no" >&5
43690 $as_echo "no" >&6; }
43691 fi
43692
43693   if test "x$ac_ct_RANLIB" = x; then
43694     RANLIB=":"
43695   else
43696     case $cross_compiling:$ac_tool_warned in
43697 yes:)
43698 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
43699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43700 ac_tool_warned=yes ;;
43701 esac
43702     RANLIB=$ac_ct_RANLIB
43703   fi
43704 else
43705   RANLIB="$ac_cv_prog_RANLIB"
43706 fi
43707
43708 test -z "$RANLIB" && RANLIB=:
43709
43710
43711
43712
43713
43714
43715 # Determine commands to create old-style static archives.
43716 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
43717 old_postinstall_cmds='chmod 644 $oldlib'
43718 old_postuninstall_cmds=
43719
43720 if test -n "$RANLIB"; then
43721   case $host_os in
43722   openbsd*)
43723     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
43724     ;;
43725   *)
43726     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
43727     ;;
43728   esac
43729   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
43730 fi
43731
43732
43733
43734
43735
43736
43737
43738
43739
43740
43741
43742
43743
43744
43745
43746
43747
43748
43749
43750
43751
43752
43753
43754
43755
43756
43757
43758
43759
43760
43761
43762
43763
43764
43765 # If no C compiler was specified, use CC.
43766 LTCC=${LTCC-"$CC"}
43767
43768 # If no C compiler flags were specified, use CFLAGS.
43769 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
43770
43771 # Allow CC to be a program name with arguments.
43772 compiler=$CC
43773
43774
43775 # Check for command to grab the raw symbol name followed by C symbol from nm.
43776 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
43777 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
43778 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
43779   $as_echo_n "(cached) " >&6
43780 else
43781
43782 # These are sane defaults that work on at least a few old systems.
43783 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
43784
43785 # Character class describing NM global symbol codes.
43786 symcode='[BCDEGRST]'
43787
43788 # Regexp to match symbols that can be accessed directly from C.
43789 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
43790
43791 # Define system-specific variables.
43792 case $host_os in
43793 aix*)
43794   symcode='[BCDT]'
43795   ;;
43796 cygwin* | mingw* | pw32*)
43797   symcode='[ABCDGISTW]'
43798   ;;
43799 hpux*)
43800   if test "$host_cpu" = ia64; then
43801     symcode='[ABCDEGRST]'
43802   fi
43803   ;;
43804 irix* | nonstopux*)
43805   symcode='[BCDEGRST]'
43806   ;;
43807 osf*)
43808   symcode='[BCDEGQRST]'
43809   ;;
43810 solaris*)
43811   symcode='[BDRT]'
43812   ;;
43813 sco3.2v5*)
43814   symcode='[DT]'
43815   ;;
43816 sysv4.2uw2*)
43817   symcode='[DT]'
43818   ;;
43819 sysv5* | sco5v6* | unixware* | OpenUNIX*)
43820   symcode='[ABDT]'
43821   ;;
43822 sysv4)
43823   symcode='[DFNSTU]'
43824   ;;
43825 esac
43826
43827 # If we're using GNU nm, then use its standard symbol codes.
43828 case `$NM -V 2>&1` in
43829 *GNU* | *'with BFD'*)
43830   symcode='[ABCDGIRSTW]' ;;
43831 esac
43832
43833 # Transform an extracted symbol line into a proper C declaration.
43834 # Some systems (esp. on ia64) link data and code symbols differently,
43835 # so use this general approach.
43836 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
43837
43838 # Transform an extracted symbol line into symbol name and symbol address
43839 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
43840 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
43841
43842 # Handle CRLF in mingw tool chain
43843 opt_cr=
43844 case $build_os in
43845 mingw*)
43846   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
43847   ;;
43848 esac
43849
43850 # Try without a prefix underscore, then with it.
43851 for ac_symprfx in "" "_"; do
43852
43853   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
43854   symxfrm="\\1 $ac_symprfx\\2 \\2"
43855
43856   # Write the raw and C identifiers.
43857   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
43858     # Fake it for dumpbin and say T for any non-static function
43859     # and D for any global variable.
43860     # Also find C++ and __fastcall symbols from MSVC++,
43861     # which start with @ or ?.
43862     lt_cv_sys_global_symbol_pipe="$AWK '"\
43863 "     {last_section=section; section=\$ 3};"\
43864 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
43865 "     \$ 0!~/External *\|/{next};"\
43866 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
43867 "     {if(hide[section]) next};"\
43868 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
43869 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
43870 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
43871 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
43872 "     ' prfx=^$ac_symprfx"
43873   else
43874     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
43875   fi
43876
43877   # Check to see that the pipe works correctly.
43878   pipe_works=no
43879
43880   rm -f conftest*
43881   cat > conftest.$ac_ext <<_LT_EOF
43882 #ifdef __cplusplus
43883 extern "C" {
43884 #endif
43885 char nm_test_var;
43886 void nm_test_func(void);
43887 void nm_test_func(void){}
43888 #ifdef __cplusplus
43889 }
43890 #endif
43891 int main(){nm_test_var='a';nm_test_func();return(0);}
43892 _LT_EOF
43893
43894   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43895   (eval $ac_compile) 2>&5
43896   ac_status=$?
43897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43898   (exit $ac_status); }; then
43899     # Now try to grab the symbols.
43900     nlist=conftest.nm
43901     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
43902   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
43903   ac_status=$?
43904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43905   (exit $ac_status); } && test -s "$nlist"; then
43906       # Try sorting and uniquifying the output.
43907       if sort "$nlist" | uniq > "$nlist"T; then
43908         mv -f "$nlist"T "$nlist"
43909       else
43910         rm -f "$nlist"T
43911       fi
43912
43913       # Make sure that we snagged all the symbols we need.
43914       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
43915         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
43916           cat <<_LT_EOF > conftest.$ac_ext
43917 #ifdef __cplusplus
43918 extern "C" {
43919 #endif
43920
43921 _LT_EOF
43922           # Now generate the symbol file.
43923           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
43924
43925           cat <<_LT_EOF >> conftest.$ac_ext
43926
43927 /* The mapping between symbol names and symbols.  */
43928 const struct {
43929   const char *name;
43930   void       *address;
43931 }
43932 lt__PROGRAM__LTX_preloaded_symbols[] =
43933 {
43934   { "@PROGRAM@", (void *) 0 },
43935 _LT_EOF
43936           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
43937           cat <<\_LT_EOF >> conftest.$ac_ext
43938   {0, (void *) 0}
43939 };
43940
43941 /* This works around a problem in FreeBSD linker */
43942 #ifdef FREEBSD_WORKAROUND
43943 static const void *lt_preloaded_setup() {
43944   return lt__PROGRAM__LTX_preloaded_symbols;
43945 }
43946 #endif
43947
43948 #ifdef __cplusplus
43949 }
43950 #endif
43951 _LT_EOF
43952           # Now try linking the two files.
43953           mv conftest.$ac_objext conftstm.$ac_objext
43954           lt_save_LIBS="$LIBS"
43955           lt_save_CFLAGS="$CFLAGS"
43956           LIBS="conftstm.$ac_objext"
43957           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
43958           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43959   (eval $ac_link) 2>&5
43960   ac_status=$?
43961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43962   (exit $ac_status); } && test -s conftest${ac_exeext}; then
43963             pipe_works=yes
43964           fi
43965           LIBS="$lt_save_LIBS"
43966           CFLAGS="$lt_save_CFLAGS"
43967         else
43968           echo "cannot find nm_test_func in $nlist" >&5
43969         fi
43970       else
43971         echo "cannot find nm_test_var in $nlist" >&5
43972       fi
43973     else
43974       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
43975     fi
43976   else
43977     echo "$progname: failed program was:" >&5
43978     cat conftest.$ac_ext >&5
43979   fi
43980   rm -rf conftest* conftst*
43981
43982   # Do not use the global_symbol_pipe unless it works.
43983   if test "$pipe_works" = yes; then
43984     break
43985   else
43986     lt_cv_sys_global_symbol_pipe=
43987   fi
43988 done
43989
43990 fi
43991
43992 if test -z "$lt_cv_sys_global_symbol_pipe"; then
43993   lt_cv_sys_global_symbol_to_cdecl=
43994 fi
43995 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
43996   { $as_echo "$as_me:$LINENO: result: failed" >&5
43997 $as_echo "failed" >&6; }
43998 else
43999   { $as_echo "$as_me:$LINENO: result: ok" >&5
44000 $as_echo "ok" >&6; }
44001 fi
44002
44003
44004
44005
44006
44007
44008
44009
44010
44011
44012
44013
44014
44015
44016
44017
44018
44019
44020
44021
44022
44023
44024 # Check whether --enable-libtool-lock was given.
44025 if test "${enable_libtool_lock+set}" = set; then
44026   enableval=$enable_libtool_lock;
44027 fi
44028
44029 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
44030
44031 # Some flags need to be propagated to the compiler or linker for good
44032 # libtool support.
44033 case $host in
44034 ia64-*-hpux*)
44035   # Find out which ABI we are using.
44036   echo 'int i;' > conftest.$ac_ext
44037   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44038   (eval $ac_compile) 2>&5
44039   ac_status=$?
44040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44041   (exit $ac_status); }; then
44042     case `/usr/bin/file conftest.$ac_objext` in
44043       *ELF-32*)
44044         HPUX_IA64_MODE="32"
44045         ;;
44046       *ELF-64*)
44047         HPUX_IA64_MODE="64"
44048         ;;
44049     esac
44050   fi
44051   rm -rf conftest*
44052   ;;
44053 *-*-irix6*)
44054   # Find out which ABI we are using.
44055   echo '#line 44055 "configure"' > conftest.$ac_ext
44056   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44057   (eval $ac_compile) 2>&5
44058   ac_status=$?
44059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44060   (exit $ac_status); }; then
44061     if test "$lt_cv_prog_gnu_ld" = yes; then
44062       case `/usr/bin/file conftest.$ac_objext` in
44063         *32-bit*)
44064           LD="${LD-ld} -melf32bsmip"
44065           ;;
44066         *N32*)
44067           LD="${LD-ld} -melf32bmipn32"
44068           ;;
44069         *64-bit*)
44070           LD="${LD-ld} -melf64bmip"
44071         ;;
44072       esac
44073     else
44074       case `/usr/bin/file conftest.$ac_objext` in
44075         *32-bit*)
44076           LD="${LD-ld} -32"
44077           ;;
44078         *N32*)
44079           LD="${LD-ld} -n32"
44080           ;;
44081         *64-bit*)
44082           LD="${LD-ld} -64"
44083           ;;
44084       esac
44085     fi
44086   fi
44087   rm -rf conftest*
44088   ;;
44089
44090 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
44091 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
44092   # Find out which ABI we are using.
44093   echo 'int i;' > conftest.$ac_ext
44094   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44095   (eval $ac_compile) 2>&5
44096   ac_status=$?
44097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44098   (exit $ac_status); }; then
44099     case `/usr/bin/file conftest.o` in
44100       *32-bit*)
44101         case $host in
44102           x86_64-*kfreebsd*-gnu)
44103             LD="${LD-ld} -m elf_i386_fbsd"
44104             ;;
44105           x86_64-*linux*)
44106             LD="${LD-ld} -m elf_i386"
44107             ;;
44108           ppc64-*linux*|powerpc64-*linux*)
44109             LD="${LD-ld} -m elf32ppclinux"
44110             ;;
44111           s390x-*linux*)
44112             LD="${LD-ld} -m elf_s390"
44113             ;;
44114           sparc64-*linux*)
44115             LD="${LD-ld} -m elf32_sparc"
44116             ;;
44117         esac
44118         ;;
44119       *64-bit*)
44120         case $host in
44121           x86_64-*kfreebsd*-gnu)
44122             LD="${LD-ld} -m elf_x86_64_fbsd"
44123             ;;
44124           x86_64-*linux*)
44125             LD="${LD-ld} -m elf_x86_64"
44126             ;;
44127           ppc*-*linux*|powerpc*-*linux*)
44128             LD="${LD-ld} -m elf64ppc"
44129             ;;
44130           s390*-*linux*|s390*-*tpf*)
44131             LD="${LD-ld} -m elf64_s390"
44132             ;;
44133           sparc*-*linux*)
44134             LD="${LD-ld} -m elf64_sparc"
44135             ;;
44136         esac
44137         ;;
44138     esac
44139   fi
44140   rm -rf conftest*
44141   ;;
44142
44143 *-*-sco3.2v5*)
44144   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
44145   SAVE_CFLAGS="$CFLAGS"
44146   CFLAGS="$CFLAGS -belf"
44147   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
44148 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
44149 if test "${lt_cv_cc_needs_belf+set}" = set; then
44150   $as_echo_n "(cached) " >&6
44151 else
44152   ac_ext=c
44153 ac_cpp='$CPP $CPPFLAGS'
44154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44157
44158      cat >conftest.$ac_ext <<_ACEOF
44159 /* confdefs.h.  */
44160 _ACEOF
44161 cat confdefs.h >>conftest.$ac_ext
44162 cat >>conftest.$ac_ext <<_ACEOF
44163 /* end confdefs.h.  */
44164
44165 int
44166 main ()
44167 {
44168
44169   ;
44170   return 0;
44171 }
44172 _ACEOF
44173 rm -f conftest.$ac_objext conftest$ac_exeext
44174 if { (ac_try="$ac_link"
44175 case "(($ac_try" in
44176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44177   *) ac_try_echo=$ac_try;;
44178 esac
44179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44180 $as_echo "$ac_try_echo") >&5
44181   (eval "$ac_link") 2>conftest.er1
44182   ac_status=$?
44183   grep -v '^ *+' conftest.er1 >conftest.err
44184   rm -f conftest.er1
44185   cat conftest.err >&5
44186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44187   (exit $ac_status); } && {
44188          test -z "$ac_c_werror_flag" ||
44189          test ! -s conftest.err
44190        } && test -s conftest$ac_exeext && {
44191          test "$cross_compiling" = yes ||
44192          $as_test_x conftest$ac_exeext
44193        }; then
44194   lt_cv_cc_needs_belf=yes
44195 else
44196   $as_echo "$as_me: failed program was:" >&5
44197 sed 's/^/| /' conftest.$ac_ext >&5
44198
44199         lt_cv_cc_needs_belf=no
44200 fi
44201
44202 rm -rf conftest.dSYM
44203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44204       conftest$ac_exeext conftest.$ac_ext
44205      ac_ext=c
44206 ac_cpp='$CPP $CPPFLAGS'
44207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44210
44211 fi
44212 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
44213 $as_echo "$lt_cv_cc_needs_belf" >&6; }
44214   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
44215     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
44216     CFLAGS="$SAVE_CFLAGS"
44217   fi
44218   ;;
44219 sparc*-*solaris*)
44220   # Find out which ABI we are using.
44221   echo 'int i;' > conftest.$ac_ext
44222   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44223   (eval $ac_compile) 2>&5
44224   ac_status=$?
44225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44226   (exit $ac_status); }; then
44227     case `/usr/bin/file conftest.o` in
44228     *64-bit*)
44229       case $lt_cv_prog_gnu_ld in
44230       yes*) LD="${LD-ld} -m elf64_sparc" ;;
44231       *)
44232         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
44233           LD="${LD-ld} -64"
44234         fi
44235         ;;
44236       esac
44237       ;;
44238     esac
44239   fi
44240   rm -rf conftest*
44241   ;;
44242 esac
44243
44244 need_locks="$enable_libtool_lock"
44245
44246
44247   case $host_os in
44248     rhapsody* | darwin*)
44249     if test -n "$ac_tool_prefix"; then
44250   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
44251 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
44252 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44253 $as_echo_n "checking for $ac_word... " >&6; }
44254 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
44255   $as_echo_n "(cached) " >&6
44256 else
44257   if test -n "$DSYMUTIL"; then
44258   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
44259 else
44260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44261 for as_dir in $PATH
44262 do
44263   IFS=$as_save_IFS
44264   test -z "$as_dir" && as_dir=.
44265   for ac_exec_ext in '' $ac_executable_extensions; do
44266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44267     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
44268     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44269     break 2
44270   fi
44271 done
44272 done
44273 IFS=$as_save_IFS
44274
44275 fi
44276 fi
44277 DSYMUTIL=$ac_cv_prog_DSYMUTIL
44278 if test -n "$DSYMUTIL"; then
44279   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
44280 $as_echo "$DSYMUTIL" >&6; }
44281 else
44282   { $as_echo "$as_me:$LINENO: result: no" >&5
44283 $as_echo "no" >&6; }
44284 fi
44285
44286
44287 fi
44288 if test -z "$ac_cv_prog_DSYMUTIL"; then
44289   ac_ct_DSYMUTIL=$DSYMUTIL
44290   # Extract the first word of "dsymutil", so it can be a program name with args.
44291 set dummy dsymutil; ac_word=$2
44292 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44293 $as_echo_n "checking for $ac_word... " >&6; }
44294 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
44295   $as_echo_n "(cached) " >&6
44296 else
44297   if test -n "$ac_ct_DSYMUTIL"; then
44298   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
44299 else
44300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44301 for as_dir in $PATH
44302 do
44303   IFS=$as_save_IFS
44304   test -z "$as_dir" && as_dir=.
44305   for ac_exec_ext in '' $ac_executable_extensions; do
44306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44307     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
44308     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44309     break 2
44310   fi
44311 done
44312 done
44313 IFS=$as_save_IFS
44314
44315 fi
44316 fi
44317 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
44318 if test -n "$ac_ct_DSYMUTIL"; then
44319   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
44320 $as_echo "$ac_ct_DSYMUTIL" >&6; }
44321 else
44322   { $as_echo "$as_me:$LINENO: result: no" >&5
44323 $as_echo "no" >&6; }
44324 fi
44325
44326   if test "x$ac_ct_DSYMUTIL" = x; then
44327     DSYMUTIL=":"
44328   else
44329     case $cross_compiling:$ac_tool_warned in
44330 yes:)
44331 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
44332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44333 ac_tool_warned=yes ;;
44334 esac
44335     DSYMUTIL=$ac_ct_DSYMUTIL
44336   fi
44337 else
44338   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
44339 fi
44340
44341     if test -n "$ac_tool_prefix"; then
44342   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
44343 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
44344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44345 $as_echo_n "checking for $ac_word... " >&6; }
44346 if test "${ac_cv_prog_NMEDIT+set}" = set; then
44347   $as_echo_n "(cached) " >&6
44348 else
44349   if test -n "$NMEDIT"; then
44350   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
44351 else
44352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44353 for as_dir in $PATH
44354 do
44355   IFS=$as_save_IFS
44356   test -z "$as_dir" && as_dir=.
44357   for ac_exec_ext in '' $ac_executable_extensions; do
44358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44359     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
44360     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44361     break 2
44362   fi
44363 done
44364 done
44365 IFS=$as_save_IFS
44366
44367 fi
44368 fi
44369 NMEDIT=$ac_cv_prog_NMEDIT
44370 if test -n "$NMEDIT"; then
44371   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
44372 $as_echo "$NMEDIT" >&6; }
44373 else
44374   { $as_echo "$as_me:$LINENO: result: no" >&5
44375 $as_echo "no" >&6; }
44376 fi
44377
44378
44379 fi
44380 if test -z "$ac_cv_prog_NMEDIT"; then
44381   ac_ct_NMEDIT=$NMEDIT
44382   # Extract the first word of "nmedit", so it can be a program name with args.
44383 set dummy nmedit; ac_word=$2
44384 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44385 $as_echo_n "checking for $ac_word... " >&6; }
44386 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
44387   $as_echo_n "(cached) " >&6
44388 else
44389   if test -n "$ac_ct_NMEDIT"; then
44390   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
44391 else
44392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44393 for as_dir in $PATH
44394 do
44395   IFS=$as_save_IFS
44396   test -z "$as_dir" && as_dir=.
44397   for ac_exec_ext in '' $ac_executable_extensions; do
44398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44399     ac_cv_prog_ac_ct_NMEDIT="nmedit"
44400     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44401     break 2
44402   fi
44403 done
44404 done
44405 IFS=$as_save_IFS
44406
44407 fi
44408 fi
44409 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
44410 if test -n "$ac_ct_NMEDIT"; then
44411   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
44412 $as_echo "$ac_ct_NMEDIT" >&6; }
44413 else
44414   { $as_echo "$as_me:$LINENO: result: no" >&5
44415 $as_echo "no" >&6; }
44416 fi
44417
44418   if test "x$ac_ct_NMEDIT" = x; then
44419     NMEDIT=":"
44420   else
44421     case $cross_compiling:$ac_tool_warned in
44422 yes:)
44423 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
44424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44425 ac_tool_warned=yes ;;
44426 esac
44427     NMEDIT=$ac_ct_NMEDIT
44428   fi
44429 else
44430   NMEDIT="$ac_cv_prog_NMEDIT"
44431 fi
44432
44433     if test -n "$ac_tool_prefix"; then
44434   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
44435 set dummy ${ac_tool_prefix}lipo; ac_word=$2
44436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44437 $as_echo_n "checking for $ac_word... " >&6; }
44438 if test "${ac_cv_prog_LIPO+set}" = set; then
44439   $as_echo_n "(cached) " >&6
44440 else
44441   if test -n "$LIPO"; then
44442   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
44443 else
44444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44445 for as_dir in $PATH
44446 do
44447   IFS=$as_save_IFS
44448   test -z "$as_dir" && as_dir=.
44449   for ac_exec_ext in '' $ac_executable_extensions; do
44450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44451     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
44452     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44453     break 2
44454   fi
44455 done
44456 done
44457 IFS=$as_save_IFS
44458
44459 fi
44460 fi
44461 LIPO=$ac_cv_prog_LIPO
44462 if test -n "$LIPO"; then
44463   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
44464 $as_echo "$LIPO" >&6; }
44465 else
44466   { $as_echo "$as_me:$LINENO: result: no" >&5
44467 $as_echo "no" >&6; }
44468 fi
44469
44470
44471 fi
44472 if test -z "$ac_cv_prog_LIPO"; then
44473   ac_ct_LIPO=$LIPO
44474   # Extract the first word of "lipo", so it can be a program name with args.
44475 set dummy lipo; ac_word=$2
44476 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44477 $as_echo_n "checking for $ac_word... " >&6; }
44478 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
44479   $as_echo_n "(cached) " >&6
44480 else
44481   if test -n "$ac_ct_LIPO"; then
44482   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
44483 else
44484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44485 for as_dir in $PATH
44486 do
44487   IFS=$as_save_IFS
44488   test -z "$as_dir" && as_dir=.
44489   for ac_exec_ext in '' $ac_executable_extensions; do
44490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44491     ac_cv_prog_ac_ct_LIPO="lipo"
44492     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44493     break 2
44494   fi
44495 done
44496 done
44497 IFS=$as_save_IFS
44498
44499 fi
44500 fi
44501 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
44502 if test -n "$ac_ct_LIPO"; then
44503   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
44504 $as_echo "$ac_ct_LIPO" >&6; }
44505 else
44506   { $as_echo "$as_me:$LINENO: result: no" >&5
44507 $as_echo "no" >&6; }
44508 fi
44509
44510   if test "x$ac_ct_LIPO" = x; then
44511     LIPO=":"
44512   else
44513     case $cross_compiling:$ac_tool_warned in
44514 yes:)
44515 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
44516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44517 ac_tool_warned=yes ;;
44518 esac
44519     LIPO=$ac_ct_LIPO
44520   fi
44521 else
44522   LIPO="$ac_cv_prog_LIPO"
44523 fi
44524
44525     if test -n "$ac_tool_prefix"; then
44526   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
44527 set dummy ${ac_tool_prefix}otool; ac_word=$2
44528 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44529 $as_echo_n "checking for $ac_word... " >&6; }
44530 if test "${ac_cv_prog_OTOOL+set}" = set; then
44531   $as_echo_n "(cached) " >&6
44532 else
44533   if test -n "$OTOOL"; then
44534   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
44535 else
44536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44537 for as_dir in $PATH
44538 do
44539   IFS=$as_save_IFS
44540   test -z "$as_dir" && as_dir=.
44541   for ac_exec_ext in '' $ac_executable_extensions; do
44542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44543     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
44544     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44545     break 2
44546   fi
44547 done
44548 done
44549 IFS=$as_save_IFS
44550
44551 fi
44552 fi
44553 OTOOL=$ac_cv_prog_OTOOL
44554 if test -n "$OTOOL"; then
44555   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
44556 $as_echo "$OTOOL" >&6; }
44557 else
44558   { $as_echo "$as_me:$LINENO: result: no" >&5
44559 $as_echo "no" >&6; }
44560 fi
44561
44562
44563 fi
44564 if test -z "$ac_cv_prog_OTOOL"; then
44565   ac_ct_OTOOL=$OTOOL
44566   # Extract the first word of "otool", so it can be a program name with args.
44567 set dummy otool; ac_word=$2
44568 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44569 $as_echo_n "checking for $ac_word... " >&6; }
44570 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
44571   $as_echo_n "(cached) " >&6
44572 else
44573   if test -n "$ac_ct_OTOOL"; then
44574   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
44575 else
44576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44577 for as_dir in $PATH
44578 do
44579   IFS=$as_save_IFS
44580   test -z "$as_dir" && as_dir=.
44581   for ac_exec_ext in '' $ac_executable_extensions; do
44582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44583     ac_cv_prog_ac_ct_OTOOL="otool"
44584     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44585     break 2
44586   fi
44587 done
44588 done
44589 IFS=$as_save_IFS
44590
44591 fi
44592 fi
44593 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
44594 if test -n "$ac_ct_OTOOL"; then
44595   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
44596 $as_echo "$ac_ct_OTOOL" >&6; }
44597 else
44598   { $as_echo "$as_me:$LINENO: result: no" >&5
44599 $as_echo "no" >&6; }
44600 fi
44601
44602   if test "x$ac_ct_OTOOL" = x; then
44603     OTOOL=":"
44604   else
44605     case $cross_compiling:$ac_tool_warned in
44606 yes:)
44607 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
44608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44609 ac_tool_warned=yes ;;
44610 esac
44611     OTOOL=$ac_ct_OTOOL
44612   fi
44613 else
44614   OTOOL="$ac_cv_prog_OTOOL"
44615 fi
44616
44617     if test -n "$ac_tool_prefix"; then
44618   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
44619 set dummy ${ac_tool_prefix}otool64; ac_word=$2
44620 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44621 $as_echo_n "checking for $ac_word... " >&6; }
44622 if test "${ac_cv_prog_OTOOL64+set}" = set; then
44623   $as_echo_n "(cached) " >&6
44624 else
44625   if test -n "$OTOOL64"; then
44626   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
44627 else
44628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44629 for as_dir in $PATH
44630 do
44631   IFS=$as_save_IFS
44632   test -z "$as_dir" && as_dir=.
44633   for ac_exec_ext in '' $ac_executable_extensions; do
44634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44635     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
44636     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44637     break 2
44638   fi
44639 done
44640 done
44641 IFS=$as_save_IFS
44642
44643 fi
44644 fi
44645 OTOOL64=$ac_cv_prog_OTOOL64
44646 if test -n "$OTOOL64"; then
44647   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
44648 $as_echo "$OTOOL64" >&6; }
44649 else
44650   { $as_echo "$as_me:$LINENO: result: no" >&5
44651 $as_echo "no" >&6; }
44652 fi
44653
44654
44655 fi
44656 if test -z "$ac_cv_prog_OTOOL64"; then
44657   ac_ct_OTOOL64=$OTOOL64
44658   # Extract the first word of "otool64", so it can be a program name with args.
44659 set dummy otool64; ac_word=$2
44660 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44661 $as_echo_n "checking for $ac_word... " >&6; }
44662 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
44663   $as_echo_n "(cached) " >&6
44664 else
44665   if test -n "$ac_ct_OTOOL64"; then
44666   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
44667 else
44668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44669 for as_dir in $PATH
44670 do
44671   IFS=$as_save_IFS
44672   test -z "$as_dir" && as_dir=.
44673   for ac_exec_ext in '' $ac_executable_extensions; do
44674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44675     ac_cv_prog_ac_ct_OTOOL64="otool64"
44676     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44677     break 2
44678   fi
44679 done
44680 done
44681 IFS=$as_save_IFS
44682
44683 fi
44684 fi
44685 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
44686 if test -n "$ac_ct_OTOOL64"; then
44687   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
44688 $as_echo "$ac_ct_OTOOL64" >&6; }
44689 else
44690   { $as_echo "$as_me:$LINENO: result: no" >&5
44691 $as_echo "no" >&6; }
44692 fi
44693
44694   if test "x$ac_ct_OTOOL64" = x; then
44695     OTOOL64=":"
44696   else
44697     case $cross_compiling:$ac_tool_warned in
44698 yes:)
44699 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
44700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44701 ac_tool_warned=yes ;;
44702 esac
44703     OTOOL64=$ac_ct_OTOOL64
44704   fi
44705 else
44706   OTOOL64="$ac_cv_prog_OTOOL64"
44707 fi
44708
44709
44710
44711
44712
44713
44714
44715
44716
44717
44718
44719
44720
44721
44722
44723
44724
44725
44726
44727
44728
44729
44730
44731
44732
44733
44734
44735     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
44736 $as_echo_n "checking for -single_module linker flag... " >&6; }
44737 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
44738   $as_echo_n "(cached) " >&6
44739 else
44740   lt_cv_apple_cc_single_mod=no
44741       if test -z "${LT_MULTI_MODULE}"; then
44742         # By default we will add the -single_module flag. You can override
44743         # by either setting the environment variable LT_MULTI_MODULE
44744         # non-empty at configure time, or by adding -multi_module to the
44745         # link flags.
44746         rm -rf libconftest.dylib*
44747         echo "int foo(void){return 1;}" > conftest.c
44748         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
44749 -dynamiclib -Wl,-single_module conftest.c" >&5
44750         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
44751           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
44752         _lt_result=$?
44753         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
44754           lt_cv_apple_cc_single_mod=yes
44755         else
44756           cat conftest.err >&5
44757         fi
44758         rm -rf libconftest.dylib*
44759         rm -f conftest.*
44760       fi
44761 fi
44762 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
44763 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
44764     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
44765 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
44766 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
44767   $as_echo_n "(cached) " >&6
44768 else
44769   lt_cv_ld_exported_symbols_list=no
44770       save_LDFLAGS=$LDFLAGS
44771       echo "_main" > conftest.sym
44772       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
44773       cat >conftest.$ac_ext <<_ACEOF
44774 /* confdefs.h.  */
44775 _ACEOF
44776 cat confdefs.h >>conftest.$ac_ext
44777 cat >>conftest.$ac_ext <<_ACEOF
44778 /* end confdefs.h.  */
44779
44780 int
44781 main ()
44782 {
44783
44784   ;
44785   return 0;
44786 }
44787 _ACEOF
44788 rm -f conftest.$ac_objext conftest$ac_exeext
44789 if { (ac_try="$ac_link"
44790 case "(($ac_try" in
44791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44792   *) ac_try_echo=$ac_try;;
44793 esac
44794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44795 $as_echo "$ac_try_echo") >&5
44796   (eval "$ac_link") 2>conftest.er1
44797   ac_status=$?
44798   grep -v '^ *+' conftest.er1 >conftest.err
44799   rm -f conftest.er1
44800   cat conftest.err >&5
44801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44802   (exit $ac_status); } && {
44803          test -z "$ac_c_werror_flag" ||
44804          test ! -s conftest.err
44805        } && test -s conftest$ac_exeext && {
44806          test "$cross_compiling" = yes ||
44807          $as_test_x conftest$ac_exeext
44808        }; then
44809   lt_cv_ld_exported_symbols_list=yes
44810 else
44811   $as_echo "$as_me: failed program was:" >&5
44812 sed 's/^/| /' conftest.$ac_ext >&5
44813
44814         lt_cv_ld_exported_symbols_list=no
44815 fi
44816
44817 rm -rf conftest.dSYM
44818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44819       conftest$ac_exeext conftest.$ac_ext
44820         LDFLAGS="$save_LDFLAGS"
44821
44822 fi
44823 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
44824 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
44825     case $host_os in
44826     rhapsody* | darwin1.[012])
44827       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
44828     darwin1.*)
44829       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
44830     darwin*) # darwin 5.x on
44831       # if running on 10.5 or later, the deployment target defaults
44832       # to the OS version, if on x86, and 10.4, the deployment
44833       # target defaults to 10.4. Don't you love it?
44834       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
44835         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
44836           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
44837         10.[012]*)
44838           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
44839         10.*)
44840           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
44841       esac
44842     ;;
44843   esac
44844     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
44845       _lt_dar_single_mod='$single_module'
44846     fi
44847     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
44848       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
44849     else
44850       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
44851     fi
44852     if test "$DSYMUTIL" != ":"; then
44853       _lt_dsymutil='~$DSYMUTIL $lib || :'
44854     else
44855       _lt_dsymutil=
44856     fi
44857     ;;
44858   esac
44859
44860
44861 for ac_header in dlfcn.h
44862 do
44863 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44864 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
44865 $as_echo_n "checking for $ac_header... " >&6; }
44866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44867   $as_echo_n "(cached) " >&6
44868 else
44869   cat >conftest.$ac_ext <<_ACEOF
44870 /* confdefs.h.  */
44871 _ACEOF
44872 cat confdefs.h >>conftest.$ac_ext
44873 cat >>conftest.$ac_ext <<_ACEOF
44874 /* end confdefs.h.  */
44875 $ac_includes_default
44876
44877 #include <$ac_header>
44878 _ACEOF
44879 rm -f conftest.$ac_objext
44880 if { (ac_try="$ac_compile"
44881 case "(($ac_try" in
44882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44883   *) ac_try_echo=$ac_try;;
44884 esac
44885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44886 $as_echo "$ac_try_echo") >&5
44887   (eval "$ac_compile") 2>conftest.er1
44888   ac_status=$?
44889   grep -v '^ *+' conftest.er1 >conftest.err
44890   rm -f conftest.er1
44891   cat conftest.err >&5
44892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44893   (exit $ac_status); } && {
44894          test -z "$ac_c_werror_flag" ||
44895          test ! -s conftest.err
44896        } && test -s conftest.$ac_objext; then
44897   eval "$as_ac_Header=yes"
44898 else
44899   $as_echo "$as_me: failed program was:" >&5
44900 sed 's/^/| /' conftest.$ac_ext >&5
44901
44902         eval "$as_ac_Header=no"
44903 fi
44904
44905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44906 fi
44907 ac_res=`eval 'as_val=${'$as_ac_Header'}
44908                  $as_echo "$as_val"'`
44909                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44910 $as_echo "$ac_res" >&6; }
44911 as_val=`eval 'as_val=${'$as_ac_Header'}
44912                  $as_echo "$as_val"'`
44913    if test "x$as_val" = x""yes; then
44914   cat >>confdefs.h <<_ACEOF
44915 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44916 _ACEOF
44917
44918 fi
44919
44920 done
44921
44922
44923
44924 # Set options
44925
44926
44927
44928         enable_dlopen=no
44929
44930
44931   enable_win32_dll=no
44932
44933
44934             # Check whether --enable-shared was given.
44935 if test "${enable_shared+set}" = set; then
44936   enableval=$enable_shared; p=${PACKAGE-default}
44937     case $enableval in
44938     yes) enable_shared=yes ;;
44939     no) enable_shared=no ;;
44940     *)
44941       enable_shared=no
44942       # Look at the argument we got.  We use all the common list separators.
44943       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
44944       for pkg in $enableval; do
44945         IFS="$lt_save_ifs"
44946         if test "X$pkg" = "X$p"; then
44947           enable_shared=yes
44948         fi
44949       done
44950       IFS="$lt_save_ifs"
44951       ;;
44952     esac
44953 else
44954   enable_shared=yes
44955 fi
44956
44957
44958
44959
44960
44961
44962
44963
44964
44965   # Check whether --enable-static was given.
44966 if test "${enable_static+set}" = set; then
44967   enableval=$enable_static; p=${PACKAGE-default}
44968     case $enableval in
44969     yes) enable_static=yes ;;
44970     no) enable_static=no ;;
44971     *)
44972      enable_static=no
44973       # Look at the argument we got.  We use all the common list separators.
44974       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
44975       for pkg in $enableval; do
44976         IFS="$lt_save_ifs"
44977         if test "X$pkg" = "X$p"; then
44978           enable_static=yes
44979         fi
44980       done
44981       IFS="$lt_save_ifs"
44982       ;;
44983     esac
44984 else
44985   enable_static=yes
44986 fi
44987
44988
44989
44990
44991
44992
44993
44994
44995
44996
44997 # Check whether --with-pic was given.
44998 if test "${with_pic+set}" = set; then
44999   withval=$with_pic; pic_mode="$withval"
45000 else
45001   pic_mode=default
45002 fi
45003
45004
45005 test -z "$pic_mode" && pic_mode=default
45006
45007
45008
45009
45010
45011
45012
45013   # Check whether --enable-fast-install was given.
45014 if test "${enable_fast_install+set}" = set; then
45015   enableval=$enable_fast_install; p=${PACKAGE-default}
45016     case $enableval in
45017     yes) enable_fast_install=yes ;;
45018     no) enable_fast_install=no ;;
45019     *)
45020       enable_fast_install=no
45021       # Look at the argument we got.  We use all the common list separators.
45022       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
45023       for pkg in $enableval; do
45024         IFS="$lt_save_ifs"
45025         if test "X$pkg" = "X$p"; then
45026           enable_fast_install=yes
45027         fi
45028       done
45029       IFS="$lt_save_ifs"
45030       ;;
45031     esac
45032 else
45033   enable_fast_install=yes
45034 fi
45035
45036
45037
45038
45039
45040
45041
45042
45043
45044
45045
45046 # This can be used to rebuild libtool when needed
45047 LIBTOOL_DEPS="$ltmain"
45048
45049 # Always use our own libtool.
45050 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
45051
45052
45053
45054
45055
45056
45057
45058
45059
45060
45061
45062
45063
45064
45065
45066
45067
45068
45069
45070
45071
45072
45073
45074
45075
45076 test -z "$LN_S" && LN_S="ln -s"
45077
45078
45079
45080
45081
45082
45083
45084
45085
45086
45087
45088
45089
45090
45091 if test -n "${ZSH_VERSION+set}" ; then
45092    setopt NO_GLOB_SUBST
45093 fi
45094
45095 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
45096 $as_echo_n "checking for objdir... " >&6; }
45097 if test "${lt_cv_objdir+set}" = set; then
45098   $as_echo_n "(cached) " >&6
45099 else
45100   rm -f .libs 2>/dev/null
45101 mkdir .libs 2>/dev/null
45102 if test -d .libs; then
45103   lt_cv_objdir=.libs
45104 else
45105   # MS-DOS does not allow filenames that begin with a dot.
45106   lt_cv_objdir=_libs
45107 fi
45108 rmdir .libs 2>/dev/null
45109 fi
45110 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
45111 $as_echo "$lt_cv_objdir" >&6; }
45112 objdir=$lt_cv_objdir
45113
45114
45115
45116
45117
45118 cat >>confdefs.h <<_ACEOF
45119 #define LT_OBJDIR "$lt_cv_objdir/"
45120 _ACEOF
45121
45122
45123
45124
45125
45126
45127
45128
45129
45130
45131
45132
45133
45134
45135
45136
45137
45138 case $host_os in
45139 aix3*)
45140   # AIX sometimes has problems with the GCC collect2 program.  For some
45141   # reason, if we set the COLLECT_NAMES environment variable, the problems
45142   # vanish in a puff of smoke.
45143   if test "X${COLLECT_NAMES+set}" != Xset; then
45144     COLLECT_NAMES=
45145     export COLLECT_NAMES
45146   fi
45147   ;;
45148 esac
45149
45150 # Sed substitution that helps us do robust quoting.  It backslashifies
45151 # metacharacters that are still active within double-quoted strings.
45152 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
45153
45154 # Same as above, but do not quote variable references.
45155 double_quote_subst='s/\(["`\\]\)/\\\1/g'
45156
45157 # Sed substitution to delay expansion of an escaped shell variable in a
45158 # double_quote_subst'ed string.
45159 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
45160
45161 # Sed substitution to delay expansion of an escaped single quote.
45162 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
45163
45164 # Sed substitution to avoid accidental globbing in evaled expressions
45165 no_glob_subst='s/\*/\\\*/g'
45166
45167 # Global variables:
45168 ofile=libtool
45169 can_build_shared=yes
45170
45171 # All known linkers require a `.a' archive for static linking (except MSVC,
45172 # which needs '.lib').
45173 libext=a
45174
45175 with_gnu_ld="$lt_cv_prog_gnu_ld"
45176
45177 old_CC="$CC"
45178 old_CFLAGS="$CFLAGS"
45179
45180 # Set sane defaults for various variables
45181 test -z "$CC" && CC=cc
45182 test -z "$LTCC" && LTCC=$CC
45183 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
45184 test -z "$LD" && LD=ld
45185 test -z "$ac_objext" && ac_objext=o
45186
45187 for cc_temp in $compiler""; do
45188   case $cc_temp in
45189     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
45190     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
45191     \-*) ;;
45192     *) break;;
45193   esac
45194 done
45195 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
45196
45197
45198 # Only perform the check for file, if the check method requires it
45199 test -z "$MAGIC_CMD" && MAGIC_CMD=file
45200 case $deplibs_check_method in
45201 file_magic*)
45202   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
45203     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
45204 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
45205 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
45206   $as_echo_n "(cached) " >&6
45207 else
45208   case $MAGIC_CMD in
45209 [\\/*] |  ?:[\\/]*)
45210   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
45211   ;;
45212 *)
45213   lt_save_MAGIC_CMD="$MAGIC_CMD"
45214   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
45215   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
45216   for ac_dir in $ac_dummy; do
45217     IFS="$lt_save_ifs"
45218     test -z "$ac_dir" && ac_dir=.
45219     if test -f $ac_dir/${ac_tool_prefix}file; then
45220       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
45221       if test -n "$file_magic_test_file"; then
45222         case $deplibs_check_method in
45223         "file_magic "*)
45224           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
45225           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
45226           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
45227             $EGREP "$file_magic_regex" > /dev/null; then
45228             :
45229           else
45230             cat <<_LT_EOF 1>&2
45231
45232 *** Warning: the command libtool uses to detect shared libraries,
45233 *** $file_magic_cmd, produces output that libtool cannot recognize.
45234 *** The result is that libtool may fail to recognize shared libraries
45235 *** as such.  This will affect the creation of libtool libraries that
45236 *** depend on shared libraries, but programs linked with such libtool
45237 *** libraries will work regardless of this problem.  Nevertheless, you
45238 *** may want to report the problem to your system manager and/or to
45239 *** bug-libtool@gnu.org
45240
45241 _LT_EOF
45242           fi ;;
45243         esac
45244       fi
45245       break
45246     fi
45247   done
45248   IFS="$lt_save_ifs"
45249   MAGIC_CMD="$lt_save_MAGIC_CMD"
45250   ;;
45251 esac
45252 fi
45253
45254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
45255 if test -n "$MAGIC_CMD"; then
45256   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
45257 $as_echo "$MAGIC_CMD" >&6; }
45258 else
45259   { $as_echo "$as_me:$LINENO: result: no" >&5
45260 $as_echo "no" >&6; }
45261 fi
45262
45263
45264
45265
45266
45267 if test -z "$lt_cv_path_MAGIC_CMD"; then
45268   if test -n "$ac_tool_prefix"; then
45269     { $as_echo "$as_me:$LINENO: checking for file" >&5
45270 $as_echo_n "checking for file... " >&6; }
45271 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
45272   $as_echo_n "(cached) " >&6
45273 else
45274   case $MAGIC_CMD in
45275 [\\/*] |  ?:[\\/]*)
45276   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
45277   ;;
45278 *)
45279   lt_save_MAGIC_CMD="$MAGIC_CMD"
45280   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
45281   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
45282   for ac_dir in $ac_dummy; do
45283     IFS="$lt_save_ifs"
45284     test -z "$ac_dir" && ac_dir=.
45285     if test -f $ac_dir/file; then
45286       lt_cv_path_MAGIC_CMD="$ac_dir/file"
45287       if test -n "$file_magic_test_file"; then
45288         case $deplibs_check_method in
45289         "file_magic "*)
45290           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
45291           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
45292           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
45293             $EGREP "$file_magic_regex" > /dev/null; then
45294             :
45295           else
45296             cat <<_LT_EOF 1>&2
45297
45298 *** Warning: the command libtool uses to detect shared libraries,
45299 *** $file_magic_cmd, produces output that libtool cannot recognize.
45300 *** The result is that libtool may fail to recognize shared libraries
45301 *** as such.  This will affect the creation of libtool libraries that
45302 *** depend on shared libraries, but programs linked with such libtool
45303 *** libraries will work regardless of this problem.  Nevertheless, you
45304 *** may want to report the problem to your system manager and/or to
45305 *** bug-libtool@gnu.org
45306
45307 _LT_EOF
45308           fi ;;
45309         esac
45310       fi
45311       break
45312     fi
45313   done
45314   IFS="$lt_save_ifs"
45315   MAGIC_CMD="$lt_save_MAGIC_CMD"
45316   ;;
45317 esac
45318 fi
45319
45320 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
45321 if test -n "$MAGIC_CMD"; then
45322   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
45323 $as_echo "$MAGIC_CMD" >&6; }
45324 else
45325   { $as_echo "$as_me:$LINENO: result: no" >&5
45326 $as_echo "no" >&6; }
45327 fi
45328
45329
45330   else
45331     MAGIC_CMD=:
45332   fi
45333 fi
45334
45335   fi
45336   ;;
45337 esac
45338
45339 # Use C for the default configuration in the libtool script
45340
45341 lt_save_CC="$CC"
45342 ac_ext=c
45343 ac_cpp='$CPP $CPPFLAGS'
45344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45347
45348
45349 # Source file extension for C test sources.
45350 ac_ext=c
45351
45352 # Object file extension for compiled C test sources.
45353 objext=o
45354 objext=$objext
45355
45356 # Code to be used in simple compile tests
45357 lt_simple_compile_test_code="int some_variable = 0;"
45358
45359 # Code to be used in simple link tests
45360 lt_simple_link_test_code='int main(){return(0);}'
45361
45362
45363
45364
45365
45366
45367
45368 # If no C compiler was specified, use CC.
45369 LTCC=${LTCC-"$CC"}
45370
45371 # If no C compiler flags were specified, use CFLAGS.
45372 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
45373
45374 # Allow CC to be a program name with arguments.
45375 compiler=$CC
45376
45377 # Save the default compiler, since it gets overwritten when the other
45378 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
45379 compiler_DEFAULT=$CC
45380
45381 # save warnings/boilerplate of simple test code
45382 ac_outfile=conftest.$ac_objext
45383 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
45384 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
45385 _lt_compiler_boilerplate=`cat conftest.err`
45386 $RM conftest*
45387
45388 ac_outfile=conftest.$ac_objext
45389 echo "$lt_simple_link_test_code" >conftest.$ac_ext
45390 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
45391 _lt_linker_boilerplate=`cat conftest.err`
45392 $RM -r conftest*
45393
45394
45395 ## CAVEAT EMPTOR:
45396 ## There is no encapsulation within the following macros, do not change
45397 ## the running order or otherwise move them around unless you know exactly
45398 ## what you are doing...
45399 if test -n "$compiler"; then
45400
45401 lt_prog_compiler_no_builtin_flag=
45402
45403 if test "$GCC" = yes; then
45404   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
45405
45406   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
45407 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
45408 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
45409   $as_echo_n "(cached) " >&6
45410 else
45411   lt_cv_prog_compiler_rtti_exceptions=no
45412    ac_outfile=conftest.$ac_objext
45413    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
45414    lt_compiler_flag="-fno-rtti -fno-exceptions"
45415    # Insert the option either (1) after the last *FLAGS variable, or
45416    # (2) before a word containing "conftest.", or (3) at the end.
45417    # Note that $ac_compile itself does not contain backslashes and begins
45418    # with a dollar sign (not a hyphen), so the echo should work correctly.
45419    # The option is referenced via a variable to avoid confusing sed.
45420    lt_compile=`echo "$ac_compile" | $SED \
45421    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
45422    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
45423    -e 's:$: $lt_compiler_flag:'`
45424    (eval echo "\"\$as_me:45424: $lt_compile\"" >&5)
45425    (eval "$lt_compile" 2>conftest.err)
45426    ac_status=$?
45427    cat conftest.err >&5
45428    echo "$as_me:45428: \$? = $ac_status" >&5
45429    if (exit $ac_status) && test -s "$ac_outfile"; then
45430      # The compiler can only warn and ignore the option if not recognized
45431      # So say no if there are warnings other than the usual output.
45432      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
45433      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
45434      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
45435        lt_cv_prog_compiler_rtti_exceptions=yes
45436      fi
45437    fi
45438    $RM conftest*
45439
45440 fi
45441 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
45442 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
45443
45444 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
45445     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
45446 else
45447     :
45448 fi
45449
45450 fi
45451
45452
45453
45454
45455
45456
45457   lt_prog_compiler_wl=
45458 lt_prog_compiler_pic=
45459 lt_prog_compiler_static=
45460
45461 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
45462 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
45463
45464   if test "$GCC" = yes; then
45465     lt_prog_compiler_wl='-Wl,'
45466     lt_prog_compiler_static='-static'
45467
45468     case $host_os in
45469       aix*)
45470       # All AIX code is PIC.
45471       if test "$host_cpu" = ia64; then
45472         # AIX 5 now supports IA64 processor
45473         lt_prog_compiler_static='-Bstatic'
45474       fi
45475       ;;
45476
45477     amigaos*)
45478       case $host_cpu in
45479       powerpc)
45480             # see comment about AmigaOS4 .so support
45481             lt_prog_compiler_pic='-fPIC'
45482         ;;
45483       m68k)
45484             # FIXME: we need at least 68020 code to build shared libraries, but
45485             # adding the `-m68020' flag to GCC prevents building anything better,
45486             # like `-m68040'.
45487             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
45488         ;;
45489       esac
45490       ;;
45491
45492     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
45493       # PIC is the default for these OSes.
45494       ;;
45495
45496     mingw* | cygwin* | pw32* | os2*)
45497       # This hack is so that the source file can tell whether it is being
45498       # built for inclusion in a dll (and should export symbols for example).
45499       # Although the cygwin gcc ignores -fPIC, still need this for old-style
45500       # (--disable-auto-import) libraries
45501       lt_prog_compiler_pic='-DDLL_EXPORT'
45502       ;;
45503
45504     darwin* | rhapsody*)
45505       # PIC is the default on this platform
45506       # Common symbols not allowed in MH_DYLIB files
45507       lt_prog_compiler_pic='-fno-common'
45508       ;;
45509
45510     hpux*)
45511       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
45512       # not for PA HP-UX.
45513       case $host_cpu in
45514       hppa*64*|ia64*)
45515         # +Z the default
45516         ;;
45517       *)
45518         lt_prog_compiler_pic='-fPIC'
45519         ;;
45520       esac
45521       ;;
45522
45523     interix[3-9]*)
45524       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
45525       # Instead, we relocate shared libraries at runtime.
45526       ;;
45527
45528     msdosdjgpp*)
45529       # Just because we use GCC doesn't mean we suddenly get shared libraries
45530       # on systems that don't support them.
45531       lt_prog_compiler_can_build_shared=no
45532       enable_shared=no
45533       ;;
45534
45535     *nto* | *qnx*)
45536       # QNX uses GNU C++, but need to define -shared option too, otherwise
45537       # it will coredump.
45538       lt_prog_compiler_pic='-fPIC -shared'
45539       ;;
45540
45541     sysv4*MP*)
45542       if test -d /usr/nec; then
45543         lt_prog_compiler_pic=-Kconform_pic
45544       fi
45545       ;;
45546
45547     *)
45548       lt_prog_compiler_pic='-fPIC'
45549       ;;
45550     esac
45551   else
45552     # PORTME Check for flag to pass linker flags through the system compiler.
45553     case $host_os in
45554     aix*)
45555       lt_prog_compiler_wl='-Wl,'
45556       if test "$host_cpu" = ia64; then
45557         # AIX 5 now supports IA64 processor
45558         lt_prog_compiler_static='-Bstatic'
45559       else
45560         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
45561       fi
45562       ;;
45563
45564     mingw* | cygwin* | pw32* | os2*)
45565       # This hack is so that the source file can tell whether it is being
45566       # built for inclusion in a dll (and should export symbols for example).
45567       lt_prog_compiler_pic='-DDLL_EXPORT'
45568       ;;
45569
45570     hpux9* | hpux10* | hpux11*)
45571       lt_prog_compiler_wl='-Wl,'
45572       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
45573       # not for PA HP-UX.
45574       case $host_cpu in
45575       hppa*64*|ia64*)
45576         # +Z the default
45577         ;;
45578       *)
45579         lt_prog_compiler_pic='+Z'
45580         ;;
45581       esac
45582       # Is there a better lt_prog_compiler_static that works with the bundled CC?
45583       lt_prog_compiler_static='${wl}-a ${wl}archive'
45584       ;;
45585
45586     irix5* | irix6* | nonstopux*)
45587       lt_prog_compiler_wl='-Wl,'
45588       # PIC (with -KPIC) is the default.
45589       lt_prog_compiler_static='-non_shared'
45590       ;;
45591
45592     linux* | k*bsd*-gnu)
45593       case $cc_basename in
45594       icc* | ecc* | ifort*)
45595         lt_prog_compiler_wl='-Wl,'
45596         lt_prog_compiler_pic='-KPIC'
45597         lt_prog_compiler_static='-static'
45598         ;;
45599       pgcc* | pgf77* | pgf90* | pgf95*)
45600         # Portland Group compilers (*not* the Pentium gcc compiler,
45601         # which looks to be a dead project)
45602         lt_prog_compiler_wl='-Wl,'
45603         lt_prog_compiler_pic='-fpic'
45604         lt_prog_compiler_static='-Bstatic'
45605         ;;
45606       ccc*)
45607         lt_prog_compiler_wl='-Wl,'
45608         # All Alpha code is PIC.
45609         lt_prog_compiler_static='-non_shared'
45610         ;;
45611       xl*)
45612         # IBM XL C 8.0/Fortran 10.1 on PPC
45613         lt_prog_compiler_wl='-Wl,'
45614         lt_prog_compiler_pic='-qpic'
45615         lt_prog_compiler_static='-qstaticlink'
45616         ;;
45617       *)
45618         case `$CC -V 2>&1 | sed 5q` in
45619         *Sun\ C*)
45620           # Sun C 5.9
45621           lt_prog_compiler_pic='-KPIC'
45622           lt_prog_compiler_static='-Bstatic'
45623           lt_prog_compiler_wl='-Wl,'
45624           ;;
45625         *Sun\ F*)
45626           # Sun Fortran 8.3 passes all unrecognized flags to the linker
45627           lt_prog_compiler_pic='-KPIC'
45628           lt_prog_compiler_static='-Bstatic'
45629           lt_prog_compiler_wl=''
45630           ;;
45631         esac
45632         ;;
45633       esac
45634       ;;
45635
45636     newsos6)
45637       lt_prog_compiler_pic='-KPIC'
45638       lt_prog_compiler_static='-Bstatic'
45639       ;;
45640
45641     *nto* | *qnx*)
45642       # QNX uses GNU C++, but need to define -shared option too, otherwise
45643       # it will coredump.
45644       lt_prog_compiler_pic='-fPIC -shared'
45645       ;;
45646
45647     osf3* | osf4* | osf5*)
45648       lt_prog_compiler_wl='-Wl,'
45649       # All OSF/1 code is PIC.
45650       lt_prog_compiler_static='-non_shared'
45651       ;;
45652
45653     rdos*)
45654       lt_prog_compiler_static='-non_shared'
45655       ;;
45656
45657     solaris*)
45658       lt_prog_compiler_pic='-KPIC'
45659       lt_prog_compiler_static='-Bstatic'
45660       case $cc_basename in
45661       f77* | f90* | f95*)
45662         lt_prog_compiler_wl='-Qoption ld ';;
45663       *)
45664         lt_prog_compiler_wl='-Wl,';;
45665       esac
45666       ;;
45667
45668     sunos4*)
45669       lt_prog_compiler_wl='-Qoption ld '
45670       lt_prog_compiler_pic='-PIC'
45671       lt_prog_compiler_static='-Bstatic'
45672       ;;
45673
45674     sysv4 | sysv4.2uw2* | sysv4.3*)
45675       lt_prog_compiler_wl='-Wl,'
45676       lt_prog_compiler_pic='-KPIC'
45677       lt_prog_compiler_static='-Bstatic'
45678       ;;
45679
45680     sysv4*MP*)
45681       if test -d /usr/nec ;then
45682         lt_prog_compiler_pic='-Kconform_pic'
45683         lt_prog_compiler_static='-Bstatic'
45684       fi
45685       ;;
45686
45687     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
45688       lt_prog_compiler_wl='-Wl,'
45689       lt_prog_compiler_pic='-KPIC'
45690       lt_prog_compiler_static='-Bstatic'
45691       ;;
45692
45693     unicos*)
45694       lt_prog_compiler_wl='-Wl,'
45695       lt_prog_compiler_can_build_shared=no
45696       ;;
45697
45698     uts4*)
45699       lt_prog_compiler_pic='-pic'
45700       lt_prog_compiler_static='-Bstatic'
45701       ;;
45702
45703     *)
45704       lt_prog_compiler_can_build_shared=no
45705       ;;
45706     esac
45707   fi
45708
45709 case $host_os in
45710   # For platforms which do not support PIC, -DPIC is meaningless:
45711   *djgpp*)
45712     lt_prog_compiler_pic=
45713     ;;
45714   *)
45715     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
45716     ;;
45717 esac
45718 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
45719 $as_echo "$lt_prog_compiler_pic" >&6; }
45720
45721
45722
45723
45724
45725
45726 #
45727 # Check to make sure the PIC flag actually works.
45728 #
45729 if test -n "$lt_prog_compiler_pic"; then
45730   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
45731 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
45732 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
45733   $as_echo_n "(cached) " >&6
45734 else
45735   lt_cv_prog_compiler_pic_works=no
45736    ac_outfile=conftest.$ac_objext
45737    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
45738    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
45739    # Insert the option either (1) after the last *FLAGS variable, or
45740    # (2) before a word containing "conftest.", or (3) at the end.
45741    # Note that $ac_compile itself does not contain backslashes and begins
45742    # with a dollar sign (not a hyphen), so the echo should work correctly.
45743    # The option is referenced via a variable to avoid confusing sed.
45744    lt_compile=`echo "$ac_compile" | $SED \
45745    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
45746    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
45747    -e 's:$: $lt_compiler_flag:'`
45748    (eval echo "\"\$as_me:45748: $lt_compile\"" >&5)
45749    (eval "$lt_compile" 2>conftest.err)
45750    ac_status=$?
45751    cat conftest.err >&5
45752    echo "$as_me:45752: \$? = $ac_status" >&5
45753    if (exit $ac_status) && test -s "$ac_outfile"; then
45754      # The compiler can only warn and ignore the option if not recognized
45755      # So say no if there are warnings other than the usual output.
45756      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
45757      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
45758      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
45759        lt_cv_prog_compiler_pic_works=yes
45760      fi
45761    fi
45762    $RM conftest*
45763
45764 fi
45765 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
45766 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
45767
45768 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
45769     case $lt_prog_compiler_pic in
45770      "" | " "*) ;;
45771      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
45772      esac
45773 else
45774     lt_prog_compiler_pic=
45775      lt_prog_compiler_can_build_shared=no
45776 fi
45777
45778 fi
45779
45780
45781
45782
45783
45784
45785 #
45786 # Check to make sure the static flag actually works.
45787 #
45788 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
45789 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
45790 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
45791 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
45792   $as_echo_n "(cached) " >&6
45793 else
45794   lt_cv_prog_compiler_static_works=no
45795    save_LDFLAGS="$LDFLAGS"
45796    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
45797    echo "$lt_simple_link_test_code" > conftest.$ac_ext
45798    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
45799      # The linker can only warn and ignore the option if not recognized
45800      # So say no if there are warnings
45801      if test -s conftest.err; then
45802        # Append any errors to the config.log.
45803        cat conftest.err 1>&5
45804        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
45805        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
45806        if diff conftest.exp conftest.er2 >/dev/null; then
45807          lt_cv_prog_compiler_static_works=yes
45808        fi
45809      else
45810        lt_cv_prog_compiler_static_works=yes
45811      fi
45812    fi
45813    $RM -r conftest*
45814    LDFLAGS="$save_LDFLAGS"
45815
45816 fi
45817 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
45818 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
45819
45820 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
45821     :
45822 else
45823     lt_prog_compiler_static=
45824 fi
45825
45826
45827
45828
45829
45830
45831
45832   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
45833 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
45834 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
45835   $as_echo_n "(cached) " >&6
45836 else
45837   lt_cv_prog_compiler_c_o=no
45838    $RM -r conftest 2>/dev/null
45839    mkdir conftest
45840    cd conftest
45841    mkdir out
45842    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
45843
45844    lt_compiler_flag="-o out/conftest2.$ac_objext"
45845    # Insert the option either (1) after the last *FLAGS variable, or
45846    # (2) before a word containing "conftest.", or (3) at the end.
45847    # Note that $ac_compile itself does not contain backslashes and begins
45848    # with a dollar sign (not a hyphen), so the echo should work correctly.
45849    lt_compile=`echo "$ac_compile" | $SED \
45850    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
45851    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
45852    -e 's:$: $lt_compiler_flag:'`
45853    (eval echo "\"\$as_me:45853: $lt_compile\"" >&5)
45854    (eval "$lt_compile" 2>out/conftest.err)
45855    ac_status=$?
45856    cat out/conftest.err >&5
45857    echo "$as_me:45857: \$? = $ac_status" >&5
45858    if (exit $ac_status) && test -s out/conftest2.$ac_objext
45859    then
45860      # The compiler can only warn and ignore the option if not recognized
45861      # So say no if there are warnings
45862      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
45863      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
45864      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
45865        lt_cv_prog_compiler_c_o=yes
45866      fi
45867    fi
45868    chmod u+w . 2>&5
45869    $RM conftest*
45870    # SGI C++ compiler will create directory out/ii_files/ for
45871    # template instantiation
45872    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
45873    $RM out/* && rmdir out
45874    cd ..
45875    $RM -r conftest
45876    $RM conftest*
45877
45878 fi
45879 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
45880 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
45881
45882
45883
45884
45885
45886
45887   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
45888 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
45889 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
45890   $as_echo_n "(cached) " >&6
45891 else
45892   lt_cv_prog_compiler_c_o=no
45893    $RM -r conftest 2>/dev/null
45894    mkdir conftest
45895    cd conftest
45896    mkdir out
45897    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
45898
45899    lt_compiler_flag="-o out/conftest2.$ac_objext"
45900    # Insert the option either (1) after the last *FLAGS variable, or
45901    # (2) before a word containing "conftest.", or (3) at the end.
45902    # Note that $ac_compile itself does not contain backslashes and begins
45903    # with a dollar sign (not a hyphen), so the echo should work correctly.
45904    lt_compile=`echo "$ac_compile" | $SED \
45905    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
45906    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
45907    -e 's:$: $lt_compiler_flag:'`
45908    (eval echo "\"\$as_me:45908: $lt_compile\"" >&5)
45909    (eval "$lt_compile" 2>out/conftest.err)
45910    ac_status=$?
45911    cat out/conftest.err >&5
45912    echo "$as_me:45912: \$? = $ac_status" >&5
45913    if (exit $ac_status) && test -s out/conftest2.$ac_objext
45914    then
45915      # The compiler can only warn and ignore the option if not recognized
45916      # So say no if there are warnings
45917      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
45918      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
45919      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
45920        lt_cv_prog_compiler_c_o=yes
45921      fi
45922    fi
45923    chmod u+w . 2>&5
45924    $RM conftest*
45925    # SGI C++ compiler will create directory out/ii_files/ for
45926    # template instantiation
45927    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
45928    $RM out/* && rmdir out
45929    cd ..
45930    $RM -r conftest
45931    $RM conftest*
45932
45933 fi
45934 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
45935 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
45936
45937
45938
45939
45940 hard_links="nottested"
45941 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
45942   # do not overwrite the value of need_locks provided by the user
45943   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
45944 $as_echo_n "checking if we can lock with hard links... " >&6; }
45945   hard_links=yes
45946   $RM conftest*
45947   ln conftest.a conftest.b 2>/dev/null && hard_links=no
45948   touch conftest.a
45949   ln conftest.a conftest.b 2>&5 || hard_links=no
45950   ln conftest.a conftest.b 2>/dev/null && hard_links=no
45951   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
45952 $as_echo "$hard_links" >&6; }
45953   if test "$hard_links" = no; then
45954     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
45955 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
45956     need_locks=warn
45957   fi
45958 else
45959   need_locks=no
45960 fi
45961
45962
45963
45964
45965
45966
45967   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
45968 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
45969
45970   runpath_var=
45971   allow_undefined_flag=
45972   always_export_symbols=no
45973   archive_cmds=
45974   archive_expsym_cmds=
45975   compiler_needs_object=no
45976   enable_shared_with_static_runtimes=no
45977   export_dynamic_flag_spec=
45978   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
45979   hardcode_automatic=no
45980   hardcode_direct=no
45981   hardcode_direct_absolute=no
45982   hardcode_libdir_flag_spec=
45983   hardcode_libdir_flag_spec_ld=
45984   hardcode_libdir_separator=
45985   hardcode_minus_L=no
45986   hardcode_shlibpath_var=unsupported
45987   inherit_rpath=no
45988   link_all_deplibs=unknown
45989   module_cmds=
45990   module_expsym_cmds=
45991   old_archive_from_new_cmds=
45992   old_archive_from_expsyms_cmds=
45993   thread_safe_flag_spec=
45994   whole_archive_flag_spec=
45995   # include_expsyms should be a list of space-separated symbols to be *always*
45996   # included in the symbol list
45997   include_expsyms=
45998   # exclude_expsyms can be an extended regexp of symbols to exclude
45999   # it will be wrapped by ` (' and `)$', so one must not match beginning or
46000   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
46001   # as well as any symbol that contains `d'.
46002   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
46003   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
46004   # platforms (ab)use it in PIC code, but their linkers get confused if
46005   # the symbol is explicitly referenced.  Since portable code cannot
46006   # rely on this symbol name, it's probably fine to never include it in
46007   # preloaded symbol tables.
46008   # Exclude shared library initialization/finalization symbols.
46009   extract_expsyms_cmds=
46010
46011   case $host_os in
46012   cygwin* | mingw* | pw32*)
46013     # FIXME: the MSVC++ port hasn't been tested in a loooong time
46014     # When not using gcc, we currently assume that we are using
46015     # Microsoft Visual C++.
46016     if test "$GCC" != yes; then
46017       with_gnu_ld=no
46018     fi
46019     ;;
46020   interix*)
46021     # we just hope/assume this is gcc and not c89 (= MSVC++)
46022     with_gnu_ld=yes
46023     ;;
46024   openbsd*)
46025     with_gnu_ld=no
46026     ;;
46027   esac
46028
46029   ld_shlibs=yes
46030   if test "$with_gnu_ld" = yes; then
46031     # If archive_cmds runs LD, not CC, wlarc should be empty
46032     wlarc='${wl}'
46033
46034     # Set some defaults for GNU ld with shared library support. These
46035     # are reset later if shared libraries are not supported. Putting them
46036     # here allows them to be overridden if necessary.
46037     runpath_var=LD_RUN_PATH
46038     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
46039     export_dynamic_flag_spec='${wl}--export-dynamic'
46040     # ancient GNU ld didn't support --whole-archive et. al.
46041     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
46042       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
46043     else
46044       whole_archive_flag_spec=
46045     fi
46046     supports_anon_versioning=no
46047     case `$LD -v 2>&1` in
46048       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
46049       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
46050       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
46051       *\ 2.11.*) ;; # other 2.11 versions
46052       *) supports_anon_versioning=yes ;;
46053     esac
46054
46055     # See if GNU ld supports shared libraries.
46056     case $host_os in
46057     aix[3-9]*)
46058       # On AIX/PPC, the GNU linker is very broken
46059       if test "$host_cpu" != ia64; then
46060         ld_shlibs=no
46061         cat <<_LT_EOF 1>&2
46062
46063 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
46064 *** to be unable to reliably create shared libraries on AIX.
46065 *** Therefore, libtool is disabling shared libraries support.  If you
46066 *** really care for shared libraries, you may want to modify your PATH
46067 *** so that a non-GNU linker is found, and then restart.
46068
46069 _LT_EOF
46070       fi
46071       ;;
46072
46073     amigaos*)
46074       case $host_cpu in
46075       powerpc)
46076             # see comment about AmigaOS4 .so support
46077             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
46078             archive_expsym_cmds=''
46079         ;;
46080       m68k)
46081             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)'
46082             hardcode_libdir_flag_spec='-L$libdir'
46083             hardcode_minus_L=yes
46084         ;;
46085       esac
46086       ;;
46087
46088     beos*)
46089       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
46090         allow_undefined_flag=unsupported
46091         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
46092         # support --undefined.  This deserves some investigation.  FIXME
46093         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
46094       else
46095         ld_shlibs=no
46096       fi
46097       ;;
46098
46099     cygwin* | mingw* | pw32*)
46100       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
46101       # as there is no search path for DLLs.
46102       hardcode_libdir_flag_spec='-L$libdir'
46103       allow_undefined_flag=unsupported
46104       always_export_symbols=no
46105       enable_shared_with_static_runtimes=yes
46106       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
46107
46108       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
46109         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
46110         # If the export-symbols file already is a .def file (1st line
46111         # is EXPORTS), use it as is; otherwise, prepend...
46112         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
46113           cp $export_symbols $output_objdir/$soname.def;
46114         else
46115           echo EXPORTS > $output_objdir/$soname.def;
46116           cat $export_symbols >> $output_objdir/$soname.def;
46117         fi~
46118         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
46119       else
46120         ld_shlibs=no
46121       fi
46122       ;;
46123
46124     interix[3-9]*)
46125       hardcode_direct=no
46126       hardcode_shlibpath_var=no
46127       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
46128       export_dynamic_flag_spec='${wl}-E'
46129       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
46130       # Instead, shared libraries are loaded at an image base (0x10000000 by
46131       # default) and relocated if they conflict, which is a slow very memory
46132       # consuming and fragmenting process.  To avoid this, we pick a random,
46133       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
46134       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
46135       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
46136       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
46137       ;;
46138
46139     gnu* | linux* | tpf* | k*bsd*-gnu)
46140       tmp_diet=no
46141       if test "$host_os" = linux-dietlibc; then
46142         case $cc_basename in
46143           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
46144         esac
46145       fi
46146       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
46147          && test "$tmp_diet" = no
46148       then
46149         tmp_addflag=
46150         tmp_sharedflag='-shared'
46151         case $cc_basename,$host_cpu in
46152         pgcc*)                          # Portland Group C compiler
46153           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'
46154           tmp_addflag=' $pic_flag'
46155           ;;
46156         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
46157           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'
46158           tmp_addflag=' $pic_flag -Mnomain' ;;
46159         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
46160           tmp_addflag=' -i_dynamic' ;;
46161         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
46162           tmp_addflag=' -i_dynamic -nofor_main' ;;
46163         ifc* | ifort*)                  # Intel Fortran compiler
46164           tmp_addflag=' -nofor_main' ;;
46165         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
46166           tmp_sharedflag='-qmkshrobj'
46167           tmp_addflag= ;;
46168         esac
46169         case `$CC -V 2>&1 | sed 5q` in
46170         *Sun\ C*)                       # Sun C 5.9
46171           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
46172           compiler_needs_object=yes
46173           tmp_sharedflag='-G' ;;
46174         *Sun\ F*)                       # Sun Fortran 8.3
46175           tmp_sharedflag='-G' ;;
46176         esac
46177         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
46178
46179         if test "x$supports_anon_versioning" = xyes; then
46180           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
46181             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
46182             echo "local: *; };" >> $output_objdir/$libname.ver~
46183             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
46184         fi
46185
46186         case $cc_basename in
46187         xlf*)
46188           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
46189           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
46190           hardcode_libdir_flag_spec=
46191           hardcode_libdir_flag_spec_ld='-rpath $libdir'
46192           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
46193           if test "x$supports_anon_versioning" = xyes; then
46194             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
46195               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
46196               echo "local: *; };" >> $output_objdir/$libname.ver~
46197               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
46198           fi
46199           ;;
46200         esac
46201       else
46202         ld_shlibs=no
46203       fi
46204       ;;
46205
46206     netbsd*)
46207       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
46208         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
46209         wlarc=
46210       else
46211         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
46212         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
46213       fi
46214       ;;
46215
46216     solaris*)
46217       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
46218         ld_shlibs=no
46219         cat <<_LT_EOF 1>&2
46220
46221 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
46222 *** create shared libraries on Solaris systems.  Therefore, libtool
46223 *** is disabling shared libraries support.  We urge you to upgrade GNU
46224 *** binutils to release 2.9.1 or newer.  Another option is to modify
46225 *** your PATH or compiler configuration so that the native linker is
46226 *** used, and then restart.
46227
46228 _LT_EOF
46229       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
46230         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
46231         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
46232       else
46233         ld_shlibs=no
46234       fi
46235       ;;
46236
46237     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
46238       case `$LD -v 2>&1` in
46239         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
46240         ld_shlibs=no
46241         cat <<_LT_EOF 1>&2
46242
46243 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
46244 *** reliably create shared libraries on SCO systems.  Therefore, libtool
46245 *** is disabling shared libraries support.  We urge you to upgrade GNU
46246 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
46247 *** your PATH or compiler configuration so that the native linker is
46248 *** used, and then restart.
46249
46250 _LT_EOF
46251         ;;
46252         *)
46253           # For security reasons, it is highly recommended that you always
46254           # use absolute paths for naming shared libraries, and exclude the
46255           # DT_RUNPATH tag from executables and libraries.  But doing so
46256           # requires that you compile everything twice, which is a pain.
46257           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
46258             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
46259             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
46260             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
46261           else
46262             ld_shlibs=no
46263           fi
46264         ;;
46265       esac
46266       ;;
46267
46268     sunos4*)
46269       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
46270       wlarc=
46271       hardcode_direct=yes
46272       hardcode_shlibpath_var=no
46273       ;;
46274
46275     *)
46276       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
46277         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
46278         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
46279       else
46280         ld_shlibs=no
46281       fi
46282       ;;
46283     esac
46284
46285     if test "$ld_shlibs" = no; then
46286       runpath_var=
46287       hardcode_libdir_flag_spec=
46288       export_dynamic_flag_spec=
46289       whole_archive_flag_spec=
46290     fi
46291   else
46292     # PORTME fill in a description of your system's linker (not GNU ld)
46293     case $host_os in
46294     aix3*)
46295       allow_undefined_flag=unsupported
46296       always_export_symbols=yes
46297       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'
46298       # Note: this linker hardcodes the directories in LIBPATH if there
46299       # are no directories specified by -L.
46300       hardcode_minus_L=yes
46301       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
46302         # Neither direct hardcoding nor static linking is supported with a
46303         # broken collect2.
46304         hardcode_direct=unsupported
46305       fi
46306       ;;
46307
46308     aix[4-9]*)
46309       if test "$host_cpu" = ia64; then
46310         # On IA64, the linker does run time linking by default, so we don't
46311         # have to do anything special.
46312         aix_use_runtimelinking=no
46313         exp_sym_flag='-Bexport'
46314         no_entry_flag=""
46315       else
46316         # If we're using GNU nm, then we don't want the "-C" option.
46317         # -C means demangle to AIX nm, but means don't demangle with GNU nm
46318         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
46319           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'
46320         else
46321           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'
46322         fi
46323         aix_use_runtimelinking=no
46324
46325         # Test if we are trying to use run time linking or normal
46326         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
46327         # need to do runtime linking.
46328         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
46329           for ld_flag in $LDFLAGS; do
46330           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
46331             aix_use_runtimelinking=yes
46332             break
46333           fi
46334           done
46335           ;;
46336         esac
46337
46338         exp_sym_flag='-bexport'
46339         no_entry_flag='-bnoentry'
46340       fi
46341
46342       # When large executables or shared objects are built, AIX ld can
46343       # have problems creating the table of contents.  If linking a library
46344       # or program results in "error TOC overflow" add -mminimal-toc to
46345       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
46346       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
46347
46348       archive_cmds=''
46349       hardcode_direct=yes
46350       hardcode_direct_absolute=yes
46351       hardcode_libdir_separator=':'
46352       link_all_deplibs=yes
46353       file_list_spec='${wl}-f,'
46354
46355       if test "$GCC" = yes; then
46356         case $host_os in aix4.[012]|aix4.[012].*)
46357         # We only want to do this on AIX 4.2 and lower, the check
46358         # below for broken collect2 doesn't work under 4.3+
46359           collect2name=`${CC} -print-prog-name=collect2`
46360           if test -f "$collect2name" &&
46361            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
46362           then
46363           # We have reworked collect2
46364           :
46365           else
46366           # We have old collect2
46367           hardcode_direct=unsupported
46368           # It fails to find uninstalled libraries when the uninstalled
46369           # path is not listed in the libpath.  Setting hardcode_minus_L
46370           # to unsupported forces relinking
46371           hardcode_minus_L=yes
46372           hardcode_libdir_flag_spec='-L$libdir'
46373           hardcode_libdir_separator=
46374           fi
46375           ;;
46376         esac
46377         shared_flag='-shared'
46378         if test "$aix_use_runtimelinking" = yes; then
46379           shared_flag="$shared_flag "'${wl}-G'
46380         fi
46381       else
46382         # not using gcc
46383         if test "$host_cpu" = ia64; then
46384         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
46385         # chokes on -Wl,-G. The following line is correct:
46386           shared_flag='-G'
46387         else
46388           if test "$aix_use_runtimelinking" = yes; then
46389             shared_flag='${wl}-G'
46390           else
46391             shared_flag='${wl}-bM:SRE'
46392           fi
46393         fi
46394       fi
46395
46396       # It seems that -bexpall does not export symbols beginning with
46397       # underscore (_), so it is better to generate a list of symbols to export.
46398       always_export_symbols=yes
46399       if test "$aix_use_runtimelinking" = yes; then
46400         # Warning - without using the other runtime loading flags (-brtl),
46401         # -berok will link without error, but may produce a broken library.
46402         allow_undefined_flag='-berok'
46403         # Determine the default libpath from the value encoded in an
46404         # empty executable.
46405         cat >conftest.$ac_ext <<_ACEOF
46406 /* confdefs.h.  */
46407 _ACEOF
46408 cat confdefs.h >>conftest.$ac_ext
46409 cat >>conftest.$ac_ext <<_ACEOF
46410 /* end confdefs.h.  */
46411
46412 int
46413 main ()
46414 {
46415
46416   ;
46417   return 0;
46418 }
46419 _ACEOF
46420 rm -f conftest.$ac_objext conftest$ac_exeext
46421 if { (ac_try="$ac_link"
46422 case "(($ac_try" in
46423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46424   *) ac_try_echo=$ac_try;;
46425 esac
46426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46427 $as_echo "$ac_try_echo") >&5
46428   (eval "$ac_link") 2>conftest.er1
46429   ac_status=$?
46430   grep -v '^ *+' conftest.er1 >conftest.err
46431   rm -f conftest.er1
46432   cat conftest.err >&5
46433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46434   (exit $ac_status); } && {
46435          test -z "$ac_c_werror_flag" ||
46436          test ! -s conftest.err
46437        } && test -s conftest$ac_exeext && {
46438          test "$cross_compiling" = yes ||
46439          $as_test_x conftest$ac_exeext
46440        }; then
46441
46442 lt_aix_libpath_sed='
46443     /Import File Strings/,/^$/ {
46444         /^0/ {
46445             s/^0  *\(.*\)$/\1/
46446             p
46447         }
46448     }'
46449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
46450 # Check for a 64-bit object if we didn't find anything.
46451 if test -z "$aix_libpath"; then
46452   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
46453 fi
46454 else
46455   $as_echo "$as_me: failed program was:" >&5
46456 sed 's/^/| /' conftest.$ac_ext >&5
46457
46458
46459 fi
46460
46461 rm -rf conftest.dSYM
46462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46463       conftest$ac_exeext conftest.$ac_ext
46464 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
46465
46466         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
46467         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
46468       else
46469         if test "$host_cpu" = ia64; then
46470           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
46471           allow_undefined_flag="-z nodefs"
46472           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
46473         else
46474          # Determine the default libpath from the value encoded in an
46475          # empty executable.
46476          cat >conftest.$ac_ext <<_ACEOF
46477 /* confdefs.h.  */
46478 _ACEOF
46479 cat confdefs.h >>conftest.$ac_ext
46480 cat >>conftest.$ac_ext <<_ACEOF
46481 /* end confdefs.h.  */
46482
46483 int
46484 main ()
46485 {
46486
46487   ;
46488   return 0;
46489 }
46490 _ACEOF
46491 rm -f conftest.$ac_objext conftest$ac_exeext
46492 if { (ac_try="$ac_link"
46493 case "(($ac_try" in
46494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46495   *) ac_try_echo=$ac_try;;
46496 esac
46497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46498 $as_echo "$ac_try_echo") >&5
46499   (eval "$ac_link") 2>conftest.er1
46500   ac_status=$?
46501   grep -v '^ *+' conftest.er1 >conftest.err
46502   rm -f conftest.er1
46503   cat conftest.err >&5
46504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46505   (exit $ac_status); } && {
46506          test -z "$ac_c_werror_flag" ||
46507          test ! -s conftest.err
46508        } && test -s conftest$ac_exeext && {
46509          test "$cross_compiling" = yes ||
46510          $as_test_x conftest$ac_exeext
46511        }; then
46512
46513 lt_aix_libpath_sed='
46514     /Import File Strings/,/^$/ {
46515         /^0/ {
46516             s/^0  *\(.*\)$/\1/
46517             p
46518         }
46519     }'
46520 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
46521 # Check for a 64-bit object if we didn't find anything.
46522 if test -z "$aix_libpath"; then
46523   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
46524 fi
46525 else
46526   $as_echo "$as_me: failed program was:" >&5
46527 sed 's/^/| /' conftest.$ac_ext >&5
46528
46529
46530 fi
46531
46532 rm -rf conftest.dSYM
46533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46534       conftest$ac_exeext conftest.$ac_ext
46535 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
46536
46537          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
46538           # Warning - without using the other run time loading flags,
46539           # -berok will link without error, but may produce a broken library.
46540           no_undefined_flag=' ${wl}-bernotok'
46541           allow_undefined_flag=' ${wl}-berok'
46542           # Exported symbols can be pulled into shared objects from archives
46543           whole_archive_flag_spec='$convenience'
46544           archive_cmds_need_lc=yes
46545           # This is similar to how AIX traditionally builds its shared libraries.
46546           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
46547         fi
46548       fi
46549       ;;
46550
46551     amigaos*)
46552       case $host_cpu in
46553       powerpc)
46554             # see comment about AmigaOS4 .so support
46555             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
46556             archive_expsym_cmds=''
46557         ;;
46558       m68k)
46559             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)'
46560             hardcode_libdir_flag_spec='-L$libdir'
46561             hardcode_minus_L=yes
46562         ;;
46563       esac
46564       ;;
46565
46566     bsdi[45]*)
46567       export_dynamic_flag_spec=-rdynamic
46568       ;;
46569
46570     cygwin* | mingw* | pw32*)
46571       # When not using gcc, we currently assume that we are using
46572       # Microsoft Visual C++.
46573       # hardcode_libdir_flag_spec is actually meaningless, as there is
46574       # no search path for DLLs.
46575       hardcode_libdir_flag_spec=' '
46576       allow_undefined_flag=unsupported
46577       # Tell ltmain to make .lib files, not .a files.
46578       libext=lib
46579       # Tell ltmain to make .dll files, not .so files.
46580       shrext_cmds=".dll"
46581       # FIXME: Setting linknames here is a bad hack.
46582       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
46583       # The linker will automatically build a .lib file if we build a DLL.
46584       old_archive_from_new_cmds='true'
46585       # FIXME: Should let the user specify the lib program.
46586       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
46587       fix_srcfile_path='`cygpath -w "$srcfile"`'
46588       enable_shared_with_static_runtimes=yes
46589       ;;
46590
46591     darwin* | rhapsody*)
46592
46593
46594   archive_cmds_need_lc=no
46595   hardcode_direct=no
46596   hardcode_automatic=yes
46597   hardcode_shlibpath_var=unsupported
46598   whole_archive_flag_spec=''
46599   link_all_deplibs=yes
46600   allow_undefined_flag="$_lt_dar_allow_undefined"
46601   if test "$GCC" = "yes"; then
46602     output_verbose_link_cmd=echo
46603     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
46604     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
46605     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
46606     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
46607
46608   else
46609   ld_shlibs=no
46610   fi
46611
46612       ;;
46613
46614     dgux*)
46615       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
46616       hardcode_libdir_flag_spec='-L$libdir'
46617       hardcode_shlibpath_var=no
46618       ;;
46619
46620     freebsd1*)
46621       ld_shlibs=no
46622       ;;
46623
46624     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
46625     # support.  Future versions do this automatically, but an explicit c++rt0.o
46626     # does not break anything, and helps significantly (at the cost of a little
46627     # extra space).
46628     freebsd2.2*)
46629       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
46630       hardcode_libdir_flag_spec='-R$libdir'
46631       hardcode_direct=yes
46632       hardcode_shlibpath_var=no
46633       ;;
46634
46635     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
46636     freebsd2*)
46637       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
46638       hardcode_direct=yes
46639       hardcode_minus_L=yes
46640       hardcode_shlibpath_var=no
46641       ;;
46642
46643     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
46644     freebsd* | dragonfly*)
46645       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
46646       hardcode_libdir_flag_spec='-R$libdir'
46647       hardcode_direct=yes
46648       hardcode_shlibpath_var=no
46649       ;;
46650
46651     hpux9*)
46652       if test "$GCC" = yes; then
46653         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'
46654       else
46655         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'
46656       fi
46657       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
46658       hardcode_libdir_separator=:
46659       hardcode_direct=yes
46660
46661       # hardcode_minus_L: Not really in the search PATH,
46662       # but as the default location of the library.
46663       hardcode_minus_L=yes
46664       export_dynamic_flag_spec='${wl}-E'
46665       ;;
46666
46667     hpux10*)
46668       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
46669         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
46670       else
46671         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
46672       fi
46673       if test "$with_gnu_ld" = no; then
46674         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
46675         hardcode_libdir_flag_spec_ld='+b $libdir'
46676         hardcode_libdir_separator=:
46677         hardcode_direct=yes
46678         hardcode_direct_absolute=yes
46679         export_dynamic_flag_spec='${wl}-E'
46680         # hardcode_minus_L: Not really in the search PATH,
46681         # but as the default location of the library.
46682         hardcode_minus_L=yes
46683       fi
46684       ;;
46685
46686     hpux11*)
46687       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
46688         case $host_cpu in
46689         hppa*64*)
46690           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
46691           ;;
46692         ia64*)
46693           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
46694           ;;
46695         *)
46696           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
46697           ;;
46698         esac
46699       else
46700         case $host_cpu in
46701         hppa*64*)
46702           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
46703           ;;
46704         ia64*)
46705           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
46706           ;;
46707         *)
46708           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
46709           ;;
46710         esac
46711       fi
46712       if test "$with_gnu_ld" = no; then
46713         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
46714         hardcode_libdir_separator=:
46715
46716         case $host_cpu in
46717         hppa*64*|ia64*)
46718           hardcode_direct=no
46719           hardcode_shlibpath_var=no
46720           ;;
46721         *)
46722           hardcode_direct=yes
46723           hardcode_direct_absolute=yes
46724           export_dynamic_flag_spec='${wl}-E'
46725
46726           # hardcode_minus_L: Not really in the search PATH,
46727           # but as the default location of the library.
46728           hardcode_minus_L=yes
46729           ;;
46730         esac
46731       fi
46732       ;;
46733
46734     irix5* | irix6* | nonstopux*)
46735       if test "$GCC" = yes; then
46736         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
46737         # Try to use the -exported_symbol ld option, if it does not
46738         # work, assume that -exports_file does not work either and
46739         # implicitly export all symbols.
46740         save_LDFLAGS="$LDFLAGS"
46741         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
46742         cat >conftest.$ac_ext <<_ACEOF
46743 int foo(void) {}
46744 _ACEOF
46745 rm -f conftest.$ac_objext conftest$ac_exeext
46746 if { (ac_try="$ac_link"
46747 case "(($ac_try" in
46748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46749   *) ac_try_echo=$ac_try;;
46750 esac
46751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46752 $as_echo "$ac_try_echo") >&5
46753   (eval "$ac_link") 2>conftest.er1
46754   ac_status=$?
46755   grep -v '^ *+' conftest.er1 >conftest.err
46756   rm -f conftest.er1
46757   cat conftest.err >&5
46758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46759   (exit $ac_status); } && {
46760          test -z "$ac_c_werror_flag" ||
46761          test ! -s conftest.err
46762        } && test -s conftest$ac_exeext && {
46763          test "$cross_compiling" = yes ||
46764          $as_test_x conftest$ac_exeext
46765        }; then
46766   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
46767
46768 else
46769   $as_echo "$as_me: failed program was:" >&5
46770 sed 's/^/| /' conftest.$ac_ext >&5
46771
46772
46773 fi
46774
46775 rm -rf conftest.dSYM
46776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46777       conftest$ac_exeext conftest.$ac_ext
46778         LDFLAGS="$save_LDFLAGS"
46779       else
46780         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
46781         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
46782       fi
46783       archive_cmds_need_lc='no'
46784       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
46785       hardcode_libdir_separator=:
46786       inherit_rpath=yes
46787       link_all_deplibs=yes
46788       ;;
46789
46790     netbsd*)
46791       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
46792         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
46793       else
46794         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
46795       fi
46796       hardcode_libdir_flag_spec='-R$libdir'
46797       hardcode_direct=yes
46798       hardcode_shlibpath_var=no
46799       ;;
46800
46801     newsos6)
46802       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
46803       hardcode_direct=yes
46804       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
46805       hardcode_libdir_separator=:
46806       hardcode_shlibpath_var=no
46807       ;;
46808
46809     *nto* | *qnx*)
46810       ;;
46811
46812     openbsd*)
46813       if test -f /usr/libexec/ld.so; then
46814         hardcode_direct=yes
46815         hardcode_shlibpath_var=no
46816         hardcode_direct_absolute=yes
46817         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
46818           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
46819           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
46820           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
46821           export_dynamic_flag_spec='${wl}-E'
46822         else
46823           case $host_os in
46824            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
46825              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
46826              hardcode_libdir_flag_spec='-R$libdir'
46827              ;;
46828            *)
46829              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
46830              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
46831              ;;
46832           esac
46833         fi
46834       else
46835         ld_shlibs=no
46836       fi
46837       ;;
46838
46839     os2*)
46840       hardcode_libdir_flag_spec='-L$libdir'
46841       hardcode_minus_L=yes
46842       allow_undefined_flag=unsupported
46843       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'
46844       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
46845       ;;
46846
46847     osf3*)
46848       if test "$GCC" = yes; then
46849         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
46850         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
46851       else
46852         allow_undefined_flag=' -expect_unresolved \*'
46853         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
46854       fi
46855       archive_cmds_need_lc='no'
46856       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
46857       hardcode_libdir_separator=:
46858       ;;
46859
46860     osf4* | osf5*)      # as osf3* with the addition of -msym flag
46861       if test "$GCC" = yes; then
46862         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
46863         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
46864         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
46865       else
46866         allow_undefined_flag=' -expect_unresolved \*'
46867         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
46868         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
46869         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
46870
46871         # Both c and cxx compiler support -rpath directly
46872         hardcode_libdir_flag_spec='-rpath $libdir'
46873       fi
46874       archive_cmds_need_lc='no'
46875       hardcode_libdir_separator=:
46876       ;;
46877
46878     solaris*)
46879       no_undefined_flag=' -z defs'
46880       if test "$GCC" = yes; then
46881         wlarc='${wl}'
46882         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
46883         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
46884           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
46885       else
46886         case `$CC -V 2>&1` in
46887         *"Compilers 5.0"*)
46888           wlarc=''
46889           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
46890           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
46891           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
46892           ;;
46893         *)
46894           wlarc='${wl}'
46895           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
46896           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
46897           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
46898           ;;
46899         esac
46900       fi
46901       hardcode_libdir_flag_spec='-R$libdir'
46902       hardcode_shlibpath_var=no
46903       case $host_os in
46904       solaris2.[0-5] | solaris2.[0-5].*) ;;
46905       *)
46906         # The compiler driver will combine and reorder linker options,
46907         # but understands `-z linker_flag'.  GCC discards it without `$wl',
46908         # but is careful enough not to reorder.
46909         # Supported since Solaris 2.6 (maybe 2.5.1?)
46910         if test "$GCC" = yes; then
46911           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
46912         else
46913           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
46914         fi
46915         ;;
46916       esac
46917       link_all_deplibs=yes
46918       ;;
46919
46920     sunos4*)
46921       if test "x$host_vendor" = xsequent; then
46922         # Use $CC to link under sequent, because it throws in some extra .o
46923         # files that make .init and .fini sections work.
46924         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
46925       else
46926         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
46927       fi
46928       hardcode_libdir_flag_spec='-L$libdir'
46929       hardcode_direct=yes
46930       hardcode_minus_L=yes
46931       hardcode_shlibpath_var=no
46932       ;;
46933
46934     sysv4)
46935       case $host_vendor in
46936         sni)
46937           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
46938           hardcode_direct=yes # is this really true???
46939         ;;
46940         siemens)
46941           ## LD is ld it makes a PLAMLIB
46942           ## CC just makes a GrossModule.
46943           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
46944           reload_cmds='$CC -r -o $output$reload_objs'
46945           hardcode_direct=no
46946         ;;
46947         motorola)
46948           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
46949           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
46950         ;;
46951       esac
46952       runpath_var='LD_RUN_PATH'
46953       hardcode_shlibpath_var=no
46954       ;;
46955
46956     sysv4.3*)
46957       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
46958       hardcode_shlibpath_var=no
46959       export_dynamic_flag_spec='-Bexport'
46960       ;;
46961
46962     sysv4*MP*)
46963       if test -d /usr/nec; then
46964         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
46965         hardcode_shlibpath_var=no
46966         runpath_var=LD_RUN_PATH
46967         hardcode_runpath_var=yes
46968         ld_shlibs=yes
46969       fi
46970       ;;
46971
46972     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
46973       no_undefined_flag='${wl}-z,text'
46974       archive_cmds_need_lc=no
46975       hardcode_shlibpath_var=no
46976       runpath_var='LD_RUN_PATH'
46977
46978       if test "$GCC" = yes; then
46979         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
46980         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
46981       else
46982         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
46983         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
46984       fi
46985       ;;
46986
46987     sysv5* | sco3.2v5* | sco5v6*)
46988       # Note: We can NOT use -z defs as we might desire, because we do not
46989       # link with -lc, and that would cause any symbols used from libc to
46990       # always be unresolved, which means just about no library would
46991       # ever link correctly.  If we're not using GNU ld we use -z text
46992       # though, which does catch some bad symbols but isn't as heavy-handed
46993       # as -z defs.
46994       no_undefined_flag='${wl}-z,text'
46995       allow_undefined_flag='${wl}-z,nodefs'
46996       archive_cmds_need_lc=no
46997       hardcode_shlibpath_var=no
46998       hardcode_libdir_flag_spec='${wl}-R,$libdir'
46999       hardcode_libdir_separator=':'
47000       link_all_deplibs=yes
47001       export_dynamic_flag_spec='${wl}-Bexport'
47002       runpath_var='LD_RUN_PATH'
47003
47004       if test "$GCC" = yes; then
47005         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47006         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47007       else
47008         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47009         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47010       fi
47011       ;;
47012
47013     uts4*)
47014       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
47015       hardcode_libdir_flag_spec='-L$libdir'
47016       hardcode_shlibpath_var=no
47017       ;;
47018
47019     *)
47020       ld_shlibs=no
47021       ;;
47022     esac
47023
47024     if test x$host_vendor = xsni; then
47025       case $host in
47026       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
47027         export_dynamic_flag_spec='${wl}-Blargedynsym'
47028         ;;
47029       esac
47030     fi
47031   fi
47032
47033 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
47034 $as_echo "$ld_shlibs" >&6; }
47035 test "$ld_shlibs" = no && can_build_shared=no
47036
47037 with_gnu_ld=$with_gnu_ld
47038
47039
47040
47041
47042
47043
47044
47045
47046
47047
47048
47049
47050
47051
47052
47053 #
47054 # Do we need to explicitly link libc?
47055 #
47056 case "x$archive_cmds_need_lc" in
47057 x|xyes)
47058   # Assume -lc should be added
47059   archive_cmds_need_lc=yes
47060
47061   if test "$enable_shared" = yes && test "$GCC" = yes; then
47062     case $archive_cmds in
47063     *'~'*)
47064       # FIXME: we may have to deal with multi-command sequences.
47065       ;;
47066     '$CC '*)
47067       # Test whether the compiler implicitly links with -lc since on some
47068       # systems, -lgcc has to come before -lc. If gcc already passes -lc
47069       # to ld, don't add -lc before -lgcc.
47070       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
47071 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
47072       $RM conftest*
47073       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47074
47075       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47076   (eval $ac_compile) 2>&5
47077   ac_status=$?
47078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47079   (exit $ac_status); } 2>conftest.err; then
47080         soname=conftest
47081         lib=conftest
47082         libobjs=conftest.$ac_objext
47083         deplibs=
47084         wl=$lt_prog_compiler_wl
47085         pic_flag=$lt_prog_compiler_pic
47086         compiler_flags=-v
47087         linker_flags=-v
47088         verstring=
47089         output_objdir=.
47090         libname=conftest
47091         lt_save_allow_undefined_flag=$allow_undefined_flag
47092         allow_undefined_flag=
47093         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
47094   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
47095   ac_status=$?
47096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47097   (exit $ac_status); }
47098         then
47099           archive_cmds_need_lc=no
47100         else
47101           archive_cmds_need_lc=yes
47102         fi
47103         allow_undefined_flag=$lt_save_allow_undefined_flag
47104       else
47105         cat conftest.err 1>&5
47106       fi
47107       $RM conftest*
47108       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
47109 $as_echo "$archive_cmds_need_lc" >&6; }
47110       ;;
47111     esac
47112   fi
47113   ;;
47114 esac
47115
47116
47117
47118
47119
47120
47121
47122
47123
47124
47125
47126
47127
47128
47129
47130
47131
47132
47133
47134
47135
47136
47137
47138
47139
47140
47141
47142
47143
47144
47145
47146
47147
47148
47149
47150
47151
47152
47153
47154
47155
47156
47157
47158
47159
47160
47161
47162
47163
47164
47165
47166
47167
47168
47169
47170
47171
47172
47173
47174
47175
47176
47177
47178
47179
47180
47181
47182
47183
47184
47185
47186
47187
47188
47189
47190
47191
47192
47193
47194
47195
47196
47197
47198
47199
47200
47201
47202
47203
47204
47205
47206
47207
47208
47209
47210
47211
47212
47213
47214
47215
47216
47217
47218
47219
47220
47221
47222
47223
47224
47225
47226
47227
47228
47229
47230
47231
47232
47233
47234
47235
47236
47237
47238
47239
47240
47241
47242
47243
47244
47245
47246
47247
47248
47249
47250
47251
47252
47253
47254
47255
47256
47257
47258
47259
47260
47261
47262
47263
47264
47265
47266
47267
47268
47269
47270
47271
47272   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
47273 $as_echo_n "checking dynamic linker characteristics... " >&6; }
47274
47275 if test "$GCC" = yes; then
47276   case $host_os in
47277     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
47278     *) lt_awk_arg="/^libraries:/" ;;
47279   esac
47280   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
47281   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
47282     # if the path contains ";" then we assume it to be the separator
47283     # otherwise default to the standard path separator (i.e. ":") - it is
47284     # assumed that no part of a normal pathname contains ";" but that should
47285     # okay in the real world where ";" in dirpaths is itself problematic.
47286     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
47287   else
47288     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
47289   fi
47290   # Ok, now we have the path, separated by spaces, we can step through it
47291   # and add multilib dir if necessary.
47292   lt_tmp_lt_search_path_spec=
47293   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
47294   for lt_sys_path in $lt_search_path_spec; do
47295     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
47296       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
47297     else
47298       test -d "$lt_sys_path" && \
47299         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
47300     fi
47301   done
47302   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
47303 BEGIN {RS=" "; FS="/|\n";} {
47304   lt_foo="";
47305   lt_count=0;
47306   for (lt_i = NF; lt_i > 0; lt_i--) {
47307     if ($lt_i != "" && $lt_i != ".") {
47308       if ($lt_i == "..") {
47309         lt_count++;
47310       } else {
47311         if (lt_count == 0) {
47312           lt_foo="/" $lt_i lt_foo;
47313         } else {
47314           lt_count--;
47315         }
47316       }
47317     }
47318   }
47319   if (lt_foo != "") { lt_freq[lt_foo]++; }
47320   if (lt_freq[lt_foo] == 1) { print lt_foo; }
47321 }'`
47322   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
47323 else
47324   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
47325 fi
47326 library_names_spec=
47327 libname_spec='lib$name'
47328 soname_spec=
47329 shrext_cmds=".so"
47330 postinstall_cmds=
47331 postuninstall_cmds=
47332 finish_cmds=
47333 finish_eval=
47334 shlibpath_var=
47335 shlibpath_overrides_runpath=unknown
47336 version_type=none
47337 dynamic_linker="$host_os ld.so"
47338 sys_lib_dlsearch_path_spec="/lib /usr/lib"
47339 need_lib_prefix=unknown
47340 hardcode_into_libs=no
47341
47342 # when you set need_version to no, make sure it does not cause -set_version
47343 # flags to be left without arguments
47344 need_version=unknown
47345
47346 case $host_os in
47347 aix3*)
47348   version_type=linux
47349   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
47350   shlibpath_var=LIBPATH
47351
47352   # AIX 3 has no versioning support, so we append a major version to the name.
47353   soname_spec='${libname}${release}${shared_ext}$major'
47354   ;;
47355
47356 aix[4-9]*)
47357   version_type=linux
47358   need_lib_prefix=no
47359   need_version=no
47360   hardcode_into_libs=yes
47361   if test "$host_cpu" = ia64; then
47362     # AIX 5 supports IA64
47363     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
47364     shlibpath_var=LD_LIBRARY_PATH
47365   else
47366     # With GCC up to 2.95.x, collect2 would create an import file
47367     # for dependence libraries.  The import file would start with
47368     # the line `#! .'.  This would cause the generated library to
47369     # depend on `.', always an invalid library.  This was fixed in
47370     # development snapshots of GCC prior to 3.0.
47371     case $host_os in
47372       aix4 | aix4.[01] | aix4.[01].*)
47373       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
47374            echo ' yes '
47375            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
47376         :
47377       else
47378         can_build_shared=no
47379       fi
47380       ;;
47381     esac
47382     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
47383     # soname into executable. Probably we can add versioning support to
47384     # collect2, so additional links can be useful in future.
47385     if test "$aix_use_runtimelinking" = yes; then
47386       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
47387       # instead of lib<name>.a to let people know that these are not
47388       # typical AIX shared libraries.
47389       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
47390     else
47391       # We preserve .a as extension for shared libraries through AIX4.2
47392       # and later when we are not doing run time linking.
47393       library_names_spec='${libname}${release}.a $libname.a'
47394       soname_spec='${libname}${release}${shared_ext}$major'
47395     fi
47396     shlibpath_var=LIBPATH
47397   fi
47398   ;;
47399
47400 amigaos*)
47401   case $host_cpu in
47402   powerpc)
47403     # Since July 2007 AmigaOS4 officially supports .so libraries.
47404     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
47405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
47406     ;;
47407   m68k)
47408     library_names_spec='$libname.ixlibrary $libname.a'
47409     # Create ${libname}_ixlibrary.a entries in /sys/libs.
47410     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'
47411     ;;
47412   esac
47413   ;;
47414
47415 beos*)
47416   library_names_spec='${libname}${shared_ext}'
47417   dynamic_linker="$host_os ld.so"
47418   shlibpath_var=LIBRARY_PATH
47419   ;;
47420
47421 bsdi[45]*)
47422   version_type=linux
47423   need_version=no
47424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
47425   soname_spec='${libname}${release}${shared_ext}$major'
47426   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
47427   shlibpath_var=LD_LIBRARY_PATH
47428   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
47429   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
47430   # the default ld.so.conf also contains /usr/contrib/lib and
47431   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
47432   # libtool to hard-code these into programs
47433   ;;
47434
47435 cygwin* | mingw* | pw32*)
47436   version_type=windows
47437   shrext_cmds=".dll"
47438   need_version=no
47439   need_lib_prefix=no
47440
47441   case $GCC,$host_os in
47442   yes,cygwin* | yes,mingw* | yes,pw32*)
47443     library_names_spec='$libname.dll.a'
47444     # DLL is installed to $(libdir)/../bin by postinstall_cmds
47445     postinstall_cmds='base_file=`basename \${file}`~
47446       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
47447       dldir=$destdir/`dirname \$dlpath`~
47448       test -d \$dldir || mkdir -p \$dldir~
47449       $install_prog $dir/$dlname \$dldir/$dlname~
47450       chmod a+x \$dldir/$dlname~
47451       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
47452         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
47453       fi'
47454     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
47455       dlpath=$dir/\$dldll~
47456        $RM \$dlpath'
47457     shlibpath_overrides_runpath=yes
47458
47459     case $host_os in
47460     cygwin*)
47461       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
47462       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
47463       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
47464       ;;
47465     mingw*)
47466       # MinGW DLLs use traditional 'lib' prefix
47467       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
47468       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
47469       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
47470         # It is most probably a Windows format PATH printed by
47471         # mingw gcc, but we are running on Cygwin. Gcc prints its search
47472         # path with ; separators, and with drive letters. We can handle the
47473         # drive letters (cygwin fileutils understands them), so leave them,
47474         # especially as we might pass files found there to a mingw objdump,
47475         # which wouldn't understand a cygwinified path. Ahh.
47476         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
47477       else
47478         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
47479       fi
47480       ;;
47481     pw32*)
47482       # pw32 DLLs use 'pw' prefix rather than 'lib'
47483       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
47484       ;;
47485     esac
47486     ;;
47487
47488   *)
47489     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
47490     ;;
47491   esac
47492   dynamic_linker='Win32 ld.exe'
47493   # FIXME: first we should search . and the directory the executable is in
47494   shlibpath_var=PATH
47495   ;;
47496
47497 darwin* | rhapsody*)
47498   dynamic_linker="$host_os dyld"
47499   version_type=darwin
47500   need_lib_prefix=no
47501   need_version=no
47502   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
47503   soname_spec='${libname}${release}${major}$shared_ext'
47504   shlibpath_overrides_runpath=yes
47505   shlibpath_var=DYLD_LIBRARY_PATH
47506   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
47507
47508   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
47509   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
47510   ;;
47511
47512 dgux*)
47513   version_type=linux
47514   need_lib_prefix=no
47515   need_version=no
47516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
47517   soname_spec='${libname}${release}${shared_ext}$major'
47518   shlibpath_var=LD_LIBRARY_PATH
47519   ;;
47520
47521 freebsd1*)
47522   dynamic_linker=no
47523   ;;
47524
47525 freebsd* | dragonfly*)
47526   # DragonFly does not have aout.  When/if they implement a new
47527   # versioning mechanism, adjust this.
47528   if test -x /usr/bin/objformat; then
47529     objformat=`/usr/bin/objformat`
47530   else
47531     case $host_os in
47532     freebsd[123]*) objformat=aout ;;
47533     *) objformat=elf ;;
47534     esac
47535   fi
47536   # Handle Gentoo/FreeBSD as it was Linux
47537   case $host_vendor in
47538     gentoo)
47539       version_type=linux ;;
47540     *)
47541       version_type=freebsd-$objformat ;;
47542   esac
47543
47544   case $version_type in
47545     freebsd-elf*)
47546       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
47547       need_version=no
47548       need_lib_prefix=no
47549       ;;
47550     freebsd-*)
47551       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
47552       need_version=yes
47553       ;;
47554     linux)
47555       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
47556       soname_spec='${libname}${release}${shared_ext}$major'
47557       need_lib_prefix=no
47558       need_version=no
47559       ;;
47560   esac
47561   shlibpath_var=LD_LIBRARY_PATH
47562   case $host_os in
47563   freebsd2*)
47564     shlibpath_overrides_runpath=yes
47565     ;;
47566   freebsd3.[01]* | freebsdelf3.[01]*)
47567     shlibpath_overrides_runpath=yes
47568     hardcode_into_libs=yes
47569     ;;
47570   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
47571   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
47572     shlibpath_overrides_runpath=no
47573     hardcode_into_libs=yes
47574     ;;
47575   *) # from 4.6 on, and DragonFly
47576     shlibpath_overrides_runpath=yes
47577     hardcode_into_libs=yes
47578     ;;
47579   esac
47580   ;;
47581
47582 gnu*)
47583   version_type=linux
47584   need_lib_prefix=no
47585   need_version=no
47586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
47587   soname_spec='${libname}${release}${shared_ext}$major'
47588   shlibpath_var=LD_LIBRARY_PATH
47589   hardcode_into_libs=yes
47590   ;;
47591
47592 hpux9* | hpux10* | hpux11*)
47593   # Give a soname corresponding to the major version so that dld.sl refuses to
47594   # link against other versions.
47595   version_type=sunos
47596   need_lib_prefix=no
47597   need_version=no
47598   case $host_cpu in
47599   ia64*)
47600     shrext_cmds='.so'
47601     hardcode_into_libs=yes
47602     dynamic_linker="$host_os dld.so"
47603     shlibpath_var=LD_LIBRARY_PATH
47604     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
47605     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
47606     soname_spec='${libname}${release}${shared_ext}$major'
47607     if test "X$HPUX_IA64_MODE" = X32; then
47608       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
47609     else
47610       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
47611     fi
47612     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
47613     ;;
47614   hppa*64*)
47615     shrext_cmds='.sl'
47616     hardcode_into_libs=yes
47617     dynamic_linker="$host_os dld.sl"
47618     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
47619     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
47620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
47621     soname_spec='${libname}${release}${shared_ext}$major'
47622     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
47623     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
47624     ;;
47625   *)
47626     shrext_cmds='.sl'
47627     dynamic_linker="$host_os dld.sl"
47628     shlibpath_var=SHLIB_PATH
47629     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
47630     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
47631     soname_spec='${libname}${release}${shared_ext}$major'
47632     ;;
47633   esac
47634   # HP-UX runs *really* slowly unless shared libraries are mode 555.
47635   postinstall_cmds='chmod 555 $lib'
47636   ;;
47637
47638 interix[3-9]*)
47639   version_type=linux
47640   need_lib_prefix=no
47641   need_version=no
47642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
47643   soname_spec='${libname}${release}${shared_ext}$major'
47644   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
47645   shlibpath_var=LD_LIBRARY_PATH
47646   shlibpath_overrides_runpath=no
47647   hardcode_into_libs=yes
47648   ;;
47649
47650 irix5* | irix6* | nonstopux*)
47651   case $host_os in
47652     nonstopux*) version_type=nonstopux ;;
47653     *)
47654         if test "$lt_cv_prog_gnu_ld" = yes; then
47655                 version_type=linux
47656         else
47657                 version_type=irix
47658         fi ;;
47659   esac
47660   need_lib_prefix=no
47661   need_version=no
47662   soname_spec='${libname}${release}${shared_ext}$major'
47663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
47664   case $host_os in
47665   irix5* | nonstopux*)
47666     libsuff= shlibsuff=
47667     ;;
47668   *)
47669     case $LD in # libtool.m4 will add one of these switches to LD
47670     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
47671       libsuff= shlibsuff= libmagic=32-bit;;
47672     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
47673       libsuff=32 shlibsuff=N32 libmagic=N32;;
47674     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
47675       libsuff=64 shlibsuff=64 libmagic=64-bit;;
47676     *) libsuff= shlibsuff= libmagic=never-match;;
47677     esac
47678     ;;
47679   esac
47680   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
47681   shlibpath_overrides_runpath=no
47682   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
47683   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
47684   hardcode_into_libs=yes
47685   ;;
47686
47687 # No shared lib support for Linux oldld, aout, or coff.
47688 linux*oldld* | linux*aout* | linux*coff*)
47689   dynamic_linker=no
47690   ;;
47691
47692 # This must be Linux ELF.
47693 linux* | k*bsd*-gnu)
47694   version_type=linux
47695   need_lib_prefix=no
47696   need_version=no
47697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
47698   soname_spec='${libname}${release}${shared_ext}$major'
47699   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
47700   shlibpath_var=LD_LIBRARY_PATH
47701   shlibpath_overrides_runpath=no
47702   # Some binutils ld are patched to set DT_RUNPATH
47703   save_LDFLAGS=$LDFLAGS
47704   save_libdir=$libdir
47705   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
47706        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
47707   cat >conftest.$ac_ext <<_ACEOF
47708 /* confdefs.h.  */
47709 _ACEOF
47710 cat confdefs.h >>conftest.$ac_ext
47711 cat >>conftest.$ac_ext <<_ACEOF
47712 /* end confdefs.h.  */
47713
47714 int
47715 main ()
47716 {
47717
47718   ;
47719   return 0;
47720 }
47721 _ACEOF
47722 rm -f conftest.$ac_objext conftest$ac_exeext
47723 if { (ac_try="$ac_link"
47724 case "(($ac_try" in
47725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47726   *) ac_try_echo=$ac_try;;
47727 esac
47728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47729 $as_echo "$ac_try_echo") >&5
47730   (eval "$ac_link") 2>conftest.er1
47731   ac_status=$?
47732   grep -v '^ *+' conftest.er1 >conftest.err
47733   rm -f conftest.er1
47734   cat conftest.err >&5
47735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47736   (exit $ac_status); } && {
47737          test -z "$ac_c_werror_flag" ||
47738          test ! -s conftest.err
47739        } && test -s conftest$ac_exeext && {
47740          test "$cross_compiling" = yes ||
47741          $as_test_x conftest$ac_exeext
47742        }; then
47743   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
47744   shlibpath_overrides_runpath=yes
47745 fi
47746
47747 else
47748   $as_echo "$as_me: failed program was:" >&5
47749 sed 's/^/| /' conftest.$ac_ext >&5
47750
47751
47752 fi
47753
47754 rm -rf conftest.dSYM
47755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47756       conftest$ac_exeext conftest.$ac_ext
47757   LDFLAGS=$save_LDFLAGS
47758   libdir=$save_libdir
47759
47760   # This implies no fast_install, which is unacceptable.
47761   # Some rework will be needed to allow for fast_install
47762   # before this can be enabled.
47763   hardcode_into_libs=yes
47764
47765   # Append ld.so.conf contents to the search path
47766   if test -f /etc/ld.so.conf; then
47767     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
47768     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
47769   fi
47770
47771   # We used to test for /lib/ld.so.1 and disable shared libraries on
47772   # powerpc, because MkLinux only supported shared libraries with the
47773   # GNU dynamic linker.  Since this was broken with cross compilers,
47774   # most powerpc-linux boxes support dynamic linking these days and
47775   # people can always --disable-shared, the test was removed, and we
47776   # assume the GNU/Linux dynamic linker is in use.
47777   dynamic_linker='GNU/Linux ld.so'
47778   ;;
47779
47780 netbsd*)
47781   version_type=sunos
47782   need_lib_prefix=no
47783   need_version=no
47784   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
47785     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
47786     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
47787     dynamic_linker='NetBSD (a.out) ld.so'
47788   else
47789     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
47790     soname_spec='${libname}${release}${shared_ext}$major'
47791     dynamic_linker='NetBSD ld.elf_so'
47792   fi
47793   shlibpath_var=LD_LIBRARY_PATH
47794   shlibpath_overrides_runpath=yes
47795   hardcode_into_libs=yes
47796   ;;
47797
47798 newsos6)
47799   version_type=linux
47800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
47801   shlibpath_var=LD_LIBRARY_PATH
47802   shlibpath_overrides_runpath=yes
47803   ;;
47804
47805 *nto* | *qnx*)
47806   version_type=qnx
47807   need_lib_prefix=no
47808   need_version=no
47809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
47810   soname_spec='${libname}${release}${shared_ext}$major'
47811   shlibpath_var=LD_LIBRARY_PATH
47812   shlibpath_overrides_runpath=no
47813   hardcode_into_libs=yes
47814   dynamic_linker='ldqnx.so'
47815   ;;
47816
47817 openbsd*)
47818   version_type=sunos
47819   sys_lib_dlsearch_path_spec="/usr/lib"
47820   need_lib_prefix=no
47821   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
47822   case $host_os in
47823     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
47824     *)                          need_version=no  ;;
47825   esac
47826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
47827   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
47828   shlibpath_var=LD_LIBRARY_PATH
47829   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
47830     case $host_os in
47831       openbsd2.[89] | openbsd2.[89].*)
47832         shlibpath_overrides_runpath=no
47833         ;;
47834       *)
47835         shlibpath_overrides_runpath=yes
47836         ;;
47837       esac
47838   else
47839     shlibpath_overrides_runpath=yes
47840   fi
47841   ;;
47842
47843 os2*)
47844   libname_spec='$name'
47845   shrext_cmds=".dll"
47846   need_lib_prefix=no
47847   library_names_spec='$libname${shared_ext} $libname.a'
47848   dynamic_linker='OS/2 ld.exe'
47849   shlibpath_var=LIBPATH
47850   ;;
47851
47852 osf3* | osf4* | osf5*)
47853   version_type=osf
47854   need_lib_prefix=no
47855   need_version=no
47856   soname_spec='${libname}${release}${shared_ext}$major'
47857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
47858   shlibpath_var=LD_LIBRARY_PATH
47859   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
47860   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
47861   ;;
47862
47863 rdos*)
47864   dynamic_linker=no
47865   ;;
47866
47867 solaris*)
47868   version_type=linux
47869   need_lib_prefix=no
47870   need_version=no
47871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
47872   soname_spec='${libname}${release}${shared_ext}$major'
47873   shlibpath_var=LD_LIBRARY_PATH
47874   shlibpath_overrides_runpath=yes
47875   hardcode_into_libs=yes
47876   # ldd complains unless libraries are executable
47877   postinstall_cmds='chmod +x $lib'
47878   ;;
47879
47880 sunos4*)
47881   version_type=sunos
47882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
47883   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
47884   shlibpath_var=LD_LIBRARY_PATH
47885   shlibpath_overrides_runpath=yes
47886   if test "$with_gnu_ld" = yes; then
47887     need_lib_prefix=no
47888   fi
47889   need_version=yes
47890   ;;
47891
47892 sysv4 | sysv4.3*)
47893   version_type=linux
47894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
47895   soname_spec='${libname}${release}${shared_ext}$major'
47896   shlibpath_var=LD_LIBRARY_PATH
47897   case $host_vendor in
47898     sni)
47899       shlibpath_overrides_runpath=no
47900       need_lib_prefix=no
47901       runpath_var=LD_RUN_PATH
47902       ;;
47903     siemens)
47904       need_lib_prefix=no
47905       ;;
47906     motorola)
47907       need_lib_prefix=no
47908       need_version=no
47909       shlibpath_overrides_runpath=no
47910       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
47911       ;;
47912   esac
47913   ;;
47914
47915 sysv4*MP*)
47916   if test -d /usr/nec ;then
47917     version_type=linux
47918     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
47919     soname_spec='$libname${shared_ext}.$major'
47920     shlibpath_var=LD_LIBRARY_PATH
47921   fi
47922   ;;
47923
47924 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
47925   version_type=freebsd-elf
47926   need_lib_prefix=no
47927   need_version=no
47928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
47929   soname_spec='${libname}${release}${shared_ext}$major'
47930   shlibpath_var=LD_LIBRARY_PATH
47931   shlibpath_overrides_runpath=yes
47932   hardcode_into_libs=yes
47933   if test "$with_gnu_ld" = yes; then
47934     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
47935   else
47936     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
47937     case $host_os in
47938       sco3.2v5*)
47939         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
47940         ;;
47941     esac
47942   fi
47943   sys_lib_dlsearch_path_spec='/usr/lib'
47944   ;;
47945
47946 tpf*)
47947   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
47948   version_type=linux
47949   need_lib_prefix=no
47950   need_version=no
47951   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
47952   shlibpath_var=LD_LIBRARY_PATH
47953   shlibpath_overrides_runpath=no
47954   hardcode_into_libs=yes
47955   ;;
47956
47957 uts4*)
47958   version_type=linux
47959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
47960   soname_spec='${libname}${release}${shared_ext}$major'
47961   shlibpath_var=LD_LIBRARY_PATH
47962   ;;
47963
47964 *)
47965   dynamic_linker=no
47966   ;;
47967 esac
47968 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
47969 $as_echo "$dynamic_linker" >&6; }
47970 test "$dynamic_linker" = no && can_build_shared=no
47971
47972 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
47973 if test "$GCC" = yes; then
47974   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47975 fi
47976
47977 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
47978   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
47979 fi
47980 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
47981   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
47982 fi
47983
47984
47985
47986
47987
47988
47989
47990
47991
47992
47993
47994
47995
47996
47997
47998
47999
48000
48001
48002
48003
48004
48005
48006
48007
48008
48009
48010
48011
48012
48013
48014
48015
48016
48017
48018
48019
48020
48021
48022
48023
48024
48025
48026
48027
48028
48029
48030
48031
48032
48033
48034
48035
48036
48037
48038
48039
48040
48041
48042
48043
48044
48045
48046
48047
48048
48049
48050
48051
48052
48053
48054
48055
48056
48057
48058
48059
48060
48061
48062
48063
48064
48065
48066
48067
48068
48069
48070   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
48071 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
48072 hardcode_action=
48073 if test -n "$hardcode_libdir_flag_spec" ||
48074    test -n "$runpath_var" ||
48075    test "X$hardcode_automatic" = "Xyes" ; then
48076
48077   # We can hardcode non-existent directories.
48078   if test "$hardcode_direct" != no &&
48079      # If the only mechanism to avoid hardcoding is shlibpath_var, we
48080      # have to relink, otherwise we might link with an installed library
48081      # when we should be linking with a yet-to-be-installed one
48082      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
48083      test "$hardcode_minus_L" != no; then
48084     # Linking always hardcodes the temporary library directory.
48085     hardcode_action=relink
48086   else
48087     # We can link without hardcoding, and we can hardcode nonexisting dirs.
48088     hardcode_action=immediate
48089   fi
48090 else
48091   # We cannot hardcode anything, or else we can only hardcode existing
48092   # directories.
48093   hardcode_action=unsupported
48094 fi
48095 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
48096 $as_echo "$hardcode_action" >&6; }
48097
48098 if test "$hardcode_action" = relink ||
48099    test "$inherit_rpath" = yes; then
48100   # Fast installation is not supported
48101   enable_fast_install=no
48102 elif test "$shlibpath_overrides_runpath" = yes ||
48103      test "$enable_shared" = no; then
48104   # Fast installation is not necessary
48105   enable_fast_install=needless
48106 fi
48107
48108
48109
48110
48111
48112
48113   if test "x$enable_dlopen" != xyes; then
48114   enable_dlopen=unknown
48115   enable_dlopen_self=unknown
48116   enable_dlopen_self_static=unknown
48117 else
48118   lt_cv_dlopen=no
48119   lt_cv_dlopen_libs=
48120
48121   case $host_os in
48122   beos*)
48123     lt_cv_dlopen="load_add_on"
48124     lt_cv_dlopen_libs=
48125     lt_cv_dlopen_self=yes
48126     ;;
48127
48128   mingw* | pw32*)
48129     lt_cv_dlopen="LoadLibrary"
48130     lt_cv_dlopen_libs=
48131     ;;
48132
48133   cygwin*)
48134     lt_cv_dlopen="dlopen"
48135     lt_cv_dlopen_libs=
48136     ;;
48137
48138   darwin*)
48139   # if libdl is installed we need to link against it
48140     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
48141 $as_echo_n "checking for dlopen in -ldl... " >&6; }
48142 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
48143   $as_echo_n "(cached) " >&6
48144 else
48145   ac_check_lib_save_LIBS=$LIBS
48146 LIBS="-ldl  $LIBS"
48147 cat >conftest.$ac_ext <<_ACEOF
48148 /* confdefs.h.  */
48149 _ACEOF
48150 cat confdefs.h >>conftest.$ac_ext
48151 cat >>conftest.$ac_ext <<_ACEOF
48152 /* end confdefs.h.  */
48153
48154 /* Override any GCC internal prototype to avoid an error.
48155    Use char because int might match the return type of a GCC
48156    builtin and then its argument prototype would still apply.  */
48157 #ifdef __cplusplus
48158 extern "C"
48159 #endif
48160 char dlopen ();
48161 int
48162 main ()
48163 {
48164 return dlopen ();
48165   ;
48166   return 0;
48167 }
48168 _ACEOF
48169 rm -f conftest.$ac_objext conftest$ac_exeext
48170 if { (ac_try="$ac_link"
48171 case "(($ac_try" in
48172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48173   *) ac_try_echo=$ac_try;;
48174 esac
48175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48176 $as_echo "$ac_try_echo") >&5
48177   (eval "$ac_link") 2>conftest.er1
48178   ac_status=$?
48179   grep -v '^ *+' conftest.er1 >conftest.err
48180   rm -f conftest.er1
48181   cat conftest.err >&5
48182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48183   (exit $ac_status); } && {
48184          test -z "$ac_c_werror_flag" ||
48185          test ! -s conftest.err
48186        } && test -s conftest$ac_exeext && {
48187          test "$cross_compiling" = yes ||
48188          $as_test_x conftest$ac_exeext
48189        }; then
48190   ac_cv_lib_dl_dlopen=yes
48191 else
48192   $as_echo "$as_me: failed program was:" >&5
48193 sed 's/^/| /' conftest.$ac_ext >&5
48194
48195         ac_cv_lib_dl_dlopen=no
48196 fi
48197
48198 rm -rf conftest.dSYM
48199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48200       conftest$ac_exeext conftest.$ac_ext
48201 LIBS=$ac_check_lib_save_LIBS
48202 fi
48203 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
48204 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
48205 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
48206   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
48207 else
48208
48209     lt_cv_dlopen="dyld"
48210     lt_cv_dlopen_libs=
48211     lt_cv_dlopen_self=yes
48212
48213 fi
48214
48215     ;;
48216
48217   *)
48218     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
48219 $as_echo_n "checking for shl_load... " >&6; }
48220 if test "${ac_cv_func_shl_load+set}" = set; then
48221   $as_echo_n "(cached) " >&6
48222 else
48223   cat >conftest.$ac_ext <<_ACEOF
48224 /* confdefs.h.  */
48225 _ACEOF
48226 cat confdefs.h >>conftest.$ac_ext
48227 cat >>conftest.$ac_ext <<_ACEOF
48228 /* end confdefs.h.  */
48229 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
48230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48231 #define shl_load innocuous_shl_load
48232
48233 /* System header to define __stub macros and hopefully few prototypes,
48234     which can conflict with char shl_load (); below.
48235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48236     <limits.h> exists even on freestanding compilers.  */
48237
48238 #ifdef __STDC__
48239 # include <limits.h>
48240 #else
48241 # include <assert.h>
48242 #endif
48243
48244 #undef shl_load
48245
48246 /* Override any GCC internal prototype to avoid an error.
48247    Use char because int might match the return type of a GCC
48248    builtin and then its argument prototype would still apply.  */
48249 #ifdef __cplusplus
48250 extern "C"
48251 #endif
48252 char shl_load ();
48253 /* The GNU C library defines this for functions which it implements
48254     to always fail with ENOSYS.  Some functions are actually named
48255     something starting with __ and the normal name is an alias.  */
48256 #if defined __stub_shl_load || defined __stub___shl_load
48257 choke me
48258 #endif
48259
48260 int
48261 main ()
48262 {
48263 return shl_load ();
48264   ;
48265   return 0;
48266 }
48267 _ACEOF
48268 rm -f conftest.$ac_objext conftest$ac_exeext
48269 if { (ac_try="$ac_link"
48270 case "(($ac_try" in
48271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48272   *) ac_try_echo=$ac_try;;
48273 esac
48274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48275 $as_echo "$ac_try_echo") >&5
48276   (eval "$ac_link") 2>conftest.er1
48277   ac_status=$?
48278   grep -v '^ *+' conftest.er1 >conftest.err
48279   rm -f conftest.er1
48280   cat conftest.err >&5
48281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48282   (exit $ac_status); } && {
48283          test -z "$ac_c_werror_flag" ||
48284          test ! -s conftest.err
48285        } && test -s conftest$ac_exeext && {
48286          test "$cross_compiling" = yes ||
48287          $as_test_x conftest$ac_exeext
48288        }; then
48289   ac_cv_func_shl_load=yes
48290 else
48291   $as_echo "$as_me: failed program was:" >&5
48292 sed 's/^/| /' conftest.$ac_ext >&5
48293
48294         ac_cv_func_shl_load=no
48295 fi
48296
48297 rm -rf conftest.dSYM
48298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48299       conftest$ac_exeext conftest.$ac_ext
48300 fi
48301 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
48302 $as_echo "$ac_cv_func_shl_load" >&6; }
48303 if test "x$ac_cv_func_shl_load" = x""yes; then
48304   lt_cv_dlopen="shl_load"
48305 else
48306   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
48307 $as_echo_n "checking for shl_load in -ldld... " >&6; }
48308 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
48309   $as_echo_n "(cached) " >&6
48310 else
48311   ac_check_lib_save_LIBS=$LIBS
48312 LIBS="-ldld  $LIBS"
48313 cat >conftest.$ac_ext <<_ACEOF
48314 /* confdefs.h.  */
48315 _ACEOF
48316 cat confdefs.h >>conftest.$ac_ext
48317 cat >>conftest.$ac_ext <<_ACEOF
48318 /* end confdefs.h.  */
48319
48320 /* Override any GCC internal prototype to avoid an error.
48321    Use char because int might match the return type of a GCC
48322    builtin and then its argument prototype would still apply.  */
48323 #ifdef __cplusplus
48324 extern "C"
48325 #endif
48326 char shl_load ();
48327 int
48328 main ()
48329 {
48330 return shl_load ();
48331   ;
48332   return 0;
48333 }
48334 _ACEOF
48335 rm -f conftest.$ac_objext conftest$ac_exeext
48336 if { (ac_try="$ac_link"
48337 case "(($ac_try" in
48338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48339   *) ac_try_echo=$ac_try;;
48340 esac
48341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48342 $as_echo "$ac_try_echo") >&5
48343   (eval "$ac_link") 2>conftest.er1
48344   ac_status=$?
48345   grep -v '^ *+' conftest.er1 >conftest.err
48346   rm -f conftest.er1
48347   cat conftest.err >&5
48348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48349   (exit $ac_status); } && {
48350          test -z "$ac_c_werror_flag" ||
48351          test ! -s conftest.err
48352        } && test -s conftest$ac_exeext && {
48353          test "$cross_compiling" = yes ||
48354          $as_test_x conftest$ac_exeext
48355        }; then
48356   ac_cv_lib_dld_shl_load=yes
48357 else
48358   $as_echo "$as_me: failed program was:" >&5
48359 sed 's/^/| /' conftest.$ac_ext >&5
48360
48361         ac_cv_lib_dld_shl_load=no
48362 fi
48363
48364 rm -rf conftest.dSYM
48365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48366       conftest$ac_exeext conftest.$ac_ext
48367 LIBS=$ac_check_lib_save_LIBS
48368 fi
48369 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
48370 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
48371 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
48372   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
48373 else
48374   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
48375 $as_echo_n "checking for dlopen... " >&6; }
48376 if test "${ac_cv_func_dlopen+set}" = set; then
48377   $as_echo_n "(cached) " >&6
48378 else
48379   cat >conftest.$ac_ext <<_ACEOF
48380 /* confdefs.h.  */
48381 _ACEOF
48382 cat confdefs.h >>conftest.$ac_ext
48383 cat >>conftest.$ac_ext <<_ACEOF
48384 /* end confdefs.h.  */
48385 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
48386    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48387 #define dlopen innocuous_dlopen
48388
48389 /* System header to define __stub macros and hopefully few prototypes,
48390     which can conflict with char dlopen (); below.
48391     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48392     <limits.h> exists even on freestanding compilers.  */
48393
48394 #ifdef __STDC__
48395 # include <limits.h>
48396 #else
48397 # include <assert.h>
48398 #endif
48399
48400 #undef dlopen
48401
48402 /* Override any GCC internal prototype to avoid an error.
48403    Use char because int might match the return type of a GCC
48404    builtin and then its argument prototype would still apply.  */
48405 #ifdef __cplusplus
48406 extern "C"
48407 #endif
48408 char dlopen ();
48409 /* The GNU C library defines this for functions which it implements
48410     to always fail with ENOSYS.  Some functions are actually named
48411     something starting with __ and the normal name is an alias.  */
48412 #if defined __stub_dlopen || defined __stub___dlopen
48413 choke me
48414 #endif
48415
48416 int
48417 main ()
48418 {
48419 return dlopen ();
48420   ;
48421   return 0;
48422 }
48423 _ACEOF
48424 rm -f conftest.$ac_objext conftest$ac_exeext
48425 if { (ac_try="$ac_link"
48426 case "(($ac_try" in
48427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48428   *) ac_try_echo=$ac_try;;
48429 esac
48430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48431 $as_echo "$ac_try_echo") >&5
48432   (eval "$ac_link") 2>conftest.er1
48433   ac_status=$?
48434   grep -v '^ *+' conftest.er1 >conftest.err
48435   rm -f conftest.er1
48436   cat conftest.err >&5
48437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48438   (exit $ac_status); } && {
48439          test -z "$ac_c_werror_flag" ||
48440          test ! -s conftest.err
48441        } && test -s conftest$ac_exeext && {
48442          test "$cross_compiling" = yes ||
48443          $as_test_x conftest$ac_exeext
48444        }; then
48445   ac_cv_func_dlopen=yes
48446 else
48447   $as_echo "$as_me: failed program was:" >&5
48448 sed 's/^/| /' conftest.$ac_ext >&5
48449
48450         ac_cv_func_dlopen=no
48451 fi
48452
48453 rm -rf conftest.dSYM
48454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48455       conftest$ac_exeext conftest.$ac_ext
48456 fi
48457 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
48458 $as_echo "$ac_cv_func_dlopen" >&6; }
48459 if test "x$ac_cv_func_dlopen" = x""yes; then
48460   lt_cv_dlopen="dlopen"
48461 else
48462   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
48463 $as_echo_n "checking for dlopen in -ldl... " >&6; }
48464 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
48465   $as_echo_n "(cached) " >&6
48466 else
48467   ac_check_lib_save_LIBS=$LIBS
48468 LIBS="-ldl  $LIBS"
48469 cat >conftest.$ac_ext <<_ACEOF
48470 /* confdefs.h.  */
48471 _ACEOF
48472 cat confdefs.h >>conftest.$ac_ext
48473 cat >>conftest.$ac_ext <<_ACEOF
48474 /* end confdefs.h.  */
48475
48476 /* Override any GCC internal prototype to avoid an error.
48477    Use char because int might match the return type of a GCC
48478    builtin and then its argument prototype would still apply.  */
48479 #ifdef __cplusplus
48480 extern "C"
48481 #endif
48482 char dlopen ();
48483 int
48484 main ()
48485 {
48486 return dlopen ();
48487   ;
48488   return 0;
48489 }
48490 _ACEOF
48491 rm -f conftest.$ac_objext conftest$ac_exeext
48492 if { (ac_try="$ac_link"
48493 case "(($ac_try" in
48494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48495   *) ac_try_echo=$ac_try;;
48496 esac
48497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48498 $as_echo "$ac_try_echo") >&5
48499   (eval "$ac_link") 2>conftest.er1
48500   ac_status=$?
48501   grep -v '^ *+' conftest.er1 >conftest.err
48502   rm -f conftest.er1
48503   cat conftest.err >&5
48504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48505   (exit $ac_status); } && {
48506          test -z "$ac_c_werror_flag" ||
48507          test ! -s conftest.err
48508        } && test -s conftest$ac_exeext && {
48509          test "$cross_compiling" = yes ||
48510          $as_test_x conftest$ac_exeext
48511        }; then
48512   ac_cv_lib_dl_dlopen=yes
48513 else
48514   $as_echo "$as_me: failed program was:" >&5
48515 sed 's/^/| /' conftest.$ac_ext >&5
48516
48517         ac_cv_lib_dl_dlopen=no
48518 fi
48519
48520 rm -rf conftest.dSYM
48521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48522       conftest$ac_exeext conftest.$ac_ext
48523 LIBS=$ac_check_lib_save_LIBS
48524 fi
48525 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
48526 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
48527 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
48528   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
48529 else
48530   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
48531 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
48532 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
48533   $as_echo_n "(cached) " >&6
48534 else
48535   ac_check_lib_save_LIBS=$LIBS
48536 LIBS="-lsvld  $LIBS"
48537 cat >conftest.$ac_ext <<_ACEOF
48538 /* confdefs.h.  */
48539 _ACEOF
48540 cat confdefs.h >>conftest.$ac_ext
48541 cat >>conftest.$ac_ext <<_ACEOF
48542 /* end confdefs.h.  */
48543
48544 /* Override any GCC internal prototype to avoid an error.
48545    Use char because int might match the return type of a GCC
48546    builtin and then its argument prototype would still apply.  */
48547 #ifdef __cplusplus
48548 extern "C"
48549 #endif
48550 char dlopen ();
48551 int
48552 main ()
48553 {
48554 return dlopen ();
48555   ;
48556   return 0;
48557 }
48558 _ACEOF
48559 rm -f conftest.$ac_objext conftest$ac_exeext
48560 if { (ac_try="$ac_link"
48561 case "(($ac_try" in
48562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48563   *) ac_try_echo=$ac_try;;
48564 esac
48565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48566 $as_echo "$ac_try_echo") >&5
48567   (eval "$ac_link") 2>conftest.er1
48568   ac_status=$?
48569   grep -v '^ *+' conftest.er1 >conftest.err
48570   rm -f conftest.er1
48571   cat conftest.err >&5
48572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48573   (exit $ac_status); } && {
48574          test -z "$ac_c_werror_flag" ||
48575          test ! -s conftest.err
48576        } && test -s conftest$ac_exeext && {
48577          test "$cross_compiling" = yes ||
48578          $as_test_x conftest$ac_exeext
48579        }; then
48580   ac_cv_lib_svld_dlopen=yes
48581 else
48582   $as_echo "$as_me: failed program was:" >&5
48583 sed 's/^/| /' conftest.$ac_ext >&5
48584
48585         ac_cv_lib_svld_dlopen=no
48586 fi
48587
48588 rm -rf conftest.dSYM
48589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48590       conftest$ac_exeext conftest.$ac_ext
48591 LIBS=$ac_check_lib_save_LIBS
48592 fi
48593 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
48594 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
48595 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
48596   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
48597 else
48598   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
48599 $as_echo_n "checking for dld_link in -ldld... " >&6; }
48600 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
48601   $as_echo_n "(cached) " >&6
48602 else
48603   ac_check_lib_save_LIBS=$LIBS
48604 LIBS="-ldld  $LIBS"
48605 cat >conftest.$ac_ext <<_ACEOF
48606 /* confdefs.h.  */
48607 _ACEOF
48608 cat confdefs.h >>conftest.$ac_ext
48609 cat >>conftest.$ac_ext <<_ACEOF
48610 /* end confdefs.h.  */
48611
48612 /* Override any GCC internal prototype to avoid an error.
48613    Use char because int might match the return type of a GCC
48614    builtin and then its argument prototype would still apply.  */
48615 #ifdef __cplusplus
48616 extern "C"
48617 #endif
48618 char dld_link ();
48619 int
48620 main ()
48621 {
48622 return dld_link ();
48623   ;
48624   return 0;
48625 }
48626 _ACEOF
48627 rm -f conftest.$ac_objext conftest$ac_exeext
48628 if { (ac_try="$ac_link"
48629 case "(($ac_try" in
48630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48631   *) ac_try_echo=$ac_try;;
48632 esac
48633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48634 $as_echo "$ac_try_echo") >&5
48635   (eval "$ac_link") 2>conftest.er1
48636   ac_status=$?
48637   grep -v '^ *+' conftest.er1 >conftest.err
48638   rm -f conftest.er1
48639   cat conftest.err >&5
48640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48641   (exit $ac_status); } && {
48642          test -z "$ac_c_werror_flag" ||
48643          test ! -s conftest.err
48644        } && test -s conftest$ac_exeext && {
48645          test "$cross_compiling" = yes ||
48646          $as_test_x conftest$ac_exeext
48647        }; then
48648   ac_cv_lib_dld_dld_link=yes
48649 else
48650   $as_echo "$as_me: failed program was:" >&5
48651 sed 's/^/| /' conftest.$ac_ext >&5
48652
48653         ac_cv_lib_dld_dld_link=no
48654 fi
48655
48656 rm -rf conftest.dSYM
48657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48658       conftest$ac_exeext conftest.$ac_ext
48659 LIBS=$ac_check_lib_save_LIBS
48660 fi
48661 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
48662 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
48663 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
48664   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
48665 fi
48666
48667
48668 fi
48669
48670
48671 fi
48672
48673
48674 fi
48675
48676
48677 fi
48678
48679
48680 fi
48681
48682     ;;
48683   esac
48684
48685   if test "x$lt_cv_dlopen" != xno; then
48686     enable_dlopen=yes
48687   else
48688     enable_dlopen=no
48689   fi
48690
48691   case $lt_cv_dlopen in
48692   dlopen)
48693     save_CPPFLAGS="$CPPFLAGS"
48694     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
48695
48696     save_LDFLAGS="$LDFLAGS"
48697     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
48698
48699     save_LIBS="$LIBS"
48700     LIBS="$lt_cv_dlopen_libs $LIBS"
48701
48702     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
48703 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
48704 if test "${lt_cv_dlopen_self+set}" = set; then
48705   $as_echo_n "(cached) " >&6
48706 else
48707           if test "$cross_compiling" = yes; then :
48708   lt_cv_dlopen_self=cross
48709 else
48710   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
48711   lt_status=$lt_dlunknown
48712   cat > conftest.$ac_ext <<_LT_EOF
48713 #line 48713 "configure"
48714 #include "confdefs.h"
48715
48716 #if HAVE_DLFCN_H
48717 #include <dlfcn.h>
48718 #endif
48719
48720 #include <stdio.h>
48721
48722 #ifdef RTLD_GLOBAL
48723 #  define LT_DLGLOBAL           RTLD_GLOBAL
48724 #else
48725 #  ifdef DL_GLOBAL
48726 #    define LT_DLGLOBAL         DL_GLOBAL
48727 #  else
48728 #    define LT_DLGLOBAL         0
48729 #  endif
48730 #endif
48731
48732 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
48733    find out it does not work in some platform. */
48734 #ifndef LT_DLLAZY_OR_NOW
48735 #  ifdef RTLD_LAZY
48736 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
48737 #  else
48738 #    ifdef DL_LAZY
48739 #      define LT_DLLAZY_OR_NOW          DL_LAZY
48740 #    else
48741 #      ifdef RTLD_NOW
48742 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
48743 #      else
48744 #        ifdef DL_NOW
48745 #          define LT_DLLAZY_OR_NOW      DL_NOW
48746 #        else
48747 #          define LT_DLLAZY_OR_NOW      0
48748 #        endif
48749 #      endif
48750 #    endif
48751 #  endif
48752 #endif
48753
48754 #ifdef __cplusplus
48755 extern "C" void exit (int);
48756 #endif
48757
48758 void fnord() { int i=42;}
48759 int main ()
48760 {
48761   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
48762   int status = $lt_dlunknown;
48763
48764   if (self)
48765     {
48766       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
48767       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
48768       /* dlclose (self); */
48769     }
48770   else
48771     puts (dlerror ());
48772
48773     exit (status);
48774 }
48775 _LT_EOF
48776   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48777   (eval $ac_link) 2>&5
48778   ac_status=$?
48779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48780   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
48781     (./conftest; exit; ) >&5 2>/dev/null
48782     lt_status=$?
48783     case x$lt_status in
48784       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
48785       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
48786       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
48787     esac
48788   else :
48789     # compilation failed
48790     lt_cv_dlopen_self=no
48791   fi
48792 fi
48793 rm -fr conftest*
48794
48795
48796 fi
48797 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
48798 $as_echo "$lt_cv_dlopen_self" >&6; }
48799
48800     if test "x$lt_cv_dlopen_self" = xyes; then
48801       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
48802       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
48803 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
48804 if test "${lt_cv_dlopen_self_static+set}" = set; then
48805   $as_echo_n "(cached) " >&6
48806 else
48807           if test "$cross_compiling" = yes; then :
48808   lt_cv_dlopen_self_static=cross
48809 else
48810   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
48811   lt_status=$lt_dlunknown
48812   cat > conftest.$ac_ext <<_LT_EOF
48813 #line 48813 "configure"
48814 #include "confdefs.h"
48815
48816 #if HAVE_DLFCN_H
48817 #include <dlfcn.h>
48818 #endif
48819
48820 #include <stdio.h>
48821
48822 #ifdef RTLD_GLOBAL
48823 #  define LT_DLGLOBAL           RTLD_GLOBAL
48824 #else
48825 #  ifdef DL_GLOBAL
48826 #    define LT_DLGLOBAL         DL_GLOBAL
48827 #  else
48828 #    define LT_DLGLOBAL         0
48829 #  endif
48830 #endif
48831
48832 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
48833    find out it does not work in some platform. */
48834 #ifndef LT_DLLAZY_OR_NOW
48835 #  ifdef RTLD_LAZY
48836 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
48837 #  else
48838 #    ifdef DL_LAZY
48839 #      define LT_DLLAZY_OR_NOW          DL_LAZY
48840 #    else
48841 #      ifdef RTLD_NOW
48842 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
48843 #      else
48844 #        ifdef DL_NOW
48845 #          define LT_DLLAZY_OR_NOW      DL_NOW
48846 #        else
48847 #          define LT_DLLAZY_OR_NOW      0
48848 #        endif
48849 #      endif
48850 #    endif
48851 #  endif
48852 #endif
48853
48854 #ifdef __cplusplus
48855 extern "C" void exit (int);
48856 #endif
48857
48858 void fnord() { int i=42;}
48859 int main ()
48860 {
48861   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
48862   int status = $lt_dlunknown;
48863
48864   if (self)
48865     {
48866       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
48867       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
48868       /* dlclose (self); */
48869     }
48870   else
48871     puts (dlerror ());
48872
48873     exit (status);
48874 }
48875 _LT_EOF
48876   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48877   (eval $ac_link) 2>&5
48878   ac_status=$?
48879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48880   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
48881     (./conftest; exit; ) >&5 2>/dev/null
48882     lt_status=$?
48883     case x$lt_status in
48884       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
48885       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
48886       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
48887     esac
48888   else :
48889     # compilation failed
48890     lt_cv_dlopen_self_static=no
48891   fi
48892 fi
48893 rm -fr conftest*
48894
48895
48896 fi
48897 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
48898 $as_echo "$lt_cv_dlopen_self_static" >&6; }
48899     fi
48900
48901     CPPFLAGS="$save_CPPFLAGS"
48902     LDFLAGS="$save_LDFLAGS"
48903     LIBS="$save_LIBS"
48904     ;;
48905   esac
48906
48907   case $lt_cv_dlopen_self in
48908   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
48909   *) enable_dlopen_self=unknown ;;
48910   esac
48911
48912   case $lt_cv_dlopen_self_static in
48913   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
48914   *) enable_dlopen_self_static=unknown ;;
48915   esac
48916 fi
48917
48918
48919
48920
48921
48922
48923
48924
48925
48926
48927
48928
48929
48930
48931
48932
48933
48934 striplib=
48935 old_striplib=
48936 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
48937 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
48938 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
48939   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
48940   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
48941   { $as_echo "$as_me:$LINENO: result: yes" >&5
48942 $as_echo "yes" >&6; }
48943 else
48944 # FIXME - insert some real tests, host_os isn't really good enough
48945   case $host_os in
48946   darwin*)
48947     if test -n "$STRIP" ; then
48948       striplib="$STRIP -x"
48949       old_striplib="$STRIP -S"
48950       { $as_echo "$as_me:$LINENO: result: yes" >&5
48951 $as_echo "yes" >&6; }
48952     else
48953       { $as_echo "$as_me:$LINENO: result: no" >&5
48954 $as_echo "no" >&6; }
48955     fi
48956     ;;
48957   *)
48958     { $as_echo "$as_me:$LINENO: result: no" >&5
48959 $as_echo "no" >&6; }
48960     ;;
48961   esac
48962 fi
48963
48964
48965
48966
48967
48968
48969
48970
48971
48972
48973
48974
48975   # Report which library types will actually be built
48976   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
48977 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
48978   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
48979 $as_echo "$can_build_shared" >&6; }
48980
48981   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
48982 $as_echo_n "checking whether to build shared libraries... " >&6; }
48983   test "$can_build_shared" = "no" && enable_shared=no
48984
48985   # On AIX, shared libraries and static libraries use the same namespace, and
48986   # are all built from PIC.
48987   case $host_os in
48988   aix3*)
48989     test "$enable_shared" = yes && enable_static=no
48990     if test -n "$RANLIB"; then
48991       archive_cmds="$archive_cmds~\$RANLIB \$lib"
48992       postinstall_cmds='$RANLIB $lib'
48993     fi
48994     ;;
48995
48996   aix[4-9]*)
48997     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
48998       test "$enable_shared" = yes && enable_static=no
48999     fi
49000     ;;
49001   esac
49002   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
49003 $as_echo "$enable_shared" >&6; }
49004
49005   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
49006 $as_echo_n "checking whether to build static libraries... " >&6; }
49007   # Make sure either enable_shared or enable_static is yes.
49008   test "$enable_shared" = yes || enable_static=yes
49009   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
49010 $as_echo "$enable_static" >&6; }
49011
49012
49013
49014
49015 fi
49016 ac_ext=c
49017 ac_cpp='$CPP $CPPFLAGS'
49018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49021
49022 CC="$lt_save_CC"
49023
49024
49025
49026
49027
49028
49029
49030
49031
49032
49033
49034
49035
49036         ac_config_commands="$ac_config_commands libtool"
49037
49038
49039
49040
49041 # Only expand once:
49042
49043
49044
49045
49046     # Check whether --enable-static-binary was given.
49047 if test "${enable_static_binary+set}" = set; then
49048   enableval=$enable_static_binary;
49049             case "$enableval" in
49050             "" | y | ye | yes)
49051                 AMANDA_STATIC_LDFLAGS=-static
49052                 if test x"$enable_static" = x"no"; then
49053                         { { $as_echo "$as_me:$LINENO: error: *** --enable-static-binary is incompatible with --disable-static" >&5
49054 $as_echo "$as_me: error: *** --enable-static-binary is incompatible with --disable-static" >&2;}
49055    { (exit 1); exit 1; }; }
49056                 fi
49057                 ;;
49058             *n | no)
49059                 AMANDA_STATIC_LDFLAGS=
49060                 ;;
49061             esac
49062
49063 fi
49064
49065
49066
49067
49068 #
49069 # headers
49070 #
49071
49072
49073
49074
49075
49076 ac_header_dirent=no
49077 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
49078   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
49079 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
49080 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
49081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49082   $as_echo_n "(cached) " >&6
49083 else
49084   cat >conftest.$ac_ext <<_ACEOF
49085 /* confdefs.h.  */
49086 _ACEOF
49087 cat confdefs.h >>conftest.$ac_ext
49088 cat >>conftest.$ac_ext <<_ACEOF
49089 /* end confdefs.h.  */
49090 #include <sys/types.h>
49091 #include <$ac_hdr>
49092
49093 int
49094 main ()
49095 {
49096 if ((DIR *) 0)
49097 return 0;
49098   ;
49099   return 0;
49100 }
49101 _ACEOF
49102 rm -f conftest.$ac_objext
49103 if { (ac_try="$ac_compile"
49104 case "(($ac_try" in
49105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49106   *) ac_try_echo=$ac_try;;
49107 esac
49108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49109 $as_echo "$ac_try_echo") >&5
49110   (eval "$ac_compile") 2>conftest.er1
49111   ac_status=$?
49112   grep -v '^ *+' conftest.er1 >conftest.err
49113   rm -f conftest.er1
49114   cat conftest.err >&5
49115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49116   (exit $ac_status); } && {
49117          test -z "$ac_c_werror_flag" ||
49118          test ! -s conftest.err
49119        } && test -s conftest.$ac_objext; then
49120   eval "$as_ac_Header=yes"
49121 else
49122   $as_echo "$as_me: failed program was:" >&5
49123 sed 's/^/| /' conftest.$ac_ext >&5
49124
49125         eval "$as_ac_Header=no"
49126 fi
49127
49128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49129 fi
49130 ac_res=`eval 'as_val=${'$as_ac_Header'}
49131                  $as_echo "$as_val"'`
49132                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49133 $as_echo "$ac_res" >&6; }
49134 as_val=`eval 'as_val=${'$as_ac_Header'}
49135                  $as_echo "$as_val"'`
49136    if test "x$as_val" = x""yes; then
49137   cat >>confdefs.h <<_ACEOF
49138 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
49139 _ACEOF
49140
49141 ac_header_dirent=$ac_hdr; break
49142 fi
49143
49144 done
49145 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
49146 if test $ac_header_dirent = dirent.h; then
49147   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
49148 $as_echo_n "checking for library containing opendir... " >&6; }
49149 if test "${ac_cv_search_opendir+set}" = set; then
49150   $as_echo_n "(cached) " >&6
49151 else
49152   ac_func_search_save_LIBS=$LIBS
49153 cat >conftest.$ac_ext <<_ACEOF
49154 /* confdefs.h.  */
49155 _ACEOF
49156 cat confdefs.h >>conftest.$ac_ext
49157 cat >>conftest.$ac_ext <<_ACEOF
49158 /* end confdefs.h.  */
49159
49160 /* Override any GCC internal prototype to avoid an error.
49161    Use char because int might match the return type of a GCC
49162    builtin and then its argument prototype would still apply.  */
49163 #ifdef __cplusplus
49164 extern "C"
49165 #endif
49166 char opendir ();
49167 int
49168 main ()
49169 {
49170 return opendir ();
49171   ;
49172   return 0;
49173 }
49174 _ACEOF
49175 for ac_lib in '' dir; do
49176   if test -z "$ac_lib"; then
49177     ac_res="none required"
49178   else
49179     ac_res=-l$ac_lib
49180     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
49181   fi
49182   rm -f conftest.$ac_objext conftest$ac_exeext
49183 if { (ac_try="$ac_link"
49184 case "(($ac_try" in
49185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49186   *) ac_try_echo=$ac_try;;
49187 esac
49188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49189 $as_echo "$ac_try_echo") >&5
49190   (eval "$ac_link") 2>conftest.er1
49191   ac_status=$?
49192   grep -v '^ *+' conftest.er1 >conftest.err
49193   rm -f conftest.er1
49194   cat conftest.err >&5
49195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49196   (exit $ac_status); } && {
49197          test -z "$ac_c_werror_flag" ||
49198          test ! -s conftest.err
49199        } && test -s conftest$ac_exeext && {
49200          test "$cross_compiling" = yes ||
49201          $as_test_x conftest$ac_exeext
49202        }; then
49203   ac_cv_search_opendir=$ac_res
49204 else
49205   $as_echo "$as_me: failed program was:" >&5
49206 sed 's/^/| /' conftest.$ac_ext >&5
49207
49208
49209 fi
49210
49211 rm -rf conftest.dSYM
49212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49213       conftest$ac_exeext
49214   if test "${ac_cv_search_opendir+set}" = set; then
49215   break
49216 fi
49217 done
49218 if test "${ac_cv_search_opendir+set}" = set; then
49219   :
49220 else
49221   ac_cv_search_opendir=no
49222 fi
49223 rm conftest.$ac_ext
49224 LIBS=$ac_func_search_save_LIBS
49225 fi
49226 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
49227 $as_echo "$ac_cv_search_opendir" >&6; }
49228 ac_res=$ac_cv_search_opendir
49229 if test "$ac_res" != no; then
49230   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
49231
49232 fi
49233
49234 else
49235   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
49236 $as_echo_n "checking for library containing opendir... " >&6; }
49237 if test "${ac_cv_search_opendir+set}" = set; then
49238   $as_echo_n "(cached) " >&6
49239 else
49240   ac_func_search_save_LIBS=$LIBS
49241 cat >conftest.$ac_ext <<_ACEOF
49242 /* confdefs.h.  */
49243 _ACEOF
49244 cat confdefs.h >>conftest.$ac_ext
49245 cat >>conftest.$ac_ext <<_ACEOF
49246 /* end confdefs.h.  */
49247
49248 /* Override any GCC internal prototype to avoid an error.
49249    Use char because int might match the return type of a GCC
49250    builtin and then its argument prototype would still apply.  */
49251 #ifdef __cplusplus
49252 extern "C"
49253 #endif
49254 char opendir ();
49255 int
49256 main ()
49257 {
49258 return opendir ();
49259   ;
49260   return 0;
49261 }
49262 _ACEOF
49263 for ac_lib in '' x; do
49264   if test -z "$ac_lib"; then
49265     ac_res="none required"
49266   else
49267     ac_res=-l$ac_lib
49268     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
49269   fi
49270   rm -f conftest.$ac_objext conftest$ac_exeext
49271 if { (ac_try="$ac_link"
49272 case "(($ac_try" in
49273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49274   *) ac_try_echo=$ac_try;;
49275 esac
49276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49277 $as_echo "$ac_try_echo") >&5
49278   (eval "$ac_link") 2>conftest.er1
49279   ac_status=$?
49280   grep -v '^ *+' conftest.er1 >conftest.err
49281   rm -f conftest.er1
49282   cat conftest.err >&5
49283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49284   (exit $ac_status); } && {
49285          test -z "$ac_c_werror_flag" ||
49286          test ! -s conftest.err
49287        } && test -s conftest$ac_exeext && {
49288          test "$cross_compiling" = yes ||
49289          $as_test_x conftest$ac_exeext
49290        }; then
49291   ac_cv_search_opendir=$ac_res
49292 else
49293   $as_echo "$as_me: failed program was:" >&5
49294 sed 's/^/| /' conftest.$ac_ext >&5
49295
49296
49297 fi
49298
49299 rm -rf conftest.dSYM
49300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49301       conftest$ac_exeext
49302   if test "${ac_cv_search_opendir+set}" = set; then
49303   break
49304 fi
49305 done
49306 if test "${ac_cv_search_opendir+set}" = set; then
49307   :
49308 else
49309   ac_cv_search_opendir=no
49310 fi
49311 rm conftest.$ac_ext
49312 LIBS=$ac_func_search_save_LIBS
49313 fi
49314 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
49315 $as_echo "$ac_cv_search_opendir" >&6; }
49316 ac_res=$ac_cv_search_opendir
49317 if test "$ac_res" != no; then
49318   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
49319
49320 fi
49321
49322 fi
49323
49324 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
49325 $as_echo_n "checking for ANSI C header files... " >&6; }
49326 if test "${ac_cv_header_stdc+set}" = set; then
49327   $as_echo_n "(cached) " >&6
49328 else
49329   cat >conftest.$ac_ext <<_ACEOF
49330 /* confdefs.h.  */
49331 _ACEOF
49332 cat confdefs.h >>conftest.$ac_ext
49333 cat >>conftest.$ac_ext <<_ACEOF
49334 /* end confdefs.h.  */
49335 #include <stdlib.h>
49336 #include <stdarg.h>
49337 #include <string.h>
49338 #include <float.h>
49339
49340 int
49341 main ()
49342 {
49343
49344   ;
49345   return 0;
49346 }
49347 _ACEOF
49348 rm -f conftest.$ac_objext
49349 if { (ac_try="$ac_compile"
49350 case "(($ac_try" in
49351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49352   *) ac_try_echo=$ac_try;;
49353 esac
49354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49355 $as_echo "$ac_try_echo") >&5
49356   (eval "$ac_compile") 2>conftest.er1
49357   ac_status=$?
49358   grep -v '^ *+' conftest.er1 >conftest.err
49359   rm -f conftest.er1
49360   cat conftest.err >&5
49361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49362   (exit $ac_status); } && {
49363          test -z "$ac_c_werror_flag" ||
49364          test ! -s conftest.err
49365        } && test -s conftest.$ac_objext; then
49366   ac_cv_header_stdc=yes
49367 else
49368   $as_echo "$as_me: failed program was:" >&5
49369 sed 's/^/| /' conftest.$ac_ext >&5
49370
49371         ac_cv_header_stdc=no
49372 fi
49373
49374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49375
49376 if test $ac_cv_header_stdc = yes; then
49377   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
49378   cat >conftest.$ac_ext <<_ACEOF
49379 /* confdefs.h.  */
49380 _ACEOF
49381 cat confdefs.h >>conftest.$ac_ext
49382 cat >>conftest.$ac_ext <<_ACEOF
49383 /* end confdefs.h.  */
49384 #include <string.h>
49385
49386 _ACEOF
49387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49388   $EGREP "memchr" >/dev/null 2>&1; then
49389   :
49390 else
49391   ac_cv_header_stdc=no
49392 fi
49393 rm -f conftest*
49394
49395 fi
49396
49397 if test $ac_cv_header_stdc = yes; then
49398   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
49399   cat >conftest.$ac_ext <<_ACEOF
49400 /* confdefs.h.  */
49401 _ACEOF
49402 cat confdefs.h >>conftest.$ac_ext
49403 cat >>conftest.$ac_ext <<_ACEOF
49404 /* end confdefs.h.  */
49405 #include <stdlib.h>
49406
49407 _ACEOF
49408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49409   $EGREP "free" >/dev/null 2>&1; then
49410   :
49411 else
49412   ac_cv_header_stdc=no
49413 fi
49414 rm -f conftest*
49415
49416 fi
49417
49418 if test $ac_cv_header_stdc = yes; then
49419   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
49420   if test "$cross_compiling" = yes; then
49421   :
49422 else
49423   cat >conftest.$ac_ext <<_ACEOF
49424 /* confdefs.h.  */
49425 _ACEOF
49426 cat confdefs.h >>conftest.$ac_ext
49427 cat >>conftest.$ac_ext <<_ACEOF
49428 /* end confdefs.h.  */
49429 #include <ctype.h>
49430 #include <stdlib.h>
49431 #if ((' ' & 0x0FF) == 0x020)
49432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
49433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
49434 #else
49435 # define ISLOWER(c) \
49436                    (('a' <= (c) && (c) <= 'i') \
49437                      || ('j' <= (c) && (c) <= 'r') \
49438                      || ('s' <= (c) && (c) <= 'z'))
49439 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
49440 #endif
49441
49442 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
49443 int
49444 main ()
49445 {
49446   int i;
49447   for (i = 0; i < 256; i++)
49448     if (XOR (islower (i), ISLOWER (i))
49449         || toupper (i) != TOUPPER (i))
49450       return 2;
49451   return 0;
49452 }
49453 _ACEOF
49454 rm -f conftest$ac_exeext
49455 if { (ac_try="$ac_link"
49456 case "(($ac_try" in
49457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49458   *) ac_try_echo=$ac_try;;
49459 esac
49460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49461 $as_echo "$ac_try_echo") >&5
49462   (eval "$ac_link") 2>&5
49463   ac_status=$?
49464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49465   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49466   { (case "(($ac_try" in
49467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49468   *) ac_try_echo=$ac_try;;
49469 esac
49470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49471 $as_echo "$ac_try_echo") >&5
49472   (eval "$ac_try") 2>&5
49473   ac_status=$?
49474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49475   (exit $ac_status); }; }; then
49476   :
49477 else
49478   $as_echo "$as_me: program exited with status $ac_status" >&5
49479 $as_echo "$as_me: failed program was:" >&5
49480 sed 's/^/| /' conftest.$ac_ext >&5
49481
49482 ( exit $ac_status )
49483 ac_cv_header_stdc=no
49484 fi
49485 rm -rf conftest.dSYM
49486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49487 fi
49488
49489
49490 fi
49491 fi
49492 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
49493 $as_echo "$ac_cv_header_stdc" >&6; }
49494 if test $ac_cv_header_stdc = yes; then
49495
49496 cat >>confdefs.h <<\_ACEOF
49497 #define STDC_HEADERS 1
49498 _ACEOF
49499
49500 fi
49501
49502 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
49503 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
49504 if test "${ac_cv_header_time+set}" = set; then
49505   $as_echo_n "(cached) " >&6
49506 else
49507   cat >conftest.$ac_ext <<_ACEOF
49508 /* confdefs.h.  */
49509 _ACEOF
49510 cat confdefs.h >>conftest.$ac_ext
49511 cat >>conftest.$ac_ext <<_ACEOF
49512 /* end confdefs.h.  */
49513 #include <sys/types.h>
49514 #include <sys/time.h>
49515 #include <time.h>
49516
49517 int
49518 main ()
49519 {
49520 if ((struct tm *) 0)
49521 return 0;
49522   ;
49523   return 0;
49524 }
49525 _ACEOF
49526 rm -f conftest.$ac_objext
49527 if { (ac_try="$ac_compile"
49528 case "(($ac_try" in
49529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49530   *) ac_try_echo=$ac_try;;
49531 esac
49532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49533 $as_echo "$ac_try_echo") >&5
49534   (eval "$ac_compile") 2>conftest.er1
49535   ac_status=$?
49536   grep -v '^ *+' conftest.er1 >conftest.err
49537   rm -f conftest.er1
49538   cat conftest.err >&5
49539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49540   (exit $ac_status); } && {
49541          test -z "$ac_c_werror_flag" ||
49542          test ! -s conftest.err
49543        } && test -s conftest.$ac_objext; then
49544   ac_cv_header_time=yes
49545 else
49546   $as_echo "$as_me: failed program was:" >&5
49547 sed 's/^/| /' conftest.$ac_ext >&5
49548
49549         ac_cv_header_time=no
49550 fi
49551
49552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49553 fi
49554 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
49555 $as_echo "$ac_cv_header_time" >&6; }
49556 if test $ac_cv_header_time = yes; then
49557
49558 cat >>confdefs.h <<\_ACEOF
49559 #define TIME_WITH_SYS_TIME 1
49560 _ACEOF
49561
49562 fi
49563
49564
49565
49566
49567
49568
49569
49570
49571
49572
49573
49574
49575
49576
49577
49578
49579
49580
49581
49582
49583
49584
49585
49586
49587
49588
49589 for ac_header in grp.h \
49590         libc.h \
49591         libgen.h \
49592         limits.h \
49593         math.h \
49594         netinet/in.h \
49595         regex.h \
49596         stdarg.h \
49597         stdlib.h \
49598         strings.h \
49599         rpc/rpc.h \
49600         sys/file.h \
49601         sys/ioctl.h \
49602         sys/ipc.h \
49603         sys/mntent.h \
49604         sys/param.h \
49605         sys/select.h \
49606         sys/stat.h \
49607         sys/shm.h \
49608         sys/time.h \
49609         sys/types.h \
49610         sys/uio.h \
49611         syslog.h \
49612         time.h \
49613         unistd.h \
49614
49615 do
49616 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
49617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49618   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
49619 $as_echo_n "checking for $ac_header... " >&6; }
49620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49621   $as_echo_n "(cached) " >&6
49622 fi
49623 ac_res=`eval 'as_val=${'$as_ac_Header'}
49624                  $as_echo "$as_val"'`
49625                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49626 $as_echo "$ac_res" >&6; }
49627 else
49628   # Is the header compilable?
49629 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
49630 $as_echo_n "checking $ac_header usability... " >&6; }
49631 cat >conftest.$ac_ext <<_ACEOF
49632 /* confdefs.h.  */
49633 _ACEOF
49634 cat confdefs.h >>conftest.$ac_ext
49635 cat >>conftest.$ac_ext <<_ACEOF
49636 /* end confdefs.h.  */
49637 $ac_includes_default
49638 #include <$ac_header>
49639 _ACEOF
49640 rm -f conftest.$ac_objext
49641 if { (ac_try="$ac_compile"
49642 case "(($ac_try" in
49643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49644   *) ac_try_echo=$ac_try;;
49645 esac
49646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49647 $as_echo "$ac_try_echo") >&5
49648   (eval "$ac_compile") 2>conftest.er1
49649   ac_status=$?
49650   grep -v '^ *+' conftest.er1 >conftest.err
49651   rm -f conftest.er1
49652   cat conftest.err >&5
49653   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49654   (exit $ac_status); } && {
49655          test -z "$ac_c_werror_flag" ||
49656          test ! -s conftest.err
49657        } && test -s conftest.$ac_objext; then
49658   ac_header_compiler=yes
49659 else
49660   $as_echo "$as_me: failed program was:" >&5
49661 sed 's/^/| /' conftest.$ac_ext >&5
49662
49663         ac_header_compiler=no
49664 fi
49665
49666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49667 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49668 $as_echo "$ac_header_compiler" >&6; }
49669
49670 # Is the header present?
49671 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
49672 $as_echo_n "checking $ac_header presence... " >&6; }
49673 cat >conftest.$ac_ext <<_ACEOF
49674 /* confdefs.h.  */
49675 _ACEOF
49676 cat confdefs.h >>conftest.$ac_ext
49677 cat >>conftest.$ac_ext <<_ACEOF
49678 /* end confdefs.h.  */
49679 #include <$ac_header>
49680 _ACEOF
49681 if { (ac_try="$ac_cpp conftest.$ac_ext"
49682 case "(($ac_try" in
49683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49684   *) ac_try_echo=$ac_try;;
49685 esac
49686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49687 $as_echo "$ac_try_echo") >&5
49688   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49689   ac_status=$?
49690   grep -v '^ *+' conftest.er1 >conftest.err
49691   rm -f conftest.er1
49692   cat conftest.err >&5
49693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49694   (exit $ac_status); } >/dev/null && {
49695          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49696          test ! -s conftest.err
49697        }; then
49698   ac_header_preproc=yes
49699 else
49700   $as_echo "$as_me: failed program was:" >&5
49701 sed 's/^/| /' conftest.$ac_ext >&5
49702
49703   ac_header_preproc=no
49704 fi
49705
49706 rm -f conftest.err conftest.$ac_ext
49707 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49708 $as_echo "$ac_header_preproc" >&6; }
49709
49710 # So?  What about this header?
49711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49712   yes:no: )
49713     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49714 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49715     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49716 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49717     ac_header_preproc=yes
49718     ;;
49719   no:yes:* )
49720     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49721 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49722     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
49723 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
49724     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49725 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49726     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
49727 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
49728     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49729 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49730     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49731 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49732
49733     ;;
49734 esac
49735 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
49736 $as_echo_n "checking for $ac_header... " >&6; }
49737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49738   $as_echo_n "(cached) " >&6
49739 else
49740   eval "$as_ac_Header=\$ac_header_preproc"
49741 fi
49742 ac_res=`eval 'as_val=${'$as_ac_Header'}
49743                  $as_echo "$as_val"'`
49744                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49745 $as_echo "$ac_res" >&6; }
49746
49747 fi
49748 as_val=`eval 'as_val=${'$as_ac_Header'}
49749                  $as_echo "$as_val"'`
49750    if test "x$as_val" = x""yes; then
49751   cat >>confdefs.h <<_ACEOF
49752 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
49753 _ACEOF
49754
49755 fi
49756
49757 done
49758
49759
49760 cat >>confdefs.h <<\_ACEOF
49761 #define HAVE_AMANDA_H 1
49762 _ACEOF
49763
49764
49765 cat >>confdefs.h <<\_ACEOF
49766 #define HAVE_UTIL_H 1
49767 _ACEOF
49768
49769
49770
49771 cat >>confdefs.h <<\_ACEOF
49772 #define USE_GETTEXT 1
49773 _ACEOF
49774
49775
49776 #
49777 # Types
49778 #
49779 # The cast to long int works around a bug in the HP C Compiler
49780 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49781 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49782 # This bug is HP SR number 8606223364.
49783 { $as_echo "$as_me:$LINENO: checking size of int" >&5
49784 $as_echo_n "checking size of int... " >&6; }
49785 if test "${ac_cv_sizeof_int+set}" = set; then
49786   $as_echo_n "(cached) " >&6
49787 else
49788   if test "$cross_compiling" = yes; then
49789   # Depending upon the size, compute the lo and hi bounds.
49790 cat >conftest.$ac_ext <<_ACEOF
49791 /* confdefs.h.  */
49792 _ACEOF
49793 cat confdefs.h >>conftest.$ac_ext
49794 cat >>conftest.$ac_ext <<_ACEOF
49795 /* end confdefs.h.  */
49796 $ac_includes_default
49797 int
49798 main ()
49799 {
49800 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
49801 test_array [0] = 0
49802
49803   ;
49804   return 0;
49805 }
49806 _ACEOF
49807 rm -f conftest.$ac_objext
49808 if { (ac_try="$ac_compile"
49809 case "(($ac_try" in
49810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49811   *) ac_try_echo=$ac_try;;
49812 esac
49813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49814 $as_echo "$ac_try_echo") >&5
49815   (eval "$ac_compile") 2>conftest.er1
49816   ac_status=$?
49817   grep -v '^ *+' conftest.er1 >conftest.err
49818   rm -f conftest.er1
49819   cat conftest.err >&5
49820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49821   (exit $ac_status); } && {
49822          test -z "$ac_c_werror_flag" ||
49823          test ! -s conftest.err
49824        } && test -s conftest.$ac_objext; then
49825   ac_lo=0 ac_mid=0
49826   while :; do
49827     cat >conftest.$ac_ext <<_ACEOF
49828 /* confdefs.h.  */
49829 _ACEOF
49830 cat confdefs.h >>conftest.$ac_ext
49831 cat >>conftest.$ac_ext <<_ACEOF
49832 /* end confdefs.h.  */
49833 $ac_includes_default
49834 int
49835 main ()
49836 {
49837 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
49838 test_array [0] = 0
49839
49840   ;
49841   return 0;
49842 }
49843 _ACEOF
49844 rm -f conftest.$ac_objext
49845 if { (ac_try="$ac_compile"
49846 case "(($ac_try" in
49847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49848   *) ac_try_echo=$ac_try;;
49849 esac
49850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49851 $as_echo "$ac_try_echo") >&5
49852   (eval "$ac_compile") 2>conftest.er1
49853   ac_status=$?
49854   grep -v '^ *+' conftest.er1 >conftest.err
49855   rm -f conftest.er1
49856   cat conftest.err >&5
49857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49858   (exit $ac_status); } && {
49859          test -z "$ac_c_werror_flag" ||
49860          test ! -s conftest.err
49861        } && test -s conftest.$ac_objext; then
49862   ac_hi=$ac_mid; break
49863 else
49864   $as_echo "$as_me: failed program was:" >&5
49865 sed 's/^/| /' conftest.$ac_ext >&5
49866
49867         ac_lo=`expr $ac_mid + 1`
49868                         if test $ac_lo -le $ac_mid; then
49869                           ac_lo= ac_hi=
49870                           break
49871                         fi
49872                         ac_mid=`expr 2 '*' $ac_mid + 1`
49873 fi
49874
49875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49876   done
49877 else
49878   $as_echo "$as_me: failed program was:" >&5
49879 sed 's/^/| /' conftest.$ac_ext >&5
49880
49881         cat >conftest.$ac_ext <<_ACEOF
49882 /* confdefs.h.  */
49883 _ACEOF
49884 cat confdefs.h >>conftest.$ac_ext
49885 cat >>conftest.$ac_ext <<_ACEOF
49886 /* end confdefs.h.  */
49887 $ac_includes_default
49888 int
49889 main ()
49890 {
49891 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
49892 test_array [0] = 0
49893
49894   ;
49895   return 0;
49896 }
49897 _ACEOF
49898 rm -f conftest.$ac_objext
49899 if { (ac_try="$ac_compile"
49900 case "(($ac_try" in
49901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49902   *) ac_try_echo=$ac_try;;
49903 esac
49904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49905 $as_echo "$ac_try_echo") >&5
49906   (eval "$ac_compile") 2>conftest.er1
49907   ac_status=$?
49908   grep -v '^ *+' conftest.er1 >conftest.err
49909   rm -f conftest.er1
49910   cat conftest.err >&5
49911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49912   (exit $ac_status); } && {
49913          test -z "$ac_c_werror_flag" ||
49914          test ! -s conftest.err
49915        } && test -s conftest.$ac_objext; then
49916   ac_hi=-1 ac_mid=-1
49917   while :; do
49918     cat >conftest.$ac_ext <<_ACEOF
49919 /* confdefs.h.  */
49920 _ACEOF
49921 cat confdefs.h >>conftest.$ac_ext
49922 cat >>conftest.$ac_ext <<_ACEOF
49923 /* end confdefs.h.  */
49924 $ac_includes_default
49925 int
49926 main ()
49927 {
49928 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
49929 test_array [0] = 0
49930
49931   ;
49932   return 0;
49933 }
49934 _ACEOF
49935 rm -f conftest.$ac_objext
49936 if { (ac_try="$ac_compile"
49937 case "(($ac_try" in
49938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49939   *) ac_try_echo=$ac_try;;
49940 esac
49941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49942 $as_echo "$ac_try_echo") >&5
49943   (eval "$ac_compile") 2>conftest.er1
49944   ac_status=$?
49945   grep -v '^ *+' conftest.er1 >conftest.err
49946   rm -f conftest.er1
49947   cat conftest.err >&5
49948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49949   (exit $ac_status); } && {
49950          test -z "$ac_c_werror_flag" ||
49951          test ! -s conftest.err
49952        } && test -s conftest.$ac_objext; then
49953   ac_lo=$ac_mid; break
49954 else
49955   $as_echo "$as_me: failed program was:" >&5
49956 sed 's/^/| /' conftest.$ac_ext >&5
49957
49958         ac_hi=`expr '(' $ac_mid ')' - 1`
49959                         if test $ac_mid -le $ac_hi; then
49960                           ac_lo= ac_hi=
49961                           break
49962                         fi
49963                         ac_mid=`expr 2 '*' $ac_mid`
49964 fi
49965
49966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49967   done
49968 else
49969   $as_echo "$as_me: failed program was:" >&5
49970 sed 's/^/| /' conftest.$ac_ext >&5
49971
49972         ac_lo= ac_hi=
49973 fi
49974
49975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49976 fi
49977
49978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49979 # Binary search between lo and hi bounds.
49980 while test "x$ac_lo" != "x$ac_hi"; do
49981   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49982   cat >conftest.$ac_ext <<_ACEOF
49983 /* confdefs.h.  */
49984 _ACEOF
49985 cat confdefs.h >>conftest.$ac_ext
49986 cat >>conftest.$ac_ext <<_ACEOF
49987 /* end confdefs.h.  */
49988 $ac_includes_default
49989 int
49990 main ()
49991 {
49992 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
49993 test_array [0] = 0
49994
49995   ;
49996   return 0;
49997 }
49998 _ACEOF
49999 rm -f conftest.$ac_objext
50000 if { (ac_try="$ac_compile"
50001 case "(($ac_try" in
50002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50003   *) ac_try_echo=$ac_try;;
50004 esac
50005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50006 $as_echo "$ac_try_echo") >&5
50007   (eval "$ac_compile") 2>conftest.er1
50008   ac_status=$?
50009   grep -v '^ *+' conftest.er1 >conftest.err
50010   rm -f conftest.er1
50011   cat conftest.err >&5
50012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50013   (exit $ac_status); } && {
50014          test -z "$ac_c_werror_flag" ||
50015          test ! -s conftest.err
50016        } && test -s conftest.$ac_objext; then
50017   ac_hi=$ac_mid
50018 else
50019   $as_echo "$as_me: failed program was:" >&5
50020 sed 's/^/| /' conftest.$ac_ext >&5
50021
50022         ac_lo=`expr '(' $ac_mid ')' + 1`
50023 fi
50024
50025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50026 done
50027 case $ac_lo in
50028 ?*) ac_cv_sizeof_int=$ac_lo;;
50029 '') if test "$ac_cv_type_int" = yes; then
50030      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
50031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50032 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
50033 See \`config.log' for more details." >&5
50034 $as_echo "$as_me: error: cannot compute sizeof (int)
50035 See \`config.log' for more details." >&2;}
50036    { (exit 77); exit 77; }; }; }
50037    else
50038      ac_cv_sizeof_int=0
50039    fi ;;
50040 esac
50041 else
50042   cat >conftest.$ac_ext <<_ACEOF
50043 /* confdefs.h.  */
50044 _ACEOF
50045 cat confdefs.h >>conftest.$ac_ext
50046 cat >>conftest.$ac_ext <<_ACEOF
50047 /* end confdefs.h.  */
50048 $ac_includes_default
50049 static long int longval () { return (long int) (sizeof (int)); }
50050 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
50051 #include <stdio.h>
50052 #include <stdlib.h>
50053 int
50054 main ()
50055 {
50056
50057   FILE *f = fopen ("conftest.val", "w");
50058   if (! f)
50059     return 1;
50060   if (((long int) (sizeof (int))) < 0)
50061     {
50062       long int i = longval ();
50063       if (i != ((long int) (sizeof (int))))
50064         return 1;
50065       fprintf (f, "%ld", i);
50066     }
50067   else
50068     {
50069       unsigned long int i = ulongval ();
50070       if (i != ((long int) (sizeof (int))))
50071         return 1;
50072       fprintf (f, "%lu", i);
50073     }
50074   /* Do not output a trailing newline, as this causes \r\n confusion
50075      on some platforms.  */
50076   return ferror (f) || fclose (f) != 0;
50077
50078   ;
50079   return 0;
50080 }
50081 _ACEOF
50082 rm -f conftest$ac_exeext
50083 if { (ac_try="$ac_link"
50084 case "(($ac_try" in
50085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50086   *) ac_try_echo=$ac_try;;
50087 esac
50088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50089 $as_echo "$ac_try_echo") >&5
50090   (eval "$ac_link") 2>&5
50091   ac_status=$?
50092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50094   { (case "(($ac_try" in
50095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50096   *) ac_try_echo=$ac_try;;
50097 esac
50098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50099 $as_echo "$ac_try_echo") >&5
50100   (eval "$ac_try") 2>&5
50101   ac_status=$?
50102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50103   (exit $ac_status); }; }; then
50104   ac_cv_sizeof_int=`cat conftest.val`
50105 else
50106   $as_echo "$as_me: program exited with status $ac_status" >&5
50107 $as_echo "$as_me: failed program was:" >&5
50108 sed 's/^/| /' conftest.$ac_ext >&5
50109
50110 ( exit $ac_status )
50111 if test "$ac_cv_type_int" = yes; then
50112      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
50113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50114 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
50115 See \`config.log' for more details." >&5
50116 $as_echo "$as_me: error: cannot compute sizeof (int)
50117 See \`config.log' for more details." >&2;}
50118    { (exit 77); exit 77; }; }; }
50119    else
50120      ac_cv_sizeof_int=0
50121    fi
50122 fi
50123 rm -rf conftest.dSYM
50124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50125 fi
50126 rm -f conftest.val
50127 fi
50128 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
50129 $as_echo "$ac_cv_sizeof_int" >&6; }
50130
50131
50132
50133 cat >>confdefs.h <<_ACEOF
50134 #define SIZEOF_INT $ac_cv_sizeof_int
50135 _ACEOF
50136
50137
50138 # The cast to long int works around a bug in the HP C Compiler
50139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50141 # This bug is HP SR number 8606223364.
50142 { $as_echo "$as_me:$LINENO: checking size of long" >&5
50143 $as_echo_n "checking size of long... " >&6; }
50144 if test "${ac_cv_sizeof_long+set}" = set; then
50145   $as_echo_n "(cached) " >&6
50146 else
50147   if test "$cross_compiling" = yes; then
50148   # Depending upon the size, compute the lo and hi bounds.
50149 cat >conftest.$ac_ext <<_ACEOF
50150 /* confdefs.h.  */
50151 _ACEOF
50152 cat confdefs.h >>conftest.$ac_ext
50153 cat >>conftest.$ac_ext <<_ACEOF
50154 /* end confdefs.h.  */
50155 $ac_includes_default
50156 int
50157 main ()
50158 {
50159 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
50160 test_array [0] = 0
50161
50162   ;
50163   return 0;
50164 }
50165 _ACEOF
50166 rm -f conftest.$ac_objext
50167 if { (ac_try="$ac_compile"
50168 case "(($ac_try" in
50169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50170   *) ac_try_echo=$ac_try;;
50171 esac
50172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50173 $as_echo "$ac_try_echo") >&5
50174   (eval "$ac_compile") 2>conftest.er1
50175   ac_status=$?
50176   grep -v '^ *+' conftest.er1 >conftest.err
50177   rm -f conftest.er1
50178   cat conftest.err >&5
50179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50180   (exit $ac_status); } && {
50181          test -z "$ac_c_werror_flag" ||
50182          test ! -s conftest.err
50183        } && test -s conftest.$ac_objext; then
50184   ac_lo=0 ac_mid=0
50185   while :; do
50186     cat >conftest.$ac_ext <<_ACEOF
50187 /* confdefs.h.  */
50188 _ACEOF
50189 cat confdefs.h >>conftest.$ac_ext
50190 cat >>conftest.$ac_ext <<_ACEOF
50191 /* end confdefs.h.  */
50192 $ac_includes_default
50193 int
50194 main ()
50195 {
50196 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
50197 test_array [0] = 0
50198
50199   ;
50200   return 0;
50201 }
50202 _ACEOF
50203 rm -f conftest.$ac_objext
50204 if { (ac_try="$ac_compile"
50205 case "(($ac_try" in
50206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50207   *) ac_try_echo=$ac_try;;
50208 esac
50209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50210 $as_echo "$ac_try_echo") >&5
50211   (eval "$ac_compile") 2>conftest.er1
50212   ac_status=$?
50213   grep -v '^ *+' conftest.er1 >conftest.err
50214   rm -f conftest.er1
50215   cat conftest.err >&5
50216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50217   (exit $ac_status); } && {
50218          test -z "$ac_c_werror_flag" ||
50219          test ! -s conftest.err
50220        } && test -s conftest.$ac_objext; then
50221   ac_hi=$ac_mid; break
50222 else
50223   $as_echo "$as_me: failed program was:" >&5
50224 sed 's/^/| /' conftest.$ac_ext >&5
50225
50226         ac_lo=`expr $ac_mid + 1`
50227                         if test $ac_lo -le $ac_mid; then
50228                           ac_lo= ac_hi=
50229                           break
50230                         fi
50231                         ac_mid=`expr 2 '*' $ac_mid + 1`
50232 fi
50233
50234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50235   done
50236 else
50237   $as_echo "$as_me: failed program was:" >&5
50238 sed 's/^/| /' conftest.$ac_ext >&5
50239
50240         cat >conftest.$ac_ext <<_ACEOF
50241 /* confdefs.h.  */
50242 _ACEOF
50243 cat confdefs.h >>conftest.$ac_ext
50244 cat >>conftest.$ac_ext <<_ACEOF
50245 /* end confdefs.h.  */
50246 $ac_includes_default
50247 int
50248 main ()
50249 {
50250 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
50251 test_array [0] = 0
50252
50253   ;
50254   return 0;
50255 }
50256 _ACEOF
50257 rm -f conftest.$ac_objext
50258 if { (ac_try="$ac_compile"
50259 case "(($ac_try" in
50260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50261   *) ac_try_echo=$ac_try;;
50262 esac
50263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50264 $as_echo "$ac_try_echo") >&5
50265   (eval "$ac_compile") 2>conftest.er1
50266   ac_status=$?
50267   grep -v '^ *+' conftest.er1 >conftest.err
50268   rm -f conftest.er1
50269   cat conftest.err >&5
50270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50271   (exit $ac_status); } && {
50272          test -z "$ac_c_werror_flag" ||
50273          test ! -s conftest.err
50274        } && test -s conftest.$ac_objext; then
50275   ac_hi=-1 ac_mid=-1
50276   while :; do
50277     cat >conftest.$ac_ext <<_ACEOF
50278 /* confdefs.h.  */
50279 _ACEOF
50280 cat confdefs.h >>conftest.$ac_ext
50281 cat >>conftest.$ac_ext <<_ACEOF
50282 /* end confdefs.h.  */
50283 $ac_includes_default
50284 int
50285 main ()
50286 {
50287 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
50288 test_array [0] = 0
50289
50290   ;
50291   return 0;
50292 }
50293 _ACEOF
50294 rm -f conftest.$ac_objext
50295 if { (ac_try="$ac_compile"
50296 case "(($ac_try" in
50297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50298   *) ac_try_echo=$ac_try;;
50299 esac
50300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50301 $as_echo "$ac_try_echo") >&5
50302   (eval "$ac_compile") 2>conftest.er1
50303   ac_status=$?
50304   grep -v '^ *+' conftest.er1 >conftest.err
50305   rm -f conftest.er1
50306   cat conftest.err >&5
50307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50308   (exit $ac_status); } && {
50309          test -z "$ac_c_werror_flag" ||
50310          test ! -s conftest.err
50311        } && test -s conftest.$ac_objext; then
50312   ac_lo=$ac_mid; break
50313 else
50314   $as_echo "$as_me: failed program was:" >&5
50315 sed 's/^/| /' conftest.$ac_ext >&5
50316
50317         ac_hi=`expr '(' $ac_mid ')' - 1`
50318                         if test $ac_mid -le $ac_hi; then
50319                           ac_lo= ac_hi=
50320                           break
50321                         fi
50322                         ac_mid=`expr 2 '*' $ac_mid`
50323 fi
50324
50325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50326   done
50327 else
50328   $as_echo "$as_me: failed program was:" >&5
50329 sed 's/^/| /' conftest.$ac_ext >&5
50330
50331         ac_lo= ac_hi=
50332 fi
50333
50334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50335 fi
50336
50337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50338 # Binary search between lo and hi bounds.
50339 while test "x$ac_lo" != "x$ac_hi"; do
50340   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50341   cat >conftest.$ac_ext <<_ACEOF
50342 /* confdefs.h.  */
50343 _ACEOF
50344 cat confdefs.h >>conftest.$ac_ext
50345 cat >>conftest.$ac_ext <<_ACEOF
50346 /* end confdefs.h.  */
50347 $ac_includes_default
50348 int
50349 main ()
50350 {
50351 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
50352 test_array [0] = 0
50353
50354   ;
50355   return 0;
50356 }
50357 _ACEOF
50358 rm -f conftest.$ac_objext
50359 if { (ac_try="$ac_compile"
50360 case "(($ac_try" in
50361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50362   *) ac_try_echo=$ac_try;;
50363 esac
50364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50365 $as_echo "$ac_try_echo") >&5
50366   (eval "$ac_compile") 2>conftest.er1
50367   ac_status=$?
50368   grep -v '^ *+' conftest.er1 >conftest.err
50369   rm -f conftest.er1
50370   cat conftest.err >&5
50371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50372   (exit $ac_status); } && {
50373          test -z "$ac_c_werror_flag" ||
50374          test ! -s conftest.err
50375        } && test -s conftest.$ac_objext; then
50376   ac_hi=$ac_mid
50377 else
50378   $as_echo "$as_me: failed program was:" >&5
50379 sed 's/^/| /' conftest.$ac_ext >&5
50380
50381         ac_lo=`expr '(' $ac_mid ')' + 1`
50382 fi
50383
50384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50385 done
50386 case $ac_lo in
50387 ?*) ac_cv_sizeof_long=$ac_lo;;
50388 '') if test "$ac_cv_type_long" = yes; then
50389      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
50390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50391 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
50392 See \`config.log' for more details." >&5
50393 $as_echo "$as_me: error: cannot compute sizeof (long)
50394 See \`config.log' for more details." >&2;}
50395    { (exit 77); exit 77; }; }; }
50396    else
50397      ac_cv_sizeof_long=0
50398    fi ;;
50399 esac
50400 else
50401   cat >conftest.$ac_ext <<_ACEOF
50402 /* confdefs.h.  */
50403 _ACEOF
50404 cat confdefs.h >>conftest.$ac_ext
50405 cat >>conftest.$ac_ext <<_ACEOF
50406 /* end confdefs.h.  */
50407 $ac_includes_default
50408 static long int longval () { return (long int) (sizeof (long)); }
50409 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
50410 #include <stdio.h>
50411 #include <stdlib.h>
50412 int
50413 main ()
50414 {
50415
50416   FILE *f = fopen ("conftest.val", "w");
50417   if (! f)
50418     return 1;
50419   if (((long int) (sizeof (long))) < 0)
50420     {
50421       long int i = longval ();
50422       if (i != ((long int) (sizeof (long))))
50423         return 1;
50424       fprintf (f, "%ld", i);
50425     }
50426   else
50427     {
50428       unsigned long int i = ulongval ();
50429       if (i != ((long int) (sizeof (long))))
50430         return 1;
50431       fprintf (f, "%lu", i);
50432     }
50433   /* Do not output a trailing newline, as this causes \r\n confusion
50434      on some platforms.  */
50435   return ferror (f) || fclose (f) != 0;
50436
50437   ;
50438   return 0;
50439 }
50440 _ACEOF
50441 rm -f conftest$ac_exeext
50442 if { (ac_try="$ac_link"
50443 case "(($ac_try" in
50444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50445   *) ac_try_echo=$ac_try;;
50446 esac
50447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50448 $as_echo "$ac_try_echo") >&5
50449   (eval "$ac_link") 2>&5
50450   ac_status=$?
50451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50452   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50453   { (case "(($ac_try" in
50454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50455   *) ac_try_echo=$ac_try;;
50456 esac
50457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50458 $as_echo "$ac_try_echo") >&5
50459   (eval "$ac_try") 2>&5
50460   ac_status=$?
50461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50462   (exit $ac_status); }; }; then
50463   ac_cv_sizeof_long=`cat conftest.val`
50464 else
50465   $as_echo "$as_me: program exited with status $ac_status" >&5
50466 $as_echo "$as_me: failed program was:" >&5
50467 sed 's/^/| /' conftest.$ac_ext >&5
50468
50469 ( exit $ac_status )
50470 if test "$ac_cv_type_long" = yes; then
50471      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
50472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50473 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
50474 See \`config.log' for more details." >&5
50475 $as_echo "$as_me: error: cannot compute sizeof (long)
50476 See \`config.log' for more details." >&2;}
50477    { (exit 77); exit 77; }; }; }
50478    else
50479      ac_cv_sizeof_long=0
50480    fi
50481 fi
50482 rm -rf conftest.dSYM
50483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50484 fi
50485 rm -f conftest.val
50486 fi
50487 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
50488 $as_echo "$ac_cv_sizeof_long" >&6; }
50489
50490
50491
50492 cat >>confdefs.h <<_ACEOF
50493 #define SIZEOF_LONG $ac_cv_sizeof_long
50494 _ACEOF
50495
50496
50497 # The cast to long int works around a bug in the HP C Compiler
50498 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50499 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50500 # This bug is HP SR number 8606223364.
50501 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
50502 $as_echo_n "checking size of long long... " >&6; }
50503 if test "${ac_cv_sizeof_long_long+set}" = set; then
50504   $as_echo_n "(cached) " >&6
50505 else
50506   if test "$cross_compiling" = yes; then
50507   # Depending upon the size, compute the lo and hi bounds.
50508 cat >conftest.$ac_ext <<_ACEOF
50509 /* confdefs.h.  */
50510 _ACEOF
50511 cat confdefs.h >>conftest.$ac_ext
50512 cat >>conftest.$ac_ext <<_ACEOF
50513 /* end confdefs.h.  */
50514 $ac_includes_default
50515 int
50516 main ()
50517 {
50518 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
50519 test_array [0] = 0
50520
50521   ;
50522   return 0;
50523 }
50524 _ACEOF
50525 rm -f conftest.$ac_objext
50526 if { (ac_try="$ac_compile"
50527 case "(($ac_try" in
50528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50529   *) ac_try_echo=$ac_try;;
50530 esac
50531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50532 $as_echo "$ac_try_echo") >&5
50533   (eval "$ac_compile") 2>conftest.er1
50534   ac_status=$?
50535   grep -v '^ *+' conftest.er1 >conftest.err
50536   rm -f conftest.er1
50537   cat conftest.err >&5
50538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50539   (exit $ac_status); } && {
50540          test -z "$ac_c_werror_flag" ||
50541          test ! -s conftest.err
50542        } && test -s conftest.$ac_objext; then
50543   ac_lo=0 ac_mid=0
50544   while :; do
50545     cat >conftest.$ac_ext <<_ACEOF
50546 /* confdefs.h.  */
50547 _ACEOF
50548 cat confdefs.h >>conftest.$ac_ext
50549 cat >>conftest.$ac_ext <<_ACEOF
50550 /* end confdefs.h.  */
50551 $ac_includes_default
50552 int
50553 main ()
50554 {
50555 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
50556 test_array [0] = 0
50557
50558   ;
50559   return 0;
50560 }
50561 _ACEOF
50562 rm -f conftest.$ac_objext
50563 if { (ac_try="$ac_compile"
50564 case "(($ac_try" in
50565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50566   *) ac_try_echo=$ac_try;;
50567 esac
50568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50569 $as_echo "$ac_try_echo") >&5
50570   (eval "$ac_compile") 2>conftest.er1
50571   ac_status=$?
50572   grep -v '^ *+' conftest.er1 >conftest.err
50573   rm -f conftest.er1
50574   cat conftest.err >&5
50575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50576   (exit $ac_status); } && {
50577          test -z "$ac_c_werror_flag" ||
50578          test ! -s conftest.err
50579        } && test -s conftest.$ac_objext; then
50580   ac_hi=$ac_mid; break
50581 else
50582   $as_echo "$as_me: failed program was:" >&5
50583 sed 's/^/| /' conftest.$ac_ext >&5
50584
50585         ac_lo=`expr $ac_mid + 1`
50586                         if test $ac_lo -le $ac_mid; then
50587                           ac_lo= ac_hi=
50588                           break
50589                         fi
50590                         ac_mid=`expr 2 '*' $ac_mid + 1`
50591 fi
50592
50593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50594   done
50595 else
50596   $as_echo "$as_me: failed program was:" >&5
50597 sed 's/^/| /' conftest.$ac_ext >&5
50598
50599         cat >conftest.$ac_ext <<_ACEOF
50600 /* confdefs.h.  */
50601 _ACEOF
50602 cat confdefs.h >>conftest.$ac_ext
50603 cat >>conftest.$ac_ext <<_ACEOF
50604 /* end confdefs.h.  */
50605 $ac_includes_default
50606 int
50607 main ()
50608 {
50609 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
50610 test_array [0] = 0
50611
50612   ;
50613   return 0;
50614 }
50615 _ACEOF
50616 rm -f conftest.$ac_objext
50617 if { (ac_try="$ac_compile"
50618 case "(($ac_try" in
50619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50620   *) ac_try_echo=$ac_try;;
50621 esac
50622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50623 $as_echo "$ac_try_echo") >&5
50624   (eval "$ac_compile") 2>conftest.er1
50625   ac_status=$?
50626   grep -v '^ *+' conftest.er1 >conftest.err
50627   rm -f conftest.er1
50628   cat conftest.err >&5
50629   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50630   (exit $ac_status); } && {
50631          test -z "$ac_c_werror_flag" ||
50632          test ! -s conftest.err
50633        } && test -s conftest.$ac_objext; then
50634   ac_hi=-1 ac_mid=-1
50635   while :; do
50636     cat >conftest.$ac_ext <<_ACEOF
50637 /* confdefs.h.  */
50638 _ACEOF
50639 cat confdefs.h >>conftest.$ac_ext
50640 cat >>conftest.$ac_ext <<_ACEOF
50641 /* end confdefs.h.  */
50642 $ac_includes_default
50643 int
50644 main ()
50645 {
50646 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
50647 test_array [0] = 0
50648
50649   ;
50650   return 0;
50651 }
50652 _ACEOF
50653 rm -f conftest.$ac_objext
50654 if { (ac_try="$ac_compile"
50655 case "(($ac_try" in
50656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50657   *) ac_try_echo=$ac_try;;
50658 esac
50659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50660 $as_echo "$ac_try_echo") >&5
50661   (eval "$ac_compile") 2>conftest.er1
50662   ac_status=$?
50663   grep -v '^ *+' conftest.er1 >conftest.err
50664   rm -f conftest.er1
50665   cat conftest.err >&5
50666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50667   (exit $ac_status); } && {
50668          test -z "$ac_c_werror_flag" ||
50669          test ! -s conftest.err
50670        } && test -s conftest.$ac_objext; then
50671   ac_lo=$ac_mid; break
50672 else
50673   $as_echo "$as_me: failed program was:" >&5
50674 sed 's/^/| /' conftest.$ac_ext >&5
50675
50676         ac_hi=`expr '(' $ac_mid ')' - 1`
50677                         if test $ac_mid -le $ac_hi; then
50678                           ac_lo= ac_hi=
50679                           break
50680                         fi
50681                         ac_mid=`expr 2 '*' $ac_mid`
50682 fi
50683
50684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50685   done
50686 else
50687   $as_echo "$as_me: failed program was:" >&5
50688 sed 's/^/| /' conftest.$ac_ext >&5
50689
50690         ac_lo= ac_hi=
50691 fi
50692
50693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50694 fi
50695
50696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50697 # Binary search between lo and hi bounds.
50698 while test "x$ac_lo" != "x$ac_hi"; do
50699   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50700   cat >conftest.$ac_ext <<_ACEOF
50701 /* confdefs.h.  */
50702 _ACEOF
50703 cat confdefs.h >>conftest.$ac_ext
50704 cat >>conftest.$ac_ext <<_ACEOF
50705 /* end confdefs.h.  */
50706 $ac_includes_default
50707 int
50708 main ()
50709 {
50710 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
50711 test_array [0] = 0
50712
50713   ;
50714   return 0;
50715 }
50716 _ACEOF
50717 rm -f conftest.$ac_objext
50718 if { (ac_try="$ac_compile"
50719 case "(($ac_try" in
50720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50721   *) ac_try_echo=$ac_try;;
50722 esac
50723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50724 $as_echo "$ac_try_echo") >&5
50725   (eval "$ac_compile") 2>conftest.er1
50726   ac_status=$?
50727   grep -v '^ *+' conftest.er1 >conftest.err
50728   rm -f conftest.er1
50729   cat conftest.err >&5
50730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50731   (exit $ac_status); } && {
50732          test -z "$ac_c_werror_flag" ||
50733          test ! -s conftest.err
50734        } && test -s conftest.$ac_objext; then
50735   ac_hi=$ac_mid
50736 else
50737   $as_echo "$as_me: failed program was:" >&5
50738 sed 's/^/| /' conftest.$ac_ext >&5
50739
50740         ac_lo=`expr '(' $ac_mid ')' + 1`
50741 fi
50742
50743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50744 done
50745 case $ac_lo in
50746 ?*) ac_cv_sizeof_long_long=$ac_lo;;
50747 '') if test "$ac_cv_type_long_long" = yes; then
50748      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
50749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50750 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
50751 See \`config.log' for more details." >&5
50752 $as_echo "$as_me: error: cannot compute sizeof (long long)
50753 See \`config.log' for more details." >&2;}
50754    { (exit 77); exit 77; }; }; }
50755    else
50756      ac_cv_sizeof_long_long=0
50757    fi ;;
50758 esac
50759 else
50760   cat >conftest.$ac_ext <<_ACEOF
50761 /* confdefs.h.  */
50762 _ACEOF
50763 cat confdefs.h >>conftest.$ac_ext
50764 cat >>conftest.$ac_ext <<_ACEOF
50765 /* end confdefs.h.  */
50766 $ac_includes_default
50767 static long int longval () { return (long int) (sizeof (long long)); }
50768 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
50769 #include <stdio.h>
50770 #include <stdlib.h>
50771 int
50772 main ()
50773 {
50774
50775   FILE *f = fopen ("conftest.val", "w");
50776   if (! f)
50777     return 1;
50778   if (((long int) (sizeof (long long))) < 0)
50779     {
50780       long int i = longval ();
50781       if (i != ((long int) (sizeof (long long))))
50782         return 1;
50783       fprintf (f, "%ld", i);
50784     }
50785   else
50786     {
50787       unsigned long int i = ulongval ();
50788       if (i != ((long int) (sizeof (long long))))
50789         return 1;
50790       fprintf (f, "%lu", i);
50791     }
50792   /* Do not output a trailing newline, as this causes \r\n confusion
50793      on some platforms.  */
50794   return ferror (f) || fclose (f) != 0;
50795
50796   ;
50797   return 0;
50798 }
50799 _ACEOF
50800 rm -f conftest$ac_exeext
50801 if { (ac_try="$ac_link"
50802 case "(($ac_try" in
50803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50804   *) ac_try_echo=$ac_try;;
50805 esac
50806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50807 $as_echo "$ac_try_echo") >&5
50808   (eval "$ac_link") 2>&5
50809   ac_status=$?
50810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50811   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50812   { (case "(($ac_try" in
50813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50814   *) ac_try_echo=$ac_try;;
50815 esac
50816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50817 $as_echo "$ac_try_echo") >&5
50818   (eval "$ac_try") 2>&5
50819   ac_status=$?
50820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50821   (exit $ac_status); }; }; then
50822   ac_cv_sizeof_long_long=`cat conftest.val`
50823 else
50824   $as_echo "$as_me: program exited with status $ac_status" >&5
50825 $as_echo "$as_me: failed program was:" >&5
50826 sed 's/^/| /' conftest.$ac_ext >&5
50827
50828 ( exit $ac_status )
50829 if test "$ac_cv_type_long_long" = yes; then
50830      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
50831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50832 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
50833 See \`config.log' for more details." >&5
50834 $as_echo "$as_me: error: cannot compute sizeof (long long)
50835 See \`config.log' for more details." >&2;}
50836    { (exit 77); exit 77; }; }; }
50837    else
50838      ac_cv_sizeof_long_long=0
50839    fi
50840 fi
50841 rm -rf conftest.dSYM
50842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50843 fi
50844 rm -f conftest.val
50845 fi
50846 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
50847 $as_echo "$ac_cv_sizeof_long_long" >&6; }
50848
50849
50850
50851 cat >>confdefs.h <<_ACEOF
50852 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
50853 _ACEOF
50854
50855
50856 # The cast to long int works around a bug in the HP C Compiler
50857 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50858 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50859 # This bug is HP SR number 8606223364.
50860 { $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
50861 $as_echo_n "checking size of intmax_t... " >&6; }
50862 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
50863   $as_echo_n "(cached) " >&6
50864 else
50865   if test "$cross_compiling" = yes; then
50866   # Depending upon the size, compute the lo and hi bounds.
50867 cat >conftest.$ac_ext <<_ACEOF
50868 /* confdefs.h.  */
50869 _ACEOF
50870 cat confdefs.h >>conftest.$ac_ext
50871 cat >>conftest.$ac_ext <<_ACEOF
50872 /* end confdefs.h.  */
50873 $ac_includes_default
50874 int
50875 main ()
50876 {
50877 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)];
50878 test_array [0] = 0
50879
50880   ;
50881   return 0;
50882 }
50883 _ACEOF
50884 rm -f conftest.$ac_objext
50885 if { (ac_try="$ac_compile"
50886 case "(($ac_try" in
50887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50888   *) ac_try_echo=$ac_try;;
50889 esac
50890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50891 $as_echo "$ac_try_echo") >&5
50892   (eval "$ac_compile") 2>conftest.er1
50893   ac_status=$?
50894   grep -v '^ *+' conftest.er1 >conftest.err
50895   rm -f conftest.er1
50896   cat conftest.err >&5
50897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50898   (exit $ac_status); } && {
50899          test -z "$ac_c_werror_flag" ||
50900          test ! -s conftest.err
50901        } && test -s conftest.$ac_objext; then
50902   ac_lo=0 ac_mid=0
50903   while :; do
50904     cat >conftest.$ac_ext <<_ACEOF
50905 /* confdefs.h.  */
50906 _ACEOF
50907 cat confdefs.h >>conftest.$ac_ext
50908 cat >>conftest.$ac_ext <<_ACEOF
50909 /* end confdefs.h.  */
50910 $ac_includes_default
50911 int
50912 main ()
50913 {
50914 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
50915 test_array [0] = 0
50916
50917   ;
50918   return 0;
50919 }
50920 _ACEOF
50921 rm -f conftest.$ac_objext
50922 if { (ac_try="$ac_compile"
50923 case "(($ac_try" in
50924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50925   *) ac_try_echo=$ac_try;;
50926 esac
50927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50928 $as_echo "$ac_try_echo") >&5
50929   (eval "$ac_compile") 2>conftest.er1
50930   ac_status=$?
50931   grep -v '^ *+' conftest.er1 >conftest.err
50932   rm -f conftest.er1
50933   cat conftest.err >&5
50934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50935   (exit $ac_status); } && {
50936          test -z "$ac_c_werror_flag" ||
50937          test ! -s conftest.err
50938        } && test -s conftest.$ac_objext; then
50939   ac_hi=$ac_mid; break
50940 else
50941   $as_echo "$as_me: failed program was:" >&5
50942 sed 's/^/| /' conftest.$ac_ext >&5
50943
50944         ac_lo=`expr $ac_mid + 1`
50945                         if test $ac_lo -le $ac_mid; then
50946                           ac_lo= ac_hi=
50947                           break
50948                         fi
50949                         ac_mid=`expr 2 '*' $ac_mid + 1`
50950 fi
50951
50952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50953   done
50954 else
50955   $as_echo "$as_me: failed program was:" >&5
50956 sed 's/^/| /' conftest.$ac_ext >&5
50957
50958         cat >conftest.$ac_ext <<_ACEOF
50959 /* confdefs.h.  */
50960 _ACEOF
50961 cat confdefs.h >>conftest.$ac_ext
50962 cat >>conftest.$ac_ext <<_ACEOF
50963 /* end confdefs.h.  */
50964 $ac_includes_default
50965 int
50966 main ()
50967 {
50968 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)];
50969 test_array [0] = 0
50970
50971   ;
50972   return 0;
50973 }
50974 _ACEOF
50975 rm -f conftest.$ac_objext
50976 if { (ac_try="$ac_compile"
50977 case "(($ac_try" in
50978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50979   *) ac_try_echo=$ac_try;;
50980 esac
50981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50982 $as_echo "$ac_try_echo") >&5
50983   (eval "$ac_compile") 2>conftest.er1
50984   ac_status=$?
50985   grep -v '^ *+' conftest.er1 >conftest.err
50986   rm -f conftest.er1
50987   cat conftest.err >&5
50988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50989   (exit $ac_status); } && {
50990          test -z "$ac_c_werror_flag" ||
50991          test ! -s conftest.err
50992        } && test -s conftest.$ac_objext; then
50993   ac_hi=-1 ac_mid=-1
50994   while :; do
50995     cat >conftest.$ac_ext <<_ACEOF
50996 /* confdefs.h.  */
50997 _ACEOF
50998 cat confdefs.h >>conftest.$ac_ext
50999 cat >>conftest.$ac_ext <<_ACEOF
51000 /* end confdefs.h.  */
51001 $ac_includes_default
51002 int
51003 main ()
51004 {
51005 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)];
51006 test_array [0] = 0
51007
51008   ;
51009   return 0;
51010 }
51011 _ACEOF
51012 rm -f conftest.$ac_objext
51013 if { (ac_try="$ac_compile"
51014 case "(($ac_try" in
51015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51016   *) ac_try_echo=$ac_try;;
51017 esac
51018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51019 $as_echo "$ac_try_echo") >&5
51020   (eval "$ac_compile") 2>conftest.er1
51021   ac_status=$?
51022   grep -v '^ *+' conftest.er1 >conftest.err
51023   rm -f conftest.er1
51024   cat conftest.err >&5
51025   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51026   (exit $ac_status); } && {
51027          test -z "$ac_c_werror_flag" ||
51028          test ! -s conftest.err
51029        } && test -s conftest.$ac_objext; then
51030   ac_lo=$ac_mid; break
51031 else
51032   $as_echo "$as_me: failed program was:" >&5
51033 sed 's/^/| /' conftest.$ac_ext >&5
51034
51035         ac_hi=`expr '(' $ac_mid ')' - 1`
51036                         if test $ac_mid -le $ac_hi; then
51037                           ac_lo= ac_hi=
51038                           break
51039                         fi
51040                         ac_mid=`expr 2 '*' $ac_mid`
51041 fi
51042
51043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51044   done
51045 else
51046   $as_echo "$as_me: failed program was:" >&5
51047 sed 's/^/| /' conftest.$ac_ext >&5
51048
51049         ac_lo= ac_hi=
51050 fi
51051
51052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51053 fi
51054
51055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51056 # Binary search between lo and hi bounds.
51057 while test "x$ac_lo" != "x$ac_hi"; do
51058   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
51059   cat >conftest.$ac_ext <<_ACEOF
51060 /* confdefs.h.  */
51061 _ACEOF
51062 cat confdefs.h >>conftest.$ac_ext
51063 cat >>conftest.$ac_ext <<_ACEOF
51064 /* end confdefs.h.  */
51065 $ac_includes_default
51066 int
51067 main ()
51068 {
51069 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
51070 test_array [0] = 0
51071
51072   ;
51073   return 0;
51074 }
51075 _ACEOF
51076 rm -f conftest.$ac_objext
51077 if { (ac_try="$ac_compile"
51078 case "(($ac_try" in
51079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51080   *) ac_try_echo=$ac_try;;
51081 esac
51082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51083 $as_echo "$ac_try_echo") >&5
51084   (eval "$ac_compile") 2>conftest.er1
51085   ac_status=$?
51086   grep -v '^ *+' conftest.er1 >conftest.err
51087   rm -f conftest.er1
51088   cat conftest.err >&5
51089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51090   (exit $ac_status); } && {
51091          test -z "$ac_c_werror_flag" ||
51092          test ! -s conftest.err
51093        } && test -s conftest.$ac_objext; then
51094   ac_hi=$ac_mid
51095 else
51096   $as_echo "$as_me: failed program was:" >&5
51097 sed 's/^/| /' conftest.$ac_ext >&5
51098
51099         ac_lo=`expr '(' $ac_mid ')' + 1`
51100 fi
51101
51102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51103 done
51104 case $ac_lo in
51105 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
51106 '') if test "$ac_cv_type_intmax_t" = yes; then
51107      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
51108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51109 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
51110 See \`config.log' for more details." >&5
51111 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
51112 See \`config.log' for more details." >&2;}
51113    { (exit 77); exit 77; }; }; }
51114    else
51115      ac_cv_sizeof_intmax_t=0
51116    fi ;;
51117 esac
51118 else
51119   cat >conftest.$ac_ext <<_ACEOF
51120 /* confdefs.h.  */
51121 _ACEOF
51122 cat confdefs.h >>conftest.$ac_ext
51123 cat >>conftest.$ac_ext <<_ACEOF
51124 /* end confdefs.h.  */
51125 $ac_includes_default
51126 static long int longval () { return (long int) (sizeof (intmax_t)); }
51127 static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
51128 #include <stdio.h>
51129 #include <stdlib.h>
51130 int
51131 main ()
51132 {
51133
51134   FILE *f = fopen ("conftest.val", "w");
51135   if (! f)
51136     return 1;
51137   if (((long int) (sizeof (intmax_t))) < 0)
51138     {
51139       long int i = longval ();
51140       if (i != ((long int) (sizeof (intmax_t))))
51141         return 1;
51142       fprintf (f, "%ld", i);
51143     }
51144   else
51145     {
51146       unsigned long int i = ulongval ();
51147       if (i != ((long int) (sizeof (intmax_t))))
51148         return 1;
51149       fprintf (f, "%lu", i);
51150     }
51151   /* Do not output a trailing newline, as this causes \r\n confusion
51152      on some platforms.  */
51153   return ferror (f) || fclose (f) != 0;
51154
51155   ;
51156   return 0;
51157 }
51158 _ACEOF
51159 rm -f conftest$ac_exeext
51160 if { (ac_try="$ac_link"
51161 case "(($ac_try" in
51162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51163   *) ac_try_echo=$ac_try;;
51164 esac
51165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51166 $as_echo "$ac_try_echo") >&5
51167   (eval "$ac_link") 2>&5
51168   ac_status=$?
51169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51171   { (case "(($ac_try" in
51172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51173   *) ac_try_echo=$ac_try;;
51174 esac
51175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51176 $as_echo "$ac_try_echo") >&5
51177   (eval "$ac_try") 2>&5
51178   ac_status=$?
51179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51180   (exit $ac_status); }; }; then
51181   ac_cv_sizeof_intmax_t=`cat conftest.val`
51182 else
51183   $as_echo "$as_me: program exited with status $ac_status" >&5
51184 $as_echo "$as_me: failed program was:" >&5
51185 sed 's/^/| /' conftest.$ac_ext >&5
51186
51187 ( exit $ac_status )
51188 if test "$ac_cv_type_intmax_t" = yes; then
51189      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
51190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51191 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
51192 See \`config.log' for more details." >&5
51193 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
51194 See \`config.log' for more details." >&2;}
51195    { (exit 77); exit 77; }; }; }
51196    else
51197      ac_cv_sizeof_intmax_t=0
51198    fi
51199 fi
51200 rm -rf conftest.dSYM
51201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51202 fi
51203 rm -f conftest.val
51204 fi
51205 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
51206 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
51207
51208
51209
51210 cat >>confdefs.h <<_ACEOF
51211 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
51212 _ACEOF
51213
51214
51215 # The cast to long int works around a bug in the HP C Compiler
51216 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51217 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51218 # This bug is HP SR number 8606223364.
51219 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
51220 $as_echo_n "checking size of off_t... " >&6; }
51221 if test "${ac_cv_sizeof_off_t+set}" = set; then
51222   $as_echo_n "(cached) " >&6
51223 else
51224   if test "$cross_compiling" = yes; then
51225   # Depending upon the size, compute the lo and hi bounds.
51226 cat >conftest.$ac_ext <<_ACEOF
51227 /* confdefs.h.  */
51228 _ACEOF
51229 cat confdefs.h >>conftest.$ac_ext
51230 cat >>conftest.$ac_ext <<_ACEOF
51231 /* end confdefs.h.  */
51232 $ac_includes_default
51233 int
51234 main ()
51235 {
51236 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
51237 test_array [0] = 0
51238
51239   ;
51240   return 0;
51241 }
51242 _ACEOF
51243 rm -f conftest.$ac_objext
51244 if { (ac_try="$ac_compile"
51245 case "(($ac_try" in
51246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51247   *) ac_try_echo=$ac_try;;
51248 esac
51249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51250 $as_echo "$ac_try_echo") >&5
51251   (eval "$ac_compile") 2>conftest.er1
51252   ac_status=$?
51253   grep -v '^ *+' conftest.er1 >conftest.err
51254   rm -f conftest.er1
51255   cat conftest.err >&5
51256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51257   (exit $ac_status); } && {
51258          test -z "$ac_c_werror_flag" ||
51259          test ! -s conftest.err
51260        } && test -s conftest.$ac_objext; then
51261   ac_lo=0 ac_mid=0
51262   while :; do
51263     cat >conftest.$ac_ext <<_ACEOF
51264 /* confdefs.h.  */
51265 _ACEOF
51266 cat confdefs.h >>conftest.$ac_ext
51267 cat >>conftest.$ac_ext <<_ACEOF
51268 /* end confdefs.h.  */
51269 $ac_includes_default
51270 int
51271 main ()
51272 {
51273 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
51274 test_array [0] = 0
51275
51276   ;
51277   return 0;
51278 }
51279 _ACEOF
51280 rm -f conftest.$ac_objext
51281 if { (ac_try="$ac_compile"
51282 case "(($ac_try" in
51283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51284   *) ac_try_echo=$ac_try;;
51285 esac
51286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51287 $as_echo "$ac_try_echo") >&5
51288   (eval "$ac_compile") 2>conftest.er1
51289   ac_status=$?
51290   grep -v '^ *+' conftest.er1 >conftest.err
51291   rm -f conftest.er1
51292   cat conftest.err >&5
51293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51294   (exit $ac_status); } && {
51295          test -z "$ac_c_werror_flag" ||
51296          test ! -s conftest.err
51297        } && test -s conftest.$ac_objext; then
51298   ac_hi=$ac_mid; break
51299 else
51300   $as_echo "$as_me: failed program was:" >&5
51301 sed 's/^/| /' conftest.$ac_ext >&5
51302
51303         ac_lo=`expr $ac_mid + 1`
51304                         if test $ac_lo -le $ac_mid; then
51305                           ac_lo= ac_hi=
51306                           break
51307                         fi
51308                         ac_mid=`expr 2 '*' $ac_mid + 1`
51309 fi
51310
51311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51312   done
51313 else
51314   $as_echo "$as_me: failed program was:" >&5
51315 sed 's/^/| /' conftest.$ac_ext >&5
51316
51317         cat >conftest.$ac_ext <<_ACEOF
51318 /* confdefs.h.  */
51319 _ACEOF
51320 cat confdefs.h >>conftest.$ac_ext
51321 cat >>conftest.$ac_ext <<_ACEOF
51322 /* end confdefs.h.  */
51323 $ac_includes_default
51324 int
51325 main ()
51326 {
51327 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
51328 test_array [0] = 0
51329
51330   ;
51331   return 0;
51332 }
51333 _ACEOF
51334 rm -f conftest.$ac_objext
51335 if { (ac_try="$ac_compile"
51336 case "(($ac_try" in
51337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51338   *) ac_try_echo=$ac_try;;
51339 esac
51340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51341 $as_echo "$ac_try_echo") >&5
51342   (eval "$ac_compile") 2>conftest.er1
51343   ac_status=$?
51344   grep -v '^ *+' conftest.er1 >conftest.err
51345   rm -f conftest.er1
51346   cat conftest.err >&5
51347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51348   (exit $ac_status); } && {
51349          test -z "$ac_c_werror_flag" ||
51350          test ! -s conftest.err
51351        } && test -s conftest.$ac_objext; then
51352   ac_hi=-1 ac_mid=-1
51353   while :; do
51354     cat >conftest.$ac_ext <<_ACEOF
51355 /* confdefs.h.  */
51356 _ACEOF
51357 cat confdefs.h >>conftest.$ac_ext
51358 cat >>conftest.$ac_ext <<_ACEOF
51359 /* end confdefs.h.  */
51360 $ac_includes_default
51361 int
51362 main ()
51363 {
51364 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
51365 test_array [0] = 0
51366
51367   ;
51368   return 0;
51369 }
51370 _ACEOF
51371 rm -f conftest.$ac_objext
51372 if { (ac_try="$ac_compile"
51373 case "(($ac_try" in
51374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51375   *) ac_try_echo=$ac_try;;
51376 esac
51377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51378 $as_echo "$ac_try_echo") >&5
51379   (eval "$ac_compile") 2>conftest.er1
51380   ac_status=$?
51381   grep -v '^ *+' conftest.er1 >conftest.err
51382   rm -f conftest.er1
51383   cat conftest.err >&5
51384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51385   (exit $ac_status); } && {
51386          test -z "$ac_c_werror_flag" ||
51387          test ! -s conftest.err
51388        } && test -s conftest.$ac_objext; then
51389   ac_lo=$ac_mid; break
51390 else
51391   $as_echo "$as_me: failed program was:" >&5
51392 sed 's/^/| /' conftest.$ac_ext >&5
51393
51394         ac_hi=`expr '(' $ac_mid ')' - 1`
51395                         if test $ac_mid -le $ac_hi; then
51396                           ac_lo= ac_hi=
51397                           break
51398                         fi
51399                         ac_mid=`expr 2 '*' $ac_mid`
51400 fi
51401
51402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51403   done
51404 else
51405   $as_echo "$as_me: failed program was:" >&5
51406 sed 's/^/| /' conftest.$ac_ext >&5
51407
51408         ac_lo= ac_hi=
51409 fi
51410
51411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51412 fi
51413
51414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51415 # Binary search between lo and hi bounds.
51416 while test "x$ac_lo" != "x$ac_hi"; do
51417   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
51418   cat >conftest.$ac_ext <<_ACEOF
51419 /* confdefs.h.  */
51420 _ACEOF
51421 cat confdefs.h >>conftest.$ac_ext
51422 cat >>conftest.$ac_ext <<_ACEOF
51423 /* end confdefs.h.  */
51424 $ac_includes_default
51425 int
51426 main ()
51427 {
51428 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
51429 test_array [0] = 0
51430
51431   ;
51432   return 0;
51433 }
51434 _ACEOF
51435 rm -f conftest.$ac_objext
51436 if { (ac_try="$ac_compile"
51437 case "(($ac_try" in
51438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51439   *) ac_try_echo=$ac_try;;
51440 esac
51441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51442 $as_echo "$ac_try_echo") >&5
51443   (eval "$ac_compile") 2>conftest.er1
51444   ac_status=$?
51445   grep -v '^ *+' conftest.er1 >conftest.err
51446   rm -f conftest.er1
51447   cat conftest.err >&5
51448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51449   (exit $ac_status); } && {
51450          test -z "$ac_c_werror_flag" ||
51451          test ! -s conftest.err
51452        } && test -s conftest.$ac_objext; then
51453   ac_hi=$ac_mid
51454 else
51455   $as_echo "$as_me: failed program was:" >&5
51456 sed 's/^/| /' conftest.$ac_ext >&5
51457
51458         ac_lo=`expr '(' $ac_mid ')' + 1`
51459 fi
51460
51461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51462 done
51463 case $ac_lo in
51464 ?*) ac_cv_sizeof_off_t=$ac_lo;;
51465 '') if test "$ac_cv_type_off_t" = yes; then
51466      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
51467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51468 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
51469 See \`config.log' for more details." >&5
51470 $as_echo "$as_me: error: cannot compute sizeof (off_t)
51471 See \`config.log' for more details." >&2;}
51472    { (exit 77); exit 77; }; }; }
51473    else
51474      ac_cv_sizeof_off_t=0
51475    fi ;;
51476 esac
51477 else
51478   cat >conftest.$ac_ext <<_ACEOF
51479 /* confdefs.h.  */
51480 _ACEOF
51481 cat confdefs.h >>conftest.$ac_ext
51482 cat >>conftest.$ac_ext <<_ACEOF
51483 /* end confdefs.h.  */
51484 $ac_includes_default
51485 static long int longval () { return (long int) (sizeof (off_t)); }
51486 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
51487 #include <stdio.h>
51488 #include <stdlib.h>
51489 int
51490 main ()
51491 {
51492
51493   FILE *f = fopen ("conftest.val", "w");
51494   if (! f)
51495     return 1;
51496   if (((long int) (sizeof (off_t))) < 0)
51497     {
51498       long int i = longval ();
51499       if (i != ((long int) (sizeof (off_t))))
51500         return 1;
51501       fprintf (f, "%ld", i);
51502     }
51503   else
51504     {
51505       unsigned long int i = ulongval ();
51506       if (i != ((long int) (sizeof (off_t))))
51507         return 1;
51508       fprintf (f, "%lu", i);
51509     }
51510   /* Do not output a trailing newline, as this causes \r\n confusion
51511      on some platforms.  */
51512   return ferror (f) || fclose (f) != 0;
51513
51514   ;
51515   return 0;
51516 }
51517 _ACEOF
51518 rm -f conftest$ac_exeext
51519 if { (ac_try="$ac_link"
51520 case "(($ac_try" in
51521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51522   *) ac_try_echo=$ac_try;;
51523 esac
51524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51525 $as_echo "$ac_try_echo") >&5
51526   (eval "$ac_link") 2>&5
51527   ac_status=$?
51528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51529   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51530   { (case "(($ac_try" in
51531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51532   *) ac_try_echo=$ac_try;;
51533 esac
51534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51535 $as_echo "$ac_try_echo") >&5
51536   (eval "$ac_try") 2>&5
51537   ac_status=$?
51538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51539   (exit $ac_status); }; }; then
51540   ac_cv_sizeof_off_t=`cat conftest.val`
51541 else
51542   $as_echo "$as_me: program exited with status $ac_status" >&5
51543 $as_echo "$as_me: failed program was:" >&5
51544 sed 's/^/| /' conftest.$ac_ext >&5
51545
51546 ( exit $ac_status )
51547 if test "$ac_cv_type_off_t" = yes; then
51548      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
51549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51550 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
51551 See \`config.log' for more details." >&5
51552 $as_echo "$as_me: error: cannot compute sizeof (off_t)
51553 See \`config.log' for more details." >&2;}
51554    { (exit 77); exit 77; }; }; }
51555    else
51556      ac_cv_sizeof_off_t=0
51557    fi
51558 fi
51559 rm -rf conftest.dSYM
51560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51561 fi
51562 rm -f conftest.val
51563 fi
51564 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
51565 $as_echo "$ac_cv_sizeof_off_t" >&6; }
51566
51567
51568
51569 cat >>confdefs.h <<_ACEOF
51570 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
51571 _ACEOF
51572
51573
51574 # The cast to long int works around a bug in the HP C Compiler
51575 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51576 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51577 # This bug is HP SR number 8606223364.
51578 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
51579 $as_echo_n "checking size of size_t... " >&6; }
51580 if test "${ac_cv_sizeof_size_t+set}" = set; then
51581   $as_echo_n "(cached) " >&6
51582 else
51583   if test "$cross_compiling" = yes; then
51584   # Depending upon the size, compute the lo and hi bounds.
51585 cat >conftest.$ac_ext <<_ACEOF
51586 /* confdefs.h.  */
51587 _ACEOF
51588 cat confdefs.h >>conftest.$ac_ext
51589 cat >>conftest.$ac_ext <<_ACEOF
51590 /* end confdefs.h.  */
51591 $ac_includes_default
51592 int
51593 main ()
51594 {
51595 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
51596 test_array [0] = 0
51597
51598   ;
51599   return 0;
51600 }
51601 _ACEOF
51602 rm -f conftest.$ac_objext
51603 if { (ac_try="$ac_compile"
51604 case "(($ac_try" in
51605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51606   *) ac_try_echo=$ac_try;;
51607 esac
51608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51609 $as_echo "$ac_try_echo") >&5
51610   (eval "$ac_compile") 2>conftest.er1
51611   ac_status=$?
51612   grep -v '^ *+' conftest.er1 >conftest.err
51613   rm -f conftest.er1
51614   cat conftest.err >&5
51615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51616   (exit $ac_status); } && {
51617          test -z "$ac_c_werror_flag" ||
51618          test ! -s conftest.err
51619        } && test -s conftest.$ac_objext; then
51620   ac_lo=0 ac_mid=0
51621   while :; do
51622     cat >conftest.$ac_ext <<_ACEOF
51623 /* confdefs.h.  */
51624 _ACEOF
51625 cat confdefs.h >>conftest.$ac_ext
51626 cat >>conftest.$ac_ext <<_ACEOF
51627 /* end confdefs.h.  */
51628 $ac_includes_default
51629 int
51630 main ()
51631 {
51632 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
51633 test_array [0] = 0
51634
51635   ;
51636   return 0;
51637 }
51638 _ACEOF
51639 rm -f conftest.$ac_objext
51640 if { (ac_try="$ac_compile"
51641 case "(($ac_try" in
51642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51643   *) ac_try_echo=$ac_try;;
51644 esac
51645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51646 $as_echo "$ac_try_echo") >&5
51647   (eval "$ac_compile") 2>conftest.er1
51648   ac_status=$?
51649   grep -v '^ *+' conftest.er1 >conftest.err
51650   rm -f conftest.er1
51651   cat conftest.err >&5
51652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51653   (exit $ac_status); } && {
51654          test -z "$ac_c_werror_flag" ||
51655          test ! -s conftest.err
51656        } && test -s conftest.$ac_objext; then
51657   ac_hi=$ac_mid; break
51658 else
51659   $as_echo "$as_me: failed program was:" >&5
51660 sed 's/^/| /' conftest.$ac_ext >&5
51661
51662         ac_lo=`expr $ac_mid + 1`
51663                         if test $ac_lo -le $ac_mid; then
51664                           ac_lo= ac_hi=
51665                           break
51666                         fi
51667                         ac_mid=`expr 2 '*' $ac_mid + 1`
51668 fi
51669
51670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51671   done
51672 else
51673   $as_echo "$as_me: failed program was:" >&5
51674 sed 's/^/| /' conftest.$ac_ext >&5
51675
51676         cat >conftest.$ac_ext <<_ACEOF
51677 /* confdefs.h.  */
51678 _ACEOF
51679 cat confdefs.h >>conftest.$ac_ext
51680 cat >>conftest.$ac_ext <<_ACEOF
51681 /* end confdefs.h.  */
51682 $ac_includes_default
51683 int
51684 main ()
51685 {
51686 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
51687 test_array [0] = 0
51688
51689   ;
51690   return 0;
51691 }
51692 _ACEOF
51693 rm -f conftest.$ac_objext
51694 if { (ac_try="$ac_compile"
51695 case "(($ac_try" in
51696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51697   *) ac_try_echo=$ac_try;;
51698 esac
51699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51700 $as_echo "$ac_try_echo") >&5
51701   (eval "$ac_compile") 2>conftest.er1
51702   ac_status=$?
51703   grep -v '^ *+' conftest.er1 >conftest.err
51704   rm -f conftest.er1
51705   cat conftest.err >&5
51706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51707   (exit $ac_status); } && {
51708          test -z "$ac_c_werror_flag" ||
51709          test ! -s conftest.err
51710        } && test -s conftest.$ac_objext; then
51711   ac_hi=-1 ac_mid=-1
51712   while :; do
51713     cat >conftest.$ac_ext <<_ACEOF
51714 /* confdefs.h.  */
51715 _ACEOF
51716 cat confdefs.h >>conftest.$ac_ext
51717 cat >>conftest.$ac_ext <<_ACEOF
51718 /* end confdefs.h.  */
51719 $ac_includes_default
51720 int
51721 main ()
51722 {
51723 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
51724 test_array [0] = 0
51725
51726   ;
51727   return 0;
51728 }
51729 _ACEOF
51730 rm -f conftest.$ac_objext
51731 if { (ac_try="$ac_compile"
51732 case "(($ac_try" in
51733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51734   *) ac_try_echo=$ac_try;;
51735 esac
51736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51737 $as_echo "$ac_try_echo") >&5
51738   (eval "$ac_compile") 2>conftest.er1
51739   ac_status=$?
51740   grep -v '^ *+' conftest.er1 >conftest.err
51741   rm -f conftest.er1
51742   cat conftest.err >&5
51743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51744   (exit $ac_status); } && {
51745          test -z "$ac_c_werror_flag" ||
51746          test ! -s conftest.err
51747        } && test -s conftest.$ac_objext; then
51748   ac_lo=$ac_mid; break
51749 else
51750   $as_echo "$as_me: failed program was:" >&5
51751 sed 's/^/| /' conftest.$ac_ext >&5
51752
51753         ac_hi=`expr '(' $ac_mid ')' - 1`
51754                         if test $ac_mid -le $ac_hi; then
51755                           ac_lo= ac_hi=
51756                           break
51757                         fi
51758                         ac_mid=`expr 2 '*' $ac_mid`
51759 fi
51760
51761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51762   done
51763 else
51764   $as_echo "$as_me: failed program was:" >&5
51765 sed 's/^/| /' conftest.$ac_ext >&5
51766
51767         ac_lo= ac_hi=
51768 fi
51769
51770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51771 fi
51772
51773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51774 # Binary search between lo and hi bounds.
51775 while test "x$ac_lo" != "x$ac_hi"; do
51776   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
51777   cat >conftest.$ac_ext <<_ACEOF
51778 /* confdefs.h.  */
51779 _ACEOF
51780 cat confdefs.h >>conftest.$ac_ext
51781 cat >>conftest.$ac_ext <<_ACEOF
51782 /* end confdefs.h.  */
51783 $ac_includes_default
51784 int
51785 main ()
51786 {
51787 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
51788 test_array [0] = 0
51789
51790   ;
51791   return 0;
51792 }
51793 _ACEOF
51794 rm -f conftest.$ac_objext
51795 if { (ac_try="$ac_compile"
51796 case "(($ac_try" in
51797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51798   *) ac_try_echo=$ac_try;;
51799 esac
51800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51801 $as_echo "$ac_try_echo") >&5
51802   (eval "$ac_compile") 2>conftest.er1
51803   ac_status=$?
51804   grep -v '^ *+' conftest.er1 >conftest.err
51805   rm -f conftest.er1
51806   cat conftest.err >&5
51807   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51808   (exit $ac_status); } && {
51809          test -z "$ac_c_werror_flag" ||
51810          test ! -s conftest.err
51811        } && test -s conftest.$ac_objext; then
51812   ac_hi=$ac_mid
51813 else
51814   $as_echo "$as_me: failed program was:" >&5
51815 sed 's/^/| /' conftest.$ac_ext >&5
51816
51817         ac_lo=`expr '(' $ac_mid ')' + 1`
51818 fi
51819
51820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51821 done
51822 case $ac_lo in
51823 ?*) ac_cv_sizeof_size_t=$ac_lo;;
51824 '') if test "$ac_cv_type_size_t" = yes; then
51825      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
51826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51827 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
51828 See \`config.log' for more details." >&5
51829 $as_echo "$as_me: error: cannot compute sizeof (size_t)
51830 See \`config.log' for more details." >&2;}
51831    { (exit 77); exit 77; }; }; }
51832    else
51833      ac_cv_sizeof_size_t=0
51834    fi ;;
51835 esac
51836 else
51837   cat >conftest.$ac_ext <<_ACEOF
51838 /* confdefs.h.  */
51839 _ACEOF
51840 cat confdefs.h >>conftest.$ac_ext
51841 cat >>conftest.$ac_ext <<_ACEOF
51842 /* end confdefs.h.  */
51843 $ac_includes_default
51844 static long int longval () { return (long int) (sizeof (size_t)); }
51845 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
51846 #include <stdio.h>
51847 #include <stdlib.h>
51848 int
51849 main ()
51850 {
51851
51852   FILE *f = fopen ("conftest.val", "w");
51853   if (! f)
51854     return 1;
51855   if (((long int) (sizeof (size_t))) < 0)
51856     {
51857       long int i = longval ();
51858       if (i != ((long int) (sizeof (size_t))))
51859         return 1;
51860       fprintf (f, "%ld", i);
51861     }
51862   else
51863     {
51864       unsigned long int i = ulongval ();
51865       if (i != ((long int) (sizeof (size_t))))
51866         return 1;
51867       fprintf (f, "%lu", i);
51868     }
51869   /* Do not output a trailing newline, as this causes \r\n confusion
51870      on some platforms.  */
51871   return ferror (f) || fclose (f) != 0;
51872
51873   ;
51874   return 0;
51875 }
51876 _ACEOF
51877 rm -f conftest$ac_exeext
51878 if { (ac_try="$ac_link"
51879 case "(($ac_try" in
51880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51881   *) ac_try_echo=$ac_try;;
51882 esac
51883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51884 $as_echo "$ac_try_echo") >&5
51885   (eval "$ac_link") 2>&5
51886   ac_status=$?
51887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51889   { (case "(($ac_try" in
51890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51891   *) ac_try_echo=$ac_try;;
51892 esac
51893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51894 $as_echo "$ac_try_echo") >&5
51895   (eval "$ac_try") 2>&5
51896   ac_status=$?
51897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51898   (exit $ac_status); }; }; then
51899   ac_cv_sizeof_size_t=`cat conftest.val`
51900 else
51901   $as_echo "$as_me: program exited with status $ac_status" >&5
51902 $as_echo "$as_me: failed program was:" >&5
51903 sed 's/^/| /' conftest.$ac_ext >&5
51904
51905 ( exit $ac_status )
51906 if test "$ac_cv_type_size_t" = yes; then
51907      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
51908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51909 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
51910 See \`config.log' for more details." >&5
51911 $as_echo "$as_me: error: cannot compute sizeof (size_t)
51912 See \`config.log' for more details." >&2;}
51913    { (exit 77); exit 77; }; }; }
51914    else
51915      ac_cv_sizeof_size_t=0
51916    fi
51917 fi
51918 rm -rf conftest.dSYM
51919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51920 fi
51921 rm -f conftest.val
51922 fi
51923 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
51924 $as_echo "$ac_cv_sizeof_size_t" >&6; }
51925
51926
51927
51928 cat >>confdefs.h <<_ACEOF
51929 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
51930 _ACEOF
51931
51932
51933 # The cast to long int works around a bug in the HP C Compiler
51934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51936 # This bug is HP SR number 8606223364.
51937 { $as_echo "$as_me:$LINENO: checking size of ssize_t" >&5
51938 $as_echo_n "checking size of ssize_t... " >&6; }
51939 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
51940   $as_echo_n "(cached) " >&6
51941 else
51942   if test "$cross_compiling" = yes; then
51943   # Depending upon the size, compute the lo and hi bounds.
51944 cat >conftest.$ac_ext <<_ACEOF
51945 /* confdefs.h.  */
51946 _ACEOF
51947 cat confdefs.h >>conftest.$ac_ext
51948 cat >>conftest.$ac_ext <<_ACEOF
51949 /* end confdefs.h.  */
51950 $ac_includes_default
51951 int
51952 main ()
51953 {
51954 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= 0)];
51955 test_array [0] = 0
51956
51957   ;
51958   return 0;
51959 }
51960 _ACEOF
51961 rm -f conftest.$ac_objext
51962 if { (ac_try="$ac_compile"
51963 case "(($ac_try" in
51964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51965   *) ac_try_echo=$ac_try;;
51966 esac
51967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51968 $as_echo "$ac_try_echo") >&5
51969   (eval "$ac_compile") 2>conftest.er1
51970   ac_status=$?
51971   grep -v '^ *+' conftest.er1 >conftest.err
51972   rm -f conftest.er1
51973   cat conftest.err >&5
51974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51975   (exit $ac_status); } && {
51976          test -z "$ac_c_werror_flag" ||
51977          test ! -s conftest.err
51978        } && test -s conftest.$ac_objext; then
51979   ac_lo=0 ac_mid=0
51980   while :; do
51981     cat >conftest.$ac_ext <<_ACEOF
51982 /* confdefs.h.  */
51983 _ACEOF
51984 cat confdefs.h >>conftest.$ac_ext
51985 cat >>conftest.$ac_ext <<_ACEOF
51986 /* end confdefs.h.  */
51987 $ac_includes_default
51988 int
51989 main ()
51990 {
51991 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
51992 test_array [0] = 0
51993
51994   ;
51995   return 0;
51996 }
51997 _ACEOF
51998 rm -f conftest.$ac_objext
51999 if { (ac_try="$ac_compile"
52000 case "(($ac_try" in
52001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52002   *) ac_try_echo=$ac_try;;
52003 esac
52004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52005 $as_echo "$ac_try_echo") >&5
52006   (eval "$ac_compile") 2>conftest.er1
52007   ac_status=$?
52008   grep -v '^ *+' conftest.er1 >conftest.err
52009   rm -f conftest.er1
52010   cat conftest.err >&5
52011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52012   (exit $ac_status); } && {
52013          test -z "$ac_c_werror_flag" ||
52014          test ! -s conftest.err
52015        } && test -s conftest.$ac_objext; then
52016   ac_hi=$ac_mid; break
52017 else
52018   $as_echo "$as_me: failed program was:" >&5
52019 sed 's/^/| /' conftest.$ac_ext >&5
52020
52021         ac_lo=`expr $ac_mid + 1`
52022                         if test $ac_lo -le $ac_mid; then
52023                           ac_lo= ac_hi=
52024                           break
52025                         fi
52026                         ac_mid=`expr 2 '*' $ac_mid + 1`
52027 fi
52028
52029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52030   done
52031 else
52032   $as_echo "$as_me: failed program was:" >&5
52033 sed 's/^/| /' conftest.$ac_ext >&5
52034
52035         cat >conftest.$ac_ext <<_ACEOF
52036 /* confdefs.h.  */
52037 _ACEOF
52038 cat confdefs.h >>conftest.$ac_ext
52039 cat >>conftest.$ac_ext <<_ACEOF
52040 /* end confdefs.h.  */
52041 $ac_includes_default
52042 int
52043 main ()
52044 {
52045 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) < 0)];
52046 test_array [0] = 0
52047
52048   ;
52049   return 0;
52050 }
52051 _ACEOF
52052 rm -f conftest.$ac_objext
52053 if { (ac_try="$ac_compile"
52054 case "(($ac_try" in
52055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52056   *) ac_try_echo=$ac_try;;
52057 esac
52058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52059 $as_echo "$ac_try_echo") >&5
52060   (eval "$ac_compile") 2>conftest.er1
52061   ac_status=$?
52062   grep -v '^ *+' conftest.er1 >conftest.err
52063   rm -f conftest.er1
52064   cat conftest.err >&5
52065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52066   (exit $ac_status); } && {
52067          test -z "$ac_c_werror_flag" ||
52068          test ! -s conftest.err
52069        } && test -s conftest.$ac_objext; then
52070   ac_hi=-1 ac_mid=-1
52071   while :; do
52072     cat >conftest.$ac_ext <<_ACEOF
52073 /* confdefs.h.  */
52074 _ACEOF
52075 cat confdefs.h >>conftest.$ac_ext
52076 cat >>conftest.$ac_ext <<_ACEOF
52077 /* end confdefs.h.  */
52078 $ac_includes_default
52079 int
52080 main ()
52081 {
52082 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= $ac_mid)];
52083 test_array [0] = 0
52084
52085   ;
52086   return 0;
52087 }
52088 _ACEOF
52089 rm -f conftest.$ac_objext
52090 if { (ac_try="$ac_compile"
52091 case "(($ac_try" in
52092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52093   *) ac_try_echo=$ac_try;;
52094 esac
52095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52096 $as_echo "$ac_try_echo") >&5
52097   (eval "$ac_compile") 2>conftest.er1
52098   ac_status=$?
52099   grep -v '^ *+' conftest.er1 >conftest.err
52100   rm -f conftest.er1
52101   cat conftest.err >&5
52102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52103   (exit $ac_status); } && {
52104          test -z "$ac_c_werror_flag" ||
52105          test ! -s conftest.err
52106        } && test -s conftest.$ac_objext; then
52107   ac_lo=$ac_mid; break
52108 else
52109   $as_echo "$as_me: failed program was:" >&5
52110 sed 's/^/| /' conftest.$ac_ext >&5
52111
52112         ac_hi=`expr '(' $ac_mid ')' - 1`
52113                         if test $ac_mid -le $ac_hi; then
52114                           ac_lo= ac_hi=
52115                           break
52116                         fi
52117                         ac_mid=`expr 2 '*' $ac_mid`
52118 fi
52119
52120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52121   done
52122 else
52123   $as_echo "$as_me: failed program was:" >&5
52124 sed 's/^/| /' conftest.$ac_ext >&5
52125
52126         ac_lo= ac_hi=
52127 fi
52128
52129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52130 fi
52131
52132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52133 # Binary search between lo and hi bounds.
52134 while test "x$ac_lo" != "x$ac_hi"; do
52135   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52136   cat >conftest.$ac_ext <<_ACEOF
52137 /* confdefs.h.  */
52138 _ACEOF
52139 cat confdefs.h >>conftest.$ac_ext
52140 cat >>conftest.$ac_ext <<_ACEOF
52141 /* end confdefs.h.  */
52142 $ac_includes_default
52143 int
52144 main ()
52145 {
52146 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
52147 test_array [0] = 0
52148
52149   ;
52150   return 0;
52151 }
52152 _ACEOF
52153 rm -f conftest.$ac_objext
52154 if { (ac_try="$ac_compile"
52155 case "(($ac_try" in
52156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52157   *) ac_try_echo=$ac_try;;
52158 esac
52159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52160 $as_echo "$ac_try_echo") >&5
52161   (eval "$ac_compile") 2>conftest.er1
52162   ac_status=$?
52163   grep -v '^ *+' conftest.er1 >conftest.err
52164   rm -f conftest.er1
52165   cat conftest.err >&5
52166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52167   (exit $ac_status); } && {
52168          test -z "$ac_c_werror_flag" ||
52169          test ! -s conftest.err
52170        } && test -s conftest.$ac_objext; then
52171   ac_hi=$ac_mid
52172 else
52173   $as_echo "$as_me: failed program was:" >&5
52174 sed 's/^/| /' conftest.$ac_ext >&5
52175
52176         ac_lo=`expr '(' $ac_mid ')' + 1`
52177 fi
52178
52179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52180 done
52181 case $ac_lo in
52182 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
52183 '') if test "$ac_cv_type_ssize_t" = yes; then
52184      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52186 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
52187 See \`config.log' for more details." >&5
52188 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
52189 See \`config.log' for more details." >&2;}
52190    { (exit 77); exit 77; }; }; }
52191    else
52192      ac_cv_sizeof_ssize_t=0
52193    fi ;;
52194 esac
52195 else
52196   cat >conftest.$ac_ext <<_ACEOF
52197 /* confdefs.h.  */
52198 _ACEOF
52199 cat confdefs.h >>conftest.$ac_ext
52200 cat >>conftest.$ac_ext <<_ACEOF
52201 /* end confdefs.h.  */
52202 $ac_includes_default
52203 static long int longval () { return (long int) (sizeof (ssize_t)); }
52204 static unsigned long int ulongval () { return (long int) (sizeof (ssize_t)); }
52205 #include <stdio.h>
52206 #include <stdlib.h>
52207 int
52208 main ()
52209 {
52210
52211   FILE *f = fopen ("conftest.val", "w");
52212   if (! f)
52213     return 1;
52214   if (((long int) (sizeof (ssize_t))) < 0)
52215     {
52216       long int i = longval ();
52217       if (i != ((long int) (sizeof (ssize_t))))
52218         return 1;
52219       fprintf (f, "%ld", i);
52220     }
52221   else
52222     {
52223       unsigned long int i = ulongval ();
52224       if (i != ((long int) (sizeof (ssize_t))))
52225         return 1;
52226       fprintf (f, "%lu", i);
52227     }
52228   /* Do not output a trailing newline, as this causes \r\n confusion
52229      on some platforms.  */
52230   return ferror (f) || fclose (f) != 0;
52231
52232   ;
52233   return 0;
52234 }
52235 _ACEOF
52236 rm -f conftest$ac_exeext
52237 if { (ac_try="$ac_link"
52238 case "(($ac_try" in
52239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52240   *) ac_try_echo=$ac_try;;
52241 esac
52242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52243 $as_echo "$ac_try_echo") >&5
52244   (eval "$ac_link") 2>&5
52245   ac_status=$?
52246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52248   { (case "(($ac_try" in
52249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52250   *) ac_try_echo=$ac_try;;
52251 esac
52252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52253 $as_echo "$ac_try_echo") >&5
52254   (eval "$ac_try") 2>&5
52255   ac_status=$?
52256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52257   (exit $ac_status); }; }; then
52258   ac_cv_sizeof_ssize_t=`cat conftest.val`
52259 else
52260   $as_echo "$as_me: program exited with status $ac_status" >&5
52261 $as_echo "$as_me: failed program was:" >&5
52262 sed 's/^/| /' conftest.$ac_ext >&5
52263
52264 ( exit $ac_status )
52265 if test "$ac_cv_type_ssize_t" = yes; then
52266      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52268 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
52269 See \`config.log' for more details." >&5
52270 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
52271 See \`config.log' for more details." >&2;}
52272    { (exit 77); exit 77; }; }; }
52273    else
52274      ac_cv_sizeof_ssize_t=0
52275    fi
52276 fi
52277 rm -rf conftest.dSYM
52278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52279 fi
52280 rm -f conftest.val
52281 fi
52282 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
52283 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
52284
52285
52286
52287 cat >>confdefs.h <<_ACEOF
52288 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
52289 _ACEOF
52290
52291
52292 # The cast to long int works around a bug in the HP C Compiler
52293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52295 # This bug is HP SR number 8606223364.
52296 { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
52297 $as_echo_n "checking size of time_t... " >&6; }
52298 if test "${ac_cv_sizeof_time_t+set}" = set; then
52299   $as_echo_n "(cached) " >&6
52300 else
52301   if test "$cross_compiling" = yes; then
52302   # Depending upon the size, compute the lo and hi bounds.
52303 cat >conftest.$ac_ext <<_ACEOF
52304 /* confdefs.h.  */
52305 _ACEOF
52306 cat confdefs.h >>conftest.$ac_ext
52307 cat >>conftest.$ac_ext <<_ACEOF
52308 /* end confdefs.h.  */
52309 $ac_includes_default
52310 int
52311 main ()
52312 {
52313 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
52314 test_array [0] = 0
52315
52316   ;
52317   return 0;
52318 }
52319 _ACEOF
52320 rm -f conftest.$ac_objext
52321 if { (ac_try="$ac_compile"
52322 case "(($ac_try" in
52323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52324   *) ac_try_echo=$ac_try;;
52325 esac
52326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52327 $as_echo "$ac_try_echo") >&5
52328   (eval "$ac_compile") 2>conftest.er1
52329   ac_status=$?
52330   grep -v '^ *+' conftest.er1 >conftest.err
52331   rm -f conftest.er1
52332   cat conftest.err >&5
52333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52334   (exit $ac_status); } && {
52335          test -z "$ac_c_werror_flag" ||
52336          test ! -s conftest.err
52337        } && test -s conftest.$ac_objext; then
52338   ac_lo=0 ac_mid=0
52339   while :; do
52340     cat >conftest.$ac_ext <<_ACEOF
52341 /* confdefs.h.  */
52342 _ACEOF
52343 cat confdefs.h >>conftest.$ac_ext
52344 cat >>conftest.$ac_ext <<_ACEOF
52345 /* end confdefs.h.  */
52346 $ac_includes_default
52347 int
52348 main ()
52349 {
52350 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
52351 test_array [0] = 0
52352
52353   ;
52354   return 0;
52355 }
52356 _ACEOF
52357 rm -f conftest.$ac_objext
52358 if { (ac_try="$ac_compile"
52359 case "(($ac_try" in
52360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52361   *) ac_try_echo=$ac_try;;
52362 esac
52363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52364 $as_echo "$ac_try_echo") >&5
52365   (eval "$ac_compile") 2>conftest.er1
52366   ac_status=$?
52367   grep -v '^ *+' conftest.er1 >conftest.err
52368   rm -f conftest.er1
52369   cat conftest.err >&5
52370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52371   (exit $ac_status); } && {
52372          test -z "$ac_c_werror_flag" ||
52373          test ! -s conftest.err
52374        } && test -s conftest.$ac_objext; then
52375   ac_hi=$ac_mid; break
52376 else
52377   $as_echo "$as_me: failed program was:" >&5
52378 sed 's/^/| /' conftest.$ac_ext >&5
52379
52380         ac_lo=`expr $ac_mid + 1`
52381                         if test $ac_lo -le $ac_mid; then
52382                           ac_lo= ac_hi=
52383                           break
52384                         fi
52385                         ac_mid=`expr 2 '*' $ac_mid + 1`
52386 fi
52387
52388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52389   done
52390 else
52391   $as_echo "$as_me: failed program was:" >&5
52392 sed 's/^/| /' conftest.$ac_ext >&5
52393
52394         cat >conftest.$ac_ext <<_ACEOF
52395 /* confdefs.h.  */
52396 _ACEOF
52397 cat confdefs.h >>conftest.$ac_ext
52398 cat >>conftest.$ac_ext <<_ACEOF
52399 /* end confdefs.h.  */
52400 $ac_includes_default
52401 int
52402 main ()
52403 {
52404 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
52405 test_array [0] = 0
52406
52407   ;
52408   return 0;
52409 }
52410 _ACEOF
52411 rm -f conftest.$ac_objext
52412 if { (ac_try="$ac_compile"
52413 case "(($ac_try" in
52414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52415   *) ac_try_echo=$ac_try;;
52416 esac
52417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52418 $as_echo "$ac_try_echo") >&5
52419   (eval "$ac_compile") 2>conftest.er1
52420   ac_status=$?
52421   grep -v '^ *+' conftest.er1 >conftest.err
52422   rm -f conftest.er1
52423   cat conftest.err >&5
52424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52425   (exit $ac_status); } && {
52426          test -z "$ac_c_werror_flag" ||
52427          test ! -s conftest.err
52428        } && test -s conftest.$ac_objext; then
52429   ac_hi=-1 ac_mid=-1
52430   while :; do
52431     cat >conftest.$ac_ext <<_ACEOF
52432 /* confdefs.h.  */
52433 _ACEOF
52434 cat confdefs.h >>conftest.$ac_ext
52435 cat >>conftest.$ac_ext <<_ACEOF
52436 /* end confdefs.h.  */
52437 $ac_includes_default
52438 int
52439 main ()
52440 {
52441 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
52442 test_array [0] = 0
52443
52444   ;
52445   return 0;
52446 }
52447 _ACEOF
52448 rm -f conftest.$ac_objext
52449 if { (ac_try="$ac_compile"
52450 case "(($ac_try" in
52451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52452   *) ac_try_echo=$ac_try;;
52453 esac
52454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52455 $as_echo "$ac_try_echo") >&5
52456   (eval "$ac_compile") 2>conftest.er1
52457   ac_status=$?
52458   grep -v '^ *+' conftest.er1 >conftest.err
52459   rm -f conftest.er1
52460   cat conftest.err >&5
52461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52462   (exit $ac_status); } && {
52463          test -z "$ac_c_werror_flag" ||
52464          test ! -s conftest.err
52465        } && test -s conftest.$ac_objext; then
52466   ac_lo=$ac_mid; break
52467 else
52468   $as_echo "$as_me: failed program was:" >&5
52469 sed 's/^/| /' conftest.$ac_ext >&5
52470
52471         ac_hi=`expr '(' $ac_mid ')' - 1`
52472                         if test $ac_mid -le $ac_hi; then
52473                           ac_lo= ac_hi=
52474                           break
52475                         fi
52476                         ac_mid=`expr 2 '*' $ac_mid`
52477 fi
52478
52479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52480   done
52481 else
52482   $as_echo "$as_me: failed program was:" >&5
52483 sed 's/^/| /' conftest.$ac_ext >&5
52484
52485         ac_lo= ac_hi=
52486 fi
52487
52488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52489 fi
52490
52491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52492 # Binary search between lo and hi bounds.
52493 while test "x$ac_lo" != "x$ac_hi"; do
52494   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52495   cat >conftest.$ac_ext <<_ACEOF
52496 /* confdefs.h.  */
52497 _ACEOF
52498 cat confdefs.h >>conftest.$ac_ext
52499 cat >>conftest.$ac_ext <<_ACEOF
52500 /* end confdefs.h.  */
52501 $ac_includes_default
52502 int
52503 main ()
52504 {
52505 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
52506 test_array [0] = 0
52507
52508   ;
52509   return 0;
52510 }
52511 _ACEOF
52512 rm -f conftest.$ac_objext
52513 if { (ac_try="$ac_compile"
52514 case "(($ac_try" in
52515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52516   *) ac_try_echo=$ac_try;;
52517 esac
52518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52519 $as_echo "$ac_try_echo") >&5
52520   (eval "$ac_compile") 2>conftest.er1
52521   ac_status=$?
52522   grep -v '^ *+' conftest.er1 >conftest.err
52523   rm -f conftest.er1
52524   cat conftest.err >&5
52525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52526   (exit $ac_status); } && {
52527          test -z "$ac_c_werror_flag" ||
52528          test ! -s conftest.err
52529        } && test -s conftest.$ac_objext; then
52530   ac_hi=$ac_mid
52531 else
52532   $as_echo "$as_me: failed program was:" >&5
52533 sed 's/^/| /' conftest.$ac_ext >&5
52534
52535         ac_lo=`expr '(' $ac_mid ')' + 1`
52536 fi
52537
52538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52539 done
52540 case $ac_lo in
52541 ?*) ac_cv_sizeof_time_t=$ac_lo;;
52542 '') if test "$ac_cv_type_time_t" = yes; then
52543      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52545 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
52546 See \`config.log' for more details." >&5
52547 $as_echo "$as_me: error: cannot compute sizeof (time_t)
52548 See \`config.log' for more details." >&2;}
52549    { (exit 77); exit 77; }; }; }
52550    else
52551      ac_cv_sizeof_time_t=0
52552    fi ;;
52553 esac
52554 else
52555   cat >conftest.$ac_ext <<_ACEOF
52556 /* confdefs.h.  */
52557 _ACEOF
52558 cat confdefs.h >>conftest.$ac_ext
52559 cat >>conftest.$ac_ext <<_ACEOF
52560 /* end confdefs.h.  */
52561 $ac_includes_default
52562 static long int longval () { return (long int) (sizeof (time_t)); }
52563 static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
52564 #include <stdio.h>
52565 #include <stdlib.h>
52566 int
52567 main ()
52568 {
52569
52570   FILE *f = fopen ("conftest.val", "w");
52571   if (! f)
52572     return 1;
52573   if (((long int) (sizeof (time_t))) < 0)
52574     {
52575       long int i = longval ();
52576       if (i != ((long int) (sizeof (time_t))))
52577         return 1;
52578       fprintf (f, "%ld", i);
52579     }
52580   else
52581     {
52582       unsigned long int i = ulongval ();
52583       if (i != ((long int) (sizeof (time_t))))
52584         return 1;
52585       fprintf (f, "%lu", i);
52586     }
52587   /* Do not output a trailing newline, as this causes \r\n confusion
52588      on some platforms.  */
52589   return ferror (f) || fclose (f) != 0;
52590
52591   ;
52592   return 0;
52593 }
52594 _ACEOF
52595 rm -f conftest$ac_exeext
52596 if { (ac_try="$ac_link"
52597 case "(($ac_try" in
52598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52599   *) ac_try_echo=$ac_try;;
52600 esac
52601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52602 $as_echo "$ac_try_echo") >&5
52603   (eval "$ac_link") 2>&5
52604   ac_status=$?
52605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52607   { (case "(($ac_try" in
52608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52609   *) ac_try_echo=$ac_try;;
52610 esac
52611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52612 $as_echo "$ac_try_echo") >&5
52613   (eval "$ac_try") 2>&5
52614   ac_status=$?
52615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52616   (exit $ac_status); }; }; then
52617   ac_cv_sizeof_time_t=`cat conftest.val`
52618 else
52619   $as_echo "$as_me: program exited with status $ac_status" >&5
52620 $as_echo "$as_me: failed program was:" >&5
52621 sed 's/^/| /' conftest.$ac_ext >&5
52622
52623 ( exit $ac_status )
52624 if test "$ac_cv_type_time_t" = yes; then
52625      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52627 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
52628 See \`config.log' for more details." >&5
52629 $as_echo "$as_me: error: cannot compute sizeof (time_t)
52630 See \`config.log' for more details." >&2;}
52631    { (exit 77); exit 77; }; }; }
52632    else
52633      ac_cv_sizeof_time_t=0
52634    fi
52635 fi
52636 rm -rf conftest.dSYM
52637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52638 fi
52639 rm -f conftest.val
52640 fi
52641 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
52642 $as_echo "$ac_cv_sizeof_time_t" >&6; }
52643
52644
52645
52646 cat >>confdefs.h <<_ACEOF
52647 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
52648 _ACEOF
52649
52650
52651 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
52652 $as_echo_n "checking for off_t... " >&6; }
52653 if test "${ac_cv_type_off_t+set}" = set; then
52654   $as_echo_n "(cached) " >&6
52655 else
52656   ac_cv_type_off_t=no
52657 cat >conftest.$ac_ext <<_ACEOF
52658 /* confdefs.h.  */
52659 _ACEOF
52660 cat confdefs.h >>conftest.$ac_ext
52661 cat >>conftest.$ac_ext <<_ACEOF
52662 /* end confdefs.h.  */
52663 $ac_includes_default
52664 int
52665 main ()
52666 {
52667 if (sizeof (off_t))
52668        return 0;
52669   ;
52670   return 0;
52671 }
52672 _ACEOF
52673 rm -f conftest.$ac_objext
52674 if { (ac_try="$ac_compile"
52675 case "(($ac_try" in
52676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52677   *) ac_try_echo=$ac_try;;
52678 esac
52679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52680 $as_echo "$ac_try_echo") >&5
52681   (eval "$ac_compile") 2>conftest.er1
52682   ac_status=$?
52683   grep -v '^ *+' conftest.er1 >conftest.err
52684   rm -f conftest.er1
52685   cat conftest.err >&5
52686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52687   (exit $ac_status); } && {
52688          test -z "$ac_c_werror_flag" ||
52689          test ! -s conftest.err
52690        } && test -s conftest.$ac_objext; then
52691   cat >conftest.$ac_ext <<_ACEOF
52692 /* confdefs.h.  */
52693 _ACEOF
52694 cat confdefs.h >>conftest.$ac_ext
52695 cat >>conftest.$ac_ext <<_ACEOF
52696 /* end confdefs.h.  */
52697 $ac_includes_default
52698 int
52699 main ()
52700 {
52701 if (sizeof ((off_t)))
52702           return 0;
52703   ;
52704   return 0;
52705 }
52706 _ACEOF
52707 rm -f conftest.$ac_objext
52708 if { (ac_try="$ac_compile"
52709 case "(($ac_try" in
52710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52711   *) ac_try_echo=$ac_try;;
52712 esac
52713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52714 $as_echo "$ac_try_echo") >&5
52715   (eval "$ac_compile") 2>conftest.er1
52716   ac_status=$?
52717   grep -v '^ *+' conftest.er1 >conftest.err
52718   rm -f conftest.er1
52719   cat conftest.err >&5
52720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52721   (exit $ac_status); } && {
52722          test -z "$ac_c_werror_flag" ||
52723          test ! -s conftest.err
52724        } && test -s conftest.$ac_objext; then
52725   :
52726 else
52727   $as_echo "$as_me: failed program was:" >&5
52728 sed 's/^/| /' conftest.$ac_ext >&5
52729
52730         ac_cv_type_off_t=yes
52731 fi
52732
52733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52734 else
52735   $as_echo "$as_me: failed program was:" >&5
52736 sed 's/^/| /' conftest.$ac_ext >&5
52737
52738
52739 fi
52740
52741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52742 fi
52743 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
52744 $as_echo "$ac_cv_type_off_t" >&6; }
52745 if test "x$ac_cv_type_off_t" = x""yes; then
52746   :
52747 else
52748
52749 cat >>confdefs.h <<_ACEOF
52750 #define off_t long int
52751 _ACEOF
52752
52753 fi
52754
52755 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
52756 $as_echo_n "checking for pid_t... " >&6; }
52757 if test "${ac_cv_type_pid_t+set}" = set; then
52758   $as_echo_n "(cached) " >&6
52759 else
52760   ac_cv_type_pid_t=no
52761 cat >conftest.$ac_ext <<_ACEOF
52762 /* confdefs.h.  */
52763 _ACEOF
52764 cat confdefs.h >>conftest.$ac_ext
52765 cat >>conftest.$ac_ext <<_ACEOF
52766 /* end confdefs.h.  */
52767 $ac_includes_default
52768 int
52769 main ()
52770 {
52771 if (sizeof (pid_t))
52772        return 0;
52773   ;
52774   return 0;
52775 }
52776 _ACEOF
52777 rm -f conftest.$ac_objext
52778 if { (ac_try="$ac_compile"
52779 case "(($ac_try" in
52780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52781   *) ac_try_echo=$ac_try;;
52782 esac
52783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52784 $as_echo "$ac_try_echo") >&5
52785   (eval "$ac_compile") 2>conftest.er1
52786   ac_status=$?
52787   grep -v '^ *+' conftest.er1 >conftest.err
52788   rm -f conftest.er1
52789   cat conftest.err >&5
52790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52791   (exit $ac_status); } && {
52792          test -z "$ac_c_werror_flag" ||
52793          test ! -s conftest.err
52794        } && test -s conftest.$ac_objext; then
52795   cat >conftest.$ac_ext <<_ACEOF
52796 /* confdefs.h.  */
52797 _ACEOF
52798 cat confdefs.h >>conftest.$ac_ext
52799 cat >>conftest.$ac_ext <<_ACEOF
52800 /* end confdefs.h.  */
52801 $ac_includes_default
52802 int
52803 main ()
52804 {
52805 if (sizeof ((pid_t)))
52806           return 0;
52807   ;
52808   return 0;
52809 }
52810 _ACEOF
52811 rm -f conftest.$ac_objext
52812 if { (ac_try="$ac_compile"
52813 case "(($ac_try" in
52814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52815   *) ac_try_echo=$ac_try;;
52816 esac
52817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52818 $as_echo "$ac_try_echo") >&5
52819   (eval "$ac_compile") 2>conftest.er1
52820   ac_status=$?
52821   grep -v '^ *+' conftest.er1 >conftest.err
52822   rm -f conftest.er1
52823   cat conftest.err >&5
52824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52825   (exit $ac_status); } && {
52826          test -z "$ac_c_werror_flag" ||
52827          test ! -s conftest.err
52828        } && test -s conftest.$ac_objext; then
52829   :
52830 else
52831   $as_echo "$as_me: failed program was:" >&5
52832 sed 's/^/| /' conftest.$ac_ext >&5
52833
52834         ac_cv_type_pid_t=yes
52835 fi
52836
52837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52838 else
52839   $as_echo "$as_me: failed program was:" >&5
52840 sed 's/^/| /' conftest.$ac_ext >&5
52841
52842
52843 fi
52844
52845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52846 fi
52847 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
52848 $as_echo "$ac_cv_type_pid_t" >&6; }
52849 if test "x$ac_cv_type_pid_t" = x""yes; then
52850   :
52851 else
52852
52853 cat >>confdefs.h <<_ACEOF
52854 #define pid_t int
52855 _ACEOF
52856
52857 fi
52858
52859 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
52860 $as_echo_n "checking for size_t... " >&6; }
52861 if test "${ac_cv_type_size_t+set}" = set; then
52862   $as_echo_n "(cached) " >&6
52863 else
52864   ac_cv_type_size_t=no
52865 cat >conftest.$ac_ext <<_ACEOF
52866 /* confdefs.h.  */
52867 _ACEOF
52868 cat confdefs.h >>conftest.$ac_ext
52869 cat >>conftest.$ac_ext <<_ACEOF
52870 /* end confdefs.h.  */
52871 $ac_includes_default
52872 int
52873 main ()
52874 {
52875 if (sizeof (size_t))
52876        return 0;
52877   ;
52878   return 0;
52879 }
52880 _ACEOF
52881 rm -f conftest.$ac_objext
52882 if { (ac_try="$ac_compile"
52883 case "(($ac_try" in
52884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52885   *) ac_try_echo=$ac_try;;
52886 esac
52887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52888 $as_echo "$ac_try_echo") >&5
52889   (eval "$ac_compile") 2>conftest.er1
52890   ac_status=$?
52891   grep -v '^ *+' conftest.er1 >conftest.err
52892   rm -f conftest.er1
52893   cat conftest.err >&5
52894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52895   (exit $ac_status); } && {
52896          test -z "$ac_c_werror_flag" ||
52897          test ! -s conftest.err
52898        } && test -s conftest.$ac_objext; then
52899   cat >conftest.$ac_ext <<_ACEOF
52900 /* confdefs.h.  */
52901 _ACEOF
52902 cat confdefs.h >>conftest.$ac_ext
52903 cat >>conftest.$ac_ext <<_ACEOF
52904 /* end confdefs.h.  */
52905 $ac_includes_default
52906 int
52907 main ()
52908 {
52909 if (sizeof ((size_t)))
52910           return 0;
52911   ;
52912   return 0;
52913 }
52914 _ACEOF
52915 rm -f conftest.$ac_objext
52916 if { (ac_try="$ac_compile"
52917 case "(($ac_try" in
52918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52919   *) ac_try_echo=$ac_try;;
52920 esac
52921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52922 $as_echo "$ac_try_echo") >&5
52923   (eval "$ac_compile") 2>conftest.er1
52924   ac_status=$?
52925   grep -v '^ *+' conftest.er1 >conftest.err
52926   rm -f conftest.er1
52927   cat conftest.err >&5
52928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52929   (exit $ac_status); } && {
52930          test -z "$ac_c_werror_flag" ||
52931          test ! -s conftest.err
52932        } && test -s conftest.$ac_objext; then
52933   :
52934 else
52935   $as_echo "$as_me: failed program was:" >&5
52936 sed 's/^/| /' conftest.$ac_ext >&5
52937
52938         ac_cv_type_size_t=yes
52939 fi
52940
52941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52942 else
52943   $as_echo "$as_me: failed program was:" >&5
52944 sed 's/^/| /' conftest.$ac_ext >&5
52945
52946
52947 fi
52948
52949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52950 fi
52951 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
52952 $as_echo "$ac_cv_type_size_t" >&6; }
52953 if test "x$ac_cv_type_size_t" = x""yes; then
52954   :
52955 else
52956
52957 cat >>confdefs.h <<_ACEOF
52958 #define size_t unsigned int
52959 _ACEOF
52960
52961 fi
52962
52963 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
52964 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
52965 if test "${ac_cv_type_uid_t+set}" = set; then
52966   $as_echo_n "(cached) " >&6
52967 else
52968   cat >conftest.$ac_ext <<_ACEOF
52969 /* confdefs.h.  */
52970 _ACEOF
52971 cat confdefs.h >>conftest.$ac_ext
52972 cat >>conftest.$ac_ext <<_ACEOF
52973 /* end confdefs.h.  */
52974 #include <sys/types.h>
52975
52976 _ACEOF
52977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52978   $EGREP "uid_t" >/dev/null 2>&1; then
52979   ac_cv_type_uid_t=yes
52980 else
52981   ac_cv_type_uid_t=no
52982 fi
52983 rm -f conftest*
52984
52985 fi
52986 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
52987 $as_echo "$ac_cv_type_uid_t" >&6; }
52988 if test $ac_cv_type_uid_t = no; then
52989
52990 cat >>confdefs.h <<\_ACEOF
52991 #define uid_t int
52992 _ACEOF
52993
52994
52995 cat >>confdefs.h <<\_ACEOF
52996 #define gid_t int
52997 _ACEOF
52998
52999 fi
53000
53001 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
53002 $as_echo_n "checking return type of signal handlers... " >&6; }
53003 if test "${ac_cv_type_signal+set}" = set; then
53004   $as_echo_n "(cached) " >&6
53005 else
53006   cat >conftest.$ac_ext <<_ACEOF
53007 /* confdefs.h.  */
53008 _ACEOF
53009 cat confdefs.h >>conftest.$ac_ext
53010 cat >>conftest.$ac_ext <<_ACEOF
53011 /* end confdefs.h.  */
53012 #include <sys/types.h>
53013 #include <signal.h>
53014
53015 int
53016 main ()
53017 {
53018 return *(signal (0, 0)) (0) == 1;
53019   ;
53020   return 0;
53021 }
53022 _ACEOF
53023 rm -f conftest.$ac_objext
53024 if { (ac_try="$ac_compile"
53025 case "(($ac_try" in
53026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53027   *) ac_try_echo=$ac_try;;
53028 esac
53029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53030 $as_echo "$ac_try_echo") >&5
53031   (eval "$ac_compile") 2>conftest.er1
53032   ac_status=$?
53033   grep -v '^ *+' conftest.er1 >conftest.err
53034   rm -f conftest.er1
53035   cat conftest.err >&5
53036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53037   (exit $ac_status); } && {
53038          test -z "$ac_c_werror_flag" ||
53039          test ! -s conftest.err
53040        } && test -s conftest.$ac_objext; then
53041   ac_cv_type_signal=int
53042 else
53043   $as_echo "$as_me: failed program was:" >&5
53044 sed 's/^/| /' conftest.$ac_ext >&5
53045
53046         ac_cv_type_signal=void
53047 fi
53048
53049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53050 fi
53051 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
53052 $as_echo "$ac_cv_type_signal" >&6; }
53053
53054 cat >>confdefs.h <<_ACEOF
53055 #define RETSIGTYPE $ac_cv_type_signal
53056 _ACEOF
53057
53058
53059 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
53060 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
53061 if test "${ac_cv_struct_tm+set}" = set; then
53062   $as_echo_n "(cached) " >&6
53063 else
53064   cat >conftest.$ac_ext <<_ACEOF
53065 /* confdefs.h.  */
53066 _ACEOF
53067 cat confdefs.h >>conftest.$ac_ext
53068 cat >>conftest.$ac_ext <<_ACEOF
53069 /* end confdefs.h.  */
53070 #include <sys/types.h>
53071 #include <time.h>
53072
53073 int
53074 main ()
53075 {
53076 struct tm tm;
53077                                      int *p = &tm.tm_sec;
53078                                      return !p;
53079   ;
53080   return 0;
53081 }
53082 _ACEOF
53083 rm -f conftest.$ac_objext
53084 if { (ac_try="$ac_compile"
53085 case "(($ac_try" in
53086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53087   *) ac_try_echo=$ac_try;;
53088 esac
53089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53090 $as_echo "$ac_try_echo") >&5
53091   (eval "$ac_compile") 2>conftest.er1
53092   ac_status=$?
53093   grep -v '^ *+' conftest.er1 >conftest.err
53094   rm -f conftest.er1
53095   cat conftest.err >&5
53096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53097   (exit $ac_status); } && {
53098          test -z "$ac_c_werror_flag" ||
53099          test ! -s conftest.err
53100        } && test -s conftest.$ac_objext; then
53101   ac_cv_struct_tm=time.h
53102 else
53103   $as_echo "$as_me: failed program was:" >&5
53104 sed 's/^/| /' conftest.$ac_ext >&5
53105
53106         ac_cv_struct_tm=sys/time.h
53107 fi
53108
53109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53110 fi
53111 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
53112 $as_echo "$ac_cv_struct_tm" >&6; }
53113 if test $ac_cv_struct_tm = sys/time.h; then
53114
53115 cat >>confdefs.h <<\_ACEOF
53116 #define TM_IN_SYS_TIME 1
53117 _ACEOF
53118
53119 fi
53120
53121
53122       ## lifted from config/gnulib/socklen.m4
53123             { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
53124 $as_echo_n "checking for socklen_t equivalent... " >&6; }
53125       if test "${gl_cv_socklen_t_equiv+set}" = set; then
53126   $as_echo_n "(cached) " >&6
53127 else
53128   # Systems have either "struct sockaddr *" or
53129          # "void *" as the second argument to getpeername
53130          gl_cv_socklen_t_equiv=
53131          for arg2 in "struct sockaddr" void; do
53132            for t in socklen_t int size_t "unsigned int" "long int" "unsigned long int"; do
53133              cat >conftest.$ac_ext <<_ACEOF
53134 /* confdefs.h.  */
53135 _ACEOF
53136 cat confdefs.h >>conftest.$ac_ext
53137 cat >>conftest.$ac_ext <<_ACEOF
53138 /* end confdefs.h.  */
53139 #include <sys/types.h>
53140                 #include <sys/socket.h>
53141
53142                 int getpeername (int, $arg2 *, $t *);
53143 int
53144 main ()
53145 {
53146 $t len;
53147                 getpeername (0, 0, &len);
53148   ;
53149   return 0;
53150 }
53151 _ACEOF
53152 rm -f conftest.$ac_objext
53153 if { (ac_try="$ac_compile"
53154 case "(($ac_try" in
53155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53156   *) ac_try_echo=$ac_try;;
53157 esac
53158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53159 $as_echo "$ac_try_echo") >&5
53160   (eval "$ac_compile") 2>conftest.er1
53161   ac_status=$?
53162   grep -v '^ *+' conftest.er1 >conftest.err
53163   rm -f conftest.er1
53164   cat conftest.err >&5
53165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53166   (exit $ac_status); } && {
53167          test -z "$ac_c_werror_flag" ||
53168          test ! -s conftest.err
53169        } && test -s conftest.$ac_objext; then
53170   gl_cv_socklen_t_equiv="$t"
53171 else
53172   $as_echo "$as_me: failed program was:" >&5
53173 sed 's/^/| /' conftest.$ac_ext >&5
53174
53175
53176 fi
53177
53178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53179              test "$gl_cv_socklen_t_equiv" != "" && break
53180            done
53181            test "$gl_cv_socklen_t_equiv" != "" && break
53182          done
53183
53184 fi
53185
53186       ## end lifting from config/gnulib/socklen.m4
53187       # fallback if the check fails
53188       if test "$gl_cv_socklen_t_equiv" = ""; then
53189         gl_cv_socklen_t_equiv=socklen_t
53190       fi
53191       { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
53192 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
53193
53194
53195 cat >>confdefs.h <<_ACEOF
53196 #define socklen_t_equiv $gl_cv_socklen_t_equiv
53197 _ACEOF
53198
53199
53200
53201
53202     { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
53203 $as_echo_n "checking for sa_family_t... " >&6; }
53204 if test "${ac_cv_type_sa_family_t+set}" = set; then
53205   $as_echo_n "(cached) " >&6
53206 else
53207   ac_cv_type_sa_family_t=no
53208 cat >conftest.$ac_ext <<_ACEOF
53209 /* confdefs.h.  */
53210 _ACEOF
53211 cat confdefs.h >>conftest.$ac_ext
53212 cat >>conftest.$ac_ext <<_ACEOF
53213 /* end confdefs.h.  */
53214
53215 #ifdef HAVE_SYS_TYPES_H
53216 #include <sys/types.h>
53217 #endif
53218 #ifdef STDC_HEADERS
53219 #include <stdlib.h>
53220 #include <stddef.h>
53221 #endif
53222 #include <sys/socket.h>
53223
53224
53225
53226 int
53227 main ()
53228 {
53229 if (sizeof (sa_family_t))
53230        return 0;
53231   ;
53232   return 0;
53233 }
53234 _ACEOF
53235 rm -f conftest.$ac_objext
53236 if { (ac_try="$ac_compile"
53237 case "(($ac_try" in
53238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53239   *) ac_try_echo=$ac_try;;
53240 esac
53241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53242 $as_echo "$ac_try_echo") >&5
53243   (eval "$ac_compile") 2>conftest.er1
53244   ac_status=$?
53245   grep -v '^ *+' conftest.er1 >conftest.err
53246   rm -f conftest.er1
53247   cat conftest.err >&5
53248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53249   (exit $ac_status); } && {
53250          test -z "$ac_c_werror_flag" ||
53251          test ! -s conftest.err
53252        } && test -s conftest.$ac_objext; then
53253   cat >conftest.$ac_ext <<_ACEOF
53254 /* confdefs.h.  */
53255 _ACEOF
53256 cat confdefs.h >>conftest.$ac_ext
53257 cat >>conftest.$ac_ext <<_ACEOF
53258 /* end confdefs.h.  */
53259
53260 #ifdef HAVE_SYS_TYPES_H
53261 #include <sys/types.h>
53262 #endif
53263 #ifdef STDC_HEADERS
53264 #include <stdlib.h>
53265 #include <stddef.h>
53266 #endif
53267 #include <sys/socket.h>
53268
53269
53270
53271 int
53272 main ()
53273 {
53274 if (sizeof ((sa_family_t)))
53275           return 0;
53276   ;
53277   return 0;
53278 }
53279 _ACEOF
53280 rm -f conftest.$ac_objext
53281 if { (ac_try="$ac_compile"
53282 case "(($ac_try" in
53283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53284   *) ac_try_echo=$ac_try;;
53285 esac
53286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53287 $as_echo "$ac_try_echo") >&5
53288   (eval "$ac_compile") 2>conftest.er1
53289   ac_status=$?
53290   grep -v '^ *+' conftest.er1 >conftest.err
53291   rm -f conftest.er1
53292   cat conftest.err >&5
53293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53294   (exit $ac_status); } && {
53295          test -z "$ac_c_werror_flag" ||
53296          test ! -s conftest.err
53297        } && test -s conftest.$ac_objext; then
53298   :
53299 else
53300   $as_echo "$as_me: failed program was:" >&5
53301 sed 's/^/| /' conftest.$ac_ext >&5
53302
53303         ac_cv_type_sa_family_t=yes
53304 fi
53305
53306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53307 else
53308   $as_echo "$as_me: failed program was:" >&5
53309 sed 's/^/| /' conftest.$ac_ext >&5
53310
53311
53312 fi
53313
53314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53315 fi
53316 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
53317 $as_echo "$ac_cv_type_sa_family_t" >&6; }
53318 if test "x$ac_cv_type_sa_family_t" = x""yes; then
53319   :
53320 else
53321
53322
53323 cat >>confdefs.h <<\_ACEOF
53324 #define sa_family_t unsigned short
53325 _ACEOF
53326
53327
53328 fi
53329
53330
53331
53332
53333     { $as_echo "$as_me:$LINENO: checking for in_port_t" >&5
53334 $as_echo_n "checking for in_port_t... " >&6; }
53335 if test "${ac_cv_type_in_port_t+set}" = set; then
53336   $as_echo_n "(cached) " >&6
53337 else
53338   ac_cv_type_in_port_t=no
53339 cat >conftest.$ac_ext <<_ACEOF
53340 /* confdefs.h.  */
53341 _ACEOF
53342 cat confdefs.h >>conftest.$ac_ext
53343 cat >>conftest.$ac_ext <<_ACEOF
53344 /* end confdefs.h.  */
53345
53346 #ifdef HAVE_SYS_TYPES_H
53347 #include <sys/types.h>
53348 #endif
53349 #ifdef STDC_HEADERS
53350 #include <stdlib.h>
53351 #include <stddef.h>
53352 #endif
53353 #include <netinet/in.h>
53354
53355
53356
53357 int
53358 main ()
53359 {
53360 if (sizeof (in_port_t))
53361        return 0;
53362   ;
53363   return 0;
53364 }
53365 _ACEOF
53366 rm -f conftest.$ac_objext
53367 if { (ac_try="$ac_compile"
53368 case "(($ac_try" in
53369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53370   *) ac_try_echo=$ac_try;;
53371 esac
53372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53373 $as_echo "$ac_try_echo") >&5
53374   (eval "$ac_compile") 2>conftest.er1
53375   ac_status=$?
53376   grep -v '^ *+' conftest.er1 >conftest.err
53377   rm -f conftest.er1
53378   cat conftest.err >&5
53379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53380   (exit $ac_status); } && {
53381          test -z "$ac_c_werror_flag" ||
53382          test ! -s conftest.err
53383        } && test -s conftest.$ac_objext; then
53384   cat >conftest.$ac_ext <<_ACEOF
53385 /* confdefs.h.  */
53386 _ACEOF
53387 cat confdefs.h >>conftest.$ac_ext
53388 cat >>conftest.$ac_ext <<_ACEOF
53389 /* end confdefs.h.  */
53390
53391 #ifdef HAVE_SYS_TYPES_H
53392 #include <sys/types.h>
53393 #endif
53394 #ifdef STDC_HEADERS
53395 #include <stdlib.h>
53396 #include <stddef.h>
53397 #endif
53398 #include <netinet/in.h>
53399
53400
53401
53402 int
53403 main ()
53404 {
53405 if (sizeof ((in_port_t)))
53406           return 0;
53407   ;
53408   return 0;
53409 }
53410 _ACEOF
53411 rm -f conftest.$ac_objext
53412 if { (ac_try="$ac_compile"
53413 case "(($ac_try" in
53414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53415   *) ac_try_echo=$ac_try;;
53416 esac
53417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53418 $as_echo "$ac_try_echo") >&5
53419   (eval "$ac_compile") 2>conftest.er1
53420   ac_status=$?
53421   grep -v '^ *+' conftest.er1 >conftest.err
53422   rm -f conftest.er1
53423   cat conftest.err >&5
53424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53425   (exit $ac_status); } && {
53426          test -z "$ac_c_werror_flag" ||
53427          test ! -s conftest.err
53428        } && test -s conftest.$ac_objext; then
53429   :
53430 else
53431   $as_echo "$as_me: failed program was:" >&5
53432 sed 's/^/| /' conftest.$ac_ext >&5
53433
53434         ac_cv_type_in_port_t=yes
53435 fi
53436
53437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53438 else
53439   $as_echo "$as_me: failed program was:" >&5
53440 sed 's/^/| /' conftest.$ac_ext >&5
53441
53442
53443 fi
53444
53445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53446 fi
53447 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
53448 $as_echo "$ac_cv_type_in_port_t" >&6; }
53449 if test "x$ac_cv_type_in_port_t" = x""yes; then
53450   :
53451 else
53452
53453
53454 cat >>confdefs.h <<\_ACEOF
53455 #define in_port_t unsigned short
53456 _ACEOF
53457
53458
53459 fi
53460
53461
53462
53463
53464
53465
53466 for ac_header in sys/wait.h wait.h
53467 do
53468 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
53469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53470   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
53471 $as_echo_n "checking for $ac_header... " >&6; }
53472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53473   $as_echo_n "(cached) " >&6
53474 fi
53475 ac_res=`eval 'as_val=${'$as_ac_Header'}
53476                  $as_echo "$as_val"'`
53477                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53478 $as_echo "$ac_res" >&6; }
53479 else
53480   # Is the header compilable?
53481 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
53482 $as_echo_n "checking $ac_header usability... " >&6; }
53483 cat >conftest.$ac_ext <<_ACEOF
53484 /* confdefs.h.  */
53485 _ACEOF
53486 cat confdefs.h >>conftest.$ac_ext
53487 cat >>conftest.$ac_ext <<_ACEOF
53488 /* end confdefs.h.  */
53489 $ac_includes_default
53490 #include <$ac_header>
53491 _ACEOF
53492 rm -f conftest.$ac_objext
53493 if { (ac_try="$ac_compile"
53494 case "(($ac_try" in
53495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53496   *) ac_try_echo=$ac_try;;
53497 esac
53498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53499 $as_echo "$ac_try_echo") >&5
53500   (eval "$ac_compile") 2>conftest.er1
53501   ac_status=$?
53502   grep -v '^ *+' conftest.er1 >conftest.err
53503   rm -f conftest.er1
53504   cat conftest.err >&5
53505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53506   (exit $ac_status); } && {
53507          test -z "$ac_c_werror_flag" ||
53508          test ! -s conftest.err
53509        } && test -s conftest.$ac_objext; then
53510   ac_header_compiler=yes
53511 else
53512   $as_echo "$as_me: failed program was:" >&5
53513 sed 's/^/| /' conftest.$ac_ext >&5
53514
53515         ac_header_compiler=no
53516 fi
53517
53518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53519 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53520 $as_echo "$ac_header_compiler" >&6; }
53521
53522 # Is the header present?
53523 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
53524 $as_echo_n "checking $ac_header presence... " >&6; }
53525 cat >conftest.$ac_ext <<_ACEOF
53526 /* confdefs.h.  */
53527 _ACEOF
53528 cat confdefs.h >>conftest.$ac_ext
53529 cat >>conftest.$ac_ext <<_ACEOF
53530 /* end confdefs.h.  */
53531 #include <$ac_header>
53532 _ACEOF
53533 if { (ac_try="$ac_cpp conftest.$ac_ext"
53534 case "(($ac_try" in
53535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53536   *) ac_try_echo=$ac_try;;
53537 esac
53538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53539 $as_echo "$ac_try_echo") >&5
53540   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
53541   ac_status=$?
53542   grep -v '^ *+' conftest.er1 >conftest.err
53543   rm -f conftest.er1
53544   cat conftest.err >&5
53545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53546   (exit $ac_status); } >/dev/null && {
53547          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
53548          test ! -s conftest.err
53549        }; then
53550   ac_header_preproc=yes
53551 else
53552   $as_echo "$as_me: failed program was:" >&5
53553 sed 's/^/| /' conftest.$ac_ext >&5
53554
53555   ac_header_preproc=no
53556 fi
53557
53558 rm -f conftest.err conftest.$ac_ext
53559 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53560 $as_echo "$ac_header_preproc" >&6; }
53561
53562 # So?  What about this header?
53563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53564   yes:no: )
53565     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53566 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53567     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53568 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53569     ac_header_preproc=yes
53570     ;;
53571   no:yes:* )
53572     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53573 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53574     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
53575 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
53576     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53577 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53578     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
53579 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
53580     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53581 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53582     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53583 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53584
53585     ;;
53586 esac
53587 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
53588 $as_echo_n "checking for $ac_header... " >&6; }
53589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53590   $as_echo_n "(cached) " >&6
53591 else
53592   eval "$as_ac_Header=\$ac_header_preproc"
53593 fi
53594 ac_res=`eval 'as_val=${'$as_ac_Header'}
53595                  $as_echo "$as_val"'`
53596                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53597 $as_echo "$ac_res" >&6; }
53598
53599 fi
53600 as_val=`eval 'as_val=${'$as_ac_Header'}
53601                  $as_echo "$as_val"'`
53602    if test "x$as_val" = x""yes; then
53603   cat >>confdefs.h <<_ACEOF
53604 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
53605 _ACEOF
53606
53607 fi
53608
53609 done
53610
53611     { $as_echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
53612 $as_echo_n "checking whether wait uses union wait... " >&6; }
53613 if test "${cf_cv_arg_union_wait+set}" = set; then
53614   $as_echo_n "(cached) " >&6
53615 else
53616
53617         cat >conftest.$ac_ext <<_ACEOF
53618 /* confdefs.h.  */
53619 _ACEOF
53620 cat confdefs.h >>conftest.$ac_ext
53621 cat >>conftest.$ac_ext <<_ACEOF
53622 /* end confdefs.h.  */
53623
53624 #include <sys/types.h>
53625
53626 #if HAVE_SYS_WAIT_H
53627 # include <sys/wait.h>
53628 #else
53629 # if HAVE_WAIT_H
53630 #  include <wait.h>
53631 # endif
53632 #endif
53633
53634 #ifdef __STDC__
53635 pid_t wait(union wait *);
53636 #endif
53637
53638 int
53639 main ()
53640 {
53641
53642   union wait x; int i;
53643   wait(&x); i = WIFEXITED(x)
53644
53645   ;
53646   return 0;
53647 }
53648 _ACEOF
53649 rm -f conftest.$ac_objext
53650 if { (ac_try="$ac_compile"
53651 case "(($ac_try" in
53652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53653   *) ac_try_echo=$ac_try;;
53654 esac
53655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53656 $as_echo "$ac_try_echo") >&5
53657   (eval "$ac_compile") 2>conftest.er1
53658   ac_status=$?
53659   grep -v '^ *+' conftest.er1 >conftest.err
53660   rm -f conftest.er1
53661   cat conftest.err >&5
53662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53663   (exit $ac_status); } && {
53664          test -z "$ac_c_werror_flag" ||
53665          test ! -s conftest.err
53666        } && test -s conftest.$ac_objext; then
53667   cf_cv_arg_union_wait=yes
53668 else
53669   $as_echo "$as_me: failed program was:" >&5
53670 sed 's/^/| /' conftest.$ac_ext >&5
53671
53672         cf_cv_arg_union_wait=no
53673 fi
53674
53675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53676 fi
53677 { $as_echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
53678 $as_echo "$cf_cv_arg_union_wait" >&6; }
53679     if test $cf_cv_arg_union_wait = yes; then
53680
53681 cat >>confdefs.h <<\_ACEOF
53682 #define WAIT_USES_UNION 1
53683 _ACEOF
53684
53685     fi
53686
53687
53688
53689
53690
53691 for ac_header in sys/wait.h wait.h
53692 do
53693 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
53694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53695   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
53696 $as_echo_n "checking for $ac_header... " >&6; }
53697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53698   $as_echo_n "(cached) " >&6
53699 fi
53700 ac_res=`eval 'as_val=${'$as_ac_Header'}
53701                  $as_echo "$as_val"'`
53702                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53703 $as_echo "$ac_res" >&6; }
53704 else
53705   # Is the header compilable?
53706 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
53707 $as_echo_n "checking $ac_header usability... " >&6; }
53708 cat >conftest.$ac_ext <<_ACEOF
53709 /* confdefs.h.  */
53710 _ACEOF
53711 cat confdefs.h >>conftest.$ac_ext
53712 cat >>conftest.$ac_ext <<_ACEOF
53713 /* end confdefs.h.  */
53714 $ac_includes_default
53715 #include <$ac_header>
53716 _ACEOF
53717 rm -f conftest.$ac_objext
53718 if { (ac_try="$ac_compile"
53719 case "(($ac_try" in
53720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53721   *) ac_try_echo=$ac_try;;
53722 esac
53723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53724 $as_echo "$ac_try_echo") >&5
53725   (eval "$ac_compile") 2>conftest.er1
53726   ac_status=$?
53727   grep -v '^ *+' conftest.er1 >conftest.err
53728   rm -f conftest.er1
53729   cat conftest.err >&5
53730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53731   (exit $ac_status); } && {
53732          test -z "$ac_c_werror_flag" ||
53733          test ! -s conftest.err
53734        } && test -s conftest.$ac_objext; then
53735   ac_header_compiler=yes
53736 else
53737   $as_echo "$as_me: failed program was:" >&5
53738 sed 's/^/| /' conftest.$ac_ext >&5
53739
53740         ac_header_compiler=no
53741 fi
53742
53743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53744 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53745 $as_echo "$ac_header_compiler" >&6; }
53746
53747 # Is the header present?
53748 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
53749 $as_echo_n "checking $ac_header presence... " >&6; }
53750 cat >conftest.$ac_ext <<_ACEOF
53751 /* confdefs.h.  */
53752 _ACEOF
53753 cat confdefs.h >>conftest.$ac_ext
53754 cat >>conftest.$ac_ext <<_ACEOF
53755 /* end confdefs.h.  */
53756 #include <$ac_header>
53757 _ACEOF
53758 if { (ac_try="$ac_cpp conftest.$ac_ext"
53759 case "(($ac_try" in
53760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53761   *) ac_try_echo=$ac_try;;
53762 esac
53763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53764 $as_echo "$ac_try_echo") >&5
53765   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
53766   ac_status=$?
53767   grep -v '^ *+' conftest.er1 >conftest.err
53768   rm -f conftest.er1
53769   cat conftest.err >&5
53770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53771   (exit $ac_status); } >/dev/null && {
53772          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
53773          test ! -s conftest.err
53774        }; then
53775   ac_header_preproc=yes
53776 else
53777   $as_echo "$as_me: failed program was:" >&5
53778 sed 's/^/| /' conftest.$ac_ext >&5
53779
53780   ac_header_preproc=no
53781 fi
53782
53783 rm -f conftest.err conftest.$ac_ext
53784 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53785 $as_echo "$ac_header_preproc" >&6; }
53786
53787 # So?  What about this header?
53788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53789   yes:no: )
53790     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53791 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53792     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53793 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53794     ac_header_preproc=yes
53795     ;;
53796   no:yes:* )
53797     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53798 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53799     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
53800 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
53801     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53802 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53803     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
53804 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
53805     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53806 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53807     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53808 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53809
53810     ;;
53811 esac
53812 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
53813 $as_echo_n "checking for $ac_header... " >&6; }
53814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53815   $as_echo_n "(cached) " >&6
53816 else
53817   eval "$as_ac_Header=\$ac_header_preproc"
53818 fi
53819 ac_res=`eval 'as_val=${'$as_ac_Header'}
53820                  $as_echo "$as_val"'`
53821                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53822 $as_echo "$ac_res" >&6; }
53823
53824 fi
53825 as_val=`eval 'as_val=${'$as_ac_Header'}
53826                  $as_echo "$as_val"'`
53827    if test "x$as_val" = x""yes; then
53828   cat >>confdefs.h <<_ACEOF
53829 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
53830 _ACEOF
53831
53832 fi
53833
53834 done
53835
53836     { $as_echo "$as_me:$LINENO: checking whether wait uses int" >&5
53837 $as_echo_n "checking whether wait uses int... " >&6; }
53838 if test "${cf_cv_arg_int+set}" = set; then
53839   $as_echo_n "(cached) " >&6
53840 else
53841
53842         cat >conftest.$ac_ext <<_ACEOF
53843 /* confdefs.h.  */
53844 _ACEOF
53845 cat confdefs.h >>conftest.$ac_ext
53846 cat >>conftest.$ac_ext <<_ACEOF
53847 /* end confdefs.h.  */
53848
53849 #include <sys/types.h>
53850
53851 #if HAVE_SYS_WAIT_H
53852 # include <sys/wait.h>
53853 #else
53854 # if HAVE_WAIT_H
53855 #  include <wait.h>
53856 # endif
53857 #endif
53858
53859 #ifdef __STDC__
53860 pid_t wait(int *);
53861 #endif
53862
53863 int
53864 main ()
53865 {
53866
53867   int x; int i;
53868   wait(&x); i = WIFEXITED(x)
53869
53870   ;
53871   return 0;
53872 }
53873 _ACEOF
53874 rm -f conftest.$ac_objext
53875 if { (ac_try="$ac_compile"
53876 case "(($ac_try" in
53877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53878   *) ac_try_echo=$ac_try;;
53879 esac
53880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53881 $as_echo "$ac_try_echo") >&5
53882   (eval "$ac_compile") 2>conftest.er1
53883   ac_status=$?
53884   grep -v '^ *+' conftest.er1 >conftest.err
53885   rm -f conftest.er1
53886   cat conftest.err >&5
53887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53888   (exit $ac_status); } && {
53889          test -z "$ac_c_werror_flag" ||
53890          test ! -s conftest.err
53891        } && test -s conftest.$ac_objext; then
53892   cf_cv_arg_int=yes
53893 else
53894   $as_echo "$as_me: failed program was:" >&5
53895 sed 's/^/| /' conftest.$ac_ext >&5
53896
53897         cf_cv_arg_int=no
53898 fi
53899
53900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53901 fi
53902 { $as_echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
53903 $as_echo "$cf_cv_arg_int" >&6; }
53904 if test $cf_cv_arg_int = yes; then
53905
53906 cat >>confdefs.h <<\_ACEOF
53907 #define WAIT_USES_INT 1
53908 _ACEOF
53909
53910 fi
53911
53912
53913 #
53914 # Libraries
53915 #
53916 # cur_colr is on some HP's
53917
53918 { $as_echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
53919 $as_echo_n "checking for main in -lcur_colr... " >&6; }
53920 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
53921   $as_echo_n "(cached) " >&6
53922 else
53923   ac_check_lib_save_LIBS=$LIBS
53924 LIBS="-lcur_colr  $LIBS"
53925 cat >conftest.$ac_ext <<_ACEOF
53926 /* confdefs.h.  */
53927 _ACEOF
53928 cat confdefs.h >>conftest.$ac_ext
53929 cat >>conftest.$ac_ext <<_ACEOF
53930 /* end confdefs.h.  */
53931
53932
53933 int
53934 main ()
53935 {
53936 return main ();
53937   ;
53938   return 0;
53939 }
53940 _ACEOF
53941 rm -f conftest.$ac_objext conftest$ac_exeext
53942 if { (ac_try="$ac_link"
53943 case "(($ac_try" in
53944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53945   *) ac_try_echo=$ac_try;;
53946 esac
53947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53948 $as_echo "$ac_try_echo") >&5
53949   (eval "$ac_link") 2>conftest.er1
53950   ac_status=$?
53951   grep -v '^ *+' conftest.er1 >conftest.err
53952   rm -f conftest.er1
53953   cat conftest.err >&5
53954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53955   (exit $ac_status); } && {
53956          test -z "$ac_c_werror_flag" ||
53957          test ! -s conftest.err
53958        } && test -s conftest$ac_exeext && {
53959          test "$cross_compiling" = yes ||
53960          $as_test_x conftest$ac_exeext
53961        }; then
53962   ac_cv_lib_cur_colr_main=yes
53963 else
53964   $as_echo "$as_me: failed program was:" >&5
53965 sed 's/^/| /' conftest.$ac_ext >&5
53966
53967         ac_cv_lib_cur_colr_main=no
53968 fi
53969
53970 rm -rf conftest.dSYM
53971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53972       conftest$ac_exeext conftest.$ac_ext
53973 LIBS=$ac_check_lib_save_LIBS
53974 fi
53975 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
53976 $as_echo "$ac_cv_lib_cur_colr_main" >&6; }
53977 if test "x$ac_cv_lib_cur_colr_main" = x""yes; then
53978   cat >>confdefs.h <<_ACEOF
53979 #define HAVE_LIBCUR_COLR 1
53980 _ACEOF
53981
53982   LIBS="-lcur_colr $LIBS"
53983
53984 fi
53985
53986
53987 { $as_echo "$as_me:$LINENO: checking for main in -lintl" >&5
53988 $as_echo_n "checking for main in -lintl... " >&6; }
53989 if test "${ac_cv_lib_intl_main+set}" = set; then
53990   $as_echo_n "(cached) " >&6
53991 else
53992   ac_check_lib_save_LIBS=$LIBS
53993 LIBS="-lintl  $LIBS"
53994 cat >conftest.$ac_ext <<_ACEOF
53995 /* confdefs.h.  */
53996 _ACEOF
53997 cat confdefs.h >>conftest.$ac_ext
53998 cat >>conftest.$ac_ext <<_ACEOF
53999 /* end confdefs.h.  */
54000
54001
54002 int
54003 main ()
54004 {
54005 return main ();
54006   ;
54007   return 0;
54008 }
54009 _ACEOF
54010 rm -f conftest.$ac_objext conftest$ac_exeext
54011 if { (ac_try="$ac_link"
54012 case "(($ac_try" in
54013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54014   *) ac_try_echo=$ac_try;;
54015 esac
54016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54017 $as_echo "$ac_try_echo") >&5
54018   (eval "$ac_link") 2>conftest.er1
54019   ac_status=$?
54020   grep -v '^ *+' conftest.er1 >conftest.err
54021   rm -f conftest.er1
54022   cat conftest.err >&5
54023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54024   (exit $ac_status); } && {
54025          test -z "$ac_c_werror_flag" ||
54026          test ! -s conftest.err
54027        } && test -s conftest$ac_exeext && {
54028          test "$cross_compiling" = yes ||
54029          $as_test_x conftest$ac_exeext
54030        }; then
54031   ac_cv_lib_intl_main=yes
54032 else
54033   $as_echo "$as_me: failed program was:" >&5
54034 sed 's/^/| /' conftest.$ac_ext >&5
54035
54036         ac_cv_lib_intl_main=no
54037 fi
54038
54039 rm -rf conftest.dSYM
54040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54041       conftest$ac_exeext conftest.$ac_ext
54042 LIBS=$ac_check_lib_save_LIBS
54043 fi
54044 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
54045 $as_echo "$ac_cv_lib_intl_main" >&6; }
54046 if test "x$ac_cv_lib_intl_main" = x""yes; then
54047   cat >>confdefs.h <<_ACEOF
54048 #define HAVE_LIBINTL 1
54049 _ACEOF
54050
54051   LIBS="-lintl $LIBS"
54052
54053 fi
54054
54055
54056     # Make sure we don't use -lnsl and -lsun on Irix systems.
54057     case "$host" in
54058         *sgi-irix*)
54059
54060 { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
54061 $as_echo_n "checking for main in -lsocket... " >&6; }
54062 if test "${ac_cv_lib_socket_main+set}" = set; then
54063   $as_echo_n "(cached) " >&6
54064 else
54065   ac_check_lib_save_LIBS=$LIBS
54066 LIBS="-lsocket  $LIBS"
54067 cat >conftest.$ac_ext <<_ACEOF
54068 /* confdefs.h.  */
54069 _ACEOF
54070 cat confdefs.h >>conftest.$ac_ext
54071 cat >>conftest.$ac_ext <<_ACEOF
54072 /* end confdefs.h.  */
54073
54074
54075 int
54076 main ()
54077 {
54078 return main ();
54079   ;
54080   return 0;
54081 }
54082 _ACEOF
54083 rm -f conftest.$ac_objext conftest$ac_exeext
54084 if { (ac_try="$ac_link"
54085 case "(($ac_try" in
54086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54087   *) ac_try_echo=$ac_try;;
54088 esac
54089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54090 $as_echo "$ac_try_echo") >&5
54091   (eval "$ac_link") 2>conftest.er1
54092   ac_status=$?
54093   grep -v '^ *+' conftest.er1 >conftest.err
54094   rm -f conftest.er1
54095   cat conftest.err >&5
54096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54097   (exit $ac_status); } && {
54098          test -z "$ac_c_werror_flag" ||
54099          test ! -s conftest.err
54100        } && test -s conftest$ac_exeext && {
54101          test "$cross_compiling" = yes ||
54102          $as_test_x conftest$ac_exeext
54103        }; then
54104   ac_cv_lib_socket_main=yes
54105 else
54106   $as_echo "$as_me: failed program was:" >&5
54107 sed 's/^/| /' conftest.$ac_ext >&5
54108
54109         ac_cv_lib_socket_main=no
54110 fi
54111
54112 rm -rf conftest.dSYM
54113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54114       conftest$ac_exeext conftest.$ac_ext
54115 LIBS=$ac_check_lib_save_LIBS
54116 fi
54117 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
54118 $as_echo "$ac_cv_lib_socket_main" >&6; }
54119 if test "x$ac_cv_lib_socket_main" = x""yes; then
54120   cat >>confdefs.h <<_ACEOF
54121 #define HAVE_LIBSOCKET 1
54122 _ACEOF
54123
54124   LIBS="-lsocket $LIBS"
54125
54126 fi
54127
54128                             ;;
54129         *)
54130
54131 { $as_echo "$as_me:$LINENO: checking for main in -lresolv" >&5
54132 $as_echo_n "checking for main in -lresolv... " >&6; }
54133 if test "${ac_cv_lib_resolv_main+set}" = set; then
54134   $as_echo_n "(cached) " >&6
54135 else
54136   ac_check_lib_save_LIBS=$LIBS
54137 LIBS="-lresolv  $LIBS"
54138 cat >conftest.$ac_ext <<_ACEOF
54139 /* confdefs.h.  */
54140 _ACEOF
54141 cat confdefs.h >>conftest.$ac_ext
54142 cat >>conftest.$ac_ext <<_ACEOF
54143 /* end confdefs.h.  */
54144
54145
54146 int
54147 main ()
54148 {
54149 return main ();
54150   ;
54151   return 0;
54152 }
54153 _ACEOF
54154 rm -f conftest.$ac_objext conftest$ac_exeext
54155 if { (ac_try="$ac_link"
54156 case "(($ac_try" in
54157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54158   *) ac_try_echo=$ac_try;;
54159 esac
54160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54161 $as_echo "$ac_try_echo") >&5
54162   (eval "$ac_link") 2>conftest.er1
54163   ac_status=$?
54164   grep -v '^ *+' conftest.er1 >conftest.err
54165   rm -f conftest.er1
54166   cat conftest.err >&5
54167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54168   (exit $ac_status); } && {
54169          test -z "$ac_c_werror_flag" ||
54170          test ! -s conftest.err
54171        } && test -s conftest$ac_exeext && {
54172          test "$cross_compiling" = yes ||
54173          $as_test_x conftest$ac_exeext
54174        }; then
54175   ac_cv_lib_resolv_main=yes
54176 else
54177   $as_echo "$as_me: failed program was:" >&5
54178 sed 's/^/| /' conftest.$ac_ext >&5
54179
54180         ac_cv_lib_resolv_main=no
54181 fi
54182
54183 rm -rf conftest.dSYM
54184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54185       conftest$ac_exeext conftest.$ac_ext
54186 LIBS=$ac_check_lib_save_LIBS
54187 fi
54188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
54189 $as_echo "$ac_cv_lib_resolv_main" >&6; }
54190 if test "x$ac_cv_lib_resolv_main" = x""yes; then
54191   cat >>confdefs.h <<_ACEOF
54192 #define HAVE_LIBRESOLV 1
54193 _ACEOF
54194
54195   LIBS="-lresolv $LIBS"
54196
54197 fi
54198
54199
54200 { $as_echo "$as_me:$LINENO: checking for main in -lnsl" >&5
54201 $as_echo_n "checking for main in -lnsl... " >&6; }
54202 if test "${ac_cv_lib_nsl_main+set}" = set; then
54203   $as_echo_n "(cached) " >&6
54204 else
54205   ac_check_lib_save_LIBS=$LIBS
54206 LIBS="-lnsl  $LIBS"
54207 cat >conftest.$ac_ext <<_ACEOF
54208 /* confdefs.h.  */
54209 _ACEOF
54210 cat confdefs.h >>conftest.$ac_ext
54211 cat >>conftest.$ac_ext <<_ACEOF
54212 /* end confdefs.h.  */
54213
54214
54215 int
54216 main ()
54217 {
54218 return main ();
54219   ;
54220   return 0;
54221 }
54222 _ACEOF
54223 rm -f conftest.$ac_objext conftest$ac_exeext
54224 if { (ac_try="$ac_link"
54225 case "(($ac_try" in
54226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54227   *) ac_try_echo=$ac_try;;
54228 esac
54229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54230 $as_echo "$ac_try_echo") >&5
54231   (eval "$ac_link") 2>conftest.er1
54232   ac_status=$?
54233   grep -v '^ *+' conftest.er1 >conftest.err
54234   rm -f conftest.er1
54235   cat conftest.err >&5
54236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54237   (exit $ac_status); } && {
54238          test -z "$ac_c_werror_flag" ||
54239          test ! -s conftest.err
54240        } && test -s conftest$ac_exeext && {
54241          test "$cross_compiling" = yes ||
54242          $as_test_x conftest$ac_exeext
54243        }; then
54244   ac_cv_lib_nsl_main=yes
54245 else
54246   $as_echo "$as_me: failed program was:" >&5
54247 sed 's/^/| /' conftest.$ac_ext >&5
54248
54249         ac_cv_lib_nsl_main=no
54250 fi
54251
54252 rm -rf conftest.dSYM
54253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54254       conftest$ac_exeext conftest.$ac_ext
54255 LIBS=$ac_check_lib_save_LIBS
54256 fi
54257 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
54258 $as_echo "$ac_cv_lib_nsl_main" >&6; }
54259 if test "x$ac_cv_lib_nsl_main" = x""yes; then
54260   cat >>confdefs.h <<_ACEOF
54261 #define HAVE_LIBNSL 1
54262 _ACEOF
54263
54264   LIBS="-lnsl $LIBS"
54265
54266 fi
54267
54268
54269 { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
54270 $as_echo_n "checking for main in -lsocket... " >&6; }
54271 if test "${ac_cv_lib_socket_main+set}" = set; then
54272   $as_echo_n "(cached) " >&6
54273 else
54274   ac_check_lib_save_LIBS=$LIBS
54275 LIBS="-lsocket  $LIBS"
54276 cat >conftest.$ac_ext <<_ACEOF
54277 /* confdefs.h.  */
54278 _ACEOF
54279 cat confdefs.h >>conftest.$ac_ext
54280 cat >>conftest.$ac_ext <<_ACEOF
54281 /* end confdefs.h.  */
54282
54283
54284 int
54285 main ()
54286 {
54287 return main ();
54288   ;
54289   return 0;
54290 }
54291 _ACEOF
54292 rm -f conftest.$ac_objext conftest$ac_exeext
54293 if { (ac_try="$ac_link"
54294 case "(($ac_try" in
54295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54296   *) ac_try_echo=$ac_try;;
54297 esac
54298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54299 $as_echo "$ac_try_echo") >&5
54300   (eval "$ac_link") 2>conftest.er1
54301   ac_status=$?
54302   grep -v '^ *+' conftest.er1 >conftest.err
54303   rm -f conftest.er1
54304   cat conftest.err >&5
54305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54306   (exit $ac_status); } && {
54307          test -z "$ac_c_werror_flag" ||
54308          test ! -s conftest.err
54309        } && test -s conftest$ac_exeext && {
54310          test "$cross_compiling" = yes ||
54311          $as_test_x conftest$ac_exeext
54312        }; then
54313   ac_cv_lib_socket_main=yes
54314 else
54315   $as_echo "$as_me: failed program was:" >&5
54316 sed 's/^/| /' conftest.$ac_ext >&5
54317
54318         ac_cv_lib_socket_main=no
54319 fi
54320
54321 rm -rf conftest.dSYM
54322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54323       conftest$ac_exeext conftest.$ac_ext
54324 LIBS=$ac_check_lib_save_LIBS
54325 fi
54326 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
54327 $as_echo "$ac_cv_lib_socket_main" >&6; }
54328 if test "x$ac_cv_lib_socket_main" = x""yes; then
54329   cat >>confdefs.h <<_ACEOF
54330 #define HAVE_LIBSOCKET 1
54331 _ACEOF
54332
54333   LIBS="-lsocket $LIBS"
54334
54335 fi
54336
54337
54338 { $as_echo "$as_me:$LINENO: checking for main in -lsun" >&5
54339 $as_echo_n "checking for main in -lsun... " >&6; }
54340 if test "${ac_cv_lib_sun_main+set}" = set; then
54341   $as_echo_n "(cached) " >&6
54342 else
54343   ac_check_lib_save_LIBS=$LIBS
54344 LIBS="-lsun  $LIBS"
54345 cat >conftest.$ac_ext <<_ACEOF
54346 /* confdefs.h.  */
54347 _ACEOF
54348 cat confdefs.h >>conftest.$ac_ext
54349 cat >>conftest.$ac_ext <<_ACEOF
54350 /* end confdefs.h.  */
54351
54352
54353 int
54354 main ()
54355 {
54356 return main ();
54357   ;
54358   return 0;
54359 }
54360 _ACEOF
54361 rm -f conftest.$ac_objext conftest$ac_exeext
54362 if { (ac_try="$ac_link"
54363 case "(($ac_try" in
54364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54365   *) ac_try_echo=$ac_try;;
54366 esac
54367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54368 $as_echo "$ac_try_echo") >&5
54369   (eval "$ac_link") 2>conftest.er1
54370   ac_status=$?
54371   grep -v '^ *+' conftest.er1 >conftest.err
54372   rm -f conftest.er1
54373   cat conftest.err >&5
54374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54375   (exit $ac_status); } && {
54376          test -z "$ac_c_werror_flag" ||
54377          test ! -s conftest.err
54378        } && test -s conftest$ac_exeext && {
54379          test "$cross_compiling" = yes ||
54380          $as_test_x conftest$ac_exeext
54381        }; then
54382   ac_cv_lib_sun_main=yes
54383 else
54384   $as_echo "$as_me: failed program was:" >&5
54385 sed 's/^/| /' conftest.$ac_ext >&5
54386
54387         ac_cv_lib_sun_main=no
54388 fi
54389
54390 rm -rf conftest.dSYM
54391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54392       conftest$ac_exeext conftest.$ac_ext
54393 LIBS=$ac_check_lib_save_LIBS
54394 fi
54395 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
54396 $as_echo "$ac_cv_lib_sun_main" >&6; }
54397 if test "x$ac_cv_lib_sun_main" = x""yes; then
54398   cat >>confdefs.h <<_ACEOF
54399 #define HAVE_LIBSUN 1
54400 _ACEOF
54401
54402   LIBS="-lsun $LIBS"
54403
54404 fi
54405
54406                             ;;
54407     esac
54408
54409
54410     # search for pkg-config, which the glib configuration uses, adding a few
54411     # system-specific search paths.
54412     # Extract the first word of "pkg-config", so it can be a program name with args.
54413 set dummy pkg-config; ac_word=$2
54414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
54415 $as_echo_n "checking for $ac_word... " >&6; }
54416 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
54417   $as_echo_n "(cached) " >&6
54418 else
54419   case $PKG_CONFIG in
54420   [\\/]* | ?:[\\/]*)
54421   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
54422   ;;
54423   *)
54424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54425 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
54426 for as_dir in $as_dummy
54427 do
54428   IFS=$as_save_IFS
54429   test -z "$as_dir" && as_dir=.
54430   for ac_exec_ext in '' $ac_executable_extensions; do
54431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54432     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
54433     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54434     break 2
54435   fi
54436 done
54437 done
54438 IFS=$as_save_IFS
54439
54440   ;;
54441 esac
54442 fi
54443 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
54444 if test -n "$PKG_CONFIG"; then
54445   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
54446 $as_echo "$PKG_CONFIG" >&6; }
54447 else
54448   { $as_echo "$as_me:$LINENO: result: no" >&5
54449 $as_echo "no" >&6; }
54450 fi
54451
54452
54453
54454     case "$host" in
54455         sparc-sun-solaris2.8) # Solaris 8
54456             # give the linker a runtime search path; pkg-config doesn't supply this.
54457             # Users could also specify this with LD_LIBRARY_PATH to both ./configure
54458             # and make.  Adding this support here makes straight './configure; make'
54459             # "just work" on Solaris 8
54460             if test -n "$PKG_CONFIG"; then
54461                 glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
54462                 LDFLAGS="$LDFLAGS $glib_R_flag"
54463             fi
54464             ;;
54465     esac
54466
54467     # Check whether --enable-glibtest was given.
54468 if test "${enable_glibtest+set}" = set; then
54469   enableval=$enable_glibtest;
54470 else
54471   enable_glibtest=yes
54472 fi
54473
54474
54475   pkg_config_args=glib-2.0
54476   for module in . gmodule gobject gthread
54477   do
54478       case "$module" in
54479          gmodule)
54480              pkg_config_args="$pkg_config_args gmodule-2.0"
54481          ;;
54482          gmodule-no-export)
54483              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
54484          ;;
54485          gobject)
54486              pkg_config_args="$pkg_config_args gobject-2.0"
54487          ;;
54488          gthread)
54489              pkg_config_args="$pkg_config_args gthread-2.0"
54490          ;;
54491          gio*)
54492              pkg_config_args="$pkg_config_args $module-2.0"
54493          ;;
54494       esac
54495   done
54496
54497
54498
54499 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
54500         if test -n "$ac_tool_prefix"; then
54501   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
54502 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
54503 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
54504 $as_echo_n "checking for $ac_word... " >&6; }
54505 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
54506   $as_echo_n "(cached) " >&6
54507 else
54508   case $PKG_CONFIG in
54509   [\\/]* | ?:[\\/]*)
54510   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
54511   ;;
54512   *)
54513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54514 for as_dir in $PATH
54515 do
54516   IFS=$as_save_IFS
54517   test -z "$as_dir" && as_dir=.
54518   for ac_exec_ext in '' $ac_executable_extensions; do
54519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54520     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
54521     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54522     break 2
54523   fi
54524 done
54525 done
54526 IFS=$as_save_IFS
54527
54528   ;;
54529 esac
54530 fi
54531 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
54532 if test -n "$PKG_CONFIG"; then
54533   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
54534 $as_echo "$PKG_CONFIG" >&6; }
54535 else
54536   { $as_echo "$as_me:$LINENO: result: no" >&5
54537 $as_echo "no" >&6; }
54538 fi
54539
54540
54541 fi
54542 if test -z "$ac_cv_path_PKG_CONFIG"; then
54543   ac_pt_PKG_CONFIG=$PKG_CONFIG
54544   # Extract the first word of "pkg-config", so it can be a program name with args.
54545 set dummy pkg-config; ac_word=$2
54546 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
54547 $as_echo_n "checking for $ac_word... " >&6; }
54548 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
54549   $as_echo_n "(cached) " >&6
54550 else
54551   case $ac_pt_PKG_CONFIG in
54552   [\\/]* | ?:[\\/]*)
54553   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
54554   ;;
54555   *)
54556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54557 for as_dir in $PATH
54558 do
54559   IFS=$as_save_IFS
54560   test -z "$as_dir" && as_dir=.
54561   for ac_exec_ext in '' $ac_executable_extensions; do
54562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54563     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
54564     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54565     break 2
54566   fi
54567 done
54568 done
54569 IFS=$as_save_IFS
54570
54571   ;;
54572 esac
54573 fi
54574 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
54575 if test -n "$ac_pt_PKG_CONFIG"; then
54576   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
54577 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
54578 else
54579   { $as_echo "$as_me:$LINENO: result: no" >&5
54580 $as_echo "no" >&6; }
54581 fi
54582
54583   if test "x$ac_pt_PKG_CONFIG" = x; then
54584     PKG_CONFIG=""
54585   else
54586     case $cross_compiling:$ac_tool_warned in
54587 yes:)
54588 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
54589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
54590 ac_tool_warned=yes ;;
54591 esac
54592     PKG_CONFIG=$ac_pt_PKG_CONFIG
54593   fi
54594 else
54595   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
54596 fi
54597
54598 fi
54599 if test -n "$PKG_CONFIG"; then
54600         _pkg_min_version=0.7
54601         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
54602 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
54603         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
54604                 { $as_echo "$as_me:$LINENO: result: yes" >&5
54605 $as_echo "yes" >&6; }
54606         else
54607                 { $as_echo "$as_me:$LINENO: result: no" >&5
54608 $as_echo "no" >&6; }
54609                 PKG_CONFIG=""
54610         fi
54611
54612 fi
54613
54614   no_glib=""
54615
54616   if test "x$PKG_CONFIG" = x ; then
54617     no_glib=yes
54618     PKG_CONFIG=no
54619   fi
54620
54621   min_glib_version=2.2.0
54622   { $as_echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
54623 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
54624
54625   if test x$PKG_CONFIG != xno ; then
54626     ## don't try to run the test against uninstalled libtool libs
54627     if $PKG_CONFIG --uninstalled $pkg_config_args; then
54628           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
54629           enable_glibtest=no
54630     fi
54631
54632     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
54633           :
54634     else
54635           no_glib=yes
54636     fi
54637   fi
54638
54639   if test x"$no_glib" = x ; then
54640     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
54641     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
54642     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
54643
54644     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
54645     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
54646     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
54647            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
54648     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
54649            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
54650     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
54651            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
54652     if test "x$enable_glibtest" = "xyes" ; then
54653       ac_save_CFLAGS="$CFLAGS"
54654       ac_save_LIBS="$LIBS"
54655       CFLAGS="$CFLAGS $GLIB_CFLAGS"
54656       LIBS="$GLIB_LIBS $LIBS"
54657       rm -f conf.glibtest
54658       if test "$cross_compiling" = yes; then
54659   echo $ac_n "cross compiling; assumed OK... $ac_c"
54660 else
54661   cat >conftest.$ac_ext <<_ACEOF
54662 /* confdefs.h.  */
54663 _ACEOF
54664 cat confdefs.h >>conftest.$ac_ext
54665 cat >>conftest.$ac_ext <<_ACEOF
54666 /* end confdefs.h.  */
54667
54668 #include <glib.h>
54669 #include <stdio.h>
54670 #include <stdlib.h>
54671
54672 int
54673 main ()
54674 {
54675   int major, minor, micro;
54676   char *tmp_version;
54677
54678   system ("touch conf.glibtest");
54679
54680   /* HP/UX 9 (%@#!) writes to sscanf strings */
54681   tmp_version = g_strdup("$min_glib_version");
54682   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
54683      printf("%s, bad version string\n", "$min_glib_version");
54684      exit(1);
54685    }
54686
54687   if ((glib_major_version != $glib_config_major_version) ||
54688       (glib_minor_version != $glib_config_minor_version) ||
54689       (glib_micro_version != $glib_config_micro_version))
54690     {
54691       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
54692              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
54693              glib_major_version, glib_minor_version, glib_micro_version);
54694       printf ("*** was found! If pkg-config was correct, then it is best\n");
54695       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
54696       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
54697       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
54698       printf("*** required on your system.\n");
54699       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
54700       printf("*** to point to the correct configuration files\n");
54701     }
54702   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
54703            (glib_minor_version != GLIB_MINOR_VERSION) ||
54704            (glib_micro_version != GLIB_MICRO_VERSION))
54705     {
54706       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
54707              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
54708       printf("*** library (version %d.%d.%d)\n",
54709              glib_major_version, glib_minor_version, glib_micro_version);
54710     }
54711   else
54712     {
54713       if ((glib_major_version > major) ||
54714         ((glib_major_version == major) && (glib_minor_version > minor)) ||
54715         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
54716       {
54717         return 0;
54718        }
54719      else
54720       {
54721         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
54722                glib_major_version, glib_minor_version, glib_micro_version);
54723         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
54724                major, minor, micro);
54725         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
54726         printf("***\n");
54727         printf("*** If you have already installed a sufficiently new version, this error\n");
54728         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
54729         printf("*** being found. The easiest way to fix this is to remove the old version\n");
54730         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
54731         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
54732         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
54733         printf("*** so that the correct libraries are found at run-time))\n");
54734       }
54735     }
54736   return 1;
54737 }
54738
54739 _ACEOF
54740 rm -f conftest$ac_exeext
54741 if { (ac_try="$ac_link"
54742 case "(($ac_try" in
54743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54744   *) ac_try_echo=$ac_try;;
54745 esac
54746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54747 $as_echo "$ac_try_echo") >&5
54748   (eval "$ac_link") 2>&5
54749   ac_status=$?
54750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54752   { (case "(($ac_try" in
54753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54754   *) ac_try_echo=$ac_try;;
54755 esac
54756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54757 $as_echo "$ac_try_echo") >&5
54758   (eval "$ac_try") 2>&5
54759   ac_status=$?
54760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54761   (exit $ac_status); }; }; then
54762   :
54763 else
54764   $as_echo "$as_me: program exited with status $ac_status" >&5
54765 $as_echo "$as_me: failed program was:" >&5
54766 sed 's/^/| /' conftest.$ac_ext >&5
54767
54768 ( exit $ac_status )
54769 no_glib=yes
54770 fi
54771 rm -rf conftest.dSYM
54772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54773 fi
54774
54775
54776        CFLAGS="$ac_save_CFLAGS"
54777        LIBS="$ac_save_LIBS"
54778      fi
54779   fi
54780   if test "x$no_glib" = x ; then
54781      { $as_echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
54782 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
54783      :
54784   else
54785      { $as_echo "$as_me:$LINENO: result: no" >&5
54786 $as_echo "no" >&6; }
54787      if test "$PKG_CONFIG" = "no" ; then
54788        echo "*** A new enough version of pkg-config was not found."
54789        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
54790      else
54791        if test -f conf.glibtest ; then
54792         :
54793        else
54794           echo "*** Could not run GLIB test program, checking why..."
54795           ac_save_CFLAGS="$CFLAGS"
54796           ac_save_LIBS="$LIBS"
54797           CFLAGS="$CFLAGS $GLIB_CFLAGS"
54798           LIBS="$LIBS $GLIB_LIBS"
54799           cat >conftest.$ac_ext <<_ACEOF
54800 /* confdefs.h.  */
54801 _ACEOF
54802 cat confdefs.h >>conftest.$ac_ext
54803 cat >>conftest.$ac_ext <<_ACEOF
54804 /* end confdefs.h.  */
54805
54806 #include <glib.h>
54807 #include <stdio.h>
54808
54809 int
54810 main ()
54811 {
54812  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
54813   ;
54814   return 0;
54815 }
54816 _ACEOF
54817 rm -f conftest.$ac_objext conftest$ac_exeext
54818 if { (ac_try="$ac_link"
54819 case "(($ac_try" in
54820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54821   *) ac_try_echo=$ac_try;;
54822 esac
54823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54824 $as_echo "$ac_try_echo") >&5
54825   (eval "$ac_link") 2>conftest.er1
54826   ac_status=$?
54827   grep -v '^ *+' conftest.er1 >conftest.err
54828   rm -f conftest.er1
54829   cat conftest.err >&5
54830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54831   (exit $ac_status); } && {
54832          test -z "$ac_c_werror_flag" ||
54833          test ! -s conftest.err
54834        } && test -s conftest$ac_exeext && {
54835          test "$cross_compiling" = yes ||
54836          $as_test_x conftest$ac_exeext
54837        }; then
54838    echo "*** The test program compiled, but did not run. This usually means"
54839           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
54840           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
54841           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
54842           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
54843           echo "*** is required on your system"
54844           echo "***"
54845           echo "*** If you have an old version installed, it is best to remove it, although"
54846           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
54847 else
54848   $as_echo "$as_me: failed program was:" >&5
54849 sed 's/^/| /' conftest.$ac_ext >&5
54850
54851          echo "*** The test program failed to compile or link. See the file config.log for the"
54852           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
54853 fi
54854
54855 rm -rf conftest.dSYM
54856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54857       conftest$ac_exeext conftest.$ac_ext
54858           CFLAGS="$ac_save_CFLAGS"
54859           LIBS="$ac_save_LIBS"
54860        fi
54861      fi
54862      GLIB_CFLAGS=""
54863      GLIB_LIBS=""
54864      GLIB_GENMARSHAL=""
54865      GOBJECT_QUERY=""
54866      GLIB_MKENUMS=""
54867
54868         { { $as_echo "$as_me:$LINENO: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&5
54869 $as_echo "$as_me: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&2;}
54870    { (exit 1); exit 1; }; }
54871
54872   fi
54873
54874
54875
54876
54877
54878   rm -f conf.glibtest
54879
54880     # GLIB_CPPFLAGS is not set by autoconf, yet GLIB_CFLAGS contains what GLIB_CPPFLAGS should contain.
54881     CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
54882
54883     LIBS="$GLIB_LIBS $LIBS"
54884
54885
54886
54887
54888 # Check whether --with-readline was given.
54889 if test "${with_readline+set}" = set; then
54890   withval=$with_readline;
54891             case "$withval" in
54892                 y | ye | yes | n | no) : ;;
54893                 *) { { $as_echo "$as_me:$LINENO: error: *** --with-readline does not take a value" >&5
54894 $as_echo "$as_me: error: *** --with-readline does not take a value" >&2;}
54895    { (exit 1); exit 1; }; }
54896             esac
54897             want_readline="$withval"
54898
54899 else
54900
54901             want_readline="maybe" # meaning "only if we can find it"
54902
54903 fi
54904
54905
54906     # unless the user said "no", look for readline.
54907     if test x"$want_readline" != x"no"; then
54908         # we need a tgetent() somewhere..
54909         proceed="false"
54910         { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
54911 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
54912 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
54913   $as_echo_n "(cached) " >&6
54914 else
54915   ac_check_lib_save_LIBS=$LIBS
54916 LIBS="-ltermcap  $LIBS"
54917 cat >conftest.$ac_ext <<_ACEOF
54918 /* confdefs.h.  */
54919 _ACEOF
54920 cat confdefs.h >>conftest.$ac_ext
54921 cat >>conftest.$ac_ext <<_ACEOF
54922 /* end confdefs.h.  */
54923
54924 /* Override any GCC internal prototype to avoid an error.
54925    Use char because int might match the return type of a GCC
54926    builtin and then its argument prototype would still apply.  */
54927 #ifdef __cplusplus
54928 extern "C"
54929 #endif
54930 char tgetent ();
54931 int
54932 main ()
54933 {
54934 return tgetent ();
54935   ;
54936   return 0;
54937 }
54938 _ACEOF
54939 rm -f conftest.$ac_objext conftest$ac_exeext
54940 if { (ac_try="$ac_link"
54941 case "(($ac_try" in
54942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54943   *) ac_try_echo=$ac_try;;
54944 esac
54945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54946 $as_echo "$ac_try_echo") >&5
54947   (eval "$ac_link") 2>conftest.er1
54948   ac_status=$?
54949   grep -v '^ *+' conftest.er1 >conftest.err
54950   rm -f conftest.er1
54951   cat conftest.err >&5
54952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54953   (exit $ac_status); } && {
54954          test -z "$ac_c_werror_flag" ||
54955          test ! -s conftest.err
54956        } && test -s conftest$ac_exeext && {
54957          test "$cross_compiling" = yes ||
54958          $as_test_x conftest$ac_exeext
54959        }; then
54960   ac_cv_lib_termcap_tgetent=yes
54961 else
54962   $as_echo "$as_me: failed program was:" >&5
54963 sed 's/^/| /' conftest.$ac_ext >&5
54964
54965         ac_cv_lib_termcap_tgetent=no
54966 fi
54967
54968 rm -rf conftest.dSYM
54969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54970       conftest$ac_exeext conftest.$ac_ext
54971 LIBS=$ac_check_lib_save_LIBS
54972 fi
54973 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
54974 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
54975 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
54976
54977             READLINE_LIBS="-ltermcap"
54978             proceed="true"
54979
54980 else
54981
54982             { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
54983 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
54984 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
54985   $as_echo_n "(cached) " >&6
54986 else
54987   ac_check_lib_save_LIBS=$LIBS
54988 LIBS="-lcurses  $LIBS"
54989 cat >conftest.$ac_ext <<_ACEOF
54990 /* confdefs.h.  */
54991 _ACEOF
54992 cat confdefs.h >>conftest.$ac_ext
54993 cat >>conftest.$ac_ext <<_ACEOF
54994 /* end confdefs.h.  */
54995
54996 /* Override any GCC internal prototype to avoid an error.
54997    Use char because int might match the return type of a GCC
54998    builtin and then its argument prototype would still apply.  */
54999 #ifdef __cplusplus
55000 extern "C"
55001 #endif
55002 char tgetent ();
55003 int
55004 main ()
55005 {
55006 return tgetent ();
55007   ;
55008   return 0;
55009 }
55010 _ACEOF
55011 rm -f conftest.$ac_objext conftest$ac_exeext
55012 if { (ac_try="$ac_link"
55013 case "(($ac_try" in
55014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55015   *) ac_try_echo=$ac_try;;
55016 esac
55017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55018 $as_echo "$ac_try_echo") >&5
55019   (eval "$ac_link") 2>conftest.er1
55020   ac_status=$?
55021   grep -v '^ *+' conftest.er1 >conftest.err
55022   rm -f conftest.er1
55023   cat conftest.err >&5
55024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55025   (exit $ac_status); } && {
55026          test -z "$ac_c_werror_flag" ||
55027          test ! -s conftest.err
55028        } && test -s conftest$ac_exeext && {
55029          test "$cross_compiling" = yes ||
55030          $as_test_x conftest$ac_exeext
55031        }; then
55032   ac_cv_lib_curses_tgetent=yes
55033 else
55034   $as_echo "$as_me: failed program was:" >&5
55035 sed 's/^/| /' conftest.$ac_ext >&5
55036
55037         ac_cv_lib_curses_tgetent=no
55038 fi
55039
55040 rm -rf conftest.dSYM
55041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55042       conftest$ac_exeext conftest.$ac_ext
55043 LIBS=$ac_check_lib_save_LIBS
55044 fi
55045 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
55046 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
55047 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
55048
55049                 READLINE_LIBS="-lcurses"
55050                 proceed="true"
55051
55052 else
55053
55054                 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
55055 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
55056 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
55057   $as_echo_n "(cached) " >&6
55058 else
55059   ac_check_lib_save_LIBS=$LIBS
55060 LIBS="-lncurses  $LIBS"
55061 cat >conftest.$ac_ext <<_ACEOF
55062 /* confdefs.h.  */
55063 _ACEOF
55064 cat confdefs.h >>conftest.$ac_ext
55065 cat >>conftest.$ac_ext <<_ACEOF
55066 /* end confdefs.h.  */
55067
55068 /* Override any GCC internal prototype to avoid an error.
55069    Use char because int might match the return type of a GCC
55070    builtin and then its argument prototype would still apply.  */
55071 #ifdef __cplusplus
55072 extern "C"
55073 #endif
55074 char tgetent ();
55075 int
55076 main ()
55077 {
55078 return tgetent ();
55079   ;
55080   return 0;
55081 }
55082 _ACEOF
55083 rm -f conftest.$ac_objext conftest$ac_exeext
55084 if { (ac_try="$ac_link"
55085 case "(($ac_try" in
55086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55087   *) ac_try_echo=$ac_try;;
55088 esac
55089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55090 $as_echo "$ac_try_echo") >&5
55091   (eval "$ac_link") 2>conftest.er1
55092   ac_status=$?
55093   grep -v '^ *+' conftest.er1 >conftest.err
55094   rm -f conftest.er1
55095   cat conftest.err >&5
55096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55097   (exit $ac_status); } && {
55098          test -z "$ac_c_werror_flag" ||
55099          test ! -s conftest.err
55100        } && test -s conftest$ac_exeext && {
55101          test "$cross_compiling" = yes ||
55102          $as_test_x conftest$ac_exeext
55103        }; then
55104   ac_cv_lib_ncurses_tgetent=yes
55105 else
55106   $as_echo "$as_me: failed program was:" >&5
55107 sed 's/^/| /' conftest.$ac_ext >&5
55108
55109         ac_cv_lib_ncurses_tgetent=no
55110 fi
55111
55112 rm -rf conftest.dSYM
55113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55114       conftest$ac_exeext conftest.$ac_ext
55115 LIBS=$ac_check_lib_save_LIBS
55116 fi
55117 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
55118 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
55119 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
55120
55121                     READLINE_LIBS="-lncurses"
55122                     proceed="true"
55123
55124 fi
55125
55126
55127 fi
55128
55129
55130 fi
55131
55132
55133         if $proceed; then
55134             proceed="false"
55135
55136
55137
55138
55139 for ac_header in history.h readline.h readline/history.h readline/readline.h
55140 do
55141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
55142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55143   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55144 $as_echo_n "checking for $ac_header... " >&6; }
55145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55146   $as_echo_n "(cached) " >&6
55147 fi
55148 ac_res=`eval 'as_val=${'$as_ac_Header'}
55149                  $as_echo "$as_val"'`
55150                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55151 $as_echo "$ac_res" >&6; }
55152 else
55153   # Is the header compilable?
55154 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
55155 $as_echo_n "checking $ac_header usability... " >&6; }
55156 cat >conftest.$ac_ext <<_ACEOF
55157 /* confdefs.h.  */
55158 _ACEOF
55159 cat confdefs.h >>conftest.$ac_ext
55160 cat >>conftest.$ac_ext <<_ACEOF
55161 /* end confdefs.h.  */
55162 $ac_includes_default
55163 #include <$ac_header>
55164 _ACEOF
55165 rm -f conftest.$ac_objext
55166 if { (ac_try="$ac_compile"
55167 case "(($ac_try" in
55168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55169   *) ac_try_echo=$ac_try;;
55170 esac
55171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55172 $as_echo "$ac_try_echo") >&5
55173   (eval "$ac_compile") 2>conftest.er1
55174   ac_status=$?
55175   grep -v '^ *+' conftest.er1 >conftest.err
55176   rm -f conftest.er1
55177   cat conftest.err >&5
55178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55179   (exit $ac_status); } && {
55180          test -z "$ac_c_werror_flag" ||
55181          test ! -s conftest.err
55182        } && test -s conftest.$ac_objext; then
55183   ac_header_compiler=yes
55184 else
55185   $as_echo "$as_me: failed program was:" >&5
55186 sed 's/^/| /' conftest.$ac_ext >&5
55187
55188         ac_header_compiler=no
55189 fi
55190
55191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55192 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55193 $as_echo "$ac_header_compiler" >&6; }
55194
55195 # Is the header present?
55196 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
55197 $as_echo_n "checking $ac_header presence... " >&6; }
55198 cat >conftest.$ac_ext <<_ACEOF
55199 /* confdefs.h.  */
55200 _ACEOF
55201 cat confdefs.h >>conftest.$ac_ext
55202 cat >>conftest.$ac_ext <<_ACEOF
55203 /* end confdefs.h.  */
55204 #include <$ac_header>
55205 _ACEOF
55206 if { (ac_try="$ac_cpp conftest.$ac_ext"
55207 case "(($ac_try" in
55208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55209   *) ac_try_echo=$ac_try;;
55210 esac
55211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55212 $as_echo "$ac_try_echo") >&5
55213   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
55214   ac_status=$?
55215   grep -v '^ *+' conftest.er1 >conftest.err
55216   rm -f conftest.er1
55217   cat conftest.err >&5
55218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55219   (exit $ac_status); } >/dev/null && {
55220          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
55221          test ! -s conftest.err
55222        }; then
55223   ac_header_preproc=yes
55224 else
55225   $as_echo "$as_me: failed program was:" >&5
55226 sed 's/^/| /' conftest.$ac_ext >&5
55227
55228   ac_header_preproc=no
55229 fi
55230
55231 rm -f conftest.err conftest.$ac_ext
55232 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55233 $as_echo "$ac_header_preproc" >&6; }
55234
55235 # So?  What about this header?
55236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55237   yes:no: )
55238     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55239 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55240     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
55241 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
55242     ac_header_preproc=yes
55243     ;;
55244   no:yes:* )
55245     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55246 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55247     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
55248 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
55249     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
55250 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
55251     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
55252 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
55253     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55254 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55255     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
55256 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
55257
55258     ;;
55259 esac
55260 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55261 $as_echo_n "checking for $ac_header... " >&6; }
55262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55263   $as_echo_n "(cached) " >&6
55264 else
55265   eval "$as_ac_Header=\$ac_header_preproc"
55266 fi
55267 ac_res=`eval 'as_val=${'$as_ac_Header'}
55268                  $as_echo "$as_val"'`
55269                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55270 $as_echo "$ac_res" >&6; }
55271
55272 fi
55273 as_val=`eval 'as_val=${'$as_ac_Header'}
55274                  $as_echo "$as_val"'`
55275    if test "x$as_val" = x""yes; then
55276   cat >>confdefs.h <<_ACEOF
55277 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
55278 _ACEOF
55279
55280                 # found at least one of the headers, so we can proceed.
55281                 proceed="true"
55282
55283 fi
55284
55285 done
55286
55287         fi
55288
55289         if $proceed; then
55290             proceed="false"
55291             { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
55292 $as_echo_n "checking for readline in -lreadline... " >&6; }
55293 if test "${ac_cv_lib_readline_readline+set}" = set; then
55294   $as_echo_n "(cached) " >&6
55295 else
55296   ac_check_lib_save_LIBS=$LIBS
55297 LIBS="-lreadline $READLINE_LIBS $LIBS"
55298 cat >conftest.$ac_ext <<_ACEOF
55299 /* confdefs.h.  */
55300 _ACEOF
55301 cat confdefs.h >>conftest.$ac_ext
55302 cat >>conftest.$ac_ext <<_ACEOF
55303 /* end confdefs.h.  */
55304
55305 /* Override any GCC internal prototype to avoid an error.
55306    Use char because int might match the return type of a GCC
55307    builtin and then its argument prototype would still apply.  */
55308 #ifdef __cplusplus
55309 extern "C"
55310 #endif
55311 char readline ();
55312 int
55313 main ()
55314 {
55315 return readline ();
55316   ;
55317   return 0;
55318 }
55319 _ACEOF
55320 rm -f conftest.$ac_objext conftest$ac_exeext
55321 if { (ac_try="$ac_link"
55322 case "(($ac_try" in
55323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55324   *) ac_try_echo=$ac_try;;
55325 esac
55326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55327 $as_echo "$ac_try_echo") >&5
55328   (eval "$ac_link") 2>conftest.er1
55329   ac_status=$?
55330   grep -v '^ *+' conftest.er1 >conftest.err
55331   rm -f conftest.er1
55332   cat conftest.err >&5
55333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55334   (exit $ac_status); } && {
55335          test -z "$ac_c_werror_flag" ||
55336          test ! -s conftest.err
55337        } && test -s conftest$ac_exeext && {
55338          test "$cross_compiling" = yes ||
55339          $as_test_x conftest$ac_exeext
55340        }; then
55341   ac_cv_lib_readline_readline=yes
55342 else
55343   $as_echo "$as_me: failed program was:" >&5
55344 sed 's/^/| /' conftest.$ac_ext >&5
55345
55346         ac_cv_lib_readline_readline=no
55347 fi
55348
55349 rm -rf conftest.dSYM
55350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55351       conftest$ac_exeext conftest.$ac_ext
55352 LIBS=$ac_check_lib_save_LIBS
55353 fi
55354 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
55355 $as_echo "$ac_cv_lib_readline_readline" >&6; }
55356 if test "x$ac_cv_lib_readline_readline" = x""yes; then
55357
55358                 READLINE_LIBS="-lreadline $READLINE_LIBS"
55359                 proceed="true"
55360
55361 fi
55362
55363         fi
55364
55365         if $proceed; then
55366             # we have readline!
55367
55368 cat >>confdefs.h <<\_ACEOF
55369 #define HAVE_READLINE 1
55370 _ACEOF
55371
55372         else
55373             # no readline.  if the user *really* wanted it, bail out.
55374             if test x"$want_readline" = x"yes"; then
55375                 { { $as_echo "$as_me:$LINENO: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&5
55376 $as_echo "$as_me: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&2;}
55377    { (exit 1); exit 1; }; }
55378             fi
55379             READLINE_LIBS=""
55380         fi
55381     fi
55382
55383
55384
55385 { $as_echo "$as_me:$LINENO: checking for modf in -lm" >&5
55386 $as_echo_n "checking for modf in -lm... " >&6; }
55387 if test "${ac_cv_lib_m_modf+set}" = set; then
55388   $as_echo_n "(cached) " >&6
55389 else
55390   ac_check_lib_save_LIBS=$LIBS
55391 LIBS="-lm  $LIBS"
55392 cat >conftest.$ac_ext <<_ACEOF
55393 /* confdefs.h.  */
55394 _ACEOF
55395 cat confdefs.h >>conftest.$ac_ext
55396 cat >>conftest.$ac_ext <<_ACEOF
55397 /* end confdefs.h.  */
55398
55399 /* Override any GCC internal prototype to avoid an error.
55400    Use char because int might match the return type of a GCC
55401    builtin and then its argument prototype would still apply.  */
55402 #ifdef __cplusplus
55403 extern "C"
55404 #endif
55405 char modf ();
55406 int
55407 main ()
55408 {
55409 return modf ();
55410   ;
55411   return 0;
55412 }
55413 _ACEOF
55414 rm -f conftest.$ac_objext conftest$ac_exeext
55415 if { (ac_try="$ac_link"
55416 case "(($ac_try" in
55417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55418   *) ac_try_echo=$ac_try;;
55419 esac
55420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55421 $as_echo "$ac_try_echo") >&5
55422   (eval "$ac_link") 2>conftest.er1
55423   ac_status=$?
55424   grep -v '^ *+' conftest.er1 >conftest.err
55425   rm -f conftest.er1
55426   cat conftest.err >&5
55427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55428   (exit $ac_status); } && {
55429          test -z "$ac_c_werror_flag" ||
55430          test ! -s conftest.err
55431        } && test -s conftest$ac_exeext && {
55432          test "$cross_compiling" = yes ||
55433          $as_test_x conftest$ac_exeext
55434        }; then
55435   ac_cv_lib_m_modf=yes
55436 else
55437   $as_echo "$as_me: failed program was:" >&5
55438 sed 's/^/| /' conftest.$ac_ext >&5
55439
55440         ac_cv_lib_m_modf=no
55441 fi
55442
55443 rm -rf conftest.dSYM
55444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55445       conftest$ac_exeext conftest.$ac_ext
55446 LIBS=$ac_check_lib_save_LIBS
55447 fi
55448 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
55449 $as_echo "$ac_cv_lib_m_modf" >&6; }
55450 if test "x$ac_cv_lib_m_modf" = x""yes; then
55451   cat >>confdefs.h <<_ACEOF
55452 #define HAVE_LIBM 1
55453 _ACEOF
55454
55455   LIBS="-lm $LIBS"
55456
55457 fi
55458
55459
55460     if test "${ac_cv_header_execinfo_h+set}" = set; then
55461   { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
55462 $as_echo_n "checking for execinfo.h... " >&6; }
55463 if test "${ac_cv_header_execinfo_h+set}" = set; then
55464   $as_echo_n "(cached) " >&6
55465 fi
55466 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
55467 $as_echo "$ac_cv_header_execinfo_h" >&6; }
55468 else
55469   # Is the header compilable?
55470 { $as_echo "$as_me:$LINENO: checking execinfo.h usability" >&5
55471 $as_echo_n "checking execinfo.h usability... " >&6; }
55472 cat >conftest.$ac_ext <<_ACEOF
55473 /* confdefs.h.  */
55474 _ACEOF
55475 cat confdefs.h >>conftest.$ac_ext
55476 cat >>conftest.$ac_ext <<_ACEOF
55477 /* end confdefs.h.  */
55478 $ac_includes_default
55479 #include <execinfo.h>
55480 _ACEOF
55481 rm -f conftest.$ac_objext
55482 if { (ac_try="$ac_compile"
55483 case "(($ac_try" in
55484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55485   *) ac_try_echo=$ac_try;;
55486 esac
55487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55488 $as_echo "$ac_try_echo") >&5
55489   (eval "$ac_compile") 2>conftest.er1
55490   ac_status=$?
55491   grep -v '^ *+' conftest.er1 >conftest.err
55492   rm -f conftest.er1
55493   cat conftest.err >&5
55494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55495   (exit $ac_status); } && {
55496          test -z "$ac_c_werror_flag" ||
55497          test ! -s conftest.err
55498        } && test -s conftest.$ac_objext; then
55499   ac_header_compiler=yes
55500 else
55501   $as_echo "$as_me: failed program was:" >&5
55502 sed 's/^/| /' conftest.$ac_ext >&5
55503
55504         ac_header_compiler=no
55505 fi
55506
55507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55508 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55509 $as_echo "$ac_header_compiler" >&6; }
55510
55511 # Is the header present?
55512 { $as_echo "$as_me:$LINENO: checking execinfo.h presence" >&5
55513 $as_echo_n "checking execinfo.h presence... " >&6; }
55514 cat >conftest.$ac_ext <<_ACEOF
55515 /* confdefs.h.  */
55516 _ACEOF
55517 cat confdefs.h >>conftest.$ac_ext
55518 cat >>conftest.$ac_ext <<_ACEOF
55519 /* end confdefs.h.  */
55520 #include <execinfo.h>
55521 _ACEOF
55522 if { (ac_try="$ac_cpp conftest.$ac_ext"
55523 case "(($ac_try" in
55524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55525   *) ac_try_echo=$ac_try;;
55526 esac
55527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55528 $as_echo "$ac_try_echo") >&5
55529   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
55530   ac_status=$?
55531   grep -v '^ *+' conftest.er1 >conftest.err
55532   rm -f conftest.er1
55533   cat conftest.err >&5
55534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55535   (exit $ac_status); } >/dev/null && {
55536          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
55537          test ! -s conftest.err
55538        }; then
55539   ac_header_preproc=yes
55540 else
55541   $as_echo "$as_me: failed program was:" >&5
55542 sed 's/^/| /' conftest.$ac_ext >&5
55543
55544   ac_header_preproc=no
55545 fi
55546
55547 rm -f conftest.err conftest.$ac_ext
55548 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55549 $as_echo "$ac_header_preproc" >&6; }
55550
55551 # So?  What about this header?
55552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55553   yes:no: )
55554     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
55555 $as_echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55556     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
55557 $as_echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
55558     ac_header_preproc=yes
55559     ;;
55560   no:yes:* )
55561     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
55562 $as_echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
55563     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h:     check for missing prerequisite headers?" >&5
55564 $as_echo "$as_me: WARNING: execinfo.h:     check for missing prerequisite headers?" >&2;}
55565     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
55566 $as_echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
55567     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
55568 $as_echo "$as_me: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
55569     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
55570 $as_echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
55571     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
55572 $as_echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
55573
55574     ;;
55575 esac
55576 { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
55577 $as_echo_n "checking for execinfo.h... " >&6; }
55578 if test "${ac_cv_header_execinfo_h+set}" = set; then
55579   $as_echo_n "(cached) " >&6
55580 else
55581   ac_cv_header_execinfo_h=$ac_header_preproc
55582 fi
55583 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
55584 $as_echo "$ac_cv_header_execinfo_h" >&6; }
55585
55586 fi
55587 if test "x$ac_cv_header_execinfo_h" = x""yes; then
55588
55589         { $as_echo "$as_me:$LINENO: checking for backtrace_symbols_fd" >&5
55590 $as_echo_n "checking for backtrace_symbols_fd... " >&6; }
55591 if test "${ac_cv_func_backtrace_symbols_fd+set}" = set; then
55592   $as_echo_n "(cached) " >&6
55593 else
55594   cat >conftest.$ac_ext <<_ACEOF
55595 /* confdefs.h.  */
55596 _ACEOF
55597 cat confdefs.h >>conftest.$ac_ext
55598 cat >>conftest.$ac_ext <<_ACEOF
55599 /* end confdefs.h.  */
55600 /* Define backtrace_symbols_fd to an innocuous variant, in case <limits.h> declares backtrace_symbols_fd.
55601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55602 #define backtrace_symbols_fd innocuous_backtrace_symbols_fd
55603
55604 /* System header to define __stub macros and hopefully few prototypes,
55605     which can conflict with char backtrace_symbols_fd (); below.
55606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55607     <limits.h> exists even on freestanding compilers.  */
55608
55609 #ifdef __STDC__
55610 # include <limits.h>
55611 #else
55612 # include <assert.h>
55613 #endif
55614
55615 #undef backtrace_symbols_fd
55616
55617 /* Override any GCC internal prototype to avoid an error.
55618    Use char because int might match the return type of a GCC
55619    builtin and then its argument prototype would still apply.  */
55620 #ifdef __cplusplus
55621 extern "C"
55622 #endif
55623 char backtrace_symbols_fd ();
55624 /* The GNU C library defines this for functions which it implements
55625     to always fail with ENOSYS.  Some functions are actually named
55626     something starting with __ and the normal name is an alias.  */
55627 #if defined __stub_backtrace_symbols_fd || defined __stub___backtrace_symbols_fd
55628 choke me
55629 #endif
55630
55631 int
55632 main ()
55633 {
55634 return backtrace_symbols_fd ();
55635   ;
55636   return 0;
55637 }
55638 _ACEOF
55639 rm -f conftest.$ac_objext conftest$ac_exeext
55640 if { (ac_try="$ac_link"
55641 case "(($ac_try" in
55642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55643   *) ac_try_echo=$ac_try;;
55644 esac
55645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55646 $as_echo "$ac_try_echo") >&5
55647   (eval "$ac_link") 2>conftest.er1
55648   ac_status=$?
55649   grep -v '^ *+' conftest.er1 >conftest.err
55650   rm -f conftest.er1
55651   cat conftest.err >&5
55652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55653   (exit $ac_status); } && {
55654          test -z "$ac_c_werror_flag" ||
55655          test ! -s conftest.err
55656        } && test -s conftest$ac_exeext && {
55657          test "$cross_compiling" = yes ||
55658          $as_test_x conftest$ac_exeext
55659        }; then
55660   ac_cv_func_backtrace_symbols_fd=yes
55661 else
55662   $as_echo "$as_me: failed program was:" >&5
55663 sed 's/^/| /' conftest.$ac_ext >&5
55664
55665         ac_cv_func_backtrace_symbols_fd=no
55666 fi
55667
55668 rm -rf conftest.dSYM
55669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55670       conftest$ac_exeext conftest.$ac_ext
55671 fi
55672 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_backtrace_symbols_fd" >&5
55673 $as_echo "$ac_cv_func_backtrace_symbols_fd" >&6; }
55674 if test "x$ac_cv_func_backtrace_symbols_fd" = x""yes; then
55675
55676
55677 cat >>confdefs.h <<\_ACEOF
55678 #define HAVE_GLIBC_BACKTRACE 1
55679 _ACEOF
55680
55681
55682 fi
55683
55684
55685 fi
55686
55687
55688
55689
55690 #
55691 # Declarations
55692 #
55693 # Checks for library functions and if the function is declared in
55694 # an appropriate header file.  Functions which exist, but for which
55695 # no declaration is available, are declared in common-src/amanda.h.
55696 # It's not clear that any existing system implements but does not
55697 # declare common functions such as these.
55698 #
55699
55700 ice_have_accept=no
55701
55702 for ac_func in accept
55703 do
55704 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
55705 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
55706 $as_echo_n "checking for $ac_func... " >&6; }
55707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55708   $as_echo_n "(cached) " >&6
55709 else
55710   cat >conftest.$ac_ext <<_ACEOF
55711 /* confdefs.h.  */
55712 _ACEOF
55713 cat confdefs.h >>conftest.$ac_ext
55714 cat >>conftest.$ac_ext <<_ACEOF
55715 /* end confdefs.h.  */
55716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55718 #define $ac_func innocuous_$ac_func
55719
55720 /* System header to define __stub macros and hopefully few prototypes,
55721     which can conflict with char $ac_func (); below.
55722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55723     <limits.h> exists even on freestanding compilers.  */
55724
55725 #ifdef __STDC__
55726 # include <limits.h>
55727 #else
55728 # include <assert.h>
55729 #endif
55730
55731 #undef $ac_func
55732
55733 /* Override any GCC internal prototype to avoid an error.
55734    Use char because int might match the return type of a GCC
55735    builtin and then its argument prototype would still apply.  */
55736 #ifdef __cplusplus
55737 extern "C"
55738 #endif
55739 char $ac_func ();
55740 /* The GNU C library defines this for functions which it implements
55741     to always fail with ENOSYS.  Some functions are actually named
55742     something starting with __ and the normal name is an alias.  */
55743 #if defined __stub_$ac_func || defined __stub___$ac_func
55744 choke me
55745 #endif
55746
55747 int
55748 main ()
55749 {
55750 return $ac_func ();
55751   ;
55752   return 0;
55753 }
55754 _ACEOF
55755 rm -f conftest.$ac_objext conftest$ac_exeext
55756 if { (ac_try="$ac_link"
55757 case "(($ac_try" in
55758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55759   *) ac_try_echo=$ac_try;;
55760 esac
55761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55762 $as_echo "$ac_try_echo") >&5
55763   (eval "$ac_link") 2>conftest.er1
55764   ac_status=$?
55765   grep -v '^ *+' conftest.er1 >conftest.err
55766   rm -f conftest.er1
55767   cat conftest.err >&5
55768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55769   (exit $ac_status); } && {
55770          test -z "$ac_c_werror_flag" ||
55771          test ! -s conftest.err
55772        } && test -s conftest$ac_exeext && {
55773          test "$cross_compiling" = yes ||
55774          $as_test_x conftest$ac_exeext
55775        }; then
55776   eval "$as_ac_var=yes"
55777 else
55778   $as_echo "$as_me: failed program was:" >&5
55779 sed 's/^/| /' conftest.$ac_ext >&5
55780
55781         eval "$as_ac_var=no"
55782 fi
55783
55784 rm -rf conftest.dSYM
55785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55786       conftest$ac_exeext conftest.$ac_ext
55787 fi
55788 ac_res=`eval 'as_val=${'$as_ac_var'}
55789                  $as_echo "$as_val"'`
55790                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55791 $as_echo "$ac_res" >&6; }
55792 as_val=`eval 'as_val=${'$as_ac_var'}
55793                  $as_echo "$as_val"'`
55794    if test "x$as_val" = x""yes; then
55795   cat >>confdefs.h <<_ACEOF
55796 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
55797 _ACEOF
55798  ice_have_accept=yes
55799 fi
55800 done
55801
55802 if test "${ice_have_accept}" = yes; then
55803 { $as_echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
55804 $as_echo_n "checking for accept declaration in sys/types.h sys/socket.h... " >&6; }
55805 if test "${ice_cv_have_accept_decl+set}" = set; then
55806   $as_echo_n "(cached) " >&6
55807 else
55808
55809 ice_cv_have_accept_decl=no
55810 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55811 ice_re_word='(^|[^a-zA-Z0-9_])'
55812 for header in sys/types.h sys/socket.h; do
55813 # Check for ordinary declaration
55814 cat >conftest.$ac_ext <<_ACEOF
55815 /* confdefs.h.  */
55816 _ACEOF
55817 cat confdefs.h >>conftest.$ac_ext
55818 cat >>conftest.$ac_ext <<_ACEOF
55819 /* end confdefs.h.  */
55820 #include <$header>
55821
55822 _ACEOF
55823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55824   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then
55825   ice_cv_have_accept_decl=yes
55826 fi
55827 rm -f conftest*
55828
55829 if test "$ice_cv_have_accept_decl" = yes; then
55830         break
55831 fi
55832 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55833 cat >conftest.$ac_ext <<_ACEOF
55834 /* confdefs.h.  */
55835 _ACEOF
55836 cat confdefs.h >>conftest.$ac_ext
55837 cat >>conftest.$ac_ext <<_ACEOF
55838 /* end confdefs.h.  */
55839 #include <$header>
55840
55841 _ACEOF
55842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55843   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55844   ice_cv_have_accept_decl=yes
55845 fi
55846 rm -f conftest*
55847
55848 if test "$ice_cv_have_accept_decl" = yes; then
55849         break
55850 fi
55851 done
55852
55853 fi
55854
55855 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
55856 $as_echo "$ice_cv_have_accept_decl" >&6; }
55857 if test "$ice_cv_have_accept_decl" = yes; then
55858
55859 cat >>confdefs.h <<_ACEOF
55860 #define HAVE_ACCEPT_DECL 1
55861 _ACEOF
55862
55863 fi
55864 fi
55865
55866 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
55867 # for constant arguments.  Useless!
55868 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
55869 $as_echo_n "checking for working alloca.h... " >&6; }
55870 if test "${ac_cv_working_alloca_h+set}" = set; then
55871   $as_echo_n "(cached) " >&6
55872 else
55873   cat >conftest.$ac_ext <<_ACEOF
55874 /* confdefs.h.  */
55875 _ACEOF
55876 cat confdefs.h >>conftest.$ac_ext
55877 cat >>conftest.$ac_ext <<_ACEOF
55878 /* end confdefs.h.  */
55879 #include <alloca.h>
55880 int
55881 main ()
55882 {
55883 char *p = (char *) alloca (2 * sizeof (int));
55884                           if (p) return 0;
55885   ;
55886   return 0;
55887 }
55888 _ACEOF
55889 rm -f conftest.$ac_objext conftest$ac_exeext
55890 if { (ac_try="$ac_link"
55891 case "(($ac_try" in
55892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55893   *) ac_try_echo=$ac_try;;
55894 esac
55895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55896 $as_echo "$ac_try_echo") >&5
55897   (eval "$ac_link") 2>conftest.er1
55898   ac_status=$?
55899   grep -v '^ *+' conftest.er1 >conftest.err
55900   rm -f conftest.er1
55901   cat conftest.err >&5
55902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55903   (exit $ac_status); } && {
55904          test -z "$ac_c_werror_flag" ||
55905          test ! -s conftest.err
55906        } && test -s conftest$ac_exeext && {
55907          test "$cross_compiling" = yes ||
55908          $as_test_x conftest$ac_exeext
55909        }; then
55910   ac_cv_working_alloca_h=yes
55911 else
55912   $as_echo "$as_me: failed program was:" >&5
55913 sed 's/^/| /' conftest.$ac_ext >&5
55914
55915         ac_cv_working_alloca_h=no
55916 fi
55917
55918 rm -rf conftest.dSYM
55919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55920       conftest$ac_exeext conftest.$ac_ext
55921 fi
55922 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
55923 $as_echo "$ac_cv_working_alloca_h" >&6; }
55924 if test $ac_cv_working_alloca_h = yes; then
55925
55926 cat >>confdefs.h <<\_ACEOF
55927 #define HAVE_ALLOCA_H 1
55928 _ACEOF
55929
55930 fi
55931
55932 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
55933 $as_echo_n "checking for alloca... " >&6; }
55934 if test "${ac_cv_func_alloca_works+set}" = set; then
55935   $as_echo_n "(cached) " >&6
55936 else
55937   cat >conftest.$ac_ext <<_ACEOF
55938 /* confdefs.h.  */
55939 _ACEOF
55940 cat confdefs.h >>conftest.$ac_ext
55941 cat >>conftest.$ac_ext <<_ACEOF
55942 /* end confdefs.h.  */
55943 #ifdef __GNUC__
55944 # define alloca __builtin_alloca
55945 #else
55946 # ifdef _MSC_VER
55947 #  include <malloc.h>
55948 #  define alloca _alloca
55949 # else
55950 #  ifdef HAVE_ALLOCA_H
55951 #   include <alloca.h>
55952 #  else
55953 #   ifdef _AIX
55954  #pragma alloca
55955 #   else
55956 #    ifndef alloca /* predefined by HP cc +Olibcalls */
55957 char *alloca ();
55958 #    endif
55959 #   endif
55960 #  endif
55961 # endif
55962 #endif
55963
55964 int
55965 main ()
55966 {
55967 char *p = (char *) alloca (1);
55968                                     if (p) return 0;
55969   ;
55970   return 0;
55971 }
55972 _ACEOF
55973 rm -f conftest.$ac_objext conftest$ac_exeext
55974 if { (ac_try="$ac_link"
55975 case "(($ac_try" in
55976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55977   *) ac_try_echo=$ac_try;;
55978 esac
55979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55980 $as_echo "$ac_try_echo") >&5
55981   (eval "$ac_link") 2>conftest.er1
55982   ac_status=$?
55983   grep -v '^ *+' conftest.er1 >conftest.err
55984   rm -f conftest.er1
55985   cat conftest.err >&5
55986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55987   (exit $ac_status); } && {
55988          test -z "$ac_c_werror_flag" ||
55989          test ! -s conftest.err
55990        } && test -s conftest$ac_exeext && {
55991          test "$cross_compiling" = yes ||
55992          $as_test_x conftest$ac_exeext
55993        }; then
55994   ac_cv_func_alloca_works=yes
55995 else
55996   $as_echo "$as_me: failed program was:" >&5
55997 sed 's/^/| /' conftest.$ac_ext >&5
55998
55999         ac_cv_func_alloca_works=no
56000 fi
56001
56002 rm -rf conftest.dSYM
56003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56004       conftest$ac_exeext conftest.$ac_ext
56005 fi
56006 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
56007 $as_echo "$ac_cv_func_alloca_works" >&6; }
56008
56009 if test $ac_cv_func_alloca_works = yes; then
56010
56011 cat >>confdefs.h <<\_ACEOF
56012 #define HAVE_ALLOCA 1
56013 _ACEOF
56014
56015 else
56016   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
56017 # that cause trouble.  Some versions do not even contain alloca or
56018 # contain a buggy version.  If you still want to use their alloca,
56019 # use ar to extract alloca.o from them instead of compiling alloca.c.
56020
56021 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
56022
56023 cat >>confdefs.h <<\_ACEOF
56024 #define C_ALLOCA 1
56025 _ACEOF
56026
56027
56028 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
56029 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
56030 if test "${ac_cv_os_cray+set}" = set; then
56031   $as_echo_n "(cached) " >&6
56032 else
56033   cat >conftest.$ac_ext <<_ACEOF
56034 /* confdefs.h.  */
56035 _ACEOF
56036 cat confdefs.h >>conftest.$ac_ext
56037 cat >>conftest.$ac_ext <<_ACEOF
56038 /* end confdefs.h.  */
56039 #if defined CRAY && ! defined CRAY2
56040 webecray
56041 #else
56042 wenotbecray
56043 #endif
56044
56045 _ACEOF
56046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56047   $EGREP "webecray" >/dev/null 2>&1; then
56048   ac_cv_os_cray=yes
56049 else
56050   ac_cv_os_cray=no
56051 fi
56052 rm -f conftest*
56053
56054 fi
56055 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
56056 $as_echo "$ac_cv_os_cray" >&6; }
56057 if test $ac_cv_os_cray = yes; then
56058   for ac_func in _getb67 GETB67 getb67; do
56059     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
56060 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
56061 $as_echo_n "checking for $ac_func... " >&6; }
56062 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56063   $as_echo_n "(cached) " >&6
56064 else
56065   cat >conftest.$ac_ext <<_ACEOF
56066 /* confdefs.h.  */
56067 _ACEOF
56068 cat confdefs.h >>conftest.$ac_ext
56069 cat >>conftest.$ac_ext <<_ACEOF
56070 /* end confdefs.h.  */
56071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56072    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56073 #define $ac_func innocuous_$ac_func
56074
56075 /* System header to define __stub macros and hopefully few prototypes,
56076     which can conflict with char $ac_func (); below.
56077     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56078     <limits.h> exists even on freestanding compilers.  */
56079
56080 #ifdef __STDC__
56081 # include <limits.h>
56082 #else
56083 # include <assert.h>
56084 #endif
56085
56086 #undef $ac_func
56087
56088 /* Override any GCC internal prototype to avoid an error.
56089    Use char because int might match the return type of a GCC
56090    builtin and then its argument prototype would still apply.  */
56091 #ifdef __cplusplus
56092 extern "C"
56093 #endif
56094 char $ac_func ();
56095 /* The GNU C library defines this for functions which it implements
56096     to always fail with ENOSYS.  Some functions are actually named
56097     something starting with __ and the normal name is an alias.  */
56098 #if defined __stub_$ac_func || defined __stub___$ac_func
56099 choke me
56100 #endif
56101
56102 int
56103 main ()
56104 {
56105 return $ac_func ();
56106   ;
56107   return 0;
56108 }
56109 _ACEOF
56110 rm -f conftest.$ac_objext conftest$ac_exeext
56111 if { (ac_try="$ac_link"
56112 case "(($ac_try" in
56113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56114   *) ac_try_echo=$ac_try;;
56115 esac
56116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56117 $as_echo "$ac_try_echo") >&5
56118   (eval "$ac_link") 2>conftest.er1
56119   ac_status=$?
56120   grep -v '^ *+' conftest.er1 >conftest.err
56121   rm -f conftest.er1
56122   cat conftest.err >&5
56123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56124   (exit $ac_status); } && {
56125          test -z "$ac_c_werror_flag" ||
56126          test ! -s conftest.err
56127        } && test -s conftest$ac_exeext && {
56128          test "$cross_compiling" = yes ||
56129          $as_test_x conftest$ac_exeext
56130        }; then
56131   eval "$as_ac_var=yes"
56132 else
56133   $as_echo "$as_me: failed program was:" >&5
56134 sed 's/^/| /' conftest.$ac_ext >&5
56135
56136         eval "$as_ac_var=no"
56137 fi
56138
56139 rm -rf conftest.dSYM
56140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56141       conftest$ac_exeext conftest.$ac_ext
56142 fi
56143 ac_res=`eval 'as_val=${'$as_ac_var'}
56144                  $as_echo "$as_val"'`
56145                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
56146 $as_echo "$ac_res" >&6; }
56147 as_val=`eval 'as_val=${'$as_ac_var'}
56148                  $as_echo "$as_val"'`
56149    if test "x$as_val" = x""yes; then
56150
56151 cat >>confdefs.h <<_ACEOF
56152 #define CRAY_STACKSEG_END $ac_func
56153 _ACEOF
56154
56155     break
56156 fi
56157
56158   done
56159 fi
56160
56161 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
56162 $as_echo_n "checking stack direction for C alloca... " >&6; }
56163 if test "${ac_cv_c_stack_direction+set}" = set; then
56164   $as_echo_n "(cached) " >&6
56165 else
56166   if test "$cross_compiling" = yes; then
56167   ac_cv_c_stack_direction=0
56168 else
56169   cat >conftest.$ac_ext <<_ACEOF
56170 /* confdefs.h.  */
56171 _ACEOF
56172 cat confdefs.h >>conftest.$ac_ext
56173 cat >>conftest.$ac_ext <<_ACEOF
56174 /* end confdefs.h.  */
56175 $ac_includes_default
56176 int
56177 find_stack_direction ()
56178 {
56179   static char *addr = 0;
56180   auto char dummy;
56181   if (addr == 0)
56182     {
56183       addr = &dummy;
56184       return find_stack_direction ();
56185     }
56186   else
56187     return (&dummy > addr) ? 1 : -1;
56188 }
56189
56190 int
56191 main ()
56192 {
56193   return find_stack_direction () < 0;
56194 }
56195 _ACEOF
56196 rm -f conftest$ac_exeext
56197 if { (ac_try="$ac_link"
56198 case "(($ac_try" in
56199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56200   *) ac_try_echo=$ac_try;;
56201 esac
56202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56203 $as_echo "$ac_try_echo") >&5
56204   (eval "$ac_link") 2>&5
56205   ac_status=$?
56206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56208   { (case "(($ac_try" in
56209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56210   *) ac_try_echo=$ac_try;;
56211 esac
56212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56213 $as_echo "$ac_try_echo") >&5
56214   (eval "$ac_try") 2>&5
56215   ac_status=$?
56216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56217   (exit $ac_status); }; }; then
56218   ac_cv_c_stack_direction=1
56219 else
56220   $as_echo "$as_me: program exited with status $ac_status" >&5
56221 $as_echo "$as_me: failed program was:" >&5
56222 sed 's/^/| /' conftest.$ac_ext >&5
56223
56224 ( exit $ac_status )
56225 ac_cv_c_stack_direction=-1
56226 fi
56227 rm -rf conftest.dSYM
56228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56229 fi
56230
56231
56232 fi
56233 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
56234 $as_echo "$ac_cv_c_stack_direction" >&6; }
56235
56236 cat >>confdefs.h <<_ACEOF
56237 #define STACK_DIRECTION $ac_cv_c_stack_direction
56238 _ACEOF
56239
56240
56241 fi
56242
56243
56244 for ac_func in atexit
56245 do
56246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
56247 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
56248 $as_echo_n "checking for $ac_func... " >&6; }
56249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56250   $as_echo_n "(cached) " >&6
56251 else
56252   cat >conftest.$ac_ext <<_ACEOF
56253 /* confdefs.h.  */
56254 _ACEOF
56255 cat confdefs.h >>conftest.$ac_ext
56256 cat >>conftest.$ac_ext <<_ACEOF
56257 /* end confdefs.h.  */
56258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56260 #define $ac_func innocuous_$ac_func
56261
56262 /* System header to define __stub macros and hopefully few prototypes,
56263     which can conflict with char $ac_func (); below.
56264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56265     <limits.h> exists even on freestanding compilers.  */
56266
56267 #ifdef __STDC__
56268 # include <limits.h>
56269 #else
56270 # include <assert.h>
56271 #endif
56272
56273 #undef $ac_func
56274
56275 /* Override any GCC internal prototype to avoid an error.
56276    Use char because int might match the return type of a GCC
56277    builtin and then its argument prototype would still apply.  */
56278 #ifdef __cplusplus
56279 extern "C"
56280 #endif
56281 char $ac_func ();
56282 /* The GNU C library defines this for functions which it implements
56283     to always fail with ENOSYS.  Some functions are actually named
56284     something starting with __ and the normal name is an alias.  */
56285 #if defined __stub_$ac_func || defined __stub___$ac_func
56286 choke me
56287 #endif
56288
56289 int
56290 main ()
56291 {
56292 return $ac_func ();
56293   ;
56294   return 0;
56295 }
56296 _ACEOF
56297 rm -f conftest.$ac_objext conftest$ac_exeext
56298 if { (ac_try="$ac_link"
56299 case "(($ac_try" in
56300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56301   *) ac_try_echo=$ac_try;;
56302 esac
56303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56304 $as_echo "$ac_try_echo") >&5
56305   (eval "$ac_link") 2>conftest.er1
56306   ac_status=$?
56307   grep -v '^ *+' conftest.er1 >conftest.err
56308   rm -f conftest.er1
56309   cat conftest.err >&5
56310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56311   (exit $ac_status); } && {
56312          test -z "$ac_c_werror_flag" ||
56313          test ! -s conftest.err
56314        } && test -s conftest$ac_exeext && {
56315          test "$cross_compiling" = yes ||
56316          $as_test_x conftest$ac_exeext
56317        }; then
56318   eval "$as_ac_var=yes"
56319 else
56320   $as_echo "$as_me: failed program was:" >&5
56321 sed 's/^/| /' conftest.$ac_ext >&5
56322
56323         eval "$as_ac_var=no"
56324 fi
56325
56326 rm -rf conftest.dSYM
56327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56328       conftest$ac_exeext conftest.$ac_ext
56329 fi
56330 ac_res=`eval 'as_val=${'$as_ac_var'}
56331                  $as_echo "$as_val"'`
56332                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
56333 $as_echo "$ac_res" >&6; }
56334 as_val=`eval 'as_val=${'$as_ac_var'}
56335                  $as_echo "$as_val"'`
56336    if test "x$as_val" = x""yes; then
56337   cat >>confdefs.h <<_ACEOF
56338 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
56339 _ACEOF
56340
56341 fi
56342 done
56343
56344
56345 ice_have_atof=no
56346
56347 for ac_func in atof
56348 do
56349 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
56350 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
56351 $as_echo_n "checking for $ac_func... " >&6; }
56352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56353   $as_echo_n "(cached) " >&6
56354 else
56355   cat >conftest.$ac_ext <<_ACEOF
56356 /* confdefs.h.  */
56357 _ACEOF
56358 cat confdefs.h >>conftest.$ac_ext
56359 cat >>conftest.$ac_ext <<_ACEOF
56360 /* end confdefs.h.  */
56361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56363 #define $ac_func innocuous_$ac_func
56364
56365 /* System header to define __stub macros and hopefully few prototypes,
56366     which can conflict with char $ac_func (); below.
56367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56368     <limits.h> exists even on freestanding compilers.  */
56369
56370 #ifdef __STDC__
56371 # include <limits.h>
56372 #else
56373 # include <assert.h>
56374 #endif
56375
56376 #undef $ac_func
56377
56378 /* Override any GCC internal prototype to avoid an error.
56379    Use char because int might match the return type of a GCC
56380    builtin and then its argument prototype would still apply.  */
56381 #ifdef __cplusplus
56382 extern "C"
56383 #endif
56384 char $ac_func ();
56385 /* The GNU C library defines this for functions which it implements
56386     to always fail with ENOSYS.  Some functions are actually named
56387     something starting with __ and the normal name is an alias.  */
56388 #if defined __stub_$ac_func || defined __stub___$ac_func
56389 choke me
56390 #endif
56391
56392 int
56393 main ()
56394 {
56395 return $ac_func ();
56396   ;
56397   return 0;
56398 }
56399 _ACEOF
56400 rm -f conftest.$ac_objext conftest$ac_exeext
56401 if { (ac_try="$ac_link"
56402 case "(($ac_try" in
56403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56404   *) ac_try_echo=$ac_try;;
56405 esac
56406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56407 $as_echo "$ac_try_echo") >&5
56408   (eval "$ac_link") 2>conftest.er1
56409   ac_status=$?
56410   grep -v '^ *+' conftest.er1 >conftest.err
56411   rm -f conftest.er1
56412   cat conftest.err >&5
56413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56414   (exit $ac_status); } && {
56415          test -z "$ac_c_werror_flag" ||
56416          test ! -s conftest.err
56417        } && test -s conftest$ac_exeext && {
56418          test "$cross_compiling" = yes ||
56419          $as_test_x conftest$ac_exeext
56420        }; then
56421   eval "$as_ac_var=yes"
56422 else
56423   $as_echo "$as_me: failed program was:" >&5
56424 sed 's/^/| /' conftest.$ac_ext >&5
56425
56426         eval "$as_ac_var=no"
56427 fi
56428
56429 rm -rf conftest.dSYM
56430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56431       conftest$ac_exeext conftest.$ac_ext
56432 fi
56433 ac_res=`eval 'as_val=${'$as_ac_var'}
56434                  $as_echo "$as_val"'`
56435                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
56436 $as_echo "$ac_res" >&6; }
56437 as_val=`eval 'as_val=${'$as_ac_var'}
56438                  $as_echo "$as_val"'`
56439    if test "x$as_val" = x""yes; then
56440   cat >>confdefs.h <<_ACEOF
56441 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
56442 _ACEOF
56443  ice_have_atof=yes
56444 fi
56445 done
56446
56447 if test "${ice_have_atof}" = yes; then
56448 { $as_echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
56449 $as_echo_n "checking for atof declaration in stdlib.h... " >&6; }
56450 if test "${ice_cv_have_atof_decl+set}" = set; then
56451   $as_echo_n "(cached) " >&6
56452 else
56453
56454 ice_cv_have_atof_decl=no
56455 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56456 ice_re_word='(^|[^a-zA-Z0-9_])'
56457 for header in stdlib.h; do
56458 # Check for ordinary declaration
56459 cat >conftest.$ac_ext <<_ACEOF
56460 /* confdefs.h.  */
56461 _ACEOF
56462 cat confdefs.h >>conftest.$ac_ext
56463 cat >>conftest.$ac_ext <<_ACEOF
56464 /* end confdefs.h.  */
56465 #include <$header>
56466
56467 _ACEOF
56468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56469   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then
56470   ice_cv_have_atof_decl=yes
56471 fi
56472 rm -f conftest*
56473
56474 if test "$ice_cv_have_atof_decl" = yes; then
56475         break
56476 fi
56477 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56478 cat >conftest.$ac_ext <<_ACEOF
56479 /* confdefs.h.  */
56480 _ACEOF
56481 cat confdefs.h >>conftest.$ac_ext
56482 cat >>conftest.$ac_ext <<_ACEOF
56483 /* end confdefs.h.  */
56484 #include <$header>
56485
56486 _ACEOF
56487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56488   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56489   ice_cv_have_atof_decl=yes
56490 fi
56491 rm -f conftest*
56492
56493 if test "$ice_cv_have_atof_decl" = yes; then
56494         break
56495 fi
56496 done
56497
56498 fi
56499
56500 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
56501 $as_echo "$ice_cv_have_atof_decl" >&6; }
56502 if test "$ice_cv_have_atof_decl" = yes; then
56503
56504 cat >>confdefs.h <<_ACEOF
56505 #define HAVE_ATOF_DECL 1
56506 _ACEOF
56507
56508 fi
56509 fi
56510
56511
56512 ice_have_atol=no
56513
56514 for ac_func in atol
56515 do
56516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
56517 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
56518 $as_echo_n "checking for $ac_func... " >&6; }
56519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56520   $as_echo_n "(cached) " >&6
56521 else
56522   cat >conftest.$ac_ext <<_ACEOF
56523 /* confdefs.h.  */
56524 _ACEOF
56525 cat confdefs.h >>conftest.$ac_ext
56526 cat >>conftest.$ac_ext <<_ACEOF
56527 /* end confdefs.h.  */
56528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56530 #define $ac_func innocuous_$ac_func
56531
56532 /* System header to define __stub macros and hopefully few prototypes,
56533     which can conflict with char $ac_func (); below.
56534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56535     <limits.h> exists even on freestanding compilers.  */
56536
56537 #ifdef __STDC__
56538 # include <limits.h>
56539 #else
56540 # include <assert.h>
56541 #endif
56542
56543 #undef $ac_func
56544
56545 /* Override any GCC internal prototype to avoid an error.
56546    Use char because int might match the return type of a GCC
56547    builtin and then its argument prototype would still apply.  */
56548 #ifdef __cplusplus
56549 extern "C"
56550 #endif
56551 char $ac_func ();
56552 /* The GNU C library defines this for functions which it implements
56553     to always fail with ENOSYS.  Some functions are actually named
56554     something starting with __ and the normal name is an alias.  */
56555 #if defined __stub_$ac_func || defined __stub___$ac_func
56556 choke me
56557 #endif
56558
56559 int
56560 main ()
56561 {
56562 return $ac_func ();
56563   ;
56564   return 0;
56565 }
56566 _ACEOF
56567 rm -f conftest.$ac_objext conftest$ac_exeext
56568 if { (ac_try="$ac_link"
56569 case "(($ac_try" in
56570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56571   *) ac_try_echo=$ac_try;;
56572 esac
56573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56574 $as_echo "$ac_try_echo") >&5
56575   (eval "$ac_link") 2>conftest.er1
56576   ac_status=$?
56577   grep -v '^ *+' conftest.er1 >conftest.err
56578   rm -f conftest.er1
56579   cat conftest.err >&5
56580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56581   (exit $ac_status); } && {
56582          test -z "$ac_c_werror_flag" ||
56583          test ! -s conftest.err
56584        } && test -s conftest$ac_exeext && {
56585          test "$cross_compiling" = yes ||
56586          $as_test_x conftest$ac_exeext
56587        }; then
56588   eval "$as_ac_var=yes"
56589 else
56590   $as_echo "$as_me: failed program was:" >&5
56591 sed 's/^/| /' conftest.$ac_ext >&5
56592
56593         eval "$as_ac_var=no"
56594 fi
56595
56596 rm -rf conftest.dSYM
56597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56598       conftest$ac_exeext conftest.$ac_ext
56599 fi
56600 ac_res=`eval 'as_val=${'$as_ac_var'}
56601                  $as_echo "$as_val"'`
56602                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
56603 $as_echo "$ac_res" >&6; }
56604 as_val=`eval 'as_val=${'$as_ac_var'}
56605                  $as_echo "$as_val"'`
56606    if test "x$as_val" = x""yes; then
56607   cat >>confdefs.h <<_ACEOF
56608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
56609 _ACEOF
56610  ice_have_atol=yes
56611 fi
56612 done
56613
56614 if test "${ice_have_atol}" = yes; then
56615 { $as_echo "$as_me:$LINENO: checking for atol declaration in stdlib.h" >&5
56616 $as_echo_n "checking for atol declaration in stdlib.h... " >&6; }
56617 if test "${ice_cv_have_atol_decl+set}" = set; then
56618   $as_echo_n "(cached) " >&6
56619 else
56620
56621 ice_cv_have_atol_decl=no
56622 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56623 ice_re_word='(^|[^a-zA-Z0-9_])'
56624 for header in stdlib.h; do
56625 # Check for ordinary declaration
56626 cat >conftest.$ac_ext <<_ACEOF
56627 /* confdefs.h.  */
56628 _ACEOF
56629 cat confdefs.h >>conftest.$ac_ext
56630 cat >>conftest.$ac_ext <<_ACEOF
56631 /* end confdefs.h.  */
56632 #include <$header>
56633
56634 _ACEOF
56635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56636   $EGREP "${ice_re_word}atol[   ]*\(" >/dev/null 2>&1; then
56637   ice_cv_have_atol_decl=yes
56638 fi
56639 rm -f conftest*
56640
56641 if test "$ice_cv_have_atol_decl" = yes; then
56642         break
56643 fi
56644 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56645 cat >conftest.$ac_ext <<_ACEOF
56646 /* confdefs.h.  */
56647 _ACEOF
56648 cat confdefs.h >>conftest.$ac_ext
56649 cat >>conftest.$ac_ext <<_ACEOF
56650 /* end confdefs.h.  */
56651 #include <$header>
56652
56653 _ACEOF
56654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56655   $EGREP "${ice_re_word}atol[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56656   ice_cv_have_atol_decl=yes
56657 fi
56658 rm -f conftest*
56659
56660 if test "$ice_cv_have_atol_decl" = yes; then
56661         break
56662 fi
56663 done
56664
56665 fi
56666
56667 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atol_decl" >&5
56668 $as_echo "$ice_cv_have_atol_decl" >&6; }
56669 if test "$ice_cv_have_atol_decl" = yes; then
56670
56671 cat >>confdefs.h <<_ACEOF
56672 #define HAVE_ATOL_DECL 1
56673 _ACEOF
56674
56675 fi
56676 fi
56677
56678
56679 ice_have_atoll=no
56680
56681 for ac_func in atoll
56682 do
56683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
56684 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
56685 $as_echo_n "checking for $ac_func... " >&6; }
56686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56687   $as_echo_n "(cached) " >&6
56688 else
56689   cat >conftest.$ac_ext <<_ACEOF
56690 /* confdefs.h.  */
56691 _ACEOF
56692 cat confdefs.h >>conftest.$ac_ext
56693 cat >>conftest.$ac_ext <<_ACEOF
56694 /* end confdefs.h.  */
56695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56697 #define $ac_func innocuous_$ac_func
56698
56699 /* System header to define __stub macros and hopefully few prototypes,
56700     which can conflict with char $ac_func (); below.
56701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56702     <limits.h> exists even on freestanding compilers.  */
56703
56704 #ifdef __STDC__
56705 # include <limits.h>
56706 #else
56707 # include <assert.h>
56708 #endif
56709
56710 #undef $ac_func
56711
56712 /* Override any GCC internal prototype to avoid an error.
56713    Use char because int might match the return type of a GCC
56714    builtin and then its argument prototype would still apply.  */
56715 #ifdef __cplusplus
56716 extern "C"
56717 #endif
56718 char $ac_func ();
56719 /* The GNU C library defines this for functions which it implements
56720     to always fail with ENOSYS.  Some functions are actually named
56721     something starting with __ and the normal name is an alias.  */
56722 #if defined __stub_$ac_func || defined __stub___$ac_func
56723 choke me
56724 #endif
56725
56726 int
56727 main ()
56728 {
56729 return $ac_func ();
56730   ;
56731   return 0;
56732 }
56733 _ACEOF
56734 rm -f conftest.$ac_objext conftest$ac_exeext
56735 if { (ac_try="$ac_link"
56736 case "(($ac_try" in
56737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56738   *) ac_try_echo=$ac_try;;
56739 esac
56740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56741 $as_echo "$ac_try_echo") >&5
56742   (eval "$ac_link") 2>conftest.er1
56743   ac_status=$?
56744   grep -v '^ *+' conftest.er1 >conftest.err
56745   rm -f conftest.er1
56746   cat conftest.err >&5
56747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56748   (exit $ac_status); } && {
56749          test -z "$ac_c_werror_flag" ||
56750          test ! -s conftest.err
56751        } && test -s conftest$ac_exeext && {
56752          test "$cross_compiling" = yes ||
56753          $as_test_x conftest$ac_exeext
56754        }; then
56755   eval "$as_ac_var=yes"
56756 else
56757   $as_echo "$as_me: failed program was:" >&5
56758 sed 's/^/| /' conftest.$ac_ext >&5
56759
56760         eval "$as_ac_var=no"
56761 fi
56762
56763 rm -rf conftest.dSYM
56764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56765       conftest$ac_exeext conftest.$ac_ext
56766 fi
56767 ac_res=`eval 'as_val=${'$as_ac_var'}
56768                  $as_echo "$as_val"'`
56769                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
56770 $as_echo "$ac_res" >&6; }
56771 as_val=`eval 'as_val=${'$as_ac_var'}
56772                  $as_echo "$as_val"'`
56773    if test "x$as_val" = x""yes; then
56774   cat >>confdefs.h <<_ACEOF
56775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
56776 _ACEOF
56777  ice_have_atoll=yes
56778 fi
56779 done
56780
56781 if test "${ice_have_atoll}" = yes; then
56782 { $as_echo "$as_me:$LINENO: checking for atoll declaration in stdlib.h" >&5
56783 $as_echo_n "checking for atoll declaration in stdlib.h... " >&6; }
56784 if test "${ice_cv_have_atoll_decl+set}" = set; then
56785   $as_echo_n "(cached) " >&6
56786 else
56787
56788 ice_cv_have_atoll_decl=no
56789 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56790 ice_re_word='(^|[^a-zA-Z0-9_])'
56791 for header in stdlib.h; do
56792 # Check for ordinary declaration
56793 cat >conftest.$ac_ext <<_ACEOF
56794 /* confdefs.h.  */
56795 _ACEOF
56796 cat confdefs.h >>conftest.$ac_ext
56797 cat >>conftest.$ac_ext <<_ACEOF
56798 /* end confdefs.h.  */
56799 #include <$header>
56800
56801 _ACEOF
56802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56803   $EGREP "${ice_re_word}atoll[  ]*\(" >/dev/null 2>&1; then
56804   ice_cv_have_atoll_decl=yes
56805 fi
56806 rm -f conftest*
56807
56808 if test "$ice_cv_have_atoll_decl" = yes; then
56809         break
56810 fi
56811 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56812 cat >conftest.$ac_ext <<_ACEOF
56813 /* confdefs.h.  */
56814 _ACEOF
56815 cat confdefs.h >>conftest.$ac_ext
56816 cat >>conftest.$ac_ext <<_ACEOF
56817 /* end confdefs.h.  */
56818 #include <$header>
56819
56820 _ACEOF
56821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56822   $EGREP "${ice_re_word}atoll[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56823   ice_cv_have_atoll_decl=yes
56824 fi
56825 rm -f conftest*
56826
56827 if test "$ice_cv_have_atoll_decl" = yes; then
56828         break
56829 fi
56830 done
56831
56832 fi
56833
56834 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atoll_decl" >&5
56835 $as_echo "$ice_cv_have_atoll_decl" >&6; }
56836 if test "$ice_cv_have_atoll_decl" = yes; then
56837
56838 cat >>confdefs.h <<_ACEOF
56839 #define HAVE_ATOLL_DECL 1
56840 _ACEOF
56841
56842 fi
56843 fi
56844
56845
56846 ice_have_strtol=no
56847
56848 for ac_func in strtol
56849 do
56850 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
56851 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
56852 $as_echo_n "checking for $ac_func... " >&6; }
56853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56854   $as_echo_n "(cached) " >&6
56855 else
56856   cat >conftest.$ac_ext <<_ACEOF
56857 /* confdefs.h.  */
56858 _ACEOF
56859 cat confdefs.h >>conftest.$ac_ext
56860 cat >>conftest.$ac_ext <<_ACEOF
56861 /* end confdefs.h.  */
56862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56864 #define $ac_func innocuous_$ac_func
56865
56866 /* System header to define __stub macros and hopefully few prototypes,
56867     which can conflict with char $ac_func (); below.
56868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56869     <limits.h> exists even on freestanding compilers.  */
56870
56871 #ifdef __STDC__
56872 # include <limits.h>
56873 #else
56874 # include <assert.h>
56875 #endif
56876
56877 #undef $ac_func
56878
56879 /* Override any GCC internal prototype to avoid an error.
56880    Use char because int might match the return type of a GCC
56881    builtin and then its argument prototype would still apply.  */
56882 #ifdef __cplusplus
56883 extern "C"
56884 #endif
56885 char $ac_func ();
56886 /* The GNU C library defines this for functions which it implements
56887     to always fail with ENOSYS.  Some functions are actually named
56888     something starting with __ and the normal name is an alias.  */
56889 #if defined __stub_$ac_func || defined __stub___$ac_func
56890 choke me
56891 #endif
56892
56893 int
56894 main ()
56895 {
56896 return $ac_func ();
56897   ;
56898   return 0;
56899 }
56900 _ACEOF
56901 rm -f conftest.$ac_objext conftest$ac_exeext
56902 if { (ac_try="$ac_link"
56903 case "(($ac_try" in
56904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56905   *) ac_try_echo=$ac_try;;
56906 esac
56907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56908 $as_echo "$ac_try_echo") >&5
56909   (eval "$ac_link") 2>conftest.er1
56910   ac_status=$?
56911   grep -v '^ *+' conftest.er1 >conftest.err
56912   rm -f conftest.er1
56913   cat conftest.err >&5
56914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56915   (exit $ac_status); } && {
56916          test -z "$ac_c_werror_flag" ||
56917          test ! -s conftest.err
56918        } && test -s conftest$ac_exeext && {
56919          test "$cross_compiling" = yes ||
56920          $as_test_x conftest$ac_exeext
56921        }; then
56922   eval "$as_ac_var=yes"
56923 else
56924   $as_echo "$as_me: failed program was:" >&5
56925 sed 's/^/| /' conftest.$ac_ext >&5
56926
56927         eval "$as_ac_var=no"
56928 fi
56929
56930 rm -rf conftest.dSYM
56931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56932       conftest$ac_exeext conftest.$ac_ext
56933 fi
56934 ac_res=`eval 'as_val=${'$as_ac_var'}
56935                  $as_echo "$as_val"'`
56936                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
56937 $as_echo "$ac_res" >&6; }
56938 as_val=`eval 'as_val=${'$as_ac_var'}
56939                  $as_echo "$as_val"'`
56940    if test "x$as_val" = x""yes; then
56941   cat >>confdefs.h <<_ACEOF
56942 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
56943 _ACEOF
56944  ice_have_strtol=yes
56945 fi
56946 done
56947
56948 if test "${ice_have_strtol}" = yes; then
56949 { $as_echo "$as_me:$LINENO: checking for strtol declaration in stdlib.h" >&5
56950 $as_echo_n "checking for strtol declaration in stdlib.h... " >&6; }
56951 if test "${ice_cv_have_strtol_decl+set}" = set; then
56952   $as_echo_n "(cached) " >&6
56953 else
56954
56955 ice_cv_have_strtol_decl=no
56956 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56957 ice_re_word='(^|[^a-zA-Z0-9_])'
56958 for header in stdlib.h; do
56959 # Check for ordinary declaration
56960 cat >conftest.$ac_ext <<_ACEOF
56961 /* confdefs.h.  */
56962 _ACEOF
56963 cat confdefs.h >>conftest.$ac_ext
56964 cat >>conftest.$ac_ext <<_ACEOF
56965 /* end confdefs.h.  */
56966 #include <$header>
56967
56968 _ACEOF
56969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56970   $EGREP "${ice_re_word}strtol[         ]*\(" >/dev/null 2>&1; then
56971   ice_cv_have_strtol_decl=yes
56972 fi
56973 rm -f conftest*
56974
56975 if test "$ice_cv_have_strtol_decl" = yes; then
56976         break
56977 fi
56978 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56979 cat >conftest.$ac_ext <<_ACEOF
56980 /* confdefs.h.  */
56981 _ACEOF
56982 cat confdefs.h >>conftest.$ac_ext
56983 cat >>conftest.$ac_ext <<_ACEOF
56984 /* end confdefs.h.  */
56985 #include <$header>
56986
56987 _ACEOF
56988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56989   $EGREP "${ice_re_word}strtol[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56990   ice_cv_have_strtol_decl=yes
56991 fi
56992 rm -f conftest*
56993
56994 if test "$ice_cv_have_strtol_decl" = yes; then
56995         break
56996 fi
56997 done
56998
56999 fi
57000
57001 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strtol_decl" >&5
57002 $as_echo "$ice_cv_have_strtol_decl" >&6; }
57003 if test "$ice_cv_have_strtol_decl" = yes; then
57004
57005 cat >>confdefs.h <<_ACEOF
57006 #define HAVE_STRTOL_DECL 1
57007 _ACEOF
57008
57009 fi
57010 fi
57011
57012
57013 ice_have_strtoll=no
57014
57015 for ac_func in strtoll
57016 do
57017 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57018 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57019 $as_echo_n "checking for $ac_func... " >&6; }
57020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57021   $as_echo_n "(cached) " >&6
57022 else
57023   cat >conftest.$ac_ext <<_ACEOF
57024 /* confdefs.h.  */
57025 _ACEOF
57026 cat confdefs.h >>conftest.$ac_ext
57027 cat >>conftest.$ac_ext <<_ACEOF
57028 /* end confdefs.h.  */
57029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57031 #define $ac_func innocuous_$ac_func
57032
57033 /* System header to define __stub macros and hopefully few prototypes,
57034     which can conflict with char $ac_func (); below.
57035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57036     <limits.h> exists even on freestanding compilers.  */
57037
57038 #ifdef __STDC__
57039 # include <limits.h>
57040 #else
57041 # include <assert.h>
57042 #endif
57043
57044 #undef $ac_func
57045
57046 /* Override any GCC internal prototype to avoid an error.
57047    Use char because int might match the return type of a GCC
57048    builtin and then its argument prototype would still apply.  */
57049 #ifdef __cplusplus
57050 extern "C"
57051 #endif
57052 char $ac_func ();
57053 /* The GNU C library defines this for functions which it implements
57054     to always fail with ENOSYS.  Some functions are actually named
57055     something starting with __ and the normal name is an alias.  */
57056 #if defined __stub_$ac_func || defined __stub___$ac_func
57057 choke me
57058 #endif
57059
57060 int
57061 main ()
57062 {
57063 return $ac_func ();
57064   ;
57065   return 0;
57066 }
57067 _ACEOF
57068 rm -f conftest.$ac_objext conftest$ac_exeext
57069 if { (ac_try="$ac_link"
57070 case "(($ac_try" in
57071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57072   *) ac_try_echo=$ac_try;;
57073 esac
57074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57075 $as_echo "$ac_try_echo") >&5
57076   (eval "$ac_link") 2>conftest.er1
57077   ac_status=$?
57078   grep -v '^ *+' conftest.er1 >conftest.err
57079   rm -f conftest.er1
57080   cat conftest.err >&5
57081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57082   (exit $ac_status); } && {
57083          test -z "$ac_c_werror_flag" ||
57084          test ! -s conftest.err
57085        } && test -s conftest$ac_exeext && {
57086          test "$cross_compiling" = yes ||
57087          $as_test_x conftest$ac_exeext
57088        }; then
57089   eval "$as_ac_var=yes"
57090 else
57091   $as_echo "$as_me: failed program was:" >&5
57092 sed 's/^/| /' conftest.$ac_ext >&5
57093
57094         eval "$as_ac_var=no"
57095 fi
57096
57097 rm -rf conftest.dSYM
57098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57099       conftest$ac_exeext conftest.$ac_ext
57100 fi
57101 ac_res=`eval 'as_val=${'$as_ac_var'}
57102                  $as_echo "$as_val"'`
57103                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57104 $as_echo "$ac_res" >&6; }
57105 as_val=`eval 'as_val=${'$as_ac_var'}
57106                  $as_echo "$as_val"'`
57107    if test "x$as_val" = x""yes; then
57108   cat >>confdefs.h <<_ACEOF
57109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57110 _ACEOF
57111  ice_have_strtoll=yes
57112 fi
57113 done
57114
57115 if test "${ice_have_strtoll}" = yes; then
57116 { $as_echo "$as_me:$LINENO: checking for strtoll declaration in stdlib.h" >&5
57117 $as_echo_n "checking for strtoll declaration in stdlib.h... " >&6; }
57118 if test "${ice_cv_have_strtoll_decl+set}" = set; then
57119   $as_echo_n "(cached) " >&6
57120 else
57121
57122 ice_cv_have_strtoll_decl=no
57123 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57124 ice_re_word='(^|[^a-zA-Z0-9_])'
57125 for header in stdlib.h; do
57126 # Check for ordinary declaration
57127 cat >conftest.$ac_ext <<_ACEOF
57128 /* confdefs.h.  */
57129 _ACEOF
57130 cat confdefs.h >>conftest.$ac_ext
57131 cat >>conftest.$ac_ext <<_ACEOF
57132 /* end confdefs.h.  */
57133 #include <$header>
57134
57135 _ACEOF
57136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57137   $EGREP "${ice_re_word}strtoll[        ]*\(" >/dev/null 2>&1; then
57138   ice_cv_have_strtoll_decl=yes
57139 fi
57140 rm -f conftest*
57141
57142 if test "$ice_cv_have_strtoll_decl" = yes; then
57143         break
57144 fi
57145 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57146 cat >conftest.$ac_ext <<_ACEOF
57147 /* confdefs.h.  */
57148 _ACEOF
57149 cat confdefs.h >>conftest.$ac_ext
57150 cat >>conftest.$ac_ext <<_ACEOF
57151 /* end confdefs.h.  */
57152 #include <$header>
57153
57154 _ACEOF
57155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57156   $EGREP "${ice_re_word}strtoll[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57157   ice_cv_have_strtoll_decl=yes
57158 fi
57159 rm -f conftest*
57160
57161 if test "$ice_cv_have_strtoll_decl" = yes; then
57162         break
57163 fi
57164 done
57165
57166 fi
57167
57168 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strtoll_decl" >&5
57169 $as_echo "$ice_cv_have_strtoll_decl" >&6; }
57170 if test "$ice_cv_have_strtoll_decl" = yes; then
57171
57172 cat >>confdefs.h <<_ACEOF
57173 #define HAVE_STRTOLL_DECL 1
57174 _ACEOF
57175
57176 fi
57177 fi
57178
57179
57180 for ac_func in basename
57181 do
57182 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57183 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57184 $as_echo_n "checking for $ac_func... " >&6; }
57185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57186   $as_echo_n "(cached) " >&6
57187 else
57188   cat >conftest.$ac_ext <<_ACEOF
57189 /* confdefs.h.  */
57190 _ACEOF
57191 cat confdefs.h >>conftest.$ac_ext
57192 cat >>conftest.$ac_ext <<_ACEOF
57193 /* end confdefs.h.  */
57194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57196 #define $ac_func innocuous_$ac_func
57197
57198 /* System header to define __stub macros and hopefully few prototypes,
57199     which can conflict with char $ac_func (); below.
57200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57201     <limits.h> exists even on freestanding compilers.  */
57202
57203 #ifdef __STDC__
57204 # include <limits.h>
57205 #else
57206 # include <assert.h>
57207 #endif
57208
57209 #undef $ac_func
57210
57211 /* Override any GCC internal prototype to avoid an error.
57212    Use char because int might match the return type of a GCC
57213    builtin and then its argument prototype would still apply.  */
57214 #ifdef __cplusplus
57215 extern "C"
57216 #endif
57217 char $ac_func ();
57218 /* The GNU C library defines this for functions which it implements
57219     to always fail with ENOSYS.  Some functions are actually named
57220     something starting with __ and the normal name is an alias.  */
57221 #if defined __stub_$ac_func || defined __stub___$ac_func
57222 choke me
57223 #endif
57224
57225 int
57226 main ()
57227 {
57228 return $ac_func ();
57229   ;
57230   return 0;
57231 }
57232 _ACEOF
57233 rm -f conftest.$ac_objext conftest$ac_exeext
57234 if { (ac_try="$ac_link"
57235 case "(($ac_try" in
57236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57237   *) ac_try_echo=$ac_try;;
57238 esac
57239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57240 $as_echo "$ac_try_echo") >&5
57241   (eval "$ac_link") 2>conftest.er1
57242   ac_status=$?
57243   grep -v '^ *+' conftest.er1 >conftest.err
57244   rm -f conftest.er1
57245   cat conftest.err >&5
57246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57247   (exit $ac_status); } && {
57248          test -z "$ac_c_werror_flag" ||
57249          test ! -s conftest.err
57250        } && test -s conftest$ac_exeext && {
57251          test "$cross_compiling" = yes ||
57252          $as_test_x conftest$ac_exeext
57253        }; then
57254   eval "$as_ac_var=yes"
57255 else
57256   $as_echo "$as_me: failed program was:" >&5
57257 sed 's/^/| /' conftest.$ac_ext >&5
57258
57259         eval "$as_ac_var=no"
57260 fi
57261
57262 rm -rf conftest.dSYM
57263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57264       conftest$ac_exeext conftest.$ac_ext
57265 fi
57266 ac_res=`eval 'as_val=${'$as_ac_var'}
57267                  $as_echo "$as_val"'`
57268                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57269 $as_echo "$ac_res" >&6; }
57270 as_val=`eval 'as_val=${'$as_ac_var'}
57271                  $as_echo "$as_val"'`
57272    if test "x$as_val" = x""yes; then
57273   cat >>confdefs.h <<_ACEOF
57274 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57275 _ACEOF
57276
57277 fi
57278 done
57279
57280
57281 ice_have_bind=no
57282
57283 for ac_func in bind
57284 do
57285 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57286 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57287 $as_echo_n "checking for $ac_func... " >&6; }
57288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57289   $as_echo_n "(cached) " >&6
57290 else
57291   cat >conftest.$ac_ext <<_ACEOF
57292 /* confdefs.h.  */
57293 _ACEOF
57294 cat confdefs.h >>conftest.$ac_ext
57295 cat >>conftest.$ac_ext <<_ACEOF
57296 /* end confdefs.h.  */
57297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57298    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57299 #define $ac_func innocuous_$ac_func
57300
57301 /* System header to define __stub macros and hopefully few prototypes,
57302     which can conflict with char $ac_func (); below.
57303     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57304     <limits.h> exists even on freestanding compilers.  */
57305
57306 #ifdef __STDC__
57307 # include <limits.h>
57308 #else
57309 # include <assert.h>
57310 #endif
57311
57312 #undef $ac_func
57313
57314 /* Override any GCC internal prototype to avoid an error.
57315    Use char because int might match the return type of a GCC
57316    builtin and then its argument prototype would still apply.  */
57317 #ifdef __cplusplus
57318 extern "C"
57319 #endif
57320 char $ac_func ();
57321 /* The GNU C library defines this for functions which it implements
57322     to always fail with ENOSYS.  Some functions are actually named
57323     something starting with __ and the normal name is an alias.  */
57324 #if defined __stub_$ac_func || defined __stub___$ac_func
57325 choke me
57326 #endif
57327
57328 int
57329 main ()
57330 {
57331 return $ac_func ();
57332   ;
57333   return 0;
57334 }
57335 _ACEOF
57336 rm -f conftest.$ac_objext conftest$ac_exeext
57337 if { (ac_try="$ac_link"
57338 case "(($ac_try" in
57339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57340   *) ac_try_echo=$ac_try;;
57341 esac
57342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57343 $as_echo "$ac_try_echo") >&5
57344   (eval "$ac_link") 2>conftest.er1
57345   ac_status=$?
57346   grep -v '^ *+' conftest.er1 >conftest.err
57347   rm -f conftest.er1
57348   cat conftest.err >&5
57349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57350   (exit $ac_status); } && {
57351          test -z "$ac_c_werror_flag" ||
57352          test ! -s conftest.err
57353        } && test -s conftest$ac_exeext && {
57354          test "$cross_compiling" = yes ||
57355          $as_test_x conftest$ac_exeext
57356        }; then
57357   eval "$as_ac_var=yes"
57358 else
57359   $as_echo "$as_me: failed program was:" >&5
57360 sed 's/^/| /' conftest.$ac_ext >&5
57361
57362         eval "$as_ac_var=no"
57363 fi
57364
57365 rm -rf conftest.dSYM
57366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57367       conftest$ac_exeext conftest.$ac_ext
57368 fi
57369 ac_res=`eval 'as_val=${'$as_ac_var'}
57370                  $as_echo "$as_val"'`
57371                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57372 $as_echo "$ac_res" >&6; }
57373 as_val=`eval 'as_val=${'$as_ac_var'}
57374                  $as_echo "$as_val"'`
57375    if test "x$as_val" = x""yes; then
57376   cat >>confdefs.h <<_ACEOF
57377 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57378 _ACEOF
57379  ice_have_bind=yes
57380 fi
57381 done
57382
57383 if test "${ice_have_bind}" = yes; then
57384 { $as_echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
57385 $as_echo_n "checking for bind declaration in sys/types.h sys/socket.h... " >&6; }
57386 if test "${ice_cv_have_bind_decl+set}" = set; then
57387   $as_echo_n "(cached) " >&6
57388 else
57389
57390 ice_cv_have_bind_decl=no
57391 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57392 ice_re_word='(^|[^a-zA-Z0-9_])'
57393 for header in sys/types.h sys/socket.h; do
57394 # Check for ordinary declaration
57395 cat >conftest.$ac_ext <<_ACEOF
57396 /* confdefs.h.  */
57397 _ACEOF
57398 cat confdefs.h >>conftest.$ac_ext
57399 cat >>conftest.$ac_ext <<_ACEOF
57400 /* end confdefs.h.  */
57401 #include <$header>
57402
57403 _ACEOF
57404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57405   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then
57406   ice_cv_have_bind_decl=yes
57407 fi
57408 rm -f conftest*
57409
57410 if test "$ice_cv_have_bind_decl" = yes; then
57411         break
57412 fi
57413 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57414 cat >conftest.$ac_ext <<_ACEOF
57415 /* confdefs.h.  */
57416 _ACEOF
57417 cat confdefs.h >>conftest.$ac_ext
57418 cat >>conftest.$ac_ext <<_ACEOF
57419 /* end confdefs.h.  */
57420 #include <$header>
57421
57422 _ACEOF
57423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57424   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57425   ice_cv_have_bind_decl=yes
57426 fi
57427 rm -f conftest*
57428
57429 if test "$ice_cv_have_bind_decl" = yes; then
57430         break
57431 fi
57432 done
57433
57434 fi
57435
57436 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
57437 $as_echo "$ice_cv_have_bind_decl" >&6; }
57438 if test "$ice_cv_have_bind_decl" = yes; then
57439
57440 cat >>confdefs.h <<_ACEOF
57441 #define HAVE_BIND_DECL 1
57442 _ACEOF
57443
57444 fi
57445 fi
57446
57447
57448 ice_have_bcopy=no
57449
57450 for ac_func in bcopy
57451 do
57452 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57453 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57454 $as_echo_n "checking for $ac_func... " >&6; }
57455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57456   $as_echo_n "(cached) " >&6
57457 else
57458   cat >conftest.$ac_ext <<_ACEOF
57459 /* confdefs.h.  */
57460 _ACEOF
57461 cat confdefs.h >>conftest.$ac_ext
57462 cat >>conftest.$ac_ext <<_ACEOF
57463 /* end confdefs.h.  */
57464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57465    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57466 #define $ac_func innocuous_$ac_func
57467
57468 /* System header to define __stub macros and hopefully few prototypes,
57469     which can conflict with char $ac_func (); below.
57470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57471     <limits.h> exists even on freestanding compilers.  */
57472
57473 #ifdef __STDC__
57474 # include <limits.h>
57475 #else
57476 # include <assert.h>
57477 #endif
57478
57479 #undef $ac_func
57480
57481 /* Override any GCC internal prototype to avoid an error.
57482    Use char because int might match the return type of a GCC
57483    builtin and then its argument prototype would still apply.  */
57484 #ifdef __cplusplus
57485 extern "C"
57486 #endif
57487 char $ac_func ();
57488 /* The GNU C library defines this for functions which it implements
57489     to always fail with ENOSYS.  Some functions are actually named
57490     something starting with __ and the normal name is an alias.  */
57491 #if defined __stub_$ac_func || defined __stub___$ac_func
57492 choke me
57493 #endif
57494
57495 int
57496 main ()
57497 {
57498 return $ac_func ();
57499   ;
57500   return 0;
57501 }
57502 _ACEOF
57503 rm -f conftest.$ac_objext conftest$ac_exeext
57504 if { (ac_try="$ac_link"
57505 case "(($ac_try" in
57506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57507   *) ac_try_echo=$ac_try;;
57508 esac
57509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57510 $as_echo "$ac_try_echo") >&5
57511   (eval "$ac_link") 2>conftest.er1
57512   ac_status=$?
57513   grep -v '^ *+' conftest.er1 >conftest.err
57514   rm -f conftest.er1
57515   cat conftest.err >&5
57516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57517   (exit $ac_status); } && {
57518          test -z "$ac_c_werror_flag" ||
57519          test ! -s conftest.err
57520        } && test -s conftest$ac_exeext && {
57521          test "$cross_compiling" = yes ||
57522          $as_test_x conftest$ac_exeext
57523        }; then
57524   eval "$as_ac_var=yes"
57525 else
57526   $as_echo "$as_me: failed program was:" >&5
57527 sed 's/^/| /' conftest.$ac_ext >&5
57528
57529         eval "$as_ac_var=no"
57530 fi
57531
57532 rm -rf conftest.dSYM
57533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57534       conftest$ac_exeext conftest.$ac_ext
57535 fi
57536 ac_res=`eval 'as_val=${'$as_ac_var'}
57537                  $as_echo "$as_val"'`
57538                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57539 $as_echo "$ac_res" >&6; }
57540 as_val=`eval 'as_val=${'$as_ac_var'}
57541                  $as_echo "$as_val"'`
57542    if test "x$as_val" = x""yes; then
57543   cat >>confdefs.h <<_ACEOF
57544 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57545 _ACEOF
57546  ice_have_bcopy=yes
57547 fi
57548 done
57549
57550 if test "${ice_have_bcopy}" = yes; then
57551 { $as_echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
57552 $as_echo_n "checking for bcopy declaration in string.h strings.h stdlib.h... " >&6; }
57553 if test "${ice_cv_have_bcopy_decl+set}" = set; then
57554   $as_echo_n "(cached) " >&6
57555 else
57556
57557 ice_cv_have_bcopy_decl=no
57558 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57559 ice_re_word='(^|[^a-zA-Z0-9_])'
57560 for header in string.h strings.h stdlib.h; do
57561 # Check for ordinary declaration
57562 cat >conftest.$ac_ext <<_ACEOF
57563 /* confdefs.h.  */
57564 _ACEOF
57565 cat confdefs.h >>conftest.$ac_ext
57566 cat >>conftest.$ac_ext <<_ACEOF
57567 /* end confdefs.h.  */
57568 #include <$header>
57569
57570 _ACEOF
57571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57572   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then
57573   ice_cv_have_bcopy_decl=yes
57574 fi
57575 rm -f conftest*
57576
57577 if test "$ice_cv_have_bcopy_decl" = yes; then
57578         break
57579 fi
57580 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57581 cat >conftest.$ac_ext <<_ACEOF
57582 /* confdefs.h.  */
57583 _ACEOF
57584 cat confdefs.h >>conftest.$ac_ext
57585 cat >>conftest.$ac_ext <<_ACEOF
57586 /* end confdefs.h.  */
57587 #include <$header>
57588
57589 _ACEOF
57590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57591   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57592   ice_cv_have_bcopy_decl=yes
57593 fi
57594 rm -f conftest*
57595
57596 if test "$ice_cv_have_bcopy_decl" = yes; then
57597         break
57598 fi
57599 done
57600
57601 fi
57602
57603 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
57604 $as_echo "$ice_cv_have_bcopy_decl" >&6; }
57605 if test "$ice_cv_have_bcopy_decl" = yes; then
57606
57607 cat >>confdefs.h <<_ACEOF
57608 #define HAVE_BCOPY_DECL 1
57609 _ACEOF
57610
57611 fi
57612 fi
57613
57614
57615 ice_have_bzero=no
57616
57617 for ac_func in bzero
57618 do
57619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57620 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57621 $as_echo_n "checking for $ac_func... " >&6; }
57622 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57623   $as_echo_n "(cached) " >&6
57624 else
57625   cat >conftest.$ac_ext <<_ACEOF
57626 /* confdefs.h.  */
57627 _ACEOF
57628 cat confdefs.h >>conftest.$ac_ext
57629 cat >>conftest.$ac_ext <<_ACEOF
57630 /* end confdefs.h.  */
57631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57633 #define $ac_func innocuous_$ac_func
57634
57635 /* System header to define __stub macros and hopefully few prototypes,
57636     which can conflict with char $ac_func (); below.
57637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57638     <limits.h> exists even on freestanding compilers.  */
57639
57640 #ifdef __STDC__
57641 # include <limits.h>
57642 #else
57643 # include <assert.h>
57644 #endif
57645
57646 #undef $ac_func
57647
57648 /* Override any GCC internal prototype to avoid an error.
57649    Use char because int might match the return type of a GCC
57650    builtin and then its argument prototype would still apply.  */
57651 #ifdef __cplusplus
57652 extern "C"
57653 #endif
57654 char $ac_func ();
57655 /* The GNU C library defines this for functions which it implements
57656     to always fail with ENOSYS.  Some functions are actually named
57657     something starting with __ and the normal name is an alias.  */
57658 #if defined __stub_$ac_func || defined __stub___$ac_func
57659 choke me
57660 #endif
57661
57662 int
57663 main ()
57664 {
57665 return $ac_func ();
57666   ;
57667   return 0;
57668 }
57669 _ACEOF
57670 rm -f conftest.$ac_objext conftest$ac_exeext
57671 if { (ac_try="$ac_link"
57672 case "(($ac_try" in
57673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57674   *) ac_try_echo=$ac_try;;
57675 esac
57676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57677 $as_echo "$ac_try_echo") >&5
57678   (eval "$ac_link") 2>conftest.er1
57679   ac_status=$?
57680   grep -v '^ *+' conftest.er1 >conftest.err
57681   rm -f conftest.er1
57682   cat conftest.err >&5
57683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57684   (exit $ac_status); } && {
57685          test -z "$ac_c_werror_flag" ||
57686          test ! -s conftest.err
57687        } && test -s conftest$ac_exeext && {
57688          test "$cross_compiling" = yes ||
57689          $as_test_x conftest$ac_exeext
57690        }; then
57691   eval "$as_ac_var=yes"
57692 else
57693   $as_echo "$as_me: failed program was:" >&5
57694 sed 's/^/| /' conftest.$ac_ext >&5
57695
57696         eval "$as_ac_var=no"
57697 fi
57698
57699 rm -rf conftest.dSYM
57700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57701       conftest$ac_exeext conftest.$ac_ext
57702 fi
57703 ac_res=`eval 'as_val=${'$as_ac_var'}
57704                  $as_echo "$as_val"'`
57705                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57706 $as_echo "$ac_res" >&6; }
57707 as_val=`eval 'as_val=${'$as_ac_var'}
57708                  $as_echo "$as_val"'`
57709    if test "x$as_val" = x""yes; then
57710   cat >>confdefs.h <<_ACEOF
57711 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57712 _ACEOF
57713  ice_have_bzero=yes
57714 fi
57715 done
57716
57717 if test "${ice_have_bzero}" = yes; then
57718 { $as_echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
57719 $as_echo_n "checking for bzero declaration in string.h strings.h stdlib.h... " >&6; }
57720 if test "${ice_cv_have_bzero_decl+set}" = set; then
57721   $as_echo_n "(cached) " >&6
57722 else
57723
57724 ice_cv_have_bzero_decl=no
57725 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57726 ice_re_word='(^|[^a-zA-Z0-9_])'
57727 for header in string.h strings.h stdlib.h; do
57728 # Check for ordinary declaration
57729 cat >conftest.$ac_ext <<_ACEOF
57730 /* confdefs.h.  */
57731 _ACEOF
57732 cat confdefs.h >>conftest.$ac_ext
57733 cat >>conftest.$ac_ext <<_ACEOF
57734 /* end confdefs.h.  */
57735 #include <$header>
57736
57737 _ACEOF
57738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57739   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then
57740   ice_cv_have_bzero_decl=yes
57741 fi
57742 rm -f conftest*
57743
57744 if test "$ice_cv_have_bzero_decl" = yes; then
57745         break
57746 fi
57747 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57748 cat >conftest.$ac_ext <<_ACEOF
57749 /* confdefs.h.  */
57750 _ACEOF
57751 cat confdefs.h >>conftest.$ac_ext
57752 cat >>conftest.$ac_ext <<_ACEOF
57753 /* end confdefs.h.  */
57754 #include <$header>
57755
57756 _ACEOF
57757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57758   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57759   ice_cv_have_bzero_decl=yes
57760 fi
57761 rm -f conftest*
57762
57763 if test "$ice_cv_have_bzero_decl" = yes; then
57764         break
57765 fi
57766 done
57767
57768 fi
57769
57770 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
57771 $as_echo "$ice_cv_have_bzero_decl" >&6; }
57772 if test "$ice_cv_have_bzero_decl" = yes; then
57773
57774 cat >>confdefs.h <<_ACEOF
57775 #define HAVE_BZERO_DECL 1
57776 _ACEOF
57777
57778 fi
57779 fi
57780
57781 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
57782 $as_echo_n "checking whether closedir returns void... " >&6; }
57783 if test "${ac_cv_func_closedir_void+set}" = set; then
57784   $as_echo_n "(cached) " >&6
57785 else
57786   if test "$cross_compiling" = yes; then
57787   ac_cv_func_closedir_void=yes
57788 else
57789   cat >conftest.$ac_ext <<_ACEOF
57790 /* confdefs.h.  */
57791 _ACEOF
57792 cat confdefs.h >>conftest.$ac_ext
57793 cat >>conftest.$ac_ext <<_ACEOF
57794 /* end confdefs.h.  */
57795 $ac_includes_default
57796 #include <$ac_header_dirent>
57797 #ifndef __cplusplus
57798 int closedir ();
57799 #endif
57800
57801 int
57802 main ()
57803 {
57804 return closedir (opendir (".")) != 0;
57805   ;
57806   return 0;
57807 }
57808 _ACEOF
57809 rm -f conftest$ac_exeext
57810 if { (ac_try="$ac_link"
57811 case "(($ac_try" in
57812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57813   *) ac_try_echo=$ac_try;;
57814 esac
57815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57816 $as_echo "$ac_try_echo") >&5
57817   (eval "$ac_link") 2>&5
57818   ac_status=$?
57819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57820   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
57821   { (case "(($ac_try" in
57822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57823   *) ac_try_echo=$ac_try;;
57824 esac
57825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57826 $as_echo "$ac_try_echo") >&5
57827   (eval "$ac_try") 2>&5
57828   ac_status=$?
57829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57830   (exit $ac_status); }; }; then
57831   ac_cv_func_closedir_void=no
57832 else
57833   $as_echo "$as_me: program exited with status $ac_status" >&5
57834 $as_echo "$as_me: failed program was:" >&5
57835 sed 's/^/| /' conftest.$ac_ext >&5
57836
57837 ( exit $ac_status )
57838 ac_cv_func_closedir_void=yes
57839 fi
57840 rm -rf conftest.dSYM
57841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
57842 fi
57843
57844
57845 fi
57846 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
57847 $as_echo "$ac_cv_func_closedir_void" >&6; }
57848 if test $ac_cv_func_closedir_void = yes; then
57849
57850 cat >>confdefs.h <<\_ACEOF
57851 #define CLOSEDIR_VOID 1
57852 _ACEOF
57853
57854 fi
57855
57856
57857 ice_have_closelog=no
57858
57859 for ac_func in closelog
57860 do
57861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57862 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57863 $as_echo_n "checking for $ac_func... " >&6; }
57864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57865   $as_echo_n "(cached) " >&6
57866 else
57867   cat >conftest.$ac_ext <<_ACEOF
57868 /* confdefs.h.  */
57869 _ACEOF
57870 cat confdefs.h >>conftest.$ac_ext
57871 cat >>conftest.$ac_ext <<_ACEOF
57872 /* end confdefs.h.  */
57873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57875 #define $ac_func innocuous_$ac_func
57876
57877 /* System header to define __stub macros and hopefully few prototypes,
57878     which can conflict with char $ac_func (); below.
57879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57880     <limits.h> exists even on freestanding compilers.  */
57881
57882 #ifdef __STDC__
57883 # include <limits.h>
57884 #else
57885 # include <assert.h>
57886 #endif
57887
57888 #undef $ac_func
57889
57890 /* Override any GCC internal prototype to avoid an error.
57891    Use char because int might match the return type of a GCC
57892    builtin and then its argument prototype would still apply.  */
57893 #ifdef __cplusplus
57894 extern "C"
57895 #endif
57896 char $ac_func ();
57897 /* The GNU C library defines this for functions which it implements
57898     to always fail with ENOSYS.  Some functions are actually named
57899     something starting with __ and the normal name is an alias.  */
57900 #if defined __stub_$ac_func || defined __stub___$ac_func
57901 choke me
57902 #endif
57903
57904 int
57905 main ()
57906 {
57907 return $ac_func ();
57908   ;
57909   return 0;
57910 }
57911 _ACEOF
57912 rm -f conftest.$ac_objext conftest$ac_exeext
57913 if { (ac_try="$ac_link"
57914 case "(($ac_try" in
57915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57916   *) ac_try_echo=$ac_try;;
57917 esac
57918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57919 $as_echo "$ac_try_echo") >&5
57920   (eval "$ac_link") 2>conftest.er1
57921   ac_status=$?
57922   grep -v '^ *+' conftest.er1 >conftest.err
57923   rm -f conftest.er1
57924   cat conftest.err >&5
57925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57926   (exit $ac_status); } && {
57927          test -z "$ac_c_werror_flag" ||
57928          test ! -s conftest.err
57929        } && test -s conftest$ac_exeext && {
57930          test "$cross_compiling" = yes ||
57931          $as_test_x conftest$ac_exeext
57932        }; then
57933   eval "$as_ac_var=yes"
57934 else
57935   $as_echo "$as_me: failed program was:" >&5
57936 sed 's/^/| /' conftest.$ac_ext >&5
57937
57938         eval "$as_ac_var=no"
57939 fi
57940
57941 rm -rf conftest.dSYM
57942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57943       conftest$ac_exeext conftest.$ac_ext
57944 fi
57945 ac_res=`eval 'as_val=${'$as_ac_var'}
57946                  $as_echo "$as_val"'`
57947                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57948 $as_echo "$ac_res" >&6; }
57949 as_val=`eval 'as_val=${'$as_ac_var'}
57950                  $as_echo "$as_val"'`
57951    if test "x$as_val" = x""yes; then
57952   cat >>confdefs.h <<_ACEOF
57953 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57954 _ACEOF
57955  ice_have_closelog=yes
57956 fi
57957 done
57958
57959 if test "${ice_have_closelog}" = yes; then
57960 { $as_echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
57961 $as_echo_n "checking for closelog declaration in syslog.h... " >&6; }
57962 if test "${ice_cv_have_closelog_decl+set}" = set; then
57963   $as_echo_n "(cached) " >&6
57964 else
57965
57966 ice_cv_have_closelog_decl=no
57967 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57968 ice_re_word='(^|[^a-zA-Z0-9_])'
57969 for header in syslog.h; do
57970 # Check for ordinary declaration
57971 cat >conftest.$ac_ext <<_ACEOF
57972 /* confdefs.h.  */
57973 _ACEOF
57974 cat confdefs.h >>conftest.$ac_ext
57975 cat >>conftest.$ac_ext <<_ACEOF
57976 /* end confdefs.h.  */
57977 #include <$header>
57978
57979 _ACEOF
57980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57981   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then
57982   ice_cv_have_closelog_decl=yes
57983 fi
57984 rm -f conftest*
57985
57986 if test "$ice_cv_have_closelog_decl" = yes; then
57987         break
57988 fi
57989 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57990 cat >conftest.$ac_ext <<_ACEOF
57991 /* confdefs.h.  */
57992 _ACEOF
57993 cat confdefs.h >>conftest.$ac_ext
57994 cat >>conftest.$ac_ext <<_ACEOF
57995 /* end confdefs.h.  */
57996 #include <$header>
57997
57998 _ACEOF
57999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58000   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58001   ice_cv_have_closelog_decl=yes
58002 fi
58003 rm -f conftest*
58004
58005 if test "$ice_cv_have_closelog_decl" = yes; then
58006         break
58007 fi
58008 done
58009
58010 fi
58011
58012 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
58013 $as_echo "$ice_cv_have_closelog_decl" >&6; }
58014 if test "$ice_cv_have_closelog_decl" = yes; then
58015
58016 cat >>confdefs.h <<_ACEOF
58017 #define HAVE_CLOSELOG_DECL 1
58018 _ACEOF
58019
58020 fi
58021 fi
58022
58023
58024 ice_have_connect=no
58025
58026 for ac_func in connect
58027 do
58028 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58029 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58030 $as_echo_n "checking for $ac_func... " >&6; }
58031 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58032   $as_echo_n "(cached) " >&6
58033 else
58034   cat >conftest.$ac_ext <<_ACEOF
58035 /* confdefs.h.  */
58036 _ACEOF
58037 cat confdefs.h >>conftest.$ac_ext
58038 cat >>conftest.$ac_ext <<_ACEOF
58039 /* end confdefs.h.  */
58040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58042 #define $ac_func innocuous_$ac_func
58043
58044 /* System header to define __stub macros and hopefully few prototypes,
58045     which can conflict with char $ac_func (); below.
58046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58047     <limits.h> exists even on freestanding compilers.  */
58048
58049 #ifdef __STDC__
58050 # include <limits.h>
58051 #else
58052 # include <assert.h>
58053 #endif
58054
58055 #undef $ac_func
58056
58057 /* Override any GCC internal prototype to avoid an error.
58058    Use char because int might match the return type of a GCC
58059    builtin and then its argument prototype would still apply.  */
58060 #ifdef __cplusplus
58061 extern "C"
58062 #endif
58063 char $ac_func ();
58064 /* The GNU C library defines this for functions which it implements
58065     to always fail with ENOSYS.  Some functions are actually named
58066     something starting with __ and the normal name is an alias.  */
58067 #if defined __stub_$ac_func || defined __stub___$ac_func
58068 choke me
58069 #endif
58070
58071 int
58072 main ()
58073 {
58074 return $ac_func ();
58075   ;
58076   return 0;
58077 }
58078 _ACEOF
58079 rm -f conftest.$ac_objext conftest$ac_exeext
58080 if { (ac_try="$ac_link"
58081 case "(($ac_try" in
58082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58083   *) ac_try_echo=$ac_try;;
58084 esac
58085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58086 $as_echo "$ac_try_echo") >&5
58087   (eval "$ac_link") 2>conftest.er1
58088   ac_status=$?
58089   grep -v '^ *+' conftest.er1 >conftest.err
58090   rm -f conftest.er1
58091   cat conftest.err >&5
58092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58093   (exit $ac_status); } && {
58094          test -z "$ac_c_werror_flag" ||
58095          test ! -s conftest.err
58096        } && test -s conftest$ac_exeext && {
58097          test "$cross_compiling" = yes ||
58098          $as_test_x conftest$ac_exeext
58099        }; then
58100   eval "$as_ac_var=yes"
58101 else
58102   $as_echo "$as_me: failed program was:" >&5
58103 sed 's/^/| /' conftest.$ac_ext >&5
58104
58105         eval "$as_ac_var=no"
58106 fi
58107
58108 rm -rf conftest.dSYM
58109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58110       conftest$ac_exeext conftest.$ac_ext
58111 fi
58112 ac_res=`eval 'as_val=${'$as_ac_var'}
58113                  $as_echo "$as_val"'`
58114                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58115 $as_echo "$ac_res" >&6; }
58116 as_val=`eval 'as_val=${'$as_ac_var'}
58117                  $as_echo "$as_val"'`
58118    if test "x$as_val" = x""yes; then
58119   cat >>confdefs.h <<_ACEOF
58120 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58121 _ACEOF
58122  ice_have_connect=yes
58123 fi
58124 done
58125
58126 if test "${ice_have_connect}" = yes; then
58127 { $as_echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
58128 $as_echo_n "checking for connect declaration in sys/types.h sys/socket.h... " >&6; }
58129 if test "${ice_cv_have_connect_decl+set}" = set; then
58130   $as_echo_n "(cached) " >&6
58131 else
58132
58133 ice_cv_have_connect_decl=no
58134 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58135 ice_re_word='(^|[^a-zA-Z0-9_])'
58136 for header in sys/types.h sys/socket.h; do
58137 # Check for ordinary declaration
58138 cat >conftest.$ac_ext <<_ACEOF
58139 /* confdefs.h.  */
58140 _ACEOF
58141 cat confdefs.h >>conftest.$ac_ext
58142 cat >>conftest.$ac_ext <<_ACEOF
58143 /* end confdefs.h.  */
58144 #include <$header>
58145
58146 _ACEOF
58147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58148   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then
58149   ice_cv_have_connect_decl=yes
58150 fi
58151 rm -f conftest*
58152
58153 if test "$ice_cv_have_connect_decl" = yes; then
58154         break
58155 fi
58156 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58157 cat >conftest.$ac_ext <<_ACEOF
58158 /* confdefs.h.  */
58159 _ACEOF
58160 cat confdefs.h >>conftest.$ac_ext
58161 cat >>conftest.$ac_ext <<_ACEOF
58162 /* end confdefs.h.  */
58163 #include <$header>
58164
58165 _ACEOF
58166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58167   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58168   ice_cv_have_connect_decl=yes
58169 fi
58170 rm -f conftest*
58171
58172 if test "$ice_cv_have_connect_decl" = yes; then
58173         break
58174 fi
58175 done
58176
58177 fi
58178
58179 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
58180 $as_echo "$ice_cv_have_connect_decl" >&6; }
58181 if test "$ice_cv_have_connect_decl" = yes; then
58182
58183 cat >>confdefs.h <<_ACEOF
58184 #define HAVE_CONNECT_DECL 1
58185 _ACEOF
58186
58187 fi
58188 fi
58189
58190
58191 ice_have_fclose=no
58192
58193 for ac_func in fclose
58194 do
58195 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58196 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58197 $as_echo_n "checking for $ac_func... " >&6; }
58198 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58199   $as_echo_n "(cached) " >&6
58200 else
58201   cat >conftest.$ac_ext <<_ACEOF
58202 /* confdefs.h.  */
58203 _ACEOF
58204 cat confdefs.h >>conftest.$ac_ext
58205 cat >>conftest.$ac_ext <<_ACEOF
58206 /* end confdefs.h.  */
58207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58208    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58209 #define $ac_func innocuous_$ac_func
58210
58211 /* System header to define __stub macros and hopefully few prototypes,
58212     which can conflict with char $ac_func (); below.
58213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58214     <limits.h> exists even on freestanding compilers.  */
58215
58216 #ifdef __STDC__
58217 # include <limits.h>
58218 #else
58219 # include <assert.h>
58220 #endif
58221
58222 #undef $ac_func
58223
58224 /* Override any GCC internal prototype to avoid an error.
58225    Use char because int might match the return type of a GCC
58226    builtin and then its argument prototype would still apply.  */
58227 #ifdef __cplusplus
58228 extern "C"
58229 #endif
58230 char $ac_func ();
58231 /* The GNU C library defines this for functions which it implements
58232     to always fail with ENOSYS.  Some functions are actually named
58233     something starting with __ and the normal name is an alias.  */
58234 #if defined __stub_$ac_func || defined __stub___$ac_func
58235 choke me
58236 #endif
58237
58238 int
58239 main ()
58240 {
58241 return $ac_func ();
58242   ;
58243   return 0;
58244 }
58245 _ACEOF
58246 rm -f conftest.$ac_objext conftest$ac_exeext
58247 if { (ac_try="$ac_link"
58248 case "(($ac_try" in
58249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58250   *) ac_try_echo=$ac_try;;
58251 esac
58252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58253 $as_echo "$ac_try_echo") >&5
58254   (eval "$ac_link") 2>conftest.er1
58255   ac_status=$?
58256   grep -v '^ *+' conftest.er1 >conftest.err
58257   rm -f conftest.er1
58258   cat conftest.err >&5
58259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58260   (exit $ac_status); } && {
58261          test -z "$ac_c_werror_flag" ||
58262          test ! -s conftest.err
58263        } && test -s conftest$ac_exeext && {
58264          test "$cross_compiling" = yes ||
58265          $as_test_x conftest$ac_exeext
58266        }; then
58267   eval "$as_ac_var=yes"
58268 else
58269   $as_echo "$as_me: failed program was:" >&5
58270 sed 's/^/| /' conftest.$ac_ext >&5
58271
58272         eval "$as_ac_var=no"
58273 fi
58274
58275 rm -rf conftest.dSYM
58276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58277       conftest$ac_exeext conftest.$ac_ext
58278 fi
58279 ac_res=`eval 'as_val=${'$as_ac_var'}
58280                  $as_echo "$as_val"'`
58281                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58282 $as_echo "$ac_res" >&6; }
58283 as_val=`eval 'as_val=${'$as_ac_var'}
58284                  $as_echo "$as_val"'`
58285    if test "x$as_val" = x""yes; then
58286   cat >>confdefs.h <<_ACEOF
58287 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58288 _ACEOF
58289  ice_have_fclose=yes
58290 fi
58291 done
58292
58293 if test "${ice_have_fclose}" = yes; then
58294 { $as_echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
58295 $as_echo_n "checking for fclose declaration in stdio.h... " >&6; }
58296 if test "${ice_cv_have_fclose_decl+set}" = set; then
58297   $as_echo_n "(cached) " >&6
58298 else
58299
58300 ice_cv_have_fclose_decl=no
58301 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58302 ice_re_word='(^|[^a-zA-Z0-9_])'
58303 for header in stdio.h; do
58304 # Check for ordinary declaration
58305 cat >conftest.$ac_ext <<_ACEOF
58306 /* confdefs.h.  */
58307 _ACEOF
58308 cat confdefs.h >>conftest.$ac_ext
58309 cat >>conftest.$ac_ext <<_ACEOF
58310 /* end confdefs.h.  */
58311 #include <$header>
58312
58313 _ACEOF
58314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58315   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then
58316   ice_cv_have_fclose_decl=yes
58317 fi
58318 rm -f conftest*
58319
58320 if test "$ice_cv_have_fclose_decl" = yes; then
58321         break
58322 fi
58323 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58324 cat >conftest.$ac_ext <<_ACEOF
58325 /* confdefs.h.  */
58326 _ACEOF
58327 cat confdefs.h >>conftest.$ac_ext
58328 cat >>conftest.$ac_ext <<_ACEOF
58329 /* end confdefs.h.  */
58330 #include <$header>
58331
58332 _ACEOF
58333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58334   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58335   ice_cv_have_fclose_decl=yes
58336 fi
58337 rm -f conftest*
58338
58339 if test "$ice_cv_have_fclose_decl" = yes; then
58340         break
58341 fi
58342 done
58343
58344 fi
58345
58346 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
58347 $as_echo "$ice_cv_have_fclose_decl" >&6; }
58348 if test "$ice_cv_have_fclose_decl" = yes; then
58349
58350 cat >>confdefs.h <<_ACEOF
58351 #define HAVE_FCLOSE_DECL 1
58352 _ACEOF
58353
58354 fi
58355 fi
58356
58357
58358 ice_have_fflush=no
58359
58360 for ac_func in fflush
58361 do
58362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58363 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58364 $as_echo_n "checking for $ac_func... " >&6; }
58365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58366   $as_echo_n "(cached) " >&6
58367 else
58368   cat >conftest.$ac_ext <<_ACEOF
58369 /* confdefs.h.  */
58370 _ACEOF
58371 cat confdefs.h >>conftest.$ac_ext
58372 cat >>conftest.$ac_ext <<_ACEOF
58373 /* end confdefs.h.  */
58374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58376 #define $ac_func innocuous_$ac_func
58377
58378 /* System header to define __stub macros and hopefully few prototypes,
58379     which can conflict with char $ac_func (); below.
58380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58381     <limits.h> exists even on freestanding compilers.  */
58382
58383 #ifdef __STDC__
58384 # include <limits.h>
58385 #else
58386 # include <assert.h>
58387 #endif
58388
58389 #undef $ac_func
58390
58391 /* Override any GCC internal prototype to avoid an error.
58392    Use char because int might match the return type of a GCC
58393    builtin and then its argument prototype would still apply.  */
58394 #ifdef __cplusplus
58395 extern "C"
58396 #endif
58397 char $ac_func ();
58398 /* The GNU C library defines this for functions which it implements
58399     to always fail with ENOSYS.  Some functions are actually named
58400     something starting with __ and the normal name is an alias.  */
58401 #if defined __stub_$ac_func || defined __stub___$ac_func
58402 choke me
58403 #endif
58404
58405 int
58406 main ()
58407 {
58408 return $ac_func ();
58409   ;
58410   return 0;
58411 }
58412 _ACEOF
58413 rm -f conftest.$ac_objext conftest$ac_exeext
58414 if { (ac_try="$ac_link"
58415 case "(($ac_try" in
58416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58417   *) ac_try_echo=$ac_try;;
58418 esac
58419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58420 $as_echo "$ac_try_echo") >&5
58421   (eval "$ac_link") 2>conftest.er1
58422   ac_status=$?
58423   grep -v '^ *+' conftest.er1 >conftest.err
58424   rm -f conftest.er1
58425   cat conftest.err >&5
58426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58427   (exit $ac_status); } && {
58428          test -z "$ac_c_werror_flag" ||
58429          test ! -s conftest.err
58430        } && test -s conftest$ac_exeext && {
58431          test "$cross_compiling" = yes ||
58432          $as_test_x conftest$ac_exeext
58433        }; then
58434   eval "$as_ac_var=yes"
58435 else
58436   $as_echo "$as_me: failed program was:" >&5
58437 sed 's/^/| /' conftest.$ac_ext >&5
58438
58439         eval "$as_ac_var=no"
58440 fi
58441
58442 rm -rf conftest.dSYM
58443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58444       conftest$ac_exeext conftest.$ac_ext
58445 fi
58446 ac_res=`eval 'as_val=${'$as_ac_var'}
58447                  $as_echo "$as_val"'`
58448                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58449 $as_echo "$ac_res" >&6; }
58450 as_val=`eval 'as_val=${'$as_ac_var'}
58451                  $as_echo "$as_val"'`
58452    if test "x$as_val" = x""yes; then
58453   cat >>confdefs.h <<_ACEOF
58454 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58455 _ACEOF
58456  ice_have_fflush=yes
58457 fi
58458 done
58459
58460 if test "${ice_have_fflush}" = yes; then
58461 { $as_echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
58462 $as_echo_n "checking for fflush declaration in stdio.h... " >&6; }
58463 if test "${ice_cv_have_fflush_decl+set}" = set; then
58464   $as_echo_n "(cached) " >&6
58465 else
58466
58467 ice_cv_have_fflush_decl=no
58468 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58469 ice_re_word='(^|[^a-zA-Z0-9_])'
58470 for header in stdio.h; do
58471 # Check for ordinary declaration
58472 cat >conftest.$ac_ext <<_ACEOF
58473 /* confdefs.h.  */
58474 _ACEOF
58475 cat confdefs.h >>conftest.$ac_ext
58476 cat >>conftest.$ac_ext <<_ACEOF
58477 /* end confdefs.h.  */
58478 #include <$header>
58479
58480 _ACEOF
58481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58482   $EGREP "${ice_re_word}fflush[         ]*\(" >/dev/null 2>&1; then
58483   ice_cv_have_fflush_decl=yes
58484 fi
58485 rm -f conftest*
58486
58487 if test "$ice_cv_have_fflush_decl" = yes; then
58488         break
58489 fi
58490 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58491 cat >conftest.$ac_ext <<_ACEOF
58492 /* confdefs.h.  */
58493 _ACEOF
58494 cat confdefs.h >>conftest.$ac_ext
58495 cat >>conftest.$ac_ext <<_ACEOF
58496 /* end confdefs.h.  */
58497 #include <$header>
58498
58499 _ACEOF
58500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58501   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58502   ice_cv_have_fflush_decl=yes
58503 fi
58504 rm -f conftest*
58505
58506 if test "$ice_cv_have_fflush_decl" = yes; then
58507         break
58508 fi
58509 done
58510
58511 fi
58512
58513 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
58514 $as_echo "$ice_cv_have_fflush_decl" >&6; }
58515 if test "$ice_cv_have_fflush_decl" = yes; then
58516
58517 cat >>confdefs.h <<_ACEOF
58518 #define HAVE_FFLUSH_DECL 1
58519 _ACEOF
58520
58521 fi
58522 fi
58523
58524
58525 ice_have_fprintf=no
58526
58527 for ac_func in fprintf
58528 do
58529 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58530 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58531 $as_echo_n "checking for $ac_func... " >&6; }
58532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58533   $as_echo_n "(cached) " >&6
58534 else
58535   cat >conftest.$ac_ext <<_ACEOF
58536 /* confdefs.h.  */
58537 _ACEOF
58538 cat confdefs.h >>conftest.$ac_ext
58539 cat >>conftest.$ac_ext <<_ACEOF
58540 /* end confdefs.h.  */
58541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58543 #define $ac_func innocuous_$ac_func
58544
58545 /* System header to define __stub macros and hopefully few prototypes,
58546     which can conflict with char $ac_func (); below.
58547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58548     <limits.h> exists even on freestanding compilers.  */
58549
58550 #ifdef __STDC__
58551 # include <limits.h>
58552 #else
58553 # include <assert.h>
58554 #endif
58555
58556 #undef $ac_func
58557
58558 /* Override any GCC internal prototype to avoid an error.
58559    Use char because int might match the return type of a GCC
58560    builtin and then its argument prototype would still apply.  */
58561 #ifdef __cplusplus
58562 extern "C"
58563 #endif
58564 char $ac_func ();
58565 /* The GNU C library defines this for functions which it implements
58566     to always fail with ENOSYS.  Some functions are actually named
58567     something starting with __ and the normal name is an alias.  */
58568 #if defined __stub_$ac_func || defined __stub___$ac_func
58569 choke me
58570 #endif
58571
58572 int
58573 main ()
58574 {
58575 return $ac_func ();
58576   ;
58577   return 0;
58578 }
58579 _ACEOF
58580 rm -f conftest.$ac_objext conftest$ac_exeext
58581 if { (ac_try="$ac_link"
58582 case "(($ac_try" in
58583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58584   *) ac_try_echo=$ac_try;;
58585 esac
58586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58587 $as_echo "$ac_try_echo") >&5
58588   (eval "$ac_link") 2>conftest.er1
58589   ac_status=$?
58590   grep -v '^ *+' conftest.er1 >conftest.err
58591   rm -f conftest.er1
58592   cat conftest.err >&5
58593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58594   (exit $ac_status); } && {
58595          test -z "$ac_c_werror_flag" ||
58596          test ! -s conftest.err
58597        } && test -s conftest$ac_exeext && {
58598          test "$cross_compiling" = yes ||
58599          $as_test_x conftest$ac_exeext
58600        }; then
58601   eval "$as_ac_var=yes"
58602 else
58603   $as_echo "$as_me: failed program was:" >&5
58604 sed 's/^/| /' conftest.$ac_ext >&5
58605
58606         eval "$as_ac_var=no"
58607 fi
58608
58609 rm -rf conftest.dSYM
58610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58611       conftest$ac_exeext conftest.$ac_ext
58612 fi
58613 ac_res=`eval 'as_val=${'$as_ac_var'}
58614                  $as_echo "$as_val"'`
58615                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58616 $as_echo "$ac_res" >&6; }
58617 as_val=`eval 'as_val=${'$as_ac_var'}
58618                  $as_echo "$as_val"'`
58619    if test "x$as_val" = x""yes; then
58620   cat >>confdefs.h <<_ACEOF
58621 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58622 _ACEOF
58623  ice_have_fprintf=yes
58624 fi
58625 done
58626
58627 if test "${ice_have_fprintf}" = yes; then
58628 { $as_echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
58629 $as_echo_n "checking for fprintf declaration in stdio.h... " >&6; }
58630 if test "${ice_cv_have_fprintf_decl+set}" = set; then
58631   $as_echo_n "(cached) " >&6
58632 else
58633
58634 ice_cv_have_fprintf_decl=no
58635 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58636 ice_re_word='(^|[^a-zA-Z0-9_])'
58637 for header in stdio.h; do
58638 # Check for ordinary declaration
58639 cat >conftest.$ac_ext <<_ACEOF
58640 /* confdefs.h.  */
58641 _ACEOF
58642 cat confdefs.h >>conftest.$ac_ext
58643 cat >>conftest.$ac_ext <<_ACEOF
58644 /* end confdefs.h.  */
58645 #include <$header>
58646
58647 _ACEOF
58648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58649   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then
58650   ice_cv_have_fprintf_decl=yes
58651 fi
58652 rm -f conftest*
58653
58654 if test "$ice_cv_have_fprintf_decl" = yes; then
58655         break
58656 fi
58657 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58658 cat >conftest.$ac_ext <<_ACEOF
58659 /* confdefs.h.  */
58660 _ACEOF
58661 cat confdefs.h >>conftest.$ac_ext
58662 cat >>conftest.$ac_ext <<_ACEOF
58663 /* end confdefs.h.  */
58664 #include <$header>
58665
58666 _ACEOF
58667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58668   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58669   ice_cv_have_fprintf_decl=yes
58670 fi
58671 rm -f conftest*
58672
58673 if test "$ice_cv_have_fprintf_decl" = yes; then
58674         break
58675 fi
58676 done
58677
58678 fi
58679
58680 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
58681 $as_echo "$ice_cv_have_fprintf_decl" >&6; }
58682 if test "$ice_cv_have_fprintf_decl" = yes; then
58683
58684 cat >>confdefs.h <<_ACEOF
58685 #define HAVE_FPRINTF_DECL 1
58686 _ACEOF
58687
58688 fi
58689 fi
58690
58691
58692 ice_have_fputc=no
58693
58694 for ac_func in fputc
58695 do
58696 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58697 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58698 $as_echo_n "checking for $ac_func... " >&6; }
58699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58700   $as_echo_n "(cached) " >&6
58701 else
58702   cat >conftest.$ac_ext <<_ACEOF
58703 /* confdefs.h.  */
58704 _ACEOF
58705 cat confdefs.h >>conftest.$ac_ext
58706 cat >>conftest.$ac_ext <<_ACEOF
58707 /* end confdefs.h.  */
58708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58710 #define $ac_func innocuous_$ac_func
58711
58712 /* System header to define __stub macros and hopefully few prototypes,
58713     which can conflict with char $ac_func (); below.
58714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58715     <limits.h> exists even on freestanding compilers.  */
58716
58717 #ifdef __STDC__
58718 # include <limits.h>
58719 #else
58720 # include <assert.h>
58721 #endif
58722
58723 #undef $ac_func
58724
58725 /* Override any GCC internal prototype to avoid an error.
58726    Use char because int might match the return type of a GCC
58727    builtin and then its argument prototype would still apply.  */
58728 #ifdef __cplusplus
58729 extern "C"
58730 #endif
58731 char $ac_func ();
58732 /* The GNU C library defines this for functions which it implements
58733     to always fail with ENOSYS.  Some functions are actually named
58734     something starting with __ and the normal name is an alias.  */
58735 #if defined __stub_$ac_func || defined __stub___$ac_func
58736 choke me
58737 #endif
58738
58739 int
58740 main ()
58741 {
58742 return $ac_func ();
58743   ;
58744   return 0;
58745 }
58746 _ACEOF
58747 rm -f conftest.$ac_objext conftest$ac_exeext
58748 if { (ac_try="$ac_link"
58749 case "(($ac_try" in
58750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58751   *) ac_try_echo=$ac_try;;
58752 esac
58753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58754 $as_echo "$ac_try_echo") >&5
58755   (eval "$ac_link") 2>conftest.er1
58756   ac_status=$?
58757   grep -v '^ *+' conftest.er1 >conftest.err
58758   rm -f conftest.er1
58759   cat conftest.err >&5
58760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58761   (exit $ac_status); } && {
58762          test -z "$ac_c_werror_flag" ||
58763          test ! -s conftest.err
58764        } && test -s conftest$ac_exeext && {
58765          test "$cross_compiling" = yes ||
58766          $as_test_x conftest$ac_exeext
58767        }; then
58768   eval "$as_ac_var=yes"
58769 else
58770   $as_echo "$as_me: failed program was:" >&5
58771 sed 's/^/| /' conftest.$ac_ext >&5
58772
58773         eval "$as_ac_var=no"
58774 fi
58775
58776 rm -rf conftest.dSYM
58777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58778       conftest$ac_exeext conftest.$ac_ext
58779 fi
58780 ac_res=`eval 'as_val=${'$as_ac_var'}
58781                  $as_echo "$as_val"'`
58782                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58783 $as_echo "$ac_res" >&6; }
58784 as_val=`eval 'as_val=${'$as_ac_var'}
58785                  $as_echo "$as_val"'`
58786    if test "x$as_val" = x""yes; then
58787   cat >>confdefs.h <<_ACEOF
58788 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58789 _ACEOF
58790  ice_have_fputc=yes
58791 fi
58792 done
58793
58794 if test "${ice_have_fputc}" = yes; then
58795 { $as_echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
58796 $as_echo_n "checking for fputc declaration in stdio.h... " >&6; }
58797 if test "${ice_cv_have_fputc_decl+set}" = set; then
58798   $as_echo_n "(cached) " >&6
58799 else
58800
58801 ice_cv_have_fputc_decl=no
58802 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58803 ice_re_word='(^|[^a-zA-Z0-9_])'
58804 for header in stdio.h; do
58805 # Check for ordinary declaration
58806 cat >conftest.$ac_ext <<_ACEOF
58807 /* confdefs.h.  */
58808 _ACEOF
58809 cat confdefs.h >>conftest.$ac_ext
58810 cat >>conftest.$ac_ext <<_ACEOF
58811 /* end confdefs.h.  */
58812 #include <$header>
58813
58814 _ACEOF
58815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58816   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then
58817   ice_cv_have_fputc_decl=yes
58818 fi
58819 rm -f conftest*
58820
58821 if test "$ice_cv_have_fputc_decl" = yes; then
58822         break
58823 fi
58824 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58825 cat >conftest.$ac_ext <<_ACEOF
58826 /* confdefs.h.  */
58827 _ACEOF
58828 cat confdefs.h >>conftest.$ac_ext
58829 cat >>conftest.$ac_ext <<_ACEOF
58830 /* end confdefs.h.  */
58831 #include <$header>
58832
58833 _ACEOF
58834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58835   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58836   ice_cv_have_fputc_decl=yes
58837 fi
58838 rm -f conftest*
58839
58840 if test "$ice_cv_have_fputc_decl" = yes; then
58841         break
58842 fi
58843 done
58844
58845 fi
58846
58847 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
58848 $as_echo "$ice_cv_have_fputc_decl" >&6; }
58849 if test "$ice_cv_have_fputc_decl" = yes; then
58850
58851 cat >>confdefs.h <<_ACEOF
58852 #define HAVE_FPUTC_DECL 1
58853 _ACEOF
58854
58855 fi
58856 fi
58857
58858
58859 ice_have_fputs=no
58860
58861 for ac_func in fputs
58862 do
58863 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58864 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58865 $as_echo_n "checking for $ac_func... " >&6; }
58866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58867   $as_echo_n "(cached) " >&6
58868 else
58869   cat >conftest.$ac_ext <<_ACEOF
58870 /* confdefs.h.  */
58871 _ACEOF
58872 cat confdefs.h >>conftest.$ac_ext
58873 cat >>conftest.$ac_ext <<_ACEOF
58874 /* end confdefs.h.  */
58875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58877 #define $ac_func innocuous_$ac_func
58878
58879 /* System header to define __stub macros and hopefully few prototypes,
58880     which can conflict with char $ac_func (); below.
58881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58882     <limits.h> exists even on freestanding compilers.  */
58883
58884 #ifdef __STDC__
58885 # include <limits.h>
58886 #else
58887 # include <assert.h>
58888 #endif
58889
58890 #undef $ac_func
58891
58892 /* Override any GCC internal prototype to avoid an error.
58893    Use char because int might match the return type of a GCC
58894    builtin and then its argument prototype would still apply.  */
58895 #ifdef __cplusplus
58896 extern "C"
58897 #endif
58898 char $ac_func ();
58899 /* The GNU C library defines this for functions which it implements
58900     to always fail with ENOSYS.  Some functions are actually named
58901     something starting with __ and the normal name is an alias.  */
58902 #if defined __stub_$ac_func || defined __stub___$ac_func
58903 choke me
58904 #endif
58905
58906 int
58907 main ()
58908 {
58909 return $ac_func ();
58910   ;
58911   return 0;
58912 }
58913 _ACEOF
58914 rm -f conftest.$ac_objext conftest$ac_exeext
58915 if { (ac_try="$ac_link"
58916 case "(($ac_try" in
58917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58918   *) ac_try_echo=$ac_try;;
58919 esac
58920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58921 $as_echo "$ac_try_echo") >&5
58922   (eval "$ac_link") 2>conftest.er1
58923   ac_status=$?
58924   grep -v '^ *+' conftest.er1 >conftest.err
58925   rm -f conftest.er1
58926   cat conftest.err >&5
58927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58928   (exit $ac_status); } && {
58929          test -z "$ac_c_werror_flag" ||
58930          test ! -s conftest.err
58931        } && test -s conftest$ac_exeext && {
58932          test "$cross_compiling" = yes ||
58933          $as_test_x conftest$ac_exeext
58934        }; then
58935   eval "$as_ac_var=yes"
58936 else
58937   $as_echo "$as_me: failed program was:" >&5
58938 sed 's/^/| /' conftest.$ac_ext >&5
58939
58940         eval "$as_ac_var=no"
58941 fi
58942
58943 rm -rf conftest.dSYM
58944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58945       conftest$ac_exeext conftest.$ac_ext
58946 fi
58947 ac_res=`eval 'as_val=${'$as_ac_var'}
58948                  $as_echo "$as_val"'`
58949                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58950 $as_echo "$ac_res" >&6; }
58951 as_val=`eval 'as_val=${'$as_ac_var'}
58952                  $as_echo "$as_val"'`
58953    if test "x$as_val" = x""yes; then
58954   cat >>confdefs.h <<_ACEOF
58955 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58956 _ACEOF
58957  ice_have_fputs=yes
58958 fi
58959 done
58960
58961 if test "${ice_have_fputs}" = yes; then
58962 { $as_echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
58963 $as_echo_n "checking for fputs declaration in stdio.h... " >&6; }
58964 if test "${ice_cv_have_fputs_decl+set}" = set; then
58965   $as_echo_n "(cached) " >&6
58966 else
58967
58968 ice_cv_have_fputs_decl=no
58969 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58970 ice_re_word='(^|[^a-zA-Z0-9_])'
58971 for header in stdio.h; do
58972 # Check for ordinary declaration
58973 cat >conftest.$ac_ext <<_ACEOF
58974 /* confdefs.h.  */
58975 _ACEOF
58976 cat confdefs.h >>conftest.$ac_ext
58977 cat >>conftest.$ac_ext <<_ACEOF
58978 /* end confdefs.h.  */
58979 #include <$header>
58980
58981 _ACEOF
58982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58983   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then
58984   ice_cv_have_fputs_decl=yes
58985 fi
58986 rm -f conftest*
58987
58988 if test "$ice_cv_have_fputs_decl" = yes; then
58989         break
58990 fi
58991 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58992 cat >conftest.$ac_ext <<_ACEOF
58993 /* confdefs.h.  */
58994 _ACEOF
58995 cat confdefs.h >>conftest.$ac_ext
58996 cat >>conftest.$ac_ext <<_ACEOF
58997 /* end confdefs.h.  */
58998 #include <$header>
58999
59000 _ACEOF
59001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59002   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59003   ice_cv_have_fputs_decl=yes
59004 fi
59005 rm -f conftest*
59006
59007 if test "$ice_cv_have_fputs_decl" = yes; then
59008         break
59009 fi
59010 done
59011
59012 fi
59013
59014 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
59015 $as_echo "$ice_cv_have_fputs_decl" >&6; }
59016 if test "$ice_cv_have_fputs_decl" = yes; then
59017
59018 cat >>confdefs.h <<_ACEOF
59019 #define HAVE_FPUTS_DECL 1
59020 _ACEOF
59021
59022 fi
59023 fi
59024
59025
59026 ice_have_fread=no
59027
59028 for ac_func in fread
59029 do
59030 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59031 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59032 $as_echo_n "checking for $ac_func... " >&6; }
59033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59034   $as_echo_n "(cached) " >&6
59035 else
59036   cat >conftest.$ac_ext <<_ACEOF
59037 /* confdefs.h.  */
59038 _ACEOF
59039 cat confdefs.h >>conftest.$ac_ext
59040 cat >>conftest.$ac_ext <<_ACEOF
59041 /* end confdefs.h.  */
59042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59044 #define $ac_func innocuous_$ac_func
59045
59046 /* System header to define __stub macros and hopefully few prototypes,
59047     which can conflict with char $ac_func (); below.
59048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59049     <limits.h> exists even on freestanding compilers.  */
59050
59051 #ifdef __STDC__
59052 # include <limits.h>
59053 #else
59054 # include <assert.h>
59055 #endif
59056
59057 #undef $ac_func
59058
59059 /* Override any GCC internal prototype to avoid an error.
59060    Use char because int might match the return type of a GCC
59061    builtin and then its argument prototype would still apply.  */
59062 #ifdef __cplusplus
59063 extern "C"
59064 #endif
59065 char $ac_func ();
59066 /* The GNU C library defines this for functions which it implements
59067     to always fail with ENOSYS.  Some functions are actually named
59068     something starting with __ and the normal name is an alias.  */
59069 #if defined __stub_$ac_func || defined __stub___$ac_func
59070 choke me
59071 #endif
59072
59073 int
59074 main ()
59075 {
59076 return $ac_func ();
59077   ;
59078   return 0;
59079 }
59080 _ACEOF
59081 rm -f conftest.$ac_objext conftest$ac_exeext
59082 if { (ac_try="$ac_link"
59083 case "(($ac_try" in
59084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59085   *) ac_try_echo=$ac_try;;
59086 esac
59087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59088 $as_echo "$ac_try_echo") >&5
59089   (eval "$ac_link") 2>conftest.er1
59090   ac_status=$?
59091   grep -v '^ *+' conftest.er1 >conftest.err
59092   rm -f conftest.er1
59093   cat conftest.err >&5
59094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59095   (exit $ac_status); } && {
59096          test -z "$ac_c_werror_flag" ||
59097          test ! -s conftest.err
59098        } && test -s conftest$ac_exeext && {
59099          test "$cross_compiling" = yes ||
59100          $as_test_x conftest$ac_exeext
59101        }; then
59102   eval "$as_ac_var=yes"
59103 else
59104   $as_echo "$as_me: failed program was:" >&5
59105 sed 's/^/| /' conftest.$ac_ext >&5
59106
59107         eval "$as_ac_var=no"
59108 fi
59109
59110 rm -rf conftest.dSYM
59111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59112       conftest$ac_exeext conftest.$ac_ext
59113 fi
59114 ac_res=`eval 'as_val=${'$as_ac_var'}
59115                  $as_echo "$as_val"'`
59116                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59117 $as_echo "$ac_res" >&6; }
59118 as_val=`eval 'as_val=${'$as_ac_var'}
59119                  $as_echo "$as_val"'`
59120    if test "x$as_val" = x""yes; then
59121   cat >>confdefs.h <<_ACEOF
59122 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59123 _ACEOF
59124  ice_have_fread=yes
59125 fi
59126 done
59127
59128 if test "${ice_have_fread}" = yes; then
59129 { $as_echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
59130 $as_echo_n "checking for fread declaration in stdio.h stdlib.h... " >&6; }
59131 if test "${ice_cv_have_fread_decl+set}" = set; then
59132   $as_echo_n "(cached) " >&6
59133 else
59134
59135 ice_cv_have_fread_decl=no
59136 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59137 ice_re_word='(^|[^a-zA-Z0-9_])'
59138 for header in stdio.h stdlib.h; do
59139 # Check for ordinary declaration
59140 cat >conftest.$ac_ext <<_ACEOF
59141 /* confdefs.h.  */
59142 _ACEOF
59143 cat confdefs.h >>conftest.$ac_ext
59144 cat >>conftest.$ac_ext <<_ACEOF
59145 /* end confdefs.h.  */
59146 #include <$header>
59147
59148 _ACEOF
59149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59150   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then
59151   ice_cv_have_fread_decl=yes
59152 fi
59153 rm -f conftest*
59154
59155 if test "$ice_cv_have_fread_decl" = yes; then
59156         break
59157 fi
59158 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59159 cat >conftest.$ac_ext <<_ACEOF
59160 /* confdefs.h.  */
59161 _ACEOF
59162 cat confdefs.h >>conftest.$ac_ext
59163 cat >>conftest.$ac_ext <<_ACEOF
59164 /* end confdefs.h.  */
59165 #include <$header>
59166
59167 _ACEOF
59168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59169   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59170   ice_cv_have_fread_decl=yes
59171 fi
59172 rm -f conftest*
59173
59174 if test "$ice_cv_have_fread_decl" = yes; then
59175         break
59176 fi
59177 done
59178
59179 fi
59180
59181 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
59182 $as_echo "$ice_cv_have_fread_decl" >&6; }
59183 if test "$ice_cv_have_fread_decl" = yes; then
59184
59185 cat >>confdefs.h <<_ACEOF
59186 #define HAVE_FREAD_DECL 1
59187 _ACEOF
59188
59189 fi
59190 fi
59191
59192
59193 ice_have_fseek=no
59194
59195 for ac_func in fseek
59196 do
59197 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59198 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59199 $as_echo_n "checking for $ac_func... " >&6; }
59200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59201   $as_echo_n "(cached) " >&6
59202 else
59203   cat >conftest.$ac_ext <<_ACEOF
59204 /* confdefs.h.  */
59205 _ACEOF
59206 cat confdefs.h >>conftest.$ac_ext
59207 cat >>conftest.$ac_ext <<_ACEOF
59208 /* end confdefs.h.  */
59209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59211 #define $ac_func innocuous_$ac_func
59212
59213 /* System header to define __stub macros and hopefully few prototypes,
59214     which can conflict with char $ac_func (); below.
59215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59216     <limits.h> exists even on freestanding compilers.  */
59217
59218 #ifdef __STDC__
59219 # include <limits.h>
59220 #else
59221 # include <assert.h>
59222 #endif
59223
59224 #undef $ac_func
59225
59226 /* Override any GCC internal prototype to avoid an error.
59227    Use char because int might match the return type of a GCC
59228    builtin and then its argument prototype would still apply.  */
59229 #ifdef __cplusplus
59230 extern "C"
59231 #endif
59232 char $ac_func ();
59233 /* The GNU C library defines this for functions which it implements
59234     to always fail with ENOSYS.  Some functions are actually named
59235     something starting with __ and the normal name is an alias.  */
59236 #if defined __stub_$ac_func || defined __stub___$ac_func
59237 choke me
59238 #endif
59239
59240 int
59241 main ()
59242 {
59243 return $ac_func ();
59244   ;
59245   return 0;
59246 }
59247 _ACEOF
59248 rm -f conftest.$ac_objext conftest$ac_exeext
59249 if { (ac_try="$ac_link"
59250 case "(($ac_try" in
59251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59252   *) ac_try_echo=$ac_try;;
59253 esac
59254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59255 $as_echo "$ac_try_echo") >&5
59256   (eval "$ac_link") 2>conftest.er1
59257   ac_status=$?
59258   grep -v '^ *+' conftest.er1 >conftest.err
59259   rm -f conftest.er1
59260   cat conftest.err >&5
59261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59262   (exit $ac_status); } && {
59263          test -z "$ac_c_werror_flag" ||
59264          test ! -s conftest.err
59265        } && test -s conftest$ac_exeext && {
59266          test "$cross_compiling" = yes ||
59267          $as_test_x conftest$ac_exeext
59268        }; then
59269   eval "$as_ac_var=yes"
59270 else
59271   $as_echo "$as_me: failed program was:" >&5
59272 sed 's/^/| /' conftest.$ac_ext >&5
59273
59274         eval "$as_ac_var=no"
59275 fi
59276
59277 rm -rf conftest.dSYM
59278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59279       conftest$ac_exeext conftest.$ac_ext
59280 fi
59281 ac_res=`eval 'as_val=${'$as_ac_var'}
59282                  $as_echo "$as_val"'`
59283                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59284 $as_echo "$ac_res" >&6; }
59285 as_val=`eval 'as_val=${'$as_ac_var'}
59286                  $as_echo "$as_val"'`
59287    if test "x$as_val" = x""yes; then
59288   cat >>confdefs.h <<_ACEOF
59289 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59290 _ACEOF
59291  ice_have_fseek=yes
59292 fi
59293 done
59294
59295 if test "${ice_have_fseek}" = yes; then
59296 { $as_echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
59297 $as_echo_n "checking for fseek declaration in stdio.h... " >&6; }
59298 if test "${ice_cv_have_fseek_decl+set}" = set; then
59299   $as_echo_n "(cached) " >&6
59300 else
59301
59302 ice_cv_have_fseek_decl=no
59303 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59304 ice_re_word='(^|[^a-zA-Z0-9_])'
59305 for header in stdio.h; do
59306 # Check for ordinary declaration
59307 cat >conftest.$ac_ext <<_ACEOF
59308 /* confdefs.h.  */
59309 _ACEOF
59310 cat confdefs.h >>conftest.$ac_ext
59311 cat >>conftest.$ac_ext <<_ACEOF
59312 /* end confdefs.h.  */
59313 #include <$header>
59314
59315 _ACEOF
59316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59317   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then
59318   ice_cv_have_fseek_decl=yes
59319 fi
59320 rm -f conftest*
59321
59322 if test "$ice_cv_have_fseek_decl" = yes; then
59323         break
59324 fi
59325 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59326 cat >conftest.$ac_ext <<_ACEOF
59327 /* confdefs.h.  */
59328 _ACEOF
59329 cat confdefs.h >>conftest.$ac_ext
59330 cat >>conftest.$ac_ext <<_ACEOF
59331 /* end confdefs.h.  */
59332 #include <$header>
59333
59334 _ACEOF
59335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59336   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59337   ice_cv_have_fseek_decl=yes
59338 fi
59339 rm -f conftest*
59340
59341 if test "$ice_cv_have_fseek_decl" = yes; then
59342         break
59343 fi
59344 done
59345
59346 fi
59347
59348 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
59349 $as_echo "$ice_cv_have_fseek_decl" >&6; }
59350 if test "$ice_cv_have_fseek_decl" = yes; then
59351
59352 cat >>confdefs.h <<_ACEOF
59353 #define HAVE_FSEEK_DECL 1
59354 _ACEOF
59355
59356 fi
59357 fi
59358
59359
59360 ice_have_fwrite=no
59361
59362 for ac_func in fwrite
59363 do
59364 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59365 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59366 $as_echo_n "checking for $ac_func... " >&6; }
59367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59368   $as_echo_n "(cached) " >&6
59369 else
59370   cat >conftest.$ac_ext <<_ACEOF
59371 /* confdefs.h.  */
59372 _ACEOF
59373 cat confdefs.h >>conftest.$ac_ext
59374 cat >>conftest.$ac_ext <<_ACEOF
59375 /* end confdefs.h.  */
59376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59377    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59378 #define $ac_func innocuous_$ac_func
59379
59380 /* System header to define __stub macros and hopefully few prototypes,
59381     which can conflict with char $ac_func (); below.
59382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59383     <limits.h> exists even on freestanding compilers.  */
59384
59385 #ifdef __STDC__
59386 # include <limits.h>
59387 #else
59388 # include <assert.h>
59389 #endif
59390
59391 #undef $ac_func
59392
59393 /* Override any GCC internal prototype to avoid an error.
59394    Use char because int might match the return type of a GCC
59395    builtin and then its argument prototype would still apply.  */
59396 #ifdef __cplusplus
59397 extern "C"
59398 #endif
59399 char $ac_func ();
59400 /* The GNU C library defines this for functions which it implements
59401     to always fail with ENOSYS.  Some functions are actually named
59402     something starting with __ and the normal name is an alias.  */
59403 #if defined __stub_$ac_func || defined __stub___$ac_func
59404 choke me
59405 #endif
59406
59407 int
59408 main ()
59409 {
59410 return $ac_func ();
59411   ;
59412   return 0;
59413 }
59414 _ACEOF
59415 rm -f conftest.$ac_objext conftest$ac_exeext
59416 if { (ac_try="$ac_link"
59417 case "(($ac_try" in
59418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59419   *) ac_try_echo=$ac_try;;
59420 esac
59421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59422 $as_echo "$ac_try_echo") >&5
59423   (eval "$ac_link") 2>conftest.er1
59424   ac_status=$?
59425   grep -v '^ *+' conftest.er1 >conftest.err
59426   rm -f conftest.er1
59427   cat conftest.err >&5
59428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59429   (exit $ac_status); } && {
59430          test -z "$ac_c_werror_flag" ||
59431          test ! -s conftest.err
59432        } && test -s conftest$ac_exeext && {
59433          test "$cross_compiling" = yes ||
59434          $as_test_x conftest$ac_exeext
59435        }; then
59436   eval "$as_ac_var=yes"
59437 else
59438   $as_echo "$as_me: failed program was:" >&5
59439 sed 's/^/| /' conftest.$ac_ext >&5
59440
59441         eval "$as_ac_var=no"
59442 fi
59443
59444 rm -rf conftest.dSYM
59445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59446       conftest$ac_exeext conftest.$ac_ext
59447 fi
59448 ac_res=`eval 'as_val=${'$as_ac_var'}
59449                  $as_echo "$as_val"'`
59450                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59451 $as_echo "$ac_res" >&6; }
59452 as_val=`eval 'as_val=${'$as_ac_var'}
59453                  $as_echo "$as_val"'`
59454    if test "x$as_val" = x""yes; then
59455   cat >>confdefs.h <<_ACEOF
59456 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59457 _ACEOF
59458  ice_have_fwrite=yes
59459 fi
59460 done
59461
59462 if test "${ice_have_fwrite}" = yes; then
59463 { $as_echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
59464 $as_echo_n "checking for fwrite declaration in stdio.h stdlib.h... " >&6; }
59465 if test "${ice_cv_have_fwrite_decl+set}" = set; then
59466   $as_echo_n "(cached) " >&6
59467 else
59468
59469 ice_cv_have_fwrite_decl=no
59470 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59471 ice_re_word='(^|[^a-zA-Z0-9_])'
59472 for header in stdio.h stdlib.h; do
59473 # Check for ordinary declaration
59474 cat >conftest.$ac_ext <<_ACEOF
59475 /* confdefs.h.  */
59476 _ACEOF
59477 cat confdefs.h >>conftest.$ac_ext
59478 cat >>conftest.$ac_ext <<_ACEOF
59479 /* end confdefs.h.  */
59480 #include <$header>
59481
59482 _ACEOF
59483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59484   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then
59485   ice_cv_have_fwrite_decl=yes
59486 fi
59487 rm -f conftest*
59488
59489 if test "$ice_cv_have_fwrite_decl" = yes; then
59490         break
59491 fi
59492 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59493 cat >conftest.$ac_ext <<_ACEOF
59494 /* confdefs.h.  */
59495 _ACEOF
59496 cat confdefs.h >>conftest.$ac_ext
59497 cat >>conftest.$ac_ext <<_ACEOF
59498 /* end confdefs.h.  */
59499 #include <$header>
59500
59501 _ACEOF
59502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59503   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59504   ice_cv_have_fwrite_decl=yes
59505 fi
59506 rm -f conftest*
59507
59508 if test "$ice_cv_have_fwrite_decl" = yes; then
59509         break
59510 fi
59511 done
59512
59513 fi
59514
59515 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
59516 $as_echo "$ice_cv_have_fwrite_decl" >&6; }
59517 if test "$ice_cv_have_fwrite_decl" = yes; then
59518
59519 cat >>confdefs.h <<_ACEOF
59520 #define HAVE_FWRITE_DECL 1
59521 _ACEOF
59522
59523 fi
59524 fi
59525
59526
59527 for ac_func in getgrgid_r
59528 do
59529 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59530 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59531 $as_echo_n "checking for $ac_func... " >&6; }
59532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59533   $as_echo_n "(cached) " >&6
59534 else
59535   cat >conftest.$ac_ext <<_ACEOF
59536 /* confdefs.h.  */
59537 _ACEOF
59538 cat confdefs.h >>conftest.$ac_ext
59539 cat >>conftest.$ac_ext <<_ACEOF
59540 /* end confdefs.h.  */
59541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59543 #define $ac_func innocuous_$ac_func
59544
59545 /* System header to define __stub macros and hopefully few prototypes,
59546     which can conflict with char $ac_func (); below.
59547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59548     <limits.h> exists even on freestanding compilers.  */
59549
59550 #ifdef __STDC__
59551 # include <limits.h>
59552 #else
59553 # include <assert.h>
59554 #endif
59555
59556 #undef $ac_func
59557
59558 /* Override any GCC internal prototype to avoid an error.
59559    Use char because int might match the return type of a GCC
59560    builtin and then its argument prototype would still apply.  */
59561 #ifdef __cplusplus
59562 extern "C"
59563 #endif
59564 char $ac_func ();
59565 /* The GNU C library defines this for functions which it implements
59566     to always fail with ENOSYS.  Some functions are actually named
59567     something starting with __ and the normal name is an alias.  */
59568 #if defined __stub_$ac_func || defined __stub___$ac_func
59569 choke me
59570 #endif
59571
59572 int
59573 main ()
59574 {
59575 return $ac_func ();
59576   ;
59577   return 0;
59578 }
59579 _ACEOF
59580 rm -f conftest.$ac_objext conftest$ac_exeext
59581 if { (ac_try="$ac_link"
59582 case "(($ac_try" in
59583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59584   *) ac_try_echo=$ac_try;;
59585 esac
59586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59587 $as_echo "$ac_try_echo") >&5
59588   (eval "$ac_link") 2>conftest.er1
59589   ac_status=$?
59590   grep -v '^ *+' conftest.er1 >conftest.err
59591   rm -f conftest.er1
59592   cat conftest.err >&5
59593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59594   (exit $ac_status); } && {
59595          test -z "$ac_c_werror_flag" ||
59596          test ! -s conftest.err
59597        } && test -s conftest$ac_exeext && {
59598          test "$cross_compiling" = yes ||
59599          $as_test_x conftest$ac_exeext
59600        }; then
59601   eval "$as_ac_var=yes"
59602 else
59603   $as_echo "$as_me: failed program was:" >&5
59604 sed 's/^/| /' conftest.$ac_ext >&5
59605
59606         eval "$as_ac_var=no"
59607 fi
59608
59609 rm -rf conftest.dSYM
59610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59611       conftest$ac_exeext conftest.$ac_ext
59612 fi
59613 ac_res=`eval 'as_val=${'$as_ac_var'}
59614                  $as_echo "$as_val"'`
59615                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59616 $as_echo "$ac_res" >&6; }
59617 as_val=`eval 'as_val=${'$as_ac_var'}
59618                  $as_echo "$as_val"'`
59619    if test "x$as_val" = x""yes; then
59620   cat >>confdefs.h <<_ACEOF
59621 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59622 _ACEOF
59623
59624 fi
59625 done
59626
59627
59628 for ac_func in getpwuid_r
59629 do
59630 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59631 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59632 $as_echo_n "checking for $ac_func... " >&6; }
59633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59634   $as_echo_n "(cached) " >&6
59635 else
59636   cat >conftest.$ac_ext <<_ACEOF
59637 /* confdefs.h.  */
59638 _ACEOF
59639 cat confdefs.h >>conftest.$ac_ext
59640 cat >>conftest.$ac_ext <<_ACEOF
59641 /* end confdefs.h.  */
59642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59644 #define $ac_func innocuous_$ac_func
59645
59646 /* System header to define __stub macros and hopefully few prototypes,
59647     which can conflict with char $ac_func (); below.
59648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59649     <limits.h> exists even on freestanding compilers.  */
59650
59651 #ifdef __STDC__
59652 # include <limits.h>
59653 #else
59654 # include <assert.h>
59655 #endif
59656
59657 #undef $ac_func
59658
59659 /* Override any GCC internal prototype to avoid an error.
59660    Use char because int might match the return type of a GCC
59661    builtin and then its argument prototype would still apply.  */
59662 #ifdef __cplusplus
59663 extern "C"
59664 #endif
59665 char $ac_func ();
59666 /* The GNU C library defines this for functions which it implements
59667     to always fail with ENOSYS.  Some functions are actually named
59668     something starting with __ and the normal name is an alias.  */
59669 #if defined __stub_$ac_func || defined __stub___$ac_func
59670 choke me
59671 #endif
59672
59673 int
59674 main ()
59675 {
59676 return $ac_func ();
59677   ;
59678   return 0;
59679 }
59680 _ACEOF
59681 rm -f conftest.$ac_objext conftest$ac_exeext
59682 if { (ac_try="$ac_link"
59683 case "(($ac_try" in
59684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59685   *) ac_try_echo=$ac_try;;
59686 esac
59687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59688 $as_echo "$ac_try_echo") >&5
59689   (eval "$ac_link") 2>conftest.er1
59690   ac_status=$?
59691   grep -v '^ *+' conftest.er1 >conftest.err
59692   rm -f conftest.er1
59693   cat conftest.err >&5
59694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59695   (exit $ac_status); } && {
59696          test -z "$ac_c_werror_flag" ||
59697          test ! -s conftest.err
59698        } && test -s conftest$ac_exeext && {
59699          test "$cross_compiling" = yes ||
59700          $as_test_x conftest$ac_exeext
59701        }; then
59702   eval "$as_ac_var=yes"
59703 else
59704   $as_echo "$as_me: failed program was:" >&5
59705 sed 's/^/| /' conftest.$ac_ext >&5
59706
59707         eval "$as_ac_var=no"
59708 fi
59709
59710 rm -rf conftest.dSYM
59711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59712       conftest$ac_exeext conftest.$ac_ext
59713 fi
59714 ac_res=`eval 'as_val=${'$as_ac_var'}
59715                  $as_echo "$as_val"'`
59716                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59717 $as_echo "$ac_res" >&6; }
59718 as_val=`eval 'as_val=${'$as_ac_var'}
59719                  $as_echo "$as_val"'`
59720    if test "x$as_val" = x""yes; then
59721   cat >>confdefs.h <<_ACEOF
59722 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59723 _ACEOF
59724
59725 fi
59726 done
59727
59728
59729 ice_have_gethostname=no
59730
59731 for ac_func in gethostname
59732 do
59733 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59734 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59735 $as_echo_n "checking for $ac_func... " >&6; }
59736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59737   $as_echo_n "(cached) " >&6
59738 else
59739   cat >conftest.$ac_ext <<_ACEOF
59740 /* confdefs.h.  */
59741 _ACEOF
59742 cat confdefs.h >>conftest.$ac_ext
59743 cat >>conftest.$ac_ext <<_ACEOF
59744 /* end confdefs.h.  */
59745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59747 #define $ac_func innocuous_$ac_func
59748
59749 /* System header to define __stub macros and hopefully few prototypes,
59750     which can conflict with char $ac_func (); below.
59751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59752     <limits.h> exists even on freestanding compilers.  */
59753
59754 #ifdef __STDC__
59755 # include <limits.h>
59756 #else
59757 # include <assert.h>
59758 #endif
59759
59760 #undef $ac_func
59761
59762 /* Override any GCC internal prototype to avoid an error.
59763    Use char because int might match the return type of a GCC
59764    builtin and then its argument prototype would still apply.  */
59765 #ifdef __cplusplus
59766 extern "C"
59767 #endif
59768 char $ac_func ();
59769 /* The GNU C library defines this for functions which it implements
59770     to always fail with ENOSYS.  Some functions are actually named
59771     something starting with __ and the normal name is an alias.  */
59772 #if defined __stub_$ac_func || defined __stub___$ac_func
59773 choke me
59774 #endif
59775
59776 int
59777 main ()
59778 {
59779 return $ac_func ();
59780   ;
59781   return 0;
59782 }
59783 _ACEOF
59784 rm -f conftest.$ac_objext conftest$ac_exeext
59785 if { (ac_try="$ac_link"
59786 case "(($ac_try" in
59787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59788   *) ac_try_echo=$ac_try;;
59789 esac
59790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59791 $as_echo "$ac_try_echo") >&5
59792   (eval "$ac_link") 2>conftest.er1
59793   ac_status=$?
59794   grep -v '^ *+' conftest.er1 >conftest.err
59795   rm -f conftest.er1
59796   cat conftest.err >&5
59797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59798   (exit $ac_status); } && {
59799          test -z "$ac_c_werror_flag" ||
59800          test ! -s conftest.err
59801        } && test -s conftest$ac_exeext && {
59802          test "$cross_compiling" = yes ||
59803          $as_test_x conftest$ac_exeext
59804        }; then
59805   eval "$as_ac_var=yes"
59806 else
59807   $as_echo "$as_me: failed program was:" >&5
59808 sed 's/^/| /' conftest.$ac_ext >&5
59809
59810         eval "$as_ac_var=no"
59811 fi
59812
59813 rm -rf conftest.dSYM
59814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59815       conftest$ac_exeext conftest.$ac_ext
59816 fi
59817 ac_res=`eval 'as_val=${'$as_ac_var'}
59818                  $as_echo "$as_val"'`
59819                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59820 $as_echo "$ac_res" >&6; }
59821 as_val=`eval 'as_val=${'$as_ac_var'}
59822                  $as_echo "$as_val"'`
59823    if test "x$as_val" = x""yes; then
59824   cat >>confdefs.h <<_ACEOF
59825 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59826 _ACEOF
59827  ice_have_gethostname=yes
59828 fi
59829 done
59830
59831 if test "${ice_have_gethostname}" = yes; then
59832 { $as_echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
59833 $as_echo_n "checking for gethostname declaration in unistd.h... " >&6; }
59834 if test "${ice_cv_have_gethostname_decl+set}" = set; then
59835   $as_echo_n "(cached) " >&6
59836 else
59837
59838 ice_cv_have_gethostname_decl=no
59839 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59840 ice_re_word='(^|[^a-zA-Z0-9_])'
59841 for header in unistd.h; do
59842 # Check for ordinary declaration
59843 cat >conftest.$ac_ext <<_ACEOF
59844 /* confdefs.h.  */
59845 _ACEOF
59846 cat confdefs.h >>conftest.$ac_ext
59847 cat >>conftest.$ac_ext <<_ACEOF
59848 /* end confdefs.h.  */
59849 #include <$header>
59850
59851 _ACEOF
59852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59853   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then
59854   ice_cv_have_gethostname_decl=yes
59855 fi
59856 rm -f conftest*
59857
59858 if test "$ice_cv_have_gethostname_decl" = yes; then
59859         break
59860 fi
59861 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59862 cat >conftest.$ac_ext <<_ACEOF
59863 /* confdefs.h.  */
59864 _ACEOF
59865 cat confdefs.h >>conftest.$ac_ext
59866 cat >>conftest.$ac_ext <<_ACEOF
59867 /* end confdefs.h.  */
59868 #include <$header>
59869
59870 _ACEOF
59871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59872   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59873   ice_cv_have_gethostname_decl=yes
59874 fi
59875 rm -f conftest*
59876
59877 if test "$ice_cv_have_gethostname_decl" = yes; then
59878         break
59879 fi
59880 done
59881
59882 fi
59883
59884 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
59885 $as_echo "$ice_cv_have_gethostname_decl" >&6; }
59886 if test "$ice_cv_have_gethostname_decl" = yes; then
59887
59888 cat >>confdefs.h <<_ACEOF
59889 #define HAVE_GETHOSTNAME_DECL 1
59890 _ACEOF
59891
59892 fi
59893 fi
59894
59895
59896 ice_have_getopt=no
59897
59898 for ac_func in getopt
59899 do
59900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59901 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59902 $as_echo_n "checking for $ac_func... " >&6; }
59903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59904   $as_echo_n "(cached) " >&6
59905 else
59906   cat >conftest.$ac_ext <<_ACEOF
59907 /* confdefs.h.  */
59908 _ACEOF
59909 cat confdefs.h >>conftest.$ac_ext
59910 cat >>conftest.$ac_ext <<_ACEOF
59911 /* end confdefs.h.  */
59912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59914 #define $ac_func innocuous_$ac_func
59915
59916 /* System header to define __stub macros and hopefully few prototypes,
59917     which can conflict with char $ac_func (); below.
59918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59919     <limits.h> exists even on freestanding compilers.  */
59920
59921 #ifdef __STDC__
59922 # include <limits.h>
59923 #else
59924 # include <assert.h>
59925 #endif
59926
59927 #undef $ac_func
59928
59929 /* Override any GCC internal prototype to avoid an error.
59930    Use char because int might match the return type of a GCC
59931    builtin and then its argument prototype would still apply.  */
59932 #ifdef __cplusplus
59933 extern "C"
59934 #endif
59935 char $ac_func ();
59936 /* The GNU C library defines this for functions which it implements
59937     to always fail with ENOSYS.  Some functions are actually named
59938     something starting with __ and the normal name is an alias.  */
59939 #if defined __stub_$ac_func || defined __stub___$ac_func
59940 choke me
59941 #endif
59942
59943 int
59944 main ()
59945 {
59946 return $ac_func ();
59947   ;
59948   return 0;
59949 }
59950 _ACEOF
59951 rm -f conftest.$ac_objext conftest$ac_exeext
59952 if { (ac_try="$ac_link"
59953 case "(($ac_try" in
59954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59955   *) ac_try_echo=$ac_try;;
59956 esac
59957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59958 $as_echo "$ac_try_echo") >&5
59959   (eval "$ac_link") 2>conftest.er1
59960   ac_status=$?
59961   grep -v '^ *+' conftest.er1 >conftest.err
59962   rm -f conftest.er1
59963   cat conftest.err >&5
59964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59965   (exit $ac_status); } && {
59966          test -z "$ac_c_werror_flag" ||
59967          test ! -s conftest.err
59968        } && test -s conftest$ac_exeext && {
59969          test "$cross_compiling" = yes ||
59970          $as_test_x conftest$ac_exeext
59971        }; then
59972   eval "$as_ac_var=yes"
59973 else
59974   $as_echo "$as_me: failed program was:" >&5
59975 sed 's/^/| /' conftest.$ac_ext >&5
59976
59977         eval "$as_ac_var=no"
59978 fi
59979
59980 rm -rf conftest.dSYM
59981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59982       conftest$ac_exeext conftest.$ac_ext
59983 fi
59984 ac_res=`eval 'as_val=${'$as_ac_var'}
59985                  $as_echo "$as_val"'`
59986                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59987 $as_echo "$ac_res" >&6; }
59988 as_val=`eval 'as_val=${'$as_ac_var'}
59989                  $as_echo "$as_val"'`
59990    if test "x$as_val" = x""yes; then
59991   cat >>confdefs.h <<_ACEOF
59992 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59993 _ACEOF
59994  ice_have_getopt=yes
59995 fi
59996 done
59997
59998 if test "${ice_have_getopt}" = yes; then
59999 { $as_echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
60000 $as_echo_n "checking for getopt declaration in stdlib.h unistd.h libc.h... " >&6; }
60001 if test "${ice_cv_have_getopt_decl+set}" = set; then
60002   $as_echo_n "(cached) " >&6
60003 else
60004
60005 ice_cv_have_getopt_decl=no
60006 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60007 ice_re_word='(^|[^a-zA-Z0-9_])'
60008 for header in stdlib.h unistd.h libc.h; do
60009 # Check for ordinary declaration
60010 cat >conftest.$ac_ext <<_ACEOF
60011 /* confdefs.h.  */
60012 _ACEOF
60013 cat confdefs.h >>conftest.$ac_ext
60014 cat >>conftest.$ac_ext <<_ACEOF
60015 /* end confdefs.h.  */
60016 #include <$header>
60017
60018 _ACEOF
60019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60020   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then
60021   ice_cv_have_getopt_decl=yes
60022 fi
60023 rm -f conftest*
60024
60025 if test "$ice_cv_have_getopt_decl" = yes; then
60026         break
60027 fi
60028 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60029 cat >conftest.$ac_ext <<_ACEOF
60030 /* confdefs.h.  */
60031 _ACEOF
60032 cat confdefs.h >>conftest.$ac_ext
60033 cat >>conftest.$ac_ext <<_ACEOF
60034 /* end confdefs.h.  */
60035 #include <$header>
60036
60037 _ACEOF
60038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60039   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60040   ice_cv_have_getopt_decl=yes
60041 fi
60042 rm -f conftest*
60043
60044 if test "$ice_cv_have_getopt_decl" = yes; then
60045         break
60046 fi
60047 done
60048
60049 fi
60050
60051 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
60052 $as_echo "$ice_cv_have_getopt_decl" >&6; }
60053 if test "$ice_cv_have_getopt_decl" = yes; then
60054
60055 cat >>confdefs.h <<_ACEOF
60056 #define HAVE_GETOPT_DECL 1
60057 _ACEOF
60058
60059 fi
60060 fi
60061
60062
60063 ice_have_getpeername=no
60064
60065 for ac_func in getpeername
60066 do
60067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60068 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60069 $as_echo_n "checking for $ac_func... " >&6; }
60070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60071   $as_echo_n "(cached) " >&6
60072 else
60073   cat >conftest.$ac_ext <<_ACEOF
60074 /* confdefs.h.  */
60075 _ACEOF
60076 cat confdefs.h >>conftest.$ac_ext
60077 cat >>conftest.$ac_ext <<_ACEOF
60078 /* end confdefs.h.  */
60079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60081 #define $ac_func innocuous_$ac_func
60082
60083 /* System header to define __stub macros and hopefully few prototypes,
60084     which can conflict with char $ac_func (); below.
60085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60086     <limits.h> exists even on freestanding compilers.  */
60087
60088 #ifdef __STDC__
60089 # include <limits.h>
60090 #else
60091 # include <assert.h>
60092 #endif
60093
60094 #undef $ac_func
60095
60096 /* Override any GCC internal prototype to avoid an error.
60097    Use char because int might match the return type of a GCC
60098    builtin and then its argument prototype would still apply.  */
60099 #ifdef __cplusplus
60100 extern "C"
60101 #endif
60102 char $ac_func ();
60103 /* The GNU C library defines this for functions which it implements
60104     to always fail with ENOSYS.  Some functions are actually named
60105     something starting with __ and the normal name is an alias.  */
60106 #if defined __stub_$ac_func || defined __stub___$ac_func
60107 choke me
60108 #endif
60109
60110 int
60111 main ()
60112 {
60113 return $ac_func ();
60114   ;
60115   return 0;
60116 }
60117 _ACEOF
60118 rm -f conftest.$ac_objext conftest$ac_exeext
60119 if { (ac_try="$ac_link"
60120 case "(($ac_try" in
60121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60122   *) ac_try_echo=$ac_try;;
60123 esac
60124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60125 $as_echo "$ac_try_echo") >&5
60126   (eval "$ac_link") 2>conftest.er1
60127   ac_status=$?
60128   grep -v '^ *+' conftest.er1 >conftest.err
60129   rm -f conftest.er1
60130   cat conftest.err >&5
60131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60132   (exit $ac_status); } && {
60133          test -z "$ac_c_werror_flag" ||
60134          test ! -s conftest.err
60135        } && test -s conftest$ac_exeext && {
60136          test "$cross_compiling" = yes ||
60137          $as_test_x conftest$ac_exeext
60138        }; then
60139   eval "$as_ac_var=yes"
60140 else
60141   $as_echo "$as_me: failed program was:" >&5
60142 sed 's/^/| /' conftest.$ac_ext >&5
60143
60144         eval "$as_ac_var=no"
60145 fi
60146
60147 rm -rf conftest.dSYM
60148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60149       conftest$ac_exeext conftest.$ac_ext
60150 fi
60151 ac_res=`eval 'as_val=${'$as_ac_var'}
60152                  $as_echo "$as_val"'`
60153                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60154 $as_echo "$ac_res" >&6; }
60155 as_val=`eval 'as_val=${'$as_ac_var'}
60156                  $as_echo "$as_val"'`
60157    if test "x$as_val" = x""yes; then
60158   cat >>confdefs.h <<_ACEOF
60159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60160 _ACEOF
60161  ice_have_getpeername=yes
60162 fi
60163 done
60164
60165 if test "${ice_have_getpeername}" = yes; then
60166 { $as_echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
60167 $as_echo_n "checking for getpeername declaration in sys/types.h sys/socket.h... " >&6; }
60168 if test "${ice_cv_have_getpeername_decl+set}" = set; then
60169   $as_echo_n "(cached) " >&6
60170 else
60171
60172 ice_cv_have_getpeername_decl=no
60173 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60174 ice_re_word='(^|[^a-zA-Z0-9_])'
60175 for header in sys/types.h sys/socket.h; do
60176 # Check for ordinary declaration
60177 cat >conftest.$ac_ext <<_ACEOF
60178 /* confdefs.h.  */
60179 _ACEOF
60180 cat confdefs.h >>conftest.$ac_ext
60181 cat >>conftest.$ac_ext <<_ACEOF
60182 /* end confdefs.h.  */
60183 #include <$header>
60184
60185 _ACEOF
60186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60187   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then
60188   ice_cv_have_getpeername_decl=yes
60189 fi
60190 rm -f conftest*
60191
60192 if test "$ice_cv_have_getpeername_decl" = yes; then
60193         break
60194 fi
60195 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60196 cat >conftest.$ac_ext <<_ACEOF
60197 /* confdefs.h.  */
60198 _ACEOF
60199 cat confdefs.h >>conftest.$ac_ext
60200 cat >>conftest.$ac_ext <<_ACEOF
60201 /* end confdefs.h.  */
60202 #include <$header>
60203
60204 _ACEOF
60205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60206   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60207   ice_cv_have_getpeername_decl=yes
60208 fi
60209 rm -f conftest*
60210
60211 if test "$ice_cv_have_getpeername_decl" = yes; then
60212         break
60213 fi
60214 done
60215
60216 fi
60217
60218 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
60219 $as_echo "$ice_cv_have_getpeername_decl" >&6; }
60220 if test "$ice_cv_have_getpeername_decl" = yes; then
60221
60222 cat >>confdefs.h <<_ACEOF
60223 #define HAVE_GETPEERNAME_DECL 1
60224 _ACEOF
60225
60226 fi
60227 fi
60228
60229 { $as_echo "$as_me:$LINENO: checking for getpgrp" >&5
60230 $as_echo_n "checking for getpgrp... " >&6; }
60231 if test "${ac_cv_func_getpgrp+set}" = set; then
60232   $as_echo_n "(cached) " >&6
60233 else
60234   cat >conftest.$ac_ext <<_ACEOF
60235 /* confdefs.h.  */
60236 _ACEOF
60237 cat confdefs.h >>conftest.$ac_ext
60238 cat >>conftest.$ac_ext <<_ACEOF
60239 /* end confdefs.h.  */
60240 /* Define getpgrp to an innocuous variant, in case <limits.h> declares getpgrp.
60241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60242 #define getpgrp innocuous_getpgrp
60243
60244 /* System header to define __stub macros and hopefully few prototypes,
60245     which can conflict with char getpgrp (); below.
60246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60247     <limits.h> exists even on freestanding compilers.  */
60248
60249 #ifdef __STDC__
60250 # include <limits.h>
60251 #else
60252 # include <assert.h>
60253 #endif
60254
60255 #undef getpgrp
60256
60257 /* Override any GCC internal prototype to avoid an error.
60258    Use char because int might match the return type of a GCC
60259    builtin and then its argument prototype would still apply.  */
60260 #ifdef __cplusplus
60261 extern "C"
60262 #endif
60263 char getpgrp ();
60264 /* The GNU C library defines this for functions which it implements
60265     to always fail with ENOSYS.  Some functions are actually named
60266     something starting with __ and the normal name is an alias.  */
60267 #if defined __stub_getpgrp || defined __stub___getpgrp
60268 choke me
60269 #endif
60270
60271 int
60272 main ()
60273 {
60274 return getpgrp ();
60275   ;
60276   return 0;
60277 }
60278 _ACEOF
60279 rm -f conftest.$ac_objext conftest$ac_exeext
60280 if { (ac_try="$ac_link"
60281 case "(($ac_try" in
60282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60283   *) ac_try_echo=$ac_try;;
60284 esac
60285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60286 $as_echo "$ac_try_echo") >&5
60287   (eval "$ac_link") 2>conftest.er1
60288   ac_status=$?
60289   grep -v '^ *+' conftest.er1 >conftest.err
60290   rm -f conftest.er1
60291   cat conftest.err >&5
60292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60293   (exit $ac_status); } && {
60294          test -z "$ac_c_werror_flag" ||
60295          test ! -s conftest.err
60296        } && test -s conftest$ac_exeext && {
60297          test "$cross_compiling" = yes ||
60298          $as_test_x conftest$ac_exeext
60299        }; then
60300   ac_cv_func_getpgrp=yes
60301 else
60302   $as_echo "$as_me: failed program was:" >&5
60303 sed 's/^/| /' conftest.$ac_ext >&5
60304
60305         ac_cv_func_getpgrp=no
60306 fi
60307
60308 rm -rf conftest.dSYM
60309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60310       conftest$ac_exeext conftest.$ac_ext
60311 fi
60312 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp" >&5
60313 $as_echo "$ac_cv_func_getpgrp" >&6; }
60314
60315 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
60316 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
60317 if test "${ac_cv_func_getpgrp_void+set}" = set; then
60318   $as_echo_n "(cached) " >&6
60319 else
60320   # Use it with a single arg.
60321 cat >conftest.$ac_ext <<_ACEOF
60322 /* confdefs.h.  */
60323 _ACEOF
60324 cat confdefs.h >>conftest.$ac_ext
60325 cat >>conftest.$ac_ext <<_ACEOF
60326 /* end confdefs.h.  */
60327 $ac_includes_default
60328 int
60329 main ()
60330 {
60331 getpgrp (0);
60332   ;
60333   return 0;
60334 }
60335 _ACEOF
60336 rm -f conftest.$ac_objext
60337 if { (ac_try="$ac_compile"
60338 case "(($ac_try" in
60339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60340   *) ac_try_echo=$ac_try;;
60341 esac
60342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60343 $as_echo "$ac_try_echo") >&5
60344   (eval "$ac_compile") 2>conftest.er1
60345   ac_status=$?
60346   grep -v '^ *+' conftest.er1 >conftest.err
60347   rm -f conftest.er1
60348   cat conftest.err >&5
60349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60350   (exit $ac_status); } && {
60351          test -z "$ac_c_werror_flag" ||
60352          test ! -s conftest.err
60353        } && test -s conftest.$ac_objext; then
60354   ac_cv_func_getpgrp_void=no
60355 else
60356   $as_echo "$as_me: failed program was:" >&5
60357 sed 's/^/| /' conftest.$ac_ext >&5
60358
60359         ac_cv_func_getpgrp_void=yes
60360 fi
60361
60362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60363
60364 fi
60365 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
60366 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
60367 if test $ac_cv_func_getpgrp_void = yes; then
60368
60369 cat >>confdefs.h <<\_ACEOF
60370 #define GETPGRP_VOID 1
60371 _ACEOF
60372
60373 fi
60374
60375
60376 ice_have_getsockname=no
60377
60378 for ac_func in getsockname
60379 do
60380 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60381 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60382 $as_echo_n "checking for $ac_func... " >&6; }
60383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60384   $as_echo_n "(cached) " >&6
60385 else
60386   cat >conftest.$ac_ext <<_ACEOF
60387 /* confdefs.h.  */
60388 _ACEOF
60389 cat confdefs.h >>conftest.$ac_ext
60390 cat >>conftest.$ac_ext <<_ACEOF
60391 /* end confdefs.h.  */
60392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60394 #define $ac_func innocuous_$ac_func
60395
60396 /* System header to define __stub macros and hopefully few prototypes,
60397     which can conflict with char $ac_func (); below.
60398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60399     <limits.h> exists even on freestanding compilers.  */
60400
60401 #ifdef __STDC__
60402 # include <limits.h>
60403 #else
60404 # include <assert.h>
60405 #endif
60406
60407 #undef $ac_func
60408
60409 /* Override any GCC internal prototype to avoid an error.
60410    Use char because int might match the return type of a GCC
60411    builtin and then its argument prototype would still apply.  */
60412 #ifdef __cplusplus
60413 extern "C"
60414 #endif
60415 char $ac_func ();
60416 /* The GNU C library defines this for functions which it implements
60417     to always fail with ENOSYS.  Some functions are actually named
60418     something starting with __ and the normal name is an alias.  */
60419 #if defined __stub_$ac_func || defined __stub___$ac_func
60420 choke me
60421 #endif
60422
60423 int
60424 main ()
60425 {
60426 return $ac_func ();
60427   ;
60428   return 0;
60429 }
60430 _ACEOF
60431 rm -f conftest.$ac_objext conftest$ac_exeext
60432 if { (ac_try="$ac_link"
60433 case "(($ac_try" in
60434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60435   *) ac_try_echo=$ac_try;;
60436 esac
60437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60438 $as_echo "$ac_try_echo") >&5
60439   (eval "$ac_link") 2>conftest.er1
60440   ac_status=$?
60441   grep -v '^ *+' conftest.er1 >conftest.err
60442   rm -f conftest.er1
60443   cat conftest.err >&5
60444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60445   (exit $ac_status); } && {
60446          test -z "$ac_c_werror_flag" ||
60447          test ! -s conftest.err
60448        } && test -s conftest$ac_exeext && {
60449          test "$cross_compiling" = yes ||
60450          $as_test_x conftest$ac_exeext
60451        }; then
60452   eval "$as_ac_var=yes"
60453 else
60454   $as_echo "$as_me: failed program was:" >&5
60455 sed 's/^/| /' conftest.$ac_ext >&5
60456
60457         eval "$as_ac_var=no"
60458 fi
60459
60460 rm -rf conftest.dSYM
60461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60462       conftest$ac_exeext conftest.$ac_ext
60463 fi
60464 ac_res=`eval 'as_val=${'$as_ac_var'}
60465                  $as_echo "$as_val"'`
60466                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60467 $as_echo "$ac_res" >&6; }
60468 as_val=`eval 'as_val=${'$as_ac_var'}
60469                  $as_echo "$as_val"'`
60470    if test "x$as_val" = x""yes; then
60471   cat >>confdefs.h <<_ACEOF
60472 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60473 _ACEOF
60474  ice_have_getsockname=yes
60475 fi
60476 done
60477
60478 if test "${ice_have_getsockname}" = yes; then
60479 { $as_echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
60480 $as_echo_n "checking for getsockname declaration in sys/types.h sys/socket.h... " >&6; }
60481 if test "${ice_cv_have_getsockname_decl+set}" = set; then
60482   $as_echo_n "(cached) " >&6
60483 else
60484
60485 ice_cv_have_getsockname_decl=no
60486 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60487 ice_re_word='(^|[^a-zA-Z0-9_])'
60488 for header in sys/types.h sys/socket.h; do
60489 # Check for ordinary declaration
60490 cat >conftest.$ac_ext <<_ACEOF
60491 /* confdefs.h.  */
60492 _ACEOF
60493 cat confdefs.h >>conftest.$ac_ext
60494 cat >>conftest.$ac_ext <<_ACEOF
60495 /* end confdefs.h.  */
60496 #include <$header>
60497
60498 _ACEOF
60499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60500   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then
60501   ice_cv_have_getsockname_decl=yes
60502 fi
60503 rm -f conftest*
60504
60505 if test "$ice_cv_have_getsockname_decl" = yes; then
60506         break
60507 fi
60508 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60509 cat >conftest.$ac_ext <<_ACEOF
60510 /* confdefs.h.  */
60511 _ACEOF
60512 cat confdefs.h >>conftest.$ac_ext
60513 cat >>conftest.$ac_ext <<_ACEOF
60514 /* end confdefs.h.  */
60515 #include <$header>
60516
60517 _ACEOF
60518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60519   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60520   ice_cv_have_getsockname_decl=yes
60521 fi
60522 rm -f conftest*
60523
60524 if test "$ice_cv_have_getsockname_decl" = yes; then
60525         break
60526 fi
60527 done
60528
60529 fi
60530
60531 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
60532 $as_echo "$ice_cv_have_getsockname_decl" >&6; }
60533 if test "$ice_cv_have_getsockname_decl" = yes; then
60534
60535 cat >>confdefs.h <<_ACEOF
60536 #define HAVE_GETSOCKNAME_DECL 1
60537 _ACEOF
60538
60539 fi
60540 fi
60541
60542
60543 ice_have_getsockopt=no
60544
60545 for ac_func in getsockopt
60546 do
60547 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60548 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60549 $as_echo_n "checking for $ac_func... " >&6; }
60550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60551   $as_echo_n "(cached) " >&6
60552 else
60553   cat >conftest.$ac_ext <<_ACEOF
60554 /* confdefs.h.  */
60555 _ACEOF
60556 cat confdefs.h >>conftest.$ac_ext
60557 cat >>conftest.$ac_ext <<_ACEOF
60558 /* end confdefs.h.  */
60559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60561 #define $ac_func innocuous_$ac_func
60562
60563 /* System header to define __stub macros and hopefully few prototypes,
60564     which can conflict with char $ac_func (); below.
60565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60566     <limits.h> exists even on freestanding compilers.  */
60567
60568 #ifdef __STDC__
60569 # include <limits.h>
60570 #else
60571 # include <assert.h>
60572 #endif
60573
60574 #undef $ac_func
60575
60576 /* Override any GCC internal prototype to avoid an error.
60577    Use char because int might match the return type of a GCC
60578    builtin and then its argument prototype would still apply.  */
60579 #ifdef __cplusplus
60580 extern "C"
60581 #endif
60582 char $ac_func ();
60583 /* The GNU C library defines this for functions which it implements
60584     to always fail with ENOSYS.  Some functions are actually named
60585     something starting with __ and the normal name is an alias.  */
60586 #if defined __stub_$ac_func || defined __stub___$ac_func
60587 choke me
60588 #endif
60589
60590 int
60591 main ()
60592 {
60593 return $ac_func ();
60594   ;
60595   return 0;
60596 }
60597 _ACEOF
60598 rm -f conftest.$ac_objext conftest$ac_exeext
60599 if { (ac_try="$ac_link"
60600 case "(($ac_try" in
60601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60602   *) ac_try_echo=$ac_try;;
60603 esac
60604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60605 $as_echo "$ac_try_echo") >&5
60606   (eval "$ac_link") 2>conftest.er1
60607   ac_status=$?
60608   grep -v '^ *+' conftest.er1 >conftest.err
60609   rm -f conftest.er1
60610   cat conftest.err >&5
60611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60612   (exit $ac_status); } && {
60613          test -z "$ac_c_werror_flag" ||
60614          test ! -s conftest.err
60615        } && test -s conftest$ac_exeext && {
60616          test "$cross_compiling" = yes ||
60617          $as_test_x conftest$ac_exeext
60618        }; then
60619   eval "$as_ac_var=yes"
60620 else
60621   $as_echo "$as_me: failed program was:" >&5
60622 sed 's/^/| /' conftest.$ac_ext >&5
60623
60624         eval "$as_ac_var=no"
60625 fi
60626
60627 rm -rf conftest.dSYM
60628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60629       conftest$ac_exeext conftest.$ac_ext
60630 fi
60631 ac_res=`eval 'as_val=${'$as_ac_var'}
60632                  $as_echo "$as_val"'`
60633                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60634 $as_echo "$ac_res" >&6; }
60635 as_val=`eval 'as_val=${'$as_ac_var'}
60636                  $as_echo "$as_val"'`
60637    if test "x$as_val" = x""yes; then
60638   cat >>confdefs.h <<_ACEOF
60639 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60640 _ACEOF
60641  ice_have_getsockopt=yes
60642 fi
60643 done
60644
60645 if test "${ice_have_getsockopt}" = yes; then
60646 { $as_echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
60647 $as_echo_n "checking for getsockopt declaration in sys/types.h sys/socket.h... " >&6; }
60648 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
60649   $as_echo_n "(cached) " >&6
60650 else
60651
60652 ice_cv_have_getsockopt_decl=no
60653 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60654 ice_re_word='(^|[^a-zA-Z0-9_])'
60655 for header in sys/types.h sys/socket.h; do
60656 # Check for ordinary declaration
60657 cat >conftest.$ac_ext <<_ACEOF
60658 /* confdefs.h.  */
60659 _ACEOF
60660 cat confdefs.h >>conftest.$ac_ext
60661 cat >>conftest.$ac_ext <<_ACEOF
60662 /* end confdefs.h.  */
60663 #include <$header>
60664
60665 _ACEOF
60666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60667   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then
60668   ice_cv_have_getsockopt_decl=yes
60669 fi
60670 rm -f conftest*
60671
60672 if test "$ice_cv_have_getsockopt_decl" = yes; then
60673         break
60674 fi
60675 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60676 cat >conftest.$ac_ext <<_ACEOF
60677 /* confdefs.h.  */
60678 _ACEOF
60679 cat confdefs.h >>conftest.$ac_ext
60680 cat >>conftest.$ac_ext <<_ACEOF
60681 /* end confdefs.h.  */
60682 #include <$header>
60683
60684 _ACEOF
60685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60686   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60687   ice_cv_have_getsockopt_decl=yes
60688 fi
60689 rm -f conftest*
60690
60691 if test "$ice_cv_have_getsockopt_decl" = yes; then
60692         break
60693 fi
60694 done
60695
60696 fi
60697
60698 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
60699 $as_echo "$ice_cv_have_getsockopt_decl" >&6; }
60700 if test "$ice_cv_have_getsockopt_decl" = yes; then
60701
60702 cat >>confdefs.h <<_ACEOF
60703 #define HAVE_GETSOCKOPT_DECL 1
60704 _ACEOF
60705
60706 fi
60707 fi
60708
60709
60710 ice_have_initgroups=no
60711
60712 for ac_func in initgroups
60713 do
60714 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60715 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60716 $as_echo_n "checking for $ac_func... " >&6; }
60717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60718   $as_echo_n "(cached) " >&6
60719 else
60720   cat >conftest.$ac_ext <<_ACEOF
60721 /* confdefs.h.  */
60722 _ACEOF
60723 cat confdefs.h >>conftest.$ac_ext
60724 cat >>conftest.$ac_ext <<_ACEOF
60725 /* end confdefs.h.  */
60726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60728 #define $ac_func innocuous_$ac_func
60729
60730 /* System header to define __stub macros and hopefully few prototypes,
60731     which can conflict with char $ac_func (); below.
60732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60733     <limits.h> exists even on freestanding compilers.  */
60734
60735 #ifdef __STDC__
60736 # include <limits.h>
60737 #else
60738 # include <assert.h>
60739 #endif
60740
60741 #undef $ac_func
60742
60743 /* Override any GCC internal prototype to avoid an error.
60744    Use char because int might match the return type of a GCC
60745    builtin and then its argument prototype would still apply.  */
60746 #ifdef __cplusplus
60747 extern "C"
60748 #endif
60749 char $ac_func ();
60750 /* The GNU C library defines this for functions which it implements
60751     to always fail with ENOSYS.  Some functions are actually named
60752     something starting with __ and the normal name is an alias.  */
60753 #if defined __stub_$ac_func || defined __stub___$ac_func
60754 choke me
60755 #endif
60756
60757 int
60758 main ()
60759 {
60760 return $ac_func ();
60761   ;
60762   return 0;
60763 }
60764 _ACEOF
60765 rm -f conftest.$ac_objext conftest$ac_exeext
60766 if { (ac_try="$ac_link"
60767 case "(($ac_try" in
60768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60769   *) ac_try_echo=$ac_try;;
60770 esac
60771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60772 $as_echo "$ac_try_echo") >&5
60773   (eval "$ac_link") 2>conftest.er1
60774   ac_status=$?
60775   grep -v '^ *+' conftest.er1 >conftest.err
60776   rm -f conftest.er1
60777   cat conftest.err >&5
60778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60779   (exit $ac_status); } && {
60780          test -z "$ac_c_werror_flag" ||
60781          test ! -s conftest.err
60782        } && test -s conftest$ac_exeext && {
60783          test "$cross_compiling" = yes ||
60784          $as_test_x conftest$ac_exeext
60785        }; then
60786   eval "$as_ac_var=yes"
60787 else
60788   $as_echo "$as_me: failed program was:" >&5
60789 sed 's/^/| /' conftest.$ac_ext >&5
60790
60791         eval "$as_ac_var=no"
60792 fi
60793
60794 rm -rf conftest.dSYM
60795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60796       conftest$ac_exeext conftest.$ac_ext
60797 fi
60798 ac_res=`eval 'as_val=${'$as_ac_var'}
60799                  $as_echo "$as_val"'`
60800                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60801 $as_echo "$ac_res" >&6; }
60802 as_val=`eval 'as_val=${'$as_ac_var'}
60803                  $as_echo "$as_val"'`
60804    if test "x$as_val" = x""yes; then
60805   cat >>confdefs.h <<_ACEOF
60806 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60807 _ACEOF
60808  ice_have_initgroups=yes
60809 fi
60810 done
60811
60812 if test "${ice_have_initgroups}" = yes; then
60813 { $as_echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
60814 $as_echo_n "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... " >&6; }
60815 if test "${ice_cv_have_initgroups_decl+set}" = set; then
60816   $as_echo_n "(cached) " >&6
60817 else
60818
60819 ice_cv_have_initgroups_decl=no
60820 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60821 ice_re_word='(^|[^a-zA-Z0-9_])'
60822 for header in grp.h sys/types.h unistd.h libc.h; do
60823 # Check for ordinary declaration
60824 cat >conftest.$ac_ext <<_ACEOF
60825 /* confdefs.h.  */
60826 _ACEOF
60827 cat confdefs.h >>conftest.$ac_ext
60828 cat >>conftest.$ac_ext <<_ACEOF
60829 /* end confdefs.h.  */
60830 #include <$header>
60831
60832 _ACEOF
60833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60834   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then
60835   ice_cv_have_initgroups_decl=yes
60836 fi
60837 rm -f conftest*
60838
60839 if test "$ice_cv_have_initgroups_decl" = yes; then
60840         break
60841 fi
60842 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60843 cat >conftest.$ac_ext <<_ACEOF
60844 /* confdefs.h.  */
60845 _ACEOF
60846 cat confdefs.h >>conftest.$ac_ext
60847 cat >>conftest.$ac_ext <<_ACEOF
60848 /* end confdefs.h.  */
60849 #include <$header>
60850
60851 _ACEOF
60852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60853   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60854   ice_cv_have_initgroups_decl=yes
60855 fi
60856 rm -f conftest*
60857
60858 if test "$ice_cv_have_initgroups_decl" = yes; then
60859         break
60860 fi
60861 done
60862
60863 fi
60864
60865 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
60866 $as_echo "$ice_cv_have_initgroups_decl" >&6; }
60867 if test "$ice_cv_have_initgroups_decl" = yes; then
60868
60869 cat >>confdefs.h <<_ACEOF
60870 #define HAVE_INITGROUPS_DECL 1
60871 _ACEOF
60872
60873 fi
60874 fi
60875
60876
60877 ice_have_ioctl=no
60878
60879 for ac_func in ioctl
60880 do
60881 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60882 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60883 $as_echo_n "checking for $ac_func... " >&6; }
60884 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60885   $as_echo_n "(cached) " >&6
60886 else
60887   cat >conftest.$ac_ext <<_ACEOF
60888 /* confdefs.h.  */
60889 _ACEOF
60890 cat confdefs.h >>conftest.$ac_ext
60891 cat >>conftest.$ac_ext <<_ACEOF
60892 /* end confdefs.h.  */
60893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60894    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60895 #define $ac_func innocuous_$ac_func
60896
60897 /* System header to define __stub macros and hopefully few prototypes,
60898     which can conflict with char $ac_func (); below.
60899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60900     <limits.h> exists even on freestanding compilers.  */
60901
60902 #ifdef __STDC__
60903 # include <limits.h>
60904 #else
60905 # include <assert.h>
60906 #endif
60907
60908 #undef $ac_func
60909
60910 /* Override any GCC internal prototype to avoid an error.
60911    Use char because int might match the return type of a GCC
60912    builtin and then its argument prototype would still apply.  */
60913 #ifdef __cplusplus
60914 extern "C"
60915 #endif
60916 char $ac_func ();
60917 /* The GNU C library defines this for functions which it implements
60918     to always fail with ENOSYS.  Some functions are actually named
60919     something starting with __ and the normal name is an alias.  */
60920 #if defined __stub_$ac_func || defined __stub___$ac_func
60921 choke me
60922 #endif
60923
60924 int
60925 main ()
60926 {
60927 return $ac_func ();
60928   ;
60929   return 0;
60930 }
60931 _ACEOF
60932 rm -f conftest.$ac_objext conftest$ac_exeext
60933 if { (ac_try="$ac_link"
60934 case "(($ac_try" in
60935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60936   *) ac_try_echo=$ac_try;;
60937 esac
60938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60939 $as_echo "$ac_try_echo") >&5
60940   (eval "$ac_link") 2>conftest.er1
60941   ac_status=$?
60942   grep -v '^ *+' conftest.er1 >conftest.err
60943   rm -f conftest.er1
60944   cat conftest.err >&5
60945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60946   (exit $ac_status); } && {
60947          test -z "$ac_c_werror_flag" ||
60948          test ! -s conftest.err
60949        } && test -s conftest$ac_exeext && {
60950          test "$cross_compiling" = yes ||
60951          $as_test_x conftest$ac_exeext
60952        }; then
60953   eval "$as_ac_var=yes"
60954 else
60955   $as_echo "$as_me: failed program was:" >&5
60956 sed 's/^/| /' conftest.$ac_ext >&5
60957
60958         eval "$as_ac_var=no"
60959 fi
60960
60961 rm -rf conftest.dSYM
60962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60963       conftest$ac_exeext conftest.$ac_ext
60964 fi
60965 ac_res=`eval 'as_val=${'$as_ac_var'}
60966                  $as_echo "$as_val"'`
60967                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60968 $as_echo "$ac_res" >&6; }
60969 as_val=`eval 'as_val=${'$as_ac_var'}
60970                  $as_echo "$as_val"'`
60971    if test "x$as_val" = x""yes; then
60972   cat >>confdefs.h <<_ACEOF
60973 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60974 _ACEOF
60975  ice_have_ioctl=yes
60976 fi
60977 done
60978
60979 if test "${ice_have_ioctl}" = yes; then
60980 { $as_echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
60981 $as_echo_n "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... " >&6; }
60982 if test "${ice_cv_have_ioctl_decl+set}" = set; then
60983   $as_echo_n "(cached) " >&6
60984 else
60985
60986 ice_cv_have_ioctl_decl=no
60987 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60988 ice_re_word='(^|[^a-zA-Z0-9_])'
60989 for header in sys/ioctl.h unistd.h libc.h; do
60990 # Check for ordinary declaration
60991 cat >conftest.$ac_ext <<_ACEOF
60992 /* confdefs.h.  */
60993 _ACEOF
60994 cat confdefs.h >>conftest.$ac_ext
60995 cat >>conftest.$ac_ext <<_ACEOF
60996 /* end confdefs.h.  */
60997 #include <$header>
60998
60999 _ACEOF
61000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61001   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then
61002   ice_cv_have_ioctl_decl=yes
61003 fi
61004 rm -f conftest*
61005
61006 if test "$ice_cv_have_ioctl_decl" = yes; then
61007         break
61008 fi
61009 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61010 cat >conftest.$ac_ext <<_ACEOF
61011 /* confdefs.h.  */
61012 _ACEOF
61013 cat confdefs.h >>conftest.$ac_ext
61014 cat >>conftest.$ac_ext <<_ACEOF
61015 /* end confdefs.h.  */
61016 #include <$header>
61017
61018 _ACEOF
61019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61020   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61021   ice_cv_have_ioctl_decl=yes
61022 fi
61023 rm -f conftest*
61024
61025 if test "$ice_cv_have_ioctl_decl" = yes; then
61026         break
61027 fi
61028 done
61029
61030 fi
61031
61032 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
61033 $as_echo "$ice_cv_have_ioctl_decl" >&6; }
61034 if test "$ice_cv_have_ioctl_decl" = yes; then
61035
61036 cat >>confdefs.h <<_ACEOF
61037 #define HAVE_IOCTL_DECL 1
61038 _ACEOF
61039
61040 fi
61041 fi
61042
61043
61044 ice_have_isnormal=no
61045
61046 for ac_func in isnormal
61047 do
61048 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61049 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61050 $as_echo_n "checking for $ac_func... " >&6; }
61051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61052   $as_echo_n "(cached) " >&6
61053 else
61054   cat >conftest.$ac_ext <<_ACEOF
61055 /* confdefs.h.  */
61056 _ACEOF
61057 cat confdefs.h >>conftest.$ac_ext
61058 cat >>conftest.$ac_ext <<_ACEOF
61059 /* end confdefs.h.  */
61060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61062 #define $ac_func innocuous_$ac_func
61063
61064 /* System header to define __stub macros and hopefully few prototypes,
61065     which can conflict with char $ac_func (); below.
61066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61067     <limits.h> exists even on freestanding compilers.  */
61068
61069 #ifdef __STDC__
61070 # include <limits.h>
61071 #else
61072 # include <assert.h>
61073 #endif
61074
61075 #undef $ac_func
61076
61077 /* Override any GCC internal prototype to avoid an error.
61078    Use char because int might match the return type of a GCC
61079    builtin and then its argument prototype would still apply.  */
61080 #ifdef __cplusplus
61081 extern "C"
61082 #endif
61083 char $ac_func ();
61084 /* The GNU C library defines this for functions which it implements
61085     to always fail with ENOSYS.  Some functions are actually named
61086     something starting with __ and the normal name is an alias.  */
61087 #if defined __stub_$ac_func || defined __stub___$ac_func
61088 choke me
61089 #endif
61090
61091 int
61092 main ()
61093 {
61094 return $ac_func ();
61095   ;
61096   return 0;
61097 }
61098 _ACEOF
61099 rm -f conftest.$ac_objext conftest$ac_exeext
61100 if { (ac_try="$ac_link"
61101 case "(($ac_try" in
61102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61103   *) ac_try_echo=$ac_try;;
61104 esac
61105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61106 $as_echo "$ac_try_echo") >&5
61107   (eval "$ac_link") 2>conftest.er1
61108   ac_status=$?
61109   grep -v '^ *+' conftest.er1 >conftest.err
61110   rm -f conftest.er1
61111   cat conftest.err >&5
61112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61113   (exit $ac_status); } && {
61114          test -z "$ac_c_werror_flag" ||
61115          test ! -s conftest.err
61116        } && test -s conftest$ac_exeext && {
61117          test "$cross_compiling" = yes ||
61118          $as_test_x conftest$ac_exeext
61119        }; then
61120   eval "$as_ac_var=yes"
61121 else
61122   $as_echo "$as_me: failed program was:" >&5
61123 sed 's/^/| /' conftest.$ac_ext >&5
61124
61125         eval "$as_ac_var=no"
61126 fi
61127
61128 rm -rf conftest.dSYM
61129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61130       conftest$ac_exeext conftest.$ac_ext
61131 fi
61132 ac_res=`eval 'as_val=${'$as_ac_var'}
61133                  $as_echo "$as_val"'`
61134                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61135 $as_echo "$ac_res" >&6; }
61136 as_val=`eval 'as_val=${'$as_ac_var'}
61137                  $as_echo "$as_val"'`
61138    if test "x$as_val" = x""yes; then
61139   cat >>confdefs.h <<_ACEOF
61140 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61141 _ACEOF
61142  ice_have_isnormal=yes
61143 fi
61144 done
61145
61146 if test "${ice_have_isnormal}" = yes; then
61147 { $as_echo "$as_me:$LINENO: checking for isnormal declaration in math.h" >&5
61148 $as_echo_n "checking for isnormal declaration in math.h... " >&6; }
61149 if test "${ice_cv_have_isnormal_decl+set}" = set; then
61150   $as_echo_n "(cached) " >&6
61151 else
61152
61153 ice_cv_have_isnormal_decl=no
61154 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61155 ice_re_word='(^|[^a-zA-Z0-9_])'
61156 for header in math.h; do
61157 # Check for ordinary declaration
61158 cat >conftest.$ac_ext <<_ACEOF
61159 /* confdefs.h.  */
61160 _ACEOF
61161 cat confdefs.h >>conftest.$ac_ext
61162 cat >>conftest.$ac_ext <<_ACEOF
61163 /* end confdefs.h.  */
61164 #include <$header>
61165
61166 _ACEOF
61167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61168   $EGREP "${ice_re_word}isnormal[       ]*\(" >/dev/null 2>&1; then
61169   ice_cv_have_isnormal_decl=yes
61170 fi
61171 rm -f conftest*
61172
61173 if test "$ice_cv_have_isnormal_decl" = yes; then
61174         break
61175 fi
61176 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61177 cat >conftest.$ac_ext <<_ACEOF
61178 /* confdefs.h.  */
61179 _ACEOF
61180 cat confdefs.h >>conftest.$ac_ext
61181 cat >>conftest.$ac_ext <<_ACEOF
61182 /* end confdefs.h.  */
61183 #include <$header>
61184
61185 _ACEOF
61186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61187   $EGREP "${ice_re_word}isnormal[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61188   ice_cv_have_isnormal_decl=yes
61189 fi
61190 rm -f conftest*
61191
61192 if test "$ice_cv_have_isnormal_decl" = yes; then
61193         break
61194 fi
61195 done
61196
61197 fi
61198
61199 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_isnormal_decl" >&5
61200 $as_echo "$ice_cv_have_isnormal_decl" >&6; }
61201 if test "$ice_cv_have_isnormal_decl" = yes; then
61202
61203 cat >>confdefs.h <<_ACEOF
61204 #define HAVE_ISNORMAL_DECL 1
61205 _ACEOF
61206
61207 fi
61208 fi
61209
61210
61211 ice_have_listen=no
61212
61213 for ac_func in listen
61214 do
61215 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61216 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61217 $as_echo_n "checking for $ac_func... " >&6; }
61218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61219   $as_echo_n "(cached) " >&6
61220 else
61221   cat >conftest.$ac_ext <<_ACEOF
61222 /* confdefs.h.  */
61223 _ACEOF
61224 cat confdefs.h >>conftest.$ac_ext
61225 cat >>conftest.$ac_ext <<_ACEOF
61226 /* end confdefs.h.  */
61227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61229 #define $ac_func innocuous_$ac_func
61230
61231 /* System header to define __stub macros and hopefully few prototypes,
61232     which can conflict with char $ac_func (); below.
61233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61234     <limits.h> exists even on freestanding compilers.  */
61235
61236 #ifdef __STDC__
61237 # include <limits.h>
61238 #else
61239 # include <assert.h>
61240 #endif
61241
61242 #undef $ac_func
61243
61244 /* Override any GCC internal prototype to avoid an error.
61245    Use char because int might match the return type of a GCC
61246    builtin and then its argument prototype would still apply.  */
61247 #ifdef __cplusplus
61248 extern "C"
61249 #endif
61250 char $ac_func ();
61251 /* The GNU C library defines this for functions which it implements
61252     to always fail with ENOSYS.  Some functions are actually named
61253     something starting with __ and the normal name is an alias.  */
61254 #if defined __stub_$ac_func || defined __stub___$ac_func
61255 choke me
61256 #endif
61257
61258 int
61259 main ()
61260 {
61261 return $ac_func ();
61262   ;
61263   return 0;
61264 }
61265 _ACEOF
61266 rm -f conftest.$ac_objext conftest$ac_exeext
61267 if { (ac_try="$ac_link"
61268 case "(($ac_try" in
61269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61270   *) ac_try_echo=$ac_try;;
61271 esac
61272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61273 $as_echo "$ac_try_echo") >&5
61274   (eval "$ac_link") 2>conftest.er1
61275   ac_status=$?
61276   grep -v '^ *+' conftest.er1 >conftest.err
61277   rm -f conftest.er1
61278   cat conftest.err >&5
61279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61280   (exit $ac_status); } && {
61281          test -z "$ac_c_werror_flag" ||
61282          test ! -s conftest.err
61283        } && test -s conftest$ac_exeext && {
61284          test "$cross_compiling" = yes ||
61285          $as_test_x conftest$ac_exeext
61286        }; then
61287   eval "$as_ac_var=yes"
61288 else
61289   $as_echo "$as_me: failed program was:" >&5
61290 sed 's/^/| /' conftest.$ac_ext >&5
61291
61292         eval "$as_ac_var=no"
61293 fi
61294
61295 rm -rf conftest.dSYM
61296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61297       conftest$ac_exeext conftest.$ac_ext
61298 fi
61299 ac_res=`eval 'as_val=${'$as_ac_var'}
61300                  $as_echo "$as_val"'`
61301                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61302 $as_echo "$ac_res" >&6; }
61303 as_val=`eval 'as_val=${'$as_ac_var'}
61304                  $as_echo "$as_val"'`
61305    if test "x$as_val" = x""yes; then
61306   cat >>confdefs.h <<_ACEOF
61307 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61308 _ACEOF
61309  ice_have_listen=yes
61310 fi
61311 done
61312
61313 if test "${ice_have_listen}" = yes; then
61314 { $as_echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
61315 $as_echo_n "checking for listen declaration in sys/types.h sys/socket.h... " >&6; }
61316 if test "${ice_cv_have_listen_decl+set}" = set; then
61317   $as_echo_n "(cached) " >&6
61318 else
61319
61320 ice_cv_have_listen_decl=no
61321 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61322 ice_re_word='(^|[^a-zA-Z0-9_])'
61323 for header in sys/types.h sys/socket.h; do
61324 # Check for ordinary declaration
61325 cat >conftest.$ac_ext <<_ACEOF
61326 /* confdefs.h.  */
61327 _ACEOF
61328 cat confdefs.h >>conftest.$ac_ext
61329 cat >>conftest.$ac_ext <<_ACEOF
61330 /* end confdefs.h.  */
61331 #include <$header>
61332
61333 _ACEOF
61334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61335   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then
61336   ice_cv_have_listen_decl=yes
61337 fi
61338 rm -f conftest*
61339
61340 if test "$ice_cv_have_listen_decl" = yes; then
61341         break
61342 fi
61343 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61344 cat >conftest.$ac_ext <<_ACEOF
61345 /* confdefs.h.  */
61346 _ACEOF
61347 cat confdefs.h >>conftest.$ac_ext
61348 cat >>conftest.$ac_ext <<_ACEOF
61349 /* end confdefs.h.  */
61350 #include <$header>
61351
61352 _ACEOF
61353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61354   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61355   ice_cv_have_listen_decl=yes
61356 fi
61357 rm -f conftest*
61358
61359 if test "$ice_cv_have_listen_decl" = yes; then
61360         break
61361 fi
61362 done
61363
61364 fi
61365
61366 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
61367 $as_echo "$ice_cv_have_listen_decl" >&6; }
61368 if test "$ice_cv_have_listen_decl" = yes; then
61369
61370 cat >>confdefs.h <<_ACEOF
61371 #define HAVE_LISTEN_DECL 1
61372 _ACEOF
61373
61374 fi
61375 fi
61376
61377
61378 ice_have_lstat=no
61379
61380 for ac_func in lstat
61381 do
61382 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61383 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61384 $as_echo_n "checking for $ac_func... " >&6; }
61385 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61386   $as_echo_n "(cached) " >&6
61387 else
61388   cat >conftest.$ac_ext <<_ACEOF
61389 /* confdefs.h.  */
61390 _ACEOF
61391 cat confdefs.h >>conftest.$ac_ext
61392 cat >>conftest.$ac_ext <<_ACEOF
61393 /* end confdefs.h.  */
61394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61396 #define $ac_func innocuous_$ac_func
61397
61398 /* System header to define __stub macros and hopefully few prototypes,
61399     which can conflict with char $ac_func (); below.
61400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61401     <limits.h> exists even on freestanding compilers.  */
61402
61403 #ifdef __STDC__
61404 # include <limits.h>
61405 #else
61406 # include <assert.h>
61407 #endif
61408
61409 #undef $ac_func
61410
61411 /* Override any GCC internal prototype to avoid an error.
61412    Use char because int might match the return type of a GCC
61413    builtin and then its argument prototype would still apply.  */
61414 #ifdef __cplusplus
61415 extern "C"
61416 #endif
61417 char $ac_func ();
61418 /* The GNU C library defines this for functions which it implements
61419     to always fail with ENOSYS.  Some functions are actually named
61420     something starting with __ and the normal name is an alias.  */
61421 #if defined __stub_$ac_func || defined __stub___$ac_func
61422 choke me
61423 #endif
61424
61425 int
61426 main ()
61427 {
61428 return $ac_func ();
61429   ;
61430   return 0;
61431 }
61432 _ACEOF
61433 rm -f conftest.$ac_objext conftest$ac_exeext
61434 if { (ac_try="$ac_link"
61435 case "(($ac_try" in
61436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61437   *) ac_try_echo=$ac_try;;
61438 esac
61439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61440 $as_echo "$ac_try_echo") >&5
61441   (eval "$ac_link") 2>conftest.er1
61442   ac_status=$?
61443   grep -v '^ *+' conftest.er1 >conftest.err
61444   rm -f conftest.er1
61445   cat conftest.err >&5
61446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61447   (exit $ac_status); } && {
61448          test -z "$ac_c_werror_flag" ||
61449          test ! -s conftest.err
61450        } && test -s conftest$ac_exeext && {
61451          test "$cross_compiling" = yes ||
61452          $as_test_x conftest$ac_exeext
61453        }; then
61454   eval "$as_ac_var=yes"
61455 else
61456   $as_echo "$as_me: failed program was:" >&5
61457 sed 's/^/| /' conftest.$ac_ext >&5
61458
61459         eval "$as_ac_var=no"
61460 fi
61461
61462 rm -rf conftest.dSYM
61463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61464       conftest$ac_exeext conftest.$ac_ext
61465 fi
61466 ac_res=`eval 'as_val=${'$as_ac_var'}
61467                  $as_echo "$as_val"'`
61468                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61469 $as_echo "$ac_res" >&6; }
61470 as_val=`eval 'as_val=${'$as_ac_var'}
61471                  $as_echo "$as_val"'`
61472    if test "x$as_val" = x""yes; then
61473   cat >>confdefs.h <<_ACEOF
61474 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61475 _ACEOF
61476  ice_have_lstat=yes
61477 fi
61478 done
61479
61480 if test "${ice_have_lstat}" = yes; then
61481 { $as_echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
61482 $as_echo_n "checking for lstat declaration in sys/types.h sys/stat.h... " >&6; }
61483 if test "${ice_cv_have_lstat_decl+set}" = set; then
61484   $as_echo_n "(cached) " >&6
61485 else
61486
61487 ice_cv_have_lstat_decl=no
61488 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61489 ice_re_word='(^|[^a-zA-Z0-9_])'
61490 for header in sys/types.h sys/stat.h; do
61491 # Check for ordinary declaration
61492 cat >conftest.$ac_ext <<_ACEOF
61493 /* confdefs.h.  */
61494 _ACEOF
61495 cat confdefs.h >>conftest.$ac_ext
61496 cat >>conftest.$ac_ext <<_ACEOF
61497 /* end confdefs.h.  */
61498 #include <$header>
61499
61500 _ACEOF
61501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61502   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then
61503   ice_cv_have_lstat_decl=yes
61504 fi
61505 rm -f conftest*
61506
61507 if test "$ice_cv_have_lstat_decl" = yes; then
61508         break
61509 fi
61510 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61511 cat >conftest.$ac_ext <<_ACEOF
61512 /* confdefs.h.  */
61513 _ACEOF
61514 cat confdefs.h >>conftest.$ac_ext
61515 cat >>conftest.$ac_ext <<_ACEOF
61516 /* end confdefs.h.  */
61517 #include <$header>
61518
61519 _ACEOF
61520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61521   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61522   ice_cv_have_lstat_decl=yes
61523 fi
61524 rm -f conftest*
61525
61526 if test "$ice_cv_have_lstat_decl" = yes; then
61527         break
61528 fi
61529 done
61530
61531 fi
61532
61533 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
61534 $as_echo "$ice_cv_have_lstat_decl" >&6; }
61535 if test "$ice_cv_have_lstat_decl" = yes; then
61536
61537 cat >>confdefs.h <<_ACEOF
61538 #define HAVE_LSTAT_DECL 1
61539 _ACEOF
61540
61541 fi
61542 fi
61543
61544
61545 ice_have_malloc=no
61546
61547 for ac_func in malloc
61548 do
61549 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61550 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61551 $as_echo_n "checking for $ac_func... " >&6; }
61552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61553   $as_echo_n "(cached) " >&6
61554 else
61555   cat >conftest.$ac_ext <<_ACEOF
61556 /* confdefs.h.  */
61557 _ACEOF
61558 cat confdefs.h >>conftest.$ac_ext
61559 cat >>conftest.$ac_ext <<_ACEOF
61560 /* end confdefs.h.  */
61561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61563 #define $ac_func innocuous_$ac_func
61564
61565 /* System header to define __stub macros and hopefully few prototypes,
61566     which can conflict with char $ac_func (); below.
61567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61568     <limits.h> exists even on freestanding compilers.  */
61569
61570 #ifdef __STDC__
61571 # include <limits.h>
61572 #else
61573 # include <assert.h>
61574 #endif
61575
61576 #undef $ac_func
61577
61578 /* Override any GCC internal prototype to avoid an error.
61579    Use char because int might match the return type of a GCC
61580    builtin and then its argument prototype would still apply.  */
61581 #ifdef __cplusplus
61582 extern "C"
61583 #endif
61584 char $ac_func ();
61585 /* The GNU C library defines this for functions which it implements
61586     to always fail with ENOSYS.  Some functions are actually named
61587     something starting with __ and the normal name is an alias.  */
61588 #if defined __stub_$ac_func || defined __stub___$ac_func
61589 choke me
61590 #endif
61591
61592 int
61593 main ()
61594 {
61595 return $ac_func ();
61596   ;
61597   return 0;
61598 }
61599 _ACEOF
61600 rm -f conftest.$ac_objext conftest$ac_exeext
61601 if { (ac_try="$ac_link"
61602 case "(($ac_try" in
61603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61604   *) ac_try_echo=$ac_try;;
61605 esac
61606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61607 $as_echo "$ac_try_echo") >&5
61608   (eval "$ac_link") 2>conftest.er1
61609   ac_status=$?
61610   grep -v '^ *+' conftest.er1 >conftest.err
61611   rm -f conftest.er1
61612   cat conftest.err >&5
61613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61614   (exit $ac_status); } && {
61615          test -z "$ac_c_werror_flag" ||
61616          test ! -s conftest.err
61617        } && test -s conftest$ac_exeext && {
61618          test "$cross_compiling" = yes ||
61619          $as_test_x conftest$ac_exeext
61620        }; then
61621   eval "$as_ac_var=yes"
61622 else
61623   $as_echo "$as_me: failed program was:" >&5
61624 sed 's/^/| /' conftest.$ac_ext >&5
61625
61626         eval "$as_ac_var=no"
61627 fi
61628
61629 rm -rf conftest.dSYM
61630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61631       conftest$ac_exeext conftest.$ac_ext
61632 fi
61633 ac_res=`eval 'as_val=${'$as_ac_var'}
61634                  $as_echo "$as_val"'`
61635                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61636 $as_echo "$ac_res" >&6; }
61637 as_val=`eval 'as_val=${'$as_ac_var'}
61638                  $as_echo "$as_val"'`
61639    if test "x$as_val" = x""yes; then
61640   cat >>confdefs.h <<_ACEOF
61641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61642 _ACEOF
61643  ice_have_malloc=yes
61644 fi
61645 done
61646
61647 if test "${ice_have_malloc}" = yes; then
61648 { $as_echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
61649 $as_echo_n "checking for malloc declaration in stdlib.h... " >&6; }
61650 if test "${ice_cv_have_malloc_decl+set}" = set; then
61651   $as_echo_n "(cached) " >&6
61652 else
61653
61654 ice_cv_have_malloc_decl=no
61655 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61656 ice_re_word='(^|[^a-zA-Z0-9_])'
61657 for header in stdlib.h; do
61658 # Check for ordinary declaration
61659 cat >conftest.$ac_ext <<_ACEOF
61660 /* confdefs.h.  */
61661 _ACEOF
61662 cat confdefs.h >>conftest.$ac_ext
61663 cat >>conftest.$ac_ext <<_ACEOF
61664 /* end confdefs.h.  */
61665 #include <$header>
61666
61667 _ACEOF
61668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61669   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then
61670   ice_cv_have_malloc_decl=yes
61671 fi
61672 rm -f conftest*
61673
61674 if test "$ice_cv_have_malloc_decl" = yes; then
61675         break
61676 fi
61677 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61678 cat >conftest.$ac_ext <<_ACEOF
61679 /* confdefs.h.  */
61680 _ACEOF
61681 cat confdefs.h >>conftest.$ac_ext
61682 cat >>conftest.$ac_ext <<_ACEOF
61683 /* end confdefs.h.  */
61684 #include <$header>
61685
61686 _ACEOF
61687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61688   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61689   ice_cv_have_malloc_decl=yes
61690 fi
61691 rm -f conftest*
61692
61693 if test "$ice_cv_have_malloc_decl" = yes; then
61694         break
61695 fi
61696 done
61697
61698 fi
61699
61700 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
61701 $as_echo "$ice_cv_have_malloc_decl" >&6; }
61702 if test "$ice_cv_have_malloc_decl" = yes; then
61703
61704 cat >>confdefs.h <<_ACEOF
61705 #define HAVE_MALLOC_DECL 1
61706 _ACEOF
61707
61708 fi
61709 fi
61710
61711
61712 ice_have_memmove=no
61713
61714 for ac_func in memmove
61715 do
61716 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61717 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61718 $as_echo_n "checking for $ac_func... " >&6; }
61719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61720   $as_echo_n "(cached) " >&6
61721 else
61722   cat >conftest.$ac_ext <<_ACEOF
61723 /* confdefs.h.  */
61724 _ACEOF
61725 cat confdefs.h >>conftest.$ac_ext
61726 cat >>conftest.$ac_ext <<_ACEOF
61727 /* end confdefs.h.  */
61728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61730 #define $ac_func innocuous_$ac_func
61731
61732 /* System header to define __stub macros and hopefully few prototypes,
61733     which can conflict with char $ac_func (); below.
61734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61735     <limits.h> exists even on freestanding compilers.  */
61736
61737 #ifdef __STDC__
61738 # include <limits.h>
61739 #else
61740 # include <assert.h>
61741 #endif
61742
61743 #undef $ac_func
61744
61745 /* Override any GCC internal prototype to avoid an error.
61746    Use char because int might match the return type of a GCC
61747    builtin and then its argument prototype would still apply.  */
61748 #ifdef __cplusplus
61749 extern "C"
61750 #endif
61751 char $ac_func ();
61752 /* The GNU C library defines this for functions which it implements
61753     to always fail with ENOSYS.  Some functions are actually named
61754     something starting with __ and the normal name is an alias.  */
61755 #if defined __stub_$ac_func || defined __stub___$ac_func
61756 choke me
61757 #endif
61758
61759 int
61760 main ()
61761 {
61762 return $ac_func ();
61763   ;
61764   return 0;
61765 }
61766 _ACEOF
61767 rm -f conftest.$ac_objext conftest$ac_exeext
61768 if { (ac_try="$ac_link"
61769 case "(($ac_try" in
61770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61771   *) ac_try_echo=$ac_try;;
61772 esac
61773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61774 $as_echo "$ac_try_echo") >&5
61775   (eval "$ac_link") 2>conftest.er1
61776   ac_status=$?
61777   grep -v '^ *+' conftest.er1 >conftest.err
61778   rm -f conftest.er1
61779   cat conftest.err >&5
61780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61781   (exit $ac_status); } && {
61782          test -z "$ac_c_werror_flag" ||
61783          test ! -s conftest.err
61784        } && test -s conftest$ac_exeext && {
61785          test "$cross_compiling" = yes ||
61786          $as_test_x conftest$ac_exeext
61787        }; then
61788   eval "$as_ac_var=yes"
61789 else
61790   $as_echo "$as_me: failed program was:" >&5
61791 sed 's/^/| /' conftest.$ac_ext >&5
61792
61793         eval "$as_ac_var=no"
61794 fi
61795
61796 rm -rf conftest.dSYM
61797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61798       conftest$ac_exeext conftest.$ac_ext
61799 fi
61800 ac_res=`eval 'as_val=${'$as_ac_var'}
61801                  $as_echo "$as_val"'`
61802                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61803 $as_echo "$ac_res" >&6; }
61804 as_val=`eval 'as_val=${'$as_ac_var'}
61805                  $as_echo "$as_val"'`
61806    if test "x$as_val" = x""yes; then
61807   cat >>confdefs.h <<_ACEOF
61808 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61809 _ACEOF
61810  ice_have_memmove=yes
61811 fi
61812 done
61813
61814 if test "${ice_have_memmove}" = yes; then
61815 { $as_echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
61816 $as_echo_n "checking for memmove declaration in string.h strings.h... " >&6; }
61817 if test "${ice_cv_have_memmove_decl+set}" = set; then
61818   $as_echo_n "(cached) " >&6
61819 else
61820
61821 ice_cv_have_memmove_decl=no
61822 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61823 ice_re_word='(^|[^a-zA-Z0-9_])'
61824 for header in string.h strings.h; do
61825 # Check for ordinary declaration
61826 cat >conftest.$ac_ext <<_ACEOF
61827 /* confdefs.h.  */
61828 _ACEOF
61829 cat confdefs.h >>conftest.$ac_ext
61830 cat >>conftest.$ac_ext <<_ACEOF
61831 /* end confdefs.h.  */
61832 #include <$header>
61833
61834 _ACEOF
61835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61836   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then
61837   ice_cv_have_memmove_decl=yes
61838 fi
61839 rm -f conftest*
61840
61841 if test "$ice_cv_have_memmove_decl" = yes; then
61842         break
61843 fi
61844 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61845 cat >conftest.$ac_ext <<_ACEOF
61846 /* confdefs.h.  */
61847 _ACEOF
61848 cat confdefs.h >>conftest.$ac_ext
61849 cat >>conftest.$ac_ext <<_ACEOF
61850 /* end confdefs.h.  */
61851 #include <$header>
61852
61853 _ACEOF
61854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61855   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61856   ice_cv_have_memmove_decl=yes
61857 fi
61858 rm -f conftest*
61859
61860 if test "$ice_cv_have_memmove_decl" = yes; then
61861         break
61862 fi
61863 done
61864
61865 fi
61866
61867 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
61868 $as_echo "$ice_cv_have_memmove_decl" >&6; }
61869 if test "$ice_cv_have_memmove_decl" = yes; then
61870
61871 cat >>confdefs.h <<_ACEOF
61872 #define HAVE_MEMMOVE_DECL 1
61873 _ACEOF
61874
61875 fi
61876 fi
61877
61878
61879 ice_have_memset=no
61880
61881 for ac_func in memset
61882 do
61883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61884 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61885 $as_echo_n "checking for $ac_func... " >&6; }
61886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61887   $as_echo_n "(cached) " >&6
61888 else
61889   cat >conftest.$ac_ext <<_ACEOF
61890 /* confdefs.h.  */
61891 _ACEOF
61892 cat confdefs.h >>conftest.$ac_ext
61893 cat >>conftest.$ac_ext <<_ACEOF
61894 /* end confdefs.h.  */
61895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61897 #define $ac_func innocuous_$ac_func
61898
61899 /* System header to define __stub macros and hopefully few prototypes,
61900     which can conflict with char $ac_func (); below.
61901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61902     <limits.h> exists even on freestanding compilers.  */
61903
61904 #ifdef __STDC__
61905 # include <limits.h>
61906 #else
61907 # include <assert.h>
61908 #endif
61909
61910 #undef $ac_func
61911
61912 /* Override any GCC internal prototype to avoid an error.
61913    Use char because int might match the return type of a GCC
61914    builtin and then its argument prototype would still apply.  */
61915 #ifdef __cplusplus
61916 extern "C"
61917 #endif
61918 char $ac_func ();
61919 /* The GNU C library defines this for functions which it implements
61920     to always fail with ENOSYS.  Some functions are actually named
61921     something starting with __ and the normal name is an alias.  */
61922 #if defined __stub_$ac_func || defined __stub___$ac_func
61923 choke me
61924 #endif
61925
61926 int
61927 main ()
61928 {
61929 return $ac_func ();
61930   ;
61931   return 0;
61932 }
61933 _ACEOF
61934 rm -f conftest.$ac_objext conftest$ac_exeext
61935 if { (ac_try="$ac_link"
61936 case "(($ac_try" in
61937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61938   *) ac_try_echo=$ac_try;;
61939 esac
61940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61941 $as_echo "$ac_try_echo") >&5
61942   (eval "$ac_link") 2>conftest.er1
61943   ac_status=$?
61944   grep -v '^ *+' conftest.er1 >conftest.err
61945   rm -f conftest.er1
61946   cat conftest.err >&5
61947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61948   (exit $ac_status); } && {
61949          test -z "$ac_c_werror_flag" ||
61950          test ! -s conftest.err
61951        } && test -s conftest$ac_exeext && {
61952          test "$cross_compiling" = yes ||
61953          $as_test_x conftest$ac_exeext
61954        }; then
61955   eval "$as_ac_var=yes"
61956 else
61957   $as_echo "$as_me: failed program was:" >&5
61958 sed 's/^/| /' conftest.$ac_ext >&5
61959
61960         eval "$as_ac_var=no"
61961 fi
61962
61963 rm -rf conftest.dSYM
61964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61965       conftest$ac_exeext conftest.$ac_ext
61966 fi
61967 ac_res=`eval 'as_val=${'$as_ac_var'}
61968                  $as_echo "$as_val"'`
61969                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61970 $as_echo "$ac_res" >&6; }
61971 as_val=`eval 'as_val=${'$as_ac_var'}
61972                  $as_echo "$as_val"'`
61973    if test "x$as_val" = x""yes; then
61974   cat >>confdefs.h <<_ACEOF
61975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61976 _ACEOF
61977  ice_have_memset=yes
61978 fi
61979 done
61980
61981 if test "${ice_have_memset}" = yes; then
61982 { $as_echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
61983 $as_echo_n "checking for memset declaration in string.h strings.h... " >&6; }
61984 if test "${ice_cv_have_memset_decl+set}" = set; then
61985   $as_echo_n "(cached) " >&6
61986 else
61987
61988 ice_cv_have_memset_decl=no
61989 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61990 ice_re_word='(^|[^a-zA-Z0-9_])'
61991 for header in string.h strings.h; do
61992 # Check for ordinary declaration
61993 cat >conftest.$ac_ext <<_ACEOF
61994 /* confdefs.h.  */
61995 _ACEOF
61996 cat confdefs.h >>conftest.$ac_ext
61997 cat >>conftest.$ac_ext <<_ACEOF
61998 /* end confdefs.h.  */
61999 #include <$header>
62000
62001 _ACEOF
62002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62003   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then
62004   ice_cv_have_memset_decl=yes
62005 fi
62006 rm -f conftest*
62007
62008 if test "$ice_cv_have_memset_decl" = yes; then
62009         break
62010 fi
62011 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62012 cat >conftest.$ac_ext <<_ACEOF
62013 /* confdefs.h.  */
62014 _ACEOF
62015 cat confdefs.h >>conftest.$ac_ext
62016 cat >>conftest.$ac_ext <<_ACEOF
62017 /* end confdefs.h.  */
62018 #include <$header>
62019
62020 _ACEOF
62021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62022   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62023   ice_cv_have_memset_decl=yes
62024 fi
62025 rm -f conftest*
62026
62027 if test "$ice_cv_have_memset_decl" = yes; then
62028         break
62029 fi
62030 done
62031
62032 fi
62033
62034 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
62035 $as_echo "$ice_cv_have_memset_decl" >&6; }
62036 if test "$ice_cv_have_memset_decl" = yes; then
62037
62038 cat >>confdefs.h <<_ACEOF
62039 #define HAVE_MEMSET_DECL 1
62040 _ACEOF
62041
62042 fi
62043 fi
62044
62045
62046 ice_have_mkstemp=no
62047
62048 for ac_func in mkstemp
62049 do
62050 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62051 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62052 $as_echo_n "checking for $ac_func... " >&6; }
62053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62054   $as_echo_n "(cached) " >&6
62055 else
62056   cat >conftest.$ac_ext <<_ACEOF
62057 /* confdefs.h.  */
62058 _ACEOF
62059 cat confdefs.h >>conftest.$ac_ext
62060 cat >>conftest.$ac_ext <<_ACEOF
62061 /* end confdefs.h.  */
62062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62064 #define $ac_func innocuous_$ac_func
62065
62066 /* System header to define __stub macros and hopefully few prototypes,
62067     which can conflict with char $ac_func (); below.
62068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62069     <limits.h> exists even on freestanding compilers.  */
62070
62071 #ifdef __STDC__
62072 # include <limits.h>
62073 #else
62074 # include <assert.h>
62075 #endif
62076
62077 #undef $ac_func
62078
62079 /* Override any GCC internal prototype to avoid an error.
62080    Use char because int might match the return type of a GCC
62081    builtin and then its argument prototype would still apply.  */
62082 #ifdef __cplusplus
62083 extern "C"
62084 #endif
62085 char $ac_func ();
62086 /* The GNU C library defines this for functions which it implements
62087     to always fail with ENOSYS.  Some functions are actually named
62088     something starting with __ and the normal name is an alias.  */
62089 #if defined __stub_$ac_func || defined __stub___$ac_func
62090 choke me
62091 #endif
62092
62093 int
62094 main ()
62095 {
62096 return $ac_func ();
62097   ;
62098   return 0;
62099 }
62100 _ACEOF
62101 rm -f conftest.$ac_objext conftest$ac_exeext
62102 if { (ac_try="$ac_link"
62103 case "(($ac_try" in
62104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62105   *) ac_try_echo=$ac_try;;
62106 esac
62107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62108 $as_echo "$ac_try_echo") >&5
62109   (eval "$ac_link") 2>conftest.er1
62110   ac_status=$?
62111   grep -v '^ *+' conftest.er1 >conftest.err
62112   rm -f conftest.er1
62113   cat conftest.err >&5
62114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62115   (exit $ac_status); } && {
62116          test -z "$ac_c_werror_flag" ||
62117          test ! -s conftest.err
62118        } && test -s conftest$ac_exeext && {
62119          test "$cross_compiling" = yes ||
62120          $as_test_x conftest$ac_exeext
62121        }; then
62122   eval "$as_ac_var=yes"
62123 else
62124   $as_echo "$as_me: failed program was:" >&5
62125 sed 's/^/| /' conftest.$ac_ext >&5
62126
62127         eval "$as_ac_var=no"
62128 fi
62129
62130 rm -rf conftest.dSYM
62131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62132       conftest$ac_exeext conftest.$ac_ext
62133 fi
62134 ac_res=`eval 'as_val=${'$as_ac_var'}
62135                  $as_echo "$as_val"'`
62136                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62137 $as_echo "$ac_res" >&6; }
62138 as_val=`eval 'as_val=${'$as_ac_var'}
62139                  $as_echo "$as_val"'`
62140    if test "x$as_val" = x""yes; then
62141   cat >>confdefs.h <<_ACEOF
62142 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62143 _ACEOF
62144  ice_have_mkstemp=yes
62145 fi
62146 done
62147
62148 if test "${ice_have_mkstemp}" = yes; then
62149 { $as_echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
62150 $as_echo_n "checking for mkstemp declaration in stdlib.h... " >&6; }
62151 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
62152   $as_echo_n "(cached) " >&6
62153 else
62154
62155 ice_cv_have_mkstemp_decl=no
62156 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62157 ice_re_word='(^|[^a-zA-Z0-9_])'
62158 for header in stdlib.h; do
62159 # Check for ordinary declaration
62160 cat >conftest.$ac_ext <<_ACEOF
62161 /* confdefs.h.  */
62162 _ACEOF
62163 cat confdefs.h >>conftest.$ac_ext
62164 cat >>conftest.$ac_ext <<_ACEOF
62165 /* end confdefs.h.  */
62166 #include <$header>
62167
62168 _ACEOF
62169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62170   $EGREP "${ice_re_word}mkstemp[        ]*\(" >/dev/null 2>&1; then
62171   ice_cv_have_mkstemp_decl=yes
62172 fi
62173 rm -f conftest*
62174
62175 if test "$ice_cv_have_mkstemp_decl" = yes; then
62176         break
62177 fi
62178 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62179 cat >conftest.$ac_ext <<_ACEOF
62180 /* confdefs.h.  */
62181 _ACEOF
62182 cat confdefs.h >>conftest.$ac_ext
62183 cat >>conftest.$ac_ext <<_ACEOF
62184 /* end confdefs.h.  */
62185 #include <$header>
62186
62187 _ACEOF
62188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62189   $EGREP "${ice_re_word}mkstemp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62190   ice_cv_have_mkstemp_decl=yes
62191 fi
62192 rm -f conftest*
62193
62194 if test "$ice_cv_have_mkstemp_decl" = yes; then
62195         break
62196 fi
62197 done
62198
62199 fi
62200
62201 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
62202 $as_echo "$ice_cv_have_mkstemp_decl" >&6; }
62203 if test "$ice_cv_have_mkstemp_decl" = yes; then
62204
62205 cat >>confdefs.h <<_ACEOF
62206 #define HAVE_MKSTEMP_DECL 1
62207 _ACEOF
62208
62209 fi
62210 fi
62211
62212
62213 ice_have_mktemp=no
62214
62215 for ac_func in mktemp
62216 do
62217 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62218 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62219 $as_echo_n "checking for $ac_func... " >&6; }
62220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62221   $as_echo_n "(cached) " >&6
62222 else
62223   cat >conftest.$ac_ext <<_ACEOF
62224 /* confdefs.h.  */
62225 _ACEOF
62226 cat confdefs.h >>conftest.$ac_ext
62227 cat >>conftest.$ac_ext <<_ACEOF
62228 /* end confdefs.h.  */
62229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62231 #define $ac_func innocuous_$ac_func
62232
62233 /* System header to define __stub macros and hopefully few prototypes,
62234     which can conflict with char $ac_func (); below.
62235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62236     <limits.h> exists even on freestanding compilers.  */
62237
62238 #ifdef __STDC__
62239 # include <limits.h>
62240 #else
62241 # include <assert.h>
62242 #endif
62243
62244 #undef $ac_func
62245
62246 /* Override any GCC internal prototype to avoid an error.
62247    Use char because int might match the return type of a GCC
62248    builtin and then its argument prototype would still apply.  */
62249 #ifdef __cplusplus
62250 extern "C"
62251 #endif
62252 char $ac_func ();
62253 /* The GNU C library defines this for functions which it implements
62254     to always fail with ENOSYS.  Some functions are actually named
62255     something starting with __ and the normal name is an alias.  */
62256 #if defined __stub_$ac_func || defined __stub___$ac_func
62257 choke me
62258 #endif
62259
62260 int
62261 main ()
62262 {
62263 return $ac_func ();
62264   ;
62265   return 0;
62266 }
62267 _ACEOF
62268 rm -f conftest.$ac_objext conftest$ac_exeext
62269 if { (ac_try="$ac_link"
62270 case "(($ac_try" in
62271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62272   *) ac_try_echo=$ac_try;;
62273 esac
62274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62275 $as_echo "$ac_try_echo") >&5
62276   (eval "$ac_link") 2>conftest.er1
62277   ac_status=$?
62278   grep -v '^ *+' conftest.er1 >conftest.err
62279   rm -f conftest.er1
62280   cat conftest.err >&5
62281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62282   (exit $ac_status); } && {
62283          test -z "$ac_c_werror_flag" ||
62284          test ! -s conftest.err
62285        } && test -s conftest$ac_exeext && {
62286          test "$cross_compiling" = yes ||
62287          $as_test_x conftest$ac_exeext
62288        }; then
62289   eval "$as_ac_var=yes"
62290 else
62291   $as_echo "$as_me: failed program was:" >&5
62292 sed 's/^/| /' conftest.$ac_ext >&5
62293
62294         eval "$as_ac_var=no"
62295 fi
62296
62297 rm -rf conftest.dSYM
62298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62299       conftest$ac_exeext conftest.$ac_ext
62300 fi
62301 ac_res=`eval 'as_val=${'$as_ac_var'}
62302                  $as_echo "$as_val"'`
62303                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62304 $as_echo "$ac_res" >&6; }
62305 as_val=`eval 'as_val=${'$as_ac_var'}
62306                  $as_echo "$as_val"'`
62307    if test "x$as_val" = x""yes; then
62308   cat >>confdefs.h <<_ACEOF
62309 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62310 _ACEOF
62311  ice_have_mktemp=yes
62312 fi
62313 done
62314
62315 if test "${ice_have_mktemp}" = yes; then
62316 { $as_echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
62317 $as_echo_n "checking for mktemp declaration in stdlib.h... " >&6; }
62318 if test "${ice_cv_have_mktemp_decl+set}" = set; then
62319   $as_echo_n "(cached) " >&6
62320 else
62321
62322 ice_cv_have_mktemp_decl=no
62323 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62324 ice_re_word='(^|[^a-zA-Z0-9_])'
62325 for header in stdlib.h; do
62326 # Check for ordinary declaration
62327 cat >conftest.$ac_ext <<_ACEOF
62328 /* confdefs.h.  */
62329 _ACEOF
62330 cat confdefs.h >>conftest.$ac_ext
62331 cat >>conftest.$ac_ext <<_ACEOF
62332 /* end confdefs.h.  */
62333 #include <$header>
62334
62335 _ACEOF
62336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62337   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then
62338   ice_cv_have_mktemp_decl=yes
62339 fi
62340 rm -f conftest*
62341
62342 if test "$ice_cv_have_mktemp_decl" = yes; then
62343         break
62344 fi
62345 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62346 cat >conftest.$ac_ext <<_ACEOF
62347 /* confdefs.h.  */
62348 _ACEOF
62349 cat confdefs.h >>conftest.$ac_ext
62350 cat >>conftest.$ac_ext <<_ACEOF
62351 /* end confdefs.h.  */
62352 #include <$header>
62353
62354 _ACEOF
62355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62356   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62357   ice_cv_have_mktemp_decl=yes
62358 fi
62359 rm -f conftest*
62360
62361 if test "$ice_cv_have_mktemp_decl" = yes; then
62362         break
62363 fi
62364 done
62365
62366 fi
62367
62368 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
62369 $as_echo "$ice_cv_have_mktemp_decl" >&6; }
62370 if test "$ice_cv_have_mktemp_decl" = yes; then
62371
62372 cat >>confdefs.h <<_ACEOF
62373 #define HAVE_MKTEMP_DECL 1
62374 _ACEOF
62375
62376 fi
62377 fi
62378
62379
62380 ice_have_mktime=no
62381
62382 for ac_func in mktime
62383 do
62384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62385 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62386 $as_echo_n "checking for $ac_func... " >&6; }
62387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62388   $as_echo_n "(cached) " >&6
62389 else
62390   cat >conftest.$ac_ext <<_ACEOF
62391 /* confdefs.h.  */
62392 _ACEOF
62393 cat confdefs.h >>conftest.$ac_ext
62394 cat >>conftest.$ac_ext <<_ACEOF
62395 /* end confdefs.h.  */
62396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62398 #define $ac_func innocuous_$ac_func
62399
62400 /* System header to define __stub macros and hopefully few prototypes,
62401     which can conflict with char $ac_func (); below.
62402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62403     <limits.h> exists even on freestanding compilers.  */
62404
62405 #ifdef __STDC__
62406 # include <limits.h>
62407 #else
62408 # include <assert.h>
62409 #endif
62410
62411 #undef $ac_func
62412
62413 /* Override any GCC internal prototype to avoid an error.
62414    Use char because int might match the return type of a GCC
62415    builtin and then its argument prototype would still apply.  */
62416 #ifdef __cplusplus
62417 extern "C"
62418 #endif
62419 char $ac_func ();
62420 /* The GNU C library defines this for functions which it implements
62421     to always fail with ENOSYS.  Some functions are actually named
62422     something starting with __ and the normal name is an alias.  */
62423 #if defined __stub_$ac_func || defined __stub___$ac_func
62424 choke me
62425 #endif
62426
62427 int
62428 main ()
62429 {
62430 return $ac_func ();
62431   ;
62432   return 0;
62433 }
62434 _ACEOF
62435 rm -f conftest.$ac_objext conftest$ac_exeext
62436 if { (ac_try="$ac_link"
62437 case "(($ac_try" in
62438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62439   *) ac_try_echo=$ac_try;;
62440 esac
62441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62442 $as_echo "$ac_try_echo") >&5
62443   (eval "$ac_link") 2>conftest.er1
62444   ac_status=$?
62445   grep -v '^ *+' conftest.er1 >conftest.err
62446   rm -f conftest.er1
62447   cat conftest.err >&5
62448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62449   (exit $ac_status); } && {
62450          test -z "$ac_c_werror_flag" ||
62451          test ! -s conftest.err
62452        } && test -s conftest$ac_exeext && {
62453          test "$cross_compiling" = yes ||
62454          $as_test_x conftest$ac_exeext
62455        }; then
62456   eval "$as_ac_var=yes"
62457 else
62458   $as_echo "$as_me: failed program was:" >&5
62459 sed 's/^/| /' conftest.$ac_ext >&5
62460
62461         eval "$as_ac_var=no"
62462 fi
62463
62464 rm -rf conftest.dSYM
62465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62466       conftest$ac_exeext conftest.$ac_ext
62467 fi
62468 ac_res=`eval 'as_val=${'$as_ac_var'}
62469                  $as_echo "$as_val"'`
62470                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62471 $as_echo "$ac_res" >&6; }
62472 as_val=`eval 'as_val=${'$as_ac_var'}
62473                  $as_echo "$as_val"'`
62474    if test "x$as_val" = x""yes; then
62475   cat >>confdefs.h <<_ACEOF
62476 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62477 _ACEOF
62478  ice_have_mktime=yes
62479 fi
62480 done
62481
62482 if test "${ice_have_mktime}" = yes; then
62483 { $as_echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
62484 $as_echo_n "checking for mktime declaration in time.h sys/time.h... " >&6; }
62485 if test "${ice_cv_have_mktime_decl+set}" = set; then
62486   $as_echo_n "(cached) " >&6
62487 else
62488
62489 ice_cv_have_mktime_decl=no
62490 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62491 ice_re_word='(^|[^a-zA-Z0-9_])'
62492 for header in time.h sys/time.h; do
62493 # Check for ordinary declaration
62494 cat >conftest.$ac_ext <<_ACEOF
62495 /* confdefs.h.  */
62496 _ACEOF
62497 cat confdefs.h >>conftest.$ac_ext
62498 cat >>conftest.$ac_ext <<_ACEOF
62499 /* end confdefs.h.  */
62500 #include <$header>
62501
62502 _ACEOF
62503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62504   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then
62505   ice_cv_have_mktime_decl=yes
62506 fi
62507 rm -f conftest*
62508
62509 if test "$ice_cv_have_mktime_decl" = yes; then
62510         break
62511 fi
62512 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62513 cat >conftest.$ac_ext <<_ACEOF
62514 /* confdefs.h.  */
62515 _ACEOF
62516 cat confdefs.h >>conftest.$ac_ext
62517 cat >>conftest.$ac_ext <<_ACEOF
62518 /* end confdefs.h.  */
62519 #include <$header>
62520
62521 _ACEOF
62522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62523   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62524   ice_cv_have_mktime_decl=yes
62525 fi
62526 rm -f conftest*
62527
62528 if test "$ice_cv_have_mktime_decl" = yes; then
62529         break
62530 fi
62531 done
62532
62533 fi
62534
62535 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
62536 $as_echo "$ice_cv_have_mktime_decl" >&6; }
62537 if test "$ice_cv_have_mktime_decl" = yes; then
62538
62539 cat >>confdefs.h <<_ACEOF
62540 #define HAVE_MKTIME_DECL 1
62541 _ACEOF
62542
62543 fi
62544 fi
62545
62546
62547 for ac_func in on_exit
62548 do
62549 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62550 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62551 $as_echo_n "checking for $ac_func... " >&6; }
62552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62553   $as_echo_n "(cached) " >&6
62554 else
62555   cat >conftest.$ac_ext <<_ACEOF
62556 /* confdefs.h.  */
62557 _ACEOF
62558 cat confdefs.h >>conftest.$ac_ext
62559 cat >>conftest.$ac_ext <<_ACEOF
62560 /* end confdefs.h.  */
62561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62563 #define $ac_func innocuous_$ac_func
62564
62565 /* System header to define __stub macros and hopefully few prototypes,
62566     which can conflict with char $ac_func (); below.
62567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62568     <limits.h> exists even on freestanding compilers.  */
62569
62570 #ifdef __STDC__
62571 # include <limits.h>
62572 #else
62573 # include <assert.h>
62574 #endif
62575
62576 #undef $ac_func
62577
62578 /* Override any GCC internal prototype to avoid an error.
62579    Use char because int might match the return type of a GCC
62580    builtin and then its argument prototype would still apply.  */
62581 #ifdef __cplusplus
62582 extern "C"
62583 #endif
62584 char $ac_func ();
62585 /* The GNU C library defines this for functions which it implements
62586     to always fail with ENOSYS.  Some functions are actually named
62587     something starting with __ and the normal name is an alias.  */
62588 #if defined __stub_$ac_func || defined __stub___$ac_func
62589 choke me
62590 #endif
62591
62592 int
62593 main ()
62594 {
62595 return $ac_func ();
62596   ;
62597   return 0;
62598 }
62599 _ACEOF
62600 rm -f conftest.$ac_objext conftest$ac_exeext
62601 if { (ac_try="$ac_link"
62602 case "(($ac_try" in
62603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62604   *) ac_try_echo=$ac_try;;
62605 esac
62606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62607 $as_echo "$ac_try_echo") >&5
62608   (eval "$ac_link") 2>conftest.er1
62609   ac_status=$?
62610   grep -v '^ *+' conftest.er1 >conftest.err
62611   rm -f conftest.er1
62612   cat conftest.err >&5
62613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62614   (exit $ac_status); } && {
62615          test -z "$ac_c_werror_flag" ||
62616          test ! -s conftest.err
62617        } && test -s conftest$ac_exeext && {
62618          test "$cross_compiling" = yes ||
62619          $as_test_x conftest$ac_exeext
62620        }; then
62621   eval "$as_ac_var=yes"
62622 else
62623   $as_echo "$as_me: failed program was:" >&5
62624 sed 's/^/| /' conftest.$ac_ext >&5
62625
62626         eval "$as_ac_var=no"
62627 fi
62628
62629 rm -rf conftest.dSYM
62630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62631       conftest$ac_exeext conftest.$ac_ext
62632 fi
62633 ac_res=`eval 'as_val=${'$as_ac_var'}
62634                  $as_echo "$as_val"'`
62635                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62636 $as_echo "$ac_res" >&6; }
62637 as_val=`eval 'as_val=${'$as_ac_var'}
62638                  $as_echo "$as_val"'`
62639    if test "x$as_val" = x""yes; then
62640   cat >>confdefs.h <<_ACEOF
62641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62642 _ACEOF
62643
62644 fi
62645 done
62646
62647
62648 ice_have_openlog=no
62649
62650 for ac_func in openlog
62651 do
62652 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62653 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62654 $as_echo_n "checking for $ac_func... " >&6; }
62655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62656   $as_echo_n "(cached) " >&6
62657 else
62658   cat >conftest.$ac_ext <<_ACEOF
62659 /* confdefs.h.  */
62660 _ACEOF
62661 cat confdefs.h >>conftest.$ac_ext
62662 cat >>conftest.$ac_ext <<_ACEOF
62663 /* end confdefs.h.  */
62664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62665    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62666 #define $ac_func innocuous_$ac_func
62667
62668 /* System header to define __stub macros and hopefully few prototypes,
62669     which can conflict with char $ac_func (); below.
62670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62671     <limits.h> exists even on freestanding compilers.  */
62672
62673 #ifdef __STDC__
62674 # include <limits.h>
62675 #else
62676 # include <assert.h>
62677 #endif
62678
62679 #undef $ac_func
62680
62681 /* Override any GCC internal prototype to avoid an error.
62682    Use char because int might match the return type of a GCC
62683    builtin and then its argument prototype would still apply.  */
62684 #ifdef __cplusplus
62685 extern "C"
62686 #endif
62687 char $ac_func ();
62688 /* The GNU C library defines this for functions which it implements
62689     to always fail with ENOSYS.  Some functions are actually named
62690     something starting with __ and the normal name is an alias.  */
62691 #if defined __stub_$ac_func || defined __stub___$ac_func
62692 choke me
62693 #endif
62694
62695 int
62696 main ()
62697 {
62698 return $ac_func ();
62699   ;
62700   return 0;
62701 }
62702 _ACEOF
62703 rm -f conftest.$ac_objext conftest$ac_exeext
62704 if { (ac_try="$ac_link"
62705 case "(($ac_try" in
62706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62707   *) ac_try_echo=$ac_try;;
62708 esac
62709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62710 $as_echo "$ac_try_echo") >&5
62711   (eval "$ac_link") 2>conftest.er1
62712   ac_status=$?
62713   grep -v '^ *+' conftest.er1 >conftest.err
62714   rm -f conftest.er1
62715   cat conftest.err >&5
62716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62717   (exit $ac_status); } && {
62718          test -z "$ac_c_werror_flag" ||
62719          test ! -s conftest.err
62720        } && test -s conftest$ac_exeext && {
62721          test "$cross_compiling" = yes ||
62722          $as_test_x conftest$ac_exeext
62723        }; then
62724   eval "$as_ac_var=yes"
62725 else
62726   $as_echo "$as_me: failed program was:" >&5
62727 sed 's/^/| /' conftest.$ac_ext >&5
62728
62729         eval "$as_ac_var=no"
62730 fi
62731
62732 rm -rf conftest.dSYM
62733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62734       conftest$ac_exeext conftest.$ac_ext
62735 fi
62736 ac_res=`eval 'as_val=${'$as_ac_var'}
62737                  $as_echo "$as_val"'`
62738                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62739 $as_echo "$ac_res" >&6; }
62740 as_val=`eval 'as_val=${'$as_ac_var'}
62741                  $as_echo "$as_val"'`
62742    if test "x$as_val" = x""yes; then
62743   cat >>confdefs.h <<_ACEOF
62744 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62745 _ACEOF
62746  ice_have_openlog=yes
62747 fi
62748 done
62749
62750 if test "${ice_have_openlog}" = yes; then
62751 { $as_echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
62752 $as_echo_n "checking for openlog declaration in syslog.h... " >&6; }
62753 if test "${ice_cv_have_openlog_decl+set}" = set; then
62754   $as_echo_n "(cached) " >&6
62755 else
62756
62757 ice_cv_have_openlog_decl=no
62758 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62759 ice_re_word='(^|[^a-zA-Z0-9_])'
62760 for header in syslog.h; do
62761 # Check for ordinary declaration
62762 cat >conftest.$ac_ext <<_ACEOF
62763 /* confdefs.h.  */
62764 _ACEOF
62765 cat confdefs.h >>conftest.$ac_ext
62766 cat >>conftest.$ac_ext <<_ACEOF
62767 /* end confdefs.h.  */
62768 #include <$header>
62769
62770 _ACEOF
62771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62772   $EGREP "${ice_re_word}openlog[        ]*\(" >/dev/null 2>&1; then
62773   ice_cv_have_openlog_decl=yes
62774 fi
62775 rm -f conftest*
62776
62777 if test "$ice_cv_have_openlog_decl" = yes; then
62778         break
62779 fi
62780 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62781 cat >conftest.$ac_ext <<_ACEOF
62782 /* confdefs.h.  */
62783 _ACEOF
62784 cat confdefs.h >>conftest.$ac_ext
62785 cat >>conftest.$ac_ext <<_ACEOF
62786 /* end confdefs.h.  */
62787 #include <$header>
62788
62789 _ACEOF
62790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62791   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62792   ice_cv_have_openlog_decl=yes
62793 fi
62794 rm -f conftest*
62795
62796 if test "$ice_cv_have_openlog_decl" = yes; then
62797         break
62798 fi
62799 done
62800
62801 fi
62802
62803 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
62804 $as_echo "$ice_cv_have_openlog_decl" >&6; }
62805 if test "$ice_cv_have_openlog_decl" = yes; then
62806
62807 cat >>confdefs.h <<_ACEOF
62808 #define HAVE_OPENLOG_DECL 1
62809 _ACEOF
62810
62811 fi
62812 fi
62813
62814
62815 ice_have_pclose=no
62816
62817 for ac_func in pclose
62818 do
62819 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62820 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62821 $as_echo_n "checking for $ac_func... " >&6; }
62822 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62823   $as_echo_n "(cached) " >&6
62824 else
62825   cat >conftest.$ac_ext <<_ACEOF
62826 /* confdefs.h.  */
62827 _ACEOF
62828 cat confdefs.h >>conftest.$ac_ext
62829 cat >>conftest.$ac_ext <<_ACEOF
62830 /* end confdefs.h.  */
62831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62833 #define $ac_func innocuous_$ac_func
62834
62835 /* System header to define __stub macros and hopefully few prototypes,
62836     which can conflict with char $ac_func (); below.
62837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62838     <limits.h> exists even on freestanding compilers.  */
62839
62840 #ifdef __STDC__
62841 # include <limits.h>
62842 #else
62843 # include <assert.h>
62844 #endif
62845
62846 #undef $ac_func
62847
62848 /* Override any GCC internal prototype to avoid an error.
62849    Use char because int might match the return type of a GCC
62850    builtin and then its argument prototype would still apply.  */
62851 #ifdef __cplusplus
62852 extern "C"
62853 #endif
62854 char $ac_func ();
62855 /* The GNU C library defines this for functions which it implements
62856     to always fail with ENOSYS.  Some functions are actually named
62857     something starting with __ and the normal name is an alias.  */
62858 #if defined __stub_$ac_func || defined __stub___$ac_func
62859 choke me
62860 #endif
62861
62862 int
62863 main ()
62864 {
62865 return $ac_func ();
62866   ;
62867   return 0;
62868 }
62869 _ACEOF
62870 rm -f conftest.$ac_objext conftest$ac_exeext
62871 if { (ac_try="$ac_link"
62872 case "(($ac_try" in
62873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62874   *) ac_try_echo=$ac_try;;
62875 esac
62876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62877 $as_echo "$ac_try_echo") >&5
62878   (eval "$ac_link") 2>conftest.er1
62879   ac_status=$?
62880   grep -v '^ *+' conftest.er1 >conftest.err
62881   rm -f conftest.er1
62882   cat conftest.err >&5
62883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62884   (exit $ac_status); } && {
62885          test -z "$ac_c_werror_flag" ||
62886          test ! -s conftest.err
62887        } && test -s conftest$ac_exeext && {
62888          test "$cross_compiling" = yes ||
62889          $as_test_x conftest$ac_exeext
62890        }; then
62891   eval "$as_ac_var=yes"
62892 else
62893   $as_echo "$as_me: failed program was:" >&5
62894 sed 's/^/| /' conftest.$ac_ext >&5
62895
62896         eval "$as_ac_var=no"
62897 fi
62898
62899 rm -rf conftest.dSYM
62900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62901       conftest$ac_exeext conftest.$ac_ext
62902 fi
62903 ac_res=`eval 'as_val=${'$as_ac_var'}
62904                  $as_echo "$as_val"'`
62905                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62906 $as_echo "$ac_res" >&6; }
62907 as_val=`eval 'as_val=${'$as_ac_var'}
62908                  $as_echo "$as_val"'`
62909    if test "x$as_val" = x""yes; then
62910   cat >>confdefs.h <<_ACEOF
62911 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62912 _ACEOF
62913  ice_have_pclose=yes
62914 fi
62915 done
62916
62917 if test "${ice_have_pclose}" = yes; then
62918 { $as_echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
62919 $as_echo_n "checking for pclose declaration in stdio.h... " >&6; }
62920 if test "${ice_cv_have_pclose_decl+set}" = set; then
62921   $as_echo_n "(cached) " >&6
62922 else
62923
62924 ice_cv_have_pclose_decl=no
62925 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62926 ice_re_word='(^|[^a-zA-Z0-9_])'
62927 for header in stdio.h; do
62928 # Check for ordinary declaration
62929 cat >conftest.$ac_ext <<_ACEOF
62930 /* confdefs.h.  */
62931 _ACEOF
62932 cat confdefs.h >>conftest.$ac_ext
62933 cat >>conftest.$ac_ext <<_ACEOF
62934 /* end confdefs.h.  */
62935 #include <$header>
62936
62937 _ACEOF
62938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62939   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then
62940   ice_cv_have_pclose_decl=yes
62941 fi
62942 rm -f conftest*
62943
62944 if test "$ice_cv_have_pclose_decl" = yes; then
62945         break
62946 fi
62947 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62948 cat >conftest.$ac_ext <<_ACEOF
62949 /* confdefs.h.  */
62950 _ACEOF
62951 cat confdefs.h >>conftest.$ac_ext
62952 cat >>conftest.$ac_ext <<_ACEOF
62953 /* end confdefs.h.  */
62954 #include <$header>
62955
62956 _ACEOF
62957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62958   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62959   ice_cv_have_pclose_decl=yes
62960 fi
62961 rm -f conftest*
62962
62963 if test "$ice_cv_have_pclose_decl" = yes; then
62964         break
62965 fi
62966 done
62967
62968 fi
62969
62970 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
62971 $as_echo "$ice_cv_have_pclose_decl" >&6; }
62972 if test "$ice_cv_have_pclose_decl" = yes; then
62973
62974 cat >>confdefs.h <<_ACEOF
62975 #define HAVE_PCLOSE_DECL 1
62976 _ACEOF
62977
62978 fi
62979 fi
62980
62981
62982 ice_have_perror=no
62983
62984 for ac_func in perror
62985 do
62986 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62987 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62988 $as_echo_n "checking for $ac_func... " >&6; }
62989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62990   $as_echo_n "(cached) " >&6
62991 else
62992   cat >conftest.$ac_ext <<_ACEOF
62993 /* confdefs.h.  */
62994 _ACEOF
62995 cat confdefs.h >>conftest.$ac_ext
62996 cat >>conftest.$ac_ext <<_ACEOF
62997 /* end confdefs.h.  */
62998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62999    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63000 #define $ac_func innocuous_$ac_func
63001
63002 /* System header to define __stub macros and hopefully few prototypes,
63003     which can conflict with char $ac_func (); below.
63004     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63005     <limits.h> exists even on freestanding compilers.  */
63006
63007 #ifdef __STDC__
63008 # include <limits.h>
63009 #else
63010 # include <assert.h>
63011 #endif
63012
63013 #undef $ac_func
63014
63015 /* Override any GCC internal prototype to avoid an error.
63016    Use char because int might match the return type of a GCC
63017    builtin and then its argument prototype would still apply.  */
63018 #ifdef __cplusplus
63019 extern "C"
63020 #endif
63021 char $ac_func ();
63022 /* The GNU C library defines this for functions which it implements
63023     to always fail with ENOSYS.  Some functions are actually named
63024     something starting with __ and the normal name is an alias.  */
63025 #if defined __stub_$ac_func || defined __stub___$ac_func
63026 choke me
63027 #endif
63028
63029 int
63030 main ()
63031 {
63032 return $ac_func ();
63033   ;
63034   return 0;
63035 }
63036 _ACEOF
63037 rm -f conftest.$ac_objext conftest$ac_exeext
63038 if { (ac_try="$ac_link"
63039 case "(($ac_try" in
63040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63041   *) ac_try_echo=$ac_try;;
63042 esac
63043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63044 $as_echo "$ac_try_echo") >&5
63045   (eval "$ac_link") 2>conftest.er1
63046   ac_status=$?
63047   grep -v '^ *+' conftest.er1 >conftest.err
63048   rm -f conftest.er1
63049   cat conftest.err >&5
63050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63051   (exit $ac_status); } && {
63052          test -z "$ac_c_werror_flag" ||
63053          test ! -s conftest.err
63054        } && test -s conftest$ac_exeext && {
63055          test "$cross_compiling" = yes ||
63056          $as_test_x conftest$ac_exeext
63057        }; then
63058   eval "$as_ac_var=yes"
63059 else
63060   $as_echo "$as_me: failed program was:" >&5
63061 sed 's/^/| /' conftest.$ac_ext >&5
63062
63063         eval "$as_ac_var=no"
63064 fi
63065
63066 rm -rf conftest.dSYM
63067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63068       conftest$ac_exeext conftest.$ac_ext
63069 fi
63070 ac_res=`eval 'as_val=${'$as_ac_var'}
63071                  $as_echo "$as_val"'`
63072                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63073 $as_echo "$ac_res" >&6; }
63074 as_val=`eval 'as_val=${'$as_ac_var'}
63075                  $as_echo "$as_val"'`
63076    if test "x$as_val" = x""yes; then
63077   cat >>confdefs.h <<_ACEOF
63078 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63079 _ACEOF
63080  ice_have_perror=yes
63081 fi
63082 done
63083
63084 if test "${ice_have_perror}" = yes; then
63085 { $as_echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
63086 $as_echo_n "checking for perror declaration in stdio.h... " >&6; }
63087 if test "${ice_cv_have_perror_decl+set}" = set; then
63088   $as_echo_n "(cached) " >&6
63089 else
63090
63091 ice_cv_have_perror_decl=no
63092 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63093 ice_re_word='(^|[^a-zA-Z0-9_])'
63094 for header in stdio.h; do
63095 # Check for ordinary declaration
63096 cat >conftest.$ac_ext <<_ACEOF
63097 /* confdefs.h.  */
63098 _ACEOF
63099 cat confdefs.h >>conftest.$ac_ext
63100 cat >>conftest.$ac_ext <<_ACEOF
63101 /* end confdefs.h.  */
63102 #include <$header>
63103
63104 _ACEOF
63105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63106   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then
63107   ice_cv_have_perror_decl=yes
63108 fi
63109 rm -f conftest*
63110
63111 if test "$ice_cv_have_perror_decl" = yes; then
63112         break
63113 fi
63114 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63115 cat >conftest.$ac_ext <<_ACEOF
63116 /* confdefs.h.  */
63117 _ACEOF
63118 cat confdefs.h >>conftest.$ac_ext
63119 cat >>conftest.$ac_ext <<_ACEOF
63120 /* end confdefs.h.  */
63121 #include <$header>
63122
63123 _ACEOF
63124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63125   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63126   ice_cv_have_perror_decl=yes
63127 fi
63128 rm -f conftest*
63129
63130 if test "$ice_cv_have_perror_decl" = yes; then
63131         break
63132 fi
63133 done
63134
63135 fi
63136
63137 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
63138 $as_echo "$ice_cv_have_perror_decl" >&6; }
63139 if test "$ice_cv_have_perror_decl" = yes; then
63140
63141 cat >>confdefs.h <<_ACEOF
63142 #define HAVE_PERROR_DECL 1
63143 _ACEOF
63144
63145 fi
63146 fi
63147
63148
63149 ice_have_printf=no
63150
63151 for ac_func in printf
63152 do
63153 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63154 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63155 $as_echo_n "checking for $ac_func... " >&6; }
63156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63157   $as_echo_n "(cached) " >&6
63158 else
63159   cat >conftest.$ac_ext <<_ACEOF
63160 /* confdefs.h.  */
63161 _ACEOF
63162 cat confdefs.h >>conftest.$ac_ext
63163 cat >>conftest.$ac_ext <<_ACEOF
63164 /* end confdefs.h.  */
63165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63167 #define $ac_func innocuous_$ac_func
63168
63169 /* System header to define __stub macros and hopefully few prototypes,
63170     which can conflict with char $ac_func (); below.
63171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63172     <limits.h> exists even on freestanding compilers.  */
63173
63174 #ifdef __STDC__
63175 # include <limits.h>
63176 #else
63177 # include <assert.h>
63178 #endif
63179
63180 #undef $ac_func
63181
63182 /* Override any GCC internal prototype to avoid an error.
63183    Use char because int might match the return type of a GCC
63184    builtin and then its argument prototype would still apply.  */
63185 #ifdef __cplusplus
63186 extern "C"
63187 #endif
63188 char $ac_func ();
63189 /* The GNU C library defines this for functions which it implements
63190     to always fail with ENOSYS.  Some functions are actually named
63191     something starting with __ and the normal name is an alias.  */
63192 #if defined __stub_$ac_func || defined __stub___$ac_func
63193 choke me
63194 #endif
63195
63196 int
63197 main ()
63198 {
63199 return $ac_func ();
63200   ;
63201   return 0;
63202 }
63203 _ACEOF
63204 rm -f conftest.$ac_objext conftest$ac_exeext
63205 if { (ac_try="$ac_link"
63206 case "(($ac_try" in
63207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63208   *) ac_try_echo=$ac_try;;
63209 esac
63210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63211 $as_echo "$ac_try_echo") >&5
63212   (eval "$ac_link") 2>conftest.er1
63213   ac_status=$?
63214   grep -v '^ *+' conftest.er1 >conftest.err
63215   rm -f conftest.er1
63216   cat conftest.err >&5
63217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63218   (exit $ac_status); } && {
63219          test -z "$ac_c_werror_flag" ||
63220          test ! -s conftest.err
63221        } && test -s conftest$ac_exeext && {
63222          test "$cross_compiling" = yes ||
63223          $as_test_x conftest$ac_exeext
63224        }; then
63225   eval "$as_ac_var=yes"
63226 else
63227   $as_echo "$as_me: failed program was:" >&5
63228 sed 's/^/| /' conftest.$ac_ext >&5
63229
63230         eval "$as_ac_var=no"
63231 fi
63232
63233 rm -rf conftest.dSYM
63234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63235       conftest$ac_exeext conftest.$ac_ext
63236 fi
63237 ac_res=`eval 'as_val=${'$as_ac_var'}
63238                  $as_echo "$as_val"'`
63239                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63240 $as_echo "$ac_res" >&6; }
63241 as_val=`eval 'as_val=${'$as_ac_var'}
63242                  $as_echo "$as_val"'`
63243    if test "x$as_val" = x""yes; then
63244   cat >>confdefs.h <<_ACEOF
63245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63246 _ACEOF
63247  ice_have_printf=yes
63248 fi
63249 done
63250
63251 if test "${ice_have_printf}" = yes; then
63252 { $as_echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
63253 $as_echo_n "checking for printf declaration in stdio.h... " >&6; }
63254 if test "${ice_cv_have_printf_decl+set}" = set; then
63255   $as_echo_n "(cached) " >&6
63256 else
63257
63258 ice_cv_have_printf_decl=no
63259 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63260 ice_re_word='(^|[^a-zA-Z0-9_])'
63261 for header in stdio.h; do
63262 # Check for ordinary declaration
63263 cat >conftest.$ac_ext <<_ACEOF
63264 /* confdefs.h.  */
63265 _ACEOF
63266 cat confdefs.h >>conftest.$ac_ext
63267 cat >>conftest.$ac_ext <<_ACEOF
63268 /* end confdefs.h.  */
63269 #include <$header>
63270
63271 _ACEOF
63272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63273   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then
63274   ice_cv_have_printf_decl=yes
63275 fi
63276 rm -f conftest*
63277
63278 if test "$ice_cv_have_printf_decl" = yes; then
63279         break
63280 fi
63281 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63282 cat >conftest.$ac_ext <<_ACEOF
63283 /* confdefs.h.  */
63284 _ACEOF
63285 cat confdefs.h >>conftest.$ac_ext
63286 cat >>conftest.$ac_ext <<_ACEOF
63287 /* end confdefs.h.  */
63288 #include <$header>
63289
63290 _ACEOF
63291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63292   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63293   ice_cv_have_printf_decl=yes
63294 fi
63295 rm -f conftest*
63296
63297 if test "$ice_cv_have_printf_decl" = yes; then
63298         break
63299 fi
63300 done
63301
63302 fi
63303
63304 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
63305 $as_echo "$ice_cv_have_printf_decl" >&6; }
63306 if test "$ice_cv_have_printf_decl" = yes; then
63307
63308 cat >>confdefs.h <<_ACEOF
63309 #define HAVE_PRINTF_DECL 1
63310 _ACEOF
63311
63312 fi
63313 fi
63314
63315
63316 for ac_func in putenv
63317 do
63318 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63319 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63320 $as_echo_n "checking for $ac_func... " >&6; }
63321 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63322   $as_echo_n "(cached) " >&6
63323 else
63324   cat >conftest.$ac_ext <<_ACEOF
63325 /* confdefs.h.  */
63326 _ACEOF
63327 cat confdefs.h >>conftest.$ac_ext
63328 cat >>conftest.$ac_ext <<_ACEOF
63329 /* end confdefs.h.  */
63330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63332 #define $ac_func innocuous_$ac_func
63333
63334 /* System header to define __stub macros and hopefully few prototypes,
63335     which can conflict with char $ac_func (); below.
63336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63337     <limits.h> exists even on freestanding compilers.  */
63338
63339 #ifdef __STDC__
63340 # include <limits.h>
63341 #else
63342 # include <assert.h>
63343 #endif
63344
63345 #undef $ac_func
63346
63347 /* Override any GCC internal prototype to avoid an error.
63348    Use char because int might match the return type of a GCC
63349    builtin and then its argument prototype would still apply.  */
63350 #ifdef __cplusplus
63351 extern "C"
63352 #endif
63353 char $ac_func ();
63354 /* The GNU C library defines this for functions which it implements
63355     to always fail with ENOSYS.  Some functions are actually named
63356     something starting with __ and the normal name is an alias.  */
63357 #if defined __stub_$ac_func || defined __stub___$ac_func
63358 choke me
63359 #endif
63360
63361 int
63362 main ()
63363 {
63364 return $ac_func ();
63365   ;
63366   return 0;
63367 }
63368 _ACEOF
63369 rm -f conftest.$ac_objext conftest$ac_exeext
63370 if { (ac_try="$ac_link"
63371 case "(($ac_try" in
63372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63373   *) ac_try_echo=$ac_try;;
63374 esac
63375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63376 $as_echo "$ac_try_echo") >&5
63377   (eval "$ac_link") 2>conftest.er1
63378   ac_status=$?
63379   grep -v '^ *+' conftest.er1 >conftest.err
63380   rm -f conftest.er1
63381   cat conftest.err >&5
63382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63383   (exit $ac_status); } && {
63384          test -z "$ac_c_werror_flag" ||
63385          test ! -s conftest.err
63386        } && test -s conftest$ac_exeext && {
63387          test "$cross_compiling" = yes ||
63388          $as_test_x conftest$ac_exeext
63389        }; then
63390   eval "$as_ac_var=yes"
63391 else
63392   $as_echo "$as_me: failed program was:" >&5
63393 sed 's/^/| /' conftest.$ac_ext >&5
63394
63395         eval "$as_ac_var=no"
63396 fi
63397
63398 rm -rf conftest.dSYM
63399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63400       conftest$ac_exeext conftest.$ac_ext
63401 fi
63402 ac_res=`eval 'as_val=${'$as_ac_var'}
63403                  $as_echo "$as_val"'`
63404                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63405 $as_echo "$ac_res" >&6; }
63406 as_val=`eval 'as_val=${'$as_ac_var'}
63407                  $as_echo "$as_val"'`
63408    if test "x$as_val" = x""yes; then
63409   cat >>confdefs.h <<_ACEOF
63410 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63411 _ACEOF
63412
63413 fi
63414 done
63415
63416
63417 ice_have_puts=no
63418
63419 for ac_func in puts
63420 do
63421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63422 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63423 $as_echo_n "checking for $ac_func... " >&6; }
63424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63425   $as_echo_n "(cached) " >&6
63426 else
63427   cat >conftest.$ac_ext <<_ACEOF
63428 /* confdefs.h.  */
63429 _ACEOF
63430 cat confdefs.h >>conftest.$ac_ext
63431 cat >>conftest.$ac_ext <<_ACEOF
63432 /* end confdefs.h.  */
63433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63435 #define $ac_func innocuous_$ac_func
63436
63437 /* System header to define __stub macros and hopefully few prototypes,
63438     which can conflict with char $ac_func (); below.
63439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63440     <limits.h> exists even on freestanding compilers.  */
63441
63442 #ifdef __STDC__
63443 # include <limits.h>
63444 #else
63445 # include <assert.h>
63446 #endif
63447
63448 #undef $ac_func
63449
63450 /* Override any GCC internal prototype to avoid an error.
63451    Use char because int might match the return type of a GCC
63452    builtin and then its argument prototype would still apply.  */
63453 #ifdef __cplusplus
63454 extern "C"
63455 #endif
63456 char $ac_func ();
63457 /* The GNU C library defines this for functions which it implements
63458     to always fail with ENOSYS.  Some functions are actually named
63459     something starting with __ and the normal name is an alias.  */
63460 #if defined __stub_$ac_func || defined __stub___$ac_func
63461 choke me
63462 #endif
63463
63464 int
63465 main ()
63466 {
63467 return $ac_func ();
63468   ;
63469   return 0;
63470 }
63471 _ACEOF
63472 rm -f conftest.$ac_objext conftest$ac_exeext
63473 if { (ac_try="$ac_link"
63474 case "(($ac_try" in
63475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63476   *) ac_try_echo=$ac_try;;
63477 esac
63478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63479 $as_echo "$ac_try_echo") >&5
63480   (eval "$ac_link") 2>conftest.er1
63481   ac_status=$?
63482   grep -v '^ *+' conftest.er1 >conftest.err
63483   rm -f conftest.er1
63484   cat conftest.err >&5
63485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63486   (exit $ac_status); } && {
63487          test -z "$ac_c_werror_flag" ||
63488          test ! -s conftest.err
63489        } && test -s conftest$ac_exeext && {
63490          test "$cross_compiling" = yes ||
63491          $as_test_x conftest$ac_exeext
63492        }; then
63493   eval "$as_ac_var=yes"
63494 else
63495   $as_echo "$as_me: failed program was:" >&5
63496 sed 's/^/| /' conftest.$ac_ext >&5
63497
63498         eval "$as_ac_var=no"
63499 fi
63500
63501 rm -rf conftest.dSYM
63502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63503       conftest$ac_exeext conftest.$ac_ext
63504 fi
63505 ac_res=`eval 'as_val=${'$as_ac_var'}
63506                  $as_echo "$as_val"'`
63507                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63508 $as_echo "$ac_res" >&6; }
63509 as_val=`eval 'as_val=${'$as_ac_var'}
63510                  $as_echo "$as_val"'`
63511    if test "x$as_val" = x""yes; then
63512   cat >>confdefs.h <<_ACEOF
63513 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63514 _ACEOF
63515  ice_have_puts=yes
63516 fi
63517 done
63518
63519 if test "${ice_have_puts}" = yes; then
63520 { $as_echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
63521 $as_echo_n "checking for puts declaration in stdio.h... " >&6; }
63522 if test "${ice_cv_have_puts_decl+set}" = set; then
63523   $as_echo_n "(cached) " >&6
63524 else
63525
63526 ice_cv_have_puts_decl=no
63527 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63528 ice_re_word='(^|[^a-zA-Z0-9_])'
63529 for header in stdio.h; do
63530 # Check for ordinary declaration
63531 cat >conftest.$ac_ext <<_ACEOF
63532 /* confdefs.h.  */
63533 _ACEOF
63534 cat confdefs.h >>conftest.$ac_ext
63535 cat >>conftest.$ac_ext <<_ACEOF
63536 /* end confdefs.h.  */
63537 #include <$header>
63538
63539 _ACEOF
63540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63541   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then
63542   ice_cv_have_puts_decl=yes
63543 fi
63544 rm -f conftest*
63545
63546 if test "$ice_cv_have_puts_decl" = yes; then
63547         break
63548 fi
63549 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63550 cat >conftest.$ac_ext <<_ACEOF
63551 /* confdefs.h.  */
63552 _ACEOF
63553 cat confdefs.h >>conftest.$ac_ext
63554 cat >>conftest.$ac_ext <<_ACEOF
63555 /* end confdefs.h.  */
63556 #include <$header>
63557
63558 _ACEOF
63559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63560   $EGREP "${ice_re_word}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63561   ice_cv_have_puts_decl=yes
63562 fi
63563 rm -f conftest*
63564
63565 if test "$ice_cv_have_puts_decl" = yes; then
63566         break
63567 fi
63568 done
63569
63570 fi
63571
63572 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
63573 $as_echo "$ice_cv_have_puts_decl" >&6; }
63574 if test "$ice_cv_have_puts_decl" = yes; then
63575
63576 cat >>confdefs.h <<_ACEOF
63577 #define HAVE_PUTS_DECL 1
63578 _ACEOF
63579
63580 fi
63581 fi
63582
63583
63584 ice_have_realloc=no
63585
63586 for ac_func in realloc
63587 do
63588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63589 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63590 $as_echo_n "checking for $ac_func... " >&6; }
63591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63592   $as_echo_n "(cached) " >&6
63593 else
63594   cat >conftest.$ac_ext <<_ACEOF
63595 /* confdefs.h.  */
63596 _ACEOF
63597 cat confdefs.h >>conftest.$ac_ext
63598 cat >>conftest.$ac_ext <<_ACEOF
63599 /* end confdefs.h.  */
63600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63602 #define $ac_func innocuous_$ac_func
63603
63604 /* System header to define __stub macros and hopefully few prototypes,
63605     which can conflict with char $ac_func (); below.
63606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63607     <limits.h> exists even on freestanding compilers.  */
63608
63609 #ifdef __STDC__
63610 # include <limits.h>
63611 #else
63612 # include <assert.h>
63613 #endif
63614
63615 #undef $ac_func
63616
63617 /* Override any GCC internal prototype to avoid an error.
63618    Use char because int might match the return type of a GCC
63619    builtin and then its argument prototype would still apply.  */
63620 #ifdef __cplusplus
63621 extern "C"
63622 #endif
63623 char $ac_func ();
63624 /* The GNU C library defines this for functions which it implements
63625     to always fail with ENOSYS.  Some functions are actually named
63626     something starting with __ and the normal name is an alias.  */
63627 #if defined __stub_$ac_func || defined __stub___$ac_func
63628 choke me
63629 #endif
63630
63631 int
63632 main ()
63633 {
63634 return $ac_func ();
63635   ;
63636   return 0;
63637 }
63638 _ACEOF
63639 rm -f conftest.$ac_objext conftest$ac_exeext
63640 if { (ac_try="$ac_link"
63641 case "(($ac_try" in
63642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63643   *) ac_try_echo=$ac_try;;
63644 esac
63645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63646 $as_echo "$ac_try_echo") >&5
63647   (eval "$ac_link") 2>conftest.er1
63648   ac_status=$?
63649   grep -v '^ *+' conftest.er1 >conftest.err
63650   rm -f conftest.er1
63651   cat conftest.err >&5
63652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63653   (exit $ac_status); } && {
63654          test -z "$ac_c_werror_flag" ||
63655          test ! -s conftest.err
63656        } && test -s conftest$ac_exeext && {
63657          test "$cross_compiling" = yes ||
63658          $as_test_x conftest$ac_exeext
63659        }; then
63660   eval "$as_ac_var=yes"
63661 else
63662   $as_echo "$as_me: failed program was:" >&5
63663 sed 's/^/| /' conftest.$ac_ext >&5
63664
63665         eval "$as_ac_var=no"
63666 fi
63667
63668 rm -rf conftest.dSYM
63669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63670       conftest$ac_exeext conftest.$ac_ext
63671 fi
63672 ac_res=`eval 'as_val=${'$as_ac_var'}
63673                  $as_echo "$as_val"'`
63674                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63675 $as_echo "$ac_res" >&6; }
63676 as_val=`eval 'as_val=${'$as_ac_var'}
63677                  $as_echo "$as_val"'`
63678    if test "x$as_val" = x""yes; then
63679   cat >>confdefs.h <<_ACEOF
63680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63681 _ACEOF
63682  ice_have_realloc=yes
63683 fi
63684 done
63685
63686 if test "${ice_have_realloc}" = yes; then
63687 { $as_echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
63688 $as_echo_n "checking for realloc declaration in stdlib.h... " >&6; }
63689 if test "${ice_cv_have_realloc_decl+set}" = set; then
63690   $as_echo_n "(cached) " >&6
63691 else
63692
63693 ice_cv_have_realloc_decl=no
63694 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63695 ice_re_word='(^|[^a-zA-Z0-9_])'
63696 for header in stdlib.h; do
63697 # Check for ordinary declaration
63698 cat >conftest.$ac_ext <<_ACEOF
63699 /* confdefs.h.  */
63700 _ACEOF
63701 cat confdefs.h >>conftest.$ac_ext
63702 cat >>conftest.$ac_ext <<_ACEOF
63703 /* end confdefs.h.  */
63704 #include <$header>
63705
63706 _ACEOF
63707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63708   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then
63709   ice_cv_have_realloc_decl=yes
63710 fi
63711 rm -f conftest*
63712
63713 if test "$ice_cv_have_realloc_decl" = yes; then
63714         break
63715 fi
63716 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63717 cat >conftest.$ac_ext <<_ACEOF
63718 /* confdefs.h.  */
63719 _ACEOF
63720 cat confdefs.h >>conftest.$ac_ext
63721 cat >>conftest.$ac_ext <<_ACEOF
63722 /* end confdefs.h.  */
63723 #include <$header>
63724
63725 _ACEOF
63726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63727   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63728   ice_cv_have_realloc_decl=yes
63729 fi
63730 rm -f conftest*
63731
63732 if test "$ice_cv_have_realloc_decl" = yes; then
63733         break
63734 fi
63735 done
63736
63737 fi
63738
63739 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
63740 $as_echo "$ice_cv_have_realloc_decl" >&6; }
63741 if test "$ice_cv_have_realloc_decl" = yes; then
63742
63743 cat >>confdefs.h <<_ACEOF
63744 #define HAVE_REALLOC_DECL 1
63745 _ACEOF
63746
63747 fi
63748 fi
63749
63750
63751 ice_have_recvfrom=no
63752
63753 for ac_func in recvfrom
63754 do
63755 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63756 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63757 $as_echo_n "checking for $ac_func... " >&6; }
63758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63759   $as_echo_n "(cached) " >&6
63760 else
63761   cat >conftest.$ac_ext <<_ACEOF
63762 /* confdefs.h.  */
63763 _ACEOF
63764 cat confdefs.h >>conftest.$ac_ext
63765 cat >>conftest.$ac_ext <<_ACEOF
63766 /* end confdefs.h.  */
63767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63769 #define $ac_func innocuous_$ac_func
63770
63771 /* System header to define __stub macros and hopefully few prototypes,
63772     which can conflict with char $ac_func (); below.
63773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63774     <limits.h> exists even on freestanding compilers.  */
63775
63776 #ifdef __STDC__
63777 # include <limits.h>
63778 #else
63779 # include <assert.h>
63780 #endif
63781
63782 #undef $ac_func
63783
63784 /* Override any GCC internal prototype to avoid an error.
63785    Use char because int might match the return type of a GCC
63786    builtin and then its argument prototype would still apply.  */
63787 #ifdef __cplusplus
63788 extern "C"
63789 #endif
63790 char $ac_func ();
63791 /* The GNU C library defines this for functions which it implements
63792     to always fail with ENOSYS.  Some functions are actually named
63793     something starting with __ and the normal name is an alias.  */
63794 #if defined __stub_$ac_func || defined __stub___$ac_func
63795 choke me
63796 #endif
63797
63798 int
63799 main ()
63800 {
63801 return $ac_func ();
63802   ;
63803   return 0;
63804 }
63805 _ACEOF
63806 rm -f conftest.$ac_objext conftest$ac_exeext
63807 if { (ac_try="$ac_link"
63808 case "(($ac_try" in
63809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63810   *) ac_try_echo=$ac_try;;
63811 esac
63812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63813 $as_echo "$ac_try_echo") >&5
63814   (eval "$ac_link") 2>conftest.er1
63815   ac_status=$?
63816   grep -v '^ *+' conftest.er1 >conftest.err
63817   rm -f conftest.er1
63818   cat conftest.err >&5
63819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63820   (exit $ac_status); } && {
63821          test -z "$ac_c_werror_flag" ||
63822          test ! -s conftest.err
63823        } && test -s conftest$ac_exeext && {
63824          test "$cross_compiling" = yes ||
63825          $as_test_x conftest$ac_exeext
63826        }; then
63827   eval "$as_ac_var=yes"
63828 else
63829   $as_echo "$as_me: failed program was:" >&5
63830 sed 's/^/| /' conftest.$ac_ext >&5
63831
63832         eval "$as_ac_var=no"
63833 fi
63834
63835 rm -rf conftest.dSYM
63836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63837       conftest$ac_exeext conftest.$ac_ext
63838 fi
63839 ac_res=`eval 'as_val=${'$as_ac_var'}
63840                  $as_echo "$as_val"'`
63841                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63842 $as_echo "$ac_res" >&6; }
63843 as_val=`eval 'as_val=${'$as_ac_var'}
63844                  $as_echo "$as_val"'`
63845    if test "x$as_val" = x""yes; then
63846   cat >>confdefs.h <<_ACEOF
63847 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63848 _ACEOF
63849  ice_have_recvfrom=yes
63850 fi
63851 done
63852
63853 if test "${ice_have_recvfrom}" = yes; then
63854 { $as_echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
63855 $as_echo_n "checking for recvfrom declaration in sys/types.h sys/socket.h... " >&6; }
63856 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
63857   $as_echo_n "(cached) " >&6
63858 else
63859
63860 ice_cv_have_recvfrom_decl=no
63861 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63862 ice_re_word='(^|[^a-zA-Z0-9_])'
63863 for header in sys/types.h sys/socket.h; do
63864 # Check for ordinary declaration
63865 cat >conftest.$ac_ext <<_ACEOF
63866 /* confdefs.h.  */
63867 _ACEOF
63868 cat confdefs.h >>conftest.$ac_ext
63869 cat >>conftest.$ac_ext <<_ACEOF
63870 /* end confdefs.h.  */
63871 #include <$header>
63872
63873 _ACEOF
63874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63875   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then
63876   ice_cv_have_recvfrom_decl=yes
63877 fi
63878 rm -f conftest*
63879
63880 if test "$ice_cv_have_recvfrom_decl" = yes; then
63881         break
63882 fi
63883 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63884 cat >conftest.$ac_ext <<_ACEOF
63885 /* confdefs.h.  */
63886 _ACEOF
63887 cat confdefs.h >>conftest.$ac_ext
63888 cat >>conftest.$ac_ext <<_ACEOF
63889 /* end confdefs.h.  */
63890 #include <$header>
63891
63892 _ACEOF
63893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63894   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63895   ice_cv_have_recvfrom_decl=yes
63896 fi
63897 rm -f conftest*
63898
63899 if test "$ice_cv_have_recvfrom_decl" = yes; then
63900         break
63901 fi
63902 done
63903
63904 fi
63905
63906 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
63907 $as_echo "$ice_cv_have_recvfrom_decl" >&6; }
63908 if test "$ice_cv_have_recvfrom_decl" = yes; then
63909
63910 cat >>confdefs.h <<_ACEOF
63911 #define HAVE_RECVFROM_DECL 1
63912 _ACEOF
63913
63914 fi
63915 fi
63916
63917
63918 ice_have_remove=no
63919
63920 for ac_func in remove
63921 do
63922 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63923 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63924 $as_echo_n "checking for $ac_func... " >&6; }
63925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63926   $as_echo_n "(cached) " >&6
63927 else
63928   cat >conftest.$ac_ext <<_ACEOF
63929 /* confdefs.h.  */
63930 _ACEOF
63931 cat confdefs.h >>conftest.$ac_ext
63932 cat >>conftest.$ac_ext <<_ACEOF
63933 /* end confdefs.h.  */
63934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63936 #define $ac_func innocuous_$ac_func
63937
63938 /* System header to define __stub macros and hopefully few prototypes,
63939     which can conflict with char $ac_func (); below.
63940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63941     <limits.h> exists even on freestanding compilers.  */
63942
63943 #ifdef __STDC__
63944 # include <limits.h>
63945 #else
63946 # include <assert.h>
63947 #endif
63948
63949 #undef $ac_func
63950
63951 /* Override any GCC internal prototype to avoid an error.
63952    Use char because int might match the return type of a GCC
63953    builtin and then its argument prototype would still apply.  */
63954 #ifdef __cplusplus
63955 extern "C"
63956 #endif
63957 char $ac_func ();
63958 /* The GNU C library defines this for functions which it implements
63959     to always fail with ENOSYS.  Some functions are actually named
63960     something starting with __ and the normal name is an alias.  */
63961 #if defined __stub_$ac_func || defined __stub___$ac_func
63962 choke me
63963 #endif
63964
63965 int
63966 main ()
63967 {
63968 return $ac_func ();
63969   ;
63970   return 0;
63971 }
63972 _ACEOF
63973 rm -f conftest.$ac_objext conftest$ac_exeext
63974 if { (ac_try="$ac_link"
63975 case "(($ac_try" in
63976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63977   *) ac_try_echo=$ac_try;;
63978 esac
63979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63980 $as_echo "$ac_try_echo") >&5
63981   (eval "$ac_link") 2>conftest.er1
63982   ac_status=$?
63983   grep -v '^ *+' conftest.er1 >conftest.err
63984   rm -f conftest.er1
63985   cat conftest.err >&5
63986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63987   (exit $ac_status); } && {
63988          test -z "$ac_c_werror_flag" ||
63989          test ! -s conftest.err
63990        } && test -s conftest$ac_exeext && {
63991          test "$cross_compiling" = yes ||
63992          $as_test_x conftest$ac_exeext
63993        }; then
63994   eval "$as_ac_var=yes"
63995 else
63996   $as_echo "$as_me: failed program was:" >&5
63997 sed 's/^/| /' conftest.$ac_ext >&5
63998
63999         eval "$as_ac_var=no"
64000 fi
64001
64002 rm -rf conftest.dSYM
64003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64004       conftest$ac_exeext conftest.$ac_ext
64005 fi
64006 ac_res=`eval 'as_val=${'$as_ac_var'}
64007                  $as_echo "$as_val"'`
64008                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64009 $as_echo "$ac_res" >&6; }
64010 as_val=`eval 'as_val=${'$as_ac_var'}
64011                  $as_echo "$as_val"'`
64012    if test "x$as_val" = x""yes; then
64013   cat >>confdefs.h <<_ACEOF
64014 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64015 _ACEOF
64016  ice_have_remove=yes
64017 fi
64018 done
64019
64020 if test "${ice_have_remove}" = yes; then
64021 { $as_echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
64022 $as_echo_n "checking for remove declaration in stdio.h... " >&6; }
64023 if test "${ice_cv_have_remove_decl+set}" = set; then
64024   $as_echo_n "(cached) " >&6
64025 else
64026
64027 ice_cv_have_remove_decl=no
64028 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64029 ice_re_word='(^|[^a-zA-Z0-9_])'
64030 for header in stdio.h; do
64031 # Check for ordinary declaration
64032 cat >conftest.$ac_ext <<_ACEOF
64033 /* confdefs.h.  */
64034 _ACEOF
64035 cat confdefs.h >>conftest.$ac_ext
64036 cat >>conftest.$ac_ext <<_ACEOF
64037 /* end confdefs.h.  */
64038 #include <$header>
64039
64040 _ACEOF
64041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64042   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then
64043   ice_cv_have_remove_decl=yes
64044 fi
64045 rm -f conftest*
64046
64047 if test "$ice_cv_have_remove_decl" = yes; then
64048         break
64049 fi
64050 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64051 cat >conftest.$ac_ext <<_ACEOF
64052 /* confdefs.h.  */
64053 _ACEOF
64054 cat confdefs.h >>conftest.$ac_ext
64055 cat >>conftest.$ac_ext <<_ACEOF
64056 /* end confdefs.h.  */
64057 #include <$header>
64058
64059 _ACEOF
64060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64061   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64062   ice_cv_have_remove_decl=yes
64063 fi
64064 rm -f conftest*
64065
64066 if test "$ice_cv_have_remove_decl" = yes; then
64067         break
64068 fi
64069 done
64070
64071 fi
64072
64073 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
64074 $as_echo "$ice_cv_have_remove_decl" >&6; }
64075 if test "$ice_cv_have_remove_decl" = yes; then
64076
64077 cat >>confdefs.h <<_ACEOF
64078 #define HAVE_REMOVE_DECL 1
64079 _ACEOF
64080
64081 fi
64082 fi
64083
64084
64085 ice_have_rename=no
64086
64087 for ac_func in rename
64088 do
64089 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64090 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64091 $as_echo_n "checking for $ac_func... " >&6; }
64092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64093   $as_echo_n "(cached) " >&6
64094 else
64095   cat >conftest.$ac_ext <<_ACEOF
64096 /* confdefs.h.  */
64097 _ACEOF
64098 cat confdefs.h >>conftest.$ac_ext
64099 cat >>conftest.$ac_ext <<_ACEOF
64100 /* end confdefs.h.  */
64101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64103 #define $ac_func innocuous_$ac_func
64104
64105 /* System header to define __stub macros and hopefully few prototypes,
64106     which can conflict with char $ac_func (); below.
64107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64108     <limits.h> exists even on freestanding compilers.  */
64109
64110 #ifdef __STDC__
64111 # include <limits.h>
64112 #else
64113 # include <assert.h>
64114 #endif
64115
64116 #undef $ac_func
64117
64118 /* Override any GCC internal prototype to avoid an error.
64119    Use char because int might match the return type of a GCC
64120    builtin and then its argument prototype would still apply.  */
64121 #ifdef __cplusplus
64122 extern "C"
64123 #endif
64124 char $ac_func ();
64125 /* The GNU C library defines this for functions which it implements
64126     to always fail with ENOSYS.  Some functions are actually named
64127     something starting with __ and the normal name is an alias.  */
64128 #if defined __stub_$ac_func || defined __stub___$ac_func
64129 choke me
64130 #endif
64131
64132 int
64133 main ()
64134 {
64135 return $ac_func ();
64136   ;
64137   return 0;
64138 }
64139 _ACEOF
64140 rm -f conftest.$ac_objext conftest$ac_exeext
64141 if { (ac_try="$ac_link"
64142 case "(($ac_try" in
64143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64144   *) ac_try_echo=$ac_try;;
64145 esac
64146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64147 $as_echo "$ac_try_echo") >&5
64148   (eval "$ac_link") 2>conftest.er1
64149   ac_status=$?
64150   grep -v '^ *+' conftest.er1 >conftest.err
64151   rm -f conftest.er1
64152   cat conftest.err >&5
64153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64154   (exit $ac_status); } && {
64155          test -z "$ac_c_werror_flag" ||
64156          test ! -s conftest.err
64157        } && test -s conftest$ac_exeext && {
64158          test "$cross_compiling" = yes ||
64159          $as_test_x conftest$ac_exeext
64160        }; then
64161   eval "$as_ac_var=yes"
64162 else
64163   $as_echo "$as_me: failed program was:" >&5
64164 sed 's/^/| /' conftest.$ac_ext >&5
64165
64166         eval "$as_ac_var=no"
64167 fi
64168
64169 rm -rf conftest.dSYM
64170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64171       conftest$ac_exeext conftest.$ac_ext
64172 fi
64173 ac_res=`eval 'as_val=${'$as_ac_var'}
64174                  $as_echo "$as_val"'`
64175                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64176 $as_echo "$ac_res" >&6; }
64177 as_val=`eval 'as_val=${'$as_ac_var'}
64178                  $as_echo "$as_val"'`
64179    if test "x$as_val" = x""yes; then
64180   cat >>confdefs.h <<_ACEOF
64181 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64182 _ACEOF
64183  ice_have_rename=yes
64184 fi
64185 done
64186
64187 if test "${ice_have_rename}" = yes; then
64188 { $as_echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
64189 $as_echo_n "checking for rename declaration in stdio.h... " >&6; }
64190 if test "${ice_cv_have_rename_decl+set}" = set; then
64191   $as_echo_n "(cached) " >&6
64192 else
64193
64194 ice_cv_have_rename_decl=no
64195 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64196 ice_re_word='(^|[^a-zA-Z0-9_])'
64197 for header in stdio.h; do
64198 # Check for ordinary declaration
64199 cat >conftest.$ac_ext <<_ACEOF
64200 /* confdefs.h.  */
64201 _ACEOF
64202 cat confdefs.h >>conftest.$ac_ext
64203 cat >>conftest.$ac_ext <<_ACEOF
64204 /* end confdefs.h.  */
64205 #include <$header>
64206
64207 _ACEOF
64208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64209   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then
64210   ice_cv_have_rename_decl=yes
64211 fi
64212 rm -f conftest*
64213
64214 if test "$ice_cv_have_rename_decl" = yes; then
64215         break
64216 fi
64217 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64218 cat >conftest.$ac_ext <<_ACEOF
64219 /* confdefs.h.  */
64220 _ACEOF
64221 cat confdefs.h >>conftest.$ac_ext
64222 cat >>conftest.$ac_ext <<_ACEOF
64223 /* end confdefs.h.  */
64224 #include <$header>
64225
64226 _ACEOF
64227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64228   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64229   ice_cv_have_rename_decl=yes
64230 fi
64231 rm -f conftest*
64232
64233 if test "$ice_cv_have_rename_decl" = yes; then
64234         break
64235 fi
64236 done
64237
64238 fi
64239
64240 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
64241 $as_echo "$ice_cv_have_rename_decl" >&6; }
64242 if test "$ice_cv_have_rename_decl" = yes; then
64243
64244 cat >>confdefs.h <<_ACEOF
64245 #define HAVE_RENAME_DECL 1
64246 _ACEOF
64247
64248 fi
64249 fi
64250
64251
64252 ice_have_rewind=no
64253
64254 for ac_func in rewind
64255 do
64256 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64257 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64258 $as_echo_n "checking for $ac_func... " >&6; }
64259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64260   $as_echo_n "(cached) " >&6
64261 else
64262   cat >conftest.$ac_ext <<_ACEOF
64263 /* confdefs.h.  */
64264 _ACEOF
64265 cat confdefs.h >>conftest.$ac_ext
64266 cat >>conftest.$ac_ext <<_ACEOF
64267 /* end confdefs.h.  */
64268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64270 #define $ac_func innocuous_$ac_func
64271
64272 /* System header to define __stub macros and hopefully few prototypes,
64273     which can conflict with char $ac_func (); below.
64274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64275     <limits.h> exists even on freestanding compilers.  */
64276
64277 #ifdef __STDC__
64278 # include <limits.h>
64279 #else
64280 # include <assert.h>
64281 #endif
64282
64283 #undef $ac_func
64284
64285 /* Override any GCC internal prototype to avoid an error.
64286    Use char because int might match the return type of a GCC
64287    builtin and then its argument prototype would still apply.  */
64288 #ifdef __cplusplus
64289 extern "C"
64290 #endif
64291 char $ac_func ();
64292 /* The GNU C library defines this for functions which it implements
64293     to always fail with ENOSYS.  Some functions are actually named
64294     something starting with __ and the normal name is an alias.  */
64295 #if defined __stub_$ac_func || defined __stub___$ac_func
64296 choke me
64297 #endif
64298
64299 int
64300 main ()
64301 {
64302 return $ac_func ();
64303   ;
64304   return 0;
64305 }
64306 _ACEOF
64307 rm -f conftest.$ac_objext conftest$ac_exeext
64308 if { (ac_try="$ac_link"
64309 case "(($ac_try" in
64310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64311   *) ac_try_echo=$ac_try;;
64312 esac
64313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64314 $as_echo "$ac_try_echo") >&5
64315   (eval "$ac_link") 2>conftest.er1
64316   ac_status=$?
64317   grep -v '^ *+' conftest.er1 >conftest.err
64318   rm -f conftest.er1
64319   cat conftest.err >&5
64320   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64321   (exit $ac_status); } && {
64322          test -z "$ac_c_werror_flag" ||
64323          test ! -s conftest.err
64324        } && test -s conftest$ac_exeext && {
64325          test "$cross_compiling" = yes ||
64326          $as_test_x conftest$ac_exeext
64327        }; then
64328   eval "$as_ac_var=yes"
64329 else
64330   $as_echo "$as_me: failed program was:" >&5
64331 sed 's/^/| /' conftest.$ac_ext >&5
64332
64333         eval "$as_ac_var=no"
64334 fi
64335
64336 rm -rf conftest.dSYM
64337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64338       conftest$ac_exeext conftest.$ac_ext
64339 fi
64340 ac_res=`eval 'as_val=${'$as_ac_var'}
64341                  $as_echo "$as_val"'`
64342                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64343 $as_echo "$ac_res" >&6; }
64344 as_val=`eval 'as_val=${'$as_ac_var'}
64345                  $as_echo "$as_val"'`
64346    if test "x$as_val" = x""yes; then
64347   cat >>confdefs.h <<_ACEOF
64348 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64349 _ACEOF
64350  ice_have_rewind=yes
64351 fi
64352 done
64353
64354 if test "${ice_have_rewind}" = yes; then
64355 { $as_echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
64356 $as_echo_n "checking for rewind declaration in stdio.h... " >&6; }
64357 if test "${ice_cv_have_rewind_decl+set}" = set; then
64358   $as_echo_n "(cached) " >&6
64359 else
64360
64361 ice_cv_have_rewind_decl=no
64362 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64363 ice_re_word='(^|[^a-zA-Z0-9_])'
64364 for header in stdio.h; do
64365 # Check for ordinary declaration
64366 cat >conftest.$ac_ext <<_ACEOF
64367 /* confdefs.h.  */
64368 _ACEOF
64369 cat confdefs.h >>conftest.$ac_ext
64370 cat >>conftest.$ac_ext <<_ACEOF
64371 /* end confdefs.h.  */
64372 #include <$header>
64373
64374 _ACEOF
64375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64376   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then
64377   ice_cv_have_rewind_decl=yes
64378 fi
64379 rm -f conftest*
64380
64381 if test "$ice_cv_have_rewind_decl" = yes; then
64382         break
64383 fi
64384 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64385 cat >conftest.$ac_ext <<_ACEOF
64386 /* confdefs.h.  */
64387 _ACEOF
64388 cat confdefs.h >>conftest.$ac_ext
64389 cat >>conftest.$ac_ext <<_ACEOF
64390 /* end confdefs.h.  */
64391 #include <$header>
64392
64393 _ACEOF
64394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64395   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64396   ice_cv_have_rewind_decl=yes
64397 fi
64398 rm -f conftest*
64399
64400 if test "$ice_cv_have_rewind_decl" = yes; then
64401         break
64402 fi
64403 done
64404
64405 fi
64406
64407 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
64408 $as_echo "$ice_cv_have_rewind_decl" >&6; }
64409 if test "$ice_cv_have_rewind_decl" = yes; then
64410
64411 cat >>confdefs.h <<_ACEOF
64412 #define HAVE_REWIND_DECL 1
64413 _ACEOF
64414
64415 fi
64416 fi
64417
64418
64419 ice_have_ruserok=no
64420
64421 for ac_func in ruserok
64422 do
64423 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64424 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64425 $as_echo_n "checking for $ac_func... " >&6; }
64426 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64427   $as_echo_n "(cached) " >&6
64428 else
64429   cat >conftest.$ac_ext <<_ACEOF
64430 /* confdefs.h.  */
64431 _ACEOF
64432 cat confdefs.h >>conftest.$ac_ext
64433 cat >>conftest.$ac_ext <<_ACEOF
64434 /* end confdefs.h.  */
64435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64436    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64437 #define $ac_func innocuous_$ac_func
64438
64439 /* System header to define __stub macros and hopefully few prototypes,
64440     which can conflict with char $ac_func (); below.
64441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64442     <limits.h> exists even on freestanding compilers.  */
64443
64444 #ifdef __STDC__
64445 # include <limits.h>
64446 #else
64447 # include <assert.h>
64448 #endif
64449
64450 #undef $ac_func
64451
64452 /* Override any GCC internal prototype to avoid an error.
64453    Use char because int might match the return type of a GCC
64454    builtin and then its argument prototype would still apply.  */
64455 #ifdef __cplusplus
64456 extern "C"
64457 #endif
64458 char $ac_func ();
64459 /* The GNU C library defines this for functions which it implements
64460     to always fail with ENOSYS.  Some functions are actually named
64461     something starting with __ and the normal name is an alias.  */
64462 #if defined __stub_$ac_func || defined __stub___$ac_func
64463 choke me
64464 #endif
64465
64466 int
64467 main ()
64468 {
64469 return $ac_func ();
64470   ;
64471   return 0;
64472 }
64473 _ACEOF
64474 rm -f conftest.$ac_objext conftest$ac_exeext
64475 if { (ac_try="$ac_link"
64476 case "(($ac_try" in
64477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64478   *) ac_try_echo=$ac_try;;
64479 esac
64480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64481 $as_echo "$ac_try_echo") >&5
64482   (eval "$ac_link") 2>conftest.er1
64483   ac_status=$?
64484   grep -v '^ *+' conftest.er1 >conftest.err
64485   rm -f conftest.er1
64486   cat conftest.err >&5
64487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64488   (exit $ac_status); } && {
64489          test -z "$ac_c_werror_flag" ||
64490          test ! -s conftest.err
64491        } && test -s conftest$ac_exeext && {
64492          test "$cross_compiling" = yes ||
64493          $as_test_x conftest$ac_exeext
64494        }; then
64495   eval "$as_ac_var=yes"
64496 else
64497   $as_echo "$as_me: failed program was:" >&5
64498 sed 's/^/| /' conftest.$ac_ext >&5
64499
64500         eval "$as_ac_var=no"
64501 fi
64502
64503 rm -rf conftest.dSYM
64504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64505       conftest$ac_exeext conftest.$ac_ext
64506 fi
64507 ac_res=`eval 'as_val=${'$as_ac_var'}
64508                  $as_echo "$as_val"'`
64509                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64510 $as_echo "$ac_res" >&6; }
64511 as_val=`eval 'as_val=${'$as_ac_var'}
64512                  $as_echo "$as_val"'`
64513    if test "x$as_val" = x""yes; then
64514   cat >>confdefs.h <<_ACEOF
64515 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64516 _ACEOF
64517  ice_have_ruserok=yes
64518 fi
64519 done
64520
64521 if test "${ice_have_ruserok}" = yes; then
64522 { $as_echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
64523 $as_echo_n "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... " >&6; }
64524 if test "${ice_cv_have_ruserok_decl+set}" = set; then
64525   $as_echo_n "(cached) " >&6
64526 else
64527
64528 ice_cv_have_ruserok_decl=no
64529 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64530 ice_re_word='(^|[^a-zA-Z0-9_])'
64531 for header in netdb.h sys/socket.h libc.h unistd.h; do
64532 # Check for ordinary declaration
64533 cat >conftest.$ac_ext <<_ACEOF
64534 /* confdefs.h.  */
64535 _ACEOF
64536 cat confdefs.h >>conftest.$ac_ext
64537 cat >>conftest.$ac_ext <<_ACEOF
64538 /* end confdefs.h.  */
64539 #include <$header>
64540
64541 _ACEOF
64542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64543   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then
64544   ice_cv_have_ruserok_decl=yes
64545 fi
64546 rm -f conftest*
64547
64548 if test "$ice_cv_have_ruserok_decl" = yes; then
64549         break
64550 fi
64551 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64552 cat >conftest.$ac_ext <<_ACEOF
64553 /* confdefs.h.  */
64554 _ACEOF
64555 cat confdefs.h >>conftest.$ac_ext
64556 cat >>conftest.$ac_ext <<_ACEOF
64557 /* end confdefs.h.  */
64558 #include <$header>
64559
64560 _ACEOF
64561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64562   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64563   ice_cv_have_ruserok_decl=yes
64564 fi
64565 rm -f conftest*
64566
64567 if test "$ice_cv_have_ruserok_decl" = yes; then
64568         break
64569 fi
64570 done
64571
64572 fi
64573
64574 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
64575 $as_echo "$ice_cv_have_ruserok_decl" >&6; }
64576 if test "$ice_cv_have_ruserok_decl" = yes; then
64577
64578 cat >>confdefs.h <<_ACEOF
64579 #define HAVE_RUSEROK_DECL 1
64580 _ACEOF
64581
64582 fi
64583 fi
64584
64585
64586 ice_have_select=no
64587
64588 for ac_func in select
64589 do
64590 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64591 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64592 $as_echo_n "checking for $ac_func... " >&6; }
64593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64594   $as_echo_n "(cached) " >&6
64595 else
64596   cat >conftest.$ac_ext <<_ACEOF
64597 /* confdefs.h.  */
64598 _ACEOF
64599 cat confdefs.h >>conftest.$ac_ext
64600 cat >>conftest.$ac_ext <<_ACEOF
64601 /* end confdefs.h.  */
64602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64604 #define $ac_func innocuous_$ac_func
64605
64606 /* System header to define __stub macros and hopefully few prototypes,
64607     which can conflict with char $ac_func (); below.
64608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64609     <limits.h> exists even on freestanding compilers.  */
64610
64611 #ifdef __STDC__
64612 # include <limits.h>
64613 #else
64614 # include <assert.h>
64615 #endif
64616
64617 #undef $ac_func
64618
64619 /* Override any GCC internal prototype to avoid an error.
64620    Use char because int might match the return type of a GCC
64621    builtin and then its argument prototype would still apply.  */
64622 #ifdef __cplusplus
64623 extern "C"
64624 #endif
64625 char $ac_func ();
64626 /* The GNU C library defines this for functions which it implements
64627     to always fail with ENOSYS.  Some functions are actually named
64628     something starting with __ and the normal name is an alias.  */
64629 #if defined __stub_$ac_func || defined __stub___$ac_func
64630 choke me
64631 #endif
64632
64633 int
64634 main ()
64635 {
64636 return $ac_func ();
64637   ;
64638   return 0;
64639 }
64640 _ACEOF
64641 rm -f conftest.$ac_objext conftest$ac_exeext
64642 if { (ac_try="$ac_link"
64643 case "(($ac_try" in
64644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64645   *) ac_try_echo=$ac_try;;
64646 esac
64647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64648 $as_echo "$ac_try_echo") >&5
64649   (eval "$ac_link") 2>conftest.er1
64650   ac_status=$?
64651   grep -v '^ *+' conftest.er1 >conftest.err
64652   rm -f conftest.er1
64653   cat conftest.err >&5
64654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64655   (exit $ac_status); } && {
64656          test -z "$ac_c_werror_flag" ||
64657          test ! -s conftest.err
64658        } && test -s conftest$ac_exeext && {
64659          test "$cross_compiling" = yes ||
64660          $as_test_x conftest$ac_exeext
64661        }; then
64662   eval "$as_ac_var=yes"
64663 else
64664   $as_echo "$as_me: failed program was:" >&5
64665 sed 's/^/| /' conftest.$ac_ext >&5
64666
64667         eval "$as_ac_var=no"
64668 fi
64669
64670 rm -rf conftest.dSYM
64671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64672       conftest$ac_exeext conftest.$ac_ext
64673 fi
64674 ac_res=`eval 'as_val=${'$as_ac_var'}
64675                  $as_echo "$as_val"'`
64676                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64677 $as_echo "$ac_res" >&6; }
64678 as_val=`eval 'as_val=${'$as_ac_var'}
64679                  $as_echo "$as_val"'`
64680    if test "x$as_val" = x""yes; then
64681   cat >>confdefs.h <<_ACEOF
64682 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64683 _ACEOF
64684  ice_have_select=yes
64685 fi
64686 done
64687
64688 if test "${ice_have_select}" = yes; then
64689 { $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
64690 $as_echo_n "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... " >&6; }
64691 if test "${ice_cv_have_select_decl+set}" = set; then
64692   $as_echo_n "(cached) " >&6
64693 else
64694
64695 ice_cv_have_select_decl=no
64696 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64697 ice_re_word='(^|[^a-zA-Z0-9_])'
64698 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
64699 # Check for ordinary declaration
64700 cat >conftest.$ac_ext <<_ACEOF
64701 /* confdefs.h.  */
64702 _ACEOF
64703 cat confdefs.h >>conftest.$ac_ext
64704 cat >>conftest.$ac_ext <<_ACEOF
64705 /* end confdefs.h.  */
64706 #include <$header>
64707
64708 _ACEOF
64709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64710   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then
64711   ice_cv_have_select_decl=yes
64712 fi
64713 rm -f conftest*
64714
64715 if test "$ice_cv_have_select_decl" = yes; then
64716         break
64717 fi
64718 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64719 cat >conftest.$ac_ext <<_ACEOF
64720 /* confdefs.h.  */
64721 _ACEOF
64722 cat confdefs.h >>conftest.$ac_ext
64723 cat >>conftest.$ac_ext <<_ACEOF
64724 /* end confdefs.h.  */
64725 #include <$header>
64726
64727 _ACEOF
64728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64729   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64730   ice_cv_have_select_decl=yes
64731 fi
64732 rm -f conftest*
64733
64734 if test "$ice_cv_have_select_decl" = yes; then
64735         break
64736 fi
64737 done
64738
64739 fi
64740
64741 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
64742 $as_echo "$ice_cv_have_select_decl" >&6; }
64743 if test "$ice_cv_have_select_decl" = yes; then
64744
64745 cat >>confdefs.h <<_ACEOF
64746 #define HAVE_SELECT_DECL 1
64747 _ACEOF
64748
64749 fi
64750 fi
64751
64752
64753
64754
64755
64756
64757
64758
64759 for ac_header in sys/time.h \
64760             sys/types.h \
64761             sys/select.h \
64762             sys/socket.h \
64763             unistd.h \
64764
64765 do
64766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
64767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64768   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
64769 $as_echo_n "checking for $ac_header... " >&6; }
64770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64771   $as_echo_n "(cached) " >&6
64772 fi
64773 ac_res=`eval 'as_val=${'$as_ac_Header'}
64774                  $as_echo "$as_val"'`
64775                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64776 $as_echo "$ac_res" >&6; }
64777 else
64778   # Is the header compilable?
64779 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
64780 $as_echo_n "checking $ac_header usability... " >&6; }
64781 cat >conftest.$ac_ext <<_ACEOF
64782 /* confdefs.h.  */
64783 _ACEOF
64784 cat confdefs.h >>conftest.$ac_ext
64785 cat >>conftest.$ac_ext <<_ACEOF
64786 /* end confdefs.h.  */
64787 $ac_includes_default
64788 #include <$ac_header>
64789 _ACEOF
64790 rm -f conftest.$ac_objext
64791 if { (ac_try="$ac_compile"
64792 case "(($ac_try" in
64793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64794   *) ac_try_echo=$ac_try;;
64795 esac
64796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64797 $as_echo "$ac_try_echo") >&5
64798   (eval "$ac_compile") 2>conftest.er1
64799   ac_status=$?
64800   grep -v '^ *+' conftest.er1 >conftest.err
64801   rm -f conftest.er1
64802   cat conftest.err >&5
64803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64804   (exit $ac_status); } && {
64805          test -z "$ac_c_werror_flag" ||
64806          test ! -s conftest.err
64807        } && test -s conftest.$ac_objext; then
64808   ac_header_compiler=yes
64809 else
64810   $as_echo "$as_me: failed program was:" >&5
64811 sed 's/^/| /' conftest.$ac_ext >&5
64812
64813         ac_header_compiler=no
64814 fi
64815
64816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64817 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64818 $as_echo "$ac_header_compiler" >&6; }
64819
64820 # Is the header present?
64821 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
64822 $as_echo_n "checking $ac_header presence... " >&6; }
64823 cat >conftest.$ac_ext <<_ACEOF
64824 /* confdefs.h.  */
64825 _ACEOF
64826 cat confdefs.h >>conftest.$ac_ext
64827 cat >>conftest.$ac_ext <<_ACEOF
64828 /* end confdefs.h.  */
64829 #include <$ac_header>
64830 _ACEOF
64831 if { (ac_try="$ac_cpp conftest.$ac_ext"
64832 case "(($ac_try" in
64833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64834   *) ac_try_echo=$ac_try;;
64835 esac
64836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64837 $as_echo "$ac_try_echo") >&5
64838   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
64839   ac_status=$?
64840   grep -v '^ *+' conftest.er1 >conftest.err
64841   rm -f conftest.er1
64842   cat conftest.err >&5
64843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64844   (exit $ac_status); } >/dev/null && {
64845          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
64846          test ! -s conftest.err
64847        }; then
64848   ac_header_preproc=yes
64849 else
64850   $as_echo "$as_me: failed program was:" >&5
64851 sed 's/^/| /' conftest.$ac_ext >&5
64852
64853   ac_header_preproc=no
64854 fi
64855
64856 rm -f conftest.err conftest.$ac_ext
64857 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64858 $as_echo "$ac_header_preproc" >&6; }
64859
64860 # So?  What about this header?
64861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64862   yes:no: )
64863     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
64864 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
64865     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
64866 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
64867     ac_header_preproc=yes
64868     ;;
64869   no:yes:* )
64870     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
64871 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
64872     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
64873 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
64874     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
64875 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
64876     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
64877 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
64878     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
64879 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64880     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64881 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64882
64883     ;;
64884 esac
64885 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
64886 $as_echo_n "checking for $ac_header... " >&6; }
64887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64888   $as_echo_n "(cached) " >&6
64889 else
64890   eval "$as_ac_Header=\$ac_header_preproc"
64891 fi
64892 ac_res=`eval 'as_val=${'$as_ac_Header'}
64893                  $as_echo "$as_val"'`
64894                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64895 $as_echo "$ac_res" >&6; }
64896
64897 fi
64898 as_val=`eval 'as_val=${'$as_ac_Header'}
64899                  $as_echo "$as_val"'`
64900    if test "x$as_val" = x""yes; then
64901   cat >>confdefs.h <<_ACEOF
64902 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
64903 _ACEOF
64904
64905 fi
64906
64907 done
64908
64909
64910         { $as_echo "$as_me:$LINENO: checking for select() argument type" >&5
64911 $as_echo_n "checking for select() argument type... " >&6; }
64912 if test "${amanda_cv_select_arg_type+set}" = set; then
64913   $as_echo_n "(cached) " >&6
64914 else
64915
64916                 rm -f conftest.c
64917                 cat <<EOF >conftest.$ac_ext
64918 #include "confdefs.h"
64919 #ifdef TIME_WITH_SYS_TIME
64920 #  include <sys/time.h>
64921 #  include <time.h>
64922 #else
64923 #  ifdef HAVE_SYS_TIME_H
64924 #    include <sys/time.h>
64925 #  else
64926 #    include <time.h>
64927 #  endif
64928 #endif
64929 #ifdef HAVE_SYS_TYPES_H
64930 # include <sys/types.h>
64931 #endif
64932 #ifdef HAVE_SYS_SELECT_H
64933 #  include <sys/select.h>
64934 #endif
64935 #ifdef HAVE_SYS_SOCKET_H
64936 #  include <sys/socket.h>
64937 #endif
64938 #ifdef HAVE_UNISTD_H
64939 # include <unistd.h>
64940 #endif
64941
64942 int main()
64943 {
64944 #ifdef FD_SET_POINTER
64945         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
64946 #else
64947         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
64948 #endif
64949         return 0;
64950 }
64951 EOF
64952
64953                 # Figure out the select argument type by first trying to
64954                 # compile with the fd_set argument.  If the compile fails,
64955                 # then we know to use the int.  If it suceeds, then try to
64956                 # use the int.  If the int fails, then use fd_set.  If
64957                 # both suceeed, then do a line count on the number of
64958                 # lines that the compiler spit out, assuming that the
64959                 # compile outputing more lines had more errors.
64960                 amanda_cv_select_arg_type=no
64961                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
64962                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
64963                 if test $? -ne 0; then
64964                     amanda_cv_select_arg_type=int
64965                 fi
64966                 if test "$amanda_cv_select_arg_type" = no; then
64967                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
64968                     if test $? -ne 0; then
64969                         amanda_cv_select_arg_type=fd_set
64970                     fi
64971                 fi
64972                 if test "$amanda_cv_select_arg_type" = no; then
64973                     wc_fdset=`wc -l <conftest.fd_set`
64974                     wc_int=`wc -l <conftest.int`
64975                     if test "$wc_fdset" -le "$wc_int"; then
64976                         amanda_cv_select_arg_type=fd_set
64977                     else
64978                         amanda_cv_select_arg_type=int
64979                     fi
64980                 fi
64981                 rm -f conftest*
64982
64983
64984 fi
64985 { $as_echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
64986 $as_echo "$amanda_cv_select_arg_type" >&6; }
64987
64988 cat >>confdefs.h <<_ACEOF
64989 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
64990 _ACEOF
64991
64992
64993
64994
64995 ice_have_sendto=no
64996
64997 for ac_func in sendto
64998 do
64999 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65000 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65001 $as_echo_n "checking for $ac_func... " >&6; }
65002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65003   $as_echo_n "(cached) " >&6
65004 else
65005   cat >conftest.$ac_ext <<_ACEOF
65006 /* confdefs.h.  */
65007 _ACEOF
65008 cat confdefs.h >>conftest.$ac_ext
65009 cat >>conftest.$ac_ext <<_ACEOF
65010 /* end confdefs.h.  */
65011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65013 #define $ac_func innocuous_$ac_func
65014
65015 /* System header to define __stub macros and hopefully few prototypes,
65016     which can conflict with char $ac_func (); below.
65017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65018     <limits.h> exists even on freestanding compilers.  */
65019
65020 #ifdef __STDC__
65021 # include <limits.h>
65022 #else
65023 # include <assert.h>
65024 #endif
65025
65026 #undef $ac_func
65027
65028 /* Override any GCC internal prototype to avoid an error.
65029    Use char because int might match the return type of a GCC
65030    builtin and then its argument prototype would still apply.  */
65031 #ifdef __cplusplus
65032 extern "C"
65033 #endif
65034 char $ac_func ();
65035 /* The GNU C library defines this for functions which it implements
65036     to always fail with ENOSYS.  Some functions are actually named
65037     something starting with __ and the normal name is an alias.  */
65038 #if defined __stub_$ac_func || defined __stub___$ac_func
65039 choke me
65040 #endif
65041
65042 int
65043 main ()
65044 {
65045 return $ac_func ();
65046   ;
65047   return 0;
65048 }
65049 _ACEOF
65050 rm -f conftest.$ac_objext conftest$ac_exeext
65051 if { (ac_try="$ac_link"
65052 case "(($ac_try" in
65053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65054   *) ac_try_echo=$ac_try;;
65055 esac
65056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65057 $as_echo "$ac_try_echo") >&5
65058   (eval "$ac_link") 2>conftest.er1
65059   ac_status=$?
65060   grep -v '^ *+' conftest.er1 >conftest.err
65061   rm -f conftest.er1
65062   cat conftest.err >&5
65063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65064   (exit $ac_status); } && {
65065          test -z "$ac_c_werror_flag" ||
65066          test ! -s conftest.err
65067        } && test -s conftest$ac_exeext && {
65068          test "$cross_compiling" = yes ||
65069          $as_test_x conftest$ac_exeext
65070        }; then
65071   eval "$as_ac_var=yes"
65072 else
65073   $as_echo "$as_me: failed program was:" >&5
65074 sed 's/^/| /' conftest.$ac_ext >&5
65075
65076         eval "$as_ac_var=no"
65077 fi
65078
65079 rm -rf conftest.dSYM
65080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65081       conftest$ac_exeext conftest.$ac_ext
65082 fi
65083 ac_res=`eval 'as_val=${'$as_ac_var'}
65084                  $as_echo "$as_val"'`
65085                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65086 $as_echo "$ac_res" >&6; }
65087 as_val=`eval 'as_val=${'$as_ac_var'}
65088                  $as_echo "$as_val"'`
65089    if test "x$as_val" = x""yes; then
65090   cat >>confdefs.h <<_ACEOF
65091 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65092 _ACEOF
65093  ice_have_sendto=yes
65094 fi
65095 done
65096
65097 if test "${ice_have_sendto}" = yes; then
65098 { $as_echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
65099 $as_echo_n "checking for sendto declaration in sys/types.h sys/socket.h... " >&6; }
65100 if test "${ice_cv_have_sendto_decl+set}" = set; then
65101   $as_echo_n "(cached) " >&6
65102 else
65103
65104 ice_cv_have_sendto_decl=no
65105 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65106 ice_re_word='(^|[^a-zA-Z0-9_])'
65107 for header in sys/types.h sys/socket.h; do
65108 # Check for ordinary declaration
65109 cat >conftest.$ac_ext <<_ACEOF
65110 /* confdefs.h.  */
65111 _ACEOF
65112 cat confdefs.h >>conftest.$ac_ext
65113 cat >>conftest.$ac_ext <<_ACEOF
65114 /* end confdefs.h.  */
65115 #include <$header>
65116
65117 _ACEOF
65118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65119   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then
65120   ice_cv_have_sendto_decl=yes
65121 fi
65122 rm -f conftest*
65123
65124 if test "$ice_cv_have_sendto_decl" = yes; then
65125         break
65126 fi
65127 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65128 cat >conftest.$ac_ext <<_ACEOF
65129 /* confdefs.h.  */
65130 _ACEOF
65131 cat confdefs.h >>conftest.$ac_ext
65132 cat >>conftest.$ac_ext <<_ACEOF
65133 /* end confdefs.h.  */
65134 #include <$header>
65135
65136 _ACEOF
65137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65138   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65139   ice_cv_have_sendto_decl=yes
65140 fi
65141 rm -f conftest*
65142
65143 if test "$ice_cv_have_sendto_decl" = yes; then
65144         break
65145 fi
65146 done
65147
65148 fi
65149
65150 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
65151 $as_echo "$ice_cv_have_sendto_decl" >&6; }
65152 if test "$ice_cv_have_sendto_decl" = yes; then
65153
65154 cat >>confdefs.h <<_ACEOF
65155 #define HAVE_SENDTO_DECL 1
65156 _ACEOF
65157
65158 fi
65159 fi
65160
65161
65162 ice_have_setegid=no
65163
65164 for ac_func in setegid
65165 do
65166 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65167 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65168 $as_echo_n "checking for $ac_func... " >&6; }
65169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65170   $as_echo_n "(cached) " >&6
65171 else
65172   cat >conftest.$ac_ext <<_ACEOF
65173 /* confdefs.h.  */
65174 _ACEOF
65175 cat confdefs.h >>conftest.$ac_ext
65176 cat >>conftest.$ac_ext <<_ACEOF
65177 /* end confdefs.h.  */
65178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65180 #define $ac_func innocuous_$ac_func
65181
65182 /* System header to define __stub macros and hopefully few prototypes,
65183     which can conflict with char $ac_func (); below.
65184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65185     <limits.h> exists even on freestanding compilers.  */
65186
65187 #ifdef __STDC__
65188 # include <limits.h>
65189 #else
65190 # include <assert.h>
65191 #endif
65192
65193 #undef $ac_func
65194
65195 /* Override any GCC internal prototype to avoid an error.
65196    Use char because int might match the return type of a GCC
65197    builtin and then its argument prototype would still apply.  */
65198 #ifdef __cplusplus
65199 extern "C"
65200 #endif
65201 char $ac_func ();
65202 /* The GNU C library defines this for functions which it implements
65203     to always fail with ENOSYS.  Some functions are actually named
65204     something starting with __ and the normal name is an alias.  */
65205 #if defined __stub_$ac_func || defined __stub___$ac_func
65206 choke me
65207 #endif
65208
65209 int
65210 main ()
65211 {
65212 return $ac_func ();
65213   ;
65214   return 0;
65215 }
65216 _ACEOF
65217 rm -f conftest.$ac_objext conftest$ac_exeext
65218 if { (ac_try="$ac_link"
65219 case "(($ac_try" in
65220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65221   *) ac_try_echo=$ac_try;;
65222 esac
65223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65224 $as_echo "$ac_try_echo") >&5
65225   (eval "$ac_link") 2>conftest.er1
65226   ac_status=$?
65227   grep -v '^ *+' conftest.er1 >conftest.err
65228   rm -f conftest.er1
65229   cat conftest.err >&5
65230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65231   (exit $ac_status); } && {
65232          test -z "$ac_c_werror_flag" ||
65233          test ! -s conftest.err
65234        } && test -s conftest$ac_exeext && {
65235          test "$cross_compiling" = yes ||
65236          $as_test_x conftest$ac_exeext
65237        }; then
65238   eval "$as_ac_var=yes"
65239 else
65240   $as_echo "$as_me: failed program was:" >&5
65241 sed 's/^/| /' conftest.$ac_ext >&5
65242
65243         eval "$as_ac_var=no"
65244 fi
65245
65246 rm -rf conftest.dSYM
65247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65248       conftest$ac_exeext conftest.$ac_ext
65249 fi
65250 ac_res=`eval 'as_val=${'$as_ac_var'}
65251                  $as_echo "$as_val"'`
65252                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65253 $as_echo "$ac_res" >&6; }
65254 as_val=`eval 'as_val=${'$as_ac_var'}
65255                  $as_echo "$as_val"'`
65256    if test "x$as_val" = x""yes; then
65257   cat >>confdefs.h <<_ACEOF
65258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65259 _ACEOF
65260  ice_have_setegid=yes
65261 fi
65262 done
65263
65264 if test "${ice_have_setegid}" = yes; then
65265 { $as_echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
65266 $as_echo_n "checking for setegid declaration in unistd.h... " >&6; }
65267 if test "${ice_cv_have_setegid_decl+set}" = set; then
65268   $as_echo_n "(cached) " >&6
65269 else
65270
65271 ice_cv_have_setegid_decl=no
65272 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65273 ice_re_word='(^|[^a-zA-Z0-9_])'
65274 for header in unistd.h; do
65275 # Check for ordinary declaration
65276 cat >conftest.$ac_ext <<_ACEOF
65277 /* confdefs.h.  */
65278 _ACEOF
65279 cat confdefs.h >>conftest.$ac_ext
65280 cat >>conftest.$ac_ext <<_ACEOF
65281 /* end confdefs.h.  */
65282 #include <$header>
65283
65284 _ACEOF
65285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65286   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then
65287   ice_cv_have_setegid_decl=yes
65288 fi
65289 rm -f conftest*
65290
65291 if test "$ice_cv_have_setegid_decl" = yes; then
65292         break
65293 fi
65294 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65295 cat >conftest.$ac_ext <<_ACEOF
65296 /* confdefs.h.  */
65297 _ACEOF
65298 cat confdefs.h >>conftest.$ac_ext
65299 cat >>conftest.$ac_ext <<_ACEOF
65300 /* end confdefs.h.  */
65301 #include <$header>
65302
65303 _ACEOF
65304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65305   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65306   ice_cv_have_setegid_decl=yes
65307 fi
65308 rm -f conftest*
65309
65310 if test "$ice_cv_have_setegid_decl" = yes; then
65311         break
65312 fi
65313 done
65314
65315 fi
65316
65317 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
65318 $as_echo "$ice_cv_have_setegid_decl" >&6; }
65319 if test "$ice_cv_have_setegid_decl" = yes; then
65320
65321 cat >>confdefs.h <<_ACEOF
65322 #define HAVE_SETEGID_DECL 1
65323 _ACEOF
65324
65325 fi
65326 fi
65327
65328
65329 ice_have_seteuid=no
65330
65331 for ac_func in seteuid
65332 do
65333 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65334 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65335 $as_echo_n "checking for $ac_func... " >&6; }
65336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65337   $as_echo_n "(cached) " >&6
65338 else
65339   cat >conftest.$ac_ext <<_ACEOF
65340 /* confdefs.h.  */
65341 _ACEOF
65342 cat confdefs.h >>conftest.$ac_ext
65343 cat >>conftest.$ac_ext <<_ACEOF
65344 /* end confdefs.h.  */
65345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65347 #define $ac_func innocuous_$ac_func
65348
65349 /* System header to define __stub macros and hopefully few prototypes,
65350     which can conflict with char $ac_func (); below.
65351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65352     <limits.h> exists even on freestanding compilers.  */
65353
65354 #ifdef __STDC__
65355 # include <limits.h>
65356 #else
65357 # include <assert.h>
65358 #endif
65359
65360 #undef $ac_func
65361
65362 /* Override any GCC internal prototype to avoid an error.
65363    Use char because int might match the return type of a GCC
65364    builtin and then its argument prototype would still apply.  */
65365 #ifdef __cplusplus
65366 extern "C"
65367 #endif
65368 char $ac_func ();
65369 /* The GNU C library defines this for functions which it implements
65370     to always fail with ENOSYS.  Some functions are actually named
65371     something starting with __ and the normal name is an alias.  */
65372 #if defined __stub_$ac_func || defined __stub___$ac_func
65373 choke me
65374 #endif
65375
65376 int
65377 main ()
65378 {
65379 return $ac_func ();
65380   ;
65381   return 0;
65382 }
65383 _ACEOF
65384 rm -f conftest.$ac_objext conftest$ac_exeext
65385 if { (ac_try="$ac_link"
65386 case "(($ac_try" in
65387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65388   *) ac_try_echo=$ac_try;;
65389 esac
65390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65391 $as_echo "$ac_try_echo") >&5
65392   (eval "$ac_link") 2>conftest.er1
65393   ac_status=$?
65394   grep -v '^ *+' conftest.er1 >conftest.err
65395   rm -f conftest.er1
65396   cat conftest.err >&5
65397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65398   (exit $ac_status); } && {
65399          test -z "$ac_c_werror_flag" ||
65400          test ! -s conftest.err
65401        } && test -s conftest$ac_exeext && {
65402          test "$cross_compiling" = yes ||
65403          $as_test_x conftest$ac_exeext
65404        }; then
65405   eval "$as_ac_var=yes"
65406 else
65407   $as_echo "$as_me: failed program was:" >&5
65408 sed 's/^/| /' conftest.$ac_ext >&5
65409
65410         eval "$as_ac_var=no"
65411 fi
65412
65413 rm -rf conftest.dSYM
65414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65415       conftest$ac_exeext conftest.$ac_ext
65416 fi
65417 ac_res=`eval 'as_val=${'$as_ac_var'}
65418                  $as_echo "$as_val"'`
65419                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65420 $as_echo "$ac_res" >&6; }
65421 as_val=`eval 'as_val=${'$as_ac_var'}
65422                  $as_echo "$as_val"'`
65423    if test "x$as_val" = x""yes; then
65424   cat >>confdefs.h <<_ACEOF
65425 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65426 _ACEOF
65427  ice_have_seteuid=yes
65428 fi
65429 done
65430
65431 if test "${ice_have_seteuid}" = yes; then
65432 { $as_echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
65433 $as_echo_n "checking for seteuid declaration in unistd.h... " >&6; }
65434 if test "${ice_cv_have_seteuid_decl+set}" = set; then
65435   $as_echo_n "(cached) " >&6
65436 else
65437
65438 ice_cv_have_seteuid_decl=no
65439 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65440 ice_re_word='(^|[^a-zA-Z0-9_])'
65441 for header in unistd.h; do
65442 # Check for ordinary declaration
65443 cat >conftest.$ac_ext <<_ACEOF
65444 /* confdefs.h.  */
65445 _ACEOF
65446 cat confdefs.h >>conftest.$ac_ext
65447 cat >>conftest.$ac_ext <<_ACEOF
65448 /* end confdefs.h.  */
65449 #include <$header>
65450
65451 _ACEOF
65452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65453   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then
65454   ice_cv_have_seteuid_decl=yes
65455 fi
65456 rm -f conftest*
65457
65458 if test "$ice_cv_have_seteuid_decl" = yes; then
65459         break
65460 fi
65461 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65462 cat >conftest.$ac_ext <<_ACEOF
65463 /* confdefs.h.  */
65464 _ACEOF
65465 cat confdefs.h >>conftest.$ac_ext
65466 cat >>conftest.$ac_ext <<_ACEOF
65467 /* end confdefs.h.  */
65468 #include <$header>
65469
65470 _ACEOF
65471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65472   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65473   ice_cv_have_seteuid_decl=yes
65474 fi
65475 rm -f conftest*
65476
65477 if test "$ice_cv_have_seteuid_decl" = yes; then
65478         break
65479 fi
65480 done
65481
65482 fi
65483
65484 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
65485 $as_echo "$ice_cv_have_seteuid_decl" >&6; }
65486 if test "$ice_cv_have_seteuid_decl" = yes; then
65487
65488 cat >>confdefs.h <<_ACEOF
65489 #define HAVE_SETEUID_DECL 1
65490 _ACEOF
65491
65492 fi
65493 fi
65494
65495
65496 ice_have_setresgid=no
65497
65498 for ac_func in setresgid
65499 do
65500 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65501 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65502 $as_echo_n "checking for $ac_func... " >&6; }
65503 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65504   $as_echo_n "(cached) " >&6
65505 else
65506   cat >conftest.$ac_ext <<_ACEOF
65507 /* confdefs.h.  */
65508 _ACEOF
65509 cat confdefs.h >>conftest.$ac_ext
65510 cat >>conftest.$ac_ext <<_ACEOF
65511 /* end confdefs.h.  */
65512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65513    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65514 #define $ac_func innocuous_$ac_func
65515
65516 /* System header to define __stub macros and hopefully few prototypes,
65517     which can conflict with char $ac_func (); below.
65518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65519     <limits.h> exists even on freestanding compilers.  */
65520
65521 #ifdef __STDC__
65522 # include <limits.h>
65523 #else
65524 # include <assert.h>
65525 #endif
65526
65527 #undef $ac_func
65528
65529 /* Override any GCC internal prototype to avoid an error.
65530    Use char because int might match the return type of a GCC
65531    builtin and then its argument prototype would still apply.  */
65532 #ifdef __cplusplus
65533 extern "C"
65534 #endif
65535 char $ac_func ();
65536 /* The GNU C library defines this for functions which it implements
65537     to always fail with ENOSYS.  Some functions are actually named
65538     something starting with __ and the normal name is an alias.  */
65539 #if defined __stub_$ac_func || defined __stub___$ac_func
65540 choke me
65541 #endif
65542
65543 int
65544 main ()
65545 {
65546 return $ac_func ();
65547   ;
65548   return 0;
65549 }
65550 _ACEOF
65551 rm -f conftest.$ac_objext conftest$ac_exeext
65552 if { (ac_try="$ac_link"
65553 case "(($ac_try" in
65554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65555   *) ac_try_echo=$ac_try;;
65556 esac
65557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65558 $as_echo "$ac_try_echo") >&5
65559   (eval "$ac_link") 2>conftest.er1
65560   ac_status=$?
65561   grep -v '^ *+' conftest.er1 >conftest.err
65562   rm -f conftest.er1
65563   cat conftest.err >&5
65564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65565   (exit $ac_status); } && {
65566          test -z "$ac_c_werror_flag" ||
65567          test ! -s conftest.err
65568        } && test -s conftest$ac_exeext && {
65569          test "$cross_compiling" = yes ||
65570          $as_test_x conftest$ac_exeext
65571        }; then
65572   eval "$as_ac_var=yes"
65573 else
65574   $as_echo "$as_me: failed program was:" >&5
65575 sed 's/^/| /' conftest.$ac_ext >&5
65576
65577         eval "$as_ac_var=no"
65578 fi
65579
65580 rm -rf conftest.dSYM
65581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65582       conftest$ac_exeext conftest.$ac_ext
65583 fi
65584 ac_res=`eval 'as_val=${'$as_ac_var'}
65585                  $as_echo "$as_val"'`
65586                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65587 $as_echo "$ac_res" >&6; }
65588 as_val=`eval 'as_val=${'$as_ac_var'}
65589                  $as_echo "$as_val"'`
65590    if test "x$as_val" = x""yes; then
65591   cat >>confdefs.h <<_ACEOF
65592 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65593 _ACEOF
65594  ice_have_setresgid=yes
65595 fi
65596 done
65597
65598 if test "${ice_have_setresgid}" = yes; then
65599 { $as_echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
65600 $as_echo_n "checking for setresgid declaration in unistd.h... " >&6; }
65601 if test "${ice_cv_have_setresgid_decl+set}" = set; then
65602   $as_echo_n "(cached) " >&6
65603 else
65604
65605 ice_cv_have_setresgid_decl=no
65606 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65607 ice_re_word='(^|[^a-zA-Z0-9_])'
65608 for header in unistd.h; do
65609 # Check for ordinary declaration
65610 cat >conftest.$ac_ext <<_ACEOF
65611 /* confdefs.h.  */
65612 _ACEOF
65613 cat confdefs.h >>conftest.$ac_ext
65614 cat >>conftest.$ac_ext <<_ACEOF
65615 /* end confdefs.h.  */
65616 #include <$header>
65617
65618 _ACEOF
65619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65620   $EGREP "${ice_re_word}setresgid[      ]*\(" >/dev/null 2>&1; then
65621   ice_cv_have_setresgid_decl=yes
65622 fi
65623 rm -f conftest*
65624
65625 if test "$ice_cv_have_setresgid_decl" = yes; then
65626         break
65627 fi
65628 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65629 cat >conftest.$ac_ext <<_ACEOF
65630 /* confdefs.h.  */
65631 _ACEOF
65632 cat confdefs.h >>conftest.$ac_ext
65633 cat >>conftest.$ac_ext <<_ACEOF
65634 /* end confdefs.h.  */
65635 #include <$header>
65636
65637 _ACEOF
65638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65639   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65640   ice_cv_have_setresgid_decl=yes
65641 fi
65642 rm -f conftest*
65643
65644 if test "$ice_cv_have_setresgid_decl" = yes; then
65645         break
65646 fi
65647 done
65648
65649 fi
65650
65651 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
65652 $as_echo "$ice_cv_have_setresgid_decl" >&6; }
65653 if test "$ice_cv_have_setresgid_decl" = yes; then
65654
65655 cat >>confdefs.h <<_ACEOF
65656 #define HAVE_SETRESGID_DECL 1
65657 _ACEOF
65658
65659 fi
65660 fi
65661
65662
65663 ice_have_setresuid=no
65664
65665 for ac_func in setresuid
65666 do
65667 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65668 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65669 $as_echo_n "checking for $ac_func... " >&6; }
65670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65671   $as_echo_n "(cached) " >&6
65672 else
65673   cat >conftest.$ac_ext <<_ACEOF
65674 /* confdefs.h.  */
65675 _ACEOF
65676 cat confdefs.h >>conftest.$ac_ext
65677 cat >>conftest.$ac_ext <<_ACEOF
65678 /* end confdefs.h.  */
65679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65681 #define $ac_func innocuous_$ac_func
65682
65683 /* System header to define __stub macros and hopefully few prototypes,
65684     which can conflict with char $ac_func (); below.
65685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65686     <limits.h> exists even on freestanding compilers.  */
65687
65688 #ifdef __STDC__
65689 # include <limits.h>
65690 #else
65691 # include <assert.h>
65692 #endif
65693
65694 #undef $ac_func
65695
65696 /* Override any GCC internal prototype to avoid an error.
65697    Use char because int might match the return type of a GCC
65698    builtin and then its argument prototype would still apply.  */
65699 #ifdef __cplusplus
65700 extern "C"
65701 #endif
65702 char $ac_func ();
65703 /* The GNU C library defines this for functions which it implements
65704     to always fail with ENOSYS.  Some functions are actually named
65705     something starting with __ and the normal name is an alias.  */
65706 #if defined __stub_$ac_func || defined __stub___$ac_func
65707 choke me
65708 #endif
65709
65710 int
65711 main ()
65712 {
65713 return $ac_func ();
65714   ;
65715   return 0;
65716 }
65717 _ACEOF
65718 rm -f conftest.$ac_objext conftest$ac_exeext
65719 if { (ac_try="$ac_link"
65720 case "(($ac_try" in
65721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65722   *) ac_try_echo=$ac_try;;
65723 esac
65724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65725 $as_echo "$ac_try_echo") >&5
65726   (eval "$ac_link") 2>conftest.er1
65727   ac_status=$?
65728   grep -v '^ *+' conftest.er1 >conftest.err
65729   rm -f conftest.er1
65730   cat conftest.err >&5
65731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65732   (exit $ac_status); } && {
65733          test -z "$ac_c_werror_flag" ||
65734          test ! -s conftest.err
65735        } && test -s conftest$ac_exeext && {
65736          test "$cross_compiling" = yes ||
65737          $as_test_x conftest$ac_exeext
65738        }; then
65739   eval "$as_ac_var=yes"
65740 else
65741   $as_echo "$as_me: failed program was:" >&5
65742 sed 's/^/| /' conftest.$ac_ext >&5
65743
65744         eval "$as_ac_var=no"
65745 fi
65746
65747 rm -rf conftest.dSYM
65748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65749       conftest$ac_exeext conftest.$ac_ext
65750 fi
65751 ac_res=`eval 'as_val=${'$as_ac_var'}
65752                  $as_echo "$as_val"'`
65753                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65754 $as_echo "$ac_res" >&6; }
65755 as_val=`eval 'as_val=${'$as_ac_var'}
65756                  $as_echo "$as_val"'`
65757    if test "x$as_val" = x""yes; then
65758   cat >>confdefs.h <<_ACEOF
65759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65760 _ACEOF
65761  ice_have_setresuid=yes
65762 fi
65763 done
65764
65765 if test "${ice_have_setresuid}" = yes; then
65766 { $as_echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
65767 $as_echo_n "checking for setresuid declaration in unistd.h... " >&6; }
65768 if test "${ice_cv_have_setresuid_decl+set}" = set; then
65769   $as_echo_n "(cached) " >&6
65770 else
65771
65772 ice_cv_have_setresuid_decl=no
65773 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65774 ice_re_word='(^|[^a-zA-Z0-9_])'
65775 for header in unistd.h; do
65776 # Check for ordinary declaration
65777 cat >conftest.$ac_ext <<_ACEOF
65778 /* confdefs.h.  */
65779 _ACEOF
65780 cat confdefs.h >>conftest.$ac_ext
65781 cat >>conftest.$ac_ext <<_ACEOF
65782 /* end confdefs.h.  */
65783 #include <$header>
65784
65785 _ACEOF
65786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65787   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then
65788   ice_cv_have_setresuid_decl=yes
65789 fi
65790 rm -f conftest*
65791
65792 if test "$ice_cv_have_setresuid_decl" = yes; then
65793         break
65794 fi
65795 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65796 cat >conftest.$ac_ext <<_ACEOF
65797 /* confdefs.h.  */
65798 _ACEOF
65799 cat confdefs.h >>conftest.$ac_ext
65800 cat >>conftest.$ac_ext <<_ACEOF
65801 /* end confdefs.h.  */
65802 #include <$header>
65803
65804 _ACEOF
65805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65806   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65807   ice_cv_have_setresuid_decl=yes
65808 fi
65809 rm -f conftest*
65810
65811 if test "$ice_cv_have_setresuid_decl" = yes; then
65812         break
65813 fi
65814 done
65815
65816 fi
65817
65818 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
65819 $as_echo "$ice_cv_have_setresuid_decl" >&6; }
65820 if test "$ice_cv_have_setresuid_decl" = yes; then
65821
65822 cat >>confdefs.h <<_ACEOF
65823 #define HAVE_SETRESUID_DECL 1
65824 _ACEOF
65825
65826 fi
65827 fi
65828
65829
65830 ice_have_snprintf=no
65831
65832 for ac_func in snprintf
65833 do
65834 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65835 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65836 $as_echo_n "checking for $ac_func... " >&6; }
65837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65838   $as_echo_n "(cached) " >&6
65839 else
65840   cat >conftest.$ac_ext <<_ACEOF
65841 /* confdefs.h.  */
65842 _ACEOF
65843 cat confdefs.h >>conftest.$ac_ext
65844 cat >>conftest.$ac_ext <<_ACEOF
65845 /* end confdefs.h.  */
65846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65847    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65848 #define $ac_func innocuous_$ac_func
65849
65850 /* System header to define __stub macros and hopefully few prototypes,
65851     which can conflict with char $ac_func (); below.
65852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65853     <limits.h> exists even on freestanding compilers.  */
65854
65855 #ifdef __STDC__
65856 # include <limits.h>
65857 #else
65858 # include <assert.h>
65859 #endif
65860
65861 #undef $ac_func
65862
65863 /* Override any GCC internal prototype to avoid an error.
65864    Use char because int might match the return type of a GCC
65865    builtin and then its argument prototype would still apply.  */
65866 #ifdef __cplusplus
65867 extern "C"
65868 #endif
65869 char $ac_func ();
65870 /* The GNU C library defines this for functions which it implements
65871     to always fail with ENOSYS.  Some functions are actually named
65872     something starting with __ and the normal name is an alias.  */
65873 #if defined __stub_$ac_func || defined __stub___$ac_func
65874 choke me
65875 #endif
65876
65877 int
65878 main ()
65879 {
65880 return $ac_func ();
65881   ;
65882   return 0;
65883 }
65884 _ACEOF
65885 rm -f conftest.$ac_objext conftest$ac_exeext
65886 if { (ac_try="$ac_link"
65887 case "(($ac_try" in
65888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65889   *) ac_try_echo=$ac_try;;
65890 esac
65891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65892 $as_echo "$ac_try_echo") >&5
65893   (eval "$ac_link") 2>conftest.er1
65894   ac_status=$?
65895   grep -v '^ *+' conftest.er1 >conftest.err
65896   rm -f conftest.er1
65897   cat conftest.err >&5
65898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65899   (exit $ac_status); } && {
65900          test -z "$ac_c_werror_flag" ||
65901          test ! -s conftest.err
65902        } && test -s conftest$ac_exeext && {
65903          test "$cross_compiling" = yes ||
65904          $as_test_x conftest$ac_exeext
65905        }; then
65906   eval "$as_ac_var=yes"
65907 else
65908   $as_echo "$as_me: failed program was:" >&5
65909 sed 's/^/| /' conftest.$ac_ext >&5
65910
65911         eval "$as_ac_var=no"
65912 fi
65913
65914 rm -rf conftest.dSYM
65915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65916       conftest$ac_exeext conftest.$ac_ext
65917 fi
65918 ac_res=`eval 'as_val=${'$as_ac_var'}
65919                  $as_echo "$as_val"'`
65920                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65921 $as_echo "$ac_res" >&6; }
65922 as_val=`eval 'as_val=${'$as_ac_var'}
65923                  $as_echo "$as_val"'`
65924    if test "x$as_val" = x""yes; then
65925   cat >>confdefs.h <<_ACEOF
65926 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65927 _ACEOF
65928  ice_have_snprintf=yes
65929 fi
65930 done
65931
65932 if test "${ice_have_snprintf}" = yes; then
65933 { $as_echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
65934 $as_echo_n "checking for snprintf declaration in stdio.h... " >&6; }
65935 if test "${ice_cv_have_snprintf_decl+set}" = set; then
65936   $as_echo_n "(cached) " >&6
65937 else
65938
65939 ice_cv_have_snprintf_decl=no
65940 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65941 ice_re_word='(^|[^a-zA-Z0-9_])'
65942 for header in stdio.h; do
65943 # Check for ordinary declaration
65944 cat >conftest.$ac_ext <<_ACEOF
65945 /* confdefs.h.  */
65946 _ACEOF
65947 cat confdefs.h >>conftest.$ac_ext
65948 cat >>conftest.$ac_ext <<_ACEOF
65949 /* end confdefs.h.  */
65950 #include <$header>
65951
65952 _ACEOF
65953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65954   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then
65955   ice_cv_have_snprintf_decl=yes
65956 fi
65957 rm -f conftest*
65958
65959 if test "$ice_cv_have_snprintf_decl" = yes; then
65960         break
65961 fi
65962 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65963 cat >conftest.$ac_ext <<_ACEOF
65964 /* confdefs.h.  */
65965 _ACEOF
65966 cat confdefs.h >>conftest.$ac_ext
65967 cat >>conftest.$ac_ext <<_ACEOF
65968 /* end confdefs.h.  */
65969 #include <$header>
65970
65971 _ACEOF
65972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65973   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65974   ice_cv_have_snprintf_decl=yes
65975 fi
65976 rm -f conftest*
65977
65978 if test "$ice_cv_have_snprintf_decl" = yes; then
65979         break
65980 fi
65981 done
65982
65983 fi
65984
65985 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
65986 $as_echo "$ice_cv_have_snprintf_decl" >&6; }
65987 if test "$ice_cv_have_snprintf_decl" = yes; then
65988
65989 cat >>confdefs.h <<_ACEOF
65990 #define HAVE_SNPRINTF_DECL 1
65991 _ACEOF
65992
65993 fi
65994 fi
65995
65996
65997 ice_have_vsnprintf=no
65998
65999 for ac_func in vsnprintf
66000 do
66001 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66002 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66003 $as_echo_n "checking for $ac_func... " >&6; }
66004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66005   $as_echo_n "(cached) " >&6
66006 else
66007   cat >conftest.$ac_ext <<_ACEOF
66008 /* confdefs.h.  */
66009 _ACEOF
66010 cat confdefs.h >>conftest.$ac_ext
66011 cat >>conftest.$ac_ext <<_ACEOF
66012 /* end confdefs.h.  */
66013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66015 #define $ac_func innocuous_$ac_func
66016
66017 /* System header to define __stub macros and hopefully few prototypes,
66018     which can conflict with char $ac_func (); below.
66019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66020     <limits.h> exists even on freestanding compilers.  */
66021
66022 #ifdef __STDC__
66023 # include <limits.h>
66024 #else
66025 # include <assert.h>
66026 #endif
66027
66028 #undef $ac_func
66029
66030 /* Override any GCC internal prototype to avoid an error.
66031    Use char because int might match the return type of a GCC
66032    builtin and then its argument prototype would still apply.  */
66033 #ifdef __cplusplus
66034 extern "C"
66035 #endif
66036 char $ac_func ();
66037 /* The GNU C library defines this for functions which it implements
66038     to always fail with ENOSYS.  Some functions are actually named
66039     something starting with __ and the normal name is an alias.  */
66040 #if defined __stub_$ac_func || defined __stub___$ac_func
66041 choke me
66042 #endif
66043
66044 int
66045 main ()
66046 {
66047 return $ac_func ();
66048   ;
66049   return 0;
66050 }
66051 _ACEOF
66052 rm -f conftest.$ac_objext conftest$ac_exeext
66053 if { (ac_try="$ac_link"
66054 case "(($ac_try" in
66055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66056   *) ac_try_echo=$ac_try;;
66057 esac
66058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66059 $as_echo "$ac_try_echo") >&5
66060   (eval "$ac_link") 2>conftest.er1
66061   ac_status=$?
66062   grep -v '^ *+' conftest.er1 >conftest.err
66063   rm -f conftest.er1
66064   cat conftest.err >&5
66065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66066   (exit $ac_status); } && {
66067          test -z "$ac_c_werror_flag" ||
66068          test ! -s conftest.err
66069        } && test -s conftest$ac_exeext && {
66070          test "$cross_compiling" = yes ||
66071          $as_test_x conftest$ac_exeext
66072        }; then
66073   eval "$as_ac_var=yes"
66074 else
66075   $as_echo "$as_me: failed program was:" >&5
66076 sed 's/^/| /' conftest.$ac_ext >&5
66077
66078         eval "$as_ac_var=no"
66079 fi
66080
66081 rm -rf conftest.dSYM
66082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66083       conftest$ac_exeext conftest.$ac_ext
66084 fi
66085 ac_res=`eval 'as_val=${'$as_ac_var'}
66086                  $as_echo "$as_val"'`
66087                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66088 $as_echo "$ac_res" >&6; }
66089 as_val=`eval 'as_val=${'$as_ac_var'}
66090                  $as_echo "$as_val"'`
66091    if test "x$as_val" = x""yes; then
66092   cat >>confdefs.h <<_ACEOF
66093 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66094 _ACEOF
66095  ice_have_vsnprintf=yes
66096 fi
66097 done
66098
66099 if test "${ice_have_vsnprintf}" = yes; then
66100 { $as_echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
66101 $as_echo_n "checking for vsnprintf declaration in stdio.h... " >&6; }
66102 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
66103   $as_echo_n "(cached) " >&6
66104 else
66105
66106 ice_cv_have_vsnprintf_decl=no
66107 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66108 ice_re_word='(^|[^a-zA-Z0-9_])'
66109 for header in stdio.h; do
66110 # Check for ordinary declaration
66111 cat >conftest.$ac_ext <<_ACEOF
66112 /* confdefs.h.  */
66113 _ACEOF
66114 cat confdefs.h >>conftest.$ac_ext
66115 cat >>conftest.$ac_ext <<_ACEOF
66116 /* end confdefs.h.  */
66117 #include <$header>
66118
66119 _ACEOF
66120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66121   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then
66122   ice_cv_have_vsnprintf_decl=yes
66123 fi
66124 rm -f conftest*
66125
66126 if test "$ice_cv_have_vsnprintf_decl" = yes; then
66127         break
66128 fi
66129 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66130 cat >conftest.$ac_ext <<_ACEOF
66131 /* confdefs.h.  */
66132 _ACEOF
66133 cat confdefs.h >>conftest.$ac_ext
66134 cat >>conftest.$ac_ext <<_ACEOF
66135 /* end confdefs.h.  */
66136 #include <$header>
66137
66138 _ACEOF
66139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66140   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66141   ice_cv_have_vsnprintf_decl=yes
66142 fi
66143 rm -f conftest*
66144
66145 if test "$ice_cv_have_vsnprintf_decl" = yes; then
66146         break
66147 fi
66148 done
66149
66150 fi
66151
66152 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
66153 $as_echo "$ice_cv_have_vsnprintf_decl" >&6; }
66154 if test "$ice_cv_have_vsnprintf_decl" = yes; then
66155
66156 cat >>confdefs.h <<_ACEOF
66157 #define HAVE_VSNPRINTF_DECL 1
66158 _ACEOF
66159
66160 fi
66161 fi
66162
66163
66164     { $as_echo "$as_me:$LINENO: checking for setpgid" >&5
66165 $as_echo_n "checking for setpgid... " >&6; }
66166 if test "${ac_cv_func_setpgid+set}" = set; then
66167   $as_echo_n "(cached) " >&6
66168 else
66169   cat >conftest.$ac_ext <<_ACEOF
66170 /* confdefs.h.  */
66171 _ACEOF
66172 cat confdefs.h >>conftest.$ac_ext
66173 cat >>conftest.$ac_ext <<_ACEOF
66174 /* end confdefs.h.  */
66175 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
66176    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66177 #define setpgid innocuous_setpgid
66178
66179 /* System header to define __stub macros and hopefully few prototypes,
66180     which can conflict with char setpgid (); below.
66181     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66182     <limits.h> exists even on freestanding compilers.  */
66183
66184 #ifdef __STDC__
66185 # include <limits.h>
66186 #else
66187 # include <assert.h>
66188 #endif
66189
66190 #undef setpgid
66191
66192 /* Override any GCC internal prototype to avoid an error.
66193    Use char because int might match the return type of a GCC
66194    builtin and then its argument prototype would still apply.  */
66195 #ifdef __cplusplus
66196 extern "C"
66197 #endif
66198 char setpgid ();
66199 /* The GNU C library defines this for functions which it implements
66200     to always fail with ENOSYS.  Some functions are actually named
66201     something starting with __ and the normal name is an alias.  */
66202 #if defined __stub_setpgid || defined __stub___setpgid
66203 choke me
66204 #endif
66205
66206 int
66207 main ()
66208 {
66209 return setpgid ();
66210   ;
66211   return 0;
66212 }
66213 _ACEOF
66214 rm -f conftest.$ac_objext conftest$ac_exeext
66215 if { (ac_try="$ac_link"
66216 case "(($ac_try" in
66217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66218   *) ac_try_echo=$ac_try;;
66219 esac
66220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66221 $as_echo "$ac_try_echo") >&5
66222   (eval "$ac_link") 2>conftest.er1
66223   ac_status=$?
66224   grep -v '^ *+' conftest.er1 >conftest.err
66225   rm -f conftest.er1
66226   cat conftest.err >&5
66227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66228   (exit $ac_status); } && {
66229          test -z "$ac_c_werror_flag" ||
66230          test ! -s conftest.err
66231        } && test -s conftest$ac_exeext && {
66232          test "$cross_compiling" = yes ||
66233          $as_test_x conftest$ac_exeext
66234        }; then
66235   ac_cv_func_setpgid=yes
66236 else
66237   $as_echo "$as_me: failed program was:" >&5
66238 sed 's/^/| /' conftest.$ac_ext >&5
66239
66240         ac_cv_func_setpgid=no
66241 fi
66242
66243 rm -rf conftest.dSYM
66244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66245       conftest$ac_exeext conftest.$ac_ext
66246 fi
66247 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
66248 $as_echo "$ac_cv_func_setpgid" >&6; }
66249 if test "x$ac_cv_func_setpgid" = x""yes; then
66250
66251
66252 cat >>confdefs.h <<\_ACEOF
66253 #define HAVE_SETPGID 1
66254 _ACEOF
66255
66256
66257 ice_have_setpgid=no
66258
66259 for ac_func in setpgid
66260 do
66261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66262 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66263 $as_echo_n "checking for $ac_func... " >&6; }
66264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66265   $as_echo_n "(cached) " >&6
66266 else
66267   cat >conftest.$ac_ext <<_ACEOF
66268 /* confdefs.h.  */
66269 _ACEOF
66270 cat confdefs.h >>conftest.$ac_ext
66271 cat >>conftest.$ac_ext <<_ACEOF
66272 /* end confdefs.h.  */
66273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66275 #define $ac_func innocuous_$ac_func
66276
66277 /* System header to define __stub macros and hopefully few prototypes,
66278     which can conflict with char $ac_func (); below.
66279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66280     <limits.h> exists even on freestanding compilers.  */
66281
66282 #ifdef __STDC__
66283 # include <limits.h>
66284 #else
66285 # include <assert.h>
66286 #endif
66287
66288 #undef $ac_func
66289
66290 /* Override any GCC internal prototype to avoid an error.
66291    Use char because int might match the return type of a GCC
66292    builtin and then its argument prototype would still apply.  */
66293 #ifdef __cplusplus
66294 extern "C"
66295 #endif
66296 char $ac_func ();
66297 /* The GNU C library defines this for functions which it implements
66298     to always fail with ENOSYS.  Some functions are actually named
66299     something starting with __ and the normal name is an alias.  */
66300 #if defined __stub_$ac_func || defined __stub___$ac_func
66301 choke me
66302 #endif
66303
66304 int
66305 main ()
66306 {
66307 return $ac_func ();
66308   ;
66309   return 0;
66310 }
66311 _ACEOF
66312 rm -f conftest.$ac_objext conftest$ac_exeext
66313 if { (ac_try="$ac_link"
66314 case "(($ac_try" in
66315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66316   *) ac_try_echo=$ac_try;;
66317 esac
66318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66319 $as_echo "$ac_try_echo") >&5
66320   (eval "$ac_link") 2>conftest.er1
66321   ac_status=$?
66322   grep -v '^ *+' conftest.er1 >conftest.err
66323   rm -f conftest.er1
66324   cat conftest.err >&5
66325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66326   (exit $ac_status); } && {
66327          test -z "$ac_c_werror_flag" ||
66328          test ! -s conftest.err
66329        } && test -s conftest$ac_exeext && {
66330          test "$cross_compiling" = yes ||
66331          $as_test_x conftest$ac_exeext
66332        }; then
66333   eval "$as_ac_var=yes"
66334 else
66335   $as_echo "$as_me: failed program was:" >&5
66336 sed 's/^/| /' conftest.$ac_ext >&5
66337
66338         eval "$as_ac_var=no"
66339 fi
66340
66341 rm -rf conftest.dSYM
66342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66343       conftest$ac_exeext conftest.$ac_ext
66344 fi
66345 ac_res=`eval 'as_val=${'$as_ac_var'}
66346                  $as_echo "$as_val"'`
66347                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66348 $as_echo "$ac_res" >&6; }
66349 as_val=`eval 'as_val=${'$as_ac_var'}
66350                  $as_echo "$as_val"'`
66351    if test "x$as_val" = x""yes; then
66352   cat >>confdefs.h <<_ACEOF
66353 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66354 _ACEOF
66355  ice_have_setpgid=yes
66356 fi
66357 done
66358
66359 if test "${ice_have_setpgid}" = yes; then
66360 { $as_echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
66361 $as_echo_n "checking for setpgid declaration in sys/types.h unistd.h... " >&6; }
66362 if test "${ice_cv_have_setpgid_decl+set}" = set; then
66363   $as_echo_n "(cached) " >&6
66364 else
66365
66366 ice_cv_have_setpgid_decl=no
66367 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66368 ice_re_word='(^|[^a-zA-Z0-9_])'
66369 for header in sys/types.h unistd.h; do
66370 # Check for ordinary declaration
66371 cat >conftest.$ac_ext <<_ACEOF
66372 /* confdefs.h.  */
66373 _ACEOF
66374 cat confdefs.h >>conftest.$ac_ext
66375 cat >>conftest.$ac_ext <<_ACEOF
66376 /* end confdefs.h.  */
66377 #include <$header>
66378
66379 _ACEOF
66380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66381   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then
66382   ice_cv_have_setpgid_decl=yes
66383 fi
66384 rm -f conftest*
66385
66386 if test "$ice_cv_have_setpgid_decl" = yes; then
66387         break
66388 fi
66389 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66390 cat >conftest.$ac_ext <<_ACEOF
66391 /* confdefs.h.  */
66392 _ACEOF
66393 cat confdefs.h >>conftest.$ac_ext
66394 cat >>conftest.$ac_ext <<_ACEOF
66395 /* end confdefs.h.  */
66396 #include <$header>
66397
66398 _ACEOF
66399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66400   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66401   ice_cv_have_setpgid_decl=yes
66402 fi
66403 rm -f conftest*
66404
66405 if test "$ice_cv_have_setpgid_decl" = yes; then
66406         break
66407 fi
66408 done
66409
66410 fi
66411
66412 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
66413 $as_echo "$ice_cv_have_setpgid_decl" >&6; }
66414 if test "$ice_cv_have_setpgid_decl" = yes; then
66415
66416 cat >>confdefs.h <<_ACEOF
66417 #define HAVE_SETPGID_DECL 1
66418 _ACEOF
66419
66420 fi
66421 fi
66422
66423
66424 fi
66425
66426
66427 { $as_echo "$as_me:$LINENO: checking for setpgrp" >&5
66428 $as_echo_n "checking for setpgrp... " >&6; }
66429 if test "${ac_cv_func_setpgrp+set}" = set; then
66430   $as_echo_n "(cached) " >&6
66431 else
66432   cat >conftest.$ac_ext <<_ACEOF
66433 /* confdefs.h.  */
66434 _ACEOF
66435 cat confdefs.h >>conftest.$ac_ext
66436 cat >>conftest.$ac_ext <<_ACEOF
66437 /* end confdefs.h.  */
66438 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
66439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66440 #define setpgrp innocuous_setpgrp
66441
66442 /* System header to define __stub macros and hopefully few prototypes,
66443     which can conflict with char setpgrp (); below.
66444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66445     <limits.h> exists even on freestanding compilers.  */
66446
66447 #ifdef __STDC__
66448 # include <limits.h>
66449 #else
66450 # include <assert.h>
66451 #endif
66452
66453 #undef setpgrp
66454
66455 /* Override any GCC internal prototype to avoid an error.
66456    Use char because int might match the return type of a GCC
66457    builtin and then its argument prototype would still apply.  */
66458 #ifdef __cplusplus
66459 extern "C"
66460 #endif
66461 char setpgrp ();
66462 /* The GNU C library defines this for functions which it implements
66463     to always fail with ENOSYS.  Some functions are actually named
66464     something starting with __ and the normal name is an alias.  */
66465 #if defined __stub_setpgrp || defined __stub___setpgrp
66466 choke me
66467 #endif
66468
66469 int
66470 main ()
66471 {
66472 return setpgrp ();
66473   ;
66474   return 0;
66475 }
66476 _ACEOF
66477 rm -f conftest.$ac_objext conftest$ac_exeext
66478 if { (ac_try="$ac_link"
66479 case "(($ac_try" in
66480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66481   *) ac_try_echo=$ac_try;;
66482 esac
66483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66484 $as_echo "$ac_try_echo") >&5
66485   (eval "$ac_link") 2>conftest.er1
66486   ac_status=$?
66487   grep -v '^ *+' conftest.er1 >conftest.err
66488   rm -f conftest.er1
66489   cat conftest.err >&5
66490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66491   (exit $ac_status); } && {
66492          test -z "$ac_c_werror_flag" ||
66493          test ! -s conftest.err
66494        } && test -s conftest$ac_exeext && {
66495          test "$cross_compiling" = yes ||
66496          $as_test_x conftest$ac_exeext
66497        }; then
66498   ac_cv_func_setpgrp=yes
66499 else
66500   $as_echo "$as_me: failed program was:" >&5
66501 sed 's/^/| /' conftest.$ac_ext >&5
66502
66503         ac_cv_func_setpgrp=no
66504 fi
66505
66506 rm -rf conftest.dSYM
66507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66508       conftest$ac_exeext conftest.$ac_ext
66509 fi
66510 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
66511 $as_echo "$ac_cv_func_setpgrp" >&6; }
66512 if test "x$ac_cv_func_setpgrp" = x""yes; then
66513   { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
66514 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
66515 if test "${ac_cv_func_setpgrp_void+set}" = set; then
66516   $as_echo_n "(cached) " >&6
66517 else
66518   if test "$cross_compiling" = yes; then
66519   { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
66520 $as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
66521    { (exit 1); exit 1; }; }
66522 else
66523   cat >conftest.$ac_ext <<_ACEOF
66524 /* confdefs.h.  */
66525 _ACEOF
66526 cat confdefs.h >>conftest.$ac_ext
66527 cat >>conftest.$ac_ext <<_ACEOF
66528 /* end confdefs.h.  */
66529 $ac_includes_default
66530 int
66531 main ()
66532 {
66533 /* If this system has a BSD-style setpgrp which takes arguments,
66534   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
66535   exit successfully. */
66536   return setpgrp (1,1) != -1;
66537   ;
66538   return 0;
66539 }
66540 _ACEOF
66541 rm -f conftest$ac_exeext
66542 if { (ac_try="$ac_link"
66543 case "(($ac_try" in
66544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66545   *) ac_try_echo=$ac_try;;
66546 esac
66547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66548 $as_echo "$ac_try_echo") >&5
66549   (eval "$ac_link") 2>&5
66550   ac_status=$?
66551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
66553   { (case "(($ac_try" in
66554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66555   *) ac_try_echo=$ac_try;;
66556 esac
66557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66558 $as_echo "$ac_try_echo") >&5
66559   (eval "$ac_try") 2>&5
66560   ac_status=$?
66561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66562   (exit $ac_status); }; }; then
66563   ac_cv_func_setpgrp_void=no
66564 else
66565   $as_echo "$as_me: program exited with status $ac_status" >&5
66566 $as_echo "$as_me: failed program was:" >&5
66567 sed 's/^/| /' conftest.$ac_ext >&5
66568
66569 ( exit $ac_status )
66570 ac_cv_func_setpgrp_void=yes
66571 fi
66572 rm -rf conftest.dSYM
66573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
66574 fi
66575
66576
66577 fi
66578 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
66579 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
66580 if test $ac_cv_func_setpgrp_void = yes; then
66581
66582 cat >>confdefs.h <<\_ACEOF
66583 #define SETPGRP_VOID 1
66584 _ACEOF
66585
66586 fi
66587
66588 fi
66589
66590
66591 ice_have_setpgrp=no
66592
66593 for ac_func in setpgrp
66594 do
66595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66596 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66597 $as_echo_n "checking for $ac_func... " >&6; }
66598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66599   $as_echo_n "(cached) " >&6
66600 else
66601   cat >conftest.$ac_ext <<_ACEOF
66602 /* confdefs.h.  */
66603 _ACEOF
66604 cat confdefs.h >>conftest.$ac_ext
66605 cat >>conftest.$ac_ext <<_ACEOF
66606 /* end confdefs.h.  */
66607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66609 #define $ac_func innocuous_$ac_func
66610
66611 /* System header to define __stub macros and hopefully few prototypes,
66612     which can conflict with char $ac_func (); below.
66613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66614     <limits.h> exists even on freestanding compilers.  */
66615
66616 #ifdef __STDC__
66617 # include <limits.h>
66618 #else
66619 # include <assert.h>
66620 #endif
66621
66622 #undef $ac_func
66623
66624 /* Override any GCC internal prototype to avoid an error.
66625    Use char because int might match the return type of a GCC
66626    builtin and then its argument prototype would still apply.  */
66627 #ifdef __cplusplus
66628 extern "C"
66629 #endif
66630 char $ac_func ();
66631 /* The GNU C library defines this for functions which it implements
66632     to always fail with ENOSYS.  Some functions are actually named
66633     something starting with __ and the normal name is an alias.  */
66634 #if defined __stub_$ac_func || defined __stub___$ac_func
66635 choke me
66636 #endif
66637
66638 int
66639 main ()
66640 {
66641 return $ac_func ();
66642   ;
66643   return 0;
66644 }
66645 _ACEOF
66646 rm -f conftest.$ac_objext conftest$ac_exeext
66647 if { (ac_try="$ac_link"
66648 case "(($ac_try" in
66649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66650   *) ac_try_echo=$ac_try;;
66651 esac
66652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66653 $as_echo "$ac_try_echo") >&5
66654   (eval "$ac_link") 2>conftest.er1
66655   ac_status=$?
66656   grep -v '^ *+' conftest.er1 >conftest.err
66657   rm -f conftest.er1
66658   cat conftest.err >&5
66659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66660   (exit $ac_status); } && {
66661          test -z "$ac_c_werror_flag" ||
66662          test ! -s conftest.err
66663        } && test -s conftest$ac_exeext && {
66664          test "$cross_compiling" = yes ||
66665          $as_test_x conftest$ac_exeext
66666        }; then
66667   eval "$as_ac_var=yes"
66668 else
66669   $as_echo "$as_me: failed program was:" >&5
66670 sed 's/^/| /' conftest.$ac_ext >&5
66671
66672         eval "$as_ac_var=no"
66673 fi
66674
66675 rm -rf conftest.dSYM
66676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66677       conftest$ac_exeext conftest.$ac_ext
66678 fi
66679 ac_res=`eval 'as_val=${'$as_ac_var'}
66680                  $as_echo "$as_val"'`
66681                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66682 $as_echo "$ac_res" >&6; }
66683 as_val=`eval 'as_val=${'$as_ac_var'}
66684                  $as_echo "$as_val"'`
66685    if test "x$as_val" = x""yes; then
66686   cat >>confdefs.h <<_ACEOF
66687 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66688 _ACEOF
66689  ice_have_setpgrp=yes
66690 fi
66691 done
66692
66693 if test "${ice_have_setpgrp}" = yes; then
66694 { $as_echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
66695 $as_echo_n "checking for setpgrp declaration in sys/types.h unistd.h libc.h... " >&6; }
66696 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
66697   $as_echo_n "(cached) " >&6
66698 else
66699
66700 ice_cv_have_setpgrp_decl=no
66701 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66702 ice_re_word='(^|[^a-zA-Z0-9_])'
66703 for header in sys/types.h unistd.h libc.h; do
66704 # Check for ordinary declaration
66705 cat >conftest.$ac_ext <<_ACEOF
66706 /* confdefs.h.  */
66707 _ACEOF
66708 cat confdefs.h >>conftest.$ac_ext
66709 cat >>conftest.$ac_ext <<_ACEOF
66710 /* end confdefs.h.  */
66711 #include <$header>
66712
66713 _ACEOF
66714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66715   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then
66716   ice_cv_have_setpgrp_decl=yes
66717 fi
66718 rm -f conftest*
66719
66720 if test "$ice_cv_have_setpgrp_decl" = yes; then
66721         break
66722 fi
66723 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66724 cat >conftest.$ac_ext <<_ACEOF
66725 /* confdefs.h.  */
66726 _ACEOF
66727 cat confdefs.h >>conftest.$ac_ext
66728 cat >>conftest.$ac_ext <<_ACEOF
66729 /* end confdefs.h.  */
66730 #include <$header>
66731
66732 _ACEOF
66733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66734   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66735   ice_cv_have_setpgrp_decl=yes
66736 fi
66737 rm -f conftest*
66738
66739 if test "$ice_cv_have_setpgrp_decl" = yes; then
66740         break
66741 fi
66742 done
66743
66744 fi
66745
66746 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
66747 $as_echo "$ice_cv_have_setpgrp_decl" >&6; }
66748 if test "$ice_cv_have_setpgrp_decl" = yes; then
66749
66750 cat >>confdefs.h <<_ACEOF
66751 #define HAVE_SETPGRP_DECL 1
66752 _ACEOF
66753
66754 fi
66755 fi
66756
66757
66758 ice_have_setsockopt=no
66759
66760 for ac_func in setsockopt
66761 do
66762 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66763 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66764 $as_echo_n "checking for $ac_func... " >&6; }
66765 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66766   $as_echo_n "(cached) " >&6
66767 else
66768   cat >conftest.$ac_ext <<_ACEOF
66769 /* confdefs.h.  */
66770 _ACEOF
66771 cat confdefs.h >>conftest.$ac_ext
66772 cat >>conftest.$ac_ext <<_ACEOF
66773 /* end confdefs.h.  */
66774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66776 #define $ac_func innocuous_$ac_func
66777
66778 /* System header to define __stub macros and hopefully few prototypes,
66779     which can conflict with char $ac_func (); below.
66780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66781     <limits.h> exists even on freestanding compilers.  */
66782
66783 #ifdef __STDC__
66784 # include <limits.h>
66785 #else
66786 # include <assert.h>
66787 #endif
66788
66789 #undef $ac_func
66790
66791 /* Override any GCC internal prototype to avoid an error.
66792    Use char because int might match the return type of a GCC
66793    builtin and then its argument prototype would still apply.  */
66794 #ifdef __cplusplus
66795 extern "C"
66796 #endif
66797 char $ac_func ();
66798 /* The GNU C library defines this for functions which it implements
66799     to always fail with ENOSYS.  Some functions are actually named
66800     something starting with __ and the normal name is an alias.  */
66801 #if defined __stub_$ac_func || defined __stub___$ac_func
66802 choke me
66803 #endif
66804
66805 int
66806 main ()
66807 {
66808 return $ac_func ();
66809   ;
66810   return 0;
66811 }
66812 _ACEOF
66813 rm -f conftest.$ac_objext conftest$ac_exeext
66814 if { (ac_try="$ac_link"
66815 case "(($ac_try" in
66816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66817   *) ac_try_echo=$ac_try;;
66818 esac
66819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66820 $as_echo "$ac_try_echo") >&5
66821   (eval "$ac_link") 2>conftest.er1
66822   ac_status=$?
66823   grep -v '^ *+' conftest.er1 >conftest.err
66824   rm -f conftest.er1
66825   cat conftest.err >&5
66826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66827   (exit $ac_status); } && {
66828          test -z "$ac_c_werror_flag" ||
66829          test ! -s conftest.err
66830        } && test -s conftest$ac_exeext && {
66831          test "$cross_compiling" = yes ||
66832          $as_test_x conftest$ac_exeext
66833        }; then
66834   eval "$as_ac_var=yes"
66835 else
66836   $as_echo "$as_me: failed program was:" >&5
66837 sed 's/^/| /' conftest.$ac_ext >&5
66838
66839         eval "$as_ac_var=no"
66840 fi
66841
66842 rm -rf conftest.dSYM
66843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66844       conftest$ac_exeext conftest.$ac_ext
66845 fi
66846 ac_res=`eval 'as_val=${'$as_ac_var'}
66847                  $as_echo "$as_val"'`
66848                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66849 $as_echo "$ac_res" >&6; }
66850 as_val=`eval 'as_val=${'$as_ac_var'}
66851                  $as_echo "$as_val"'`
66852    if test "x$as_val" = x""yes; then
66853   cat >>confdefs.h <<_ACEOF
66854 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66855 _ACEOF
66856  ice_have_setsockopt=yes
66857 fi
66858 done
66859
66860 if test "${ice_have_setsockopt}" = yes; then
66861 { $as_echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
66862 $as_echo_n "checking for setsockopt declaration in sys/types.h sys/socket.h... " >&6; }
66863 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
66864   $as_echo_n "(cached) " >&6
66865 else
66866
66867 ice_cv_have_setsockopt_decl=no
66868 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66869 ice_re_word='(^|[^a-zA-Z0-9_])'
66870 for header in sys/types.h sys/socket.h; do
66871 # Check for ordinary declaration
66872 cat >conftest.$ac_ext <<_ACEOF
66873 /* confdefs.h.  */
66874 _ACEOF
66875 cat confdefs.h >>conftest.$ac_ext
66876 cat >>conftest.$ac_ext <<_ACEOF
66877 /* end confdefs.h.  */
66878 #include <$header>
66879
66880 _ACEOF
66881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66882   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then
66883   ice_cv_have_setsockopt_decl=yes
66884 fi
66885 rm -f conftest*
66886
66887 if test "$ice_cv_have_setsockopt_decl" = yes; then
66888         break
66889 fi
66890 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66891 cat >conftest.$ac_ext <<_ACEOF
66892 /* confdefs.h.  */
66893 _ACEOF
66894 cat confdefs.h >>conftest.$ac_ext
66895 cat >>conftest.$ac_ext <<_ACEOF
66896 /* end confdefs.h.  */
66897 #include <$header>
66898
66899 _ACEOF
66900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66901   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66902   ice_cv_have_setsockopt_decl=yes
66903 fi
66904 rm -f conftest*
66905
66906 if test "$ice_cv_have_setsockopt_decl" = yes; then
66907         break
66908 fi
66909 done
66910
66911 fi
66912
66913 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
66914 $as_echo "$ice_cv_have_setsockopt_decl" >&6; }
66915 if test "$ice_cv_have_setsockopt_decl" = yes; then
66916
66917 cat >>confdefs.h <<_ACEOF
66918 #define HAVE_SETSOCKOPT_DECL 1
66919 _ACEOF
66920
66921 fi
66922 fi
66923
66924
66925
66926
66927 for ac_func in sigaction sigemptyset sigvec
66928 do
66929 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66930 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66931 $as_echo_n "checking for $ac_func... " >&6; }
66932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66933   $as_echo_n "(cached) " >&6
66934 else
66935   cat >conftest.$ac_ext <<_ACEOF
66936 /* confdefs.h.  */
66937 _ACEOF
66938 cat confdefs.h >>conftest.$ac_ext
66939 cat >>conftest.$ac_ext <<_ACEOF
66940 /* end confdefs.h.  */
66941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66943 #define $ac_func innocuous_$ac_func
66944
66945 /* System header to define __stub macros and hopefully few prototypes,
66946     which can conflict with char $ac_func (); below.
66947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66948     <limits.h> exists even on freestanding compilers.  */
66949
66950 #ifdef __STDC__
66951 # include <limits.h>
66952 #else
66953 # include <assert.h>
66954 #endif
66955
66956 #undef $ac_func
66957
66958 /* Override any GCC internal prototype to avoid an error.
66959    Use char because int might match the return type of a GCC
66960    builtin and then its argument prototype would still apply.  */
66961 #ifdef __cplusplus
66962 extern "C"
66963 #endif
66964 char $ac_func ();
66965 /* The GNU C library defines this for functions which it implements
66966     to always fail with ENOSYS.  Some functions are actually named
66967     something starting with __ and the normal name is an alias.  */
66968 #if defined __stub_$ac_func || defined __stub___$ac_func
66969 choke me
66970 #endif
66971
66972 int
66973 main ()
66974 {
66975 return $ac_func ();
66976   ;
66977   return 0;
66978 }
66979 _ACEOF
66980 rm -f conftest.$ac_objext conftest$ac_exeext
66981 if { (ac_try="$ac_link"
66982 case "(($ac_try" in
66983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66984   *) ac_try_echo=$ac_try;;
66985 esac
66986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66987 $as_echo "$ac_try_echo") >&5
66988   (eval "$ac_link") 2>conftest.er1
66989   ac_status=$?
66990   grep -v '^ *+' conftest.er1 >conftest.err
66991   rm -f conftest.er1
66992   cat conftest.err >&5
66993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66994   (exit $ac_status); } && {
66995          test -z "$ac_c_werror_flag" ||
66996          test ! -s conftest.err
66997        } && test -s conftest$ac_exeext && {
66998          test "$cross_compiling" = yes ||
66999          $as_test_x conftest$ac_exeext
67000        }; then
67001   eval "$as_ac_var=yes"
67002 else
67003   $as_echo "$as_me: failed program was:" >&5
67004 sed 's/^/| /' conftest.$ac_ext >&5
67005
67006         eval "$as_ac_var=no"
67007 fi
67008
67009 rm -rf conftest.dSYM
67010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67011       conftest$ac_exeext conftest.$ac_ext
67012 fi
67013 ac_res=`eval 'as_val=${'$as_ac_var'}
67014                  $as_echo "$as_val"'`
67015                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67016 $as_echo "$ac_res" >&6; }
67017 as_val=`eval 'as_val=${'$as_ac_var'}
67018                  $as_echo "$as_val"'`
67019    if test "x$as_val" = x""yes; then
67020   cat >>confdefs.h <<_ACEOF
67021 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67022 _ACEOF
67023
67024 fi
67025 done
67026
67027
67028 ice_have_socket=no
67029
67030 for ac_func in socket
67031 do
67032 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67033 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67034 $as_echo_n "checking for $ac_func... " >&6; }
67035 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67036   $as_echo_n "(cached) " >&6
67037 else
67038   cat >conftest.$ac_ext <<_ACEOF
67039 /* confdefs.h.  */
67040 _ACEOF
67041 cat confdefs.h >>conftest.$ac_ext
67042 cat >>conftest.$ac_ext <<_ACEOF
67043 /* end confdefs.h.  */
67044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67045    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67046 #define $ac_func innocuous_$ac_func
67047
67048 /* System header to define __stub macros and hopefully few prototypes,
67049     which can conflict with char $ac_func (); below.
67050     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67051     <limits.h> exists even on freestanding compilers.  */
67052
67053 #ifdef __STDC__
67054 # include <limits.h>
67055 #else
67056 # include <assert.h>
67057 #endif
67058
67059 #undef $ac_func
67060
67061 /* Override any GCC internal prototype to avoid an error.
67062    Use char because int might match the return type of a GCC
67063    builtin and then its argument prototype would still apply.  */
67064 #ifdef __cplusplus
67065 extern "C"
67066 #endif
67067 char $ac_func ();
67068 /* The GNU C library defines this for functions which it implements
67069     to always fail with ENOSYS.  Some functions are actually named
67070     something starting with __ and the normal name is an alias.  */
67071 #if defined __stub_$ac_func || defined __stub___$ac_func
67072 choke me
67073 #endif
67074
67075 int
67076 main ()
67077 {
67078 return $ac_func ();
67079   ;
67080   return 0;
67081 }
67082 _ACEOF
67083 rm -f conftest.$ac_objext conftest$ac_exeext
67084 if { (ac_try="$ac_link"
67085 case "(($ac_try" in
67086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67087   *) ac_try_echo=$ac_try;;
67088 esac
67089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67090 $as_echo "$ac_try_echo") >&5
67091   (eval "$ac_link") 2>conftest.er1
67092   ac_status=$?
67093   grep -v '^ *+' conftest.er1 >conftest.err
67094   rm -f conftest.er1
67095   cat conftest.err >&5
67096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67097   (exit $ac_status); } && {
67098          test -z "$ac_c_werror_flag" ||
67099          test ! -s conftest.err
67100        } && test -s conftest$ac_exeext && {
67101          test "$cross_compiling" = yes ||
67102          $as_test_x conftest$ac_exeext
67103        }; then
67104   eval "$as_ac_var=yes"
67105 else
67106   $as_echo "$as_me: failed program was:" >&5
67107 sed 's/^/| /' conftest.$ac_ext >&5
67108
67109         eval "$as_ac_var=no"
67110 fi
67111
67112 rm -rf conftest.dSYM
67113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67114       conftest$ac_exeext conftest.$ac_ext
67115 fi
67116 ac_res=`eval 'as_val=${'$as_ac_var'}
67117                  $as_echo "$as_val"'`
67118                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67119 $as_echo "$ac_res" >&6; }
67120 as_val=`eval 'as_val=${'$as_ac_var'}
67121                  $as_echo "$as_val"'`
67122    if test "x$as_val" = x""yes; then
67123   cat >>confdefs.h <<_ACEOF
67124 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67125 _ACEOF
67126  ice_have_socket=yes
67127 fi
67128 done
67129
67130 if test "${ice_have_socket}" = yes; then
67131 { $as_echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
67132 $as_echo_n "checking for socket declaration in sys/types.h sys/socket.h... " >&6; }
67133 if test "${ice_cv_have_socket_decl+set}" = set; then
67134   $as_echo_n "(cached) " >&6
67135 else
67136
67137 ice_cv_have_socket_decl=no
67138 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67139 ice_re_word='(^|[^a-zA-Z0-9_])'
67140 for header in sys/types.h sys/socket.h; do
67141 # Check for ordinary declaration
67142 cat >conftest.$ac_ext <<_ACEOF
67143 /* confdefs.h.  */
67144 _ACEOF
67145 cat confdefs.h >>conftest.$ac_ext
67146 cat >>conftest.$ac_ext <<_ACEOF
67147 /* end confdefs.h.  */
67148 #include <$header>
67149
67150 _ACEOF
67151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67152   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then
67153   ice_cv_have_socket_decl=yes
67154 fi
67155 rm -f conftest*
67156
67157 if test "$ice_cv_have_socket_decl" = yes; then
67158         break
67159 fi
67160 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67161 cat >conftest.$ac_ext <<_ACEOF
67162 /* confdefs.h.  */
67163 _ACEOF
67164 cat confdefs.h >>conftest.$ac_ext
67165 cat >>conftest.$ac_ext <<_ACEOF
67166 /* end confdefs.h.  */
67167 #include <$header>
67168
67169 _ACEOF
67170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67171   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67172   ice_cv_have_socket_decl=yes
67173 fi
67174 rm -f conftest*
67175
67176 if test "$ice_cv_have_socket_decl" = yes; then
67177         break
67178 fi
67179 done
67180
67181 fi
67182
67183 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
67184 $as_echo "$ice_cv_have_socket_decl" >&6; }
67185 if test "$ice_cv_have_socket_decl" = yes; then
67186
67187 cat >>confdefs.h <<_ACEOF
67188 #define HAVE_SOCKET_DECL 1
67189 _ACEOF
67190
67191 fi
67192 fi
67193
67194
67195 ice_have_socketpair=no
67196
67197 for ac_func in socketpair
67198 do
67199 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67200 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67201 $as_echo_n "checking for $ac_func... " >&6; }
67202 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67203   $as_echo_n "(cached) " >&6
67204 else
67205   cat >conftest.$ac_ext <<_ACEOF
67206 /* confdefs.h.  */
67207 _ACEOF
67208 cat confdefs.h >>conftest.$ac_ext
67209 cat >>conftest.$ac_ext <<_ACEOF
67210 /* end confdefs.h.  */
67211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67212    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67213 #define $ac_func innocuous_$ac_func
67214
67215 /* System header to define __stub macros and hopefully few prototypes,
67216     which can conflict with char $ac_func (); below.
67217     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67218     <limits.h> exists even on freestanding compilers.  */
67219
67220 #ifdef __STDC__
67221 # include <limits.h>
67222 #else
67223 # include <assert.h>
67224 #endif
67225
67226 #undef $ac_func
67227
67228 /* Override any GCC internal prototype to avoid an error.
67229    Use char because int might match the return type of a GCC
67230    builtin and then its argument prototype would still apply.  */
67231 #ifdef __cplusplus
67232 extern "C"
67233 #endif
67234 char $ac_func ();
67235 /* The GNU C library defines this for functions which it implements
67236     to always fail with ENOSYS.  Some functions are actually named
67237     something starting with __ and the normal name is an alias.  */
67238 #if defined __stub_$ac_func || defined __stub___$ac_func
67239 choke me
67240 #endif
67241
67242 int
67243 main ()
67244 {
67245 return $ac_func ();
67246   ;
67247   return 0;
67248 }
67249 _ACEOF
67250 rm -f conftest.$ac_objext conftest$ac_exeext
67251 if { (ac_try="$ac_link"
67252 case "(($ac_try" in
67253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67254   *) ac_try_echo=$ac_try;;
67255 esac
67256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67257 $as_echo "$ac_try_echo") >&5
67258   (eval "$ac_link") 2>conftest.er1
67259   ac_status=$?
67260   grep -v '^ *+' conftest.er1 >conftest.err
67261   rm -f conftest.er1
67262   cat conftest.err >&5
67263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67264   (exit $ac_status); } && {
67265          test -z "$ac_c_werror_flag" ||
67266          test ! -s conftest.err
67267        } && test -s conftest$ac_exeext && {
67268          test "$cross_compiling" = yes ||
67269          $as_test_x conftest$ac_exeext
67270        }; then
67271   eval "$as_ac_var=yes"
67272 else
67273   $as_echo "$as_me: failed program was:" >&5
67274 sed 's/^/| /' conftest.$ac_ext >&5
67275
67276         eval "$as_ac_var=no"
67277 fi
67278
67279 rm -rf conftest.dSYM
67280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67281       conftest$ac_exeext conftest.$ac_ext
67282 fi
67283 ac_res=`eval 'as_val=${'$as_ac_var'}
67284                  $as_echo "$as_val"'`
67285                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67286 $as_echo "$ac_res" >&6; }
67287 as_val=`eval 'as_val=${'$as_ac_var'}
67288                  $as_echo "$as_val"'`
67289    if test "x$as_val" = x""yes; then
67290   cat >>confdefs.h <<_ACEOF
67291 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67292 _ACEOF
67293  ice_have_socketpair=yes
67294 fi
67295 done
67296
67297 if test "${ice_have_socketpair}" = yes; then
67298 { $as_echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
67299 $as_echo_n "checking for socketpair declaration in sys/types.h sys/socket.h... " >&6; }
67300 if test "${ice_cv_have_socketpair_decl+set}" = set; then
67301   $as_echo_n "(cached) " >&6
67302 else
67303
67304 ice_cv_have_socketpair_decl=no
67305 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67306 ice_re_word='(^|[^a-zA-Z0-9_])'
67307 for header in sys/types.h sys/socket.h; do
67308 # Check for ordinary declaration
67309 cat >conftest.$ac_ext <<_ACEOF
67310 /* confdefs.h.  */
67311 _ACEOF
67312 cat confdefs.h >>conftest.$ac_ext
67313 cat >>conftest.$ac_ext <<_ACEOF
67314 /* end confdefs.h.  */
67315 #include <$header>
67316
67317 _ACEOF
67318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67319   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then
67320   ice_cv_have_socketpair_decl=yes
67321 fi
67322 rm -f conftest*
67323
67324 if test "$ice_cv_have_socketpair_decl" = yes; then
67325         break
67326 fi
67327 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67328 cat >conftest.$ac_ext <<_ACEOF
67329 /* confdefs.h.  */
67330 _ACEOF
67331 cat confdefs.h >>conftest.$ac_ext
67332 cat >>conftest.$ac_ext <<_ACEOF
67333 /* end confdefs.h.  */
67334 #include <$header>
67335
67336 _ACEOF
67337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67338   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67339   ice_cv_have_socketpair_decl=yes
67340 fi
67341 rm -f conftest*
67342
67343 if test "$ice_cv_have_socketpair_decl" = yes; then
67344         break
67345 fi
67346 done
67347
67348 fi
67349
67350 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
67351 $as_echo "$ice_cv_have_socketpair_decl" >&6; }
67352 if test "$ice_cv_have_socketpair_decl" = yes; then
67353
67354 cat >>confdefs.h <<_ACEOF
67355 #define HAVE_SOCKETPAIR_DECL 1
67356 _ACEOF
67357
67358 fi
67359 fi
67360
67361
67362 ice_have_sscanf=no
67363
67364 for ac_func in sscanf
67365 do
67366 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67367 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67368 $as_echo_n "checking for $ac_func... " >&6; }
67369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67370   $as_echo_n "(cached) " >&6
67371 else
67372   cat >conftest.$ac_ext <<_ACEOF
67373 /* confdefs.h.  */
67374 _ACEOF
67375 cat confdefs.h >>conftest.$ac_ext
67376 cat >>conftest.$ac_ext <<_ACEOF
67377 /* end confdefs.h.  */
67378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67380 #define $ac_func innocuous_$ac_func
67381
67382 /* System header to define __stub macros and hopefully few prototypes,
67383     which can conflict with char $ac_func (); below.
67384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67385     <limits.h> exists even on freestanding compilers.  */
67386
67387 #ifdef __STDC__
67388 # include <limits.h>
67389 #else
67390 # include <assert.h>
67391 #endif
67392
67393 #undef $ac_func
67394
67395 /* Override any GCC internal prototype to avoid an error.
67396    Use char because int might match the return type of a GCC
67397    builtin and then its argument prototype would still apply.  */
67398 #ifdef __cplusplus
67399 extern "C"
67400 #endif
67401 char $ac_func ();
67402 /* The GNU C library defines this for functions which it implements
67403     to always fail with ENOSYS.  Some functions are actually named
67404     something starting with __ and the normal name is an alias.  */
67405 #if defined __stub_$ac_func || defined __stub___$ac_func
67406 choke me
67407 #endif
67408
67409 int
67410 main ()
67411 {
67412 return $ac_func ();
67413   ;
67414   return 0;
67415 }
67416 _ACEOF
67417 rm -f conftest.$ac_objext conftest$ac_exeext
67418 if { (ac_try="$ac_link"
67419 case "(($ac_try" in
67420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67421   *) ac_try_echo=$ac_try;;
67422 esac
67423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67424 $as_echo "$ac_try_echo") >&5
67425   (eval "$ac_link") 2>conftest.er1
67426   ac_status=$?
67427   grep -v '^ *+' conftest.er1 >conftest.err
67428   rm -f conftest.er1
67429   cat conftest.err >&5
67430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67431   (exit $ac_status); } && {
67432          test -z "$ac_c_werror_flag" ||
67433          test ! -s conftest.err
67434        } && test -s conftest$ac_exeext && {
67435          test "$cross_compiling" = yes ||
67436          $as_test_x conftest$ac_exeext
67437        }; then
67438   eval "$as_ac_var=yes"
67439 else
67440   $as_echo "$as_me: failed program was:" >&5
67441 sed 's/^/| /' conftest.$ac_ext >&5
67442
67443         eval "$as_ac_var=no"
67444 fi
67445
67446 rm -rf conftest.dSYM
67447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67448       conftest$ac_exeext conftest.$ac_ext
67449 fi
67450 ac_res=`eval 'as_val=${'$as_ac_var'}
67451                  $as_echo "$as_val"'`
67452                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67453 $as_echo "$ac_res" >&6; }
67454 as_val=`eval 'as_val=${'$as_ac_var'}
67455                  $as_echo "$as_val"'`
67456    if test "x$as_val" = x""yes; then
67457   cat >>confdefs.h <<_ACEOF
67458 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67459 _ACEOF
67460  ice_have_sscanf=yes
67461 fi
67462 done
67463
67464 if test "${ice_have_sscanf}" = yes; then
67465 { $as_echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
67466 $as_echo_n "checking for sscanf declaration in stdio.h... " >&6; }
67467 if test "${ice_cv_have_sscanf_decl+set}" = set; then
67468   $as_echo_n "(cached) " >&6
67469 else
67470
67471 ice_cv_have_sscanf_decl=no
67472 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67473 ice_re_word='(^|[^a-zA-Z0-9_])'
67474 for header in stdio.h; do
67475 # Check for ordinary declaration
67476 cat >conftest.$ac_ext <<_ACEOF
67477 /* confdefs.h.  */
67478 _ACEOF
67479 cat confdefs.h >>conftest.$ac_ext
67480 cat >>conftest.$ac_ext <<_ACEOF
67481 /* end confdefs.h.  */
67482 #include <$header>
67483
67484 _ACEOF
67485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67486   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then
67487   ice_cv_have_sscanf_decl=yes
67488 fi
67489 rm -f conftest*
67490
67491 if test "$ice_cv_have_sscanf_decl" = yes; then
67492         break
67493 fi
67494 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67495 cat >conftest.$ac_ext <<_ACEOF
67496 /* confdefs.h.  */
67497 _ACEOF
67498 cat confdefs.h >>conftest.$ac_ext
67499 cat >>conftest.$ac_ext <<_ACEOF
67500 /* end confdefs.h.  */
67501 #include <$header>
67502
67503 _ACEOF
67504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67505   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67506   ice_cv_have_sscanf_decl=yes
67507 fi
67508 rm -f conftest*
67509
67510 if test "$ice_cv_have_sscanf_decl" = yes; then
67511         break
67512 fi
67513 done
67514
67515 fi
67516
67517 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
67518 $as_echo "$ice_cv_have_sscanf_decl" >&6; }
67519 if test "$ice_cv_have_sscanf_decl" = yes; then
67520
67521 cat >>confdefs.h <<_ACEOF
67522 #define HAVE_SSCANF_DECL 1
67523 _ACEOF
67524
67525 fi
67526 fi
67527
67528
67529 ice_have_strerror=no
67530
67531 for ac_func in strerror
67532 do
67533 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67534 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67535 $as_echo_n "checking for $ac_func... " >&6; }
67536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67537   $as_echo_n "(cached) " >&6
67538 else
67539   cat >conftest.$ac_ext <<_ACEOF
67540 /* confdefs.h.  */
67541 _ACEOF
67542 cat confdefs.h >>conftest.$ac_ext
67543 cat >>conftest.$ac_ext <<_ACEOF
67544 /* end confdefs.h.  */
67545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67547 #define $ac_func innocuous_$ac_func
67548
67549 /* System header to define __stub macros and hopefully few prototypes,
67550     which can conflict with char $ac_func (); below.
67551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67552     <limits.h> exists even on freestanding compilers.  */
67553
67554 #ifdef __STDC__
67555 # include <limits.h>
67556 #else
67557 # include <assert.h>
67558 #endif
67559
67560 #undef $ac_func
67561
67562 /* Override any GCC internal prototype to avoid an error.
67563    Use char because int might match the return type of a GCC
67564    builtin and then its argument prototype would still apply.  */
67565 #ifdef __cplusplus
67566 extern "C"
67567 #endif
67568 char $ac_func ();
67569 /* The GNU C library defines this for functions which it implements
67570     to always fail with ENOSYS.  Some functions are actually named
67571     something starting with __ and the normal name is an alias.  */
67572 #if defined __stub_$ac_func || defined __stub___$ac_func
67573 choke me
67574 #endif
67575
67576 int
67577 main ()
67578 {
67579 return $ac_func ();
67580   ;
67581   return 0;
67582 }
67583 _ACEOF
67584 rm -f conftest.$ac_objext conftest$ac_exeext
67585 if { (ac_try="$ac_link"
67586 case "(($ac_try" in
67587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67588   *) ac_try_echo=$ac_try;;
67589 esac
67590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67591 $as_echo "$ac_try_echo") >&5
67592   (eval "$ac_link") 2>conftest.er1
67593   ac_status=$?
67594   grep -v '^ *+' conftest.er1 >conftest.err
67595   rm -f conftest.er1
67596   cat conftest.err >&5
67597   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67598   (exit $ac_status); } && {
67599          test -z "$ac_c_werror_flag" ||
67600          test ! -s conftest.err
67601        } && test -s conftest$ac_exeext && {
67602          test "$cross_compiling" = yes ||
67603          $as_test_x conftest$ac_exeext
67604        }; then
67605   eval "$as_ac_var=yes"
67606 else
67607   $as_echo "$as_me: failed program was:" >&5
67608 sed 's/^/| /' conftest.$ac_ext >&5
67609
67610         eval "$as_ac_var=no"
67611 fi
67612
67613 rm -rf conftest.dSYM
67614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67615       conftest$ac_exeext conftest.$ac_ext
67616 fi
67617 ac_res=`eval 'as_val=${'$as_ac_var'}
67618                  $as_echo "$as_val"'`
67619                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67620 $as_echo "$ac_res" >&6; }
67621 as_val=`eval 'as_val=${'$as_ac_var'}
67622                  $as_echo "$as_val"'`
67623    if test "x$as_val" = x""yes; then
67624   cat >>confdefs.h <<_ACEOF
67625 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67626 _ACEOF
67627  ice_have_strerror=yes
67628 fi
67629 done
67630
67631 if test "${ice_have_strerror}" = yes; then
67632 { $as_echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
67633 $as_echo_n "checking for strerror declaration in string.h strings.h... " >&6; }
67634 if test "${ice_cv_have_strerror_decl+set}" = set; then
67635   $as_echo_n "(cached) " >&6
67636 else
67637
67638 ice_cv_have_strerror_decl=no
67639 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67640 ice_re_word='(^|[^a-zA-Z0-9_])'
67641 for header in string.h strings.h; do
67642 # Check for ordinary declaration
67643 cat >conftest.$ac_ext <<_ACEOF
67644 /* confdefs.h.  */
67645 _ACEOF
67646 cat confdefs.h >>conftest.$ac_ext
67647 cat >>conftest.$ac_ext <<_ACEOF
67648 /* end confdefs.h.  */
67649 #include <$header>
67650
67651 _ACEOF
67652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67653   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then
67654   ice_cv_have_strerror_decl=yes
67655 fi
67656 rm -f conftest*
67657
67658 if test "$ice_cv_have_strerror_decl" = yes; then
67659         break
67660 fi
67661 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67662 cat >conftest.$ac_ext <<_ACEOF
67663 /* confdefs.h.  */
67664 _ACEOF
67665 cat confdefs.h >>conftest.$ac_ext
67666 cat >>conftest.$ac_ext <<_ACEOF
67667 /* end confdefs.h.  */
67668 #include <$header>
67669
67670 _ACEOF
67671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67672   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67673   ice_cv_have_strerror_decl=yes
67674 fi
67675 rm -f conftest*
67676
67677 if test "$ice_cv_have_strerror_decl" = yes; then
67678         break
67679 fi
67680 done
67681
67682 fi
67683
67684 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
67685 $as_echo "$ice_cv_have_strerror_decl" >&6; }
67686 if test "$ice_cv_have_strerror_decl" = yes; then
67687
67688 cat >>confdefs.h <<_ACEOF
67689 #define HAVE_STRERROR_DECL 1
67690 _ACEOF
67691
67692 fi
67693 fi
67694
67695
67696 for ac_func in strftime
67697 do
67698 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67699 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67700 $as_echo_n "checking for $ac_func... " >&6; }
67701 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67702   $as_echo_n "(cached) " >&6
67703 else
67704   cat >conftest.$ac_ext <<_ACEOF
67705 /* confdefs.h.  */
67706 _ACEOF
67707 cat confdefs.h >>conftest.$ac_ext
67708 cat >>conftest.$ac_ext <<_ACEOF
67709 /* end confdefs.h.  */
67710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67711    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67712 #define $ac_func innocuous_$ac_func
67713
67714 /* System header to define __stub macros and hopefully few prototypes,
67715     which can conflict with char $ac_func (); below.
67716     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67717     <limits.h> exists even on freestanding compilers.  */
67718
67719 #ifdef __STDC__
67720 # include <limits.h>
67721 #else
67722 # include <assert.h>
67723 #endif
67724
67725 #undef $ac_func
67726
67727 /* Override any GCC internal prototype to avoid an error.
67728    Use char because int might match the return type of a GCC
67729    builtin and then its argument prototype would still apply.  */
67730 #ifdef __cplusplus
67731 extern "C"
67732 #endif
67733 char $ac_func ();
67734 /* The GNU C library defines this for functions which it implements
67735     to always fail with ENOSYS.  Some functions are actually named
67736     something starting with __ and the normal name is an alias.  */
67737 #if defined __stub_$ac_func || defined __stub___$ac_func
67738 choke me
67739 #endif
67740
67741 int
67742 main ()
67743 {
67744 return $ac_func ();
67745   ;
67746   return 0;
67747 }
67748 _ACEOF
67749 rm -f conftest.$ac_objext conftest$ac_exeext
67750 if { (ac_try="$ac_link"
67751 case "(($ac_try" in
67752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67753   *) ac_try_echo=$ac_try;;
67754 esac
67755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67756 $as_echo "$ac_try_echo") >&5
67757   (eval "$ac_link") 2>conftest.er1
67758   ac_status=$?
67759   grep -v '^ *+' conftest.er1 >conftest.err
67760   rm -f conftest.er1
67761   cat conftest.err >&5
67762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67763   (exit $ac_status); } && {
67764          test -z "$ac_c_werror_flag" ||
67765          test ! -s conftest.err
67766        } && test -s conftest$ac_exeext && {
67767          test "$cross_compiling" = yes ||
67768          $as_test_x conftest$ac_exeext
67769        }; then
67770   eval "$as_ac_var=yes"
67771 else
67772   $as_echo "$as_me: failed program was:" >&5
67773 sed 's/^/| /' conftest.$ac_ext >&5
67774
67775         eval "$as_ac_var=no"
67776 fi
67777
67778 rm -rf conftest.dSYM
67779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67780       conftest$ac_exeext conftest.$ac_ext
67781 fi
67782 ac_res=`eval 'as_val=${'$as_ac_var'}
67783                  $as_echo "$as_val"'`
67784                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67785 $as_echo "$ac_res" >&6; }
67786 as_val=`eval 'as_val=${'$as_ac_var'}
67787                  $as_echo "$as_val"'`
67788    if test "x$as_val" = x""yes; then
67789   cat >>confdefs.h <<_ACEOF
67790 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67791 _ACEOF
67792
67793 else
67794   # strftime is in -lintl on SCO UNIX.
67795 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
67796 $as_echo_n "checking for strftime in -lintl... " >&6; }
67797 if test "${ac_cv_lib_intl_strftime+set}" = set; then
67798   $as_echo_n "(cached) " >&6
67799 else
67800   ac_check_lib_save_LIBS=$LIBS
67801 LIBS="-lintl  $LIBS"
67802 cat >conftest.$ac_ext <<_ACEOF
67803 /* confdefs.h.  */
67804 _ACEOF
67805 cat confdefs.h >>conftest.$ac_ext
67806 cat >>conftest.$ac_ext <<_ACEOF
67807 /* end confdefs.h.  */
67808
67809 /* Override any GCC internal prototype to avoid an error.
67810    Use char because int might match the return type of a GCC
67811    builtin and then its argument prototype would still apply.  */
67812 #ifdef __cplusplus
67813 extern "C"
67814 #endif
67815 char strftime ();
67816 int
67817 main ()
67818 {
67819 return strftime ();
67820   ;
67821   return 0;
67822 }
67823 _ACEOF
67824 rm -f conftest.$ac_objext conftest$ac_exeext
67825 if { (ac_try="$ac_link"
67826 case "(($ac_try" in
67827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67828   *) ac_try_echo=$ac_try;;
67829 esac
67830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67831 $as_echo "$ac_try_echo") >&5
67832   (eval "$ac_link") 2>conftest.er1
67833   ac_status=$?
67834   grep -v '^ *+' conftest.er1 >conftest.err
67835   rm -f conftest.er1
67836   cat conftest.err >&5
67837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67838   (exit $ac_status); } && {
67839          test -z "$ac_c_werror_flag" ||
67840          test ! -s conftest.err
67841        } && test -s conftest$ac_exeext && {
67842          test "$cross_compiling" = yes ||
67843          $as_test_x conftest$ac_exeext
67844        }; then
67845   ac_cv_lib_intl_strftime=yes
67846 else
67847   $as_echo "$as_me: failed program was:" >&5
67848 sed 's/^/| /' conftest.$ac_ext >&5
67849
67850         ac_cv_lib_intl_strftime=no
67851 fi
67852
67853 rm -rf conftest.dSYM
67854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67855       conftest$ac_exeext conftest.$ac_ext
67856 LIBS=$ac_check_lib_save_LIBS
67857 fi
67858 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
67859 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
67860 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
67861   cat >>confdefs.h <<\_ACEOF
67862 #define HAVE_STRFTIME 1
67863 _ACEOF
67864
67865 LIBS="-lintl $LIBS"
67866 fi
67867
67868 fi
67869 done
67870
67871
67872 ice_have_strftime=no
67873
67874 for ac_func in strftime
67875 do
67876 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67877 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67878 $as_echo_n "checking for $ac_func... " >&6; }
67879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67880   $as_echo_n "(cached) " >&6
67881 else
67882   cat >conftest.$ac_ext <<_ACEOF
67883 /* confdefs.h.  */
67884 _ACEOF
67885 cat confdefs.h >>conftest.$ac_ext
67886 cat >>conftest.$ac_ext <<_ACEOF
67887 /* end confdefs.h.  */
67888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67890 #define $ac_func innocuous_$ac_func
67891
67892 /* System header to define __stub macros and hopefully few prototypes,
67893     which can conflict with char $ac_func (); below.
67894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67895     <limits.h> exists even on freestanding compilers.  */
67896
67897 #ifdef __STDC__
67898 # include <limits.h>
67899 #else
67900 # include <assert.h>
67901 #endif
67902
67903 #undef $ac_func
67904
67905 /* Override any GCC internal prototype to avoid an error.
67906    Use char because int might match the return type of a GCC
67907    builtin and then its argument prototype would still apply.  */
67908 #ifdef __cplusplus
67909 extern "C"
67910 #endif
67911 char $ac_func ();
67912 /* The GNU C library defines this for functions which it implements
67913     to always fail with ENOSYS.  Some functions are actually named
67914     something starting with __ and the normal name is an alias.  */
67915 #if defined __stub_$ac_func || defined __stub___$ac_func
67916 choke me
67917 #endif
67918
67919 int
67920 main ()
67921 {
67922 return $ac_func ();
67923   ;
67924   return 0;
67925 }
67926 _ACEOF
67927 rm -f conftest.$ac_objext conftest$ac_exeext
67928 if { (ac_try="$ac_link"
67929 case "(($ac_try" in
67930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67931   *) ac_try_echo=$ac_try;;
67932 esac
67933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67934 $as_echo "$ac_try_echo") >&5
67935   (eval "$ac_link") 2>conftest.er1
67936   ac_status=$?
67937   grep -v '^ *+' conftest.er1 >conftest.err
67938   rm -f conftest.er1
67939   cat conftest.err >&5
67940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67941   (exit $ac_status); } && {
67942          test -z "$ac_c_werror_flag" ||
67943          test ! -s conftest.err
67944        } && test -s conftest$ac_exeext && {
67945          test "$cross_compiling" = yes ||
67946          $as_test_x conftest$ac_exeext
67947        }; then
67948   eval "$as_ac_var=yes"
67949 else
67950   $as_echo "$as_me: failed program was:" >&5
67951 sed 's/^/| /' conftest.$ac_ext >&5
67952
67953         eval "$as_ac_var=no"
67954 fi
67955
67956 rm -rf conftest.dSYM
67957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67958       conftest$ac_exeext conftest.$ac_ext
67959 fi
67960 ac_res=`eval 'as_val=${'$as_ac_var'}
67961                  $as_echo "$as_val"'`
67962                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67963 $as_echo "$ac_res" >&6; }
67964 as_val=`eval 'as_val=${'$as_ac_var'}
67965                  $as_echo "$as_val"'`
67966    if test "x$as_val" = x""yes; then
67967   cat >>confdefs.h <<_ACEOF
67968 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67969 _ACEOF
67970  ice_have_strftime=yes
67971 fi
67972 done
67973
67974 if test "${ice_have_strftime}" = yes; then
67975 { $as_echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
67976 $as_echo_n "checking for strftime declaration in time.h sys/time.h... " >&6; }
67977 if test "${ice_cv_have_strftime_decl+set}" = set; then
67978   $as_echo_n "(cached) " >&6
67979 else
67980
67981 ice_cv_have_strftime_decl=no
67982 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67983 ice_re_word='(^|[^a-zA-Z0-9_])'
67984 for header in time.h sys/time.h; do
67985 # Check for ordinary declaration
67986 cat >conftest.$ac_ext <<_ACEOF
67987 /* confdefs.h.  */
67988 _ACEOF
67989 cat confdefs.h >>conftest.$ac_ext
67990 cat >>conftest.$ac_ext <<_ACEOF
67991 /* end confdefs.h.  */
67992 #include <$header>
67993
67994 _ACEOF
67995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67996   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then
67997   ice_cv_have_strftime_decl=yes
67998 fi
67999 rm -f conftest*
68000
68001 if test "$ice_cv_have_strftime_decl" = yes; then
68002         break
68003 fi
68004 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68005 cat >conftest.$ac_ext <<_ACEOF
68006 /* confdefs.h.  */
68007 _ACEOF
68008 cat confdefs.h >>conftest.$ac_ext
68009 cat >>conftest.$ac_ext <<_ACEOF
68010 /* end confdefs.h.  */
68011 #include <$header>
68012
68013 _ACEOF
68014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68015   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68016   ice_cv_have_strftime_decl=yes
68017 fi
68018 rm -f conftest*
68019
68020 if test "$ice_cv_have_strftime_decl" = yes; then
68021         break
68022 fi
68023 done
68024
68025 fi
68026
68027 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
68028 $as_echo "$ice_cv_have_strftime_decl" >&6; }
68029 if test "$ice_cv_have_strftime_decl" = yes; then
68030
68031 cat >>confdefs.h <<_ACEOF
68032 #define HAVE_STRFTIME_DECL 1
68033 _ACEOF
68034
68035 fi
68036 fi
68037
68038
68039 ice_have_strncasecmp=no
68040
68041 for ac_func in strncasecmp
68042 do
68043 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68044 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68045 $as_echo_n "checking for $ac_func... " >&6; }
68046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68047   $as_echo_n "(cached) " >&6
68048 else
68049   cat >conftest.$ac_ext <<_ACEOF
68050 /* confdefs.h.  */
68051 _ACEOF
68052 cat confdefs.h >>conftest.$ac_ext
68053 cat >>conftest.$ac_ext <<_ACEOF
68054 /* end confdefs.h.  */
68055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68057 #define $ac_func innocuous_$ac_func
68058
68059 /* System header to define __stub macros and hopefully few prototypes,
68060     which can conflict with char $ac_func (); below.
68061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68062     <limits.h> exists even on freestanding compilers.  */
68063
68064 #ifdef __STDC__
68065 # include <limits.h>
68066 #else
68067 # include <assert.h>
68068 #endif
68069
68070 #undef $ac_func
68071
68072 /* Override any GCC internal prototype to avoid an error.
68073    Use char because int might match the return type of a GCC
68074    builtin and then its argument prototype would still apply.  */
68075 #ifdef __cplusplus
68076 extern "C"
68077 #endif
68078 char $ac_func ();
68079 /* The GNU C library defines this for functions which it implements
68080     to always fail with ENOSYS.  Some functions are actually named
68081     something starting with __ and the normal name is an alias.  */
68082 #if defined __stub_$ac_func || defined __stub___$ac_func
68083 choke me
68084 #endif
68085
68086 int
68087 main ()
68088 {
68089 return $ac_func ();
68090   ;
68091   return 0;
68092 }
68093 _ACEOF
68094 rm -f conftest.$ac_objext conftest$ac_exeext
68095 if { (ac_try="$ac_link"
68096 case "(($ac_try" in
68097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68098   *) ac_try_echo=$ac_try;;
68099 esac
68100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68101 $as_echo "$ac_try_echo") >&5
68102   (eval "$ac_link") 2>conftest.er1
68103   ac_status=$?
68104   grep -v '^ *+' conftest.er1 >conftest.err
68105   rm -f conftest.er1
68106   cat conftest.err >&5
68107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68108   (exit $ac_status); } && {
68109          test -z "$ac_c_werror_flag" ||
68110          test ! -s conftest.err
68111        } && test -s conftest$ac_exeext && {
68112          test "$cross_compiling" = yes ||
68113          $as_test_x conftest$ac_exeext
68114        }; then
68115   eval "$as_ac_var=yes"
68116 else
68117   $as_echo "$as_me: failed program was:" >&5
68118 sed 's/^/| /' conftest.$ac_ext >&5
68119
68120         eval "$as_ac_var=no"
68121 fi
68122
68123 rm -rf conftest.dSYM
68124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68125       conftest$ac_exeext conftest.$ac_ext
68126 fi
68127 ac_res=`eval 'as_val=${'$as_ac_var'}
68128                  $as_echo "$as_val"'`
68129                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68130 $as_echo "$ac_res" >&6; }
68131 as_val=`eval 'as_val=${'$as_ac_var'}
68132                  $as_echo "$as_val"'`
68133    if test "x$as_val" = x""yes; then
68134   cat >>confdefs.h <<_ACEOF
68135 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68136 _ACEOF
68137  ice_have_strncasecmp=yes
68138 fi
68139 done
68140
68141 if test "${ice_have_strncasecmp}" = yes; then
68142 { $as_echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
68143 $as_echo_n "checking for strncasecmp declaration in string.h strings.h... " >&6; }
68144 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
68145   $as_echo_n "(cached) " >&6
68146 else
68147
68148 ice_cv_have_strncasecmp_decl=no
68149 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68150 ice_re_word='(^|[^a-zA-Z0-9_])'
68151 for header in string.h strings.h; do
68152 # Check for ordinary declaration
68153 cat >conftest.$ac_ext <<_ACEOF
68154 /* confdefs.h.  */
68155 _ACEOF
68156 cat confdefs.h >>conftest.$ac_ext
68157 cat >>conftest.$ac_ext <<_ACEOF
68158 /* end confdefs.h.  */
68159 #include <$header>
68160
68161 _ACEOF
68162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68163   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then
68164   ice_cv_have_strncasecmp_decl=yes
68165 fi
68166 rm -f conftest*
68167
68168 if test "$ice_cv_have_strncasecmp_decl" = yes; then
68169         break
68170 fi
68171 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68172 cat >conftest.$ac_ext <<_ACEOF
68173 /* confdefs.h.  */
68174 _ACEOF
68175 cat confdefs.h >>conftest.$ac_ext
68176 cat >>conftest.$ac_ext <<_ACEOF
68177 /* end confdefs.h.  */
68178 #include <$header>
68179
68180 _ACEOF
68181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68182   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68183   ice_cv_have_strncasecmp_decl=yes
68184 fi
68185 rm -f conftest*
68186
68187 if test "$ice_cv_have_strncasecmp_decl" = yes; then
68188         break
68189 fi
68190 done
68191
68192 fi
68193
68194 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
68195 $as_echo "$ice_cv_have_strncasecmp_decl" >&6; }
68196 if test "$ice_cv_have_strncasecmp_decl" = yes; then
68197
68198 cat >>confdefs.h <<_ACEOF
68199 #define HAVE_STRNCASECMP_DECL 1
68200 _ACEOF
68201
68202 fi
68203 fi
68204
68205
68206 ice_have_syslog=no
68207
68208 for ac_func in syslog
68209 do
68210 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68211 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68212 $as_echo_n "checking for $ac_func... " >&6; }
68213 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68214   $as_echo_n "(cached) " >&6
68215 else
68216   cat >conftest.$ac_ext <<_ACEOF
68217 /* confdefs.h.  */
68218 _ACEOF
68219 cat confdefs.h >>conftest.$ac_ext
68220 cat >>conftest.$ac_ext <<_ACEOF
68221 /* end confdefs.h.  */
68222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68223    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68224 #define $ac_func innocuous_$ac_func
68225
68226 /* System header to define __stub macros and hopefully few prototypes,
68227     which can conflict with char $ac_func (); below.
68228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68229     <limits.h> exists even on freestanding compilers.  */
68230
68231 #ifdef __STDC__
68232 # include <limits.h>
68233 #else
68234 # include <assert.h>
68235 #endif
68236
68237 #undef $ac_func
68238
68239 /* Override any GCC internal prototype to avoid an error.
68240    Use char because int might match the return type of a GCC
68241    builtin and then its argument prototype would still apply.  */
68242 #ifdef __cplusplus
68243 extern "C"
68244 #endif
68245 char $ac_func ();
68246 /* The GNU C library defines this for functions which it implements
68247     to always fail with ENOSYS.  Some functions are actually named
68248     something starting with __ and the normal name is an alias.  */
68249 #if defined __stub_$ac_func || defined __stub___$ac_func
68250 choke me
68251 #endif
68252
68253 int
68254 main ()
68255 {
68256 return $ac_func ();
68257   ;
68258   return 0;
68259 }
68260 _ACEOF
68261 rm -f conftest.$ac_objext conftest$ac_exeext
68262 if { (ac_try="$ac_link"
68263 case "(($ac_try" in
68264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68265   *) ac_try_echo=$ac_try;;
68266 esac
68267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68268 $as_echo "$ac_try_echo") >&5
68269   (eval "$ac_link") 2>conftest.er1
68270   ac_status=$?
68271   grep -v '^ *+' conftest.er1 >conftest.err
68272   rm -f conftest.er1
68273   cat conftest.err >&5
68274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68275   (exit $ac_status); } && {
68276          test -z "$ac_c_werror_flag" ||
68277          test ! -s conftest.err
68278        } && test -s conftest$ac_exeext && {
68279          test "$cross_compiling" = yes ||
68280          $as_test_x conftest$ac_exeext
68281        }; then
68282   eval "$as_ac_var=yes"
68283 else
68284   $as_echo "$as_me: failed program was:" >&5
68285 sed 's/^/| /' conftest.$ac_ext >&5
68286
68287         eval "$as_ac_var=no"
68288 fi
68289
68290 rm -rf conftest.dSYM
68291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68292       conftest$ac_exeext conftest.$ac_ext
68293 fi
68294 ac_res=`eval 'as_val=${'$as_ac_var'}
68295                  $as_echo "$as_val"'`
68296                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68297 $as_echo "$ac_res" >&6; }
68298 as_val=`eval 'as_val=${'$as_ac_var'}
68299                  $as_echo "$as_val"'`
68300    if test "x$as_val" = x""yes; then
68301   cat >>confdefs.h <<_ACEOF
68302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68303 _ACEOF
68304  ice_have_syslog=yes
68305 fi
68306 done
68307
68308 if test "${ice_have_syslog}" = yes; then
68309 { $as_echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
68310 $as_echo_n "checking for syslog declaration in syslog.h... " >&6; }
68311 if test "${ice_cv_have_syslog_decl+set}" = set; then
68312   $as_echo_n "(cached) " >&6
68313 else
68314
68315 ice_cv_have_syslog_decl=no
68316 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68317 ice_re_word='(^|[^a-zA-Z0-9_])'
68318 for header in syslog.h; do
68319 # Check for ordinary declaration
68320 cat >conftest.$ac_ext <<_ACEOF
68321 /* confdefs.h.  */
68322 _ACEOF
68323 cat confdefs.h >>conftest.$ac_ext
68324 cat >>conftest.$ac_ext <<_ACEOF
68325 /* end confdefs.h.  */
68326 #include <$header>
68327
68328 _ACEOF
68329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68330   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then
68331   ice_cv_have_syslog_decl=yes
68332 fi
68333 rm -f conftest*
68334
68335 if test "$ice_cv_have_syslog_decl" = yes; then
68336         break
68337 fi
68338 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68339 cat >conftest.$ac_ext <<_ACEOF
68340 /* confdefs.h.  */
68341 _ACEOF
68342 cat confdefs.h >>conftest.$ac_ext
68343 cat >>conftest.$ac_ext <<_ACEOF
68344 /* end confdefs.h.  */
68345 #include <$header>
68346
68347 _ACEOF
68348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68349   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68350   ice_cv_have_syslog_decl=yes
68351 fi
68352 rm -f conftest*
68353
68354 if test "$ice_cv_have_syslog_decl" = yes; then
68355         break
68356 fi
68357 done
68358
68359 fi
68360
68361 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
68362 $as_echo "$ice_cv_have_syslog_decl" >&6; }
68363 if test "$ice_cv_have_syslog_decl" = yes; then
68364
68365 cat >>confdefs.h <<_ACEOF
68366 #define HAVE_SYSLOG_DECL 1
68367 _ACEOF
68368
68369 fi
68370 fi
68371
68372
68373 ice_have_system=no
68374
68375 for ac_func in system
68376 do
68377 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68378 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68379 $as_echo_n "checking for $ac_func... " >&6; }
68380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68381   $as_echo_n "(cached) " >&6
68382 else
68383   cat >conftest.$ac_ext <<_ACEOF
68384 /* confdefs.h.  */
68385 _ACEOF
68386 cat confdefs.h >>conftest.$ac_ext
68387 cat >>conftest.$ac_ext <<_ACEOF
68388 /* end confdefs.h.  */
68389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68390    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68391 #define $ac_func innocuous_$ac_func
68392
68393 /* System header to define __stub macros and hopefully few prototypes,
68394     which can conflict with char $ac_func (); below.
68395     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68396     <limits.h> exists even on freestanding compilers.  */
68397
68398 #ifdef __STDC__
68399 # include <limits.h>
68400 #else
68401 # include <assert.h>
68402 #endif
68403
68404 #undef $ac_func
68405
68406 /* Override any GCC internal prototype to avoid an error.
68407    Use char because int might match the return type of a GCC
68408    builtin and then its argument prototype would still apply.  */
68409 #ifdef __cplusplus
68410 extern "C"
68411 #endif
68412 char $ac_func ();
68413 /* The GNU C library defines this for functions which it implements
68414     to always fail with ENOSYS.  Some functions are actually named
68415     something starting with __ and the normal name is an alias.  */
68416 #if defined __stub_$ac_func || defined __stub___$ac_func
68417 choke me
68418 #endif
68419
68420 int
68421 main ()
68422 {
68423 return $ac_func ();
68424   ;
68425   return 0;
68426 }
68427 _ACEOF
68428 rm -f conftest.$ac_objext conftest$ac_exeext
68429 if { (ac_try="$ac_link"
68430 case "(($ac_try" in
68431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68432   *) ac_try_echo=$ac_try;;
68433 esac
68434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68435 $as_echo "$ac_try_echo") >&5
68436   (eval "$ac_link") 2>conftest.er1
68437   ac_status=$?
68438   grep -v '^ *+' conftest.er1 >conftest.err
68439   rm -f conftest.er1
68440   cat conftest.err >&5
68441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68442   (exit $ac_status); } && {
68443          test -z "$ac_c_werror_flag" ||
68444          test ! -s conftest.err
68445        } && test -s conftest$ac_exeext && {
68446          test "$cross_compiling" = yes ||
68447          $as_test_x conftest$ac_exeext
68448        }; then
68449   eval "$as_ac_var=yes"
68450 else
68451   $as_echo "$as_me: failed program was:" >&5
68452 sed 's/^/| /' conftest.$ac_ext >&5
68453
68454         eval "$as_ac_var=no"
68455 fi
68456
68457 rm -rf conftest.dSYM
68458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68459       conftest$ac_exeext conftest.$ac_ext
68460 fi
68461 ac_res=`eval 'as_val=${'$as_ac_var'}
68462                  $as_echo "$as_val"'`
68463                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68464 $as_echo "$ac_res" >&6; }
68465 as_val=`eval 'as_val=${'$as_ac_var'}
68466                  $as_echo "$as_val"'`
68467    if test "x$as_val" = x""yes; then
68468   cat >>confdefs.h <<_ACEOF
68469 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68470 _ACEOF
68471  ice_have_system=yes
68472 fi
68473 done
68474
68475 if test "${ice_have_system}" = yes; then
68476 { $as_echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
68477 $as_echo_n "checking for system declaration in stdlib.h... " >&6; }
68478 if test "${ice_cv_have_system_decl+set}" = set; then
68479   $as_echo_n "(cached) " >&6
68480 else
68481
68482 ice_cv_have_system_decl=no
68483 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68484 ice_re_word='(^|[^a-zA-Z0-9_])'
68485 for header in stdlib.h; do
68486 # Check for ordinary declaration
68487 cat >conftest.$ac_ext <<_ACEOF
68488 /* confdefs.h.  */
68489 _ACEOF
68490 cat confdefs.h >>conftest.$ac_ext
68491 cat >>conftest.$ac_ext <<_ACEOF
68492 /* end confdefs.h.  */
68493 #include <$header>
68494
68495 _ACEOF
68496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68497   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then
68498   ice_cv_have_system_decl=yes
68499 fi
68500 rm -f conftest*
68501
68502 if test "$ice_cv_have_system_decl" = yes; then
68503         break
68504 fi
68505 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68506 cat >conftest.$ac_ext <<_ACEOF
68507 /* confdefs.h.  */
68508 _ACEOF
68509 cat confdefs.h >>conftest.$ac_ext
68510 cat >>conftest.$ac_ext <<_ACEOF
68511 /* end confdefs.h.  */
68512 #include <$header>
68513
68514 _ACEOF
68515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68516   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68517   ice_cv_have_system_decl=yes
68518 fi
68519 rm -f conftest*
68520
68521 if test "$ice_cv_have_system_decl" = yes; then
68522         break
68523 fi
68524 done
68525
68526 fi
68527
68528 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
68529 $as_echo "$ice_cv_have_system_decl" >&6; }
68530 if test "$ice_cv_have_system_decl" = yes; then
68531
68532 cat >>confdefs.h <<_ACEOF
68533 #define HAVE_SYSTEM_DECL 1
68534 _ACEOF
68535
68536 fi
68537 fi
68538
68539
68540 ice_have_time=no
68541
68542 for ac_func in time
68543 do
68544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68545 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68546 $as_echo_n "checking for $ac_func... " >&6; }
68547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68548   $as_echo_n "(cached) " >&6
68549 else
68550   cat >conftest.$ac_ext <<_ACEOF
68551 /* confdefs.h.  */
68552 _ACEOF
68553 cat confdefs.h >>conftest.$ac_ext
68554 cat >>conftest.$ac_ext <<_ACEOF
68555 /* end confdefs.h.  */
68556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68558 #define $ac_func innocuous_$ac_func
68559
68560 /* System header to define __stub macros and hopefully few prototypes,
68561     which can conflict with char $ac_func (); below.
68562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68563     <limits.h> exists even on freestanding compilers.  */
68564
68565 #ifdef __STDC__
68566 # include <limits.h>
68567 #else
68568 # include <assert.h>
68569 #endif
68570
68571 #undef $ac_func
68572
68573 /* Override any GCC internal prototype to avoid an error.
68574    Use char because int might match the return type of a GCC
68575    builtin and then its argument prototype would still apply.  */
68576 #ifdef __cplusplus
68577 extern "C"
68578 #endif
68579 char $ac_func ();
68580 /* The GNU C library defines this for functions which it implements
68581     to always fail with ENOSYS.  Some functions are actually named
68582     something starting with __ and the normal name is an alias.  */
68583 #if defined __stub_$ac_func || defined __stub___$ac_func
68584 choke me
68585 #endif
68586
68587 int
68588 main ()
68589 {
68590 return $ac_func ();
68591   ;
68592   return 0;
68593 }
68594 _ACEOF
68595 rm -f conftest.$ac_objext conftest$ac_exeext
68596 if { (ac_try="$ac_link"
68597 case "(($ac_try" in
68598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68599   *) ac_try_echo=$ac_try;;
68600 esac
68601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68602 $as_echo "$ac_try_echo") >&5
68603   (eval "$ac_link") 2>conftest.er1
68604   ac_status=$?
68605   grep -v '^ *+' conftest.er1 >conftest.err
68606   rm -f conftest.er1
68607   cat conftest.err >&5
68608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68609   (exit $ac_status); } && {
68610          test -z "$ac_c_werror_flag" ||
68611          test ! -s conftest.err
68612        } && test -s conftest$ac_exeext && {
68613          test "$cross_compiling" = yes ||
68614          $as_test_x conftest$ac_exeext
68615        }; then
68616   eval "$as_ac_var=yes"
68617 else
68618   $as_echo "$as_me: failed program was:" >&5
68619 sed 's/^/| /' conftest.$ac_ext >&5
68620
68621         eval "$as_ac_var=no"
68622 fi
68623
68624 rm -rf conftest.dSYM
68625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68626       conftest$ac_exeext conftest.$ac_ext
68627 fi
68628 ac_res=`eval 'as_val=${'$as_ac_var'}
68629                  $as_echo "$as_val"'`
68630                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68631 $as_echo "$ac_res" >&6; }
68632 as_val=`eval 'as_val=${'$as_ac_var'}
68633                  $as_echo "$as_val"'`
68634    if test "x$as_val" = x""yes; then
68635   cat >>confdefs.h <<_ACEOF
68636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68637 _ACEOF
68638  ice_have_time=yes
68639 fi
68640 done
68641
68642 if test "${ice_have_time}" = yes; then
68643 { $as_echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
68644 $as_echo_n "checking for time declaration in time.h sys/time.h... " >&6; }
68645 if test "${ice_cv_have_time_decl+set}" = set; then
68646   $as_echo_n "(cached) " >&6
68647 else
68648
68649 ice_cv_have_time_decl=no
68650 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68651 ice_re_word='(^|[^a-zA-Z0-9_])'
68652 for header in time.h sys/time.h; do
68653 # Check for ordinary declaration
68654 cat >conftest.$ac_ext <<_ACEOF
68655 /* confdefs.h.  */
68656 _ACEOF
68657 cat confdefs.h >>conftest.$ac_ext
68658 cat >>conftest.$ac_ext <<_ACEOF
68659 /* end confdefs.h.  */
68660 #include <$header>
68661
68662 _ACEOF
68663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68664   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then
68665   ice_cv_have_time_decl=yes
68666 fi
68667 rm -f conftest*
68668
68669 if test "$ice_cv_have_time_decl" = yes; then
68670         break
68671 fi
68672 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68673 cat >conftest.$ac_ext <<_ACEOF
68674 /* confdefs.h.  */
68675 _ACEOF
68676 cat confdefs.h >>conftest.$ac_ext
68677 cat >>conftest.$ac_ext <<_ACEOF
68678 /* end confdefs.h.  */
68679 #include <$header>
68680
68681 _ACEOF
68682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68683   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68684   ice_cv_have_time_decl=yes
68685 fi
68686 rm -f conftest*
68687
68688 if test "$ice_cv_have_time_decl" = yes; then
68689         break
68690 fi
68691 done
68692
68693 fi
68694
68695 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
68696 $as_echo "$ice_cv_have_time_decl" >&6; }
68697 if test "$ice_cv_have_time_decl" = yes; then
68698
68699 cat >>confdefs.h <<_ACEOF
68700 #define HAVE_TIME_DECL 1
68701 _ACEOF
68702
68703 fi
68704 fi
68705
68706
68707 ice_have_tolower=no
68708
68709 for ac_func in tolower
68710 do
68711 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68712 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68713 $as_echo_n "checking for $ac_func... " >&6; }
68714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68715   $as_echo_n "(cached) " >&6
68716 else
68717   cat >conftest.$ac_ext <<_ACEOF
68718 /* confdefs.h.  */
68719 _ACEOF
68720 cat confdefs.h >>conftest.$ac_ext
68721 cat >>conftest.$ac_ext <<_ACEOF
68722 /* end confdefs.h.  */
68723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68725 #define $ac_func innocuous_$ac_func
68726
68727 /* System header to define __stub macros and hopefully few prototypes,
68728     which can conflict with char $ac_func (); below.
68729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68730     <limits.h> exists even on freestanding compilers.  */
68731
68732 #ifdef __STDC__
68733 # include <limits.h>
68734 #else
68735 # include <assert.h>
68736 #endif
68737
68738 #undef $ac_func
68739
68740 /* Override any GCC internal prototype to avoid an error.
68741    Use char because int might match the return type of a GCC
68742    builtin and then its argument prototype would still apply.  */
68743 #ifdef __cplusplus
68744 extern "C"
68745 #endif
68746 char $ac_func ();
68747 /* The GNU C library defines this for functions which it implements
68748     to always fail with ENOSYS.  Some functions are actually named
68749     something starting with __ and the normal name is an alias.  */
68750 #if defined __stub_$ac_func || defined __stub___$ac_func
68751 choke me
68752 #endif
68753
68754 int
68755 main ()
68756 {
68757 return $ac_func ();
68758   ;
68759   return 0;
68760 }
68761 _ACEOF
68762 rm -f conftest.$ac_objext conftest$ac_exeext
68763 if { (ac_try="$ac_link"
68764 case "(($ac_try" in
68765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68766   *) ac_try_echo=$ac_try;;
68767 esac
68768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68769 $as_echo "$ac_try_echo") >&5
68770   (eval "$ac_link") 2>conftest.er1
68771   ac_status=$?
68772   grep -v '^ *+' conftest.er1 >conftest.err
68773   rm -f conftest.er1
68774   cat conftest.err >&5
68775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68776   (exit $ac_status); } && {
68777          test -z "$ac_c_werror_flag" ||
68778          test ! -s conftest.err
68779        } && test -s conftest$ac_exeext && {
68780          test "$cross_compiling" = yes ||
68781          $as_test_x conftest$ac_exeext
68782        }; then
68783   eval "$as_ac_var=yes"
68784 else
68785   $as_echo "$as_me: failed program was:" >&5
68786 sed 's/^/| /' conftest.$ac_ext >&5
68787
68788         eval "$as_ac_var=no"
68789 fi
68790
68791 rm -rf conftest.dSYM
68792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68793       conftest$ac_exeext conftest.$ac_ext
68794 fi
68795 ac_res=`eval 'as_val=${'$as_ac_var'}
68796                  $as_echo "$as_val"'`
68797                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68798 $as_echo "$ac_res" >&6; }
68799 as_val=`eval 'as_val=${'$as_ac_var'}
68800                  $as_echo "$as_val"'`
68801    if test "x$as_val" = x""yes; then
68802   cat >>confdefs.h <<_ACEOF
68803 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68804 _ACEOF
68805  ice_have_tolower=yes
68806 fi
68807 done
68808
68809 if test "${ice_have_tolower}" = yes; then
68810 { $as_echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
68811 $as_echo_n "checking for tolower declaration in ctype.h... " >&6; }
68812 if test "${ice_cv_have_tolower_decl+set}" = set; then
68813   $as_echo_n "(cached) " >&6
68814 else
68815
68816 ice_cv_have_tolower_decl=no
68817 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68818 ice_re_word='(^|[^a-zA-Z0-9_])'
68819 for header in ctype.h; do
68820 # Check for ordinary declaration
68821 cat >conftest.$ac_ext <<_ACEOF
68822 /* confdefs.h.  */
68823 _ACEOF
68824 cat confdefs.h >>conftest.$ac_ext
68825 cat >>conftest.$ac_ext <<_ACEOF
68826 /* end confdefs.h.  */
68827 #include <$header>
68828
68829 _ACEOF
68830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68831   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then
68832   ice_cv_have_tolower_decl=yes
68833 fi
68834 rm -f conftest*
68835
68836 if test "$ice_cv_have_tolower_decl" = yes; then
68837         break
68838 fi
68839 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68840 cat >conftest.$ac_ext <<_ACEOF
68841 /* confdefs.h.  */
68842 _ACEOF
68843 cat confdefs.h >>conftest.$ac_ext
68844 cat >>conftest.$ac_ext <<_ACEOF
68845 /* end confdefs.h.  */
68846 #include <$header>
68847
68848 _ACEOF
68849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68850   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68851   ice_cv_have_tolower_decl=yes
68852 fi
68853 rm -f conftest*
68854
68855 if test "$ice_cv_have_tolower_decl" = yes; then
68856         break
68857 fi
68858 done
68859
68860 fi
68861
68862 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
68863 $as_echo "$ice_cv_have_tolower_decl" >&6; }
68864 if test "$ice_cv_have_tolower_decl" = yes; then
68865
68866 cat >>confdefs.h <<_ACEOF
68867 #define HAVE_TOLOWER_DECL 1
68868 _ACEOF
68869
68870 fi
68871 fi
68872
68873
68874 ice_have_toupper=no
68875
68876 for ac_func in toupper
68877 do
68878 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68879 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68880 $as_echo_n "checking for $ac_func... " >&6; }
68881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68882   $as_echo_n "(cached) " >&6
68883 else
68884   cat >conftest.$ac_ext <<_ACEOF
68885 /* confdefs.h.  */
68886 _ACEOF
68887 cat confdefs.h >>conftest.$ac_ext
68888 cat >>conftest.$ac_ext <<_ACEOF
68889 /* end confdefs.h.  */
68890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68892 #define $ac_func innocuous_$ac_func
68893
68894 /* System header to define __stub macros and hopefully few prototypes,
68895     which can conflict with char $ac_func (); below.
68896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68897     <limits.h> exists even on freestanding compilers.  */
68898
68899 #ifdef __STDC__
68900 # include <limits.h>
68901 #else
68902 # include <assert.h>
68903 #endif
68904
68905 #undef $ac_func
68906
68907 /* Override any GCC internal prototype to avoid an error.
68908    Use char because int might match the return type of a GCC
68909    builtin and then its argument prototype would still apply.  */
68910 #ifdef __cplusplus
68911 extern "C"
68912 #endif
68913 char $ac_func ();
68914 /* The GNU C library defines this for functions which it implements
68915     to always fail with ENOSYS.  Some functions are actually named
68916     something starting with __ and the normal name is an alias.  */
68917 #if defined __stub_$ac_func || defined __stub___$ac_func
68918 choke me
68919 #endif
68920
68921 int
68922 main ()
68923 {
68924 return $ac_func ();
68925   ;
68926   return 0;
68927 }
68928 _ACEOF
68929 rm -f conftest.$ac_objext conftest$ac_exeext
68930 if { (ac_try="$ac_link"
68931 case "(($ac_try" in
68932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68933   *) ac_try_echo=$ac_try;;
68934 esac
68935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68936 $as_echo "$ac_try_echo") >&5
68937   (eval "$ac_link") 2>conftest.er1
68938   ac_status=$?
68939   grep -v '^ *+' conftest.er1 >conftest.err
68940   rm -f conftest.er1
68941   cat conftest.err >&5
68942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68943   (exit $ac_status); } && {
68944          test -z "$ac_c_werror_flag" ||
68945          test ! -s conftest.err
68946        } && test -s conftest$ac_exeext && {
68947          test "$cross_compiling" = yes ||
68948          $as_test_x conftest$ac_exeext
68949        }; then
68950   eval "$as_ac_var=yes"
68951 else
68952   $as_echo "$as_me: failed program was:" >&5
68953 sed 's/^/| /' conftest.$ac_ext >&5
68954
68955         eval "$as_ac_var=no"
68956 fi
68957
68958 rm -rf conftest.dSYM
68959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68960       conftest$ac_exeext conftest.$ac_ext
68961 fi
68962 ac_res=`eval 'as_val=${'$as_ac_var'}
68963                  $as_echo "$as_val"'`
68964                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68965 $as_echo "$ac_res" >&6; }
68966 as_val=`eval 'as_val=${'$as_ac_var'}
68967                  $as_echo "$as_val"'`
68968    if test "x$as_val" = x""yes; then
68969   cat >>confdefs.h <<_ACEOF
68970 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68971 _ACEOF
68972  ice_have_toupper=yes
68973 fi
68974 done
68975
68976 if test "${ice_have_toupper}" = yes; then
68977 { $as_echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
68978 $as_echo_n "checking for toupper declaration in ctype.h... " >&6; }
68979 if test "${ice_cv_have_toupper_decl+set}" = set; then
68980   $as_echo_n "(cached) " >&6
68981 else
68982
68983 ice_cv_have_toupper_decl=no
68984 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68985 ice_re_word='(^|[^a-zA-Z0-9_])'
68986 for header in ctype.h; do
68987 # Check for ordinary declaration
68988 cat >conftest.$ac_ext <<_ACEOF
68989 /* confdefs.h.  */
68990 _ACEOF
68991 cat confdefs.h >>conftest.$ac_ext
68992 cat >>conftest.$ac_ext <<_ACEOF
68993 /* end confdefs.h.  */
68994 #include <$header>
68995
68996 _ACEOF
68997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68998   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then
68999   ice_cv_have_toupper_decl=yes
69000 fi
69001 rm -f conftest*
69002
69003 if test "$ice_cv_have_toupper_decl" = yes; then
69004         break
69005 fi
69006 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69007 cat >conftest.$ac_ext <<_ACEOF
69008 /* confdefs.h.  */
69009 _ACEOF
69010 cat confdefs.h >>conftest.$ac_ext
69011 cat >>conftest.$ac_ext <<_ACEOF
69012 /* end confdefs.h.  */
69013 #include <$header>
69014
69015 _ACEOF
69016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69017   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69018   ice_cv_have_toupper_decl=yes
69019 fi
69020 rm -f conftest*
69021
69022 if test "$ice_cv_have_toupper_decl" = yes; then
69023         break
69024 fi
69025 done
69026
69027 fi
69028
69029 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
69030 $as_echo "$ice_cv_have_toupper_decl" >&6; }
69031 if test "$ice_cv_have_toupper_decl" = yes; then
69032
69033 cat >>confdefs.h <<_ACEOF
69034 #define HAVE_TOUPPER_DECL 1
69035 _ACEOF
69036
69037 fi
69038 fi
69039
69040
69041 ice_have_ungetc=no
69042
69043 for ac_func in ungetc
69044 do
69045 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69046 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69047 $as_echo_n "checking for $ac_func... " >&6; }
69048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69049   $as_echo_n "(cached) " >&6
69050 else
69051   cat >conftest.$ac_ext <<_ACEOF
69052 /* confdefs.h.  */
69053 _ACEOF
69054 cat confdefs.h >>conftest.$ac_ext
69055 cat >>conftest.$ac_ext <<_ACEOF
69056 /* end confdefs.h.  */
69057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69059 #define $ac_func innocuous_$ac_func
69060
69061 /* System header to define __stub macros and hopefully few prototypes,
69062     which can conflict with char $ac_func (); below.
69063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69064     <limits.h> exists even on freestanding compilers.  */
69065
69066 #ifdef __STDC__
69067 # include <limits.h>
69068 #else
69069 # include <assert.h>
69070 #endif
69071
69072 #undef $ac_func
69073
69074 /* Override any GCC internal prototype to avoid an error.
69075    Use char because int might match the return type of a GCC
69076    builtin and then its argument prototype would still apply.  */
69077 #ifdef __cplusplus
69078 extern "C"
69079 #endif
69080 char $ac_func ();
69081 /* The GNU C library defines this for functions which it implements
69082     to always fail with ENOSYS.  Some functions are actually named
69083     something starting with __ and the normal name is an alias.  */
69084 #if defined __stub_$ac_func || defined __stub___$ac_func
69085 choke me
69086 #endif
69087
69088 int
69089 main ()
69090 {
69091 return $ac_func ();
69092   ;
69093   return 0;
69094 }
69095 _ACEOF
69096 rm -f conftest.$ac_objext conftest$ac_exeext
69097 if { (ac_try="$ac_link"
69098 case "(($ac_try" in
69099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69100   *) ac_try_echo=$ac_try;;
69101 esac
69102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69103 $as_echo "$ac_try_echo") >&5
69104   (eval "$ac_link") 2>conftest.er1
69105   ac_status=$?
69106   grep -v '^ *+' conftest.er1 >conftest.err
69107   rm -f conftest.er1
69108   cat conftest.err >&5
69109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69110   (exit $ac_status); } && {
69111          test -z "$ac_c_werror_flag" ||
69112          test ! -s conftest.err
69113        } && test -s conftest$ac_exeext && {
69114          test "$cross_compiling" = yes ||
69115          $as_test_x conftest$ac_exeext
69116        }; then
69117   eval "$as_ac_var=yes"
69118 else
69119   $as_echo "$as_me: failed program was:" >&5
69120 sed 's/^/| /' conftest.$ac_ext >&5
69121
69122         eval "$as_ac_var=no"
69123 fi
69124
69125 rm -rf conftest.dSYM
69126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69127       conftest$ac_exeext conftest.$ac_ext
69128 fi
69129 ac_res=`eval 'as_val=${'$as_ac_var'}
69130                  $as_echo "$as_val"'`
69131                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69132 $as_echo "$ac_res" >&6; }
69133 as_val=`eval 'as_val=${'$as_ac_var'}
69134                  $as_echo "$as_val"'`
69135    if test "x$as_val" = x""yes; then
69136   cat >>confdefs.h <<_ACEOF
69137 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69138 _ACEOF
69139  ice_have_ungetc=yes
69140 fi
69141 done
69142
69143 if test "${ice_have_ungetc}" = yes; then
69144 { $as_echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
69145 $as_echo_n "checking for ungetc declaration in stdio.h... " >&6; }
69146 if test "${ice_cv_have_ungetc_decl+set}" = set; then
69147   $as_echo_n "(cached) " >&6
69148 else
69149
69150 ice_cv_have_ungetc_decl=no
69151 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69152 ice_re_word='(^|[^a-zA-Z0-9_])'
69153 for header in stdio.h; do
69154 # Check for ordinary declaration
69155 cat >conftest.$ac_ext <<_ACEOF
69156 /* confdefs.h.  */
69157 _ACEOF
69158 cat confdefs.h >>conftest.$ac_ext
69159 cat >>conftest.$ac_ext <<_ACEOF
69160 /* end confdefs.h.  */
69161 #include <$header>
69162
69163 _ACEOF
69164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69165   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then
69166   ice_cv_have_ungetc_decl=yes
69167 fi
69168 rm -f conftest*
69169
69170 if test "$ice_cv_have_ungetc_decl" = yes; then
69171         break
69172 fi
69173 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69174 cat >conftest.$ac_ext <<_ACEOF
69175 /* confdefs.h.  */
69176 _ACEOF
69177 cat confdefs.h >>conftest.$ac_ext
69178 cat >>conftest.$ac_ext <<_ACEOF
69179 /* end confdefs.h.  */
69180 #include <$header>
69181
69182 _ACEOF
69183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69184   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69185   ice_cv_have_ungetc_decl=yes
69186 fi
69187 rm -f conftest*
69188
69189 if test "$ice_cv_have_ungetc_decl" = yes; then
69190         break
69191 fi
69192 done
69193
69194 fi
69195
69196 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
69197 $as_echo "$ice_cv_have_ungetc_decl" >&6; }
69198 if test "$ice_cv_have_ungetc_decl" = yes; then
69199
69200 cat >>confdefs.h <<_ACEOF
69201 #define HAVE_UNGETC_DECL 1
69202 _ACEOF
69203
69204 fi
69205 fi
69206
69207
69208 ice_have_vfprintf=no
69209
69210 for ac_func in vfprintf
69211 do
69212 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69213 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69214 $as_echo_n "checking for $ac_func... " >&6; }
69215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69216   $as_echo_n "(cached) " >&6
69217 else
69218   cat >conftest.$ac_ext <<_ACEOF
69219 /* confdefs.h.  */
69220 _ACEOF
69221 cat confdefs.h >>conftest.$ac_ext
69222 cat >>conftest.$ac_ext <<_ACEOF
69223 /* end confdefs.h.  */
69224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69226 #define $ac_func innocuous_$ac_func
69227
69228 /* System header to define __stub macros and hopefully few prototypes,
69229     which can conflict with char $ac_func (); below.
69230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69231     <limits.h> exists even on freestanding compilers.  */
69232
69233 #ifdef __STDC__
69234 # include <limits.h>
69235 #else
69236 # include <assert.h>
69237 #endif
69238
69239 #undef $ac_func
69240
69241 /* Override any GCC internal prototype to avoid an error.
69242    Use char because int might match the return type of a GCC
69243    builtin and then its argument prototype would still apply.  */
69244 #ifdef __cplusplus
69245 extern "C"
69246 #endif
69247 char $ac_func ();
69248 /* The GNU C library defines this for functions which it implements
69249     to always fail with ENOSYS.  Some functions are actually named
69250     something starting with __ and the normal name is an alias.  */
69251 #if defined __stub_$ac_func || defined __stub___$ac_func
69252 choke me
69253 #endif
69254
69255 int
69256 main ()
69257 {
69258 return $ac_func ();
69259   ;
69260   return 0;
69261 }
69262 _ACEOF
69263 rm -f conftest.$ac_objext conftest$ac_exeext
69264 if { (ac_try="$ac_link"
69265 case "(($ac_try" in
69266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69267   *) ac_try_echo=$ac_try;;
69268 esac
69269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69270 $as_echo "$ac_try_echo") >&5
69271   (eval "$ac_link") 2>conftest.er1
69272   ac_status=$?
69273   grep -v '^ *+' conftest.er1 >conftest.err
69274   rm -f conftest.er1
69275   cat conftest.err >&5
69276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69277   (exit $ac_status); } && {
69278          test -z "$ac_c_werror_flag" ||
69279          test ! -s conftest.err
69280        } && test -s conftest$ac_exeext && {
69281          test "$cross_compiling" = yes ||
69282          $as_test_x conftest$ac_exeext
69283        }; then
69284   eval "$as_ac_var=yes"
69285 else
69286   $as_echo "$as_me: failed program was:" >&5
69287 sed 's/^/| /' conftest.$ac_ext >&5
69288
69289         eval "$as_ac_var=no"
69290 fi
69291
69292 rm -rf conftest.dSYM
69293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69294       conftest$ac_exeext conftest.$ac_ext
69295 fi
69296 ac_res=`eval 'as_val=${'$as_ac_var'}
69297                  $as_echo "$as_val"'`
69298                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69299 $as_echo "$ac_res" >&6; }
69300 as_val=`eval 'as_val=${'$as_ac_var'}
69301                  $as_echo "$as_val"'`
69302    if test "x$as_val" = x""yes; then
69303   cat >>confdefs.h <<_ACEOF
69304 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69305 _ACEOF
69306  ice_have_vfprintf=yes
69307 fi
69308 done
69309
69310 if test "${ice_have_vfprintf}" = yes; then
69311 { $as_echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
69312 $as_echo_n "checking for vfprintf declaration in stdio.h stdlib.h... " >&6; }
69313 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
69314   $as_echo_n "(cached) " >&6
69315 else
69316
69317 ice_cv_have_vfprintf_decl=no
69318 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69319 ice_re_word='(^|[^a-zA-Z0-9_])'
69320 for header in stdio.h stdlib.h; do
69321 # Check for ordinary declaration
69322 cat >conftest.$ac_ext <<_ACEOF
69323 /* confdefs.h.  */
69324 _ACEOF
69325 cat confdefs.h >>conftest.$ac_ext
69326 cat >>conftest.$ac_ext <<_ACEOF
69327 /* end confdefs.h.  */
69328 #include <$header>
69329
69330 _ACEOF
69331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69332   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then
69333   ice_cv_have_vfprintf_decl=yes
69334 fi
69335 rm -f conftest*
69336
69337 if test "$ice_cv_have_vfprintf_decl" = yes; then
69338         break
69339 fi
69340 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69341 cat >conftest.$ac_ext <<_ACEOF
69342 /* confdefs.h.  */
69343 _ACEOF
69344 cat confdefs.h >>conftest.$ac_ext
69345 cat >>conftest.$ac_ext <<_ACEOF
69346 /* end confdefs.h.  */
69347 #include <$header>
69348
69349 _ACEOF
69350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69351   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69352   ice_cv_have_vfprintf_decl=yes
69353 fi
69354 rm -f conftest*
69355
69356 if test "$ice_cv_have_vfprintf_decl" = yes; then
69357         break
69358 fi
69359 done
69360
69361 fi
69362
69363 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
69364 $as_echo "$ice_cv_have_vfprintf_decl" >&6; }
69365 if test "$ice_cv_have_vfprintf_decl" = yes; then
69366
69367 cat >>confdefs.h <<_ACEOF
69368 #define HAVE_VFPRINTF_DECL 1
69369 _ACEOF
69370
69371 fi
69372 fi
69373
69374
69375 ice_have_vprintf=no
69376
69377 for ac_func in vprintf
69378 do
69379 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69380 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69381 $as_echo_n "checking for $ac_func... " >&6; }
69382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69383   $as_echo_n "(cached) " >&6
69384 else
69385   cat >conftest.$ac_ext <<_ACEOF
69386 /* confdefs.h.  */
69387 _ACEOF
69388 cat confdefs.h >>conftest.$ac_ext
69389 cat >>conftest.$ac_ext <<_ACEOF
69390 /* end confdefs.h.  */
69391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69392    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69393 #define $ac_func innocuous_$ac_func
69394
69395 /* System header to define __stub macros and hopefully few prototypes,
69396     which can conflict with char $ac_func (); below.
69397     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69398     <limits.h> exists even on freestanding compilers.  */
69399
69400 #ifdef __STDC__
69401 # include <limits.h>
69402 #else
69403 # include <assert.h>
69404 #endif
69405
69406 #undef $ac_func
69407
69408 /* Override any GCC internal prototype to avoid an error.
69409    Use char because int might match the return type of a GCC
69410    builtin and then its argument prototype would still apply.  */
69411 #ifdef __cplusplus
69412 extern "C"
69413 #endif
69414 char $ac_func ();
69415 /* The GNU C library defines this for functions which it implements
69416     to always fail with ENOSYS.  Some functions are actually named
69417     something starting with __ and the normal name is an alias.  */
69418 #if defined __stub_$ac_func || defined __stub___$ac_func
69419 choke me
69420 #endif
69421
69422 int
69423 main ()
69424 {
69425 return $ac_func ();
69426   ;
69427   return 0;
69428 }
69429 _ACEOF
69430 rm -f conftest.$ac_objext conftest$ac_exeext
69431 if { (ac_try="$ac_link"
69432 case "(($ac_try" in
69433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69434   *) ac_try_echo=$ac_try;;
69435 esac
69436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69437 $as_echo "$ac_try_echo") >&5
69438   (eval "$ac_link") 2>conftest.er1
69439   ac_status=$?
69440   grep -v '^ *+' conftest.er1 >conftest.err
69441   rm -f conftest.er1
69442   cat conftest.err >&5
69443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69444   (exit $ac_status); } && {
69445          test -z "$ac_c_werror_flag" ||
69446          test ! -s conftest.err
69447        } && test -s conftest$ac_exeext && {
69448          test "$cross_compiling" = yes ||
69449          $as_test_x conftest$ac_exeext
69450        }; then
69451   eval "$as_ac_var=yes"
69452 else
69453   $as_echo "$as_me: failed program was:" >&5
69454 sed 's/^/| /' conftest.$ac_ext >&5
69455
69456         eval "$as_ac_var=no"
69457 fi
69458
69459 rm -rf conftest.dSYM
69460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69461       conftest$ac_exeext conftest.$ac_ext
69462 fi
69463 ac_res=`eval 'as_val=${'$as_ac_var'}
69464                  $as_echo "$as_val"'`
69465                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69466 $as_echo "$ac_res" >&6; }
69467 as_val=`eval 'as_val=${'$as_ac_var'}
69468                  $as_echo "$as_val"'`
69469    if test "x$as_val" = x""yes; then
69470   cat >>confdefs.h <<_ACEOF
69471 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69472 _ACEOF
69473  ice_have_vprintf=yes
69474 fi
69475 done
69476
69477 if test "${ice_have_vprintf}" = yes; then
69478 { $as_echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
69479 $as_echo_n "checking for vprintf declaration in stdio.h stdlib.h... " >&6; }
69480 if test "${ice_cv_have_vprintf_decl+set}" = set; then
69481   $as_echo_n "(cached) " >&6
69482 else
69483
69484 ice_cv_have_vprintf_decl=no
69485 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69486 ice_re_word='(^|[^a-zA-Z0-9_])'
69487 for header in stdio.h stdlib.h; do
69488 # Check for ordinary declaration
69489 cat >conftest.$ac_ext <<_ACEOF
69490 /* confdefs.h.  */
69491 _ACEOF
69492 cat confdefs.h >>conftest.$ac_ext
69493 cat >>conftest.$ac_ext <<_ACEOF
69494 /* end confdefs.h.  */
69495 #include <$header>
69496
69497 _ACEOF
69498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69499   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then
69500   ice_cv_have_vprintf_decl=yes
69501 fi
69502 rm -f conftest*
69503
69504 if test "$ice_cv_have_vprintf_decl" = yes; then
69505         break
69506 fi
69507 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69508 cat >conftest.$ac_ext <<_ACEOF
69509 /* confdefs.h.  */
69510 _ACEOF
69511 cat confdefs.h >>conftest.$ac_ext
69512 cat >>conftest.$ac_ext <<_ACEOF
69513 /* end confdefs.h.  */
69514 #include <$header>
69515
69516 _ACEOF
69517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69518   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69519   ice_cv_have_vprintf_decl=yes
69520 fi
69521 rm -f conftest*
69522
69523 if test "$ice_cv_have_vprintf_decl" = yes; then
69524         break
69525 fi
69526 done
69527
69528 fi
69529
69530 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
69531 $as_echo "$ice_cv_have_vprintf_decl" >&6; }
69532 if test "$ice_cv_have_vprintf_decl" = yes; then
69533
69534 cat >>confdefs.h <<_ACEOF
69535 #define HAVE_VPRINTF_DECL 1
69536 _ACEOF
69537
69538 fi
69539 fi
69540
69541 { $as_echo "$as_me:$LINENO: checking for wait4" >&5
69542 $as_echo_n "checking for wait4... " >&6; }
69543 if test "${ac_cv_func_wait4+set}" = set; then
69544   $as_echo_n "(cached) " >&6
69545 else
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 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
69553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69554 #define wait4 innocuous_wait4
69555
69556 /* System header to define __stub macros and hopefully few prototypes,
69557     which can conflict with char wait4 (); below.
69558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69559     <limits.h> exists even on freestanding compilers.  */
69560
69561 #ifdef __STDC__
69562 # include <limits.h>
69563 #else
69564 # include <assert.h>
69565 #endif
69566
69567 #undef wait4
69568
69569 /* Override any GCC internal prototype to avoid an error.
69570    Use char because int might match the return type of a GCC
69571    builtin and then its argument prototype would still apply.  */
69572 #ifdef __cplusplus
69573 extern "C"
69574 #endif
69575 char wait4 ();
69576 /* The GNU C library defines this for functions which it implements
69577     to always fail with ENOSYS.  Some functions are actually named
69578     something starting with __ and the normal name is an alias.  */
69579 #if defined __stub_wait4 || defined __stub___wait4
69580 choke me
69581 #endif
69582
69583 int
69584 main ()
69585 {
69586 return wait4 ();
69587   ;
69588   return 0;
69589 }
69590 _ACEOF
69591 rm -f conftest.$ac_objext conftest$ac_exeext
69592 if { (ac_try="$ac_link"
69593 case "(($ac_try" in
69594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69595   *) ac_try_echo=$ac_try;;
69596 esac
69597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69598 $as_echo "$ac_try_echo") >&5
69599   (eval "$ac_link") 2>conftest.er1
69600   ac_status=$?
69601   grep -v '^ *+' conftest.er1 >conftest.err
69602   rm -f conftest.er1
69603   cat conftest.err >&5
69604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69605   (exit $ac_status); } && {
69606          test -z "$ac_c_werror_flag" ||
69607          test ! -s conftest.err
69608        } && test -s conftest$ac_exeext && {
69609          test "$cross_compiling" = yes ||
69610          $as_test_x conftest$ac_exeext
69611        }; then
69612   ac_cv_func_wait4=yes
69613 else
69614   $as_echo "$as_me: failed program was:" >&5
69615 sed 's/^/| /' conftest.$ac_ext >&5
69616
69617         ac_cv_func_wait4=no
69618 fi
69619
69620 rm -rf conftest.dSYM
69621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69622       conftest$ac_exeext conftest.$ac_ext
69623 fi
69624 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
69625 $as_echo "$ac_cv_func_wait4" >&6; }
69626
69627
69628 ice_have_writev=no
69629
69630 for ac_func in writev
69631 do
69632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69633 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69634 $as_echo_n "checking for $ac_func... " >&6; }
69635 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69636   $as_echo_n "(cached) " >&6
69637 else
69638   cat >conftest.$ac_ext <<_ACEOF
69639 /* confdefs.h.  */
69640 _ACEOF
69641 cat confdefs.h >>conftest.$ac_ext
69642 cat >>conftest.$ac_ext <<_ACEOF
69643 /* end confdefs.h.  */
69644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69645    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69646 #define $ac_func innocuous_$ac_func
69647
69648 /* System header to define __stub macros and hopefully few prototypes,
69649     which can conflict with char $ac_func (); below.
69650     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69651     <limits.h> exists even on freestanding compilers.  */
69652
69653 #ifdef __STDC__
69654 # include <limits.h>
69655 #else
69656 # include <assert.h>
69657 #endif
69658
69659 #undef $ac_func
69660
69661 /* Override any GCC internal prototype to avoid an error.
69662    Use char because int might match the return type of a GCC
69663    builtin and then its argument prototype would still apply.  */
69664 #ifdef __cplusplus
69665 extern "C"
69666 #endif
69667 char $ac_func ();
69668 /* The GNU C library defines this for functions which it implements
69669     to always fail with ENOSYS.  Some functions are actually named
69670     something starting with __ and the normal name is an alias.  */
69671 #if defined __stub_$ac_func || defined __stub___$ac_func
69672 choke me
69673 #endif
69674
69675 int
69676 main ()
69677 {
69678 return $ac_func ();
69679   ;
69680   return 0;
69681 }
69682 _ACEOF
69683 rm -f conftest.$ac_objext conftest$ac_exeext
69684 if { (ac_try="$ac_link"
69685 case "(($ac_try" in
69686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69687   *) ac_try_echo=$ac_try;;
69688 esac
69689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69690 $as_echo "$ac_try_echo") >&5
69691   (eval "$ac_link") 2>conftest.er1
69692   ac_status=$?
69693   grep -v '^ *+' conftest.er1 >conftest.err
69694   rm -f conftest.er1
69695   cat conftest.err >&5
69696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69697   (exit $ac_status); } && {
69698          test -z "$ac_c_werror_flag" ||
69699          test ! -s conftest.err
69700        } && test -s conftest$ac_exeext && {
69701          test "$cross_compiling" = yes ||
69702          $as_test_x conftest$ac_exeext
69703        }; then
69704   eval "$as_ac_var=yes"
69705 else
69706   $as_echo "$as_me: failed program was:" >&5
69707 sed 's/^/| /' conftest.$ac_ext >&5
69708
69709         eval "$as_ac_var=no"
69710 fi
69711
69712 rm -rf conftest.dSYM
69713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69714       conftest$ac_exeext conftest.$ac_ext
69715 fi
69716 ac_res=`eval 'as_val=${'$as_ac_var'}
69717                  $as_echo "$as_val"'`
69718                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69719 $as_echo "$ac_res" >&6; }
69720 as_val=`eval 'as_val=${'$as_ac_var'}
69721                  $as_echo "$as_val"'`
69722    if test "x$as_val" = x""yes; then
69723   cat >>confdefs.h <<_ACEOF
69724 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69725 _ACEOF
69726  ice_have_writev=yes
69727 fi
69728 done
69729
69730 if test "${ice_have_writev}" = yes; then
69731 { $as_echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
69732 $as_echo_n "checking for writev declaration in unistd.h sys/uio.h... " >&6; }
69733 if test "${ice_cv_have_writev_decl+set}" = set; then
69734   $as_echo_n "(cached) " >&6
69735 else
69736
69737 ice_cv_have_writev_decl=no
69738 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69739 ice_re_word='(^|[^a-zA-Z0-9_])'
69740 for header in unistd.h sys/uio.h; do
69741 # Check for ordinary declaration
69742 cat >conftest.$ac_ext <<_ACEOF
69743 /* confdefs.h.  */
69744 _ACEOF
69745 cat confdefs.h >>conftest.$ac_ext
69746 cat >>conftest.$ac_ext <<_ACEOF
69747 /* end confdefs.h.  */
69748 #include <$header>
69749
69750 _ACEOF
69751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69752   $EGREP "${ice_re_word}writev[         ]*\(" >/dev/null 2>&1; then
69753   ice_cv_have_writev_decl=yes
69754 fi
69755 rm -f conftest*
69756
69757 if test "$ice_cv_have_writev_decl" = yes; then
69758         break
69759 fi
69760 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69761 cat >conftest.$ac_ext <<_ACEOF
69762 /* confdefs.h.  */
69763 _ACEOF
69764 cat confdefs.h >>conftest.$ac_ext
69765 cat >>conftest.$ac_ext <<_ACEOF
69766 /* end confdefs.h.  */
69767 #include <$header>
69768
69769 _ACEOF
69770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69771   $EGREP "${ice_re_word}writev[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69772   ice_cv_have_writev_decl=yes
69773 fi
69774 rm -f conftest*
69775
69776 if test "$ice_cv_have_writev_decl" = yes; then
69777         break
69778 fi
69779 done
69780
69781 fi
69782
69783 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
69784 $as_echo "$ice_cv_have_writev_decl" >&6; }
69785 if test "$ice_cv_have_writev_decl" = yes; then
69786
69787 cat >>confdefs.h <<_ACEOF
69788 #define HAVE_WRITEV_DECL 1
69789 _ACEOF
69790
69791 fi
69792 fi
69793
69794
69795 ice_have_strcasecmp=no
69796
69797 for ac_func in strcasecmp
69798 do
69799 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69800 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69801 $as_echo_n "checking for $ac_func... " >&6; }
69802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69803   $as_echo_n "(cached) " >&6
69804 else
69805   cat >conftest.$ac_ext <<_ACEOF
69806 /* confdefs.h.  */
69807 _ACEOF
69808 cat confdefs.h >>conftest.$ac_ext
69809 cat >>conftest.$ac_ext <<_ACEOF
69810 /* end confdefs.h.  */
69811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69813 #define $ac_func innocuous_$ac_func
69814
69815 /* System header to define __stub macros and hopefully few prototypes,
69816     which can conflict with char $ac_func (); below.
69817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69818     <limits.h> exists even on freestanding compilers.  */
69819
69820 #ifdef __STDC__
69821 # include <limits.h>
69822 #else
69823 # include <assert.h>
69824 #endif
69825
69826 #undef $ac_func
69827
69828 /* Override any GCC internal prototype to avoid an error.
69829    Use char because int might match the return type of a GCC
69830    builtin and then its argument prototype would still apply.  */
69831 #ifdef __cplusplus
69832 extern "C"
69833 #endif
69834 char $ac_func ();
69835 /* The GNU C library defines this for functions which it implements
69836     to always fail with ENOSYS.  Some functions are actually named
69837     something starting with __ and the normal name is an alias.  */
69838 #if defined __stub_$ac_func || defined __stub___$ac_func
69839 choke me
69840 #endif
69841
69842 int
69843 main ()
69844 {
69845 return $ac_func ();
69846   ;
69847   return 0;
69848 }
69849 _ACEOF
69850 rm -f conftest.$ac_objext conftest$ac_exeext
69851 if { (ac_try="$ac_link"
69852 case "(($ac_try" in
69853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69854   *) ac_try_echo=$ac_try;;
69855 esac
69856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69857 $as_echo "$ac_try_echo") >&5
69858   (eval "$ac_link") 2>conftest.er1
69859   ac_status=$?
69860   grep -v '^ *+' conftest.er1 >conftest.err
69861   rm -f conftest.er1
69862   cat conftest.err >&5
69863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69864   (exit $ac_status); } && {
69865          test -z "$ac_c_werror_flag" ||
69866          test ! -s conftest.err
69867        } && test -s conftest$ac_exeext && {
69868          test "$cross_compiling" = yes ||
69869          $as_test_x conftest$ac_exeext
69870        }; then
69871   eval "$as_ac_var=yes"
69872 else
69873   $as_echo "$as_me: failed program was:" >&5
69874 sed 's/^/| /' conftest.$ac_ext >&5
69875
69876         eval "$as_ac_var=no"
69877 fi
69878
69879 rm -rf conftest.dSYM
69880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69881       conftest$ac_exeext conftest.$ac_ext
69882 fi
69883 ac_res=`eval 'as_val=${'$as_ac_var'}
69884                  $as_echo "$as_val"'`
69885                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69886 $as_echo "$ac_res" >&6; }
69887 as_val=`eval 'as_val=${'$as_ac_var'}
69888                  $as_echo "$as_val"'`
69889    if test "x$as_val" = x""yes; then
69890   cat >>confdefs.h <<_ACEOF
69891 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69892 _ACEOF
69893  ice_have_strcasecmp=yes
69894 fi
69895 done
69896
69897 if test "${ice_have_strcasecmp}" = yes; then
69898 { $as_echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
69899 $as_echo_n "checking for strcasecmp declaration in string.h strings.h... " >&6; }
69900 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
69901   $as_echo_n "(cached) " >&6
69902 else
69903
69904 ice_cv_have_strcasecmp_decl=no
69905 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69906 ice_re_word='(^|[^a-zA-Z0-9_])'
69907 for header in string.h strings.h; do
69908 # Check for ordinary declaration
69909 cat >conftest.$ac_ext <<_ACEOF
69910 /* confdefs.h.  */
69911 _ACEOF
69912 cat confdefs.h >>conftest.$ac_ext
69913 cat >>conftest.$ac_ext <<_ACEOF
69914 /* end confdefs.h.  */
69915 #include <$header>
69916
69917 _ACEOF
69918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69919   $EGREP "${ice_re_word}strcasecmp[     ]*\(" >/dev/null 2>&1; then
69920   ice_cv_have_strcasecmp_decl=yes
69921 fi
69922 rm -f conftest*
69923
69924 if test "$ice_cv_have_strcasecmp_decl" = yes; then
69925         break
69926 fi
69927 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69928 cat >conftest.$ac_ext <<_ACEOF
69929 /* confdefs.h.  */
69930 _ACEOF
69931 cat confdefs.h >>conftest.$ac_ext
69932 cat >>conftest.$ac_ext <<_ACEOF
69933 /* end confdefs.h.  */
69934 #include <$header>
69935
69936 _ACEOF
69937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69938   $EGREP "${ice_re_word}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69939   ice_cv_have_strcasecmp_decl=yes
69940 fi
69941 rm -f conftest*
69942
69943 if test "$ice_cv_have_strcasecmp_decl" = yes; then
69944         break
69945 fi
69946 done
69947
69948 fi
69949
69950 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
69951 $as_echo "$ice_cv_have_strcasecmp_decl" >&6; }
69952 if test "$ice_cv_have_strcasecmp_decl" = yes; then
69953
69954 cat >>confdefs.h <<_ACEOF
69955 #define HAVE_STRCASECMP_DECL 1
69956 _ACEOF
69957
69958 fi
69959 fi
69960
69961
69962
69963 ac_config_files="$ac_config_files Makefile amandad-src/Makefile amar-src/Makefile amplot/Makefile changer-src/Makefile client-src/Makefile common-src/Makefile config/Makefile device-src/Makefile application-src/Makefile example/Makefile gnulib/Makefile installcheck/Makefile man/Makefile ndmp-src/Makefile oldrecover-src/Makefile packaging/Makefile perl/Makefile po/Makefile recover-src/Makefile server-src/Makefile xfer-src/Makefile"
69964
69965
69966 cat >confcache <<\_ACEOF
69967 # This file is a shell script that caches the results of configure
69968 # tests run on this system so they can be shared between configure
69969 # scripts and configure runs, see configure's option --config-cache.
69970 # It is not useful on other systems.  If it contains results you don't
69971 # want to keep, you may remove or edit it.
69972 #
69973 # config.status only pays attention to the cache file if you give it
69974 # the --recheck option to rerun configure.
69975 #
69976 # `ac_cv_env_foo' variables (set or unset) will be overridden when
69977 # loading this file, other *unset* `ac_cv_foo' will be assigned the
69978 # following values.
69979
69980 _ACEOF
69981
69982 # The following way of writing the cache mishandles newlines in values,
69983 # but we know of no workaround that is simple, portable, and efficient.
69984 # So, we kill variables containing newlines.
69985 # Ultrix sh set writes to stderr and can't be redirected directly,
69986 # and sets the high bit in the cache file unless we assign to the vars.
69987 (
69988   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
69989     eval ac_val=\$$ac_var
69990     case $ac_val in #(
69991     *${as_nl}*)
69992       case $ac_var in #(
69993       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
69994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
69995       esac
69996       case $ac_var in #(
69997       _ | IFS | as_nl) ;; #(
69998       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
69999       *) $as_unset $ac_var ;;
70000       esac ;;
70001     esac
70002   done
70003
70004   (set) 2>&1 |
70005     case $as_nl`(ac_space=' '; set) 2>&1` in #(
70006     *${as_nl}ac_space=\ *)
70007       # `set' does not quote correctly, so add quotes (double-quote
70008       # substitution turns \\\\ into \\, and sed turns \\ into \).
70009       sed -n \
70010         "s/'/'\\\\''/g;
70011           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
70012       ;; #(
70013     *)
70014       # `set' quotes correctly as required by POSIX, so do not add quotes.
70015       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
70016       ;;
70017     esac |
70018     sort
70019 ) |
70020   sed '
70021      /^ac_cv_env_/b end
70022      t clear
70023      :clear
70024      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
70025      t end
70026      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
70027      :end' >>confcache
70028 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
70029   if test -w "$cache_file"; then
70030     test "x$cache_file" != "x/dev/null" &&
70031       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
70032 $as_echo "$as_me: updating cache $cache_file" >&6;}
70033     cat confcache >$cache_file
70034   else
70035     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
70036 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
70037   fi
70038 fi
70039 rm -f confcache
70040
70041 test "x$prefix" = xNONE && prefix=$ac_default_prefix
70042 # Let make expand exec_prefix.
70043 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
70044
70045 DEFS=-DHAVE_CONFIG_H
70046
70047 ac_libobjs=
70048 ac_ltlibobjs=
70049 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
70050   # 1. Remove the extension, and $U if already installed.
70051   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
70052   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
70053   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
70054   #    will be set to the directory where LIBOBJS objects are built.
70055   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
70056   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
70057 done
70058 LIBOBJS=$ac_libobjs
70059
70060 LTLIBOBJS=$ac_ltlibobjs
70061
70062
70063  if test -n "$EXEEXT"; then
70064   am__EXEEXT_TRUE=
70065   am__EXEEXT_FALSE='#'
70066 else
70067   am__EXEEXT_TRUE='#'
70068   am__EXEEXT_FALSE=
70069 fi
70070
70071 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
70072   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
70073 Usually this means the macro was only invoked conditionally." >&5
70074 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
70075 Usually this means the macro was only invoked conditionally." >&2;}
70076    { (exit 1); exit 1; }; }
70077 fi
70078 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
70079   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
70080 Usually this means the macro was only invoked conditionally." >&5
70081 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
70082 Usually this means the macro was only invoked conditionally." >&2;}
70083    { (exit 1); exit 1; }; }
70084 fi
70085 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
70086   { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
70087 Usually this means the macro was only invoked conditionally." >&5
70088 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
70089 Usually this means the macro was only invoked conditionally." >&2;}
70090    { (exit 1); exit 1; }; }
70091 fi
70092
70093     gl_libobjs=
70094     gl_ltlibobjs=
70095     if test -n "$gl_LIBOBJS"; then
70096       # Remove the extension.
70097       sed_drop_objext='s/\.o$//;s/\.obj$//'
70098       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
70099         gl_libobjs="$gl_libobjs $i.$ac_objext"
70100         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
70101       done
70102     fi
70103     gl_LIBOBJS=$gl_libobjs
70104
70105     gl_LTLIBOBJS=$gl_ltlibobjs
70106
70107
70108
70109     gltests_libobjs=
70110     gltests_ltlibobjs=
70111     if test -n "$gltests_LIBOBJS"; then
70112       # Remove the extension.
70113       sed_drop_objext='s/\.o$//;s/\.obj$//'
70114       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
70115         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
70116         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
70117       done
70118     fi
70119     gltests_LIBOBJS=$gltests_libobjs
70120
70121     gltests_LTLIBOBJS=$gltests_ltlibobjs
70122
70123
70124 if test -z "${CHECK_USERID_TRUE}" && test -z "${CHECK_USERID_FALSE}"; then
70125   { { $as_echo "$as_me:$LINENO: error: conditional \"CHECK_USERID\" was never defined.
70126 Usually this means the macro was only invoked conditionally." >&5
70127 $as_echo "$as_me: error: conditional \"CHECK_USERID\" was never defined.
70128 Usually this means the macro was only invoked conditionally." >&2;}
70129    { (exit 1); exit 1; }; }
70130 fi
70131 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
70132   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
70133 Usually this means the macro was only invoked conditionally." >&5
70134 $as_echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
70135 Usually this means the macro was only invoked conditionally." >&2;}
70136    { (exit 1); exit 1; }; }
70137 fi
70138 if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
70139   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_INSTALLPERMS\" was never defined.
70140 Usually this means the macro was only invoked conditionally." >&5
70141 $as_echo "$as_me: error: conditional \"WANT_INSTALLPERMS\" was never defined.
70142 Usually this means the macro was only invoked conditionally." >&2;}
70143    { (exit 1); exit 1; }; }
70144 fi
70145 if test -z "${CHECK_SCRIPTS_AT_BUILD_TRUE}" && test -z "${CHECK_SCRIPTS_AT_BUILD_FALSE}"; then
70146   { { $as_echo "$as_me:$LINENO: error: conditional \"CHECK_SCRIPTS_AT_BUILD\" was never defined.
70147 Usually this means the macro was only invoked conditionally." >&5
70148 $as_echo "$as_me: error: conditional \"CHECK_SCRIPTS_AT_BUILD\" was never defined.
70149 Usually this means the macro was only invoked conditionally." >&2;}
70150    { (exit 1); exit 1; }; }
70151 fi
70152 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
70153   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
70154 Usually this means the macro was only invoked conditionally." >&5
70155 $as_echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
70156 Usually this means the macro was only invoked conditionally." >&2;}
70157    { (exit 1); exit 1; }; }
70158 fi
70159 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
70160   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
70161 Usually this means the macro was only invoked conditionally." >&5
70162 $as_echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
70163 Usually this means the macro was only invoked conditionally." >&2;}
70164    { (exit 1); exit 1; }; }
70165 fi
70166 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
70167   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
70168 Usually this means the macro was only invoked conditionally." >&5
70169 $as_echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
70170 Usually this means the macro was only invoked conditionally." >&2;}
70171    { (exit 1); exit 1; }; }
70172 fi
70173 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
70174   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
70175 Usually this means the macro was only invoked conditionally." >&5
70176 $as_echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
70177 Usually this means the macro was only invoked conditionally." >&2;}
70178    { (exit 1); exit 1; }; }
70179 fi
70180 if test -z "${WANT_NDMP_TRUE}" && test -z "${WANT_NDMP_FALSE}"; then
70181   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_NDMP\" was never defined.
70182 Usually this means the macro was only invoked conditionally." >&5
70183 $as_echo "$as_me: error: conditional \"WANT_NDMP\" was never defined.
70184 Usually this means the macro was only invoked conditionally." >&2;}
70185    { (exit 1); exit 1; }; }
70186 fi
70187 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
70188   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
70189 Usually this means the macro was only invoked conditionally." >&5
70190 $as_echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
70191 Usually this means the macro was only invoked conditionally." >&2;}
70192    { (exit 1); exit 1; }; }
70193 fi
70194 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
70195   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
70196 Usually this means the macro was only invoked conditionally." >&5
70197 $as_echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
70198 Usually this means the macro was only invoked conditionally." >&2;}
70199    { (exit 1); exit 1; }; }
70200 fi
70201 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
70202   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
70203 Usually this means the macro was only invoked conditionally." >&5
70204 $as_echo "$as_me: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
70205 Usually this means the macro was only invoked conditionally." >&2;}
70206    { (exit 1); exit 1; }; }
70207 fi
70208 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
70209   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
70210 Usually this means the macro was only invoked conditionally." >&5
70211 $as_echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
70212 Usually this means the macro was only invoked conditionally." >&2;}
70213    { (exit 1); exit 1; }; }
70214 fi
70215 if test -z "${WANT_SCSI_LINUX_TRUE}" && test -z "${WANT_SCSI_LINUX_FALSE}"; then
70216   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_LINUX\" was never defined.
70217 Usually this means the macro was only invoked conditionally." >&5
70218 $as_echo "$as_me: error: conditional \"WANT_SCSI_LINUX\" was never defined.
70219 Usually this means the macro was only invoked conditionally." >&2;}
70220    { (exit 1); exit 1; }; }
70221 fi
70222 if test -z "${WANT_SCSI_HPUX_NEW_TRUE}" && test -z "${WANT_SCSI_HPUX_NEW_FALSE}"; then
70223   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_HPUX_NEW\" was never defined.
70224 Usually this means the macro was only invoked conditionally." >&5
70225 $as_echo "$as_me: error: conditional \"WANT_SCSI_HPUX_NEW\" was never defined.
70226 Usually this means the macro was only invoked conditionally." >&2;}
70227    { (exit 1); exit 1; }; }
70228 fi
70229 if test -z "${WANT_SCSI_IRIX_TRUE}" && test -z "${WANT_SCSI_IRIX_FALSE}"; then
70230   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_IRIX\" was never defined.
70231 Usually this means the macro was only invoked conditionally." >&5
70232 $as_echo "$as_me: error: conditional \"WANT_SCSI_IRIX\" was never defined.
70233 Usually this means the macro was only invoked conditionally." >&2;}
70234    { (exit 1); exit 1; }; }
70235 fi
70236 if test -z "${WANT_SCSI_SOLARIS_TRUE}" && test -z "${WANT_SCSI_SOLARIS_FALSE}"; then
70237   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_SOLARIS\" was never defined.
70238 Usually this means the macro was only invoked conditionally." >&5
70239 $as_echo "$as_me: error: conditional \"WANT_SCSI_SOLARIS\" was never defined.
70240 Usually this means the macro was only invoked conditionally." >&2;}
70241    { (exit 1); exit 1; }; }
70242 fi
70243 if test -z "${WANT_SCSI_AIX_TRUE}" && test -z "${WANT_SCSI_AIX_FALSE}"; then
70244   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_AIX\" was never defined.
70245 Usually this means the macro was only invoked conditionally." >&5
70246 $as_echo "$as_me: error: conditional \"WANT_SCSI_AIX\" was never defined.
70247 Usually this means the macro was only invoked conditionally." >&2;}
70248    { (exit 1); exit 1; }; }
70249 fi
70250 if test -z "${WANT_SCSI_CAM_TRUE}" && test -z "${WANT_SCSI_CAM_FALSE}"; then
70251   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_CAM\" was never defined.
70252 Usually this means the macro was only invoked conditionally." >&5
70253 $as_echo "$as_me: error: conditional \"WANT_SCSI_CAM\" was never defined.
70254 Usually this means the macro was only invoked conditionally." >&2;}
70255    { (exit 1); exit 1; }; }
70256 fi
70257 if test -z "${WANT_SCSI_BSD_TRUE}" && test -z "${WANT_SCSI_BSD_FALSE}"; then
70258   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_BSD\" was never defined.
70259 Usually this means the macro was only invoked conditionally." >&5
70260 $as_echo "$as_me: error: conditional \"WANT_SCSI_BSD\" was never defined.
70261 Usually this means the macro was only invoked conditionally." >&2;}
70262    { (exit 1); exit 1; }; }
70263 fi
70264 if test -z "${WANT_CHG_SCSI_CHIO_TRUE}" && test -z "${WANT_CHG_SCSI_CHIO_FALSE}"; then
70265   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI_CHIO\" was never defined.
70266 Usually this means the macro was only invoked conditionally." >&5
70267 $as_echo "$as_me: error: conditional \"WANT_CHG_SCSI_CHIO\" was never defined.
70268 Usually this means the macro was only invoked conditionally." >&2;}
70269    { (exit 1); exit 1; }; }
70270 fi
70271 if test -z "${WANT_SCSI_HPUX_TRUE}" && test -z "${WANT_SCSI_HPUX_FALSE}"; then
70272   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_HPUX\" was never defined.
70273 Usually this means the macro was only invoked conditionally." >&5
70274 $as_echo "$as_me: error: conditional \"WANT_SCSI_HPUX\" was never defined.
70275 Usually this means the macro was only invoked conditionally." >&2;}
70276    { (exit 1); exit 1; }; }
70277 fi
70278 if test -z "${WANT_SCSI_CHIO_TRUE}" && test -z "${WANT_SCSI_CHIO_FALSE}"; then
70279   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_CHIO\" was never defined.
70280 Usually this means the macro was only invoked conditionally." >&5
70281 $as_echo "$as_me: error: conditional \"WANT_SCSI_CHIO\" was never defined.
70282 Usually this means the macro was only invoked conditionally." >&2;}
70283    { (exit 1); exit 1; }; }
70284 fi
70285 if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
70286   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
70287 Usually this means the macro was only invoked conditionally." >&5
70288 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
70289 Usually this means the macro was only invoked conditionally." >&2;}
70290    { (exit 1); exit 1; }; }
70291 fi
70292 if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
70293   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
70294 Usually this means the macro was only invoked conditionally." >&5
70295 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
70296 Usually this means the macro was only invoked conditionally." >&2;}
70297    { (exit 1); exit 1; }; }
70298 fi
70299 if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
70300   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
70301 Usually this means the macro was only invoked conditionally." >&5
70302 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
70303 Usually this means the macro was only invoked conditionally." >&2;}
70304    { (exit 1); exit 1; }; }
70305 fi
70306 if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
70307   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
70308 Usually this means the macro was only invoked conditionally." >&5
70309 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
70310 Usually this means the macro was only invoked conditionally." >&2;}
70311    { (exit 1); exit 1; }; }
70312 fi
70313 if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
70314   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
70315 Usually this means the macro was only invoked conditionally." >&5
70316 $as_echo "$as_me: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
70317 Usually this means the macro was only invoked conditionally." >&2;}
70318    { (exit 1); exit 1; }; }
70319 fi
70320 if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
70321   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_S3_DEVICE\" was never defined.
70322 Usually this means the macro was only invoked conditionally." >&5
70323 $as_echo "$as_me: error: conditional \"WANT_S3_DEVICE\" was never defined.
70324 Usually this means the macro was only invoked conditionally." >&2;}
70325    { (exit 1); exit 1; }; }
70326 fi
70327 if test -z "${WANT_TAPE_XENIX_TRUE}" && test -z "${WANT_TAPE_XENIX_FALSE}"; then
70328   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_XENIX\" was never defined.
70329 Usually this means the macro was only invoked conditionally." >&5
70330 $as_echo "$as_me: error: conditional \"WANT_TAPE_XENIX\" was never defined.
70331 Usually this means the macro was only invoked conditionally." >&2;}
70332    { (exit 1); exit 1; }; }
70333 fi
70334 if test -z "${WANT_TAPE_AIX_TRUE}" && test -z "${WANT_TAPE_AIX_FALSE}"; then
70335   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_AIX\" was never defined.
70336 Usually this means the macro was only invoked conditionally." >&5
70337 $as_echo "$as_me: error: conditional \"WANT_TAPE_AIX\" was never defined.
70338 Usually this means the macro was only invoked conditionally." >&2;}
70339    { (exit 1); exit 1; }; }
70340 fi
70341 if test -z "${WANT_TAPE_UWARE_TRUE}" && test -z "${WANT_TAPE_UWARE_FALSE}"; then
70342   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_UWARE\" was never defined.
70343 Usually this means the macro was only invoked conditionally." >&5
70344 $as_echo "$as_me: error: conditional \"WANT_TAPE_UWARE\" was never defined.
70345 Usually this means the macro was only invoked conditionally." >&2;}
70346    { (exit 1); exit 1; }; }
70347 fi
70348 if test -z "${WANT_TAPE_POSIX_TRUE}" && test -z "${WANT_TAPE_POSIX_FALSE}"; then
70349   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_POSIX\" was never defined.
70350 Usually this means the macro was only invoked conditionally." >&5
70351 $as_echo "$as_me: error: conditional \"WANT_TAPE_POSIX\" was never defined.
70352 Usually this means the macro was only invoked conditionally." >&2;}
70353    { (exit 1); exit 1; }; }
70354 fi
70355 if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
70356   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
70357 Usually this means the macro was only invoked conditionally." >&5
70358 $as_echo "$as_me: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
70359 Usually this means the macro was only invoked conditionally." >&2;}
70360    { (exit 1); exit 1; }; }
70361 fi
70362 if test -z "${WANT_DVDRW_DEVICE_TRUE}" && test -z "${WANT_DVDRW_DEVICE_FALSE}"; then
70363   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_DVDRW_DEVICE\" was never defined.
70364 Usually this means the macro was only invoked conditionally." >&5
70365 $as_echo "$as_me: error: conditional \"WANT_DVDRW_DEVICE\" was never defined.
70366 Usually this means the macro was only invoked conditionally." >&2;}
70367    { (exit 1); exit 1; }; }
70368 fi
70369 if test -z "${WANT_NDMP_DEVICE_TRUE}" && test -z "${WANT_NDMP_DEVICE_FALSE}"; then
70370   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_NDMP_DEVICE\" was never defined.
70371 Usually this means the macro was only invoked conditionally." >&5
70372 $as_echo "$as_me: error: conditional \"WANT_NDMP_DEVICE\" was never defined.
70373 Usually this means the macro was only invoked conditionally." >&2;}
70374    { (exit 1); exit 1; }; }
70375 fi
70376 if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
70377   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSD_SECURITY\" was never defined.
70378 Usually this means the macro was only invoked conditionally." >&5
70379 $as_echo "$as_me: error: conditional \"WANT_BSD_SECURITY\" was never defined.
70380 Usually this means the macro was only invoked conditionally." >&2;}
70381    { (exit 1); exit 1; }; }
70382 fi
70383 if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
70384   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
70385 Usually this means the macro was only invoked conditionally." >&5
70386 $as_echo "$as_me: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
70387 Usually this means the macro was only invoked conditionally." >&2;}
70388    { (exit 1); exit 1; }; }
70389 fi
70390 if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
70391   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
70392 Usually this means the macro was only invoked conditionally." >&5
70393 $as_echo "$as_me: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
70394 Usually this means the macro was only invoked conditionally." >&2;}
70395    { (exit 1); exit 1; }; }
70396 fi
70397 if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
70398   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RSH_SECURITY\" was never defined.
70399 Usually this means the macro was only invoked conditionally." >&5
70400 $as_echo "$as_me: error: conditional \"WANT_RSH_SECURITY\" was never defined.
70401 Usually this means the macro was only invoked conditionally." >&2;}
70402    { (exit 1); exit 1; }; }
70403 fi
70404 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
70405   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
70406 Usually this means the macro was only invoked conditionally." >&5
70407 $as_echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
70408 Usually this means the macro was only invoked conditionally." >&2;}
70409    { (exit 1); exit 1; }; }
70410 fi
70411 if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
70412   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
70413 Usually this means the macro was only invoked conditionally." >&5
70414 $as_echo "$as_me: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
70415 Usually this means the macro was only invoked conditionally." >&2;}
70416    { (exit 1); exit 1; }; }
70417 fi
70418 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
70419   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
70420 Usually this means the macro was only invoked conditionally." >&5
70421 $as_echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
70422 Usually this means the macro was only invoked conditionally." >&2;}
70423    { (exit 1); exit 1; }; }
70424 fi
70425 if test -z "${HAVE_RPCGEN_TRUE}" && test -z "${HAVE_RPCGEN_FALSE}"; then
70426   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_RPCGEN\" was never defined.
70427 Usually this means the macro was only invoked conditionally." >&5
70428 $as_echo "$as_me: error: conditional \"HAVE_RPCGEN\" was never defined.
70429 Usually this means the macro was only invoked conditionally." >&2;}
70430    { (exit 1); exit 1; }; }
70431 fi
70432
70433 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
70434   { { $as_echo "$as_me:$LINENO: error: conditional \"GCC_COMPILER\" was never defined.
70435 Usually this means the macro was only invoked conditionally." >&5
70436 $as_echo "$as_me: error: conditional \"GCC_COMPILER\" was never defined.
70437 Usually this means the macro was only invoked conditionally." >&2;}
70438    { (exit 1); exit 1; }; }
70439 fi
70440
70441 : ${CONFIG_STATUS=./config.status}
70442 ac_write_fail=0
70443 ac_clean_files_save=$ac_clean_files
70444 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
70445 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
70446 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
70447 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
70448 #! $SHELL
70449 # Generated by $as_me.
70450 # Run this file to recreate the current configuration.
70451 # Compiler output produced by configure, useful for debugging
70452 # configure, is in config.log if it exists.
70453
70454 debug=false
70455 ac_cs_recheck=false
70456 ac_cs_silent=false
70457 SHELL=\${CONFIG_SHELL-$SHELL}
70458 _ACEOF
70459
70460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
70461 ## --------------------- ##
70462 ## M4sh Initialization.  ##
70463 ## --------------------- ##
70464
70465 # Be more Bourne compatible
70466 DUALCASE=1; export DUALCASE # for MKS sh
70467 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
70468   emulate sh
70469   NULLCMD=:
70470   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
70471   # is contrary to our usage.  Disable this feature.
70472   alias -g '${1+"$@"}'='"$@"'
70473   setopt NO_GLOB_SUBST
70474 else
70475   case `(set -o) 2>/dev/null` in
70476   *posix*) set -o posix ;;
70477 esac
70478
70479 fi
70480
70481
70482
70483
70484 # PATH needs CR
70485 # Avoid depending upon Character Ranges.
70486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
70487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
70488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
70489 as_cr_digits='0123456789'
70490 as_cr_alnum=$as_cr_Letters$as_cr_digits
70491
70492 as_nl='
70493 '
70494 export as_nl
70495 # Printing a long string crashes Solaris 7 /usr/bin/printf.
70496 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
70497 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
70498 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
70499 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
70500   as_echo='printf %s\n'
70501   as_echo_n='printf %s'
70502 else
70503   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
70504     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
70505     as_echo_n='/usr/ucb/echo -n'
70506   else
70507     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
70508     as_echo_n_body='eval
70509       arg=$1;
70510       case $arg in
70511       *"$as_nl"*)
70512         expr "X$arg" : "X\\(.*\\)$as_nl";
70513         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
70514       esac;
70515       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70516     '
70517     export as_echo_n_body
70518     as_echo_n='sh -c $as_echo_n_body as_echo'
70519   fi
70520   export as_echo_body
70521   as_echo='sh -c $as_echo_body as_echo'
70522 fi
70523
70524 # The user is always right.
70525 if test "${PATH_SEPARATOR+set}" != set; then
70526   PATH_SEPARATOR=:
70527   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
70528     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
70529       PATH_SEPARATOR=';'
70530   }
70531 fi
70532
70533 # Support unset when possible.
70534 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
70535   as_unset=unset
70536 else
70537   as_unset=false
70538 fi
70539
70540
70541 # IFS
70542 # We need space, tab and new line, in precisely that order.  Quoting is
70543 # there to prevent editors from complaining about space-tab.
70544 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
70545 # splitting by setting IFS to empty value.)
70546 IFS=" ""        $as_nl"
70547
70548 # Find who we are.  Look in the path if we contain no directory separator.
70549 case $0 in
70550   *[\\/]* ) as_myself=$0 ;;
70551   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70552 for as_dir in $PATH
70553 do
70554   IFS=$as_save_IFS
70555   test -z "$as_dir" && as_dir=.
70556   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
70557 done
70558 IFS=$as_save_IFS
70559
70560      ;;
70561 esac
70562 # We did not find ourselves, most probably we were run as `sh COMMAND'
70563 # in which case we are not to be found in the path.
70564 if test "x$as_myself" = x; then
70565   as_myself=$0
70566 fi
70567 if test ! -f "$as_myself"; then
70568   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
70569   { (exit 1); exit 1; }
70570 fi
70571
70572 # Work around bugs in pre-3.0 UWIN ksh.
70573 for as_var in ENV MAIL MAILPATH
70574 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
70575 done
70576 PS1='$ '
70577 PS2='> '
70578 PS4='+ '
70579
70580 # NLS nuisances.
70581 LC_ALL=C
70582 export LC_ALL
70583 LANGUAGE=C
70584 export LANGUAGE
70585
70586 # Required to use basename.
70587 if expr a : '\(a\)' >/dev/null 2>&1 &&
70588    test "X`expr 00001 : '.*\(...\)'`" = X001; then
70589   as_expr=expr
70590 else
70591   as_expr=false
70592 fi
70593
70594 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
70595   as_basename=basename
70596 else
70597   as_basename=false
70598 fi
70599
70600
70601 # Name of the executable.
70602 as_me=`$as_basename -- "$0" ||
70603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70604          X"$0" : 'X\(//\)$' \| \
70605          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
70606 $as_echo X/"$0" |
70607     sed '/^.*\/\([^/][^/]*\)\/*$/{
70608             s//\1/
70609             q
70610           }
70611           /^X\/\(\/\/\)$/{
70612             s//\1/
70613             q
70614           }
70615           /^X\/\(\/\).*/{
70616             s//\1/
70617             q
70618           }
70619           s/.*/./; q'`
70620
70621 # CDPATH.
70622 $as_unset CDPATH
70623
70624
70625
70626   as_lineno_1=$LINENO
70627   as_lineno_2=$LINENO
70628   test "x$as_lineno_1" != "x$as_lineno_2" &&
70629   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
70630
70631   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
70632   # uniformly replaced by the line number.  The first 'sed' inserts a
70633   # line-number line after each line using $LINENO; the second 'sed'
70634   # does the real work.  The second script uses 'N' to pair each
70635   # line-number line with the line containing $LINENO, and appends
70636   # trailing '-' during substitution so that $LINENO is not a special
70637   # case at line end.
70638   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
70639   # scripts with optimization help from Paolo Bonzini.  Blame Lee
70640   # E. McMahon (1931-1989) for sed's syntax.  :-)
70641   sed -n '
70642     p
70643     /[$]LINENO/=
70644   ' <$as_myself |
70645     sed '
70646       s/[$]LINENO.*/&-/
70647       t lineno
70648       b
70649       :lineno
70650       N
70651       :loop
70652       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
70653       t loop
70654       s/-\n.*//
70655     ' >$as_me.lineno &&
70656   chmod +x "$as_me.lineno" ||
70657     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
70658    { (exit 1); exit 1; }; }
70659
70660   # Don't try to exec as it changes $[0], causing all sort of problems
70661   # (the dirname of $[0] is not the place where we might find the
70662   # original and so on.  Autoconf is especially sensitive to this).
70663   . "./$as_me.lineno"
70664   # Exit status is that of the last command.
70665   exit
70666 }
70667
70668
70669 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
70670   as_dirname=dirname
70671 else
70672   as_dirname=false
70673 fi
70674
70675 ECHO_C= ECHO_N= ECHO_T=
70676 case `echo -n x` in
70677 -n*)
70678   case `echo 'x\c'` in
70679   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
70680   *)   ECHO_C='\c';;
70681   esac;;
70682 *)
70683   ECHO_N='-n';;
70684 esac
70685 if expr a : '\(a\)' >/dev/null 2>&1 &&
70686    test "X`expr 00001 : '.*\(...\)'`" = X001; then
70687   as_expr=expr
70688 else
70689   as_expr=false
70690 fi
70691
70692 rm -f conf$$ conf$$.exe conf$$.file
70693 if test -d conf$$.dir; then
70694   rm -f conf$$.dir/conf$$.file
70695 else
70696   rm -f conf$$.dir
70697   mkdir conf$$.dir 2>/dev/null
70698 fi
70699 if (echo >conf$$.file) 2>/dev/null; then
70700   if ln -s conf$$.file conf$$ 2>/dev/null; then
70701     as_ln_s='ln -s'
70702     # ... but there are two gotchas:
70703     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
70704     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
70705     # In both cases, we have to default to `cp -p'.
70706     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
70707       as_ln_s='cp -p'
70708   elif ln conf$$.file conf$$ 2>/dev/null; then
70709     as_ln_s=ln
70710   else
70711     as_ln_s='cp -p'
70712   fi
70713 else
70714   as_ln_s='cp -p'
70715 fi
70716 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
70717 rmdir conf$$.dir 2>/dev/null
70718
70719 if mkdir -p . 2>/dev/null; then
70720   as_mkdir_p=:
70721 else
70722   test -d ./-p && rmdir ./-p
70723   as_mkdir_p=false
70724 fi
70725
70726 if test -x / >/dev/null 2>&1; then
70727   as_test_x='test -x'
70728 else
70729   if ls -dL / >/dev/null 2>&1; then
70730     as_ls_L_option=L
70731   else
70732     as_ls_L_option=
70733   fi
70734   as_test_x='
70735     eval sh -c '\''
70736       if test -d "$1"; then
70737         test -d "$1/.";
70738       else
70739         case $1 in
70740         -*)set "./$1";;
70741         esac;
70742         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
70743         ???[sx]*):;;*)false;;esac;fi
70744     '\'' sh
70745   '
70746 fi
70747 as_executable_p=$as_test_x
70748
70749 # Sed expression to map a string onto a valid CPP name.
70750 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
70751
70752 # Sed expression to map a string onto a valid variable name.
70753 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
70754
70755
70756 exec 6>&1
70757
70758 # Save the log message, to keep $[0] and so on meaningful, and to
70759 # report actual input values of CONFIG_FILES etc. instead of their
70760 # values after options handling.
70761 ac_log="
70762 This file was extended by $as_me, which was
70763 generated by GNU Autoconf 2.63.  Invocation command line was
70764
70765   CONFIG_FILES    = $CONFIG_FILES
70766   CONFIG_HEADERS  = $CONFIG_HEADERS
70767   CONFIG_LINKS    = $CONFIG_LINKS
70768   CONFIG_COMMANDS = $CONFIG_COMMANDS
70769   $ $0 $@
70770
70771 on `(hostname || uname -n) 2>/dev/null | sed 1q`
70772 "
70773
70774 _ACEOF
70775
70776 case $ac_config_files in *"
70777 "*) set x $ac_config_files; shift; ac_config_files=$*;;
70778 esac
70779
70780 case $ac_config_headers in *"
70781 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
70782 esac
70783
70784
70785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
70786 # Files that config.status was made for.
70787 config_files="$ac_config_files"
70788 config_headers="$ac_config_headers"
70789 config_commands="$ac_config_commands"
70790
70791 _ACEOF
70792
70793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
70794 ac_cs_usage="\
70795 \`$as_me' instantiates files from templates according to the
70796 current configuration.
70797
70798 Usage: $0 [OPTION]... [FILE]...
70799
70800   -h, --help       print this help, then exit
70801   -V, --version    print version number and configuration settings, then exit
70802   -q, --quiet, --silent
70803                    do not print progress messages
70804   -d, --debug      don't remove temporary files
70805       --recheck    update $as_me by reconfiguring in the same conditions
70806       --file=FILE[:TEMPLATE]
70807                    instantiate the configuration file FILE
70808       --header=FILE[:TEMPLATE]
70809                    instantiate the configuration header FILE
70810
70811 Configuration files:
70812 $config_files
70813
70814 Configuration headers:
70815 $config_headers
70816
70817 Configuration commands:
70818 $config_commands
70819
70820 Report bugs to <bug-autoconf@gnu.org>."
70821
70822 _ACEOF
70823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
70824 ac_cs_version="\\
70825 config.status
70826 configured by $0, generated by GNU Autoconf 2.63,
70827   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
70828
70829 Copyright (C) 2008 Free Software Foundation, Inc.
70830 This config.status script is free software; the Free Software Foundation
70831 gives unlimited permission to copy, distribute and modify it."
70832
70833 ac_pwd='$ac_pwd'
70834 srcdir='$srcdir'
70835 INSTALL='$INSTALL'
70836 MKDIR_P='$MKDIR_P'
70837 AWK='$AWK'
70838 test -n "\$AWK" || AWK=awk
70839 _ACEOF
70840
70841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
70842 # The default lists apply if the user does not specify any file.
70843 ac_need_defaults=:
70844 while test $# != 0
70845 do
70846   case $1 in
70847   --*=*)
70848     ac_option=`expr "X$1" : 'X\([^=]*\)='`
70849     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
70850     ac_shift=:
70851     ;;
70852   *)
70853     ac_option=$1
70854     ac_optarg=$2
70855     ac_shift=shift
70856     ;;
70857   esac
70858
70859   case $ac_option in
70860   # Handling of the options.
70861   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
70862     ac_cs_recheck=: ;;
70863   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
70864     $as_echo "$ac_cs_version"; exit ;;
70865   --debug | --debu | --deb | --de | --d | -d )
70866     debug=: ;;
70867   --file | --fil | --fi | --f )
70868     $ac_shift
70869     case $ac_optarg in
70870     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
70871     esac
70872     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
70873     ac_need_defaults=false;;
70874   --header | --heade | --head | --hea )
70875     $ac_shift
70876     case $ac_optarg in
70877     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
70878     esac
70879     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
70880     ac_need_defaults=false;;
70881   --he | --h)
70882     # Conflict between --help and --header
70883     { $as_echo "$as_me: error: ambiguous option: $1
70884 Try \`$0 --help' for more information." >&2
70885    { (exit 1); exit 1; }; };;
70886   --help | --hel | -h )
70887     $as_echo "$ac_cs_usage"; exit ;;
70888   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
70889   | -silent | --silent | --silen | --sile | --sil | --si | --s)
70890     ac_cs_silent=: ;;
70891
70892   # This is an error.
70893   -*) { $as_echo "$as_me: error: unrecognized option: $1
70894 Try \`$0 --help' for more information." >&2
70895    { (exit 1); exit 1; }; } ;;
70896
70897   *) ac_config_targets="$ac_config_targets $1"
70898      ac_need_defaults=false ;;
70899
70900   esac
70901   shift
70902 done
70903
70904 ac_configure_extra_args=
70905
70906 if $ac_cs_silent; then
70907   exec 6>/dev/null
70908   ac_configure_extra_args="$ac_configure_extra_args --silent"
70909 fi
70910
70911 _ACEOF
70912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
70913 if \$ac_cs_recheck; then
70914   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
70915   shift
70916   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
70917   CONFIG_SHELL='$SHELL'
70918   export CONFIG_SHELL
70919   exec "\$@"
70920 fi
70921
70922 _ACEOF
70923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
70924 exec 5>>config.log
70925 {
70926   echo
70927   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
70928 ## Running $as_me. ##
70929 _ASBOX
70930   $as_echo "$ac_log"
70931 } >&5
70932
70933 _ACEOF
70934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
70935 #
70936 # INIT-COMMANDS
70937 #
70938 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
70939 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
70940     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
70941     # from automake < 1.5.
70942     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
70943     # Capture the value of LINGUAS because we need it to compute CATALOGS.
70944     LINGUAS="${LINGUAS-%UNSET%}"
70945
70946
70947
70948 # The HP-UX ksh and POSIX shell print the target directory to stdout
70949 # if CDPATH is set.
70950 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
70951
70952 sed_quote_subst='$sed_quote_subst'
70953 double_quote_subst='$double_quote_subst'
70954 delay_variable_subst='$delay_variable_subst'
70955 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
70956 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
70957 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
70958 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
70959 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
70960 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
70961 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
70962 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
70963 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
70964 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
70965 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
70966 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
70967 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
70968 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
70969 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
70970 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
70971 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
70972 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
70973 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
70974 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
70975 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
70976 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
70977 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
70978 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
70979 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
70980 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
70981 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
70982 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
70983 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
70984 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
70985 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
70986 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
70987 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
70988 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
70989 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
70990 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
70991 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
70992 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
70993 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
70994 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
70995 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
70996 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
70997 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
70998 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
70999 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
71000 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
71001 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
71002 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
71003 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
71004 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
71005 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
71006 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
71007 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
71008 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
71009 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
71010 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
71011 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
71012 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
71013 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
71014 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
71015 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
71016 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
71017 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
71018 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
71019 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
71020 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
71021 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
71022 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
71023 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
71024 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
71025 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
71026 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
71027 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
71028 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
71029 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
71030 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
71031 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
71032 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
71033 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
71034 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
71035 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
71036 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
71037 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
71038 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
71039 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
71040 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
71041 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
71042 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
71043 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
71044 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
71045 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
71046 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
71047 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
71048 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
71049 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
71050 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
71051 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
71052 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
71053 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
71054 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
71055 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
71056 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
71057 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
71058 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
71059 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
71060 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
71061 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
71062 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
71063 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
71064 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
71065 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
71066 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
71067 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
71068 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
71069 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
71070 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
71071 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
71072
71073 LTCC='$LTCC'
71074 LTCFLAGS='$LTCFLAGS'
71075 compiler='$compiler_DEFAULT'
71076
71077 # Quote evaled strings.
71078 for var in SED \
71079 GREP \
71080 EGREP \
71081 FGREP \
71082 LD \
71083 NM \
71084 LN_S \
71085 lt_SP2NL \
71086 lt_NL2SP \
71087 reload_flag \
71088 deplibs_check_method \
71089 file_magic_cmd \
71090 AR \
71091 AR_FLAGS \
71092 STRIP \
71093 RANLIB \
71094 CC \
71095 CFLAGS \
71096 compiler \
71097 lt_cv_sys_global_symbol_pipe \
71098 lt_cv_sys_global_symbol_to_cdecl \
71099 lt_cv_sys_global_symbol_to_c_name_address \
71100 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
71101 SHELL \
71102 ECHO \
71103 lt_prog_compiler_no_builtin_flag \
71104 lt_prog_compiler_wl \
71105 lt_prog_compiler_pic \
71106 lt_prog_compiler_static \
71107 lt_cv_prog_compiler_c_o \
71108 need_locks \
71109 DSYMUTIL \
71110 NMEDIT \
71111 LIPO \
71112 OTOOL \
71113 OTOOL64 \
71114 shrext_cmds \
71115 export_dynamic_flag_spec \
71116 whole_archive_flag_spec \
71117 compiler_needs_object \
71118 with_gnu_ld \
71119 allow_undefined_flag \
71120 no_undefined_flag \
71121 hardcode_libdir_flag_spec \
71122 hardcode_libdir_flag_spec_ld \
71123 hardcode_libdir_separator \
71124 fix_srcfile_path \
71125 exclude_expsyms \
71126 include_expsyms \
71127 file_list_spec \
71128 variables_saved_for_relink \
71129 libname_spec \
71130 library_names_spec \
71131 soname_spec \
71132 finish_eval \
71133 old_striplib \
71134 striplib; do
71135     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
71136     *[\\\\\\\`\\"\\\$]*)
71137       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
71138       ;;
71139     *)
71140       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
71141       ;;
71142     esac
71143 done
71144
71145 # Double-quote double-evaled strings.
71146 for var in reload_cmds \
71147 old_postinstall_cmds \
71148 old_postuninstall_cmds \
71149 old_archive_cmds \
71150 extract_expsyms_cmds \
71151 old_archive_from_new_cmds \
71152 old_archive_from_expsyms_cmds \
71153 archive_cmds \
71154 archive_expsym_cmds \
71155 module_cmds \
71156 module_expsym_cmds \
71157 export_symbols_cmds \
71158 prelink_cmds \
71159 postinstall_cmds \
71160 postuninstall_cmds \
71161 finish_cmds \
71162 sys_lib_search_path_spec \
71163 sys_lib_dlsearch_path_spec; do
71164     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
71165     *[\\\\\\\`\\"\\\$]*)
71166       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
71167       ;;
71168     *)
71169       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
71170       ;;
71171     esac
71172 done
71173
71174 # Fix-up fallback echo if it was mangled by the above quoting rules.
71175 case \$lt_ECHO in
71176 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
71177   ;;
71178 esac
71179
71180 ac_aux_dir='$ac_aux_dir'
71181 xsi_shell='$xsi_shell'
71182 lt_shell_append='$lt_shell_append'
71183
71184 # See if we are running on zsh, and set the options which allow our
71185 # commands through without removal of \ escapes INIT.
71186 if test -n "\${ZSH_VERSION+set}" ; then
71187    setopt NO_GLOB_SUBST
71188 fi
71189
71190
71191     PACKAGE='$PACKAGE'
71192     VERSION='$VERSION'
71193     TIMESTAMP='$TIMESTAMP'
71194     RM='$RM'
71195     ofile='$ofile'
71196
71197
71198
71199
71200 _ACEOF
71201
71202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
71203
71204 # Handling of arguments.
71205 for ac_config_target in $ac_config_targets
71206 do
71207   case $ac_config_target in
71208     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
71209     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
71210     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
71211     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
71212     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
71213     "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
71214     "amar-src/Makefile") CONFIG_FILES="$CONFIG_FILES amar-src/Makefile" ;;
71215     "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
71216     "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
71217     "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
71218     "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
71219     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
71220     "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
71221     "application-src/Makefile") CONFIG_FILES="$CONFIG_FILES application-src/Makefile" ;;
71222     "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
71223     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
71224     "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
71225     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
71226     "ndmp-src/Makefile") CONFIG_FILES="$CONFIG_FILES ndmp-src/Makefile" ;;
71227     "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
71228     "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
71229     "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
71230     "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
71231     "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
71232     "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
71233     "xfer-src/Makefile") CONFIG_FILES="$CONFIG_FILES xfer-src/Makefile" ;;
71234
71235   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
71236 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
71237    { (exit 1); exit 1; }; };;
71238   esac
71239 done
71240
71241
71242 # If the user did not use the arguments to specify the items to instantiate,
71243 # then the envvar interface is used.  Set only those that are not.
71244 # We use the long form for the default assignment because of an extremely
71245 # bizarre bug on SunOS 4.1.3.
71246 if $ac_need_defaults; then
71247   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
71248   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
71249   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
71250 fi
71251
71252 # Have a temporary directory for convenience.  Make it in the build tree
71253 # simply because there is no reason against having it here, and in addition,
71254 # creating and moving files from /tmp can sometimes cause problems.
71255 # Hook for its removal unless debugging.
71256 # Note that there is a small window in which the directory will not be cleaned:
71257 # after its creation but before its name has been assigned to `$tmp'.
71258 $debug ||
71259 {
71260   tmp=
71261   trap 'exit_status=$?
71262   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
71263 ' 0
71264   trap '{ (exit 1); exit 1; }' 1 2 13 15
71265 }
71266 # Create a (secure) tmp directory for tmp files.
71267
71268 {
71269   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
71270   test -n "$tmp" && test -d "$tmp"
71271 }  ||
71272 {
71273   tmp=./conf$$-$RANDOM
71274   (umask 077 && mkdir "$tmp")
71275 } ||
71276 {
71277    $as_echo "$as_me: cannot create a temporary directory in ." >&2
71278    { (exit 1); exit 1; }
71279 }
71280
71281 # Set up the scripts for CONFIG_FILES section.
71282 # No need to generate them if there are no CONFIG_FILES.
71283 # This happens for instance with `./config.status config.h'.
71284 if test -n "$CONFIG_FILES"; then
71285
71286
71287 ac_cr='\r'
71288 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
71289 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
71290   ac_cs_awk_cr='\\r'
71291 else
71292   ac_cs_awk_cr=$ac_cr
71293 fi
71294
71295 echo 'BEGIN {' >"$tmp/subs1.awk" &&
71296 _ACEOF
71297
71298
71299 {
71300   echo "cat >conf$$subs.awk <<_ACEOF" &&
71301   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
71302   echo "_ACEOF"
71303 } >conf$$subs.sh ||
71304   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
71305 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
71306    { (exit 1); exit 1; }; }
71307 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
71308 ac_delim='%!_!# '
71309 for ac_last_try in false false false false false :; do
71310   . ./conf$$subs.sh ||
71311     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
71312 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
71313    { (exit 1); exit 1; }; }
71314
71315   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
71316   if test $ac_delim_n = $ac_delim_num; then
71317     break
71318   elif $ac_last_try; then
71319     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
71320 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
71321    { (exit 1); exit 1; }; }
71322   else
71323     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
71324   fi
71325 done
71326 rm -f conf$$subs.sh
71327
71328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
71329 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
71330 _ACEOF
71331 sed -n '
71332 h
71333 s/^/S["/; s/!.*/"]=/
71334 p
71335 g
71336 s/^[^!]*!//
71337 :repl
71338 t repl
71339 s/'"$ac_delim"'$//
71340 t delim
71341 :nl
71342 h
71343 s/\(.\{148\}\).*/\1/
71344 t more1
71345 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
71346 p
71347 n
71348 b repl
71349 :more1
71350 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
71351 p
71352 g
71353 s/.\{148\}//
71354 t nl
71355 :delim
71356 h
71357 s/\(.\{148\}\).*/\1/
71358 t more2
71359 s/["\\]/\\&/g; s/^/"/; s/$/"/
71360 p
71361 b
71362 :more2
71363 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
71364 p
71365 g
71366 s/.\{148\}//
71367 t delim
71368 ' <conf$$subs.awk | sed '
71369 /^[^""]/{
71370   N
71371   s/\n//
71372 }
71373 ' >>$CONFIG_STATUS || ac_write_fail=1
71374 rm -f conf$$subs.awk
71375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
71376 _ACAWK
71377 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
71378   for (key in S) S_is_set[key] = 1
71379   FS = "\a"
71380
71381 }
71382 {
71383   line = $ 0
71384   nfields = split(line, field, "@")
71385   substed = 0
71386   len = length(field[1])
71387   for (i = 2; i < nfields; i++) {
71388     key = field[i]
71389     keylen = length(key)
71390     if (S_is_set[key]) {
71391       value = S[key]
71392       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
71393       len += length(value) + length(field[++i])
71394       substed = 1
71395     } else
71396       len += 1 + keylen
71397   }
71398
71399   print line
71400 }
71401
71402 _ACAWK
71403 _ACEOF
71404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
71405 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
71406   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
71407 else
71408   cat
71409 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
71410   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
71411 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
71412    { (exit 1); exit 1; }; }
71413 _ACEOF
71414
71415 # VPATH may cause trouble with some makes, so we remove $(srcdir),
71416 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
71417 # trailing colons and then remove the whole line if VPATH becomes empty
71418 # (actually we leave an empty line to preserve line numbers).
71419 if test "x$srcdir" = x.; then
71420   ac_vpsub='/^[  ]*VPATH[        ]*=/{
71421 s/:*\$(srcdir):*/:/
71422 s/:*\${srcdir}:*/:/
71423 s/:*@srcdir@:*/:/
71424 s/^\([^=]*=[     ]*\):*/\1/
71425 s/:*$//
71426 s/^[^=]*=[       ]*$//
71427 }'
71428 fi
71429
71430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
71431 fi # test -n "$CONFIG_FILES"
71432
71433 # Set up the scripts for CONFIG_HEADERS section.
71434 # No need to generate them if there are no CONFIG_HEADERS.
71435 # This happens for instance with `./config.status Makefile'.
71436 if test -n "$CONFIG_HEADERS"; then
71437 cat >"$tmp/defines.awk" <<\_ACAWK ||
71438 BEGIN {
71439 _ACEOF
71440
71441 # Transform confdefs.h into an awk script `defines.awk', embedded as
71442 # here-document in config.status, that substitutes the proper values into
71443 # config.h.in to produce config.h.
71444
71445 # Create a delimiter string that does not exist in confdefs.h, to ease
71446 # handling of long lines.
71447 ac_delim='%!_!# '
71448 for ac_last_try in false false :; do
71449   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
71450   if test -z "$ac_t"; then
71451     break
71452   elif $ac_last_try; then
71453     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
71454 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
71455    { (exit 1); exit 1; }; }
71456   else
71457     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
71458   fi
71459 done
71460
71461 # For the awk script, D is an array of macro values keyed by name,
71462 # likewise P contains macro parameters if any.  Preserve backslash
71463 # newline sequences.
71464
71465 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
71466 sed -n '
71467 s/.\{148\}/&'"$ac_delim"'/g
71468 t rset
71469 :rset
71470 s/^[     ]*#[    ]*define[       ][      ]*/ /
71471 t def
71472 d
71473 :def
71474 s/\\$//
71475 t bsnl
71476 s/["\\]/\\&/g
71477 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
71478 D["\1"]=" \3"/p
71479 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
71480 d
71481 :bsnl
71482 s/["\\]/\\&/g
71483 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
71484 D["\1"]=" \3\\\\\\n"\\/p
71485 t cont
71486 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
71487 t cont
71488 d
71489 :cont
71490 n
71491 s/.\{148\}/&'"$ac_delim"'/g
71492 t clear
71493 :clear
71494 s/\\$//
71495 t bsnlc
71496 s/["\\]/\\&/g; s/^/"/; s/$/"/p
71497 d
71498 :bsnlc
71499 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
71500 b cont
71501 ' <confdefs.h | sed '
71502 s/'"$ac_delim"'/"\\\
71503 "/g' >>$CONFIG_STATUS || ac_write_fail=1
71504
71505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
71506   for (key in D) D_is_set[key] = 1
71507   FS = "\a"
71508 }
71509 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
71510   line = \$ 0
71511   split(line, arg, " ")
71512   if (arg[1] == "#") {
71513     defundef = arg[2]
71514     mac1 = arg[3]
71515   } else {
71516     defundef = substr(arg[1], 2)
71517     mac1 = arg[2]
71518   }
71519   split(mac1, mac2, "(") #)
71520   macro = mac2[1]
71521   prefix = substr(line, 1, index(line, defundef) - 1)
71522   if (D_is_set[macro]) {
71523     # Preserve the white space surrounding the "#".
71524     print prefix "define", macro P[macro] D[macro]
71525     next
71526   } else {
71527     # Replace #undef with comments.  This is necessary, for example,
71528     # in the case of _POSIX_SOURCE, which is predefined and required
71529     # on some systems where configure will not decide to define it.
71530     if (defundef == "undef") {
71531       print "/*", prefix defundef, macro, "*/"
71532       next
71533     }
71534   }
71535 }
71536 { print }
71537 _ACAWK
71538 _ACEOF
71539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
71540   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
71541 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
71542    { (exit 1); exit 1; }; }
71543 fi # test -n "$CONFIG_HEADERS"
71544
71545
71546 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
71547 shift
71548 for ac_tag
71549 do
71550   case $ac_tag in
71551   :[FHLC]) ac_mode=$ac_tag; continue;;
71552   esac
71553   case $ac_mode$ac_tag in
71554   :[FHL]*:*);;
71555   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
71556 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
71557    { (exit 1); exit 1; }; };;
71558   :[FH]-) ac_tag=-:-;;
71559   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
71560   esac
71561   ac_save_IFS=$IFS
71562   IFS=:
71563   set x $ac_tag
71564   IFS=$ac_save_IFS
71565   shift
71566   ac_file=$1
71567   shift
71568
71569   case $ac_mode in
71570   :L) ac_source=$1;;
71571   :[FH])
71572     ac_file_inputs=
71573     for ac_f
71574     do
71575       case $ac_f in
71576       -) ac_f="$tmp/stdin";;
71577       *) # Look for the file first in the build tree, then in the source tree
71578          # (if the path is not absolute).  The absolute path cannot be DOS-style,
71579          # because $ac_f cannot contain `:'.
71580          test -f "$ac_f" ||
71581            case $ac_f in
71582            [\\/$]*) false;;
71583            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
71584            esac ||
71585            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
71586 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
71587    { (exit 1); exit 1; }; };;
71588       esac
71589       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
71590       ac_file_inputs="$ac_file_inputs '$ac_f'"
71591     done
71592
71593     # Let's still pretend it is `configure' which instantiates (i.e., don't
71594     # use $as_me), people would be surprised to read:
71595     #    /* config.h.  Generated by config.status.  */
71596     configure_input='Generated from '`
71597           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
71598         `' by configure.'
71599     if test x"$ac_file" != x-; then
71600       configure_input="$ac_file.  $configure_input"
71601       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
71602 $as_echo "$as_me: creating $ac_file" >&6;}
71603     fi
71604     # Neutralize special characters interpreted by sed in replacement strings.
71605     case $configure_input in #(
71606     *\&* | *\|* | *\\* )
71607        ac_sed_conf_input=`$as_echo "$configure_input" |
71608        sed 's/[\\\\&|]/\\\\&/g'`;; #(
71609     *) ac_sed_conf_input=$configure_input;;
71610     esac
71611
71612     case $ac_tag in
71613     *:-:* | *:-) cat >"$tmp/stdin" \
71614       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
71615 $as_echo "$as_me: error: could not create $ac_file" >&2;}
71616    { (exit 1); exit 1; }; } ;;
71617     esac
71618     ;;
71619   esac
71620
71621   ac_dir=`$as_dirname -- "$ac_file" ||
71622 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
71623          X"$ac_file" : 'X\(//\)[^/]' \| \
71624          X"$ac_file" : 'X\(//\)$' \| \
71625          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
71626 $as_echo X"$ac_file" |
71627     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
71628             s//\1/
71629             q
71630           }
71631           /^X\(\/\/\)[^/].*/{
71632             s//\1/
71633             q
71634           }
71635           /^X\(\/\/\)$/{
71636             s//\1/
71637             q
71638           }
71639           /^X\(\/\).*/{
71640             s//\1/
71641             q
71642           }
71643           s/.*/./; q'`
71644   { as_dir="$ac_dir"
71645   case $as_dir in #(
71646   -*) as_dir=./$as_dir;;
71647   esac
71648   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
71649     as_dirs=
71650     while :; do
71651       case $as_dir in #(
71652       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
71653       *) as_qdir=$as_dir;;
71654       esac
71655       as_dirs="'$as_qdir' $as_dirs"
71656       as_dir=`$as_dirname -- "$as_dir" ||
71657 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
71658          X"$as_dir" : 'X\(//\)[^/]' \| \
71659          X"$as_dir" : 'X\(//\)$' \| \
71660          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
71661 $as_echo X"$as_dir" |
71662     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
71663             s//\1/
71664             q
71665           }
71666           /^X\(\/\/\)[^/].*/{
71667             s//\1/
71668             q
71669           }
71670           /^X\(\/\/\)$/{
71671             s//\1/
71672             q
71673           }
71674           /^X\(\/\).*/{
71675             s//\1/
71676             q
71677           }
71678           s/.*/./; q'`
71679       test -d "$as_dir" && break
71680     done
71681     test -z "$as_dirs" || eval "mkdir $as_dirs"
71682   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
71683 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
71684    { (exit 1); exit 1; }; }; }
71685   ac_builddir=.
71686
71687 case "$ac_dir" in
71688 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
71689 *)
71690   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
71691   # A ".." for each directory in $ac_dir_suffix.
71692   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
71693   case $ac_top_builddir_sub in
71694   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
71695   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
71696   esac ;;
71697 esac
71698 ac_abs_top_builddir=$ac_pwd
71699 ac_abs_builddir=$ac_pwd$ac_dir_suffix
71700 # for backward compatibility:
71701 ac_top_builddir=$ac_top_build_prefix
71702
71703 case $srcdir in
71704   .)  # We are building in place.
71705     ac_srcdir=.
71706     ac_top_srcdir=$ac_top_builddir_sub
71707     ac_abs_top_srcdir=$ac_pwd ;;
71708   [\\/]* | ?:[\\/]* )  # Absolute name.
71709     ac_srcdir=$srcdir$ac_dir_suffix;
71710     ac_top_srcdir=$srcdir
71711     ac_abs_top_srcdir=$srcdir ;;
71712   *) # Relative name.
71713     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
71714     ac_top_srcdir=$ac_top_build_prefix$srcdir
71715     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
71716 esac
71717 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
71718
71719
71720   case $ac_mode in
71721   :F)
71722   #
71723   # CONFIG_FILE
71724   #
71725
71726   case $INSTALL in
71727   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
71728   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
71729   esac
71730   ac_MKDIR_P=$MKDIR_P
71731   case $MKDIR_P in
71732   [\\/$]* | ?:[\\/]* ) ;;
71733   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
71734   esac
71735 _ACEOF
71736
71737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
71738 # If the template does not know about datarootdir, expand it.
71739 # FIXME: This hack should be removed a few years after 2.60.
71740 ac_datarootdir_hack=; ac_datarootdir_seen=
71741
71742 ac_sed_dataroot='
71743 /datarootdir/ {
71744   p
71745   q
71746 }
71747 /@datadir@/p
71748 /@docdir@/p
71749 /@infodir@/p
71750 /@localedir@/p
71751 /@mandir@/p
71752 '
71753 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
71754 *datarootdir*) ac_datarootdir_seen=yes;;
71755 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
71756   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
71757 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
71758 _ACEOF
71759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
71760   ac_datarootdir_hack='
71761   s&@datadir@&$datadir&g
71762   s&@docdir@&$docdir&g
71763   s&@infodir@&$infodir&g
71764   s&@localedir@&$localedir&g
71765   s&@mandir@&$mandir&g
71766     s&\\\${datarootdir}&$datarootdir&g' ;;
71767 esac
71768 _ACEOF
71769
71770 # Neutralize VPATH when `$srcdir' = `.'.
71771 # Shell code in configure.ac might set extrasub.
71772 # FIXME: do we really want to maintain this feature?
71773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
71774 ac_sed_extra="$ac_vpsub
71775 $extrasub
71776 _ACEOF
71777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
71778 :t
71779 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
71780 s|@configure_input@|$ac_sed_conf_input|;t t
71781 s&@top_builddir@&$ac_top_builddir_sub&;t t
71782 s&@top_build_prefix@&$ac_top_build_prefix&;t t
71783 s&@srcdir@&$ac_srcdir&;t t
71784 s&@abs_srcdir@&$ac_abs_srcdir&;t t
71785 s&@top_srcdir@&$ac_top_srcdir&;t t
71786 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
71787 s&@builddir@&$ac_builddir&;t t
71788 s&@abs_builddir@&$ac_abs_builddir&;t t
71789 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
71790 s&@INSTALL@&$ac_INSTALL&;t t
71791 s&@MKDIR_P@&$ac_MKDIR_P&;t t
71792 $ac_datarootdir_hack
71793 "
71794 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
71795   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
71796 $as_echo "$as_me: error: could not create $ac_file" >&2;}
71797    { (exit 1); exit 1; }; }
71798
71799 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
71800   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
71801   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
71802   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
71803 which seems to be undefined.  Please make sure it is defined." >&5
71804 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
71805 which seems to be undefined.  Please make sure it is defined." >&2;}
71806
71807   rm -f "$tmp/stdin"
71808   case $ac_file in
71809   -) cat "$tmp/out" && rm -f "$tmp/out";;
71810   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
71811   esac \
71812   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
71813 $as_echo "$as_me: error: could not create $ac_file" >&2;}
71814    { (exit 1); exit 1; }; }
71815  ;;
71816   :H)
71817   #
71818   # CONFIG_HEADER
71819   #
71820   if test x"$ac_file" != x-; then
71821     {
71822       $as_echo "/* $configure_input  */" \
71823       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
71824     } >"$tmp/config.h" \
71825       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
71826 $as_echo "$as_me: error: could not create $ac_file" >&2;}
71827    { (exit 1); exit 1; }; }
71828     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
71829       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
71830 $as_echo "$as_me: $ac_file is unchanged" >&6;}
71831     else
71832       rm -f "$ac_file"
71833       mv "$tmp/config.h" "$ac_file" \
71834         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
71835 $as_echo "$as_me: error: could not create $ac_file" >&2;}
71836    { (exit 1); exit 1; }; }
71837     fi
71838   else
71839     $as_echo "/* $configure_input  */" \
71840       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
71841       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
71842 $as_echo "$as_me: error: could not create -" >&2;}
71843    { (exit 1); exit 1; }; }
71844   fi
71845 # Compute "$ac_file"'s index in $config_headers.
71846 _am_arg="$ac_file"
71847 _am_stamp_count=1
71848 for _am_header in $config_headers :; do
71849   case $_am_header in
71850     $_am_arg | $_am_arg:* )
71851       break ;;
71852     * )
71853       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
71854   esac
71855 done
71856 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
71857 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
71858          X"$_am_arg" : 'X\(//\)[^/]' \| \
71859          X"$_am_arg" : 'X\(//\)$' \| \
71860          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
71861 $as_echo X"$_am_arg" |
71862     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
71863             s//\1/
71864             q
71865           }
71866           /^X\(\/\/\)[^/].*/{
71867             s//\1/
71868             q
71869           }
71870           /^X\(\/\/\)$/{
71871             s//\1/
71872             q
71873           }
71874           /^X\(\/\).*/{
71875             s//\1/
71876             q
71877           }
71878           s/.*/./; q'`/stamp-h$_am_stamp_count
71879  ;;
71880
71881   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
71882 $as_echo "$as_me: executing $ac_file commands" >&6;}
71883  ;;
71884   esac
71885
71886
71887   case $ac_file$ac_mode in
71888     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
71889   # Autoconf 2.62 quotes --file arguments for eval, but not when files
71890   # are listed without --file.  Let's play safe and only enable the eval
71891   # if we detect the quoting.
71892   case $CONFIG_FILES in
71893   *\'*) eval set x "$CONFIG_FILES" ;;
71894   *)   set x $CONFIG_FILES ;;
71895   esac
71896   shift
71897   for mf
71898   do
71899     # Strip MF so we end up with the name of the file.
71900     mf=`echo "$mf" | sed -e 's/:.*$//'`
71901     # Check whether this is an Automake generated Makefile or not.
71902     # We used to match only the files named `Makefile.in', but
71903     # some people rename them; so instead we look at the file content.
71904     # Grep'ing the first line is not enough: some people post-process
71905     # each Makefile.in and add a new line on top of each file to say so.
71906     # Grep'ing the whole file is not good either: AIX grep has a line
71907     # limit of 2048, but all sed's we know have understand at least 4000.
71908     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
71909       dirpart=`$as_dirname -- "$mf" ||
71910 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
71911          X"$mf" : 'X\(//\)[^/]' \| \
71912          X"$mf" : 'X\(//\)$' \| \
71913          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
71914 $as_echo X"$mf" |
71915     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
71916             s//\1/
71917             q
71918           }
71919           /^X\(\/\/\)[^/].*/{
71920             s//\1/
71921             q
71922           }
71923           /^X\(\/\/\)$/{
71924             s//\1/
71925             q
71926           }
71927           /^X\(\/\).*/{
71928             s//\1/
71929             q
71930           }
71931           s/.*/./; q'`
71932     else
71933       continue
71934     fi
71935     # Extract the definition of DEPDIR, am__include, and am__quote
71936     # from the Makefile without running `make'.
71937     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
71938     test -z "$DEPDIR" && continue
71939     am__include=`sed -n 's/^am__include = //p' < "$mf"`
71940     test -z "am__include" && continue
71941     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
71942     # When using ansi2knr, U may be empty or an underscore; expand it
71943     U=`sed -n 's/^U = //p' < "$mf"`
71944     # Find all dependency output files, they are included files with
71945     # $(DEPDIR) in their names.  We invoke sed twice because it is the
71946     # simplest approach to changing $(DEPDIR) to its actual value in the
71947     # expansion.
71948     for file in `sed -n "
71949       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
71950          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
71951       # Make sure the directory exists.
71952       test -f "$dirpart/$file" && continue
71953       fdir=`$as_dirname -- "$file" ||
71954 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
71955          X"$file" : 'X\(//\)[^/]' \| \
71956          X"$file" : 'X\(//\)$' \| \
71957          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
71958 $as_echo X"$file" |
71959     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
71960             s//\1/
71961             q
71962           }
71963           /^X\(\/\/\)[^/].*/{
71964             s//\1/
71965             q
71966           }
71967           /^X\(\/\/\)$/{
71968             s//\1/
71969             q
71970           }
71971           /^X\(\/\).*/{
71972             s//\1/
71973             q
71974           }
71975           s/.*/./; q'`
71976       { as_dir=$dirpart/$fdir
71977   case $as_dir in #(
71978   -*) as_dir=./$as_dir;;
71979   esac
71980   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
71981     as_dirs=
71982     while :; do
71983       case $as_dir in #(
71984       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
71985       *) as_qdir=$as_dir;;
71986       esac
71987       as_dirs="'$as_qdir' $as_dirs"
71988       as_dir=`$as_dirname -- "$as_dir" ||
71989 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
71990          X"$as_dir" : 'X\(//\)[^/]' \| \
71991          X"$as_dir" : 'X\(//\)$' \| \
71992          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
71993 $as_echo X"$as_dir" |
71994     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
71995             s//\1/
71996             q
71997           }
71998           /^X\(\/\/\)[^/].*/{
71999             s//\1/
72000             q
72001           }
72002           /^X\(\/\/\)$/{
72003             s//\1/
72004             q
72005           }
72006           /^X\(\/\).*/{
72007             s//\1/
72008             q
72009           }
72010           s/.*/./; q'`
72011       test -d "$as_dir" && break
72012     done
72013     test -z "$as_dirs" || eval "mkdir $as_dirs"
72014   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
72015 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
72016    { (exit 1); exit 1; }; }; }
72017       # echo "creating $dirpart/$file"
72018       echo '# dummy' > "$dirpart/$file"
72019     done
72020   done
72021 }
72022  ;;
72023     "po-directories":C)
72024     for ac_file in $CONFIG_FILES; do
72025       # Support "outfile[:infile[:infile...]]"
72026       case "$ac_file" in
72027         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
72028       esac
72029       # PO directories have a Makefile.in generated from Makefile.in.in.
72030       case "$ac_file" in */Makefile.in)
72031         # Adjust a relative srcdir.
72032         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
72033         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
72034         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
72035         # In autoconf-2.13 it is called $ac_given_srcdir.
72036         # In autoconf-2.50 it is called $srcdir.
72037         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
72038         case "$ac_given_srcdir" in
72039           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
72040           /*) top_srcdir="$ac_given_srcdir" ;;
72041           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
72042         esac
72043         # Treat a directory as a PO directory if and only if it has a
72044         # POTFILES.in file. This allows packages to have multiple PO
72045         # directories under different names or in different locations.
72046         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
72047           rm -f "$ac_dir/POTFILES"
72048           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
72049           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
72050           POMAKEFILEDEPS="POTFILES.in"
72051           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
72052           # on $ac_dir but don't depend on user-specified configuration
72053           # parameters.
72054           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
72055             # The LINGUAS file contains the set of available languages.
72056             if test -n "$OBSOLETE_ALL_LINGUAS"; then
72057               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
72058             fi
72059             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
72060             # Hide the ALL_LINGUAS assigment from automake < 1.5.
72061             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
72062             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
72063           else
72064             # The set of available languages was given in configure.in.
72065             # Hide the ALL_LINGUAS assigment from automake < 1.5.
72066             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
72067           fi
72068           # Compute POFILES
72069           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
72070           # Compute UPDATEPOFILES
72071           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
72072           # Compute DUMMYPOFILES
72073           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
72074           # Compute GMOFILES
72075           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
72076           case "$ac_given_srcdir" in
72077             .) srcdirpre= ;;
72078             *) srcdirpre='$(srcdir)/' ;;
72079           esac
72080           POFILES=
72081           UPDATEPOFILES=
72082           DUMMYPOFILES=
72083           GMOFILES=
72084           for lang in $ALL_LINGUAS; do
72085             POFILES="$POFILES $srcdirpre$lang.po"
72086             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
72087             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
72088             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
72089           done
72090           # CATALOGS depends on both $ac_dir and the user's LINGUAS
72091           # environment variable.
72092           INST_LINGUAS=
72093           if test -n "$ALL_LINGUAS"; then
72094             for presentlang in $ALL_LINGUAS; do
72095               useit=no
72096               if test "%UNSET%" != "$LINGUAS"; then
72097                 desiredlanguages="$LINGUAS"
72098               else
72099                 desiredlanguages="$ALL_LINGUAS"
72100               fi
72101               for desiredlang in $desiredlanguages; do
72102                 # Use the presentlang catalog if desiredlang is
72103                 #   a. equal to presentlang, or
72104                 #   b. a variant of presentlang (because in this case,
72105                 #      presentlang can be used as a fallback for messages
72106                 #      which are not translated in the desiredlang catalog).
72107                 case "$desiredlang" in
72108                   "$presentlang"*) useit=yes;;
72109                 esac
72110               done
72111               if test $useit = yes; then
72112                 INST_LINGUAS="$INST_LINGUAS $presentlang"
72113               fi
72114             done
72115           fi
72116           CATALOGS=
72117           if test -n "$INST_LINGUAS"; then
72118             for lang in $INST_LINGUAS; do
72119               CATALOGS="$CATALOGS $lang.gmo"
72120             done
72121           fi
72122           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
72123           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"
72124           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
72125             if test -f "$f"; then
72126               case "$f" in
72127                 *.orig | *.bak | *~) ;;
72128                 *) cat "$f" >> "$ac_dir/Makefile" ;;
72129               esac
72130             fi
72131           done
72132         fi
72133         ;;
72134       esac
72135     done ;;
72136     "libtool":C)
72137
72138     # See if we are running on zsh, and set the options which allow our
72139     # commands through without removal of \ escapes.
72140     if test -n "${ZSH_VERSION+set}" ; then
72141       setopt NO_GLOB_SUBST
72142     fi
72143
72144     cfgfile="${ofile}T"
72145     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
72146     $RM "$cfgfile"
72147
72148     cat <<_LT_EOF >> "$cfgfile"
72149 #! $SHELL
72150
72151 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
72152 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
72153 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
72154 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
72155 #
72156 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
72157 #                 2006, 2007, 2008 Free Software Foundation, Inc.
72158 #   Written by Gordon Matzigkeit, 1996
72159 #
72160 #   This file is part of GNU Libtool.
72161 #
72162 # GNU Libtool is free software; you can redistribute it and/or
72163 # modify it under the terms of the GNU General Public License as
72164 # published by the Free Software Foundation; either version 2 of
72165 # the License, or (at your option) any later version.
72166 #
72167 # As a special exception to the GNU General Public License,
72168 # if you distribute this file as part of a program or library that
72169 # is built using GNU Libtool, you may include this file under the
72170 # same distribution terms that you use for the rest of that program.
72171 #
72172 # GNU Libtool is distributed in the hope that it will be useful,
72173 # but WITHOUT ANY WARRANTY; without even the implied warranty of
72174 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
72175 # GNU General Public License for more details.
72176 #
72177 # You should have received a copy of the GNU General Public License
72178 # along with GNU Libtool; see the file COPYING.  If not, a copy
72179 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
72180 # obtained by writing to the Free Software Foundation, Inc.,
72181 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
72182
72183
72184 # The names of the tagged configurations supported by this script.
72185 available_tags=""
72186
72187 # ### BEGIN LIBTOOL CONFIG
72188
72189 # Which release of libtool.m4 was used?
72190 macro_version=$macro_version
72191 macro_revision=$macro_revision
72192
72193 # Whether or not to build shared libraries.
72194 build_libtool_libs=$enable_shared
72195
72196 # Whether or not to build static libraries.
72197 build_old_libs=$enable_static
72198
72199 # What type of objects to build.
72200 pic_mode=$pic_mode
72201
72202 # Whether or not to optimize for fast installation.
72203 fast_install=$enable_fast_install
72204
72205 # The host system.
72206 host_alias=$host_alias
72207 host=$host
72208 host_os=$host_os
72209
72210 # The build system.
72211 build_alias=$build_alias
72212 build=$build
72213 build_os=$build_os
72214
72215 # A sed program that does not truncate output.
72216 SED=$lt_SED
72217
72218 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
72219 Xsed="\$SED -e 1s/^X//"
72220
72221 # A grep program that handles long lines.
72222 GREP=$lt_GREP
72223
72224 # An ERE matcher.
72225 EGREP=$lt_EGREP
72226
72227 # A literal string matcher.
72228 FGREP=$lt_FGREP
72229
72230 # A BSD- or MS-compatible name lister.
72231 NM=$lt_NM
72232
72233 # Whether we need soft or hard links.
72234 LN_S=$lt_LN_S
72235
72236 # What is the maximum length of a command?
72237 max_cmd_len=$max_cmd_len
72238
72239 # Object file suffix (normally "o").
72240 objext=$ac_objext
72241
72242 # Executable file suffix (normally "").
72243 exeext=$exeext
72244
72245 # whether the shell understands "unset".
72246 lt_unset=$lt_unset
72247
72248 # turn spaces into newlines.
72249 SP2NL=$lt_lt_SP2NL
72250
72251 # turn newlines into spaces.
72252 NL2SP=$lt_lt_NL2SP
72253
72254 # How to create reloadable object files.
72255 reload_flag=$lt_reload_flag
72256 reload_cmds=$lt_reload_cmds
72257
72258 # Method to check whether dependent libraries are shared objects.
72259 deplibs_check_method=$lt_deplibs_check_method
72260
72261 # Command to use when deplibs_check_method == "file_magic".
72262 file_magic_cmd=$lt_file_magic_cmd
72263
72264 # The archiver.
72265 AR=$lt_AR
72266 AR_FLAGS=$lt_AR_FLAGS
72267
72268 # A symbol stripping program.
72269 STRIP=$lt_STRIP
72270
72271 # Commands used to install an old-style archive.
72272 RANLIB=$lt_RANLIB
72273 old_postinstall_cmds=$lt_old_postinstall_cmds
72274 old_postuninstall_cmds=$lt_old_postuninstall_cmds
72275
72276 # A C compiler.
72277 LTCC=$lt_CC
72278
72279 # LTCC compiler flags.
72280 LTCFLAGS=$lt_CFLAGS
72281
72282 # Take the output of nm and produce a listing of raw symbols and C names.
72283 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
72284
72285 # Transform the output of nm in a proper C declaration.
72286 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
72287
72288 # Transform the output of nm in a C name address pair.
72289 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
72290
72291 # Transform the output of nm in a C name address pair when lib prefix is needed.
72292 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
72293
72294 # The name of the directory that contains temporary libtool files.
72295 objdir=$objdir
72296
72297 # Shell to use when invoking shell scripts.
72298 SHELL=$lt_SHELL
72299
72300 # An echo program that does not interpret backslashes.
72301 ECHO=$lt_ECHO
72302
72303 # Used to examine libraries when file_magic_cmd begins with "file".
72304 MAGIC_CMD=$MAGIC_CMD
72305
72306 # Must we lock files when doing compilation?
72307 need_locks=$lt_need_locks
72308
72309 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
72310 DSYMUTIL=$lt_DSYMUTIL
72311
72312 # Tool to change global to local symbols on Mac OS X.
72313 NMEDIT=$lt_NMEDIT
72314
72315 # Tool to manipulate fat objects and archives on Mac OS X.
72316 LIPO=$lt_LIPO
72317
72318 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
72319 OTOOL=$lt_OTOOL
72320
72321 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
72322 OTOOL64=$lt_OTOOL64
72323
72324 # Old archive suffix (normally "a").
72325 libext=$libext
72326
72327 # Shared library suffix (normally ".so").
72328 shrext_cmds=$lt_shrext_cmds
72329
72330 # The commands to extract the exported symbol list from a shared archive.
72331 extract_expsyms_cmds=$lt_extract_expsyms_cmds
72332
72333 # Variables whose values should be saved in libtool wrapper scripts and
72334 # restored at link time.
72335 variables_saved_for_relink=$lt_variables_saved_for_relink
72336
72337 # Do we need the "lib" prefix for modules?
72338 need_lib_prefix=$need_lib_prefix
72339
72340 # Do we need a version for libraries?
72341 need_version=$need_version
72342
72343 # Library versioning type.
72344 version_type=$version_type
72345
72346 # Shared library runtime path variable.
72347 runpath_var=$runpath_var
72348
72349 # Shared library path variable.
72350 shlibpath_var=$shlibpath_var
72351
72352 # Is shlibpath searched before the hard-coded library search path?
72353 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
72354
72355 # Format of library name prefix.
72356 libname_spec=$lt_libname_spec
72357
72358 # List of archive names.  First name is the real one, the rest are links.
72359 # The last name is the one that the linker finds with -lNAME
72360 library_names_spec=$lt_library_names_spec
72361
72362 # The coded name of the library, if different from the real name.
72363 soname_spec=$lt_soname_spec
72364
72365 # Command to use after installation of a shared archive.
72366 postinstall_cmds=$lt_postinstall_cmds
72367
72368 # Command to use after uninstallation of a shared archive.
72369 postuninstall_cmds=$lt_postuninstall_cmds
72370
72371 # Commands used to finish a libtool library installation in a directory.
72372 finish_cmds=$lt_finish_cmds
72373
72374 # As "finish_cmds", except a single script fragment to be evaled but
72375 # not shown.
72376 finish_eval=$lt_finish_eval
72377
72378 # Whether we should hardcode library paths into libraries.
72379 hardcode_into_libs=$hardcode_into_libs
72380
72381 # Compile-time system search path for libraries.
72382 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
72383
72384 # Run-time system search path for libraries.
72385 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
72386
72387 # Whether dlopen is supported.
72388 dlopen_support=$enable_dlopen
72389
72390 # Whether dlopen of programs is supported.
72391 dlopen_self=$enable_dlopen_self
72392
72393 # Whether dlopen of statically linked programs is supported.
72394 dlopen_self_static=$enable_dlopen_self_static
72395
72396 # Commands to strip libraries.
72397 old_striplib=$lt_old_striplib
72398 striplib=$lt_striplib
72399
72400
72401 # The linker used to build libraries.
72402 LD=$lt_LD
72403
72404 # Commands used to build an old-style archive.
72405 old_archive_cmds=$lt_old_archive_cmds
72406
72407 # A language specific compiler.
72408 CC=$lt_compiler
72409
72410 # Is the compiler the GNU compiler?
72411 with_gcc=$GCC
72412
72413 # Compiler flag to turn off builtin functions.
72414 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
72415
72416 # How to pass a linker flag through the compiler.
72417 wl=$lt_lt_prog_compiler_wl
72418
72419 # Additional compiler flags for building library objects.
72420 pic_flag=$lt_lt_prog_compiler_pic
72421
72422 # Compiler flag to prevent dynamic linking.
72423 link_static_flag=$lt_lt_prog_compiler_static
72424
72425 # Does compiler simultaneously support -c and -o options?
72426 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
72427
72428 # Whether or not to add -lc for building shared libraries.
72429 build_libtool_need_lc=$archive_cmds_need_lc
72430
72431 # Whether or not to disallow shared libs when runtime libs are static.
72432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
72433
72434 # Compiler flag to allow reflexive dlopens.
72435 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
72436
72437 # Compiler flag to generate shared objects directly from archives.
72438 whole_archive_flag_spec=$lt_whole_archive_flag_spec
72439
72440 # Whether the compiler copes with passing no objects directly.
72441 compiler_needs_object=$lt_compiler_needs_object
72442
72443 # Create an old-style archive from a shared archive.
72444 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
72445
72446 # Create a temporary old-style archive to link instead of a shared archive.
72447 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
72448
72449 # Commands used to build a shared archive.
72450 archive_cmds=$lt_archive_cmds
72451 archive_expsym_cmds=$lt_archive_expsym_cmds
72452
72453 # Commands used to build a loadable module if different from building
72454 # a shared archive.
72455 module_cmds=$lt_module_cmds
72456 module_expsym_cmds=$lt_module_expsym_cmds
72457
72458 # Whether we are building with GNU ld or not.
72459 with_gnu_ld=$lt_with_gnu_ld
72460
72461 # Flag that allows shared libraries with undefined symbols to be built.
72462 allow_undefined_flag=$lt_allow_undefined_flag
72463
72464 # Flag that enforces no undefined symbols.
72465 no_undefined_flag=$lt_no_undefined_flag
72466
72467 # Flag to hardcode \$libdir into a binary during linking.
72468 # This must work even if \$libdir does not exist
72469 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
72470
72471 # If ld is used when linking, flag to hardcode \$libdir into a binary
72472 # during linking.  This must work even if \$libdir does not exist.
72473 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
72474
72475 # Whether we need a single "-rpath" flag with a separated argument.
72476 hardcode_libdir_separator=$lt_hardcode_libdir_separator
72477
72478 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
72479 # DIR into the resulting binary.
72480 hardcode_direct=$hardcode_direct
72481
72482 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
72483 # DIR into the resulting binary and the resulting library dependency is
72484 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
72485 # library is relocated.
72486 hardcode_direct_absolute=$hardcode_direct_absolute
72487
72488 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
72489 # into the resulting binary.
72490 hardcode_minus_L=$hardcode_minus_L
72491
72492 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
72493 # into the resulting binary.
72494 hardcode_shlibpath_var=$hardcode_shlibpath_var
72495
72496 # Set to "yes" if building a shared library automatically hardcodes DIR
72497 # into the library and all subsequent libraries and executables linked
72498 # against it.
72499 hardcode_automatic=$hardcode_automatic
72500
72501 # Set to yes if linker adds runtime paths of dependent libraries
72502 # to runtime path list.
72503 inherit_rpath=$inherit_rpath
72504
72505 # Whether libtool must link a program against all its dependency libraries.
72506 link_all_deplibs=$link_all_deplibs
72507
72508 # Fix the shell variable \$srcfile for the compiler.
72509 fix_srcfile_path=$lt_fix_srcfile_path
72510
72511 # Set to "yes" if exported symbols are required.
72512 always_export_symbols=$always_export_symbols
72513
72514 # The commands to list exported symbols.
72515 export_symbols_cmds=$lt_export_symbols_cmds
72516
72517 # Symbols that should not be listed in the preloaded symbols.
72518 exclude_expsyms=$lt_exclude_expsyms
72519
72520 # Symbols that must always be exported.
72521 include_expsyms=$lt_include_expsyms
72522
72523 # Commands necessary for linking programs (against libraries) with templates.
72524 prelink_cmds=$lt_prelink_cmds
72525
72526 # Specify filename containing input files.
72527 file_list_spec=$lt_file_list_spec
72528
72529 # How to hardcode a shared library path into an executable.
72530 hardcode_action=$hardcode_action
72531
72532 # ### END LIBTOOL CONFIG
72533
72534 _LT_EOF
72535
72536   case $host_os in
72537   aix3*)
72538     cat <<\_LT_EOF >> "$cfgfile"
72539 # AIX sometimes has problems with the GCC collect2 program.  For some
72540 # reason, if we set the COLLECT_NAMES environment variable, the problems
72541 # vanish in a puff of smoke.
72542 if test "X${COLLECT_NAMES+set}" != Xset; then
72543   COLLECT_NAMES=
72544   export COLLECT_NAMES
72545 fi
72546 _LT_EOF
72547     ;;
72548   esac
72549
72550
72551 ltmain="$ac_aux_dir/ltmain.sh"
72552
72553
72554   # We use sed instead of cat because bash on DJGPP gets confused if
72555   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
72556   # text mode, it properly converts lines to CR/LF.  This bash problem
72557   # is reportedly fixed, but why not run on old versions too?
72558   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
72559     || (rm -f "$cfgfile"; exit 1)
72560
72561   case $xsi_shell in
72562   yes)
72563     cat << \_LT_EOF >> "$cfgfile"
72564
72565 # func_dirname file append nondir_replacement
72566 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
72567 # otherwise set result to NONDIR_REPLACEMENT.
72568 func_dirname ()
72569 {
72570   case ${1} in
72571     */*) func_dirname_result="${1%/*}${2}" ;;
72572     *  ) func_dirname_result="${3}" ;;
72573   esac
72574 }
72575
72576 # func_basename file
72577 func_basename ()
72578 {
72579   func_basename_result="${1##*/}"
72580 }
72581
72582 # func_dirname_and_basename file append nondir_replacement
72583 # perform func_basename and func_dirname in a single function
72584 # call:
72585 #   dirname:  Compute the dirname of FILE.  If nonempty,
72586 #             add APPEND to the result, otherwise set result
72587 #             to NONDIR_REPLACEMENT.
72588 #             value returned in "$func_dirname_result"
72589 #   basename: Compute filename of FILE.
72590 #             value retuned in "$func_basename_result"
72591 # Implementation must be kept synchronized with func_dirname
72592 # and func_basename. For efficiency, we do not delegate to
72593 # those functions but instead duplicate the functionality here.
72594 func_dirname_and_basename ()
72595 {
72596   case ${1} in
72597     */*) func_dirname_result="${1%/*}${2}" ;;
72598     *  ) func_dirname_result="${3}" ;;
72599   esac
72600   func_basename_result="${1##*/}"
72601 }
72602
72603 # func_stripname prefix suffix name
72604 # strip PREFIX and SUFFIX off of NAME.
72605 # PREFIX and SUFFIX must not contain globbing or regex special
72606 # characters, hashes, percent signs, but SUFFIX may contain a leading
72607 # dot (in which case that matches only a dot).
72608 func_stripname ()
72609 {
72610   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
72611   # positional parameters, so assign one to ordinary parameter first.
72612   func_stripname_result=${3}
72613   func_stripname_result=${func_stripname_result#"${1}"}
72614   func_stripname_result=${func_stripname_result%"${2}"}
72615 }
72616
72617 # func_opt_split
72618 func_opt_split ()
72619 {
72620   func_opt_split_opt=${1%%=*}
72621   func_opt_split_arg=${1#*=}
72622 }
72623
72624 # func_lo2o object
72625 func_lo2o ()
72626 {
72627   case ${1} in
72628     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
72629     *)    func_lo2o_result=${1} ;;
72630   esac
72631 }
72632
72633 # func_xform libobj-or-source
72634 func_xform ()
72635 {
72636   func_xform_result=${1%.*}.lo
72637 }
72638
72639 # func_arith arithmetic-term...
72640 func_arith ()
72641 {
72642   func_arith_result=$(( $* ))
72643 }
72644
72645 # func_len string
72646 # STRING may not start with a hyphen.
72647 func_len ()
72648 {
72649   func_len_result=${#1}
72650 }
72651
72652 _LT_EOF
72653     ;;
72654   *) # Bourne compatible functions.
72655     cat << \_LT_EOF >> "$cfgfile"
72656
72657 # func_dirname file append nondir_replacement
72658 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
72659 # otherwise set result to NONDIR_REPLACEMENT.
72660 func_dirname ()
72661 {
72662   # Extract subdirectory from the argument.
72663   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
72664   if test "X$func_dirname_result" = "X${1}"; then
72665     func_dirname_result="${3}"
72666   else
72667     func_dirname_result="$func_dirname_result${2}"
72668   fi
72669 }
72670
72671 # func_basename file
72672 func_basename ()
72673 {
72674   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
72675 }
72676
72677
72678 # func_stripname prefix suffix name
72679 # strip PREFIX and SUFFIX off of NAME.
72680 # PREFIX and SUFFIX must not contain globbing or regex special
72681 # characters, hashes, percent signs, but SUFFIX may contain a leading
72682 # dot (in which case that matches only a dot).
72683 # func_strip_suffix prefix name
72684 func_stripname ()
72685 {
72686   case ${2} in
72687     .*) func_stripname_result=`$ECHO "X${3}" \
72688            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
72689     *)  func_stripname_result=`$ECHO "X${3}" \
72690            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
72691   esac
72692 }
72693
72694 # sed scripts:
72695 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
72696 my_sed_long_arg='1s/^-[^=]*=//'
72697
72698 # func_opt_split
72699 func_opt_split ()
72700 {
72701   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
72702   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
72703 }
72704
72705 # func_lo2o object
72706 func_lo2o ()
72707 {
72708   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
72709 }
72710
72711 # func_xform libobj-or-source
72712 func_xform ()
72713 {
72714   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
72715 }
72716
72717 # func_arith arithmetic-term...
72718 func_arith ()
72719 {
72720   func_arith_result=`expr "$@"`
72721 }
72722
72723 # func_len string
72724 # STRING may not start with a hyphen.
72725 func_len ()
72726 {
72727   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
72728 }
72729
72730 _LT_EOF
72731 esac
72732
72733 case $lt_shell_append in
72734   yes)
72735     cat << \_LT_EOF >> "$cfgfile"
72736
72737 # func_append var value
72738 # Append VALUE to the end of shell variable VAR.
72739 func_append ()
72740 {
72741   eval "$1+=\$2"
72742 }
72743 _LT_EOF
72744     ;;
72745   *)
72746     cat << \_LT_EOF >> "$cfgfile"
72747
72748 # func_append var value
72749 # Append VALUE to the end of shell variable VAR.
72750 func_append ()
72751 {
72752   eval "$1=\$$1\$2"
72753 }
72754
72755 _LT_EOF
72756     ;;
72757   esac
72758
72759
72760   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
72761     || (rm -f "$cfgfile"; exit 1)
72762
72763   mv -f "$cfgfile" "$ofile" ||
72764     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
72765   chmod +x "$ofile"
72766
72767  ;;
72768
72769   esac
72770 done # for ac_tag
72771
72772
72773 { (exit 0); exit 0; }
72774 _ACEOF
72775 chmod +x $CONFIG_STATUS
72776 ac_clean_files=$ac_clean_files_save
72777
72778 test $ac_write_fail = 0 ||
72779   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
72780 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
72781    { (exit 1); exit 1; }; }
72782
72783
72784 # configure is writing to config.log, and then calls config.status.
72785 # config.status does its own redirection, appending to config.log.
72786 # Unfortunately, on DOS this fails, as config.log is still kept open
72787 # by configure, so config.status won't be able to write to it; its
72788 # output is simply discarded.  So we exec the FD to /dev/null,
72789 # effectively closing config.log, so it can be properly (re)opened and
72790 # appended to by config.status.  When coming back to configure, we
72791 # need to make the FD available again.
72792 if test "$no_create" != yes; then
72793   ac_cs_success=:
72794   ac_config_status_args=
72795   test "$silent" = yes &&
72796     ac_config_status_args="$ac_config_status_args --quiet"
72797   exec 5>/dev/null
72798   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
72799   exec 5>>config.log
72800   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
72801   # would make configure fail if this is the last instruction.
72802   $ac_cs_success || { (exit 1); exit 1; }
72803 fi
72804 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
72805   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
72806 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
72807 fi
72808
72809
72810
72811     echo "Compiler Flags:"
72812     echo "  CFLAGS: ${CFLAGS-(none)}"
72813     echo "  CPPFLAGS: ${CPPFLAGS-(none)}"
72814     echo "  LDFLAGS: ${LDFLAGS-(none)}"
72815     echo "  LIBS: ${LIBS-(none)}"
72816
72817
72818     echo "Amanda Components:$AMANDA_COMPONENTS$missing_components"
72819
72820
72821     echo "Working IPv6:" $WORKING_IPV6
72822
72823
72824     echo "Build documentation:" $ENABLE_MANPAGE_BUILD
72825
72826
72827     echo "Directories:"
72828     echo "  Application: $APPLICATION_DIR"
72829     echo "  Configuration: $CONFIG_DIR"
72830     echo "  GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
72831     echo "  Perl modules (amperldir): $amperldir"
72832     echo "  Template and example data files (amdatadir): $amdatadir"
72833     echo "  Temporary: $AMANDA_TMPDIR"
72834
72835     if test -f config.warnings; then
72836         echo "WARNINGS:"
72837         cat config.warnings | sed -e 's/^/  /g'
72838         rm config.warnings
72839     fi
72840