49ddd558d6e39df0daedc71056759463218117b8
[debian/amanda] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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   # Zsh 3.x and 4.x performs 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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="common-src/amanda.h"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 #  include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 #  include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 gl_header_list=
771 gl_func_list=
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 PACKAGE
822 INSTALL_PROGRAM
823 INSTALL_SCRIPT
824 INSTALL_DATA
825 am__isrc
826 CYGPATH_W
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 SNAPSHOT_STAMP
844 VERSION_MAJOR
845 VERSION_MINOR
846 VERSION_PATCH
847 VERSION_COMMENT
848 VERSION_SUFFIX
849 CC
850 CFLAGS
851 LDFLAGS
852 CPPFLAGS
853 ac_ct_CC
854 EXEEXT
855 OBJEXT
856 DEPDIR
857 am__include
858 am__quote
859 AMDEP_TRUE
860 AMDEP_FALSE
861 AMDEPBACKSLASH
862 CCDEPMODE
863 am__fastdepCC_TRUE
864 am__fastdepCC_FALSE
865 RANLIB
866 CPP
867 GREP
868 EGREP
869 GL_COND_LIBTOOL_TRUE
870 GL_COND_LIBTOOL_FALSE
871 ALLOCA
872 ALLOCA_H
873 ARPA_INET_H
874 INCLUDE_NEXT
875 NEXT_FLOAT_H
876 FLOAT_H
877 NEXT_SYS_SOCKET_H
878 HAVE_SYS_SOCKET_H
879 HAVE_WINSOCK2_H
880 HAVE_WS2TCPIP_H
881 SYS_SOCKET_H
882 LIBINTL
883 LTLIBINTL
884 NEXT_SYS_TIME_H
885 HAVE_SYS_TIME_H
886 HAVE_STRUCT_TIMEVAL
887 REPLACE_GETTIMEOFDAY
888 SYS_TIME_H
889 LIBPTH
890 LTLIBPTH
891 LIBTHREAD
892 LTLIBTHREAD
893 LIBMULTITHREAD
894 LTLIBMULTITHREAD
895 HAVE_MALLOC_POSIX
896 GNULIB_MALLOC_POSIX
897 GNULIB_REALLOC_POSIX
898 GNULIB_CALLOC_POSIX
899 GNULIB_GETSUBOPT
900 GNULIB_MKDTEMP
901 GNULIB_MKSTEMP
902 HAVE_CALLOC_POSIX
903 HAVE_GETSUBOPT
904 HAVE_MKDTEMP
905 HAVE_REALLOC_POSIX
906 REPLACE_MKSTEMP
907 NEXT_NETINET_IN_H
908 HAVE_NETINET_IN_H
909 NETINET_IN_H
910 GNULIB_FPRINTF_POSIX
911 GNULIB_PRINTF_POSIX
912 GNULIB_SNPRINTF
913 GNULIB_SPRINTF_POSIX
914 GNULIB_VFPRINTF_POSIX
915 GNULIB_VPRINTF_POSIX
916 GNULIB_VSNPRINTF
917 GNULIB_VSPRINTF_POSIX
918 GNULIB_VASPRINTF
919 GNULIB_FSEEK
920 GNULIB_FSEEKO
921 GNULIB_FTELL
922 GNULIB_FTELLO
923 GNULIB_FFLUSH
924 GNULIB_GETDELIM
925 GNULIB_GETLINE
926 REPLACE_FPRINTF
927 REPLACE_VFPRINTF
928 REPLACE_PRINTF
929 REPLACE_VPRINTF
930 REPLACE_SNPRINTF
931 HAVE_DECL_SNPRINTF
932 REPLACE_VSNPRINTF
933 HAVE_DECL_VSNPRINTF
934 REPLACE_SPRINTF
935 REPLACE_VSPRINTF
936 HAVE_VASPRINTF
937 REPLACE_VASPRINTF
938 HAVE_FSEEKO
939 REPLACE_FSEEKO
940 REPLACE_FSEEK
941 HAVE_FTELLO
942 REPLACE_FTELLO
943 REPLACE_FTELL
944 REPLACE_FFLUSH
945 HAVE_DECL_GETDELIM
946 HAVE_DECL_GETLINE
947 REPLACE_GETLINE
948 STDBOOL_H
949 HAVE__BOOL
950 HAVE_LONG_LONG_INT
951 HAVE_UNSIGNED_LONG_LONG_INT
952 HAVE_INTTYPES_H
953 HAVE_SYS_TYPES_H
954 NEXT_STDINT_H
955 HAVE_STDINT_H
956 HAVE_SYS_INTTYPES_H
957 HAVE_SYS_BITYPES_H
958 BITSIZEOF_PTRDIFF_T
959 BITSIZEOF_SIG_ATOMIC_T
960 BITSIZEOF_SIZE_T
961 BITSIZEOF_WCHAR_T
962 BITSIZEOF_WINT_T
963 HAVE_SIGNED_SIG_ATOMIC_T
964 HAVE_SIGNED_WCHAR_T
965 HAVE_SIGNED_WINT_T
966 PTRDIFF_T_SUFFIX
967 SIG_ATOMIC_T_SUFFIX
968 SIZE_T_SUFFIX
969 WCHAR_T_SUFFIX
970 WINT_T_SUFFIX
971 STDINT_H
972 NEXT_STDIO_H
973 NEXT_STDLIB_H
974 GNULIB_MEMMEM
975 GNULIB_MEMPCPY
976 GNULIB_MEMRCHR
977 GNULIB_STPCPY
978 GNULIB_STPNCPY
979 GNULIB_STRCHRNUL
980 GNULIB_STRDUP
981 GNULIB_STRNDUP
982 GNULIB_STRNLEN
983 GNULIB_STRPBRK
984 GNULIB_STRSEP
985 GNULIB_STRCASESTR
986 GNULIB_STRTOK_R
987 GNULIB_MBSLEN
988 GNULIB_MBSNLEN
989 GNULIB_MBSCHR
990 GNULIB_MBSRCHR
991 GNULIB_MBSSTR
992 GNULIB_MBSCASECMP
993 GNULIB_MBSNCASECMP
994 GNULIB_MBSPCASECMP
995 GNULIB_MBSCASESTR
996 GNULIB_MBSCSPN
997 GNULIB_MBSPBRK
998 GNULIB_MBSSPN
999 GNULIB_MBSSEP
1000 GNULIB_MBSTOK_R
1001 HAVE_DECL_MEMMEM
1002 HAVE_MEMPCPY
1003 HAVE_DECL_MEMRCHR
1004 HAVE_STPCPY
1005 HAVE_STPNCPY
1006 HAVE_STRCASECMP
1007 HAVE_DECL_STRNCASECMP
1008 HAVE_STRCHRNUL
1009 HAVE_DECL_STRDUP
1010 HAVE_STRNDUP
1011 HAVE_DECL_STRNDUP
1012 HAVE_DECL_STRNLEN
1013 HAVE_STRPBRK
1014 HAVE_STRSEP
1015 HAVE_STRCASESTR
1016 HAVE_DECL_STRTOK_R
1017 NEXT_STRING_H
1018 HAVE_LSTAT
1019 HAVE_DECL_MKDIR
1020 HAVE_IO_H
1021 NEXT_SYS_STAT_H
1022 SYS_STAT_H
1023 GNULIB_CHOWN
1024 GNULIB_DUP2
1025 GNULIB_FCHDIR
1026 GNULIB_FTRUNCATE
1027 GNULIB_GETCWD
1028 GNULIB_GETLOGIN_R
1029 GNULIB_LCHOWN
1030 GNULIB_LSEEK
1031 GNULIB_READLINK
1032 GNULIB_SLEEP
1033 HAVE_DUP2
1034 HAVE_FTRUNCATE
1035 HAVE_READLINK
1036 HAVE_SLEEP
1037 HAVE_DECL_GETLOGIN_R
1038 REPLACE_CHOWN
1039 REPLACE_FCHDIR
1040 REPLACE_GETCWD
1041 REPLACE_LCHOWN
1042 REPLACE_LSEEK
1043 NEXT_UNISTD_H
1044 HAVE_UNISTD_H
1045 EOVERFLOW
1046 CFLAG_VISIBILITY
1047 HAVE_VISIBILITY
1048 GNULIB_WCWIDTH
1049 HAVE_DECL_WCWIDTH
1050 REPLACE_WCWIDTH
1051 WCHAR_H
1052 HAVE_WCHAR_H
1053 NEXT_WCHAR_H
1054 AMANDA_WARNING_CFLAGS
1055 CLIENT_LOGIN
1056 SETUID_GROUP
1057 CONFIG_DIR
1058 USE_VERSION_SUFFIXES
1059 GNUTAR_LISTED_INCREMENTAL_DIR
1060 AMANDA_TMPDIR
1061 BINARY_OWNER
1062 MAXTAPEBLOCKSIZE
1063 AMANDA_DBGDIR
1064 AMANDA_DEBUG_DAYS
1065 SERVICE_SUFFIX
1066 WANT_SETUID_CLIENT_TRUE
1067 WANT_SETUID_CLIENT_FALSE
1068 WANT_INSTALLPERMS_TRUE
1069 WANT_INSTALLPERMS_FALSE
1070 WANT_CLIENT_TRUE
1071 WANT_CLIENT_FALSE
1072 WANT_RESTORE_TRUE
1073 WANT_RESTORE_FALSE
1074 WANT_SERVER_TRUE
1075 WANT_SERVER_FALSE
1076 WANT_RECOVER_TRUE
1077 WANT_RECOVER_FALSE
1078 WANT_TAPE_TRUE
1079 WANT_TAPE_FALSE
1080 GNUPLOT
1081 PCAT
1082 COMPRESS
1083 GZIP
1084 AMPLOT_COMPRESS
1085 AMPLOT_CAT_GZIP
1086 AMPLOT_CAT_COMPRESS
1087 AMPLOT_CAT_PACK
1088 WANT_AMPLOT_TRUE
1089 WANT_AMPLOT_FALSE
1090 XSLTPROC_FLAGS
1091 XSLTPROC
1092 ENABLE_MANPAGE_BUILD_TRUE
1093 ENABLE_MANPAGE_BUILD_FALSE
1094 XSLREL
1095 DOC_BUILD_DATE
1096 DEFAULT_SERVER
1097 DEFAULT_CONFIG
1098 DEFAULT_TAPE_SERVER
1099 DEFAULT_TAPE_DEVICE
1100 EXAMPLE_TAPEDEV
1101 DEFAULT_CHANGER_DEVICE
1102 DEFAULT_AMANDATES_FILE
1103 GETCONF
1104 CHIO
1105 CHS
1106 MTX
1107 MCUTIL
1108 WANT_CHG_SCSI_TRUE
1109 WANT_CHG_SCSI_FALSE
1110 WANT_SCSI_LINUX_TRUE
1111 WANT_SCSI_LINUX_FALSE
1112 WANT_SCSI_HPUX_NEW_TRUE
1113 WANT_SCSI_HPUX_NEW_FALSE
1114 WANT_SCSI_IRIX_TRUE
1115 WANT_SCSI_IRIX_FALSE
1116 WANT_SCSI_SOLARIS_TRUE
1117 WANT_SCSI_SOLARIS_FALSE
1118 WANT_SCSI_AIX_TRUE
1119 WANT_SCSI_AIX_FALSE
1120 WANT_SCSI_CAM_TRUE
1121 WANT_SCSI_CAM_FALSE
1122 WANT_SCSI_BSD_TRUE
1123 WANT_SCSI_BSD_FALSE
1124 WANT_CHG_SCSI_CHIO_TRUE
1125 WANT_CHG_SCSI_CHIO_FALSE
1126 WANT_SCSI_HPUX_TRUE
1127 WANT_SCSI_HPUX_FALSE
1128 WANT_SCSI_CHIO_TRUE
1129 WANT_SCSI_CHIO_FALSE
1130 WANT_AMFLOCK_POSIX_TRUE
1131 WANT_AMFLOCK_POSIX_FALSE
1132 WANT_AMFLOCK_FLOCK_TRUE
1133 WANT_AMFLOCK_FLOCK_FALSE
1134 WANT_AMFLOCK_LOCKF_TRUE
1135 WANT_AMFLOCK_LOCKF_FALSE
1136 WANT_AMFLOCK_LNLOCK_TRUE
1137 WANT_AMFLOCK_LNLOCK_FALSE
1138 SWIG
1139 SWIG_LIB
1140 PERL
1141 PERL_INC
1142 WANT_CYGWIN_COPY_PERL_DLL_TRUE
1143 WANT_CYGWIN_COPY_PERL_DLL_FALSE
1144 PERLEXTLIBS
1145 CAT
1146 CLIENT_SCRIPTS_OPT
1147 amlibdir
1148 amlibexecdir
1149 amincludedir
1150 amperldir
1151 DUMPER_DIR
1152 MSGFMT
1153 GETTEXT
1154 USE_NLS
1155 GMSGFMT
1156 MSGFMT_015
1157 GMSGFMT_015
1158 XGETTEXT
1159 XGETTEXT_015
1160 MSGMERGE
1161 INTL_MACOSX_LIBS
1162 LIBICONV
1163 LTLIBICONV
1164 INTLLIBS
1165 POSUB
1166 CURL_CONFIG
1167 _libcurl_config
1168 LIBCURL_CPPFLAGS
1169 LIBCURL
1170 WANT_S3_DEVICE_TRUE
1171 WANT_S3_DEVICE_FALSE
1172 WANT_DEVPAY_TRUE
1173 WANT_DEVPAY_FALSE
1174 WANT_TAPE_XENIX_TRUE
1175 WANT_TAPE_XENIX_FALSE
1176 WANT_TAPE_AIX_TRUE
1177 WANT_TAPE_AIX_FALSE
1178 WANT_TAPE_UWARE_TRUE
1179 WANT_TAPE_UWARE_FALSE
1180 WANT_TAPE_POSIX_TRUE
1181 WANT_TAPE_POSIX_FALSE
1182 WANT_TAPE_DEVICE_TRUE
1183 WANT_TAPE_DEVICE_FALSE
1184 WANT_BSD_SECURITY_TRUE
1185 WANT_BSD_SECURITY_FALSE
1186 WANT_BSDTCP_SECURITY_TRUE
1187 WANT_BSDTCP_SECURITY_FALSE
1188 WANT_BSDUDP_SECURITY_TRUE
1189 WANT_BSDUDP_SECURITY_FALSE
1190 WANT_RSH_SECURITY_TRUE
1191 WANT_RSH_SECURITY_FALSE
1192 SSH
1193 WANT_SSH_SECURITY_TRUE
1194 WANT_SSH_SECURITY_FALSE
1195 WANT_KRB4_SECURITY_TRUE
1196 WANT_KRB4_SECURITY_FALSE
1197 WANT_KRB5_SECURITY_TRUE
1198 WANT_KRB5_SECURITY_FALSE
1199 XFSDUMP
1200 XFSRESTORE
1201 VXDUMP
1202 VXRESTORE
1203 VDUMP
1204 VRESTORE
1205 DUMP
1206 RESTORE
1207 GNUTAR
1208 SAMBA_CLIENT
1209 WANT_SAMBA_TRUE
1210 WANT_SAMBA_FALSE
1211 AMLINT
1212 AMLINTFLAGS
1213 LEX
1214 LEX_OUTPUT_ROOT
1215 LEXLIB
1216 AR
1217 YACC
1218 YFLAGS
1219 DD
1220 BASH
1221 SORT
1222 MAILER
1223 MT
1224 MT_FILE_FLAG
1225 PRINT
1226 GCC_COMPILER_TRUE
1227 GCC_COMPILER_FALSE
1228 LN_S
1229 ECHO
1230 CXX
1231 CXXFLAGS
1232 ac_ct_CXX
1233 CXXDEPMODE
1234 am__fastdepCXX_TRUE
1235 am__fastdepCXX_FALSE
1236 CXXCPP
1237 F77
1238 FFLAGS
1239 ac_ct_F77
1240 LIBTOOL
1241 LIBTOOL_DEPS
1242 AMANDA_STATIC_LDFLAGS
1243 PKG_CONFIG
1244 GLIB_CFLAGS
1245 GLIB_LIBS
1246 GLIB_GENMARSHAL
1247 GOBJECT_QUERY
1248 GLIB_MKENUMS
1249 READLINE_LIBS
1250 LIBOBJS
1251 LTLIBOBJS
1252 gl_LIBOBJS
1253 gl_LTLIBOBJS
1254 SVN'
1255 ac_subst_files=''
1256       ac_precious_vars='build_alias
1257 host_alias
1258 target_alias
1259 CC
1260 CFLAGS
1261 LDFLAGS
1262 LIBS
1263 CPPFLAGS
1264 CPP
1265 GNUPLOT
1266 SWIG
1267 PERL
1268 GNUTAR
1269 YACC
1270 YFLAGS
1271 CXX
1272 CXXFLAGS
1273 CCC
1274 CXXCPP
1275 F77
1276 FFLAGS
1277 PKG_CONFIG'
1278
1279
1280 # Initialize some variables set by options.
1281 ac_init_help=
1282 ac_init_version=false
1283 # The variables have the same names as the options, with
1284 # dashes changed to underlines.
1285 cache_file=/dev/null
1286 exec_prefix=NONE
1287 no_create=
1288 no_recursion=
1289 prefix=NONE
1290 program_prefix=NONE
1291 program_suffix=NONE
1292 program_transform_name=s,x,x,
1293 silent=
1294 site=
1295 srcdir=
1296 verbose=
1297 x_includes=NONE
1298 x_libraries=NONE
1299
1300 # Installation directory options.
1301 # These are left unexpanded so users can "make install exec_prefix=/foo"
1302 # and all the variables that are supposed to be based on exec_prefix
1303 # by default will actually change.
1304 # Use braces instead of parens because sh, perl, etc. also accept them.
1305 # (The list follows the same order as the GNU Coding Standards.)
1306 bindir='${exec_prefix}/bin'
1307 sbindir='${exec_prefix}/sbin'
1308 libexecdir='${exec_prefix}/libexec'
1309 datarootdir='${prefix}/share'
1310 datadir='${datarootdir}'
1311 sysconfdir='${prefix}/etc'
1312 sharedstatedir='${prefix}/com'
1313 localstatedir='${prefix}/var'
1314 includedir='${prefix}/include'
1315 oldincludedir='/usr/include'
1316 docdir='${datarootdir}/doc/${PACKAGE}'
1317 infodir='${datarootdir}/info'
1318 htmldir='${docdir}'
1319 dvidir='${docdir}'
1320 pdfdir='${docdir}'
1321 psdir='${docdir}'
1322 libdir='${exec_prefix}/lib'
1323 localedir='${datarootdir}/locale'
1324 mandir='${datarootdir}/man'
1325
1326 ac_prev=
1327 ac_dashdash=
1328 for ac_option
1329 do
1330   # If the previous option needs an argument, assign it.
1331   if test -n "$ac_prev"; then
1332     eval $ac_prev=\$ac_option
1333     ac_prev=
1334     continue
1335   fi
1336
1337   case $ac_option in
1338   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1339   *)    ac_optarg=yes ;;
1340   esac
1341
1342   # Accept the important Cygnus configure options, so we can diagnose typos.
1343
1344   case $ac_dashdash$ac_option in
1345   --)
1346     ac_dashdash=yes ;;
1347
1348   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1349     ac_prev=bindir ;;
1350   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1351     bindir=$ac_optarg ;;
1352
1353   -build | --build | --buil | --bui | --bu)
1354     ac_prev=build_alias ;;
1355   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1356     build_alias=$ac_optarg ;;
1357
1358   -cache-file | --cache-file | --cache-fil | --cache-fi \
1359   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1360     ac_prev=cache_file ;;
1361   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1362   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1363     cache_file=$ac_optarg ;;
1364
1365   --config-cache | -C)
1366     cache_file=config.cache ;;
1367
1368   -datadir | --datadir | --datadi | --datad)
1369     ac_prev=datadir ;;
1370   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1371     datadir=$ac_optarg ;;
1372
1373   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1374   | --dataroo | --dataro | --datar)
1375     ac_prev=datarootdir ;;
1376   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1377   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1378     datarootdir=$ac_optarg ;;
1379
1380   -disable-* | --disable-*)
1381     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1382     # Reject names that are not valid shell variable names.
1383     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1385    { (exit 1); exit 1; }; }
1386     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1387     eval enable_$ac_feature=no ;;
1388
1389   -docdir | --docdir | --docdi | --doc | --do)
1390     ac_prev=docdir ;;
1391   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1392     docdir=$ac_optarg ;;
1393
1394   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1395     ac_prev=dvidir ;;
1396   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1397     dvidir=$ac_optarg ;;
1398
1399   -enable-* | --enable-*)
1400     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1401     # Reject names that are not valid shell variable names.
1402     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1404    { (exit 1); exit 1; }; }
1405     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1406     eval enable_$ac_feature=\$ac_optarg ;;
1407
1408   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1409   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1410   | --exec | --exe | --ex)
1411     ac_prev=exec_prefix ;;
1412   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1413   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1414   | --exec=* | --exe=* | --ex=*)
1415     exec_prefix=$ac_optarg ;;
1416
1417   -gas | --gas | --ga | --g)
1418     # Obsolete; use --with-gas.
1419     with_gas=yes ;;
1420
1421   -help | --help | --hel | --he | -h)
1422     ac_init_help=long ;;
1423   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1424     ac_init_help=recursive ;;
1425   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1426     ac_init_help=short ;;
1427
1428   -host | --host | --hos | --ho)
1429     ac_prev=host_alias ;;
1430   -host=* | --host=* | --hos=* | --ho=*)
1431     host_alias=$ac_optarg ;;
1432
1433   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1434     ac_prev=htmldir ;;
1435   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1436   | --ht=*)
1437     htmldir=$ac_optarg ;;
1438
1439   -includedir | --includedir | --includedi | --included | --include \
1440   | --includ | --inclu | --incl | --inc)
1441     ac_prev=includedir ;;
1442   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1443   | --includ=* | --inclu=* | --incl=* | --inc=*)
1444     includedir=$ac_optarg ;;
1445
1446   -infodir | --infodir | --infodi | --infod | --info | --inf)
1447     ac_prev=infodir ;;
1448   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1449     infodir=$ac_optarg ;;
1450
1451   -libdir | --libdir | --libdi | --libd)
1452     ac_prev=libdir ;;
1453   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1454     libdir=$ac_optarg ;;
1455
1456   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1457   | --libexe | --libex | --libe)
1458     ac_prev=libexecdir ;;
1459   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1460   | --libexe=* | --libex=* | --libe=*)
1461     libexecdir=$ac_optarg ;;
1462
1463   -localedir | --localedir | --localedi | --localed | --locale)
1464     ac_prev=localedir ;;
1465   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1466     localedir=$ac_optarg ;;
1467
1468   -localstatedir | --localstatedir | --localstatedi | --localstated \
1469   | --localstate | --localstat | --localsta | --localst | --locals)
1470     ac_prev=localstatedir ;;
1471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1472   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1473     localstatedir=$ac_optarg ;;
1474
1475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1476     ac_prev=mandir ;;
1477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1478     mandir=$ac_optarg ;;
1479
1480   -nfp | --nfp | --nf)
1481     # Obsolete; use --without-fp.
1482     with_fp=no ;;
1483
1484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1485   | --no-cr | --no-c | -n)
1486     no_create=yes ;;
1487
1488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1490     no_recursion=yes ;;
1491
1492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1494   | --oldin | --oldi | --old | --ol | --o)
1495     ac_prev=oldincludedir ;;
1496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1499     oldincludedir=$ac_optarg ;;
1500
1501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1502     ac_prev=prefix ;;
1503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1504     prefix=$ac_optarg ;;
1505
1506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1507   | --program-pre | --program-pr | --program-p)
1508     ac_prev=program_prefix ;;
1509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1511     program_prefix=$ac_optarg ;;
1512
1513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1514   | --program-suf | --program-su | --program-s)
1515     ac_prev=program_suffix ;;
1516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1518     program_suffix=$ac_optarg ;;
1519
1520   -program-transform-name | --program-transform-name \
1521   | --program-transform-nam | --program-transform-na \
1522   | --program-transform-n | --program-transform- \
1523   | --program-transform | --program-transfor \
1524   | --program-transfo | --program-transf \
1525   | --program-trans | --program-tran \
1526   | --progr-tra | --program-tr | --program-t)
1527     ac_prev=program_transform_name ;;
1528   -program-transform-name=* | --program-transform-name=* \
1529   | --program-transform-nam=* | --program-transform-na=* \
1530   | --program-transform-n=* | --program-transform-=* \
1531   | --program-transform=* | --program-transfor=* \
1532   | --program-transfo=* | --program-transf=* \
1533   | --program-trans=* | --program-tran=* \
1534   | --progr-tra=* | --program-tr=* | --program-t=*)
1535     program_transform_name=$ac_optarg ;;
1536
1537   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1538     ac_prev=pdfdir ;;
1539   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1540     pdfdir=$ac_optarg ;;
1541
1542   -psdir | --psdir | --psdi | --psd | --ps)
1543     ac_prev=psdir ;;
1544   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1545     psdir=$ac_optarg ;;
1546
1547   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1548   | -silent | --silent | --silen | --sile | --sil)
1549     silent=yes ;;
1550
1551   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1552     ac_prev=sbindir ;;
1553   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1554   | --sbi=* | --sb=*)
1555     sbindir=$ac_optarg ;;
1556
1557   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1558   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1559   | --sharedst | --shareds | --shared | --share | --shar \
1560   | --sha | --sh)
1561     ac_prev=sharedstatedir ;;
1562   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1563   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1564   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1565   | --sha=* | --sh=*)
1566     sharedstatedir=$ac_optarg ;;
1567
1568   -site | --site | --sit)
1569     ac_prev=site ;;
1570   -site=* | --site=* | --sit=*)
1571     site=$ac_optarg ;;
1572
1573   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1574     ac_prev=srcdir ;;
1575   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1576     srcdir=$ac_optarg ;;
1577
1578   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1579   | --syscon | --sysco | --sysc | --sys | --sy)
1580     ac_prev=sysconfdir ;;
1581   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1582   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1583     sysconfdir=$ac_optarg ;;
1584
1585   -target | --target | --targe | --targ | --tar | --ta | --t)
1586     ac_prev=target_alias ;;
1587   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1588     target_alias=$ac_optarg ;;
1589
1590   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1591     verbose=yes ;;
1592
1593   -version | --version | --versio | --versi | --vers | -V)
1594     ac_init_version=: ;;
1595
1596   -with-* | --with-*)
1597     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1598     # Reject names that are not valid shell variable names.
1599     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1600       { echo "$as_me: error: invalid package name: $ac_package" >&2
1601    { (exit 1); exit 1; }; }
1602     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1603     eval with_$ac_package=\$ac_optarg ;;
1604
1605   -without-* | --without-*)
1606     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1607     # Reject names that are not valid shell variable names.
1608     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1609       { echo "$as_me: error: invalid package name: $ac_package" >&2
1610    { (exit 1); exit 1; }; }
1611     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1612     eval with_$ac_package=no ;;
1613
1614   --x)
1615     # Obsolete; use --with-x.
1616     with_x=yes ;;
1617
1618   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1619   | --x-incl | --x-inc | --x-in | --x-i)
1620     ac_prev=x_includes ;;
1621   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1622   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1623     x_includes=$ac_optarg ;;
1624
1625   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1626   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1627     ac_prev=x_libraries ;;
1628   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1629   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1630     x_libraries=$ac_optarg ;;
1631
1632   -*) { echo "$as_me: error: unrecognized option: $ac_option
1633 Try \`$0 --help' for more information." >&2
1634    { (exit 1); exit 1; }; }
1635     ;;
1636
1637   *=*)
1638     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1639     # Reject names that are not valid shell variable names.
1640     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1641       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1642    { (exit 1); exit 1; }; }
1643     eval $ac_envvar=\$ac_optarg
1644     export $ac_envvar ;;
1645
1646   *)
1647     # FIXME: should be removed in autoconf 3.0.
1648     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1649     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1650       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1651     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1652     ;;
1653
1654   esac
1655 done
1656
1657 if test -n "$ac_prev"; then
1658   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1659   { echo "$as_me: error: missing argument to $ac_option" >&2
1660    { (exit 1); exit 1; }; }
1661 fi
1662
1663 # Be sure to have absolute directory names.
1664 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1665                 datadir sysconfdir sharedstatedir localstatedir includedir \
1666                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1667                 libdir localedir mandir
1668 do
1669   eval ac_val=\$$ac_var
1670   case $ac_val in
1671     [\\/$]* | ?:[\\/]* )  continue;;
1672     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1673   esac
1674   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1675    { (exit 1); exit 1; }; }
1676 done
1677
1678 # There might be people who depend on the old broken behavior: `$host'
1679 # used to hold the argument of --host etc.
1680 # FIXME: To remove some day.
1681 build=$build_alias
1682 host=$host_alias
1683 target=$target_alias
1684
1685 # FIXME: To remove some day.
1686 if test "x$host_alias" != x; then
1687   if test "x$build_alias" = x; then
1688     cross_compiling=maybe
1689     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1690     If a cross compiler is detected then cross compile mode will be used." >&2
1691   elif test "x$build_alias" != "x$host_alias"; then
1692     cross_compiling=yes
1693   fi
1694 fi
1695
1696 ac_tool_prefix=
1697 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1698
1699 test "$silent" = yes && exec 6>/dev/null
1700
1701
1702 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1703 ac_ls_di=`ls -di .` &&
1704 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1705   { echo "$as_me: error: Working directory cannot be determined" >&2
1706    { (exit 1); exit 1; }; }
1707 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1708   { echo "$as_me: error: pwd does not report name of working directory" >&2
1709    { (exit 1); exit 1; }; }
1710
1711
1712 # Find the source files, if location was not specified.
1713 if test -z "$srcdir"; then
1714   ac_srcdir_defaulted=yes
1715   # Try the directory containing this script, then the parent directory.
1716   ac_confdir=`$as_dirname -- "$0" ||
1717 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1718          X"$0" : 'X\(//\)[^/]' \| \
1719          X"$0" : 'X\(//\)$' \| \
1720          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1721 echo X"$0" |
1722     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1723             s//\1/
1724             q
1725           }
1726           /^X\(\/\/\)[^/].*/{
1727             s//\1/
1728             q
1729           }
1730           /^X\(\/\/\)$/{
1731             s//\1/
1732             q
1733           }
1734           /^X\(\/\).*/{
1735             s//\1/
1736             q
1737           }
1738           s/.*/./; q'`
1739   srcdir=$ac_confdir
1740   if test ! -r "$srcdir/$ac_unique_file"; then
1741     srcdir=..
1742   fi
1743 else
1744   ac_srcdir_defaulted=no
1745 fi
1746 if test ! -r "$srcdir/$ac_unique_file"; then
1747   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1748   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1749    { (exit 1); exit 1; }; }
1750 fi
1751 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1752 ac_abs_confdir=`(
1753         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1754    { (exit 1); exit 1; }; }
1755         pwd)`
1756 # When building in place, set srcdir=.
1757 if test "$ac_abs_confdir" = "$ac_pwd"; then
1758   srcdir=.
1759 fi
1760 # Remove unnecessary trailing slashes from srcdir.
1761 # Double slashes in file names in object file debugging info
1762 # mess up M-x gdb in Emacs.
1763 case $srcdir in
1764 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1765 esac
1766 for ac_var in $ac_precious_vars; do
1767   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1768   eval ac_env_${ac_var}_value=\$${ac_var}
1769   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1770   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1771 done
1772
1773 #
1774 # Report the --help message.
1775 #
1776 if test "$ac_init_help" = "long"; then
1777   # Omit some internal or obsolete options to make the list less imposing.
1778   # This message is too long to be a string in the A/UX 3.1 sh.
1779   cat <<_ACEOF
1780 \`configure' configures this package to adapt to many kinds of systems.
1781
1782 Usage: $0 [OPTION]... [VAR=VALUE]...
1783
1784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1785 VAR=VALUE.  See below for descriptions of some of the useful variables.
1786
1787 Defaults for the options are specified in brackets.
1788
1789 Configuration:
1790   -h, --help              display this help and exit
1791       --help=short        display options specific to this package
1792       --help=recursive    display the short help of all the included packages
1793   -V, --version           display version information and exit
1794   -q, --quiet, --silent   do not print \`checking...' messages
1795       --cache-file=FILE   cache test results in FILE [disabled]
1796   -C, --config-cache      alias for \`--cache-file=config.cache'
1797   -n, --no-create         do not create output files
1798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1799
1800 Installation directories:
1801   --prefix=PREFIX         install architecture-independent files in PREFIX
1802                           [$ac_default_prefix]
1803   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1804                           [PREFIX]
1805
1806 By default, \`make install' will install all the files in
1807 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1808 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1809 for instance \`--prefix=\$HOME'.
1810
1811 For better control, use the options below.
1812
1813 Fine tuning of the installation directories:
1814   --bindir=DIR           user executables [EPREFIX/bin]
1815   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1816   --libexecdir=DIR       program executables [EPREFIX/libexec]
1817   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1818   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1819   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1820   --libdir=DIR           object code libraries [EPREFIX/lib]
1821   --includedir=DIR       C header files [PREFIX/include]
1822   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1823   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1824   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1825   --infodir=DIR          info documentation [DATAROOTDIR/info]
1826   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1827   --mandir=DIR           man documentation [DATAROOTDIR/man]
1828   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1829   --htmldir=DIR          html documentation [DOCDIR]
1830   --dvidir=DIR           dvi documentation [DOCDIR]
1831   --pdfdir=DIR           pdf documentation [DOCDIR]
1832   --psdir=DIR            ps documentation [DOCDIR]
1833 _ACEOF
1834
1835   cat <<\_ACEOF
1836
1837 Program names:
1838   --program-prefix=PREFIX            prepend PREFIX to installed program names
1839   --program-suffix=SUFFIX            append SUFFIX to installed program names
1840   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1841
1842 System types:
1843   --build=BUILD     configure for building on BUILD [guessed]
1844   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1845   --target=TARGET   configure for building compilers for TARGET [HOST]
1846 _ACEOF
1847 fi
1848
1849 if test -n "$ac_init_help"; then
1850
1851   cat <<\_ACEOF
1852
1853 Optional Features:
1854   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1855   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1856   --disable-dependency-tracking  speeds up one-time build
1857   --enable-dependency-tracking   do not reject slow dependency extractors
1858   --enable-threads={posix|solaris|pth|win32}
1859                           specify multithreading API
1860   --disable-threads       build without multithread safety
1861   --disable-rpath         do not hardcode runtime library paths
1862   --disable-largefile     omit support for large files
1863   --disable-installperms  do not modify ownership and permissions on installed
1864                           files
1865   --enable-manpage-build  Build the manpages from their XML source (shipped
1866                           manpages are usually sufficient)
1867   --disable-nls           do not use Native Language Support
1868   --disable-s3-device     disable the S3 device
1869   --enable-devpay         Use devpay authentication for Amazon S3 driver
1870   --enable-shared[=PKGS]  build shared libraries [default=yes]
1871   --enable-static[=PKGS]  build static libraries [default=yes]
1872   --enable-fast-install[=PKGS]
1873                           optimize for fast installation [default=yes]
1874   --disable-libtool-lock  avoid locking (might break parallel builds)
1875   --enable-static-binary  To build statically linked binaries
1876   --disable-glibtest      do not try to compile and run a test GLIB program
1877
1878 Optional Packages:
1879   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1880   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1881   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1882   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1883   --without-libpth-prefix     don't search for libpth in includedir and libdir
1884   --with-cflags=FLAGS     deprecated; use ./configure CFLAGS=...
1885   --with-includes=INCLUDE-DIRS
1886                           deprecated; use ./configure CPPFLAGS='-I.. -I..'
1887   --with-libraries=LIBRARY-DIRS
1888                           deprecated; use ./configure LDFLAGS='-L.. -L..' (add
1889                           -R on Solaris, NetBSD)
1890   --with-user=USER        force execution to USER on client systems (REQUIRED)
1891   --with-group=GROUP      group allowed to execute setuid-root programs
1892                           (REQUIRED)
1893   --with-dumperdir=DIR    where we install the dumpers (default:
1894                           exec_prefix/dumper)
1895   --with-configdir=DIR    runtime config files in DIR [sysconfdir/amanda]
1896   --with-indexdir         deprecated: use indexdir in amanda.conf
1897   --with-dbdir            deprecated: use infofile in amanda.conf
1898   --with-logdir           deprecated: use logfile in amanda.conf
1899   --with-suffixes        install binaries with version string appended to name
1900   --with-gnutar-listdir=DIR
1901                           put gnutar directory lists in DIR (default:
1902                           localstatedir/amanda/gnutar-lists)
1903   --with-gnutar-listed-incremental
1904                           deprecated; use --with-gnutar-listdir
1905   --with-tmpdir           directory for temporary and debugging files
1906                           (default: /tmp/amanda)
1907   --without-force-uid     do not check userids when running programs
1908   --with-owner=USER
1909             force ownership of installed files to USER (default same as --with-user)
1910
1911   --with-fqdn             use FQDN's to backup multiple networks
1912   --without-reuseaddr     Don't reuse network connections until full timeout
1913                           period
1914   --with-low-tcpportrange=low/high
1915                           bind reserved TCP server sockets to ports within
1916                           this range (default: unlimited)
1917   --with-tcpportrange=low/high
1918                           bind unreserved TCP server sockets to ports within
1919                           this range (default: unlimited)
1920   --with-udpportrange=low/high
1921                           bind reserved UDP server sockets to ports within
1922                           this range (default: unlimited)
1923   --with-buffered-dump    buffer the dumping sockets on the server for speed
1924   --with-maxtapeblocksize=kb
1925                           Maximum size of a tape block (default: 32)
1926   --with-assertions       compile assertions into code
1927   --with-debugging=DIR
1928             put debug logs in DIR (default same as --with-tmpdir)
1929
1930   --with-debug-days=NN    number of days to keep debugging files (default: 4)
1931   --with-testing[=SUFFIX] use alternate service names with suffix (default
1932                           'test')
1933   --with-single-userid
1934             force amanda to run as a single userid (for testing)
1935
1936   --without-server        do not build server stuff (set --without-restore)
1937   --without-client        do not build client stuff
1938   --without-restore       do not build amrestore nor amidxtaped
1939   --without-amrecover     do not build amrecover
1940   --with-client-only      deprecated: use --without-server
1941   --with-server-only      deprecated: use --without-client
1942   --with-gnuplot=PATH     use gnuplot executable at PATH in amplot
1943   --with-xsltproc[=PATH]
1944                           Use the xsltproc binary in in PATH.
1945     --with-xsltproc-flags=FLAGS
1946                           Flags to pass to xsltproc (default --nonet)
1947   --with-index-server=HOST
1948                           default amanda index server (default: `uname -n`)
1949   --with-config=CONFIG    default amanda configuration (default: DailySet1)
1950   --with-tape-server=HOST default tape server for restore (default: same as
1951                           index-server)
1952   --with-tape-device=DEVICE
1953                           default device on restore tape server
1954   --with-changer-device=DEV
1955                           default tape changer device (default: /dev/ch0)
1956   --with-amandates        default location for 'amandates' (default:
1957                           $localstatedir/amanda/amandates)
1958   --with-perlextlibs=libs extra LIBS for Perl extensions
1959   --with-ipv6             enable IPv6 support (default if IPv6 is found)
1960           --without-ipv6          disable IPv6
1961   --with-mmap             force use of mmap instead of shared memory support
1962   --with-amlibdir[=PATH]
1963                           Where library are installed, default: $libdir/amanda
1964           --without-amlibdir      Library are installed in $libdir
1965   --with-amlibexecdir[=PATH]
1966                           Where amanda own programs are installed, default:
1967                           $libexecdir/amanda
1968           --without-amlibexecdir  Amanda own programs are installed in $libexecdir
1969   --with-amperldir[=PATH]
1970                           Where amanda's perl modules are installed; default:
1971                           installsitelib
1972           --without-amperldir     Install amanda's perl modules in $amlibdir/perl
1973   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1974   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1975   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1976   --without-libintl-prefix     don't search for libintl in includedir and libdir
1977   --with-libcurl=DIR      look for the curl library in DIR
1978   --without-bsd-security  do not include BSD authentication
1979    --without-amandahosts  use ".rhosts" instead of ".amandahosts"
1980   --with-bsdtcp-security  include BSDTCP authentication
1981   --with-bsdudp-security  include BSDUDP authentication
1982   --with-rsh-security     include RSH authentication
1983   --with-ssh-security     include SSH authentication
1984    --with-ssh-options=[OPTIONS]
1985                           Use these ssh options for ssh security; the default
1986                           should work
1987   --with-krb4-security=DIR
1988                           Location of Kerberos software [/usr/kerberos
1989                           /usr/cygnus /usr /opt/kerberos]
1990    --with-server-principal=ARG
1991                           server host principal ("amanda")
1992    --with-server-instance=ARG
1993                           server host instance ("amanda")
1994    --with-server-keyfile=ARG
1995                           server host key file ("/.amanda")
1996    --with-client-principal=ARG
1997                           client host principle ("rcmd")
1998    --with-client-instance=ARG
1999                           client host instance (HOSTNAME_INSTANCE)
2000    --with-client-keyfile=ARG
2001                           client host key file (KEYFILE)
2002    --ticket-lifetime      ticket lifetime (128)
2003   --with-krb5-security=DIR
2004                           Location of Kerberos V software [/usr/kerberos
2005                           /usr/cygnus /usr /opt/kerberos]
2006   --with-dump-honor-nodump
2007                           if dump supports -h, use it for level0s too
2008   --with-gnutar=PROG      use PROG as GNU 'tar'
2009   --with-smbclient=PROG   use PROG as 'smbclient'
2010   --with-samba-user       deprecated; place username in 'amandapass'
2011   --with-rundump          use rundump, a setuid-root wrapper, to invoke dump
2012   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2013   --with-pic              try to use only PIC/non-PIC objects [default=use
2014                           both]
2015   --with-tags[=TAGS]      include additional configurations [automatic]
2016   --with-readline         require readline support (for amrecover)
2017   --without-readline      don't search for readline
2018
2019 Some influential environment variables:
2020   CC          C compiler command
2021   CFLAGS      C compiler flags
2022   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2023               nonstandard directory <lib dir>
2024   LIBS        libraries to pass to the linker, e.g. -l<library>
2025   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2026               you have headers in a nonstandard directory <include dir>
2027   CPP         C preprocessor
2028   GNUPLOT     Location of the 'gnuplot' binary
2029   SWIG        Path to the 'swig' binary (developers only)
2030   PERL        Path to the 'perl' binary
2031   GNUTAR      Location of the GNU 'tar' binary
2032   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
2033               the first program found out of: `bison -y', `byacc', `yacc'.
2034   YFLAGS      The list of arguments that will be passed by default to $YACC.
2035               This script will default YFLAGS to the empty string to avoid a
2036               default value of `-d' given by some make applications.
2037   CXX         C++ compiler command
2038   CXXFLAGS    C++ compiler flags
2039   CXXCPP      C++ preprocessor
2040   F77         Fortran 77 compiler command
2041   FFLAGS      Fortran 77 compiler flags
2042   PKG_CONFIG  path to pkg-config utility
2043
2044 Use these variables to override the choices made by `configure' or to help
2045 it to find libraries and programs with nonstandard names/locations.
2046
2047 _ACEOF
2048 ac_status=$?
2049 fi
2050
2051 if test "$ac_init_help" = "recursive"; then
2052   # If there are subdirs, report their specific --help.
2053   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2054     test -d "$ac_dir" || continue
2055     ac_builddir=.
2056
2057 case "$ac_dir" in
2058 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2059 *)
2060   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2061   # A ".." for each directory in $ac_dir_suffix.
2062   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2063   case $ac_top_builddir_sub in
2064   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2065   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2066   esac ;;
2067 esac
2068 ac_abs_top_builddir=$ac_pwd
2069 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2070 # for backward compatibility:
2071 ac_top_builddir=$ac_top_build_prefix
2072
2073 case $srcdir in
2074   .)  # We are building in place.
2075     ac_srcdir=.
2076     ac_top_srcdir=$ac_top_builddir_sub
2077     ac_abs_top_srcdir=$ac_pwd ;;
2078   [\\/]* | ?:[\\/]* )  # Absolute name.
2079     ac_srcdir=$srcdir$ac_dir_suffix;
2080     ac_top_srcdir=$srcdir
2081     ac_abs_top_srcdir=$srcdir ;;
2082   *) # Relative name.
2083     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2084     ac_top_srcdir=$ac_top_build_prefix$srcdir
2085     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2086 esac
2087 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2088
2089     cd "$ac_dir" || { ac_status=$?; continue; }
2090     # Check for guested configure.
2091     if test -f "$ac_srcdir/configure.gnu"; then
2092       echo &&
2093       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2094     elif test -f "$ac_srcdir/configure"; then
2095       echo &&
2096       $SHELL "$ac_srcdir/configure" --help=recursive
2097     else
2098       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2099     fi || ac_status=$?
2100     cd "$ac_pwd" || { ac_status=$?; break; }
2101   done
2102 fi
2103
2104 test -n "$ac_init_help" && exit $ac_status
2105 if $ac_init_version; then
2106   cat <<\_ACEOF
2107 configure
2108 generated by GNU Autoconf 2.61
2109
2110 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2111 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2112 This configure script is free software; the Free Software Foundation
2113 gives unlimited permission to copy, distribute and modify it.
2114 _ACEOF
2115   exit
2116 fi
2117 cat >config.log <<_ACEOF
2118 This file contains any messages produced by compilers while
2119 running configure, to aid debugging if configure makes a mistake.
2120
2121 It was created by $as_me, which was
2122 generated by GNU Autoconf 2.61.  Invocation command line was
2123
2124   $ $0 $@
2125
2126 _ACEOF
2127 exec 5>>config.log
2128 {
2129 cat <<_ASUNAME
2130 ## --------- ##
2131 ## Platform. ##
2132 ## --------- ##
2133
2134 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2135 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2136 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2137 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2138 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2139
2140 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2141 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2142
2143 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2144 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2145 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2146 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2147 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2148 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2149 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2150
2151 _ASUNAME
2152
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2155 do
2156   IFS=$as_save_IFS
2157   test -z "$as_dir" && as_dir=.
2158   echo "PATH: $as_dir"
2159 done
2160 IFS=$as_save_IFS
2161
2162 } >&5
2163
2164 cat >&5 <<_ACEOF
2165
2166
2167 ## ----------- ##
2168 ## Core tests. ##
2169 ## ----------- ##
2170
2171 _ACEOF
2172
2173
2174 # Keep a trace of the command line.
2175 # Strip out --no-create and --no-recursion so they do not pile up.
2176 # Strip out --silent because we don't want to record it for future runs.
2177 # Also quote any args containing shell meta-characters.
2178 # Make two passes to allow for proper duplicate-argument suppression.
2179 ac_configure_args=
2180 ac_configure_args0=
2181 ac_configure_args1=
2182 ac_must_keep_next=false
2183 for ac_pass in 1 2
2184 do
2185   for ac_arg
2186   do
2187     case $ac_arg in
2188     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2189     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2190     | -silent | --silent | --silen | --sile | --sil)
2191       continue ;;
2192     *\'*)
2193       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2194     esac
2195     case $ac_pass in
2196     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2197     2)
2198       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2199       if test $ac_must_keep_next = true; then
2200         ac_must_keep_next=false # Got value, back to normal.
2201       else
2202         case $ac_arg in
2203           *=* | --config-cache | -C | -disable-* | --disable-* \
2204           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2205           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2206           | -with-* | --with-* | -without-* | --without-* | --x)
2207             case "$ac_configure_args0 " in
2208               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2209             esac
2210             ;;
2211           -* ) ac_must_keep_next=true ;;
2212         esac
2213       fi
2214       ac_configure_args="$ac_configure_args '$ac_arg'"
2215       ;;
2216     esac
2217   done
2218 done
2219 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2220 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2221
2222 # When interrupted or exit'd, cleanup temporary files, and complete
2223 # config.log.  We remove comments because anyway the quotes in there
2224 # would cause problems or look ugly.
2225 # WARNING: Use '\'' to represent an apostrophe within the trap.
2226 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2227 trap 'exit_status=$?
2228   # Save into config.log some information that might help in debugging.
2229   {
2230     echo
2231
2232     cat <<\_ASBOX
2233 ## ---------------- ##
2234 ## Cache variables. ##
2235 ## ---------------- ##
2236 _ASBOX
2237     echo
2238     # The following way of writing the cache mishandles newlines in values,
2239 (
2240   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2241     eval ac_val=\$$ac_var
2242     case $ac_val in #(
2243     *${as_nl}*)
2244       case $ac_var in #(
2245       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2246 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2247       esac
2248       case $ac_var in #(
2249       _ | IFS | as_nl) ;; #(
2250       *) $as_unset $ac_var ;;
2251       esac ;;
2252     esac
2253   done
2254   (set) 2>&1 |
2255     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2256     *${as_nl}ac_space=\ *)
2257       sed -n \
2258         "s/'\''/'\''\\\\'\'''\''/g;
2259           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2260       ;; #(
2261     *)
2262       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2263       ;;
2264     esac |
2265     sort
2266 )
2267     echo
2268
2269     cat <<\_ASBOX
2270 ## ----------------- ##
2271 ## Output variables. ##
2272 ## ----------------- ##
2273 _ASBOX
2274     echo
2275     for ac_var in $ac_subst_vars
2276     do
2277       eval ac_val=\$$ac_var
2278       case $ac_val in
2279       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280       esac
2281       echo "$ac_var='\''$ac_val'\''"
2282     done | sort
2283     echo
2284
2285     if test -n "$ac_subst_files"; then
2286       cat <<\_ASBOX
2287 ## ------------------- ##
2288 ## File substitutions. ##
2289 ## ------------------- ##
2290 _ASBOX
2291       echo
2292       for ac_var in $ac_subst_files
2293       do
2294         eval ac_val=\$$ac_var
2295         case $ac_val in
2296         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2297         esac
2298         echo "$ac_var='\''$ac_val'\''"
2299       done | sort
2300       echo
2301     fi
2302
2303     if test -s confdefs.h; then
2304       cat <<\_ASBOX
2305 ## ----------- ##
2306 ## confdefs.h. ##
2307 ## ----------- ##
2308 _ASBOX
2309       echo
2310       cat confdefs.h
2311       echo
2312     fi
2313     test "$ac_signal" != 0 &&
2314       echo "$as_me: caught signal $ac_signal"
2315     echo "$as_me: exit $exit_status"
2316   } >&5
2317   rm -f core *.core core.conftest.* &&
2318     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2319     exit $exit_status
2320 ' 0
2321 for ac_signal in 1 2 13 15; do
2322   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2323 done
2324 ac_signal=0
2325
2326 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2327 rm -f -r conftest* confdefs.h
2328
2329 # Predefined preprocessor variables.
2330
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_NAME "$PACKAGE_NAME"
2333 _ACEOF
2334
2335
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2338 _ACEOF
2339
2340
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2343 _ACEOF
2344
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_STRING "$PACKAGE_STRING"
2348 _ACEOF
2349
2350
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2353 _ACEOF
2354
2355
2356 # Let the site file select an alternate cache file if it wants to.
2357 # Prefer explicitly selected file to automatically selected ones.
2358 if test -n "$CONFIG_SITE"; then
2359   set x "$CONFIG_SITE"
2360 elif test "x$prefix" != xNONE; then
2361   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2362 else
2363   set x "$ac_default_prefix/share/config.site" \
2364         "$ac_default_prefix/etc/config.site"
2365 fi
2366 shift
2367 for ac_site_file
2368 do
2369   if test -r "$ac_site_file"; then
2370     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2371 echo "$as_me: loading site script $ac_site_file" >&6;}
2372     sed 's/^/| /' "$ac_site_file" >&5
2373     . "$ac_site_file"
2374   fi
2375 done
2376
2377 if test -r "$cache_file"; then
2378   # Some versions of bash will fail to source /dev/null (special
2379   # files actually), so we avoid doing that.
2380   if test -f "$cache_file"; then
2381     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2382 echo "$as_me: loading cache $cache_file" >&6;}
2383     case $cache_file in
2384       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2385       *)                      . "./$cache_file";;
2386     esac
2387   fi
2388 else
2389   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2390 echo "$as_me: creating cache $cache_file" >&6;}
2391   >$cache_file
2392 fi
2393
2394 gl_header_list="$gl_header_list arpa/inet.h"
2395 gl_header_list="$gl_header_list float.h"
2396 gl_header_list="$gl_header_list sys/param.h"
2397 gl_header_list="$gl_header_list sys/vfs.h"
2398 gl_header_list="$gl_header_list sys/fs_types.h"
2399 gl_header_list="$gl_header_list sys/socket.h"
2400 gl_header_list="$gl_header_list netdb.h"
2401 gl_header_list="$gl_header_list netinet/in.h"
2402 gl_header_list="$gl_header_list sys/time.h"
2403 gl_func_list="$gl_func_list gettimeofday"
2404 gl_header_list="$gl_header_list stdint.h"
2405 gl_header_list="$gl_header_list wchar.h"
2406 gl_header_list="$gl_header_list stdio.h"
2407 gl_header_list="$gl_header_list stdlib.h"
2408 gl_header_list="$gl_header_list string.h"
2409 gl_func_list="$gl_func_list lstat"
2410 gl_header_list="$gl_header_list sys/stat.h"
2411 gl_header_list="$gl_header_list unistd.h"
2412 gl_func_list="$gl_func_list vasnprintf"
2413 # Check that the precious variables saved in the cache have kept the same
2414 # value.
2415 ac_cache_corrupted=false
2416 for ac_var in $ac_precious_vars; do
2417   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2418   eval ac_new_set=\$ac_env_${ac_var}_set
2419   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2420   eval ac_new_val=\$ac_env_${ac_var}_value
2421   case $ac_old_set,$ac_new_set in
2422     set,)
2423       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2424 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2425       ac_cache_corrupted=: ;;
2426     ,set)
2427       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2428 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2429       ac_cache_corrupted=: ;;
2430     ,);;
2431     *)
2432       if test "x$ac_old_val" != "x$ac_new_val"; then
2433         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2434 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2435         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2436 echo "$as_me:   former value:  $ac_old_val" >&2;}
2437         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2438 echo "$as_me:   current value: $ac_new_val" >&2;}
2439         ac_cache_corrupted=:
2440       fi;;
2441   esac
2442   # Pass precious variables to config.status.
2443   if test "$ac_new_set" = set; then
2444     case $ac_new_val in
2445     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2446     *) ac_arg=$ac_var=$ac_new_val ;;
2447     esac
2448     case " $ac_configure_args " in
2449       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2450       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2451     esac
2452   fi
2453 done
2454 if $ac_cache_corrupted; then
2455   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2457   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2458 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2459    { (exit 1); exit 1; }; }
2460 fi
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478 ac_ext=c
2479 ac_cpp='$CPP $CPPFLAGS'
2480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2483
2484
2485
2486 ac_aux_dir=
2487 for ac_dir in config "$srcdir"/config; do
2488   if test -f "$ac_dir/install-sh"; then
2489     ac_aux_dir=$ac_dir
2490     ac_install_sh="$ac_aux_dir/install-sh -c"
2491     break
2492   elif test -f "$ac_dir/install.sh"; then
2493     ac_aux_dir=$ac_dir
2494     ac_install_sh="$ac_aux_dir/install.sh -c"
2495     break
2496   elif test -f "$ac_dir/shtool"; then
2497     ac_aux_dir=$ac_dir
2498     ac_install_sh="$ac_aux_dir/shtool install -c"
2499     break
2500   fi
2501 done
2502 if test -z "$ac_aux_dir"; then
2503   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2504 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2505    { (exit 1); exit 1; }; }
2506 fi
2507
2508 # These three variables are undocumented and unsupported,
2509 # and are intended to be withdrawn in a future Autoconf release.
2510 # They can cause serious problems if a builder's source tree is in a directory
2511 # whose full name contains unusual characters.
2512 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2513 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2514 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2515
2516
2517 # Make sure we can run config.sub.
2518 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2519   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2520 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2521    { (exit 1); exit 1; }; }
2522
2523 { echo "$as_me:$LINENO: checking build system type" >&5
2524 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2525 if test "${ac_cv_build+set}" = set; then
2526   echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528   ac_build_alias=$build_alias
2529 test "x$ac_build_alias" = x &&
2530   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2531 test "x$ac_build_alias" = x &&
2532   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2533 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2534    { (exit 1); exit 1; }; }
2535 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2536   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2537 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2538    { (exit 1); exit 1; }; }
2539
2540 fi
2541 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2542 echo "${ECHO_T}$ac_cv_build" >&6; }
2543 case $ac_cv_build in
2544 *-*-*) ;;
2545 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2546 echo "$as_me: error: invalid value of canonical build" >&2;}
2547    { (exit 1); exit 1; }; };;
2548 esac
2549 build=$ac_cv_build
2550 ac_save_IFS=$IFS; IFS='-'
2551 set x $ac_cv_build
2552 shift
2553 build_cpu=$1
2554 build_vendor=$2
2555 shift; shift
2556 # Remember, the first character of IFS is used to create $*,
2557 # except with old shells:
2558 build_os=$*
2559 IFS=$ac_save_IFS
2560 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2561
2562
2563 { echo "$as_me:$LINENO: checking host system type" >&5
2564 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2565 if test "${ac_cv_host+set}" = set; then
2566   echo $ECHO_N "(cached) $ECHO_C" >&6
2567 else
2568   if test "x$host_alias" = x; then
2569   ac_cv_host=$ac_cv_build
2570 else
2571   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2572     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2573 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2574    { (exit 1); exit 1; }; }
2575 fi
2576
2577 fi
2578 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2579 echo "${ECHO_T}$ac_cv_host" >&6; }
2580 case $ac_cv_host in
2581 *-*-*) ;;
2582 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2583 echo "$as_me: error: invalid value of canonical host" >&2;}
2584    { (exit 1); exit 1; }; };;
2585 esac
2586 host=$ac_cv_host
2587 ac_save_IFS=$IFS; IFS='-'
2588 set x $ac_cv_host
2589 shift
2590 host_cpu=$1
2591 host_vendor=$2
2592 shift; shift
2593 # Remember, the first character of IFS is used to create $*,
2594 # except with old shells:
2595 host_os=$*
2596 IFS=$ac_save_IFS
2597 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2598
2599
2600 { echo "$as_me:$LINENO: checking target system type" >&5
2601 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2602 if test "${ac_cv_target+set}" = set; then
2603   echo $ECHO_N "(cached) $ECHO_C" >&6
2604 else
2605   if test "x$target_alias" = x; then
2606   ac_cv_target=$ac_cv_host
2607 else
2608   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2609     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2610 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2611    { (exit 1); exit 1; }; }
2612 fi
2613
2614 fi
2615 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2616 echo "${ECHO_T}$ac_cv_target" >&6; }
2617 case $ac_cv_target in
2618 *-*-*) ;;
2619 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2620 echo "$as_me: error: invalid value of canonical target" >&2;}
2621    { (exit 1); exit 1; }; };;
2622 esac
2623 target=$ac_cv_target
2624 ac_save_IFS=$IFS; IFS='-'
2625 set x $ac_cv_target
2626 shift
2627 target_cpu=$1
2628 target_vendor=$2
2629 shift; shift
2630 # Remember, the first character of IFS is used to create $*,
2631 # except with old shells:
2632 target_os=$*
2633 IFS=$ac_save_IFS
2634 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2635
2636
2637 # The aliases save the names the user supplied, while $host etc.
2638 # will get canonicalized.
2639 test -n "$target_alias" &&
2640   test "$program_prefix$program_suffix$program_transform_name" = \
2641     NONENONEs,x,x, &&
2642   program_prefix=${target_alias}-
2643
2644 PACKAGE=amanda
2645
2646
2647 am__api_version='1.10'
2648
2649 # Find a good install program.  We prefer a C program (faster),
2650 # so one script is as good as another.  But avoid the broken or
2651 # incompatible versions:
2652 # SysV /etc/install, /usr/sbin/install
2653 # SunOS /usr/etc/install
2654 # IRIX /sbin/install
2655 # AIX /bin/install
2656 # AmigaOS /C/install, which installs bootblocks on floppy discs
2657 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2658 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2659 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2660 # OS/2's system install, which has a completely different semantic
2661 # ./install, which can be erroneously created by make from ./install.sh.
2662 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2663 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2664 if test -z "$INSTALL"; then
2665 if test "${ac_cv_path_install+set}" = set; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH
2670 do
2671   IFS=$as_save_IFS
2672   test -z "$as_dir" && as_dir=.
2673   # Account for people who put trailing slashes in PATH elements.
2674 case $as_dir/ in
2675   ./ | .// | /cC/* | \
2676   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2677   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2678   /usr/ucb/* ) ;;
2679   *)
2680     # OSF1 and SCO ODT 3.0 have their own names for install.
2681     # Don't use installbsd from OSF since it installs stuff as root
2682     # by default.
2683     for ac_prog in ginstall scoinst install; do
2684       for ac_exec_ext in '' $ac_executable_extensions; do
2685         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2686           if test $ac_prog = install &&
2687             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2688             # AIX install.  It has an incompatible calling convention.
2689             :
2690           elif test $ac_prog = install &&
2691             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2692             # program-specific install script used by HP pwplus--don't use.
2693             :
2694           else
2695             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2696             break 3
2697           fi
2698         fi
2699       done
2700     done
2701     ;;
2702 esac
2703 done
2704 IFS=$as_save_IFS
2705
2706
2707 fi
2708   if test "${ac_cv_path_install+set}" = set; then
2709     INSTALL=$ac_cv_path_install
2710   else
2711     # As a last resort, use the slow shell script.  Don't cache a
2712     # value for INSTALL within a source directory, because that will
2713     # break other packages using the cache if that directory is
2714     # removed, or if the value is a relative name.
2715     INSTALL=$ac_install_sh
2716   fi
2717 fi
2718 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2719 echo "${ECHO_T}$INSTALL" >&6; }
2720
2721 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2722 # It thinks the first close brace ends the variable substitution.
2723 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2724
2725 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2726
2727 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2728
2729 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2730 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2731 # Just in case
2732 sleep 1
2733 echo timestamp > conftest.file
2734 # Do `set' in a subshell so we don't clobber the current shell's
2735 # arguments.  Must try -L first in case configure is actually a
2736 # symlink; some systems play weird games with the mod time of symlinks
2737 # (eg FreeBSD returns the mod time of the symlink's containing
2738 # directory).
2739 if (
2740    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2741    if test "$*" = "X"; then
2742       # -L didn't work.
2743       set X `ls -t $srcdir/configure conftest.file`
2744    fi
2745    rm -f conftest.file
2746    if test "$*" != "X $srcdir/configure conftest.file" \
2747       && test "$*" != "X conftest.file $srcdir/configure"; then
2748
2749       # If neither matched, then we have a broken ls.  This can happen
2750       # if, for instance, CONFIG_SHELL is bash and it inherits a
2751       # broken ls alias from the environment.  This has actually
2752       # happened.  Such a system could not be considered "sane".
2753       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2754 alias in your environment" >&5
2755 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2756 alias in your environment" >&2;}
2757    { (exit 1); exit 1; }; }
2758    fi
2759
2760    test "$2" = conftest.file
2761    )
2762 then
2763    # Ok.
2764    :
2765 else
2766    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2767 Check your system clock" >&5
2768 echo "$as_me: error: newly created file is older than distributed files!
2769 Check your system clock" >&2;}
2770    { (exit 1); exit 1; }; }
2771 fi
2772 { echo "$as_me:$LINENO: result: yes" >&5
2773 echo "${ECHO_T}yes" >&6; }
2774 test "$program_prefix" != NONE &&
2775   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2776 # Use a double $ so make ignores it.
2777 test "$program_suffix" != NONE &&
2778   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2779 # Double any \ or $.  echo might interpret backslashes.
2780 # By default was `s,x,x', remove it if useless.
2781 cat <<\_ACEOF >conftest.sed
2782 s/[\\$]/&&/g;s/;s,x,x,$//
2783 _ACEOF
2784 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2785 rm -f conftest.sed
2786
2787 # expand $ac_aux_dir to an absolute path
2788 am_aux_dir=`cd $ac_aux_dir && pwd`
2789
2790 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2791 # Use eval to expand $SHELL
2792 if eval "$MISSING --run true"; then
2793   am_missing_run="$MISSING --run "
2794 else
2795   am_missing_run=
2796   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2797 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2798 fi
2799
2800 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2801 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2802 if test -z "$MKDIR_P"; then
2803   if test "${ac_cv_path_mkdir+set}" = set; then
2804   echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2808 do
2809   IFS=$as_save_IFS
2810   test -z "$as_dir" && as_dir=.
2811   for ac_prog in mkdir gmkdir; do
2812          for ac_exec_ext in '' $ac_executable_extensions; do
2813            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2814            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2815              'mkdir (GNU coreutils) '* | \
2816              'mkdir (coreutils) '* | \
2817              'mkdir (fileutils) '4.1*)
2818                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2819                break 3;;
2820            esac
2821          done
2822        done
2823 done
2824 IFS=$as_save_IFS
2825
2826 fi
2827
2828   if test "${ac_cv_path_mkdir+set}" = set; then
2829     MKDIR_P="$ac_cv_path_mkdir -p"
2830   else
2831     # As a last resort, use the slow shell script.  Don't cache a
2832     # value for MKDIR_P within a source directory, because that will
2833     # break other packages using the cache if that directory is
2834     # removed, or if the value is a relative name.
2835     test -d ./--version && rmdir ./--version
2836     MKDIR_P="$ac_install_sh -d"
2837   fi
2838 fi
2839 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2840 echo "${ECHO_T}$MKDIR_P" >&6; }
2841
2842 mkdir_p="$MKDIR_P"
2843 case $mkdir_p in
2844   [\\/$]* | ?:[\\/]*) ;;
2845   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2846 esac
2847
2848 for ac_prog in gawk mawk nawk awk
2849 do
2850   # Extract the first word of "$ac_prog", so it can be a program name with args.
2851 set dummy $ac_prog; ac_word=$2
2852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2854 if test "${ac_cv_prog_AWK+set}" = set; then
2855   echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857   if test -n "$AWK"; then
2858   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863   IFS=$as_save_IFS
2864   test -z "$as_dir" && as_dir=.
2865   for ac_exec_ext in '' $ac_executable_extensions; do
2866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867     ac_cv_prog_AWK="$ac_prog"
2868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869     break 2
2870   fi
2871 done
2872 done
2873 IFS=$as_save_IFS
2874
2875 fi
2876 fi
2877 AWK=$ac_cv_prog_AWK
2878 if test -n "$AWK"; then
2879   { echo "$as_me:$LINENO: result: $AWK" >&5
2880 echo "${ECHO_T}$AWK" >&6; }
2881 else
2882   { echo "$as_me:$LINENO: result: no" >&5
2883 echo "${ECHO_T}no" >&6; }
2884 fi
2885
2886
2887   test -n "$AWK" && break
2888 done
2889
2890 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2891 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2892 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2893 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2894   echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896   cat >conftest.make <<\_ACEOF
2897 SHELL = /bin/sh
2898 all:
2899         @echo '@@@%%%=$(MAKE)=@@@%%%'
2900 _ACEOF
2901 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2902 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2903   *@@@%%%=?*=@@@%%%*)
2904     eval ac_cv_prog_make_${ac_make}_set=yes;;
2905   *)
2906     eval ac_cv_prog_make_${ac_make}_set=no;;
2907 esac
2908 rm -f conftest.make
2909 fi
2910 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2911   { echo "$as_me:$LINENO: result: yes" >&5
2912 echo "${ECHO_T}yes" >&6; }
2913   SET_MAKE=
2914 else
2915   { echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6; }
2917   SET_MAKE="MAKE=${MAKE-make}"
2918 fi
2919
2920 rm -rf .tst 2>/dev/null
2921 mkdir .tst 2>/dev/null
2922 if test -d .tst; then
2923   am__leading_dot=.
2924 else
2925   am__leading_dot=_
2926 fi
2927 rmdir .tst 2>/dev/null
2928
2929 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2930   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2931   # is not polluted with repeated "-I."
2932   am__isrc=' -I$(srcdir)'
2933   # test to see if srcdir already configured
2934   if test -f $srcdir/config.status; then
2935     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2936 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2937    { (exit 1); exit 1; }; }
2938   fi
2939 fi
2940
2941 # test whether we have cygpath
2942 if test -z "$CYGPATH_W"; then
2943   if (cygpath --version) >/dev/null 2>/dev/null; then
2944     CYGPATH_W='cygpath -w'
2945   else
2946     CYGPATH_W=echo
2947   fi
2948 fi
2949
2950
2951 # Define the identity of the package.
2952  PACKAGE=amanda
2953  VERSION="2.6.0p2"
2954
2955
2956 cat >>confdefs.h <<_ACEOF
2957 #define PACKAGE "$PACKAGE"
2958 _ACEOF
2959
2960
2961 cat >>confdefs.h <<_ACEOF
2962 #define VERSION "$VERSION"
2963 _ACEOF
2964
2965 # Some tools Automake needs.
2966
2967 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2968
2969
2970 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2971
2972
2973 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2974
2975
2976 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2977
2978
2979 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2980
2981 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2982
2983 # Installed binaries are usually stripped using `strip' when the user
2984 # run `make install-strip'.  However `strip' might not be the right
2985 # tool to use in cross-compilation environments, therefore Automake
2986 # will honor the `STRIP' environment variable to overrule this program.
2987 if test "$cross_compiling" != no; then
2988   if test -n "$ac_tool_prefix"; then
2989   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2990 set dummy ${ac_tool_prefix}strip; ac_word=$2
2991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2993 if test "${ac_cv_prog_STRIP+set}" = set; then
2994   echo $ECHO_N "(cached) $ECHO_C" >&6
2995 else
2996   if test -n "$STRIP"; then
2997   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002   IFS=$as_save_IFS
3003   test -z "$as_dir" && as_dir=.
3004   for ac_exec_ext in '' $ac_executable_extensions; do
3005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008     break 2
3009   fi
3010 done
3011 done
3012 IFS=$as_save_IFS
3013
3014 fi
3015 fi
3016 STRIP=$ac_cv_prog_STRIP
3017 if test -n "$STRIP"; then
3018   { echo "$as_me:$LINENO: result: $STRIP" >&5
3019 echo "${ECHO_T}$STRIP" >&6; }
3020 else
3021   { echo "$as_me:$LINENO: result: no" >&5
3022 echo "${ECHO_T}no" >&6; }
3023 fi
3024
3025
3026 fi
3027 if test -z "$ac_cv_prog_STRIP"; then
3028   ac_ct_STRIP=$STRIP
3029   # Extract the first word of "strip", so it can be a program name with args.
3030 set dummy strip; ac_word=$2
3031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3033 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3034   echo $ECHO_N "(cached) $ECHO_C" >&6
3035 else
3036   if test -n "$ac_ct_STRIP"; then
3037   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3041 do
3042   IFS=$as_save_IFS
3043   test -z "$as_dir" && as_dir=.
3044   for ac_exec_ext in '' $ac_executable_extensions; do
3045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3046     ac_cv_prog_ac_ct_STRIP="strip"
3047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048     break 2
3049   fi
3050 done
3051 done
3052 IFS=$as_save_IFS
3053
3054 fi
3055 fi
3056 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3057 if test -n "$ac_ct_STRIP"; then
3058   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3059 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
3060 else
3061   { echo "$as_me:$LINENO: result: no" >&5
3062 echo "${ECHO_T}no" >&6; }
3063 fi
3064
3065   if test "x$ac_ct_STRIP" = x; then
3066     STRIP=":"
3067   else
3068     case $cross_compiling:$ac_tool_warned in
3069 yes:)
3070 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3071 whose name does not start with the host triplet.  If you think this
3072 configuration is useful to you, please write to autoconf@gnu.org." >&5
3073 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3074 whose name does not start with the host triplet.  If you think this
3075 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3076 ac_tool_warned=yes ;;
3077 esac
3078     STRIP=$ac_ct_STRIP
3079   fi
3080 else
3081   STRIP="$ac_cv_prog_STRIP"
3082 fi
3083
3084 fi
3085 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3086
3087 # We need awk for the "check" target.  The system "awk" is bad on
3088 # some platforms.
3089 # Always define AMTAR for backward compatibility.
3090
3091 AMTAR=${AMTAR-"${am_missing_run}tar"}
3092
3093 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3094
3095
3096
3097
3098
3099 ac_config_headers="$ac_config_headers config/config.h"
3100
3101
3102
3103
3104 #
3105 # Take care of some early Amanda-specific setup
3106 #
3107
3108     # initialize warnings file
3109     rm -f config.warnings
3110
3111
3112     if test -f "$srcdir/SNAPSHOT"; then
3113       cat < "$srcdir/SNAPSHOT"
3114
3115       snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
3116
3117       test -z "$snapdate" || VERSION="$VERSION-$snapdate"
3118       SNAPSHOT_STAMP=SNAPSHOT
3119     else
3120       SNAPSHOT_STAMP=
3121     fi
3122
3123
3124
3125
3126     VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
3127     VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
3128     VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
3129     VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
3130
3131
3132     VERSION_SUFFIX="$VERSION"
3133
3134
3135
3136
3137
3138
3139
3140     if test -f config.local; then
3141         echo "running local script ./config.local"
3142         . ./config.local
3143     fi
3144
3145
3146 #
3147 # Set up compiler location, basic flags, and include locations
3148 # and library locations before we start checking the system
3149 # configuration in more detail...
3150 #
3151 ac_ext=c
3152 ac_cpp='$CPP $CPPFLAGS'
3153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3156 if test -n "$ac_tool_prefix"; then
3157   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3158 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3161 if test "${ac_cv_prog_CC+set}" = set; then
3162   echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164   if test -n "$CC"; then
3165   ac_cv_prog_CC="$CC" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170   IFS=$as_save_IFS
3171   test -z "$as_dir" && as_dir=.
3172   for ac_exec_ext in '' $ac_executable_extensions; do
3173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3174     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3176     break 2
3177   fi
3178 done
3179 done
3180 IFS=$as_save_IFS
3181
3182 fi
3183 fi
3184 CC=$ac_cv_prog_CC
3185 if test -n "$CC"; then
3186   { echo "$as_me:$LINENO: result: $CC" >&5
3187 echo "${ECHO_T}$CC" >&6; }
3188 else
3189   { echo "$as_me:$LINENO: result: no" >&5
3190 echo "${ECHO_T}no" >&6; }
3191 fi
3192
3193
3194 fi
3195 if test -z "$ac_cv_prog_CC"; then
3196   ac_ct_CC=$CC
3197   # Extract the first word of "gcc", so it can be a program name with args.
3198 set dummy gcc; ac_word=$2
3199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3202   echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204   if test -n "$ac_ct_CC"; then
3205   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210   IFS=$as_save_IFS
3211   test -z "$as_dir" && as_dir=.
3212   for ac_exec_ext in '' $ac_executable_extensions; do
3213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214     ac_cv_prog_ac_ct_CC="gcc"
3215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216     break 2
3217   fi
3218 done
3219 done
3220 IFS=$as_save_IFS
3221
3222 fi
3223 fi
3224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3225 if test -n "$ac_ct_CC"; then
3226   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3227 echo "${ECHO_T}$ac_ct_CC" >&6; }
3228 else
3229   { echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6; }
3231 fi
3232
3233   if test "x$ac_ct_CC" = x; then
3234     CC=""
3235   else
3236     case $cross_compiling:$ac_tool_warned in
3237 yes:)
3238 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3239 whose name does not start with the host triplet.  If you think this
3240 configuration is useful to you, please write to autoconf@gnu.org." >&5
3241 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3242 whose name does not start with the host triplet.  If you think this
3243 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3244 ac_tool_warned=yes ;;
3245 esac
3246     CC=$ac_ct_CC
3247   fi
3248 else
3249   CC="$ac_cv_prog_CC"
3250 fi
3251
3252 if test -z "$CC"; then
3253           if test -n "$ac_tool_prefix"; then
3254     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3255 set dummy ${ac_tool_prefix}cc; ac_word=$2
3256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3258 if test "${ac_cv_prog_CC+set}" = set; then
3259   echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261   if test -n "$CC"; then
3262   ac_cv_prog_CC="$CC" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
3267   IFS=$as_save_IFS
3268   test -z "$as_dir" && as_dir=.
3269   for ac_exec_ext in '' $ac_executable_extensions; do
3270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3271     ac_cv_prog_CC="${ac_tool_prefix}cc"
3272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3273     break 2
3274   fi
3275 done
3276 done
3277 IFS=$as_save_IFS
3278
3279 fi
3280 fi
3281 CC=$ac_cv_prog_CC
3282 if test -n "$CC"; then
3283   { echo "$as_me:$LINENO: result: $CC" >&5
3284 echo "${ECHO_T}$CC" >&6; }
3285 else
3286   { echo "$as_me:$LINENO: result: no" >&5
3287 echo "${ECHO_T}no" >&6; }
3288 fi
3289
3290
3291   fi
3292 fi
3293 if test -z "$CC"; then
3294   # Extract the first word of "cc", so it can be a program name with args.
3295 set dummy cc; ac_word=$2
3296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3298 if test "${ac_cv_prog_CC+set}" = set; then
3299   echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301   if test -n "$CC"; then
3302   ac_cv_prog_CC="$CC" # Let the user override the test.
3303 else
3304   ac_prog_rejected=no
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3307 do
3308   IFS=$as_save_IFS
3309   test -z "$as_dir" && as_dir=.
3310   for ac_exec_ext in '' $ac_executable_extensions; do
3311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3312     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3313        ac_prog_rejected=yes
3314        continue
3315      fi
3316     ac_cv_prog_CC="cc"
3317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3318     break 2
3319   fi
3320 done
3321 done
3322 IFS=$as_save_IFS
3323
3324 if test $ac_prog_rejected = yes; then
3325   # We found a bogon in the path, so make sure we never use it.
3326   set dummy $ac_cv_prog_CC
3327   shift
3328   if test $# != 0; then
3329     # We chose a different compiler from the bogus one.
3330     # However, it has the same basename, so the bogon will be chosen
3331     # first if we set CC to just the basename; use the full file name.
3332     shift
3333     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3334   fi
3335 fi
3336 fi
3337 fi
3338 CC=$ac_cv_prog_CC
3339 if test -n "$CC"; then
3340   { echo "$as_me:$LINENO: result: $CC" >&5
3341 echo "${ECHO_T}$CC" >&6; }
3342 else
3343   { echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6; }
3345 fi
3346
3347
3348 fi
3349 if test -z "$CC"; then
3350   if test -n "$ac_tool_prefix"; then
3351   for ac_prog in cl.exe
3352   do
3353     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3357 if test "${ac_cv_prog_CC+set}" = set; then
3358   echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360   if test -n "$CC"; then
3361   ac_cv_prog_CC="$CC" # Let the user override the test.
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366   IFS=$as_save_IFS
3367   test -z "$as_dir" && as_dir=.
3368   for ac_exec_ext in '' $ac_executable_extensions; do
3369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372     break 2
3373   fi
3374 done
3375 done
3376 IFS=$as_save_IFS
3377
3378 fi
3379 fi
3380 CC=$ac_cv_prog_CC
3381 if test -n "$CC"; then
3382   { echo "$as_me:$LINENO: result: $CC" >&5
3383 echo "${ECHO_T}$CC" >&6; }
3384 else
3385   { echo "$as_me:$LINENO: result: no" >&5
3386 echo "${ECHO_T}no" >&6; }
3387 fi
3388
3389
3390     test -n "$CC" && break
3391   done
3392 fi
3393 if test -z "$CC"; then
3394   ac_ct_CC=$CC
3395   for ac_prog in cl.exe
3396 do
3397   # Extract the first word of "$ac_prog", so it can be a program name with args.
3398 set dummy $ac_prog; ac_word=$2
3399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3402   echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404   if test -n "$ac_ct_CC"; then
3405   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3406 else
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3409 do
3410   IFS=$as_save_IFS
3411   test -z "$as_dir" && as_dir=.
3412   for ac_exec_ext in '' $ac_executable_extensions; do
3413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3414     ac_cv_prog_ac_ct_CC="$ac_prog"
3415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3416     break 2
3417   fi
3418 done
3419 done
3420 IFS=$as_save_IFS
3421
3422 fi
3423 fi
3424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3425 if test -n "$ac_ct_CC"; then
3426   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3427 echo "${ECHO_T}$ac_ct_CC" >&6; }
3428 else
3429   { echo "$as_me:$LINENO: result: no" >&5
3430 echo "${ECHO_T}no" >&6; }
3431 fi
3432
3433
3434   test -n "$ac_ct_CC" && break
3435 done
3436
3437   if test "x$ac_ct_CC" = x; then
3438     CC=""
3439   else
3440     case $cross_compiling:$ac_tool_warned in
3441 yes:)
3442 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3443 whose name does not start with the host triplet.  If you think this
3444 configuration is useful to you, please write to autoconf@gnu.org." >&5
3445 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3446 whose name does not start with the host triplet.  If you think this
3447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3448 ac_tool_warned=yes ;;
3449 esac
3450     CC=$ac_ct_CC
3451   fi
3452 fi
3453
3454 fi
3455
3456
3457 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3458 See \`config.log' for more details." >&5
3459 echo "$as_me: error: no acceptable C compiler found in \$PATH
3460 See \`config.log' for more details." >&2;}
3461    { (exit 1); exit 1; }; }
3462
3463 # Provide some information about the compiler.
3464 echo "$as_me:$LINENO: checking for C compiler version" >&5
3465 ac_compiler=`set X $ac_compile; echo $2`
3466 { (ac_try="$ac_compiler --version >&5"
3467 case "(($ac_try" in
3468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469   *) ac_try_echo=$ac_try;;
3470 esac
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472   (eval "$ac_compiler --version >&5") 2>&5
3473   ac_status=$?
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); }
3476 { (ac_try="$ac_compiler -v >&5"
3477 case "(($ac_try" in
3478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479   *) ac_try_echo=$ac_try;;
3480 esac
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482   (eval "$ac_compiler -v >&5") 2>&5
3483   ac_status=$?
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); }
3486 { (ac_try="$ac_compiler -V >&5"
3487 case "(($ac_try" in
3488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489   *) ac_try_echo=$ac_try;;
3490 esac
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492   (eval "$ac_compiler -V >&5") 2>&5
3493   ac_status=$?
3494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); }
3496
3497 cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h.  */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h.  */
3503
3504 int
3505 main ()
3506 {
3507
3508   ;
3509   return 0;
3510 }
3511 _ACEOF
3512 ac_clean_files_save=$ac_clean_files
3513 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3514 # Try to create an executable without -o first, disregard a.out.
3515 # It will help us diagnose broken compilers, and finding out an intuition
3516 # of exeext.
3517 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3518 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3519 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3520 #
3521 # List of possible output files, starting from the most likely.
3522 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3523 # only as a last resort.  b.out is created by i960 compilers.
3524 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3525 #
3526 # The IRIX 6 linker writes into existing files which may not be
3527 # executable, retaining their permissions.  Remove them first so a
3528 # subsequent execution test works.
3529 ac_rmfiles=
3530 for ac_file in $ac_files
3531 do
3532   case $ac_file in
3533     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3534     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3535   esac
3536 done
3537 rm -f $ac_rmfiles
3538
3539 if { (ac_try="$ac_link_default"
3540 case "(($ac_try" in
3541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542   *) ac_try_echo=$ac_try;;
3543 esac
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545   (eval "$ac_link_default") 2>&5
3546   ac_status=$?
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); }; then
3549   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3550 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3551 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3552 # so that the user can short-circuit this test for compilers unknown to
3553 # Autoconf.
3554 for ac_file in $ac_files ''
3555 do
3556   test -f "$ac_file" || continue
3557   case $ac_file in
3558     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3559         ;;
3560     [ab].out )
3561         # We found the default executable, but exeext='' is most
3562         # certainly right.
3563         break;;
3564     *.* )
3565         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3566         then :; else
3567            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3568         fi
3569         # We set ac_cv_exeext here because the later test for it is not
3570         # safe: cross compilers may not add the suffix if given an `-o'
3571         # argument, so we may need to know it at that point already.
3572         # Even if this section looks crufty: it has the advantage of
3573         # actually working.
3574         break;;
3575     * )
3576         break;;
3577   esac
3578 done
3579 test "$ac_cv_exeext" = no && ac_cv_exeext=
3580
3581 else
3582   ac_file=''
3583 fi
3584
3585 { echo "$as_me:$LINENO: result: $ac_file" >&5
3586 echo "${ECHO_T}$ac_file" >&6; }
3587 if test -z "$ac_file"; then
3588   echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3592 See \`config.log' for more details." >&5
3593 echo "$as_me: error: C compiler cannot create executables
3594 See \`config.log' for more details." >&2;}
3595    { (exit 77); exit 77; }; }
3596 fi
3597
3598 ac_exeext=$ac_cv_exeext
3599
3600 # Check that the compiler produces executables we can run.  If not, either
3601 # the compiler is broken, or we cross compile.
3602 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3603 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3604 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3605 # If not cross compiling, check that we can run a simple program.
3606 if test "$cross_compiling" != yes; then
3607   if { ac_try='./$ac_file'
3608   { (case "(($ac_try" in
3609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610   *) ac_try_echo=$ac_try;;
3611 esac
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613   (eval "$ac_try") 2>&5
3614   ac_status=$?
3615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616   (exit $ac_status); }; }; then
3617     cross_compiling=no
3618   else
3619     if test "$cross_compiling" = maybe; then
3620         cross_compiling=yes
3621     else
3622         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3623 If you meant to cross compile, use \`--host'.
3624 See \`config.log' for more details." >&5
3625 echo "$as_me: error: cannot run C compiled programs.
3626 If you meant to cross compile, use \`--host'.
3627 See \`config.log' for more details." >&2;}
3628    { (exit 1); exit 1; }; }
3629     fi
3630   fi
3631 fi
3632 { echo "$as_me:$LINENO: result: yes" >&5
3633 echo "${ECHO_T}yes" >&6; }
3634
3635 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3636 ac_clean_files=$ac_clean_files_save
3637 # Check that the compiler produces executables we can run.  If not, either
3638 # the compiler is broken, or we cross compile.
3639 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3640 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3641 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3642 echo "${ECHO_T}$cross_compiling" >&6; }
3643
3644 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3645 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3646 if { (ac_try="$ac_link"
3647 case "(($ac_try" in
3648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649   *) ac_try_echo=$ac_try;;
3650 esac
3651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652   (eval "$ac_link") 2>&5
3653   ac_status=$?
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); }; then
3656   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3657 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3658 # work properly (i.e., refer to `conftest.exe'), while it won't with
3659 # `rm'.
3660 for ac_file in conftest.exe conftest conftest.*; do
3661   test -f "$ac_file" || continue
3662   case $ac_file in
3663     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3664     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3665           break;;
3666     * ) break;;
3667   esac
3668 done
3669 else
3670   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3671 See \`config.log' for more details." >&5
3672 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3673 See \`config.log' for more details." >&2;}
3674    { (exit 1); exit 1; }; }
3675 fi
3676
3677 rm -f conftest$ac_cv_exeext
3678 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3679 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3680
3681 rm -f conftest.$ac_ext
3682 EXEEXT=$ac_cv_exeext
3683 ac_exeext=$EXEEXT
3684 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3685 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3686 if test "${ac_cv_objext+set}" = set; then
3687   echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689   cat >conftest.$ac_ext <<_ACEOF
3690 /* confdefs.h.  */
3691 _ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h.  */
3695
3696 int
3697 main ()
3698 {
3699
3700   ;
3701   return 0;
3702 }
3703 _ACEOF
3704 rm -f conftest.o conftest.obj
3705 if { (ac_try="$ac_compile"
3706 case "(($ac_try" in
3707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708   *) ac_try_echo=$ac_try;;
3709 esac
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711   (eval "$ac_compile") 2>&5
3712   ac_status=$?
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); }; then
3715   for ac_file in conftest.o conftest.obj conftest.*; do
3716   test -f "$ac_file" || continue;
3717   case $ac_file in
3718     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3719     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3720        break;;
3721   esac
3722 done
3723 else
3724   echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3726
3727 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3728 See \`config.log' for more details." >&5
3729 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3730 See \`config.log' for more details." >&2;}
3731    { (exit 1); exit 1; }; }
3732 fi
3733
3734 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3735 fi
3736 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3737 echo "${ECHO_T}$ac_cv_objext" >&6; }
3738 OBJEXT=$ac_cv_objext
3739 ac_objext=$OBJEXT
3740 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3741 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3742 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   cat >conftest.$ac_ext <<_ACEOF
3746 /* confdefs.h.  */
3747 _ACEOF
3748 cat confdefs.h >>conftest.$ac_ext
3749 cat >>conftest.$ac_ext <<_ACEOF
3750 /* end confdefs.h.  */
3751
3752 int
3753 main ()
3754 {
3755 #ifndef __GNUC__
3756        choke me
3757 #endif
3758
3759   ;
3760   return 0;
3761 }
3762 _ACEOF
3763 rm -f conftest.$ac_objext
3764 if { (ac_try="$ac_compile"
3765 case "(($ac_try" in
3766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767   *) ac_try_echo=$ac_try;;
3768 esac
3769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3770   (eval "$ac_compile") 2>conftest.er1
3771   ac_status=$?
3772   grep -v '^ *+' conftest.er1 >conftest.err
3773   rm -f conftest.er1
3774   cat conftest.err >&5
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); } && {
3777          test -z "$ac_c_werror_flag" ||
3778          test ! -s conftest.err
3779        } && test -s conftest.$ac_objext; then
3780   ac_compiler_gnu=yes
3781 else
3782   echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.$ac_ext >&5
3784
3785         ac_compiler_gnu=no
3786 fi
3787
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3790
3791 fi
3792 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3793 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3794 GCC=`test $ac_compiler_gnu = yes && echo yes`
3795 ac_test_CFLAGS=${CFLAGS+set}
3796 ac_save_CFLAGS=$CFLAGS
3797 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3798 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3799 if test "${ac_cv_prog_cc_g+set}" = set; then
3800   echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802   ac_save_c_werror_flag=$ac_c_werror_flag
3803    ac_c_werror_flag=yes
3804    ac_cv_prog_cc_g=no
3805    CFLAGS="-g"
3806    cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h.  */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h.  */
3812
3813 int
3814 main ()
3815 {
3816
3817   ;
3818   return 0;
3819 }
3820 _ACEOF
3821 rm -f conftest.$ac_objext
3822 if { (ac_try="$ac_compile"
3823 case "(($ac_try" in
3824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825   *) ac_try_echo=$ac_try;;
3826 esac
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828   (eval "$ac_compile") 2>conftest.er1
3829   ac_status=$?
3830   grep -v '^ *+' conftest.er1 >conftest.err
3831   rm -f conftest.er1
3832   cat conftest.err >&5
3833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); } && {
3835          test -z "$ac_c_werror_flag" ||
3836          test ! -s conftest.err
3837        } && test -s conftest.$ac_objext; then
3838   ac_cv_prog_cc_g=yes
3839 else
3840   echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3842
3843         CFLAGS=""
3844       cat >conftest.$ac_ext <<_ACEOF
3845 /* confdefs.h.  */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h.  */
3850
3851 int
3852 main ()
3853 {
3854
3855   ;
3856   return 0;
3857 }
3858 _ACEOF
3859 rm -f conftest.$ac_objext
3860 if { (ac_try="$ac_compile"
3861 case "(($ac_try" in
3862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863   *) ac_try_echo=$ac_try;;
3864 esac
3865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866   (eval "$ac_compile") 2>conftest.er1
3867   ac_status=$?
3868   grep -v '^ *+' conftest.er1 >conftest.err
3869   rm -f conftest.er1
3870   cat conftest.err >&5
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); } && {
3873          test -z "$ac_c_werror_flag" ||
3874          test ! -s conftest.err
3875        } && test -s conftest.$ac_objext; then
3876   :
3877 else
3878   echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3880
3881         ac_c_werror_flag=$ac_save_c_werror_flag
3882          CFLAGS="-g"
3883          cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h.  */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h.  */
3889
3890 int
3891 main ()
3892 {
3893
3894   ;
3895   return 0;
3896 }
3897 _ACEOF
3898 rm -f conftest.$ac_objext
3899 if { (ac_try="$ac_compile"
3900 case "(($ac_try" in
3901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902   *) ac_try_echo=$ac_try;;
3903 esac
3904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3905   (eval "$ac_compile") 2>conftest.er1
3906   ac_status=$?
3907   grep -v '^ *+' conftest.er1 >conftest.err
3908   rm -f conftest.er1
3909   cat conftest.err >&5
3910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911   (exit $ac_status); } && {
3912          test -z "$ac_c_werror_flag" ||
3913          test ! -s conftest.err
3914        } && test -s conftest.$ac_objext; then
3915   ac_cv_prog_cc_g=yes
3916 else
3917   echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3919
3920
3921 fi
3922
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 fi
3925
3926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927 fi
3928
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930    ac_c_werror_flag=$ac_save_c_werror_flag
3931 fi
3932 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3933 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3934 if test "$ac_test_CFLAGS" = set; then
3935   CFLAGS=$ac_save_CFLAGS
3936 elif test $ac_cv_prog_cc_g = yes; then
3937   if test "$GCC" = yes; then
3938     CFLAGS="-g -O2"
3939   else
3940     CFLAGS="-g"
3941   fi
3942 else
3943   if test "$GCC" = yes; then
3944     CFLAGS="-O2"
3945   else
3946     CFLAGS=
3947   fi
3948 fi
3949 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3950 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3951 if test "${ac_cv_prog_cc_c89+set}" = set; then
3952   echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954   ac_cv_prog_cc_c89=no
3955 ac_save_CC=$CC
3956 cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h.  */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h.  */
3962 #include <stdarg.h>
3963 #include <stdio.h>
3964 #include <sys/types.h>
3965 #include <sys/stat.h>
3966 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3967 struct buf { int x; };
3968 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3969 static char *e (p, i)
3970      char **p;
3971      int i;
3972 {
3973   return p[i];
3974 }
3975 static char *f (char * (*g) (char **, int), char **p, ...)
3976 {
3977   char *s;
3978   va_list v;
3979   va_start (v,p);
3980   s = g (p, va_arg (v,int));
3981   va_end (v);
3982   return s;
3983 }
3984
3985 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3986    function prototypes and stuff, but not '\xHH' hex character constants.
3987    These don't provoke an error unfortunately, instead are silently treated
3988    as 'x'.  The following induces an error, until -std is added to get
3989    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3990    array size at least.  It's necessary to write '\x00'==0 to get something
3991    that's true only with -std.  */
3992 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3993
3994 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3995    inside strings and character constants.  */
3996 #define FOO(x) 'x'
3997 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3998
3999 int test (int i, double x);
4000 struct s1 {int (*f) (int a);};
4001 struct s2 {int (*f) (double a);};
4002 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4003 int argc;
4004 char **argv;
4005 int
4006 main ()
4007 {
4008 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4009   ;
4010   return 0;
4011 }
4012 _ACEOF
4013 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4014         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4015 do
4016   CC="$ac_save_CC $ac_arg"
4017   rm -f conftest.$ac_objext
4018 if { (ac_try="$ac_compile"
4019 case "(($ac_try" in
4020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021   *) ac_try_echo=$ac_try;;
4022 esac
4023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4024   (eval "$ac_compile") 2>conftest.er1
4025   ac_status=$?
4026   grep -v '^ *+' conftest.er1 >conftest.err
4027   rm -f conftest.er1
4028   cat conftest.err >&5
4029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030   (exit $ac_status); } && {
4031          test -z "$ac_c_werror_flag" ||
4032          test ! -s conftest.err
4033        } && test -s conftest.$ac_objext; then
4034   ac_cv_prog_cc_c89=$ac_arg
4035 else
4036   echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4038
4039
4040 fi
4041
4042 rm -f core conftest.err conftest.$ac_objext
4043   test "x$ac_cv_prog_cc_c89" != "xno" && break
4044 done
4045 rm -f conftest.$ac_ext
4046 CC=$ac_save_CC
4047
4048 fi
4049 # AC_CACHE_VAL
4050 case "x$ac_cv_prog_cc_c89" in
4051   x)
4052     { echo "$as_me:$LINENO: result: none needed" >&5
4053 echo "${ECHO_T}none needed" >&6; } ;;
4054   xno)
4055     { echo "$as_me:$LINENO: result: unsupported" >&5
4056 echo "${ECHO_T}unsupported" >&6; } ;;
4057   *)
4058     CC="$CC $ac_cv_prog_cc_c89"
4059     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4060 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4061 esac
4062
4063
4064 ac_ext=c
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069 DEPDIR="${am__leading_dot}deps"
4070
4071 ac_config_commands="$ac_config_commands depfiles"
4072
4073
4074 am_make=${MAKE-make}
4075 cat > confinc << 'END'
4076 am__doit:
4077         @echo done
4078 .PHONY: am__doit
4079 END
4080 # If we don't find an include directive, just comment out the code.
4081 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4082 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4083 am__include="#"
4084 am__quote=
4085 _am_result=none
4086 # First try GNU make style include.
4087 echo "include confinc" > confmf
4088 # We grep out `Entering directory' and `Leaving directory'
4089 # messages which can occur if `w' ends up in MAKEFLAGS.
4090 # In particular we don't look at `^make:' because GNU make might
4091 # be invoked under some other name (usually "gmake"), in which
4092 # case it prints its new name instead of `make'.
4093 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4094    am__include=include
4095    am__quote=
4096    _am_result=GNU
4097 fi
4098 # Now try BSD make style include.
4099 if test "$am__include" = "#"; then
4100    echo '.include "confinc"' > confmf
4101    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4102       am__include=.include
4103       am__quote="\""
4104       _am_result=BSD
4105    fi
4106 fi
4107
4108
4109 { echo "$as_me:$LINENO: result: $_am_result" >&5
4110 echo "${ECHO_T}$_am_result" >&6; }
4111 rm -f confinc confmf
4112
4113 # Check whether --enable-dependency-tracking was given.
4114 if test "${enable_dependency_tracking+set}" = set; then
4115   enableval=$enable_dependency_tracking;
4116 fi
4117
4118 if test "x$enable_dependency_tracking" != xno; then
4119   am_depcomp="$ac_aux_dir/depcomp"
4120   AMDEPBACKSLASH='\'
4121 fi
4122  if test "x$enable_dependency_tracking" != xno; then
4123   AMDEP_TRUE=
4124   AMDEP_FALSE='#'
4125 else
4126   AMDEP_TRUE='#'
4127   AMDEP_FALSE=
4128 fi
4129
4130
4131
4132 depcc="$CC"   am_compiler_list=
4133
4134 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4135 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4136 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4137   echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4140   # We make a subdir and do the tests there.  Otherwise we can end up
4141   # making bogus files that we don't know about and never remove.  For
4142   # instance it was reported that on HP-UX the gcc test will end up
4143   # making a dummy file named `D' -- because `-MD' means `put the output
4144   # in D'.
4145   mkdir conftest.dir
4146   # Copy depcomp to subdir because otherwise we won't find it if we're
4147   # using a relative directory.
4148   cp "$am_depcomp" conftest.dir
4149   cd conftest.dir
4150   # We will build objects and dependencies in a subdirectory because
4151   # it helps to detect inapplicable dependency modes.  For instance
4152   # both Tru64's cc and ICC support -MD to output dependencies as a
4153   # side effect of compilation, but ICC will put the dependencies in
4154   # the current directory while Tru64 will put them in the object
4155   # directory.
4156   mkdir sub
4157
4158   am_cv_CC_dependencies_compiler_type=none
4159   if test "$am_compiler_list" = ""; then
4160      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4161   fi
4162   for depmode in $am_compiler_list; do
4163     # Setup a source with many dependencies, because some compilers
4164     # like to wrap large dependency lists on column 80 (with \), and
4165     # we should not choose a depcomp mode which is confused by this.
4166     #
4167     # We need to recreate these files for each test, as the compiler may
4168     # overwrite some of them when testing with obscure command lines.
4169     # This happens at least with the AIX C compiler.
4170     : > sub/conftest.c
4171     for i in 1 2 3 4 5 6; do
4172       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4173       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4174       # Solaris 8's {/usr,}/bin/sh.
4175       touch sub/conftst$i.h
4176     done
4177     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4178
4179     case $depmode in
4180     nosideeffect)
4181       # after this tag, mechanisms are not by side-effect, so they'll
4182       # only be used when explicitly requested
4183       if test "x$enable_dependency_tracking" = xyes; then
4184         continue
4185       else
4186         break
4187       fi
4188       ;;
4189     none) break ;;
4190     esac
4191     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4192     # mode.  It turns out that the SunPro C++ compiler does not properly
4193     # handle `-M -o', and we need to detect this.
4194     if depmode=$depmode \
4195        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4196        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4197        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4198          >/dev/null 2>conftest.err &&
4199        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4200        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4201        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4202        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4203       # icc doesn't choke on unknown options, it will just issue warnings
4204       # or remarks (even with -Werror).  So we grep stderr for any message
4205       # that says an option was ignored or not supported.
4206       # When given -MP, icc 7.0 and 7.1 complain thusly:
4207       #   icc: Command line warning: ignoring option '-M'; no argument required
4208       # The diagnosis changed in icc 8.0:
4209       #   icc: Command line remark: option '-MP' not supported
4210       if (grep 'ignoring option' conftest.err ||
4211           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4212         am_cv_CC_dependencies_compiler_type=$depmode
4213         break
4214       fi
4215     fi
4216   done
4217
4218   cd ..
4219   rm -rf conftest.dir
4220 else
4221   am_cv_CC_dependencies_compiler_type=none
4222 fi
4223
4224 fi
4225 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4226 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4227 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4228
4229  if
4230   test "x$enable_dependency_tracking" != xno \
4231   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4232   am__fastdepCC_TRUE=
4233   am__fastdepCC_FALSE='#'
4234 else
4235   am__fastdepCC_TRUE='#'
4236   am__fastdepCC_FALSE=
4237 fi
4238
4239
4240 if test -n "$ac_tool_prefix"; then
4241   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4245 if test "${ac_cv_prog_RANLIB+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   if test -n "$RANLIB"; then
4249   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4253 do
4254   IFS=$as_save_IFS
4255   test -z "$as_dir" && as_dir=.
4256   for ac_exec_ext in '' $ac_executable_extensions; do
4257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4258     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260     break 2
4261   fi
4262 done
4263 done
4264 IFS=$as_save_IFS
4265
4266 fi
4267 fi
4268 RANLIB=$ac_cv_prog_RANLIB
4269 if test -n "$RANLIB"; then
4270   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4271 echo "${ECHO_T}$RANLIB" >&6; }
4272 else
4273   { echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6; }
4275 fi
4276
4277
4278 fi
4279 if test -z "$ac_cv_prog_RANLIB"; then
4280   ac_ct_RANLIB=$RANLIB
4281   # Extract the first word of "ranlib", so it can be a program name with args.
4282 set dummy ranlib; ac_word=$2
4283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4285 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4286   echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288   if test -n "$ac_ct_RANLIB"; then
4289   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4290 else
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4293 do
4294   IFS=$as_save_IFS
4295   test -z "$as_dir" && as_dir=.
4296   for ac_exec_ext in '' $ac_executable_extensions; do
4297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4298     ac_cv_prog_ac_ct_RANLIB="ranlib"
4299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4300     break 2
4301   fi
4302 done
4303 done
4304 IFS=$as_save_IFS
4305
4306 fi
4307 fi
4308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4309 if test -n "$ac_ct_RANLIB"; then
4310   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4311 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4312 else
4313   { echo "$as_me:$LINENO: result: no" >&5
4314 echo "${ECHO_T}no" >&6; }
4315 fi
4316
4317   if test "x$ac_ct_RANLIB" = x; then
4318     RANLIB=":"
4319   else
4320     case $cross_compiling:$ac_tool_warned in
4321 yes:)
4322 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4323 whose name does not start with the host triplet.  If you think this
4324 configuration is useful to you, please write to autoconf@gnu.org." >&5
4325 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4326 whose name does not start with the host triplet.  If you think this
4327 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4328 ac_tool_warned=yes ;;
4329 esac
4330     RANLIB=$ac_ct_RANLIB
4331   fi
4332 else
4333   RANLIB="$ac_cv_prog_RANLIB"
4334 fi
4335
4336
4337 cat >>confdefs.h <<\_ACEOF
4338 #define _GNU_SOURCE 1
4339 _ACEOF
4340
4341
4342
4343 ac_ext=c
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4349 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4350 # On Suns, sometimes $CPP names a directory.
4351 if test -n "$CPP" && test -d "$CPP"; then
4352   CPP=
4353 fi
4354 if test -z "$CPP"; then
4355   if test "${ac_cv_prog_CPP+set}" = set; then
4356   echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358       # Double quotes because CPP needs to be expanded
4359     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4360     do
4361       ac_preproc_ok=false
4362 for ac_c_preproc_warn_flag in '' yes
4363 do
4364   # Use a header file that comes with gcc, so configuring glibc
4365   # with a fresh cross-compiler works.
4366   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4367   # <limits.h> exists even on freestanding compilers.
4368   # On the NeXT, cc -E runs the code through the compiler's parser,
4369   # not just through cpp. "Syntax error" is here to catch this case.
4370   cat >conftest.$ac_ext <<_ACEOF
4371 /* confdefs.h.  */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h.  */
4376 #ifdef __STDC__
4377 # include <limits.h>
4378 #else
4379 # include <assert.h>
4380 #endif
4381                      Syntax error
4382 _ACEOF
4383 if { (ac_try="$ac_cpp conftest.$ac_ext"
4384 case "(($ac_try" in
4385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386   *) ac_try_echo=$ac_try;;
4387 esac
4388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4389   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4390   ac_status=$?
4391   grep -v '^ *+' conftest.er1 >conftest.err
4392   rm -f conftest.er1
4393   cat conftest.err >&5
4394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395   (exit $ac_status); } >/dev/null && {
4396          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4397          test ! -s conftest.err
4398        }; then
4399   :
4400 else
4401   echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4403
4404   # Broken: fails on valid input.
4405 continue
4406 fi
4407
4408 rm -f conftest.err conftest.$ac_ext
4409
4410   # OK, works on sane cases.  Now check whether nonexistent headers
4411   # can be detected and how.
4412   cat >conftest.$ac_ext <<_ACEOF
4413 /* confdefs.h.  */
4414 _ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h.  */
4418 #include <ac_nonexistent.h>
4419 _ACEOF
4420 if { (ac_try="$ac_cpp conftest.$ac_ext"
4421 case "(($ac_try" in
4422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423   *) ac_try_echo=$ac_try;;
4424 esac
4425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4427   ac_status=$?
4428   grep -v '^ *+' conftest.er1 >conftest.err
4429   rm -f conftest.er1
4430   cat conftest.err >&5
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); } >/dev/null && {
4433          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4434          test ! -s conftest.err
4435        }; then
4436   # Broken: success on invalid input.
4437 continue
4438 else
4439   echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4441
4442   # Passes both tests.
4443 ac_preproc_ok=:
4444 break
4445 fi
4446
4447 rm -f conftest.err conftest.$ac_ext
4448
4449 done
4450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4451 rm -f conftest.err conftest.$ac_ext
4452 if $ac_preproc_ok; then
4453   break
4454 fi
4455
4456     done
4457     ac_cv_prog_CPP=$CPP
4458
4459 fi
4460   CPP=$ac_cv_prog_CPP
4461 else
4462   ac_cv_prog_CPP=$CPP
4463 fi
4464 { echo "$as_me:$LINENO: result: $CPP" >&5
4465 echo "${ECHO_T}$CPP" >&6; }
4466 ac_preproc_ok=false
4467 for ac_c_preproc_warn_flag in '' yes
4468 do
4469   # Use a header file that comes with gcc, so configuring glibc
4470   # with a fresh cross-compiler works.
4471   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4472   # <limits.h> exists even on freestanding compilers.
4473   # On the NeXT, cc -E runs the code through the compiler's parser,
4474   # not just through cpp. "Syntax error" is here to catch this case.
4475   cat >conftest.$ac_ext <<_ACEOF
4476 /* confdefs.h.  */
4477 _ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h.  */
4481 #ifdef __STDC__
4482 # include <limits.h>
4483 #else
4484 # include <assert.h>
4485 #endif
4486                      Syntax error
4487 _ACEOF
4488 if { (ac_try="$ac_cpp conftest.$ac_ext"
4489 case "(($ac_try" in
4490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491   *) ac_try_echo=$ac_try;;
4492 esac
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4495   ac_status=$?
4496   grep -v '^ *+' conftest.er1 >conftest.err
4497   rm -f conftest.er1
4498   cat conftest.err >&5
4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500   (exit $ac_status); } >/dev/null && {
4501          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4502          test ! -s conftest.err
4503        }; then
4504   :
4505 else
4506   echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4508
4509   # Broken: fails on valid input.
4510 continue
4511 fi
4512
4513 rm -f conftest.err conftest.$ac_ext
4514
4515   # OK, works on sane cases.  Now check whether nonexistent headers
4516   # can be detected and how.
4517   cat >conftest.$ac_ext <<_ACEOF
4518 /* confdefs.h.  */
4519 _ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h.  */
4523 #include <ac_nonexistent.h>
4524 _ACEOF
4525 if { (ac_try="$ac_cpp conftest.$ac_ext"
4526 case "(($ac_try" in
4527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528   *) ac_try_echo=$ac_try;;
4529 esac
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4532   ac_status=$?
4533   grep -v '^ *+' conftest.er1 >conftest.err
4534   rm -f conftest.er1
4535   cat conftest.err >&5
4536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); } >/dev/null && {
4538          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4539          test ! -s conftest.err
4540        }; then
4541   # Broken: success on invalid input.
4542 continue
4543 else
4544   echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4546
4547   # Passes both tests.
4548 ac_preproc_ok=:
4549 break
4550 fi
4551
4552 rm -f conftest.err conftest.$ac_ext
4553
4554 done
4555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4556 rm -f conftest.err conftest.$ac_ext
4557 if $ac_preproc_ok; then
4558   :
4559 else
4560   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4561 See \`config.log' for more details." >&5
4562 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4563 See \`config.log' for more details." >&2;}
4564    { (exit 1); exit 1; }; }
4565 fi
4566
4567 ac_ext=c
4568 ac_cpp='$CPP $CPPFLAGS'
4569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4572
4573
4574 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4575 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4576 if test "${ac_cv_path_GREP+set}" = set; then
4577   echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579   # Extract the first word of "grep ggrep" to use in msg output
4580 if test -z "$GREP"; then
4581 set dummy grep ggrep; ac_prog_name=$2
4582 if test "${ac_cv_path_GREP+set}" = set; then
4583   echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585   ac_path_GREP_found=false
4586 # Loop through the user's path and test for each of PROGNAME-LIST
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4589 do
4590   IFS=$as_save_IFS
4591   test -z "$as_dir" && as_dir=.
4592   for ac_prog in grep ggrep; do
4593   for ac_exec_ext in '' $ac_executable_extensions; do
4594     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4595     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4596     # Check for GNU ac_path_GREP and select it if it is found.
4597   # Check for GNU $ac_path_GREP
4598 case `"$ac_path_GREP" --version 2>&1` in
4599 *GNU*)
4600   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4601 *)
4602   ac_count=0
4603   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4604   while :
4605   do
4606     cat "conftest.in" "conftest.in" >"conftest.tmp"
4607     mv "conftest.tmp" "conftest.in"
4608     cp "conftest.in" "conftest.nl"
4609     echo 'GREP' >> "conftest.nl"
4610     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4611     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4612     ac_count=`expr $ac_count + 1`
4613     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4614       # Best one so far, save it but keep looking for a better one
4615       ac_cv_path_GREP="$ac_path_GREP"
4616       ac_path_GREP_max=$ac_count
4617     fi
4618     # 10*(2^10) chars as input seems more than enough
4619     test $ac_count -gt 10 && break
4620   done
4621   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4622 esac
4623
4624
4625     $ac_path_GREP_found && break 3
4626   done
4627 done
4628
4629 done
4630 IFS=$as_save_IFS
4631
4632
4633 fi
4634
4635 GREP="$ac_cv_path_GREP"
4636 if test -z "$GREP"; then
4637   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4638 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4639    { (exit 1); exit 1; }; }
4640 fi
4641
4642 else
4643   ac_cv_path_GREP=$GREP
4644 fi
4645
4646
4647 fi
4648 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4649 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4650  GREP="$ac_cv_path_GREP"
4651
4652
4653 { echo "$as_me:$LINENO: checking for egrep" >&5
4654 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4655 if test "${ac_cv_path_EGREP+set}" = set; then
4656   echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4659    then ac_cv_path_EGREP="$GREP -E"
4660    else
4661      # Extract the first word of "egrep" to use in msg output
4662 if test -z "$EGREP"; then
4663 set dummy egrep; ac_prog_name=$2
4664 if test "${ac_cv_path_EGREP+set}" = set; then
4665   echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667   ac_path_EGREP_found=false
4668 # Loop through the user's path and test for each of PROGNAME-LIST
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4671 do
4672   IFS=$as_save_IFS
4673   test -z "$as_dir" && as_dir=.
4674   for ac_prog in egrep; do
4675   for ac_exec_ext in '' $ac_executable_extensions; do
4676     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4677     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4678     # Check for GNU ac_path_EGREP and select it if it is found.
4679   # Check for GNU $ac_path_EGREP
4680 case `"$ac_path_EGREP" --version 2>&1` in
4681 *GNU*)
4682   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4683 *)
4684   ac_count=0
4685   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4686   while :
4687   do
4688     cat "conftest.in" "conftest.in" >"conftest.tmp"
4689     mv "conftest.tmp" "conftest.in"
4690     cp "conftest.in" "conftest.nl"
4691     echo 'EGREP' >> "conftest.nl"
4692     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4693     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4694     ac_count=`expr $ac_count + 1`
4695     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4696       # Best one so far, save it but keep looking for a better one
4697       ac_cv_path_EGREP="$ac_path_EGREP"
4698       ac_path_EGREP_max=$ac_count
4699     fi
4700     # 10*(2^10) chars as input seems more than enough
4701     test $ac_count -gt 10 && break
4702   done
4703   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4704 esac
4705
4706
4707     $ac_path_EGREP_found && break 3
4708   done
4709 done
4710
4711 done
4712 IFS=$as_save_IFS
4713
4714
4715 fi
4716
4717 EGREP="$ac_cv_path_EGREP"
4718 if test -z "$EGREP"; then
4719   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4720 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4721    { (exit 1); exit 1; }; }
4722 fi
4723
4724 else
4725   ac_cv_path_EGREP=$EGREP
4726 fi
4727
4728
4729    fi
4730 fi
4731 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4732 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4733  EGREP="$ac_cv_path_EGREP"
4734
4735
4736 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4737 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4738 if test "${ac_cv_header_stdc+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h.  */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h.  */
4747 #include <stdlib.h>
4748 #include <stdarg.h>
4749 #include <string.h>
4750 #include <float.h>
4751
4752 int
4753 main ()
4754 {
4755
4756   ;
4757   return 0;
4758 }
4759 _ACEOF
4760 rm -f conftest.$ac_objext
4761 if { (ac_try="$ac_compile"
4762 case "(($ac_try" in
4763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764   *) ac_try_echo=$ac_try;;
4765 esac
4766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767   (eval "$ac_compile") 2>conftest.er1
4768   ac_status=$?
4769   grep -v '^ *+' conftest.er1 >conftest.err
4770   rm -f conftest.er1
4771   cat conftest.err >&5
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); } && {
4774          test -z "$ac_c_werror_flag" ||
4775          test ! -s conftest.err
4776        } && test -s conftest.$ac_objext; then
4777   ac_cv_header_stdc=yes
4778 else
4779   echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4781
4782         ac_cv_header_stdc=no
4783 fi
4784
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786
4787 if test $ac_cv_header_stdc = yes; then
4788   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4789   cat >conftest.$ac_ext <<_ACEOF
4790 /* confdefs.h.  */
4791 _ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h.  */
4795 #include <string.h>
4796
4797 _ACEOF
4798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4799   $EGREP "memchr" >/dev/null 2>&1; then
4800   :
4801 else
4802   ac_cv_header_stdc=no
4803 fi
4804 rm -f conftest*
4805
4806 fi
4807
4808 if test $ac_cv_header_stdc = yes; then
4809   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4810   cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h.  */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h.  */
4816 #include <stdlib.h>
4817
4818 _ACEOF
4819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4820   $EGREP "free" >/dev/null 2>&1; then
4821   :
4822 else
4823   ac_cv_header_stdc=no
4824 fi
4825 rm -f conftest*
4826
4827 fi
4828
4829 if test $ac_cv_header_stdc = yes; then
4830   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4831   if test "$cross_compiling" = yes; then
4832   :
4833 else
4834   cat >conftest.$ac_ext <<_ACEOF
4835 /* confdefs.h.  */
4836 _ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h.  */
4840 #include <ctype.h>
4841 #include <stdlib.h>
4842 #if ((' ' & 0x0FF) == 0x020)
4843 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4844 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4845 #else
4846 # define ISLOWER(c) \
4847                    (('a' <= (c) && (c) <= 'i') \
4848                      || ('j' <= (c) && (c) <= 'r') \
4849                      || ('s' <= (c) && (c) <= 'z'))
4850 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4851 #endif
4852
4853 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4854 int
4855 main ()
4856 {
4857   int i;
4858   for (i = 0; i < 256; i++)
4859     if (XOR (islower (i), ISLOWER (i))
4860         || toupper (i) != TOUPPER (i))
4861       return 2;
4862   return 0;
4863 }
4864 _ACEOF
4865 rm -f conftest$ac_exeext
4866 if { (ac_try="$ac_link"
4867 case "(($ac_try" in
4868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869   *) ac_try_echo=$ac_try;;
4870 esac
4871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4872   (eval "$ac_link") 2>&5
4873   ac_status=$?
4874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4876   { (case "(($ac_try" in
4877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878   *) ac_try_echo=$ac_try;;
4879 esac
4880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4881   (eval "$ac_try") 2>&5
4882   ac_status=$?
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); }; }; then
4885   :
4886 else
4887   echo "$as_me: program exited with status $ac_status" >&5
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891 ( exit $ac_status )
4892 ac_cv_header_stdc=no
4893 fi
4894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4895 fi
4896
4897
4898 fi
4899 fi
4900 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4901 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4902 if test $ac_cv_header_stdc = yes; then
4903
4904 cat >>confdefs.h <<\_ACEOF
4905 #define STDC_HEADERS 1
4906 _ACEOF
4907
4908 fi
4909
4910 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4921                   inttypes.h stdint.h unistd.h
4922 do
4923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4927   echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929   cat >conftest.$ac_ext <<_ACEOF
4930 /* confdefs.h.  */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h.  */
4935 $ac_includes_default
4936
4937 #include <$ac_header>
4938 _ACEOF
4939 rm -f conftest.$ac_objext
4940 if { (ac_try="$ac_compile"
4941 case "(($ac_try" in
4942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943   *) ac_try_echo=$ac_try;;
4944 esac
4945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4946   (eval "$ac_compile") 2>conftest.er1
4947   ac_status=$?
4948   grep -v '^ *+' conftest.er1 >conftest.err
4949   rm -f conftest.er1
4950   cat conftest.err >&5
4951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952   (exit $ac_status); } && {
4953          test -z "$ac_c_werror_flag" ||
4954          test ! -s conftest.err
4955        } && test -s conftest.$ac_objext; then
4956   eval "$as_ac_Header=yes"
4957 else
4958   echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4960
4961         eval "$as_ac_Header=no"
4962 fi
4963
4964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965 fi
4966 ac_res=`eval echo '${'$as_ac_Header'}'`
4967                { echo "$as_me:$LINENO: result: $ac_res" >&5
4968 echo "${ECHO_T}$ac_res" >&6; }
4969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4970   cat >>confdefs.h <<_ACEOF
4971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4972 _ACEOF
4973
4974 fi
4975
4976 done
4977
4978
4979
4980   if test "${ac_cv_header_minix_config_h+set}" = set; then
4981   { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4982 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4983 if test "${ac_cv_header_minix_config_h+set}" = set; then
4984   echo $ECHO_N "(cached) $ECHO_C" >&6
4985 fi
4986 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4987 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4988 else
4989   # Is the header compilable?
4990 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4991 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4992 cat >conftest.$ac_ext <<_ACEOF
4993 /* confdefs.h.  */
4994 _ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h.  */
4998 $ac_includes_default
4999 #include <minix/config.h>
5000 _ACEOF
5001 rm -f conftest.$ac_objext
5002 if { (ac_try="$ac_compile"
5003 case "(($ac_try" in
5004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005   *) ac_try_echo=$ac_try;;
5006 esac
5007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5008   (eval "$ac_compile") 2>conftest.er1
5009   ac_status=$?
5010   grep -v '^ *+' conftest.er1 >conftest.err
5011   rm -f conftest.er1
5012   cat conftest.err >&5
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); } && {
5015          test -z "$ac_c_werror_flag" ||
5016          test ! -s conftest.err
5017        } && test -s conftest.$ac_objext; then
5018   ac_header_compiler=yes
5019 else
5020   echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5022
5023         ac_header_compiler=no
5024 fi
5025
5026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5028 echo "${ECHO_T}$ac_header_compiler" >&6; }
5029
5030 # Is the header present?
5031 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5032 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
5033 cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h.  */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h.  */
5039 #include <minix/config.h>
5040 _ACEOF
5041 if { (ac_try="$ac_cpp conftest.$ac_ext"
5042 case "(($ac_try" in
5043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044   *) ac_try_echo=$ac_try;;
5045 esac
5046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5048   ac_status=$?
5049   grep -v '^ *+' conftest.er1 >conftest.err
5050   rm -f conftest.er1
5051   cat conftest.err >&5
5052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053   (exit $ac_status); } >/dev/null && {
5054          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5055          test ! -s conftest.err
5056        }; then
5057   ac_header_preproc=yes
5058 else
5059   echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5061
5062   ac_header_preproc=no
5063 fi
5064
5065 rm -f conftest.err conftest.$ac_ext
5066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5067 echo "${ECHO_T}$ac_header_preproc" >&6; }
5068
5069 # So?  What about this header?
5070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5071   yes:no: )
5072     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5073 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5074     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5075 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5076     ac_header_preproc=yes
5077     ;;
5078   no:yes:* )
5079     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5080 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5081     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
5082 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
5083     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5084 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5085     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
5086 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5087     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5088 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5089     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5090 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5091
5092     ;;
5093 esac
5094 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
5095 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
5096 if test "${ac_cv_header_minix_config_h+set}" = set; then
5097   echo $ECHO_N "(cached) $ECHO_C" >&6
5098 else
5099   ac_cv_header_minix_config_h=$ac_header_preproc
5100 fi
5101 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5102 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
5103
5104 fi
5105 if test $ac_cv_header_minix_config_h = yes; then
5106   MINIX=yes
5107 else
5108   MINIX=
5109 fi
5110
5111
5112   if test "$MINIX" = yes; then
5113
5114 cat >>confdefs.h <<\_ACEOF
5115 #define _POSIX_SOURCE 1
5116 _ACEOF
5117
5118
5119 cat >>confdefs.h <<\_ACEOF
5120 #define _POSIX_1_SOURCE 2
5121 _ACEOF
5122
5123
5124 cat >>confdefs.h <<\_ACEOF
5125 #define _MINIX 1
5126 _ACEOF
5127
5128   fi
5129
5130
5131
5132   { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5133 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
5134 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   cat >conftest.$ac_ext <<_ACEOF
5138 /* confdefs.h.  */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h.  */
5143
5144 #         define __EXTENSIONS__ 1
5145           $ac_includes_default
5146 int
5147 main ()
5148 {
5149
5150   ;
5151   return 0;
5152 }
5153 _ACEOF
5154 rm -f conftest.$ac_objext
5155 if { (ac_try="$ac_compile"
5156 case "(($ac_try" in
5157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158   *) ac_try_echo=$ac_try;;
5159 esac
5160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161   (eval "$ac_compile") 2>conftest.er1
5162   ac_status=$?
5163   grep -v '^ *+' conftest.er1 >conftest.err
5164   rm -f conftest.er1
5165   cat conftest.err >&5
5166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); } && {
5168          test -z "$ac_c_werror_flag" ||
5169          test ! -s conftest.err
5170        } && test -s conftest.$ac_objext; then
5171   ac_cv_safe_to_define___extensions__=yes
5172 else
5173   echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5175
5176         ac_cv_safe_to_define___extensions__=no
5177 fi
5178
5179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180 fi
5181 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5182 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
5183   test $ac_cv_safe_to_define___extensions__ = yes &&
5184     cat >>confdefs.h <<\_ACEOF
5185 #define __EXTENSIONS__ 1
5186 _ACEOF
5187
5188   cat >>confdefs.h <<\_ACEOF
5189 #define _ALL_SOURCE 1
5190 _ACEOF
5191
5192   cat >>confdefs.h <<\_ACEOF
5193 #define _GNU_SOURCE 1
5194 _ACEOF
5195
5196   cat >>confdefs.h <<\_ACEOF
5197 #define _POSIX_PTHREAD_SEMANTICS 1
5198 _ACEOF
5199
5200   cat >>confdefs.h <<\_ACEOF
5201 #define _TANDEM_SOURCE 1
5202 _ACEOF
5203
5204
5205
5206
5207
5208
5209
5210     # Check whether --enable-threads was given.
5211 if test "${enable_threads+set}" = set; then
5212   enableval=$enable_threads; gl_use_threads=$enableval
5213 else
5214   case "$host_os" in
5215                             osf*) gl_use_threads=no ;;
5216        *)    gl_use_threads=yes ;;
5217      esac
5218
5219 fi
5220
5221   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5222     # For using <pthread.h>:
5223     case "$host_os" in
5224       osf*)
5225         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5226         # groks <pthread.h>. cc also understands the flag -pthread, but
5227         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5228         # 2. putting a flag into CPPFLAGS that has an effect on the linker
5229         # causes the AC_TRY_LINK test below to succeed unexpectedly,
5230         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5231         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5232         ;;
5233     esac
5234     # Some systems optimize for single-threaded programs by default, and
5235     # need special flags to disable these optimizations. For example, the
5236     # definition of 'errno' in <errno.h>.
5237     case "$host_os" in
5238       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5239       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5240     esac
5241   fi
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5253 # for constant arguments.  Useless!
5254 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5255 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5256 if test "${ac_cv_working_alloca_h+set}" = set; then
5257   echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259   cat >conftest.$ac_ext <<_ACEOF
5260 /* confdefs.h.  */
5261 _ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h.  */
5265 #include <alloca.h>
5266 int
5267 main ()
5268 {
5269 char *p = (char *) alloca (2 * sizeof (int));
5270                           if (p) return 0;
5271   ;
5272   return 0;
5273 }
5274 _ACEOF
5275 rm -f conftest.$ac_objext conftest$ac_exeext
5276 if { (ac_try="$ac_link"
5277 case "(($ac_try" in
5278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279   *) ac_try_echo=$ac_try;;
5280 esac
5281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282   (eval "$ac_link") 2>conftest.er1
5283   ac_status=$?
5284   grep -v '^ *+' conftest.er1 >conftest.err
5285   rm -f conftest.er1
5286   cat conftest.err >&5
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); } && {
5289          test -z "$ac_c_werror_flag" ||
5290          test ! -s conftest.err
5291        } && test -s conftest$ac_exeext &&
5292        $as_test_x conftest$ac_exeext; then
5293   ac_cv_working_alloca_h=yes
5294 else
5295   echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5297
5298         ac_cv_working_alloca_h=no
5299 fi
5300
5301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5302       conftest$ac_exeext conftest.$ac_ext
5303 fi
5304 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5305 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5306 if test $ac_cv_working_alloca_h = yes; then
5307
5308 cat >>confdefs.h <<\_ACEOF
5309 #define HAVE_ALLOCA_H 1
5310 _ACEOF
5311
5312 fi
5313
5314 { echo "$as_me:$LINENO: checking for alloca" >&5
5315 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5316 if test "${ac_cv_func_alloca_works+set}" = set; then
5317   echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319   cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h.  */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h.  */
5325 #ifdef __GNUC__
5326 # define alloca __builtin_alloca
5327 #else
5328 # ifdef _MSC_VER
5329 #  include <malloc.h>
5330 #  define alloca _alloca
5331 # else
5332 #  ifdef HAVE_ALLOCA_H
5333 #   include <alloca.h>
5334 #  else
5335 #   ifdef _AIX
5336  #pragma alloca
5337 #   else
5338 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5339 char *alloca ();
5340 #    endif
5341 #   endif
5342 #  endif
5343 # endif
5344 #endif
5345
5346 int
5347 main ()
5348 {
5349 char *p = (char *) alloca (1);
5350                                     if (p) return 0;
5351   ;
5352   return 0;
5353 }
5354 _ACEOF
5355 rm -f conftest.$ac_objext conftest$ac_exeext
5356 if { (ac_try="$ac_link"
5357 case "(($ac_try" in
5358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359   *) ac_try_echo=$ac_try;;
5360 esac
5361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362   (eval "$ac_link") 2>conftest.er1
5363   ac_status=$?
5364   grep -v '^ *+' conftest.er1 >conftest.err
5365   rm -f conftest.er1
5366   cat conftest.err >&5
5367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368   (exit $ac_status); } && {
5369          test -z "$ac_c_werror_flag" ||
5370          test ! -s conftest.err
5371        } && test -s conftest$ac_exeext &&
5372        $as_test_x conftest$ac_exeext; then
5373   ac_cv_func_alloca_works=yes
5374 else
5375   echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5377
5378         ac_cv_func_alloca_works=no
5379 fi
5380
5381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5382       conftest$ac_exeext conftest.$ac_ext
5383 fi
5384 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5385 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5386
5387 if test $ac_cv_func_alloca_works = yes; then
5388
5389 cat >>confdefs.h <<\_ACEOF
5390 #define HAVE_ALLOCA 1
5391 _ACEOF
5392
5393 else
5394   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5395 # that cause trouble.  Some versions do not even contain alloca or
5396 # contain a buggy version.  If you still want to use their alloca,
5397 # use ar to extract alloca.o from them instead of compiling alloca.c.
5398
5399 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5400
5401 cat >>confdefs.h <<\_ACEOF
5402 #define C_ALLOCA 1
5403 _ACEOF
5404
5405
5406 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5407 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5408 if test "${ac_cv_os_cray+set}" = set; then
5409   echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411   cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h.  */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h.  */
5417 #if defined CRAY && ! defined CRAY2
5418 webecray
5419 #else
5420 wenotbecray
5421 #endif
5422
5423 _ACEOF
5424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5425   $EGREP "webecray" >/dev/null 2>&1; then
5426   ac_cv_os_cray=yes
5427 else
5428   ac_cv_os_cray=no
5429 fi
5430 rm -f conftest*
5431
5432 fi
5433 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5434 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5435 if test $ac_cv_os_cray = yes; then
5436   for ac_func in _getb67 GETB67 getb67; do
5437     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5441   echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443   cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h.  */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h.  */
5449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5451 #define $ac_func innocuous_$ac_func
5452
5453 /* System header to define __stub macros and hopefully few prototypes,
5454     which can conflict with char $ac_func (); below.
5455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5456     <limits.h> exists even on freestanding compilers.  */
5457
5458 #ifdef __STDC__
5459 # include <limits.h>
5460 #else
5461 # include <assert.h>
5462 #endif
5463
5464 #undef $ac_func
5465
5466 /* Override any GCC internal prototype to avoid an error.
5467    Use char because int might match the return type of a GCC
5468    builtin and then its argument prototype would still apply.  */
5469 #ifdef __cplusplus
5470 extern "C"
5471 #endif
5472 char $ac_func ();
5473 /* The GNU C library defines this for functions which it implements
5474     to always fail with ENOSYS.  Some functions are actually named
5475     something starting with __ and the normal name is an alias.  */
5476 #if defined __stub_$ac_func || defined __stub___$ac_func
5477 choke me
5478 #endif
5479
5480 int
5481 main ()
5482 {
5483 return $ac_func ();
5484   ;
5485   return 0;
5486 }
5487 _ACEOF
5488 rm -f conftest.$ac_objext conftest$ac_exeext
5489 if { (ac_try="$ac_link"
5490 case "(($ac_try" in
5491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492   *) ac_try_echo=$ac_try;;
5493 esac
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495   (eval "$ac_link") 2>conftest.er1
5496   ac_status=$?
5497   grep -v '^ *+' conftest.er1 >conftest.err
5498   rm -f conftest.er1
5499   cat conftest.err >&5
5500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501   (exit $ac_status); } && {
5502          test -z "$ac_c_werror_flag" ||
5503          test ! -s conftest.err
5504        } && test -s conftest$ac_exeext &&
5505        $as_test_x conftest$ac_exeext; then
5506   eval "$as_ac_var=yes"
5507 else
5508   echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5510
5511         eval "$as_ac_var=no"
5512 fi
5513
5514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5515       conftest$ac_exeext conftest.$ac_ext
5516 fi
5517 ac_res=`eval echo '${'$as_ac_var'}'`
5518                { echo "$as_me:$LINENO: result: $ac_res" >&5
5519 echo "${ECHO_T}$ac_res" >&6; }
5520 if test `eval echo '${'$as_ac_var'}'` = yes; then
5521
5522 cat >>confdefs.h <<_ACEOF
5523 #define CRAY_STACKSEG_END $ac_func
5524 _ACEOF
5525
5526     break
5527 fi
5528
5529   done
5530 fi
5531
5532 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5533 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
5534 if test "${ac_cv_c_stack_direction+set}" = set; then
5535   echo $ECHO_N "(cached) $ECHO_C" >&6
5536 else
5537   if test "$cross_compiling" = yes; then
5538   ac_cv_c_stack_direction=0
5539 else
5540   cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h.  */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h.  */
5546 $ac_includes_default
5547 int
5548 find_stack_direction ()
5549 {
5550   static char *addr = 0;
5551   auto char dummy;
5552   if (addr == 0)
5553     {
5554       addr = &dummy;
5555       return find_stack_direction ();
5556     }
5557   else
5558     return (&dummy > addr) ? 1 : -1;
5559 }
5560
5561 int
5562 main ()
5563 {
5564   return find_stack_direction () < 0;
5565 }
5566 _ACEOF
5567 rm -f conftest$ac_exeext
5568 if { (ac_try="$ac_link"
5569 case "(($ac_try" in
5570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571   *) ac_try_echo=$ac_try;;
5572 esac
5573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574   (eval "$ac_link") 2>&5
5575   ac_status=$?
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5578   { (case "(($ac_try" in
5579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580   *) ac_try_echo=$ac_try;;
5581 esac
5582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5583   (eval "$ac_try") 2>&5
5584   ac_status=$?
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); }; }; then
5587   ac_cv_c_stack_direction=1
5588 else
5589   echo "$as_me: program exited with status $ac_status" >&5
5590 echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5592
5593 ( exit $ac_status )
5594 ac_cv_c_stack_direction=-1
5595 fi
5596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5597 fi
5598
5599
5600 fi
5601 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5602 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
5603
5604 cat >>confdefs.h <<_ACEOF
5605 #define STACK_DIRECTION $ac_cv_c_stack_direction
5606 _ACEOF
5607
5608
5609 fi
5610
5611
5612
5613
5614
5615
5616 for ac_header in $gl_header_list
5617 do
5618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5620   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5623   echo $ECHO_N "(cached) $ECHO_C" >&6
5624 fi
5625 ac_res=`eval echo '${'$as_ac_Header'}'`
5626                { echo "$as_me:$LINENO: result: $ac_res" >&5
5627 echo "${ECHO_T}$ac_res" >&6; }
5628 else
5629   # Is the header compilable?
5630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5632 cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h.  */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h.  */
5638 $ac_includes_default
5639 #include <$ac_header>
5640 _ACEOF
5641 rm -f conftest.$ac_objext
5642 if { (ac_try="$ac_compile"
5643 case "(($ac_try" in
5644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645   *) ac_try_echo=$ac_try;;
5646 esac
5647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5648   (eval "$ac_compile") 2>conftest.er1
5649   ac_status=$?
5650   grep -v '^ *+' conftest.er1 >conftest.err
5651   rm -f conftest.er1
5652   cat conftest.err >&5
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); } && {
5655          test -z "$ac_c_werror_flag" ||
5656          test ! -s conftest.err
5657        } && test -s conftest.$ac_objext; then
5658   ac_header_compiler=yes
5659 else
5660   echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5662
5663         ac_header_compiler=no
5664 fi
5665
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5668 echo "${ECHO_T}$ac_header_compiler" >&6; }
5669
5670 # Is the header present?
5671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5673 cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h.  */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h.  */
5679 #include <$ac_header>
5680 _ACEOF
5681 if { (ac_try="$ac_cpp conftest.$ac_ext"
5682 case "(($ac_try" in
5683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684   *) ac_try_echo=$ac_try;;
5685 esac
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5688   ac_status=$?
5689   grep -v '^ *+' conftest.er1 >conftest.err
5690   rm -f conftest.er1
5691   cat conftest.err >&5
5692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693   (exit $ac_status); } >/dev/null && {
5694          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5695          test ! -s conftest.err
5696        }; then
5697   ac_header_preproc=yes
5698 else
5699   echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5701
5702   ac_header_preproc=no
5703 fi
5704
5705 rm -f conftest.err conftest.$ac_ext
5706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5707 echo "${ECHO_T}$ac_header_preproc" >&6; }
5708
5709 # So?  What about this header?
5710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5711   yes:no: )
5712     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5714     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5716     ac_header_preproc=yes
5717     ;;
5718   no:yes:* )
5719     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5721     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5722 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5723     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5725     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5726 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5729     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5731
5732     ;;
5733 esac
5734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5737   echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739   eval "$as_ac_Header=\$ac_header_preproc"
5740 fi
5741 ac_res=`eval echo '${'$as_ac_Header'}'`
5742                { echo "$as_me:$LINENO: result: $ac_res" >&5
5743 echo "${ECHO_T}$ac_res" >&6; }
5744
5745 fi
5746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5747   cat >>confdefs.h <<_ACEOF
5748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5749 _ACEOF
5750
5751 fi
5752
5753 done
5754
5755
5756
5757
5758
5759
5760 { echo "$as_me:$LINENO: checking for inline" >&5
5761 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5762 if test "${ac_cv_c_inline+set}" = set; then
5763   echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765   ac_cv_c_inline=no
5766 for ac_kw in inline __inline__ __inline; do
5767   cat >conftest.$ac_ext <<_ACEOF
5768 /* confdefs.h.  */
5769 _ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h.  */
5773 #ifndef __cplusplus
5774 typedef int foo_t;
5775 static $ac_kw foo_t static_foo () {return 0; }
5776 $ac_kw foo_t foo () {return 0; }
5777 #endif
5778
5779 _ACEOF
5780 rm -f conftest.$ac_objext
5781 if { (ac_try="$ac_compile"
5782 case "(($ac_try" in
5783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784   *) ac_try_echo=$ac_try;;
5785 esac
5786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787   (eval "$ac_compile") 2>conftest.er1
5788   ac_status=$?
5789   grep -v '^ *+' conftest.er1 >conftest.err
5790   rm -f conftest.er1
5791   cat conftest.err >&5
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); } && {
5794          test -z "$ac_c_werror_flag" ||
5795          test ! -s conftest.err
5796        } && test -s conftest.$ac_objext; then
5797   ac_cv_c_inline=$ac_kw
5798 else
5799   echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5801
5802
5803 fi
5804
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806   test "$ac_cv_c_inline" != no && break
5807 done
5808
5809 fi
5810 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5811 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5812
5813
5814 case $ac_cv_c_inline in
5815   inline | yes) ;;
5816   *)
5817     case $ac_cv_c_inline in
5818       no) ac_val=;;
5819       *) ac_val=$ac_cv_c_inline;;
5820     esac
5821     cat >>confdefs.h <<_ACEOF
5822 #ifndef __cplusplus
5823 #define inline $ac_val
5824 #endif
5825 _ACEOF
5826     ;;
5827 esac
5828
5829 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
5830 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
5831 if test "${ac_cv_c_restrict+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   ac_cv_c_restrict=no
5835    # Try the official restrict keyword, then gcc's __restrict, and
5836    # the less common variants.
5837    for ac_kw in restrict __restrict __restrict__ _Restrict; do
5838      cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h.  */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h.  */
5844 typedef int * int_ptr;
5845         int foo (int_ptr $ac_kw ip) {
5846         return ip[0];
5847        }
5848 int
5849 main ()
5850 {
5851 int s[1];
5852         int * $ac_kw t = s;
5853         t[0] = 0;
5854         return foo(t)
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 rm -f conftest.$ac_objext
5860 if { (ac_try="$ac_compile"
5861 case "(($ac_try" in
5862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863   *) ac_try_echo=$ac_try;;
5864 esac
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866   (eval "$ac_compile") 2>conftest.er1
5867   ac_status=$?
5868   grep -v '^ *+' conftest.er1 >conftest.err
5869   rm -f conftest.er1
5870   cat conftest.err >&5
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); } && {
5873          test -z "$ac_c_werror_flag" ||
5874          test ! -s conftest.err
5875        } && test -s conftest.$ac_objext; then
5876   ac_cv_c_restrict=$ac_kw
5877 else
5878   echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5880
5881
5882 fi
5883
5884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5885      test "$ac_cv_c_restrict" != no && break
5886    done
5887
5888 fi
5889 { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
5890 echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
5891  case $ac_cv_c_restrict in
5892    restrict) ;;
5893    no)
5894 cat >>confdefs.h <<\_ACEOF
5895 #define restrict
5896 _ACEOF
5897  ;;
5898    *)  cat >>confdefs.h <<_ACEOF
5899 #define restrict $ac_cv_c_restrict
5900 _ACEOF
5901  ;;
5902  esac
5903
5904
5905
5906   { echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
5907 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6; }
5908 if test "${gl_cv_have_include_next+set}" = set; then
5909   echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911   rm -rf conftestd1 conftestd2
5912      mkdir conftestd1 conftestd2
5913      cat <<EOF > conftestd1/conftest.h
5914 #define DEFINED_IN_CONFTESTD1
5915 #include_next <conftest.h>
5916 #ifdef DEFINED_IN_CONFTESTD2
5917 int foo;
5918 #else
5919 #error "include_next doesn't work"
5920 #endif
5921 EOF
5922      cat <<EOF > conftestd2/conftest.h
5923 #ifndef DEFINED_IN_CONFTESTD1
5924 #error "include_next test doesn't work"
5925 #endif
5926 #define DEFINED_IN_CONFTESTD2
5927 EOF
5928      save_CPPFLAGS="$CPPFLAGS"
5929      CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
5930      cat >conftest.$ac_ext <<_ACEOF
5931 #include <conftest.h>
5932 _ACEOF
5933 rm -f conftest.$ac_objext
5934 if { (ac_try="$ac_compile"
5935 case "(($ac_try" in
5936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937   *) ac_try_echo=$ac_try;;
5938 esac
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940   (eval "$ac_compile") 2>conftest.er1
5941   ac_status=$?
5942   grep -v '^ *+' conftest.er1 >conftest.err
5943   rm -f conftest.er1
5944   cat conftest.err >&5
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); } && {
5947          test -z "$ac_c_werror_flag" ||
5948          test ! -s conftest.err
5949        } && test -s conftest.$ac_objext; then
5950   gl_cv_have_include_next=yes
5951 else
5952   echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5954
5955         gl_cv_have_include_next=no
5956 fi
5957
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959      CPPFLAGS="$save_CPPFLAGS"
5960      rm -rf conftestd1 conftestd2
5961
5962 fi
5963 { echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
5964 echo "${ECHO_T}$gl_cv_have_include_next" >&6; }
5965   if test $gl_cv_have_include_next = yes; then
5966
5967
5968 cat >>confdefs.h <<\_ACEOF
5969 #define HAVE_INCLUDE_NEXT 1
5970 _ACEOF
5971
5972
5973     INCLUDE_NEXT=include_next
5974   else
5975     INCLUDE_NEXT=include
5976   fi
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010   { echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
6011 echo $ECHO_N "checking whether <sys/socket.h> is self-contained... $ECHO_C" >&6; }
6012 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
6013   echo $ECHO_N "(cached) $ECHO_C" >&6
6014 else
6015
6016       cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h.  */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h.  */
6022 #include <sys/socket.h>
6023 int
6024 main ()
6025 {
6026
6027   ;
6028   return 0;
6029 }
6030 _ACEOF
6031 rm -f conftest.$ac_objext
6032 if { (ac_try="$ac_compile"
6033 case "(($ac_try" in
6034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035   *) ac_try_echo=$ac_try;;
6036 esac
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038   (eval "$ac_compile") 2>conftest.er1
6039   ac_status=$?
6040   grep -v '^ *+' conftest.er1 >conftest.err
6041   rm -f conftest.er1
6042   cat conftest.err >&5
6043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); } && {
6045          test -z "$ac_c_werror_flag" ||
6046          test ! -s conftest.err
6047        } && test -s conftest.$ac_objext; then
6048   gl_cv_header_sys_socket_h_selfcontained=yes
6049 else
6050   echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6052
6053         gl_cv_header_sys_socket_h_selfcontained=no
6054 fi
6055
6056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057
6058 fi
6059 { echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
6060 echo "${ECHO_T}$gl_cv_header_sys_socket_h_selfcontained" >&6; }
6061   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
6062     SYS_SOCKET_H=''
6063   else
6064     SYS_SOCKET_H='sys/socket.h'
6065
6066
6067
6068
6069   :
6070
6071
6072
6073
6074
6075
6076
6077      if test $gl_cv_have_include_next = yes; then
6078        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
6079      else
6080        { echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
6081 echo $ECHO_N "checking absolute name of <sys/socket.h>... $ECHO_C" >&6; }
6082 if test "${gl_cv_next_sys_socket_h+set}" = set; then
6083   echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085
6086           if test $ac_cv_header_sys_socket_h = yes; then
6087             cat >conftest.$ac_ext <<_ACEOF
6088 /* confdefs.h.  */
6089 _ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h.  */
6093 #include <sys/socket.h>
6094
6095 _ACEOF
6096                                     gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6097                sed -n '\#/sys/socket.h#{
6098                  s#.*"\(.*/sys/socket.h\)".*#\1#
6099                  s#^/[^/]#//&#
6100                  p
6101                  q
6102                }'`'"'
6103           else
6104             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
6105           fi
6106
6107 fi
6108 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
6109 echo "${ECHO_T}$gl_cv_next_sys_socket_h" >&6; }
6110      fi
6111      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
6112
6113
6114
6115     if test $ac_cv_header_sys_socket_h = yes; then
6116       HAVE_SYS_SOCKET_H=1
6117       HAVE_WINSOCK2_H=0
6118       HAVE_WS2TCPIP_H=0
6119     else
6120       HAVE_SYS_SOCKET_H=0
6121
6122
6123 for ac_header in winsock2.h ws2tcpip.h
6124 do
6125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6127   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6130   echo $ECHO_N "(cached) $ECHO_C" >&6
6131 fi
6132 ac_res=`eval echo '${'$as_ac_Header'}'`
6133                { echo "$as_me:$LINENO: result: $ac_res" >&5
6134 echo "${ECHO_T}$ac_res" >&6; }
6135 else
6136   # Is the header compilable?
6137 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6139 cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h.  */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h.  */
6145 $ac_includes_default
6146 #include <$ac_header>
6147 _ACEOF
6148 rm -f conftest.$ac_objext
6149 if { (ac_try="$ac_compile"
6150 case "(($ac_try" in
6151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152   *) ac_try_echo=$ac_try;;
6153 esac
6154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6155   (eval "$ac_compile") 2>conftest.er1
6156   ac_status=$?
6157   grep -v '^ *+' conftest.er1 >conftest.err
6158   rm -f conftest.er1
6159   cat conftest.err >&5
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); } && {
6162          test -z "$ac_c_werror_flag" ||
6163          test ! -s conftest.err
6164        } && test -s conftest.$ac_objext; then
6165   ac_header_compiler=yes
6166 else
6167   echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6169
6170         ac_header_compiler=no
6171 fi
6172
6173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6175 echo "${ECHO_T}$ac_header_compiler" >&6; }
6176
6177 # Is the header present?
6178 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6180 cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h.  */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h.  */
6186 #include <$ac_header>
6187 _ACEOF
6188 if { (ac_try="$ac_cpp conftest.$ac_ext"
6189 case "(($ac_try" in
6190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191   *) ac_try_echo=$ac_try;;
6192 esac
6193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6194   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6195   ac_status=$?
6196   grep -v '^ *+' conftest.er1 >conftest.err
6197   rm -f conftest.er1
6198   cat conftest.err >&5
6199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200   (exit $ac_status); } >/dev/null && {
6201          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6202          test ! -s conftest.err
6203        }; then
6204   ac_header_preproc=yes
6205 else
6206   echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6208
6209   ac_header_preproc=no
6210 fi
6211
6212 rm -f conftest.err conftest.$ac_ext
6213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6214 echo "${ECHO_T}$ac_header_preproc" >&6; }
6215
6216 # So?  What about this header?
6217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6218   yes:no: )
6219     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6223     ac_header_preproc=yes
6224     ;;
6225   no:yes:* )
6226     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6228     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6229 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6230     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6232     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6233 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6236     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6238
6239     ;;
6240 esac
6241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6244   echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246   eval "$as_ac_Header=\$ac_header_preproc"
6247 fi
6248 ac_res=`eval echo '${'$as_ac_Header'}'`
6249                { echo "$as_me:$LINENO: result: $ac_res" >&5
6250 echo "${ECHO_T}$ac_res" >&6; }
6251
6252 fi
6253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6254   cat >>confdefs.h <<_ACEOF
6255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6256 _ACEOF
6257
6258 fi
6259
6260 done
6261
6262       if test $ac_cv_header_winsock2_h = yes; then
6263         HAVE_WINSOCK2_H=1
6264       else
6265         HAVE_WINSOCK2_H=0
6266       fi
6267       if test $ac_cv_header_ws2tcpip_h = yes; then
6268         HAVE_WS2TCPIP_H=1
6269       else
6270         HAVE_WS2TCPIP_H=0
6271       fi
6272     fi
6273
6274
6275
6276   fi
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294   :
6295
6296
6297
6298
6299
6300
6301   { echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
6302 echo $ECHO_N "checking for IPv4 sockets... $ECHO_C" >&6; }
6303   if test "${gl_cv_socket_ipv4+set}" = set; then
6304   echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306   cat >conftest.$ac_ext <<_ACEOF
6307 /* confdefs.h.  */
6308 _ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h.  */
6312 #include <sys/types.h>
6313 #ifdef HAVE_SYS_SOCKET_H
6314 #include <sys/socket.h>
6315 #endif
6316 #ifdef HAVE_NETINET_IN_H
6317 #include <netinet/in.h>
6318 #endif
6319 #ifdef HAVE_WINSOCK2_H
6320 #include <winsock2.h>
6321 #endif
6322 int
6323 main ()
6324 {
6325 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
6326  if (&x && &y && &z) return 0;
6327   ;
6328   return 0;
6329 }
6330 _ACEOF
6331 rm -f conftest.$ac_objext
6332 if { (ac_try="$ac_compile"
6333 case "(($ac_try" in
6334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335   *) ac_try_echo=$ac_try;;
6336 esac
6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338   (eval "$ac_compile") 2>conftest.er1
6339   ac_status=$?
6340   grep -v '^ *+' conftest.er1 >conftest.err
6341   rm -f conftest.er1
6342   cat conftest.err >&5
6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); } && {
6345          test -z "$ac_c_werror_flag" ||
6346          test ! -s conftest.err
6347        } && test -s conftest.$ac_objext; then
6348   gl_cv_socket_ipv4=yes
6349 else
6350   echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6352
6353         gl_cv_socket_ipv4=no
6354 fi
6355
6356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357 fi
6358
6359   { echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
6360 echo "${ECHO_T}$gl_cv_socket_ipv4" >&6; }
6361   if test $gl_cv_socket_ipv4 = yes; then
6362
6363 cat >>confdefs.h <<\_ACEOF
6364 #define HAVE_IPV4 1
6365 _ACEOF
6366
6367   fi
6368
6369   { echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
6370 echo $ECHO_N "checking for IPv6 sockets... $ECHO_C" >&6; }
6371   if test "${gl_cv_socket_ipv6+set}" = set; then
6372   echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374   cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h.  */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h.  */
6380 #include <sys/types.h>
6381 #ifdef HAVE_SYS_SOCKET_H
6382 #include <sys/socket.h>
6383 #endif
6384 #ifdef HAVE_NETINET_IN_H
6385 #include <netinet/in.h>
6386 #endif
6387 #ifdef HAVE_WINSOCK2_H
6388 #include <winsock2.h>
6389 #endif
6390 int
6391 main ()
6392 {
6393 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
6394  if (&x && &y && &z) return 0;
6395   ;
6396   return 0;
6397 }
6398 _ACEOF
6399 rm -f conftest.$ac_objext
6400 if { (ac_try="$ac_compile"
6401 case "(($ac_try" in
6402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403   *) ac_try_echo=$ac_try;;
6404 esac
6405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406   (eval "$ac_compile") 2>conftest.er1
6407   ac_status=$?
6408   grep -v '^ *+' conftest.er1 >conftest.err
6409   rm -f conftest.er1
6410   cat conftest.err >&5
6411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412   (exit $ac_status); } && {
6413          test -z "$ac_c_werror_flag" ||
6414          test ! -s conftest.err
6415        } && test -s conftest.$ac_objext; then
6416   gl_cv_socket_ipv6=yes
6417 else
6418   echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6420
6421         gl_cv_socket_ipv6=no
6422 fi
6423
6424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425 fi
6426
6427   { echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
6428 echo "${ECHO_T}$gl_cv_socket_ipv6" >&6; }
6429   if test $gl_cv_socket_ipv6 = yes; then
6430
6431 cat >>confdefs.h <<\_ACEOF
6432 #define HAVE_IPV6 1
6433 _ACEOF
6434
6435   fi
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448   :
6449
6450
6451
6452
6453
6454
6455
6456      if test $gl_cv_have_include_next = yes; then
6457        gl_cv_next_sys_time_h='<'sys/time.h'>'
6458      else
6459        { echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
6460 echo $ECHO_N "checking absolute name of <sys/time.h>... $ECHO_C" >&6; }
6461 if test "${gl_cv_next_sys_time_h+set}" = set; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464
6465           if test $ac_cv_header_sys_time_h = yes; then
6466             cat >conftest.$ac_ext <<_ACEOF
6467 /* confdefs.h.  */
6468 _ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h.  */
6472 #include <sys/time.h>
6473
6474 _ACEOF
6475                                     gl_cv_next_sys_time_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6476                sed -n '\#/sys/time.h#{
6477                  s#.*"\(.*/sys/time.h\)".*#\1#
6478                  s#^/[^/]#//&#
6479                  p
6480                  q
6481                }'`'"'
6482           else
6483             gl_cv_next_sys_time_h='<'sys/time.h'>'
6484           fi
6485
6486 fi
6487 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
6488 echo "${ECHO_T}$gl_cv_next_sys_time_h" >&6; }
6489      fi
6490      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
6491
6492
6493
6494
6495   if test $ac_cv_header_sys_time_h = yes; then
6496     HAVE_SYS_TIME_H=1
6497   else
6498     HAVE_SYS_TIME_H=0
6499   fi
6500
6501
6502   { echo "$as_me:$LINENO: checking for struct timeval" >&5
6503 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
6504 if test "${gl_cv_sys_struct_timeval+set}" = set; then
6505   echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507   cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h.  */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h.  */
6513 #if HAVE_SYS_TIME_H
6514              #include <sys/time.h>
6515             #endif
6516             #include <time.h>
6517
6518 int
6519 main ()
6520 {
6521 static struct timeval x; x.tv_sec = x.tv_usec;
6522   ;
6523   return 0;
6524 }
6525 _ACEOF
6526 rm -f conftest.$ac_objext
6527 if { (ac_try="$ac_compile"
6528 case "(($ac_try" in
6529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530   *) ac_try_echo=$ac_try;;
6531 esac
6532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6533   (eval "$ac_compile") 2>conftest.er1
6534   ac_status=$?
6535   grep -v '^ *+' conftest.er1 >conftest.err
6536   rm -f conftest.er1
6537   cat conftest.err >&5
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); } && {
6540          test -z "$ac_c_werror_flag" ||
6541          test ! -s conftest.err
6542        } && test -s conftest.$ac_objext; then
6543   gl_cv_sys_struct_timeval=yes
6544 else
6545   echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6547
6548         gl_cv_sys_struct_timeval=no
6549 fi
6550
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 fi
6553 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
6554 echo "${ECHO_T}$gl_cv_sys_struct_timeval" >&6; }
6555   if test $gl_cv_sys_struct_timeval = yes; then
6556     HAVE_STRUCT_TIMEVAL=1
6557   else
6558     HAVE_STRUCT_TIMEVAL=0
6559   fi
6560
6561
6562     REPLACE_GETTIMEOFDAY=0
6563
6564   if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
6565     SYS_TIME_H=sys/time.h
6566   else
6567     SYS_TIME_H=
6568   fi
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579 for ac_func in $gl_func_list
6580 do
6581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6585   echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587   cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h.  */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h.  */
6593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6595 #define $ac_func innocuous_$ac_func
6596
6597 /* System header to define __stub macros and hopefully few prototypes,
6598     which can conflict with char $ac_func (); below.
6599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6600     <limits.h> exists even on freestanding compilers.  */
6601
6602 #ifdef __STDC__
6603 # include <limits.h>
6604 #else
6605 # include <assert.h>
6606 #endif
6607
6608 #undef $ac_func
6609
6610 /* Override any GCC internal prototype to avoid an error.
6611    Use char because int might match the return type of a GCC
6612    builtin and then its argument prototype would still apply.  */
6613 #ifdef __cplusplus
6614 extern "C"
6615 #endif
6616 char $ac_func ();
6617 /* The GNU C library defines this for functions which it implements
6618     to always fail with ENOSYS.  Some functions are actually named
6619     something starting with __ and the normal name is an alias.  */
6620 #if defined __stub_$ac_func || defined __stub___$ac_func
6621 choke me
6622 #endif
6623
6624 int
6625 main ()
6626 {
6627 return $ac_func ();
6628   ;
6629   return 0;
6630 }
6631 _ACEOF
6632 rm -f conftest.$ac_objext conftest$ac_exeext
6633 if { (ac_try="$ac_link"
6634 case "(($ac_try" in
6635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636   *) ac_try_echo=$ac_try;;
6637 esac
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639   (eval "$ac_link") 2>conftest.er1
6640   ac_status=$?
6641   grep -v '^ *+' conftest.er1 >conftest.err
6642   rm -f conftest.er1
6643   cat conftest.err >&5
6644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645   (exit $ac_status); } && {
6646          test -z "$ac_c_werror_flag" ||
6647          test ! -s conftest.err
6648        } && test -s conftest$ac_exeext &&
6649        $as_test_x conftest$ac_exeext; then
6650   eval "$as_ac_var=yes"
6651 else
6652   echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6654
6655         eval "$as_ac_var=no"
6656 fi
6657
6658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6659       conftest$ac_exeext conftest.$ac_ext
6660 fi
6661 ac_res=`eval echo '${'$as_ac_var'}'`
6662                { echo "$as_me:$LINENO: result: $ac_res" >&5
6663 echo "${ECHO_T}$ac_res" >&6; }
6664 if test `eval echo '${'$as_ac_var'}'` = yes; then
6665   cat >>confdefs.h <<_ACEOF
6666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6667 _ACEOF
6668
6669 fi
6670 done
6671
6672
6673
6674
6675
6676
6677
6678       if test "X$prefix" = "XNONE"; then
6679     acl_final_prefix="$ac_default_prefix"
6680   else
6681     acl_final_prefix="$prefix"
6682   fi
6683   if test "X$exec_prefix" = "XNONE"; then
6684     acl_final_exec_prefix='${prefix}'
6685   else
6686     acl_final_exec_prefix="$exec_prefix"
6687   fi
6688   acl_save_prefix="$prefix"
6689   prefix="$acl_final_prefix"
6690   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6691   prefix="$acl_save_prefix"
6692
6693
6694 # Check whether --with-gnu-ld was given.
6695 if test "${with_gnu_ld+set}" = set; then
6696   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6697 else
6698   with_gnu_ld=no
6699 fi
6700
6701 # Prepare PATH_SEPARATOR.
6702 # The user is always right.
6703 if test "${PATH_SEPARATOR+set}" != set; then
6704   echo "#! /bin/sh" >conf$$.sh
6705   echo  "exit 0"   >>conf$$.sh
6706   chmod +x conf$$.sh
6707   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6708     PATH_SEPARATOR=';'
6709   else
6710     PATH_SEPARATOR=:
6711   fi
6712   rm -f conf$$.sh
6713 fi
6714 ac_prog=ld
6715 if test "$GCC" = yes; then
6716   # Check if gcc -print-prog-name=ld gives a path.
6717   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6718 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6719   case $host in
6720   *-*-mingw*)
6721     # gcc leaves a trailing carriage return which upsets mingw
6722     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6723   *)
6724     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6725   esac
6726   case $ac_prog in
6727     # Accept absolute paths.
6728     [\\/]* | [A-Za-z]:[\\/]*)
6729       re_direlt='/[^/][^/]*/\.\./'
6730       # Canonicalize the path of ld
6731       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6732       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6733         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6734       done
6735       test -z "$LD" && LD="$ac_prog"
6736       ;;
6737   "")
6738     # If it fails, then pretend we aren't using GCC.
6739     ac_prog=ld
6740     ;;
6741   *)
6742     # If it is relative, then search for the first ld in PATH.
6743     with_gnu_ld=unknown
6744     ;;
6745   esac
6746 elif test "$with_gnu_ld" = yes; then
6747   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6748 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6749 else
6750   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6751 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6752 fi
6753 if test "${acl_cv_path_LD+set}" = set; then
6754   echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756   if test -z "$LD"; then
6757   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6758   for ac_dir in $PATH; do
6759     test -z "$ac_dir" && ac_dir=.
6760     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6761       acl_cv_path_LD="$ac_dir/$ac_prog"
6762       # Check to see if the program is GNU ld.  I'd rather use --version,
6763       # but apparently some GNU ld's only accept -v.
6764       # Break only if it was the GNU/non-GNU ld that we prefer.
6765       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6766       *GNU* | *'with BFD'*)
6767         test "$with_gnu_ld" != no && break ;;
6768       *)
6769         test "$with_gnu_ld" != yes && break ;;
6770       esac
6771     fi
6772   done
6773   IFS="$ac_save_ifs"
6774 else
6775   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6776 fi
6777 fi
6778
6779 LD="$acl_cv_path_LD"
6780 if test -n "$LD"; then
6781   { echo "$as_me:$LINENO: result: $LD" >&5
6782 echo "${ECHO_T}$LD" >&6; }
6783 else
6784   { echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6; }
6786 fi
6787 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6788 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6789    { (exit 1); exit 1; }; }
6790 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6791 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6792 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6793   echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6796 case `$LD -v 2>&1 </dev/null` in
6797 *GNU* | *'with BFD'*)
6798   acl_cv_prog_gnu_ld=yes ;;
6799 *)
6800   acl_cv_prog_gnu_ld=no ;;
6801 esac
6802 fi
6803 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6804 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6805 with_gnu_ld=$acl_cv_prog_gnu_ld
6806
6807
6808
6809
6810                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6811 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6812 if test "${acl_cv_rpath+set}" = set; then
6813   echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815
6816     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6817     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6818     . ./conftest.sh
6819     rm -f ./conftest.sh
6820     acl_cv_rpath=done
6821
6822 fi
6823 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6824 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6825   wl="$acl_cv_wl"
6826   libext="$acl_cv_libext"
6827   shlibext="$acl_cv_shlibext"
6828   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6829   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6830   hardcode_direct="$acl_cv_hardcode_direct"
6831   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6832     # Check whether --enable-rpath was given.
6833 if test "${enable_rpath+set}" = set; then
6834   enableval=$enable_rpath; :
6835 else
6836   enable_rpath=yes
6837 fi
6838
6839
6840
6841                   acl_libdirstem=lib
6842   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6843   if test -n "$searchpath"; then
6844     acl_save_IFS="${IFS=        }"; IFS=":"
6845     for searchdir in $searchpath; do
6846       if test -d "$searchdir"; then
6847         case "$searchdir" in
6848           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6849           *) searchdir=`cd "$searchdir" && pwd`
6850              case "$searchdir" in
6851                */lib64 ) acl_libdirstem=lib64 ;;
6852              esac ;;
6853         esac
6854       fi
6855     done
6856     IFS="$acl_save_IFS"
6857   fi
6858
6859
6860
6861   gl_threads_api=none
6862   LIBTHREAD=
6863   LTLIBTHREAD=
6864   LIBMULTITHREAD=
6865   LTLIBMULTITHREAD=
6866   if test "$gl_use_threads" != no; then
6867         { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
6868 echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
6869     gl_have_weak=no
6870     cat >conftest.$ac_ext <<_ACEOF
6871 /* confdefs.h.  */
6872 _ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h.  */
6876 extern void xyzzy ();
6877 #pragma weak xyzzy
6878 int
6879 main ()
6880 {
6881 xyzzy();
6882   ;
6883   return 0;
6884 }
6885 _ACEOF
6886 rm -f conftest.$ac_objext conftest$ac_exeext
6887 if { (ac_try="$ac_link"
6888 case "(($ac_try" in
6889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890   *) ac_try_echo=$ac_try;;
6891 esac
6892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6893   (eval "$ac_link") 2>conftest.er1
6894   ac_status=$?
6895   grep -v '^ *+' conftest.er1 >conftest.err
6896   rm -f conftest.er1
6897   cat conftest.err >&5
6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899   (exit $ac_status); } && {
6900          test -z "$ac_c_werror_flag" ||
6901          test ! -s conftest.err
6902        } && test -s conftest$ac_exeext &&
6903        $as_test_x conftest$ac_exeext; then
6904   gl_have_weak=yes
6905 else
6906   echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6908
6909
6910 fi
6911
6912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6913       conftest$ac_exeext conftest.$ac_ext
6914     { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
6915 echo "${ECHO_T}$gl_have_weak" >&6; }
6916     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6917       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
6918       # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
6919       if test "${ac_cv_header_pthread_h+set}" = set; then
6920   { echo "$as_me:$LINENO: checking for pthread.h" >&5
6921 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
6922 if test "${ac_cv_header_pthread_h+set}" = set; then
6923   echo $ECHO_N "(cached) $ECHO_C" >&6
6924 fi
6925 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6926 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
6927 else
6928   # Is the header compilable?
6929 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
6930 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
6931 cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h.  */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h.  */
6937 $ac_includes_default
6938 #include <pthread.h>
6939 _ACEOF
6940 rm -f conftest.$ac_objext
6941 if { (ac_try="$ac_compile"
6942 case "(($ac_try" in
6943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6944   *) ac_try_echo=$ac_try;;
6945 esac
6946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6947   (eval "$ac_compile") 2>conftest.er1
6948   ac_status=$?
6949   grep -v '^ *+' conftest.er1 >conftest.err
6950   rm -f conftest.er1
6951   cat conftest.err >&5
6952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953   (exit $ac_status); } && {
6954          test -z "$ac_c_werror_flag" ||
6955          test ! -s conftest.err
6956        } && test -s conftest.$ac_objext; then
6957   ac_header_compiler=yes
6958 else
6959   echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6961
6962         ac_header_compiler=no
6963 fi
6964
6965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6967 echo "${ECHO_T}$ac_header_compiler" >&6; }
6968
6969 # Is the header present?
6970 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
6971 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
6972 cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h.  */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h.  */
6978 #include <pthread.h>
6979 _ACEOF
6980 if { (ac_try="$ac_cpp conftest.$ac_ext"
6981 case "(($ac_try" in
6982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983   *) ac_try_echo=$ac_try;;
6984 esac
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6987   ac_status=$?
6988   grep -v '^ *+' conftest.er1 >conftest.err
6989   rm -f conftest.er1
6990   cat conftest.err >&5
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); } >/dev/null && {
6993          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6994          test ! -s conftest.err
6995        }; then
6996   ac_header_preproc=yes
6997 else
6998   echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7000
7001   ac_header_preproc=no
7002 fi
7003
7004 rm -f conftest.err conftest.$ac_ext
7005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7006 echo "${ECHO_T}$ac_header_preproc" >&6; }
7007
7008 # So?  What about this header?
7009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7010   yes:no: )
7011     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
7012 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7013     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
7014 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
7015     ac_header_preproc=yes
7016     ;;
7017   no:yes:* )
7018     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
7019 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
7020     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
7021 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
7022     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
7023 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
7024     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
7025 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7026     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
7027 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
7028     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
7029 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
7030
7031     ;;
7032 esac
7033 { echo "$as_me:$LINENO: checking for pthread.h" >&5
7034 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
7035 if test "${ac_cv_header_pthread_h+set}" = set; then
7036   echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038   ac_cv_header_pthread_h=$ac_header_preproc
7039 fi
7040 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
7041 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
7042
7043 fi
7044 if test $ac_cv_header_pthread_h = yes; then
7045   gl_have_pthread_h=yes
7046 else
7047   gl_have_pthread_h=no
7048 fi
7049
7050
7051       if test "$gl_have_pthread_h" = yes; then
7052         # Other possible tests:
7053         #   -lpthreads (FSU threads, PCthreads)
7054         #   -lgthreads
7055         gl_have_pthread=
7056         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7057         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7058         # the second one only in libpthread, and lock.c needs it.
7059         cat >conftest.$ac_ext <<_ACEOF
7060 /* confdefs.h.  */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h.  */
7065 #include <pthread.h>
7066 int
7067 main ()
7068 {
7069 pthread_mutex_lock((pthread_mutex_t*)0);
7070            pthread_mutexattr_init((pthread_mutexattr_t*)0);
7071   ;
7072   return 0;
7073 }
7074 _ACEOF
7075 rm -f conftest.$ac_objext conftest$ac_exeext
7076 if { (ac_try="$ac_link"
7077 case "(($ac_try" in
7078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079   *) ac_try_echo=$ac_try;;
7080 esac
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082   (eval "$ac_link") 2>conftest.er1
7083   ac_status=$?
7084   grep -v '^ *+' conftest.er1 >conftest.err
7085   rm -f conftest.er1
7086   cat conftest.err >&5
7087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088   (exit $ac_status); } && {
7089          test -z "$ac_c_werror_flag" ||
7090          test ! -s conftest.err
7091        } && test -s conftest$ac_exeext &&
7092        $as_test_x conftest$ac_exeext; then
7093   gl_have_pthread=yes
7094 else
7095   echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7097
7098
7099 fi
7100
7101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7102       conftest$ac_exeext conftest.$ac_ext
7103         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7104         # since it is defined as a macro on OSF/1.)
7105         if test -n "$gl_have_pthread"; then
7106           # The program links fine without libpthread. But it may actually
7107           # need to link with libpthread in order to create multiple threads.
7108           { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
7109 echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
7110 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
7111   echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113   ac_check_lib_save_LIBS=$LIBS
7114 LIBS="-lpthread  $LIBS"
7115 cat >conftest.$ac_ext <<_ACEOF
7116 /* confdefs.h.  */
7117 _ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h.  */
7121
7122 /* Override any GCC internal prototype to avoid an error.
7123    Use char because int might match the return type of a GCC
7124    builtin and then its argument prototype would still apply.  */
7125 #ifdef __cplusplus
7126 extern "C"
7127 #endif
7128 char pthread_kill ();
7129 int
7130 main ()
7131 {
7132 return pthread_kill ();
7133   ;
7134   return 0;
7135 }
7136 _ACEOF
7137 rm -f conftest.$ac_objext conftest$ac_exeext
7138 if { (ac_try="$ac_link"
7139 case "(($ac_try" in
7140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141   *) ac_try_echo=$ac_try;;
7142 esac
7143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7144   (eval "$ac_link") 2>conftest.er1
7145   ac_status=$?
7146   grep -v '^ *+' conftest.er1 >conftest.err
7147   rm -f conftest.er1
7148   cat conftest.err >&5
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); } && {
7151          test -z "$ac_c_werror_flag" ||
7152          test ! -s conftest.err
7153        } && test -s conftest$ac_exeext &&
7154        $as_test_x conftest$ac_exeext; then
7155   ac_cv_lib_pthread_pthread_kill=yes
7156 else
7157   echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7159
7160         ac_cv_lib_pthread_pthread_kill=no
7161 fi
7162
7163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7164       conftest$ac_exeext conftest.$ac_ext
7165 LIBS=$ac_check_lib_save_LIBS
7166 fi
7167 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
7168 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
7169 if test $ac_cv_lib_pthread_pthread_kill = yes; then
7170   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7171              # On Solaris and HP-UX, most pthread functions exist also in libc.
7172              # Therefore pthread_in_use() needs to actually try to create a
7173              # thread: pthread_create from libc will fail, whereas
7174              # pthread_create will actually create a thread.
7175              case "$host_os" in
7176                solaris* | hpux*)
7177
7178 cat >>confdefs.h <<\_ACEOF
7179 #define PTHREAD_IN_USE_DETECTION_HARD 1
7180 _ACEOF
7181
7182              esac
7183
7184 fi
7185
7186         else
7187           # Some library is needed. Try libpthread and libc_r.
7188           { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
7189 echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
7190 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
7191   echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193   ac_check_lib_save_LIBS=$LIBS
7194 LIBS="-lpthread  $LIBS"
7195 cat >conftest.$ac_ext <<_ACEOF
7196 /* confdefs.h.  */
7197 _ACEOF
7198 cat confdefs.h >>conftest.$ac_ext
7199 cat >>conftest.$ac_ext <<_ACEOF
7200 /* end confdefs.h.  */
7201
7202 /* Override any GCC internal prototype to avoid an error.
7203    Use char because int might match the return type of a GCC
7204    builtin and then its argument prototype would still apply.  */
7205 #ifdef __cplusplus
7206 extern "C"
7207 #endif
7208 char pthread_kill ();
7209 int
7210 main ()
7211 {
7212 return pthread_kill ();
7213   ;
7214   return 0;
7215 }
7216 _ACEOF
7217 rm -f conftest.$ac_objext conftest$ac_exeext
7218 if { (ac_try="$ac_link"
7219 case "(($ac_try" in
7220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7221   *) ac_try_echo=$ac_try;;
7222 esac
7223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7224   (eval "$ac_link") 2>conftest.er1
7225   ac_status=$?
7226   grep -v '^ *+' conftest.er1 >conftest.err
7227   rm -f conftest.er1
7228   cat conftest.err >&5
7229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230   (exit $ac_status); } && {
7231          test -z "$ac_c_werror_flag" ||
7232          test ! -s conftest.err
7233        } && test -s conftest$ac_exeext &&
7234        $as_test_x conftest$ac_exeext; then
7235   ac_cv_lib_pthread_pthread_kill=yes
7236 else
7237   echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7239
7240         ac_cv_lib_pthread_pthread_kill=no
7241 fi
7242
7243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7244       conftest$ac_exeext conftest.$ac_ext
7245 LIBS=$ac_check_lib_save_LIBS
7246 fi
7247 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
7248 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
7249 if test $ac_cv_lib_pthread_pthread_kill = yes; then
7250   gl_have_pthread=yes
7251              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
7252              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7253 fi
7254
7255           if test -z "$gl_have_pthread"; then
7256             # For FreeBSD 4.
7257             { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
7258 echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
7259 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
7260   echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262   ac_check_lib_save_LIBS=$LIBS
7263 LIBS="-lc_r  $LIBS"
7264 cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h.  */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h.  */
7270
7271 /* Override any GCC internal prototype to avoid an error.
7272    Use char because int might match the return type of a GCC
7273    builtin and then its argument prototype would still apply.  */
7274 #ifdef __cplusplus
7275 extern "C"
7276 #endif
7277 char pthread_kill ();
7278 int
7279 main ()
7280 {
7281 return pthread_kill ();
7282   ;
7283   return 0;
7284 }
7285 _ACEOF
7286 rm -f conftest.$ac_objext conftest$ac_exeext
7287 if { (ac_try="$ac_link"
7288 case "(($ac_try" in
7289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290   *) ac_try_echo=$ac_try;;
7291 esac
7292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7293   (eval "$ac_link") 2>conftest.er1
7294   ac_status=$?
7295   grep -v '^ *+' conftest.er1 >conftest.err
7296   rm -f conftest.er1
7297   cat conftest.err >&5
7298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299   (exit $ac_status); } && {
7300          test -z "$ac_c_werror_flag" ||
7301          test ! -s conftest.err
7302        } && test -s conftest$ac_exeext &&
7303        $as_test_x conftest$ac_exeext; then
7304   ac_cv_lib_c_r_pthread_kill=yes
7305 else
7306   echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7308
7309         ac_cv_lib_c_r_pthread_kill=no
7310 fi
7311
7312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7313       conftest$ac_exeext conftest.$ac_ext
7314 LIBS=$ac_check_lib_save_LIBS
7315 fi
7316 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
7317 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
7318 if test $ac_cv_lib_c_r_pthread_kill = yes; then
7319   gl_have_pthread=yes
7320                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
7321                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
7322 fi
7323
7324           fi
7325         fi
7326         if test -n "$gl_have_pthread"; then
7327           gl_threads_api=posix
7328
7329 cat >>confdefs.h <<\_ACEOF
7330 #define USE_POSIX_THREADS 1
7331 _ACEOF
7332
7333           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
7334             if test $gl_have_weak = yes; then
7335
7336 cat >>confdefs.h <<\_ACEOF
7337 #define USE_POSIX_THREADS_WEAK 1
7338 _ACEOF
7339
7340               LIBTHREAD=
7341               LTLIBTHREAD=
7342             fi
7343           fi
7344           # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
7345           # pthread_rwlock_* functions.
7346           { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
7347 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
7348 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
7349   echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351   cat >conftest.$ac_ext <<_ACEOF
7352 /* confdefs.h.  */
7353 _ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h.  */
7357 #include <pthread.h>
7358
7359 typedef pthread_rwlock_t ac__type_new_;
7360 int
7361 main ()
7362 {
7363 if ((ac__type_new_ *) 0)
7364   return 0;
7365 if (sizeof (ac__type_new_))
7366   return 0;
7367   ;
7368   return 0;
7369 }
7370 _ACEOF
7371 rm -f conftest.$ac_objext
7372 if { (ac_try="$ac_compile"
7373 case "(($ac_try" in
7374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375   *) ac_try_echo=$ac_try;;
7376 esac
7377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7378   (eval "$ac_compile") 2>conftest.er1
7379   ac_status=$?
7380   grep -v '^ *+' conftest.er1 >conftest.err
7381   rm -f conftest.er1
7382   cat conftest.err >&5
7383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); } && {
7385          test -z "$ac_c_werror_flag" ||
7386          test ! -s conftest.err
7387        } && test -s conftest.$ac_objext; then
7388   ac_cv_type_pthread_rwlock_t=yes
7389 else
7390   echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.$ac_ext >&5
7392
7393         ac_cv_type_pthread_rwlock_t=no
7394 fi
7395
7396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7397 fi
7398 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
7399 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
7400 if test $ac_cv_type_pthread_rwlock_t = yes; then
7401
7402 cat >>confdefs.h <<\_ACEOF
7403 #define HAVE_PTHREAD_RWLOCK 1
7404 _ACEOF
7405
7406 fi
7407
7408           # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
7409           cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h.  */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h.  */
7415 #include <pthread.h>
7416 int
7417 main ()
7418 {
7419 #if __FreeBSD__ == 4
7420 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
7421 #else
7422 int x = (int)PTHREAD_MUTEX_RECURSIVE;
7423 return !x;
7424 #endif
7425   ;
7426   return 0;
7427 }
7428 _ACEOF
7429 rm -f conftest.$ac_objext
7430 if { (ac_try="$ac_compile"
7431 case "(($ac_try" in
7432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433   *) ac_try_echo=$ac_try;;
7434 esac
7435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7436   (eval "$ac_compile") 2>conftest.er1
7437   ac_status=$?
7438   grep -v '^ *+' conftest.er1 >conftest.err
7439   rm -f conftest.er1
7440   cat conftest.err >&5
7441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442   (exit $ac_status); } && {
7443          test -z "$ac_c_werror_flag" ||
7444          test ! -s conftest.err
7445        } && test -s conftest.$ac_objext; then
7446
7447 cat >>confdefs.h <<\_ACEOF
7448 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
7449 _ACEOF
7450
7451 else
7452   echo "$as_me: failed program was:" >&5
7453 sed 's/^/| /' conftest.$ac_ext >&5
7454
7455
7456 fi
7457
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459         fi
7460       fi
7461     fi
7462     if test -z "$gl_have_pthread"; then
7463       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
7464         gl_have_solaristhread=
7465         gl_save_LIBS="$LIBS"
7466         LIBS="$LIBS -lthread"
7467         cat >conftest.$ac_ext <<_ACEOF
7468 /* confdefs.h.  */
7469 _ACEOF
7470 cat confdefs.h >>conftest.$ac_ext
7471 cat >>conftest.$ac_ext <<_ACEOF
7472 /* end confdefs.h.  */
7473 #include <thread.h>
7474 #include <synch.h>
7475 int
7476 main ()
7477 {
7478 thr_self();
7479   ;
7480   return 0;
7481 }
7482 _ACEOF
7483 rm -f conftest.$ac_objext conftest$ac_exeext
7484 if { (ac_try="$ac_link"
7485 case "(($ac_try" in
7486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7487   *) ac_try_echo=$ac_try;;
7488 esac
7489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7490   (eval "$ac_link") 2>conftest.er1
7491   ac_status=$?
7492   grep -v '^ *+' conftest.er1 >conftest.err
7493   rm -f conftest.er1
7494   cat conftest.err >&5
7495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496   (exit $ac_status); } && {
7497          test -z "$ac_c_werror_flag" ||
7498          test ! -s conftest.err
7499        } && test -s conftest$ac_exeext &&
7500        $as_test_x conftest$ac_exeext; then
7501   gl_have_solaristhread=yes
7502 else
7503   echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7505
7506
7507 fi
7508
7509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7510       conftest$ac_exeext conftest.$ac_ext
7511         LIBS="$gl_save_LIBS"
7512         if test -n "$gl_have_solaristhread"; then
7513           gl_threads_api=solaris
7514           LIBTHREAD=-lthread
7515           LTLIBTHREAD=-lthread
7516           LIBMULTITHREAD="$LIBTHREAD"
7517           LTLIBMULTITHREAD="$LTLIBTHREAD"
7518
7519 cat >>confdefs.h <<\_ACEOF
7520 #define USE_SOLARIS_THREADS 1
7521 _ACEOF
7522
7523           if test $gl_have_weak = yes; then
7524
7525 cat >>confdefs.h <<\_ACEOF
7526 #define USE_SOLARIS_THREADS_WEAK 1
7527 _ACEOF
7528
7529             LIBTHREAD=
7530             LTLIBTHREAD=
7531           fi
7532         fi
7533       fi
7534     fi
7535     if test "$gl_use_threads" = pth; then
7536       gl_save_CPPFLAGS="$CPPFLAGS"
7537
7538
7539
7540
7541
7542   { echo "$as_me:$LINENO: checking how to link with libpth" >&5
7543 echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
7544 if test "${ac_cv_libpth_libs+set}" = set; then
7545   echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547
7548
7549
7550
7551     use_additional=yes
7552
7553   acl_save_prefix="$prefix"
7554   prefix="$acl_final_prefix"
7555   acl_save_exec_prefix="$exec_prefix"
7556   exec_prefix="$acl_final_exec_prefix"
7557
7558     eval additional_includedir=\"$includedir\"
7559     eval additional_libdir=\"$libdir\"
7560
7561   exec_prefix="$acl_save_exec_prefix"
7562   prefix="$acl_save_prefix"
7563
7564
7565 # Check whether --with-libpth-prefix was given.
7566 if test "${with_libpth_prefix+set}" = set; then
7567   withval=$with_libpth_prefix;
7568     if test "X$withval" = "Xno"; then
7569       use_additional=no
7570     else
7571       if test "X$withval" = "X"; then
7572
7573   acl_save_prefix="$prefix"
7574   prefix="$acl_final_prefix"
7575   acl_save_exec_prefix="$exec_prefix"
7576   exec_prefix="$acl_final_exec_prefix"
7577
7578           eval additional_includedir=\"$includedir\"
7579           eval additional_libdir=\"$libdir\"
7580
7581   exec_prefix="$acl_save_exec_prefix"
7582   prefix="$acl_save_prefix"
7583
7584       else
7585         additional_includedir="$withval/include"
7586         additional_libdir="$withval/$acl_libdirstem"
7587       fi
7588     fi
7589
7590 fi
7591
7592       LIBPTH=
7593   LTLIBPTH=
7594   INCPTH=
7595   rpathdirs=
7596   ltrpathdirs=
7597   names_already_handled=
7598   names_next_round='pth '
7599   while test -n "$names_next_round"; do
7600     names_this_round="$names_next_round"
7601     names_next_round=
7602     for name in $names_this_round; do
7603       already_handled=
7604       for n in $names_already_handled; do
7605         if test "$n" = "$name"; then
7606           already_handled=yes
7607           break
7608         fi
7609       done
7610       if test -z "$already_handled"; then
7611         names_already_handled="$names_already_handled $name"
7612                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7613         eval value=\"\$HAVE_LIB$uppername\"
7614         if test -n "$value"; then
7615           if test "$value" = yes; then
7616             eval value=\"\$LIB$uppername\"
7617             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
7618             eval value=\"\$LTLIB$uppername\"
7619             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
7620           else
7621                                     :
7622           fi
7623         else
7624                               found_dir=
7625           found_la=
7626           found_so=
7627           found_a=
7628           if test $use_additional = yes; then
7629             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7630               found_dir="$additional_libdir"
7631               found_so="$additional_libdir/lib$name.$shlibext"
7632               if test -f "$additional_libdir/lib$name.la"; then
7633                 found_la="$additional_libdir/lib$name.la"
7634               fi
7635             else
7636               if test -f "$additional_libdir/lib$name.$libext"; then
7637                 found_dir="$additional_libdir"
7638                 found_a="$additional_libdir/lib$name.$libext"
7639                 if test -f "$additional_libdir/lib$name.la"; then
7640                   found_la="$additional_libdir/lib$name.la"
7641                 fi
7642               fi
7643             fi
7644           fi
7645           if test "X$found_dir" = "X"; then
7646             for x in $LDFLAGS $LTLIBPTH; do
7647
7648   acl_save_prefix="$prefix"
7649   prefix="$acl_final_prefix"
7650   acl_save_exec_prefix="$exec_prefix"
7651   exec_prefix="$acl_final_exec_prefix"
7652   eval x=\"$x\"
7653   exec_prefix="$acl_save_exec_prefix"
7654   prefix="$acl_save_prefix"
7655
7656               case "$x" in
7657                 -L*)
7658                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7659                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7660                     found_dir="$dir"
7661                     found_so="$dir/lib$name.$shlibext"
7662                     if test -f "$dir/lib$name.la"; then
7663                       found_la="$dir/lib$name.la"
7664                     fi
7665                   else
7666                     if test -f "$dir/lib$name.$libext"; then
7667                       found_dir="$dir"
7668                       found_a="$dir/lib$name.$libext"
7669                       if test -f "$dir/lib$name.la"; then
7670                         found_la="$dir/lib$name.la"
7671                       fi
7672                     fi
7673                   fi
7674                   ;;
7675               esac
7676               if test "X$found_dir" != "X"; then
7677                 break
7678               fi
7679             done
7680           fi
7681           if test "X$found_dir" != "X"; then
7682                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
7683             if test "X$found_so" != "X"; then
7684                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
7685                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7686               else
7687                                                                                 haveit=
7688                 for x in $ltrpathdirs; do
7689                   if test "X$x" = "X$found_dir"; then
7690                     haveit=yes
7691                     break
7692                   fi
7693                 done
7694                 if test -z "$haveit"; then
7695                   ltrpathdirs="$ltrpathdirs $found_dir"
7696                 fi
7697                                 if test "$hardcode_direct" = yes; then
7698                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7699                 else
7700                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7701                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7702                                                             haveit=
7703                     for x in $rpathdirs; do
7704                       if test "X$x" = "X$found_dir"; then
7705                         haveit=yes
7706                         break
7707                       fi
7708                     done
7709                     if test -z "$haveit"; then
7710                       rpathdirs="$rpathdirs $found_dir"
7711                     fi
7712                   else
7713                                                                                 haveit=
7714                     for x in $LDFLAGS $LIBPTH; do
7715
7716   acl_save_prefix="$prefix"
7717   prefix="$acl_final_prefix"
7718   acl_save_exec_prefix="$exec_prefix"
7719   exec_prefix="$acl_final_exec_prefix"
7720   eval x=\"$x\"
7721   exec_prefix="$acl_save_exec_prefix"
7722   prefix="$acl_save_prefix"
7723
7724                       if test "X$x" = "X-L$found_dir"; then
7725                         haveit=yes
7726                         break
7727                       fi
7728                     done
7729                     if test -z "$haveit"; then
7730                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
7731                     fi
7732                     if test "$hardcode_minus_L" != no; then
7733                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7734                     else
7735                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
7736                     fi
7737                   fi
7738                 fi
7739               fi
7740             else
7741               if test "X$found_a" != "X"; then
7742                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
7743               else
7744                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
7745               fi
7746             fi
7747                         additional_includedir=
7748             case "$found_dir" in
7749               */$acl_libdirstem | */$acl_libdirstem/)
7750                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7751                 additional_includedir="$basedir/include"
7752                 ;;
7753             esac
7754             if test "X$additional_includedir" != "X"; then
7755                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7756                 haveit=
7757                 if test "X$additional_includedir" = "X/usr/local/include"; then
7758                   if test -n "$GCC"; then
7759                     case $host_os in
7760                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7761                     esac
7762                   fi
7763                 fi
7764                 if test -z "$haveit"; then
7765                   for x in $CPPFLAGS $INCPTH; do
7766
7767   acl_save_prefix="$prefix"
7768   prefix="$acl_final_prefix"
7769   acl_save_exec_prefix="$exec_prefix"
7770   exec_prefix="$acl_final_exec_prefix"
7771   eval x=\"$x\"
7772   exec_prefix="$acl_save_exec_prefix"
7773   prefix="$acl_save_prefix"
7774
7775                     if test "X$x" = "X-I$additional_includedir"; then
7776                       haveit=yes
7777                       break
7778                     fi
7779                   done
7780                   if test -z "$haveit"; then
7781                     if test -d "$additional_includedir"; then
7782                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
7783                     fi
7784                   fi
7785                 fi
7786               fi
7787             fi
7788                         if test -n "$found_la"; then
7789                                                         save_libdir="$libdir"
7790               case "$found_la" in
7791                 */* | *\\*) . "$found_la" ;;
7792                 *) . "./$found_la" ;;
7793               esac
7794               libdir="$save_libdir"
7795                             for dep in $dependency_libs; do
7796                 case "$dep" in
7797                   -L*)
7798                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7799                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
7800                       haveit=
7801                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
7802                         if test -n "$GCC"; then
7803                           case $host_os in
7804                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7805                           esac
7806                         fi
7807                       fi
7808                       if test -z "$haveit"; then
7809                         haveit=
7810                         for x in $LDFLAGS $LIBPTH; do
7811
7812   acl_save_prefix="$prefix"
7813   prefix="$acl_final_prefix"
7814   acl_save_exec_prefix="$exec_prefix"
7815   exec_prefix="$acl_final_exec_prefix"
7816   eval x=\"$x\"
7817   exec_prefix="$acl_save_exec_prefix"
7818   prefix="$acl_save_prefix"
7819
7820                           if test "X$x" = "X-L$additional_libdir"; then
7821                             haveit=yes
7822                             break
7823                           fi
7824                         done
7825                         if test -z "$haveit"; then
7826                           if test -d "$additional_libdir"; then
7827                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
7828                           fi
7829                         fi
7830                         haveit=
7831                         for x in $LDFLAGS $LTLIBPTH; do
7832
7833   acl_save_prefix="$prefix"
7834   prefix="$acl_final_prefix"
7835   acl_save_exec_prefix="$exec_prefix"
7836   exec_prefix="$acl_final_exec_prefix"
7837   eval x=\"$x\"
7838   exec_prefix="$acl_save_exec_prefix"
7839   prefix="$acl_save_prefix"
7840
7841                           if test "X$x" = "X-L$additional_libdir"; then
7842                             haveit=yes
7843                             break
7844                           fi
7845                         done
7846                         if test -z "$haveit"; then
7847                           if test -d "$additional_libdir"; then
7848                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
7849                           fi
7850                         fi
7851                       fi
7852                     fi
7853                     ;;
7854                   -R*)
7855                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7856                     if test "$enable_rpath" != no; then
7857                                                                   haveit=
7858                       for x in $rpathdirs; do
7859                         if test "X$x" = "X$dir"; then
7860                           haveit=yes
7861                           break
7862                         fi
7863                       done
7864                       if test -z "$haveit"; then
7865                         rpathdirs="$rpathdirs $dir"
7866                       fi
7867                                                                   haveit=
7868                       for x in $ltrpathdirs; do
7869                         if test "X$x" = "X$dir"; then
7870                           haveit=yes
7871                           break
7872                         fi
7873                       done
7874                       if test -z "$haveit"; then
7875                         ltrpathdirs="$ltrpathdirs $dir"
7876                       fi
7877                     fi
7878                     ;;
7879                   -l*)
7880                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7881                     ;;
7882                   *.la)
7883                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7884                     ;;
7885                   *)
7886                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
7887                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
7888                     ;;
7889                 esac
7890               done
7891             fi
7892           else
7893                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
7894             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
7895           fi
7896         fi
7897       fi
7898     done
7899   done
7900   if test "X$rpathdirs" != "X"; then
7901     if test -n "$hardcode_libdir_separator"; then
7902                         alldirs=
7903       for found_dir in $rpathdirs; do
7904         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7905       done
7906             acl_save_libdir="$libdir"
7907       libdir="$alldirs"
7908       eval flag=\"$hardcode_libdir_flag_spec\"
7909       libdir="$acl_save_libdir"
7910       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
7911     else
7912             for found_dir in $rpathdirs; do
7913         acl_save_libdir="$libdir"
7914         libdir="$found_dir"
7915         eval flag=\"$hardcode_libdir_flag_spec\"
7916         libdir="$acl_save_libdir"
7917         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
7918       done
7919     fi
7920   fi
7921   if test "X$ltrpathdirs" != "X"; then
7922             for found_dir in $ltrpathdirs; do
7923       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
7924     done
7925   fi
7926
7927     ac_cv_libpth_libs="$LIBPTH"
7928     ac_cv_libpth_ltlibs="$LTLIBPTH"
7929     ac_cv_libpth_cppflags="$INCPTH"
7930
7931 fi
7932 { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
7933 echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
7934   LIBPTH="$ac_cv_libpth_libs"
7935   LTLIBPTH="$ac_cv_libpth_ltlibs"
7936   INCPTH="$ac_cv_libpth_cppflags"
7937
7938   for element in $INCPTH; do
7939     haveit=
7940     for x in $CPPFLAGS; do
7941
7942   acl_save_prefix="$prefix"
7943   prefix="$acl_final_prefix"
7944   acl_save_exec_prefix="$exec_prefix"
7945   exec_prefix="$acl_final_exec_prefix"
7946   eval x=\"$x\"
7947   exec_prefix="$acl_save_exec_prefix"
7948   prefix="$acl_save_prefix"
7949
7950       if test "X$x" = "X$element"; then
7951         haveit=yes
7952         break
7953       fi
7954     done
7955     if test -z "$haveit"; then
7956       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7957     fi
7958   done
7959
7960
7961
7962       HAVE_LIBPTH=yes
7963
7964
7965
7966       gl_have_pth=
7967       gl_save_LIBS="$LIBS"
7968       LIBS="$LIBS -lpth"
7969       cat >conftest.$ac_ext <<_ACEOF
7970 /* confdefs.h.  */
7971 _ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h.  */
7975 #include <pth.h>
7976 int
7977 main ()
7978 {
7979 pth_self();
7980   ;
7981   return 0;
7982 }
7983 _ACEOF
7984 rm -f conftest.$ac_objext conftest$ac_exeext
7985 if { (ac_try="$ac_link"
7986 case "(($ac_try" in
7987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988   *) ac_try_echo=$ac_try;;
7989 esac
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991   (eval "$ac_link") 2>conftest.er1
7992   ac_status=$?
7993   grep -v '^ *+' conftest.er1 >conftest.err
7994   rm -f conftest.er1
7995   cat conftest.err >&5
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); } && {
7998          test -z "$ac_c_werror_flag" ||
7999          test ! -s conftest.err
8000        } && test -s conftest$ac_exeext &&
8001        $as_test_x conftest$ac_exeext; then
8002   gl_have_pth=yes
8003 else
8004   echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8006
8007
8008 fi
8009
8010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8011       conftest$ac_exeext conftest.$ac_ext
8012       LIBS="$gl_save_LIBS"
8013       if test -n "$gl_have_pth"; then
8014         gl_threads_api=pth
8015         LIBTHREAD="$LIBPTH"
8016         LTLIBTHREAD="$LTLIBPTH"
8017         LIBMULTITHREAD="$LIBTHREAD"
8018         LTLIBMULTITHREAD="$LTLIBTHREAD"
8019
8020 cat >>confdefs.h <<\_ACEOF
8021 #define USE_PTH_THREADS 1
8022 _ACEOF
8023
8024         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8025           if test $gl_have_weak = yes; then
8026
8027 cat >>confdefs.h <<\_ACEOF
8028 #define USE_PTH_THREADS_WEAK 1
8029 _ACEOF
8030
8031             LIBTHREAD=
8032             LTLIBTHREAD=
8033           fi
8034         fi
8035       else
8036         CPPFLAGS="$gl_save_CPPFLAGS"
8037       fi
8038     fi
8039     if test -z "$gl_have_pthread"; then
8040       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
8041         if { case "$host_os" in
8042                mingw*) true;;
8043                *) false;;
8044              esac
8045            }; then
8046           gl_threads_api=win32
8047
8048 cat >>confdefs.h <<\_ACEOF
8049 #define USE_WIN32_THREADS 1
8050 _ACEOF
8051
8052         fi
8053       fi
8054     fi
8055   fi
8056   { echo "$as_me:$LINENO: checking for multithread API to use" >&5
8057 echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
8058   { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
8059 echo "${ECHO_T}$gl_threads_api" >&6; }
8060
8061
8062
8063
8064
8065
8066   { echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
8067 echo $ECHO_N "checking whether malloc, realloc, calloc are POSIX compliant... $ECHO_C" >&6; }
8068 if test "${gl_cv_func_malloc_posix+set}" = set; then
8069   echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8071
8072                         cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h.  */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h.  */
8078
8079 int
8080 main ()
8081 {
8082 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
8083          choke me
8084          #endif
8085
8086   ;
8087   return 0;
8088 }
8089 _ACEOF
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8092 case "(($ac_try" in
8093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094   *) ac_try_echo=$ac_try;;
8095 esac
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097   (eval "$ac_compile") 2>conftest.er1
8098   ac_status=$?
8099   grep -v '^ *+' conftest.er1 >conftest.err
8100   rm -f conftest.er1
8101   cat conftest.err >&5
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); } && {
8104          test -z "$ac_c_werror_flag" ||
8105          test ! -s conftest.err
8106        } && test -s conftest.$ac_objext; then
8107   gl_cv_func_malloc_posix=yes
8108 else
8109   echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8111
8112         gl_cv_func_malloc_posix=no
8113 fi
8114
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116
8117 fi
8118 { echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
8119 echo "${ECHO_T}$gl_cv_func_malloc_posix" >&6; }
8120
8121
8122   GNULIB_MALLOC_POSIX=0;
8123   GNULIB_REALLOC_POSIX=0;
8124   GNULIB_CALLOC_POSIX=0;
8125   GNULIB_GETSUBOPT=0;
8126   GNULIB_MKDTEMP=0;
8127   GNULIB_MKSTEMP=0;
8128     HAVE_CALLOC_POSIX=1;
8129   HAVE_GETSUBOPT=1;
8130   HAVE_MALLOC_POSIX=1;
8131   HAVE_MKDTEMP=1;
8132   HAVE_REALLOC_POSIX=1;
8133   REPLACE_MKSTEMP=0;
8134
8135 { echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
8136 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6; }
8137 if test "${gl_cv_var__system_configuration+set}" = set; then
8138   echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140   cat >conftest.$ac_ext <<_ACEOF
8141 /* confdefs.h.  */
8142 _ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h.  */
8146 #include <sys/systemcfg.h>
8147
8148 int
8149 main ()
8150 {
8151 double x = _system_configuration.physmem;
8152                        if (x > 0.0) return 0;
8153   ;
8154   return 0;
8155 }
8156 _ACEOF
8157 rm -f conftest.$ac_objext conftest$ac_exeext
8158 if { (ac_try="$ac_link"
8159 case "(($ac_try" in
8160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8161   *) ac_try_echo=$ac_try;;
8162 esac
8163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8164   (eval "$ac_link") 2>conftest.er1
8165   ac_status=$?
8166   grep -v '^ *+' conftest.er1 >conftest.err
8167   rm -f conftest.er1
8168   cat conftest.err >&5
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   (exit $ac_status); } && {
8171          test -z "$ac_c_werror_flag" ||
8172          test ! -s conftest.err
8173        } && test -s conftest$ac_exeext &&
8174        $as_test_x conftest$ac_exeext; then
8175   gl_cv_var__system_configuration=yes
8176 else
8177   echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8179
8180         gl_cv_var__system_configuration=no
8181 fi
8182
8183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8184       conftest$ac_exeext conftest.$ac_ext
8185 fi
8186 { echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
8187 echo "${ECHO_T}$gl_cv_var__system_configuration" >&6; }
8188
8189     if test $gl_cv_var__system_configuration = yes; then
8190
8191 cat >>confdefs.h <<\_ACEOF
8192 #define HAVE__SYSTEM_CONFIGURATION 1
8193 _ACEOF
8194
8195     fi
8196
8197
8198
8199   { echo "$as_me:$LINENO: checking for ssize_t" >&5
8200 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
8201 if test "${gt_cv_ssize_t+set}" = set; then
8202   echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204   cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h.  */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h.  */
8210 #include <sys/types.h>
8211 int
8212 main ()
8213 {
8214 int x = sizeof (ssize_t *) + sizeof (ssize_t);
8215         return !x;
8216   ;
8217   return 0;
8218 }
8219 _ACEOF
8220 rm -f conftest.$ac_objext
8221 if { (ac_try="$ac_compile"
8222 case "(($ac_try" in
8223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224   *) ac_try_echo=$ac_try;;
8225 esac
8226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8227   (eval "$ac_compile") 2>conftest.er1
8228   ac_status=$?
8229   grep -v '^ *+' conftest.er1 >conftest.err
8230   rm -f conftest.er1
8231   cat conftest.err >&5
8232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); } && {
8234          test -z "$ac_c_werror_flag" ||
8235          test ! -s conftest.err
8236        } && test -s conftest.$ac_objext; then
8237   gt_cv_ssize_t=yes
8238 else
8239   echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8241
8242         gt_cv_ssize_t=no
8243 fi
8244
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 fi
8247 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
8248 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
8249   if test $gt_cv_ssize_t = no; then
8250
8251 cat >>confdefs.h <<\_ACEOF
8252 #define ssize_t int
8253 _ACEOF
8254
8255   fi
8256
8257
8258   GNULIB_FPRINTF_POSIX=0;
8259   GNULIB_PRINTF_POSIX=0;
8260   GNULIB_SNPRINTF=0;
8261   GNULIB_SPRINTF_POSIX=0;
8262   GNULIB_VFPRINTF_POSIX=0;
8263   GNULIB_VPRINTF_POSIX=0;
8264   GNULIB_VSNPRINTF=0;
8265   GNULIB_VSPRINTF_POSIX=0;
8266   GNULIB_VASPRINTF=0;
8267   GNULIB_FSEEK=0;
8268   GNULIB_FSEEKO=0;
8269   GNULIB_FTELL=0;
8270   GNULIB_FTELLO=0;
8271   GNULIB_FFLUSH=0;
8272   GNULIB_GETDELIM=0;
8273   GNULIB_GETLINE=0;
8274     REPLACE_FPRINTF=0;
8275   REPLACE_VFPRINTF=0;
8276   REPLACE_PRINTF=0;
8277   REPLACE_VPRINTF=0;
8278   REPLACE_SNPRINTF=0;
8279   HAVE_DECL_SNPRINTF=1;
8280   REPLACE_VSNPRINTF=0;
8281   HAVE_DECL_VSNPRINTF=1;
8282   REPLACE_SPRINTF=0;
8283   REPLACE_VSPRINTF=0;
8284   HAVE_VASPRINTF=1;
8285   REPLACE_VASPRINTF=0;
8286   HAVE_FSEEKO=1;
8287   REPLACE_FSEEKO=0;
8288   REPLACE_FSEEK=0;
8289   HAVE_FTELLO=1;
8290   REPLACE_FTELLO=0;
8291   REPLACE_FTELL=0;
8292   REPLACE_FFLUSH=0;
8293   HAVE_DECL_GETDELIM=1;
8294   HAVE_DECL_GETLINE=1;
8295   REPLACE_GETLINE=0;
8296
8297
8298       { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
8299 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
8300 if test "${ac_cv_have_decl_snprintf+set}" = set; then
8301   echo $ECHO_N "(cached) $ECHO_C" >&6
8302 else
8303   cat >conftest.$ac_ext <<_ACEOF
8304 /* confdefs.h.  */
8305 _ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h.  */
8309 $ac_includes_default
8310 int
8311 main ()
8312 {
8313 #ifndef snprintf
8314   (void) snprintf;
8315 #endif
8316
8317   ;
8318   return 0;
8319 }
8320 _ACEOF
8321 rm -f conftest.$ac_objext
8322 if { (ac_try="$ac_compile"
8323 case "(($ac_try" in
8324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325   *) ac_try_echo=$ac_try;;
8326 esac
8327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328   (eval "$ac_compile") 2>conftest.er1
8329   ac_status=$?
8330   grep -v '^ *+' conftest.er1 >conftest.err
8331   rm -f conftest.er1
8332   cat conftest.err >&5
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); } && {
8335          test -z "$ac_c_werror_flag" ||
8336          test ! -s conftest.err
8337        } && test -s conftest.$ac_objext; then
8338   ac_cv_have_decl_snprintf=yes
8339 else
8340   echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8342
8343         ac_cv_have_decl_snprintf=no
8344 fi
8345
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347 fi
8348 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
8349 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
8350 if test $ac_cv_have_decl_snprintf = yes; then
8351
8352 cat >>confdefs.h <<_ACEOF
8353 #define HAVE_DECL_SNPRINTF 1
8354 _ACEOF
8355
8356
8357 else
8358   cat >>confdefs.h <<_ACEOF
8359 #define HAVE_DECL_SNPRINTF 0
8360 _ACEOF
8361
8362
8363 fi
8364
8365
8366
8367 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8368 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
8369 if test "${ac_cv_header_stdbool_h+set}" = set; then
8370   echo $ECHO_N "(cached) $ECHO_C" >&6
8371 else
8372   cat >conftest.$ac_ext <<_ACEOF
8373 /* confdefs.h.  */
8374 _ACEOF
8375 cat confdefs.h >>conftest.$ac_ext
8376 cat >>conftest.$ac_ext <<_ACEOF
8377 /* end confdefs.h.  */
8378
8379           #include <stdbool.h>
8380           #ifndef bool
8381            "error: bool is not defined"
8382           #endif
8383           #ifndef false
8384            "error: false is not defined"
8385           #endif
8386           #if false
8387            "error: false is not 0"
8388           #endif
8389           #ifndef true
8390            "error: true is not defined"
8391           #endif
8392           #if true != 1
8393            "error: true is not 1"
8394           #endif
8395           #ifndef __bool_true_false_are_defined
8396            "error: __bool_true_false_are_defined is not defined"
8397           #endif
8398
8399           struct s { _Bool s: 1; _Bool t; } s;
8400
8401           char a[true == 1 ? 1 : -1];
8402           char b[false == 0 ? 1 : -1];
8403           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8404           char d[(bool) 0.5 == true ? 1 : -1];
8405           bool e = &s;
8406           char f[(_Bool) 0.0 == false ? 1 : -1];
8407           char g[true];
8408           char h[sizeof (_Bool)];
8409           char i[sizeof s.t];
8410           enum { j = false, k = true, l = false * true, m = true * 256 };
8411           _Bool n[m];
8412           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8413           char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8414           #if defined __xlc__ || defined __GNUC__
8415            /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
8416               reported by James Lemley on 2005-10-05; see
8417               http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8418               This test is not quite right, since xlc is allowed to
8419               reject this program, as the initializer for xlcbug is
8420               not one of the forms that C requires support for.
8421               However, doing the test right would require a run-time
8422               test, and that would make cross-compilation harder.
8423               Let us hope that IBM fixes the xlc bug, and also adds
8424               support for this kind of constant expression.  In the
8425               meantime, this test will reject xlc, which is OK, since
8426               our stdbool.h substitute should suffice.  We also test
8427               this with GCC, where it should work, to detect more
8428               quickly whether someone messes up the test in the
8429               future.  */
8430            char digs[] = "0123456789";
8431            int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8432           #endif
8433           /* Catch a bug in an HP-UX C compiler.  See
8434              http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8435              http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8436            */
8437           _Bool q = true;
8438           _Bool *pq = &q;
8439
8440 int
8441 main ()
8442 {
8443
8444           *pq |= q;
8445           *pq |= ! q;
8446           /* Refer to every declared value, to avoid compiler optimizations.  */
8447           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8448                   + !m + !n + !o + !p + !q + !pq);
8449
8450   ;
8451   return 0;
8452 }
8453 _ACEOF
8454 rm -f conftest.$ac_objext
8455 if { (ac_try="$ac_compile"
8456 case "(($ac_try" in
8457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458   *) ac_try_echo=$ac_try;;
8459 esac
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461   (eval "$ac_compile") 2>conftest.er1
8462   ac_status=$?
8463   grep -v '^ *+' conftest.er1 >conftest.err
8464   rm -f conftest.er1
8465   cat conftest.err >&5
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); } && {
8468          test -z "$ac_c_werror_flag" ||
8469          test ! -s conftest.err
8470        } && test -s conftest.$ac_objext; then
8471   ac_cv_header_stdbool_h=yes
8472 else
8473   echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8475
8476         ac_cv_header_stdbool_h=no
8477 fi
8478
8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480 fi
8481 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8482 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
8483    { echo "$as_me:$LINENO: checking for _Bool" >&5
8484 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
8485 if test "${ac_cv_type__Bool+set}" = set; then
8486   echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488   cat >conftest.$ac_ext <<_ACEOF
8489 /* confdefs.h.  */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h.  */
8494 $ac_includes_default
8495 typedef _Bool ac__type_new_;
8496 int
8497 main ()
8498 {
8499 if ((ac__type_new_ *) 0)
8500   return 0;
8501 if (sizeof (ac__type_new_))
8502   return 0;
8503   ;
8504   return 0;
8505 }
8506 _ACEOF
8507 rm -f conftest.$ac_objext
8508 if { (ac_try="$ac_compile"
8509 case "(($ac_try" in
8510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8511   *) ac_try_echo=$ac_try;;
8512 esac
8513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8514   (eval "$ac_compile") 2>conftest.er1
8515   ac_status=$?
8516   grep -v '^ *+' conftest.er1 >conftest.err
8517   rm -f conftest.er1
8518   cat conftest.err >&5
8519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520   (exit $ac_status); } && {
8521          test -z "$ac_c_werror_flag" ||
8522          test ! -s conftest.err
8523        } && test -s conftest.$ac_objext; then
8524   ac_cv_type__Bool=yes
8525 else
8526   echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8528
8529         ac_cv_type__Bool=no
8530 fi
8531
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533 fi
8534 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8535 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
8536 if test $ac_cv_type__Bool = yes; then
8537
8538 cat >>confdefs.h <<_ACEOF
8539 #define HAVE__BOOL 1
8540 _ACEOF
8541
8542
8543 fi
8544
8545    if test $ac_cv_header_stdbool_h = yes; then
8546
8547 cat >>confdefs.h <<\_ACEOF
8548 #define HAVE_STDBOOL_H 1
8549 _ACEOF
8550
8551    fi
8552
8553   { echo "$as_me:$LINENO: checking for long long int" >&5
8554 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
8555 if test "${ac_cv_type_long_long_int+set}" = set; then
8556   echo $ECHO_N "(cached) $ECHO_C" >&6
8557 else
8558   cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h.  */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h.  */
8564 long long int ll = 9223372036854775807ll;
8565             long long int nll = -9223372036854775807LL;
8566             typedef int a[((-9223372036854775807LL < 0
8567                             && 0 < 9223372036854775807ll)
8568                            ? 1 : -1)];
8569             int i = 63;
8570 int
8571 main ()
8572 {
8573 long long int llmax = 9223372036854775807ll;
8574             return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8575                     | (llmax / ll) | (llmax % ll));
8576   ;
8577   return 0;
8578 }
8579 _ACEOF
8580 rm -f conftest.$ac_objext conftest$ac_exeext
8581 if { (ac_try="$ac_link"
8582 case "(($ac_try" in
8583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584   *) ac_try_echo=$ac_try;;
8585 esac
8586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587   (eval "$ac_link") 2>conftest.er1
8588   ac_status=$?
8589   grep -v '^ *+' conftest.er1 >conftest.err
8590   rm -f conftest.er1
8591   cat conftest.err >&5
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); } && {
8594          test -z "$ac_c_werror_flag" ||
8595          test ! -s conftest.err
8596        } && test -s conftest$ac_exeext &&
8597        $as_test_x conftest$ac_exeext; then
8598                         if test "$cross_compiling" = yes; then
8599   ac_cv_type_long_long_int=yes
8600 else
8601   cat >conftest.$ac_ext <<_ACEOF
8602 /* confdefs.h.  */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h.  */
8607 #include <limits.h>
8608                #ifndef LLONG_MAX
8609                # define HALF \
8610                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
8611                # define LLONG_MAX (HALF - 1 + HALF)
8612                #endif
8613 int
8614 main ()
8615 {
8616 long long int n = 1;
8617                int i;
8618                for (i = 0; ; i++)
8619                  {
8620                    long long int m = n << i;
8621                    if (m >> i != n)
8622                      return 1;
8623                    if (LLONG_MAX / 2 < m)
8624                      break;
8625                  }
8626                return 0;
8627   ;
8628   return 0;
8629 }
8630 _ACEOF
8631 rm -f conftest$ac_exeext
8632 if { (ac_try="$ac_link"
8633 case "(($ac_try" in
8634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635   *) ac_try_echo=$ac_try;;
8636 esac
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638   (eval "$ac_link") 2>&5
8639   ac_status=$?
8640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8642   { (case "(($ac_try" in
8643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644   *) ac_try_echo=$ac_try;;
8645 esac
8646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647   (eval "$ac_try") 2>&5
8648   ac_status=$?
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); }; }; then
8651   ac_cv_type_long_long_int=yes
8652 else
8653   echo "$as_me: program exited with status $ac_status" >&5
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8656
8657 ( exit $ac_status )
8658 ac_cv_type_long_long_int=no
8659 fi
8660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8661 fi
8662
8663
8664 else
8665   echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8667
8668         ac_cv_type_long_long_int=no
8669 fi
8670
8671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8672       conftest$ac_exeext conftest.$ac_ext
8673 fi
8674 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
8675 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
8676   if test $ac_cv_type_long_long_int = yes; then
8677
8678 cat >>confdefs.h <<\_ACEOF
8679 #define HAVE_LONG_LONG_INT 1
8680 _ACEOF
8681
8682   fi
8683
8684
8685   { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
8686 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
8687 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
8688   echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690   cat >conftest.$ac_ext <<_ACEOF
8691 /* confdefs.h.  */
8692 _ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h.  */
8696 unsigned long long int ull = 18446744073709551615ULL;
8697             typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
8698                            ? 1 : -1)];
8699            int i = 63;
8700 int
8701 main ()
8702 {
8703 unsigned long long int ullmax = 18446744073709551615ull;
8704             return (ull << 63 | ull >> 63 | ull << i | ull >> i
8705                     | ullmax / ull | ullmax % ull);
8706   ;
8707   return 0;
8708 }
8709 _ACEOF
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (ac_try="$ac_link"
8712 case "(($ac_try" in
8713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714   *) ac_try_echo=$ac_try;;
8715 esac
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717   (eval "$ac_link") 2>conftest.er1
8718   ac_status=$?
8719   grep -v '^ *+' conftest.er1 >conftest.err
8720   rm -f conftest.er1
8721   cat conftest.err >&5
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); } && {
8724          test -z "$ac_c_werror_flag" ||
8725          test ! -s conftest.err
8726        } && test -s conftest$ac_exeext &&
8727        $as_test_x conftest$ac_exeext; then
8728   ac_cv_type_unsigned_long_long_int=yes
8729 else
8730   echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8732
8733         ac_cv_type_unsigned_long_long_int=no
8734 fi
8735
8736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8737       conftest$ac_exeext conftest.$ac_ext
8738 fi
8739 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
8740 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
8741   if test $ac_cv_type_unsigned_long_long_int = yes; then
8742
8743 cat >>confdefs.h <<\_ACEOF
8744 #define HAVE_UNSIGNED_LONG_LONG_INT 1
8745 _ACEOF
8746
8747   fi
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774   GNULIB_MEMMEM=0;
8775   GNULIB_MEMPCPY=0;
8776   GNULIB_MEMRCHR=0;
8777   GNULIB_STPCPY=0;
8778   GNULIB_STPNCPY=0;
8779   GNULIB_STRCHRNUL=0;
8780   GNULIB_STRDUP=0;
8781   GNULIB_STRNDUP=0;
8782   GNULIB_STRNLEN=0;
8783   GNULIB_STRPBRK=0;
8784   GNULIB_STRSEP=0;
8785   GNULIB_STRCASESTR=0;
8786   GNULIB_STRTOK_R=0;
8787   GNULIB_MBSLEN=0;
8788   GNULIB_MBSNLEN=0;
8789   GNULIB_MBSCHR=0;
8790   GNULIB_MBSRCHR=0;
8791   GNULIB_MBSSTR=0;
8792   GNULIB_MBSCASECMP=0;
8793   GNULIB_MBSNCASECMP=0;
8794   GNULIB_MBSPCASECMP=0;
8795   GNULIB_MBSCASESTR=0;
8796   GNULIB_MBSCSPN=0;
8797   GNULIB_MBSPBRK=0;
8798   GNULIB_MBSSPN=0;
8799   GNULIB_MBSSEP=0;
8800   GNULIB_MBSTOK_R=0;
8801     HAVE_DECL_MEMMEM=1;
8802   HAVE_MEMPCPY=1;
8803   HAVE_DECL_MEMRCHR=1;
8804   HAVE_STPCPY=1;
8805   HAVE_STPNCPY=1;
8806   HAVE_STRCASECMP=1;
8807   HAVE_DECL_STRNCASECMP=1;
8808   HAVE_STRCHRNUL=1;
8809   HAVE_DECL_STRDUP=1;
8810   HAVE_STRNDUP=1;
8811   HAVE_DECL_STRNDUP=1;
8812   HAVE_DECL_STRNLEN=1;
8813   HAVE_STRPBRK=1;
8814   HAVE_STRSEP=1;
8815   HAVE_STRCASESTR=1;
8816   HAVE_DECL_STRTOK_R=1;
8817
8818
8819       { echo "$as_me:$LINENO: checking whether strdup is declared" >&5
8820 echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; }
8821 if test "${ac_cv_have_decl_strdup+set}" = set; then
8822   echo $ECHO_N "(cached) $ECHO_C" >&6
8823 else
8824   cat >conftest.$ac_ext <<_ACEOF
8825 /* confdefs.h.  */
8826 _ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h.  */
8830 $ac_includes_default
8831 int
8832 main ()
8833 {
8834 #ifndef strdup
8835   (void) strdup;
8836 #endif
8837
8838   ;
8839   return 0;
8840 }
8841 _ACEOF
8842 rm -f conftest.$ac_objext
8843 if { (ac_try="$ac_compile"
8844 case "(($ac_try" in
8845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846   *) ac_try_echo=$ac_try;;
8847 esac
8848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849   (eval "$ac_compile") 2>conftest.er1
8850   ac_status=$?
8851   grep -v '^ *+' conftest.er1 >conftest.err
8852   rm -f conftest.er1
8853   cat conftest.err >&5
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); } && {
8856          test -z "$ac_c_werror_flag" ||
8857          test ! -s conftest.err
8858        } && test -s conftest.$ac_objext; then
8859   ac_cv_have_decl_strdup=yes
8860 else
8861   echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8863
8864         ac_cv_have_decl_strdup=no
8865 fi
8866
8867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868 fi
8869 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
8870 echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6; }
8871 if test $ac_cv_have_decl_strdup = yes; then
8872
8873 cat >>confdefs.h <<_ACEOF
8874 #define HAVE_DECL_STRDUP 1
8875 _ACEOF
8876
8877
8878 else
8879   cat >>confdefs.h <<_ACEOF
8880 #define HAVE_DECL_STRDUP 0
8881 _ACEOF
8882
8883
8884 fi
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900   :
8901
8902
8903
8904
8905
8906
8907
8908      if test $gl_cv_have_include_next = yes; then
8909        gl_cv_next_string_h='<'string.h'>'
8910      else
8911        { echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
8912 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6; }
8913 if test "${gl_cv_next_string_h+set}" = set; then
8914   echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916
8917           if test $ac_cv_header_string_h = yes; then
8918             cat >conftest.$ac_ext <<_ACEOF
8919 /* confdefs.h.  */
8920 _ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h.  */
8924 #include <string.h>
8925
8926 _ACEOF
8927                                     gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8928                sed -n '\#/string.h#{
8929                  s#.*"\(.*/string.h\)".*#\1#
8930                  s#^/[^/]#//&#
8931                  p
8932                  q
8933                }'`'"'
8934           else
8935             gl_cv_next_string_h='<'string.h'>'
8936           fi
8937
8938 fi
8939 { echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
8940 echo "${ECHO_T}$gl_cv_next_string_h" >&6; }
8941      fi
8942      NEXT_STRING_H=$gl_cv_next_string_h
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8954 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
8955 if test "${ac_cv_header_stat_broken+set}" = set; then
8956   echo $ECHO_N "(cached) $ECHO_C" >&6
8957 else
8958   cat >conftest.$ac_ext <<_ACEOF
8959 /* confdefs.h.  */
8960 _ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h.  */
8964 #include <sys/types.h>
8965 #include <sys/stat.h>
8966
8967 #if defined S_ISBLK && defined S_IFDIR
8968 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8969 #endif
8970
8971 #if defined S_ISBLK && defined S_IFCHR
8972 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8973 #endif
8974
8975 #if defined S_ISLNK && defined S_IFREG
8976 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8977 #endif
8978
8979 #if defined S_ISSOCK && defined S_IFREG
8980 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8981 #endif
8982
8983 _ACEOF
8984 rm -f conftest.$ac_objext
8985 if { (ac_try="$ac_compile"
8986 case "(($ac_try" in
8987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988   *) ac_try_echo=$ac_try;;
8989 esac
8990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991   (eval "$ac_compile") 2>conftest.er1
8992   ac_status=$?
8993   grep -v '^ *+' conftest.er1 >conftest.err
8994   rm -f conftest.er1
8995   cat conftest.err >&5
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); } && {
8998          test -z "$ac_c_werror_flag" ||
8999          test ! -s conftest.err
9000        } && test -s conftest.$ac_objext; then
9001   ac_cv_header_stat_broken=no
9002 else
9003   echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9005
9006         ac_cv_header_stat_broken=yes
9007 fi
9008
9009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9010 fi
9011 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9012 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
9013 if test $ac_cv_header_stat_broken = yes; then
9014
9015 cat >>confdefs.h <<\_ACEOF
9016 #define STAT_MACROS_BROKEN 1
9017 _ACEOF
9018
9019 fi
9020
9021
9022
9023
9024
9025
9026
9027 # Check whether --enable-largefile was given.
9028 if test "${enable_largefile+set}" = set; then
9029   enableval=$enable_largefile;
9030 fi
9031
9032 if test "$enable_largefile" != no; then
9033
9034   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9035 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9036 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9037   echo $ECHO_N "(cached) $ECHO_C" >&6
9038 else
9039   ac_cv_sys_largefile_CC=no
9040      if test "$GCC" != yes; then
9041        ac_save_CC=$CC
9042        while :; do
9043          # IRIX 6.2 and later do not support large files by default,
9044          # so use the C compiler's -n32 option if that helps.
9045          cat >conftest.$ac_ext <<_ACEOF
9046 /* confdefs.h.  */
9047 _ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h.  */
9051 #include <sys/types.h>
9052  /* Check that off_t can represent 2**63 - 1 correctly.
9053     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9054     since some C++ compilers masquerading as C compilers
9055     incorrectly reject 9223372036854775807.  */
9056 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9057   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9058                        && LARGE_OFF_T % 2147483647 == 1)
9059                       ? 1 : -1];
9060 int
9061 main ()
9062 {
9063
9064   ;
9065   return 0;
9066 }
9067 _ACEOF
9068          rm -f conftest.$ac_objext
9069 if { (ac_try="$ac_compile"
9070 case "(($ac_try" in
9071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9072   *) ac_try_echo=$ac_try;;
9073 esac
9074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075   (eval "$ac_compile") 2>conftest.er1
9076   ac_status=$?
9077   grep -v '^ *+' conftest.er1 >conftest.err
9078   rm -f conftest.er1
9079   cat conftest.err >&5
9080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081   (exit $ac_status); } && {
9082          test -z "$ac_c_werror_flag" ||
9083          test ! -s conftest.err
9084        } && test -s conftest.$ac_objext; then
9085   break
9086 else
9087   echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9089
9090
9091 fi
9092
9093 rm -f core conftest.err conftest.$ac_objext
9094          CC="$CC -n32"
9095          rm -f conftest.$ac_objext
9096 if { (ac_try="$ac_compile"
9097 case "(($ac_try" in
9098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9099   *) ac_try_echo=$ac_try;;
9100 esac
9101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9102   (eval "$ac_compile") 2>conftest.er1
9103   ac_status=$?
9104   grep -v '^ *+' conftest.er1 >conftest.err
9105   rm -f conftest.er1
9106   cat conftest.err >&5
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); } && {
9109          test -z "$ac_c_werror_flag" ||
9110          test ! -s conftest.err
9111        } && test -s conftest.$ac_objext; then
9112   ac_cv_sys_largefile_CC=' -n32'; break
9113 else
9114   echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9116
9117
9118 fi
9119
9120 rm -f core conftest.err conftest.$ac_objext
9121          break
9122        done
9123        CC=$ac_save_CC
9124        rm -f conftest.$ac_ext
9125     fi
9126 fi
9127 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9128 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9129   if test "$ac_cv_sys_largefile_CC" != no; then
9130     CC=$CC$ac_cv_sys_largefile_CC
9131   fi
9132
9133   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9134 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
9135 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9136   echo $ECHO_N "(cached) $ECHO_C" >&6
9137 else
9138   while :; do
9139   cat >conftest.$ac_ext <<_ACEOF
9140 /* confdefs.h.  */
9141 _ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h.  */
9145 #include <sys/types.h>
9146  /* Check that off_t can represent 2**63 - 1 correctly.
9147     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9148     since some C++ compilers masquerading as C compilers
9149     incorrectly reject 9223372036854775807.  */
9150 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9151   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9152                        && LARGE_OFF_T % 2147483647 == 1)
9153                       ? 1 : -1];
9154 int
9155 main ()
9156 {
9157
9158   ;
9159   return 0;
9160 }
9161 _ACEOF
9162 rm -f conftest.$ac_objext
9163 if { (ac_try="$ac_compile"
9164 case "(($ac_try" in
9165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9166   *) ac_try_echo=$ac_try;;
9167 esac
9168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9169   (eval "$ac_compile") 2>conftest.er1
9170   ac_status=$?
9171   grep -v '^ *+' conftest.er1 >conftest.err
9172   rm -f conftest.er1
9173   cat conftest.err >&5
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); } && {
9176          test -z "$ac_c_werror_flag" ||
9177          test ! -s conftest.err
9178        } && test -s conftest.$ac_objext; then
9179   ac_cv_sys_file_offset_bits=no; break
9180 else
9181   echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9183
9184
9185 fi
9186
9187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188   cat >conftest.$ac_ext <<_ACEOF
9189 /* confdefs.h.  */
9190 _ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h.  */
9194 #define _FILE_OFFSET_BITS 64
9195 #include <sys/types.h>
9196  /* Check that off_t can represent 2**63 - 1 correctly.
9197     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9198     since some C++ compilers masquerading as C compilers
9199     incorrectly reject 9223372036854775807.  */
9200 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9201   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9202                        && LARGE_OFF_T % 2147483647 == 1)
9203                       ? 1 : -1];
9204 int
9205 main ()
9206 {
9207
9208   ;
9209   return 0;
9210 }
9211 _ACEOF
9212 rm -f conftest.$ac_objext
9213 if { (ac_try="$ac_compile"
9214 case "(($ac_try" in
9215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9216   *) ac_try_echo=$ac_try;;
9217 esac
9218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9219   (eval "$ac_compile") 2>conftest.er1
9220   ac_status=$?
9221   grep -v '^ *+' conftest.er1 >conftest.err
9222   rm -f conftest.er1
9223   cat conftest.err >&5
9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225   (exit $ac_status); } && {
9226          test -z "$ac_c_werror_flag" ||
9227          test ! -s conftest.err
9228        } && test -s conftest.$ac_objext; then
9229   ac_cv_sys_file_offset_bits=64; break
9230 else
9231   echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9233
9234
9235 fi
9236
9237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238   ac_cv_sys_file_offset_bits=unknown
9239   break
9240 done
9241 fi
9242 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9243 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
9244 case $ac_cv_sys_file_offset_bits in #(
9245   no | unknown) ;;
9246   *)
9247 cat >>confdefs.h <<_ACEOF
9248 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9249 _ACEOF
9250 ;;
9251 esac
9252 rm -f conftest*
9253   if test $ac_cv_sys_file_offset_bits = unknown; then
9254     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9255 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
9256 if test "${ac_cv_sys_large_files+set}" = set; then
9257   echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
9259   while :; do
9260   cat >conftest.$ac_ext <<_ACEOF
9261 /* confdefs.h.  */
9262 _ACEOF
9263 cat confdefs.h >>conftest.$ac_ext
9264 cat >>conftest.$ac_ext <<_ACEOF
9265 /* end confdefs.h.  */
9266 #include <sys/types.h>
9267  /* Check that off_t can represent 2**63 - 1 correctly.
9268     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9269     since some C++ compilers masquerading as C compilers
9270     incorrectly reject 9223372036854775807.  */
9271 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9272   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9273                        && LARGE_OFF_T % 2147483647 == 1)
9274                       ? 1 : -1];
9275 int
9276 main ()
9277 {
9278
9279   ;
9280   return 0;
9281 }
9282 _ACEOF
9283 rm -f conftest.$ac_objext
9284 if { (ac_try="$ac_compile"
9285 case "(($ac_try" in
9286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287   *) ac_try_echo=$ac_try;;
9288 esac
9289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290   (eval "$ac_compile") 2>conftest.er1
9291   ac_status=$?
9292   grep -v '^ *+' conftest.er1 >conftest.err
9293   rm -f conftest.er1
9294   cat conftest.err >&5
9295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296   (exit $ac_status); } && {
9297          test -z "$ac_c_werror_flag" ||
9298          test ! -s conftest.err
9299        } && test -s conftest.$ac_objext; then
9300   ac_cv_sys_large_files=no; break
9301 else
9302   echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9304
9305
9306 fi
9307
9308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9309   cat >conftest.$ac_ext <<_ACEOF
9310 /* confdefs.h.  */
9311 _ACEOF
9312 cat confdefs.h >>conftest.$ac_ext
9313 cat >>conftest.$ac_ext <<_ACEOF
9314 /* end confdefs.h.  */
9315 #define _LARGE_FILES 1
9316 #include <sys/types.h>
9317  /* Check that off_t can represent 2**63 - 1 correctly.
9318     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9319     since some C++ compilers masquerading as C compilers
9320     incorrectly reject 9223372036854775807.  */
9321 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9322   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9323                        && LARGE_OFF_T % 2147483647 == 1)
9324                       ? 1 : -1];
9325 int
9326 main ()
9327 {
9328
9329   ;
9330   return 0;
9331 }
9332 _ACEOF
9333 rm -f conftest.$ac_objext
9334 if { (ac_try="$ac_compile"
9335 case "(($ac_try" in
9336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337   *) ac_try_echo=$ac_try;;
9338 esac
9339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9340   (eval "$ac_compile") 2>conftest.er1
9341   ac_status=$?
9342   grep -v '^ *+' conftest.er1 >conftest.err
9343   rm -f conftest.er1
9344   cat conftest.err >&5
9345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346   (exit $ac_status); } && {
9347          test -z "$ac_c_werror_flag" ||
9348          test ! -s conftest.err
9349        } && test -s conftest.$ac_objext; then
9350   ac_cv_sys_large_files=1; break
9351 else
9352   echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9354
9355
9356 fi
9357
9358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9359   ac_cv_sys_large_files=unknown
9360   break
9361 done
9362 fi
9363 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9364 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
9365 case $ac_cv_sys_large_files in #(
9366   no | unknown) ;;
9367   *)
9368 cat >>confdefs.h <<_ACEOF
9369 #define _LARGE_FILES $ac_cv_sys_large_files
9370 _ACEOF
9371 ;;
9372 esac
9373 rm -f conftest*
9374   fi
9375 fi
9376
9377
9378   GNULIB_CHOWN=0;
9379   GNULIB_DUP2=0;
9380   GNULIB_FCHDIR=0;
9381   GNULIB_FTRUNCATE=0;
9382   GNULIB_GETCWD=0;
9383   GNULIB_GETLOGIN_R=0;
9384   GNULIB_LCHOWN=0;
9385   GNULIB_LSEEK=0;
9386   GNULIB_READLINK=0;
9387   GNULIB_SLEEP=0;
9388     HAVE_DUP2=1;
9389   HAVE_FTRUNCATE=1;
9390   HAVE_READLINK=1;
9391   HAVE_SLEEP=1;
9392   HAVE_DECL_GETLOGIN_R=1;
9393   REPLACE_CHOWN=0;
9394   REPLACE_FCHDIR=0;
9395   REPLACE_GETCWD=0;
9396   REPLACE_LCHOWN=0;
9397   REPLACE_LSEEK=0;
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407   { echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
9408 echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6; }
9409 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
9410   echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412
9413     cat >conftest.$ac_ext <<_ACEOF
9414 /* confdefs.h.  */
9415 _ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h.  */
9419
9420 #include <errno.h>
9421 #ifdef EOVERFLOW
9422 yes
9423 #endif
9424
9425 _ACEOF
9426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9427   $EGREP "yes" >/dev/null 2>&1; then
9428   have_eoverflow=1
9429 fi
9430 rm -f conftest*
9431
9432     if test -n "$have_eoverflow"; then
9433             ac_cv_decl_EOVERFLOW=yes
9434     else
9435       cat >conftest.$ac_ext <<_ACEOF
9436 /* confdefs.h.  */
9437 _ACEOF
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h.  */
9441
9442 #define _XOPEN_SOURCE_EXTENDED 1
9443 #include <errno.h>
9444 #ifdef EOVERFLOW
9445 yes
9446 #endif
9447
9448 _ACEOF
9449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9450   $EGREP "yes" >/dev/null 2>&1; then
9451   have_eoverflow=1
9452 fi
9453 rm -f conftest*
9454
9455       if test -n "$have_eoverflow"; then
9456                         if test "$cross_compiling" = yes; then
9457   # Depending upon the size, compute the lo and hi bounds.
9458 cat >conftest.$ac_ext <<_ACEOF
9459 /* confdefs.h.  */
9460 _ACEOF
9461 cat confdefs.h >>conftest.$ac_ext
9462 cat >>conftest.$ac_ext <<_ACEOF
9463 /* end confdefs.h.  */
9464
9465 #define _XOPEN_SOURCE_EXTENDED 1
9466 #include <errno.h>
9467 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9468 #include <stdio.h>
9469 #include <stdlib.h>
9470
9471 int
9472 main ()
9473 {
9474 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
9475 test_array [0] = 0
9476
9477   ;
9478   return 0;
9479 }
9480 _ACEOF
9481 rm -f conftest.$ac_objext
9482 if { (ac_try="$ac_compile"
9483 case "(($ac_try" in
9484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9485   *) ac_try_echo=$ac_try;;
9486 esac
9487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9488   (eval "$ac_compile") 2>conftest.er1
9489   ac_status=$?
9490   grep -v '^ *+' conftest.er1 >conftest.err
9491   rm -f conftest.er1
9492   cat conftest.err >&5
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); } && {
9495          test -z "$ac_c_werror_flag" ||
9496          test ! -s conftest.err
9497        } && test -s conftest.$ac_objext; then
9498   ac_lo=0 ac_mid=0
9499   while :; do
9500     cat >conftest.$ac_ext <<_ACEOF
9501 /* confdefs.h.  */
9502 _ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h.  */
9506
9507 #define _XOPEN_SOURCE_EXTENDED 1
9508 #include <errno.h>
9509 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9510 #include <stdio.h>
9511 #include <stdlib.h>
9512
9513 int
9514 main ()
9515 {
9516 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
9517 test_array [0] = 0
9518
9519   ;
9520   return 0;
9521 }
9522 _ACEOF
9523 rm -f conftest.$ac_objext
9524 if { (ac_try="$ac_compile"
9525 case "(($ac_try" in
9526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9527   *) ac_try_echo=$ac_try;;
9528 esac
9529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9530   (eval "$ac_compile") 2>conftest.er1
9531   ac_status=$?
9532   grep -v '^ *+' conftest.er1 >conftest.err
9533   rm -f conftest.er1
9534   cat conftest.err >&5
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); } && {
9537          test -z "$ac_c_werror_flag" ||
9538          test ! -s conftest.err
9539        } && test -s conftest.$ac_objext; then
9540   ac_hi=$ac_mid; break
9541 else
9542   echo "$as_me: failed program was:" >&5
9543 sed 's/^/| /' conftest.$ac_ext >&5
9544
9545         ac_lo=`expr $ac_mid + 1`
9546                         if test $ac_lo -le $ac_mid; then
9547                           ac_lo= ac_hi=
9548                           break
9549                         fi
9550                         ac_mid=`expr 2 '*' $ac_mid + 1`
9551 fi
9552
9553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9554   done
9555 else
9556   echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9558
9559         cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h.  */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h.  */
9565
9566 #define _XOPEN_SOURCE_EXTENDED 1
9567 #include <errno.h>
9568 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9569 #include <stdio.h>
9570 #include <stdlib.h>
9571
9572 int
9573 main ()
9574 {
9575 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
9576 test_array [0] = 0
9577
9578   ;
9579   return 0;
9580 }
9581 _ACEOF
9582 rm -f conftest.$ac_objext
9583 if { (ac_try="$ac_compile"
9584 case "(($ac_try" in
9585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586   *) ac_try_echo=$ac_try;;
9587 esac
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589   (eval "$ac_compile") 2>conftest.er1
9590   ac_status=$?
9591   grep -v '^ *+' conftest.er1 >conftest.err
9592   rm -f conftest.er1
9593   cat conftest.err >&5
9594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595   (exit $ac_status); } && {
9596          test -z "$ac_c_werror_flag" ||
9597          test ! -s conftest.err
9598        } && test -s conftest.$ac_objext; then
9599   ac_hi=-1 ac_mid=-1
9600   while :; do
9601     cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h.  */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h.  */
9607
9608 #define _XOPEN_SOURCE_EXTENDED 1
9609 #include <errno.h>
9610 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9611 #include <stdio.h>
9612 #include <stdlib.h>
9613
9614 int
9615 main ()
9616 {
9617 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
9618 test_array [0] = 0
9619
9620   ;
9621   return 0;
9622 }
9623 _ACEOF
9624 rm -f conftest.$ac_objext
9625 if { (ac_try="$ac_compile"
9626 case "(($ac_try" in
9627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628   *) ac_try_echo=$ac_try;;
9629 esac
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631   (eval "$ac_compile") 2>conftest.er1
9632   ac_status=$?
9633   grep -v '^ *+' conftest.er1 >conftest.err
9634   rm -f conftest.er1
9635   cat conftest.err >&5
9636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637   (exit $ac_status); } && {
9638          test -z "$ac_c_werror_flag" ||
9639          test ! -s conftest.err
9640        } && test -s conftest.$ac_objext; then
9641   ac_lo=$ac_mid; break
9642 else
9643   echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9645
9646         ac_hi=`expr '(' $ac_mid ')' - 1`
9647                         if test $ac_mid -le $ac_hi; then
9648                           ac_lo= ac_hi=
9649                           break
9650                         fi
9651                         ac_mid=`expr 2 '*' $ac_mid`
9652 fi
9653
9654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9655   done
9656 else
9657   echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9659
9660         ac_lo= ac_hi=
9661 fi
9662
9663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9664 fi
9665
9666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9667 # Binary search between lo and hi bounds.
9668 while test "x$ac_lo" != "x$ac_hi"; do
9669   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9670   cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h.  */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h.  */
9676
9677 #define _XOPEN_SOURCE_EXTENDED 1
9678 #include <errno.h>
9679 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9680 #include <stdio.h>
9681 #include <stdlib.h>
9682
9683 int
9684 main ()
9685 {
9686 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
9687 test_array [0] = 0
9688
9689   ;
9690   return 0;
9691 }
9692 _ACEOF
9693 rm -f conftest.$ac_objext
9694 if { (ac_try="$ac_compile"
9695 case "(($ac_try" in
9696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697   *) ac_try_echo=$ac_try;;
9698 esac
9699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9700   (eval "$ac_compile") 2>conftest.er1
9701   ac_status=$?
9702   grep -v '^ *+' conftest.er1 >conftest.err
9703   rm -f conftest.er1
9704   cat conftest.err >&5
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); } && {
9707          test -z "$ac_c_werror_flag" ||
9708          test ! -s conftest.err
9709        } && test -s conftest.$ac_objext; then
9710   ac_hi=$ac_mid
9711 else
9712   echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9714
9715         ac_lo=`expr '(' $ac_mid ')' + 1`
9716 fi
9717
9718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9719 done
9720 case $ac_lo in
9721 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
9722 '')  ;;
9723 esac
9724 else
9725   cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h.  */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h.  */
9731
9732 #define _XOPEN_SOURCE_EXTENDED 1
9733 #include <errno.h>
9734 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9735 #include <stdio.h>
9736 #include <stdlib.h>
9737
9738 static long int longval () { return EOVERFLOW; }
9739 static unsigned long int ulongval () { return EOVERFLOW; }
9740 #include <stdio.h>
9741 #include <stdlib.h>
9742 int
9743 main ()
9744 {
9745
9746   FILE *f = fopen ("conftest.val", "w");
9747   if (! f)
9748     return 1;
9749   if ((EOVERFLOW) < 0)
9750     {
9751       long int i = longval ();
9752       if (i != (EOVERFLOW))
9753         return 1;
9754       fprintf (f, "%ld\n", i);
9755     }
9756   else
9757     {
9758       unsigned long int i = ulongval ();
9759       if (i != (EOVERFLOW))
9760         return 1;
9761       fprintf (f, "%lu\n", i);
9762     }
9763   return ferror (f) || fclose (f) != 0;
9764
9765   ;
9766   return 0;
9767 }
9768 _ACEOF
9769 rm -f conftest$ac_exeext
9770 if { (ac_try="$ac_link"
9771 case "(($ac_try" in
9772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773   *) ac_try_echo=$ac_try;;
9774 esac
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776   (eval "$ac_link") 2>&5
9777   ac_status=$?
9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9780   { (case "(($ac_try" in
9781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782   *) ac_try_echo=$ac_try;;
9783 esac
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785   (eval "$ac_try") 2>&5
9786   ac_status=$?
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); }; }; then
9789   ac_cv_decl_EOVERFLOW=`cat conftest.val`
9790 else
9791   echo "$as_me: program exited with status $ac_status" >&5
9792 echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.$ac_ext >&5
9794
9795 fi
9796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9797 fi
9798 rm -f conftest.val
9799       else
9800                                 ac_cv_decl_EOVERFLOW=E2BIG
9801       fi
9802     fi
9803
9804 fi
9805 { echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
9806 echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6; }
9807   if test "$ac_cv_decl_EOVERFLOW" != yes; then
9808
9809 cat >>confdefs.h <<_ACEOF
9810 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
9811 _ACEOF
9812
9813     EOVERFLOW="$ac_cv_decl_EOVERFLOW"
9814
9815   fi
9816
9817
9818
9819
9820
9821
9822
9823
9824   { echo "$as_me:$LINENO: checking for wchar_t" >&5
9825 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
9826 if test "${gt_cv_c_wchar_t+set}" = set; then
9827   echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829   cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h.  */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h.  */
9835 #include <stddef.h>
9836        wchar_t foo = (wchar_t)'\0';
9837 int
9838 main ()
9839 {
9840
9841   ;
9842   return 0;
9843 }
9844 _ACEOF
9845 rm -f conftest.$ac_objext
9846 if { (ac_try="$ac_compile"
9847 case "(($ac_try" in
9848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849   *) ac_try_echo=$ac_try;;
9850 esac
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852   (eval "$ac_compile") 2>conftest.er1
9853   ac_status=$?
9854   grep -v '^ *+' conftest.er1 >conftest.err
9855   rm -f conftest.er1
9856   cat conftest.err >&5
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); } && {
9859          test -z "$ac_c_werror_flag" ||
9860          test ! -s conftest.err
9861        } && test -s conftest.$ac_objext; then
9862   gt_cv_c_wchar_t=yes
9863 else
9864   echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9866
9867         gt_cv_c_wchar_t=no
9868 fi
9869
9870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9871 fi
9872 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
9873 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
9874   if test $gt_cv_c_wchar_t = yes; then
9875
9876 cat >>confdefs.h <<\_ACEOF
9877 #define HAVE_WCHAR_T 1
9878 _ACEOF
9879
9880   fi
9881
9882
9883   { echo "$as_me:$LINENO: checking for wint_t" >&5
9884 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
9885 if test "${gt_cv_c_wint_t+set}" = set; then
9886   echo $ECHO_N "(cached) $ECHO_C" >&6
9887 else
9888   cat >conftest.$ac_ext <<_ACEOF
9889 /* confdefs.h.  */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h.  */
9894 #include <wchar.h>
9895        wint_t foo = (wchar_t)'\0';
9896 int
9897 main ()
9898 {
9899
9900   ;
9901   return 0;
9902 }
9903 _ACEOF
9904 rm -f conftest.$ac_objext
9905 if { (ac_try="$ac_compile"
9906 case "(($ac_try" in
9907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908   *) ac_try_echo=$ac_try;;
9909 esac
9910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911   (eval "$ac_compile") 2>conftest.er1
9912   ac_status=$?
9913   grep -v '^ *+' conftest.er1 >conftest.err
9914   rm -f conftest.er1
9915   cat conftest.err >&5
9916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917   (exit $ac_status); } && {
9918          test -z "$ac_c_werror_flag" ||
9919          test ! -s conftest.err
9920        } && test -s conftest.$ac_objext; then
9921   gt_cv_c_wint_t=yes
9922 else
9923   echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9925
9926         gt_cv_c_wint_t=no
9927 fi
9928
9929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9930 fi
9931 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9932 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9933   if test $gt_cv_c_wint_t = yes; then
9934
9935 cat >>confdefs.h <<\_ACEOF
9936 #define HAVE_WINT_T 1
9937 _ACEOF
9938
9939   fi
9940
9941 { echo "$as_me:$LINENO: checking for size_t" >&5
9942 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9943 if test "${ac_cv_type_size_t+set}" = set; then
9944   echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946   cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h.  */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h.  */
9952 $ac_includes_default
9953 typedef size_t ac__type_new_;
9954 int
9955 main ()
9956 {
9957 if ((ac__type_new_ *) 0)
9958   return 0;
9959 if (sizeof (ac__type_new_))
9960   return 0;
9961   ;
9962   return 0;
9963 }
9964 _ACEOF
9965 rm -f conftest.$ac_objext
9966 if { (ac_try="$ac_compile"
9967 case "(($ac_try" in
9968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969   *) ac_try_echo=$ac_try;;
9970 esac
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972   (eval "$ac_compile") 2>conftest.er1
9973   ac_status=$?
9974   grep -v '^ *+' conftest.er1 >conftest.err
9975   rm -f conftest.er1
9976   cat conftest.err >&5
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); } && {
9979          test -z "$ac_c_werror_flag" ||
9980          test ! -s conftest.err
9981        } && test -s conftest.$ac_objext; then
9982   ac_cv_type_size_t=yes
9983 else
9984   echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9986
9987         ac_cv_type_size_t=no
9988 fi
9989
9990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9991 fi
9992 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9993 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9994 if test $ac_cv_type_size_t = yes; then
9995   :
9996 else
9997
9998 cat >>confdefs.h <<_ACEOF
9999 #define size_t unsigned int
10000 _ACEOF
10001
10002 fi
10003
10004
10005   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
10006 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
10007 if test "${gl_cv_header_inttypes_h+set}" = set; then
10008   echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010   cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h.  */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h.  */
10016 #include <sys/types.h>
10017 #include <inttypes.h>
10018 int
10019 main ()
10020 {
10021 uintmax_t i = (uintmax_t) -1;
10022   ;
10023   return 0;
10024 }
10025 _ACEOF
10026 rm -f conftest.$ac_objext
10027 if { (ac_try="$ac_compile"
10028 case "(($ac_try" in
10029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030   *) ac_try_echo=$ac_try;;
10031 esac
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033   (eval "$ac_compile") 2>conftest.er1
10034   ac_status=$?
10035   grep -v '^ *+' conftest.er1 >conftest.err
10036   rm -f conftest.er1
10037   cat conftest.err >&5
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); } && {
10040          test -z "$ac_c_werror_flag" ||
10041          test ! -s conftest.err
10042        } && test -s conftest.$ac_objext; then
10043   gl_cv_header_inttypes_h=yes
10044 else
10045   echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10047
10048         gl_cv_header_inttypes_h=no
10049 fi
10050
10051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10052 fi
10053 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
10054 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
10055   if test $gl_cv_header_inttypes_h = yes; then
10056
10057 cat >>confdefs.h <<_ACEOF
10058 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
10059 _ACEOF
10060
10061   fi
10062
10063
10064   { echo "$as_me:$LINENO: checking for stdint.h" >&5
10065 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
10066 if test "${gl_cv_header_stdint_h+set}" = set; then
10067   echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069   cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h.  */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h.  */
10075 #include <sys/types.h>
10076 #include <stdint.h>
10077 int
10078 main ()
10079 {
10080 uintmax_t i = (uintmax_t) -1;
10081   ;
10082   return 0;
10083 }
10084 _ACEOF
10085 rm -f conftest.$ac_objext
10086 if { (ac_try="$ac_compile"
10087 case "(($ac_try" in
10088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089   *) ac_try_echo=$ac_try;;
10090 esac
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092   (eval "$ac_compile") 2>conftest.er1
10093   ac_status=$?
10094   grep -v '^ *+' conftest.er1 >conftest.err
10095   rm -f conftest.er1
10096   cat conftest.err >&5
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); } && {
10099          test -z "$ac_c_werror_flag" ||
10100          test ! -s conftest.err
10101        } && test -s conftest.$ac_objext; then
10102   gl_cv_header_stdint_h=yes
10103 else
10104   echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10106
10107         gl_cv_header_stdint_h=no
10108 fi
10109
10110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10111 fi
10112 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
10113 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
10114   if test $gl_cv_header_stdint_h = yes; then
10115
10116 cat >>confdefs.h <<_ACEOF
10117 #define HAVE_STDINT_H_WITH_UINTMAX 1
10118 _ACEOF
10119
10120   fi
10121
10122
10123   { echo "$as_me:$LINENO: checking for long long" >&5
10124 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10125 if test "${ac_cv_type_long_long+set}" = set; then
10126   echo $ECHO_N "(cached) $ECHO_C" >&6
10127 else
10128   cat >conftest.$ac_ext <<_ACEOF
10129 /* confdefs.h.  */
10130 _ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h.  */
10134 long long ll = 1LL; int i = 63;
10135 int
10136 main ()
10137 {
10138 long long llmax = (long long) -1;
10139      return ll << i | ll >> i | llmax / ll | llmax % ll;
10140   ;
10141   return 0;
10142 }
10143 _ACEOF
10144 rm -f conftest.$ac_objext conftest$ac_exeext
10145 if { (ac_try="$ac_link"
10146 case "(($ac_try" in
10147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148   *) ac_try_echo=$ac_try;;
10149 esac
10150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151   (eval "$ac_link") 2>conftest.er1
10152   ac_status=$?
10153   grep -v '^ *+' conftest.er1 >conftest.err
10154   rm -f conftest.er1
10155   cat conftest.err >&5
10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157   (exit $ac_status); } && {
10158          test -z "$ac_c_werror_flag" ||
10159          test ! -s conftest.err
10160        } && test -s conftest$ac_exeext &&
10161        $as_test_x conftest$ac_exeext; then
10162   ac_cv_type_long_long=yes
10163 else
10164   echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10166
10167         ac_cv_type_long_long=no
10168 fi
10169
10170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10171       conftest$ac_exeext conftest.$ac_ext
10172 fi
10173 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10174 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10175   if test $ac_cv_type_long_long = yes; then
10176
10177 cat >>confdefs.h <<\_ACEOF
10178 #define HAVE_LONG_LONG 1
10179 _ACEOF
10180
10181   fi
10182
10183
10184
10185
10186   { echo "$as_me:$LINENO: checking for intmax_t" >&5
10187 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
10188 if test "${gt_cv_c_intmax_t+set}" = set; then
10189   echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191   cat >conftest.$ac_ext <<_ACEOF
10192 /* confdefs.h.  */
10193 _ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h.  */
10197
10198 #include <stddef.h>
10199 #include <stdlib.h>
10200 #if HAVE_STDINT_H_WITH_UINTMAX
10201 #include <stdint.h>
10202 #endif
10203 #if HAVE_INTTYPES_H_WITH_UINTMAX
10204 #include <inttypes.h>
10205 #endif
10206
10207 int
10208 main ()
10209 {
10210 intmax_t x = -1; return !x;
10211   ;
10212   return 0;
10213 }
10214 _ACEOF
10215 rm -f conftest.$ac_objext
10216 if { (ac_try="$ac_compile"
10217 case "(($ac_try" in
10218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10219   *) ac_try_echo=$ac_try;;
10220 esac
10221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10222   (eval "$ac_compile") 2>conftest.er1
10223   ac_status=$?
10224   grep -v '^ *+' conftest.er1 >conftest.err
10225   rm -f conftest.er1
10226   cat conftest.err >&5
10227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228   (exit $ac_status); } && {
10229          test -z "$ac_c_werror_flag" ||
10230          test ! -s conftest.err
10231        } && test -s conftest.$ac_objext; then
10232   gt_cv_c_intmax_t=yes
10233 else
10234   echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10236
10237         gt_cv_c_intmax_t=no
10238 fi
10239
10240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10241 fi
10242 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
10243 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
10244   if test $gt_cv_c_intmax_t = yes; then
10245
10246 cat >>confdefs.h <<\_ACEOF
10247 #define HAVE_INTMAX_T 1
10248 _ACEOF
10249
10250   else
10251
10252     test $ac_cv_type_long_long = yes \
10253       && ac_type='long long' \
10254       || ac_type='long'
10255
10256 cat >>confdefs.h <<_ACEOF
10257 #define intmax_t $ac_type
10258 _ACEOF
10259
10260   fi
10261
10262
10263   GNULIB_WCWIDTH=0;
10264     HAVE_DECL_WCWIDTH=1;
10265   REPLACE_WCWIDTH=0;
10266   WCHAR_H=
10267
10268
10269
10270
10271
10272
10273    if true; then
10274   GL_COND_LIBTOOL_TRUE=
10275   GL_COND_LIBTOOL_FALSE='#'
10276 else
10277   GL_COND_LIBTOOL_TRUE='#'
10278   GL_COND_LIBTOOL_FALSE=
10279 fi
10280
10281   gl_cond_libtool=true
10282   gl_source_base='gnulib'
10283
10284
10285
10286
10287
10288   if test $ac_cv_func_alloca_works = no; then
10289     :
10290   fi
10291
10292   # Define an additional variable used in the Makefile substitution.
10293   if test $ac_cv_working_alloca_h = yes; then
10294     { echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
10295 echo $ECHO_N "checking for alloca as a compiler built-in... $ECHO_C" >&6; }
10296 if test "${gl_cv_rpl_alloca+set}" = set; then
10297   echo $ECHO_N "(cached) $ECHO_C" >&6
10298 else
10299
10300       cat >conftest.$ac_ext <<_ACEOF
10301 /* confdefs.h.  */
10302 _ACEOF
10303 cat confdefs.h >>conftest.$ac_ext
10304 cat >>conftest.$ac_ext <<_ACEOF
10305 /* end confdefs.h.  */
10306
10307 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
10308         Need own alloca
10309 #endif
10310
10311 _ACEOF
10312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10313   $EGREP "Need own alloca" >/dev/null 2>&1; then
10314   gl_cv_rpl_alloca=yes
10315 else
10316   gl_cv_rpl_alloca=no
10317 fi
10318 rm -f conftest*
10319
10320
10321 fi
10322 { echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
10323 echo "${ECHO_T}$gl_cv_rpl_alloca" >&6; }
10324     if test $gl_cv_rpl_alloca = yes; then
10325
10326 cat >>confdefs.h <<\_ACEOF
10327 #define HAVE_ALLOCA 1
10328 _ACEOF
10329
10330       ALLOCA_H=alloca.h
10331     else
10332                   ALLOCA_H=
10333     fi
10334   else
10335     ALLOCA_H=alloca.h
10336   fi
10337
10338
10339
10340 cat >>confdefs.h <<\_ACEOF
10341 #define HAVE_ALLOCA_H 1
10342 _ACEOF
10343
10344
10345
10346
10347   :
10348
10349
10350
10351
10352
10353   if test $ac_cv_header_arpa_inet_h = yes; then
10354     ARPA_INET_H=''
10355   else
10356     ARPA_INET_H='arpa/inet.h'
10357   fi
10358
10359
10360   { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
10361 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
10362 if test -z "$MKDIR_P"; then
10363   if test "${ac_cv_path_mkdir+set}" = set; then
10364   echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10367 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10368 do
10369   IFS=$as_save_IFS
10370   test -z "$as_dir" && as_dir=.
10371   for ac_prog in mkdir gmkdir; do
10372          for ac_exec_ext in '' $ac_executable_extensions; do
10373            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10374            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10375              'mkdir (GNU coreutils) '* | \
10376              'mkdir (coreutils) '* | \
10377              'mkdir (fileutils) '4.1*)
10378                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10379                break 3;;
10380            esac
10381          done
10382        done
10383 done
10384 IFS=$as_save_IFS
10385
10386 fi
10387
10388   if test "${ac_cv_path_mkdir+set}" = set; then
10389     MKDIR_P="$ac_cv_path_mkdir -p"
10390   else
10391     # As a last resort, use the slow shell script.  Don't cache a
10392     # value for MKDIR_P within a source directory, because that will
10393     # break other packages using the cache if that directory is
10394     # removed, or if the value is a relative name.
10395     test -d ./--version && rmdir ./--version
10396     MKDIR_P="$ac_install_sh -d"
10397   fi
10398 fi
10399 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
10400 echo "${ECHO_T}$MKDIR_P" >&6; }
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411   FLOAT_H=
10412   case "$host_os" in
10413     beos*)
10414       FLOAT_H=float.h
10415
10416
10417
10418   :
10419
10420
10421
10422
10423
10424
10425
10426      if test $gl_cv_have_include_next = yes; then
10427        gl_cv_next_float_h='<'float.h'>'
10428      else
10429        { echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
10430 echo $ECHO_N "checking absolute name of <float.h>... $ECHO_C" >&6; }
10431 if test "${gl_cv_next_float_h+set}" = set; then
10432   echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434
10435           if test $ac_cv_header_float_h = yes; then
10436             cat >conftest.$ac_ext <<_ACEOF
10437 /* confdefs.h.  */
10438 _ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h.  */
10442 #include <float.h>
10443
10444 _ACEOF
10445                                     gl_cv_next_float_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10446                sed -n '\#/float.h#{
10447                  s#.*"\(.*/float.h\)".*#\1#
10448                  s#^/[^/]#//&#
10449                  p
10450                  q
10451                }'`'"'
10452           else
10453             gl_cv_next_float_h='<'float.h'>'
10454           fi
10455
10456 fi
10457 { echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
10458 echo "${ECHO_T}$gl_cv_next_float_h" >&6; }
10459      fi
10460      NEXT_FLOAT_H=$gl_cv_next_float_h
10461
10462
10463
10464       ;;
10465   esac
10466
10467
10468
10469
10470   :
10471
10472
10473
10474
10475
10476
10477   :
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487 for ac_header in sys/mount.h
10488 do
10489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10493   echo $ECHO_N "(cached) $ECHO_C" >&6
10494 else
10495   cat >conftest.$ac_ext <<_ACEOF
10496 /* confdefs.h.  */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h.  */
10501 $ac_includes_default
10502      #if HAVE_SYS_PARAM_H
10503        #include <sys/param.h>
10504       #endif
10505
10506 #include <$ac_header>
10507 _ACEOF
10508 rm -f conftest.$ac_objext
10509 if { (ac_try="$ac_compile"
10510 case "(($ac_try" in
10511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512   *) ac_try_echo=$ac_try;;
10513 esac
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515   (eval "$ac_compile") 2>conftest.er1
10516   ac_status=$?
10517   grep -v '^ *+' conftest.er1 >conftest.err
10518   rm -f conftest.er1
10519   cat conftest.err >&5
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); } && {
10522          test -z "$ac_c_werror_flag" ||
10523          test ! -s conftest.err
10524        } && test -s conftest.$ac_objext; then
10525   eval "$as_ac_Header=yes"
10526 else
10527   echo "$as_me: failed program was:" >&5
10528 sed 's/^/| /' conftest.$ac_ext >&5
10529
10530         eval "$as_ac_Header=no"
10531 fi
10532
10533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10534 fi
10535 ac_res=`eval echo '${'$as_ac_Header'}'`
10536                { echo "$as_me:$LINENO: result: $ac_res" >&5
10537 echo "${ECHO_T}$ac_res" >&6; }
10538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10539   cat >>confdefs.h <<_ACEOF
10540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10541 _ACEOF
10542
10543 fi
10544
10545 done
10546
10547
10548
10549 { echo "$as_me:$LINENO: checking how to get file system space usage" >&5
10550 echo "$as_me: checking how to get file system space usage" >&6;}
10551 ac_fsusage_space=no
10552
10553 # Perform only the link test since it seems there are no variants of the
10554 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
10555 # because that got a false positive on SCO OSR5.  Adding the declaration
10556 # of a `struct statvfs' causes this test to fail (as it should) on such
10557 # systems.  That system is reported to work fine with STAT_STATFS4 which
10558 # is what it gets when this test fails.
10559 if test $ac_fsusage_space = no; then
10560   # SVR4
10561   { echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
10562 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6; }
10563 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
10564   echo $ECHO_N "(cached) $ECHO_C" >&6
10565 else
10566   cat >conftest.$ac_ext <<_ACEOF
10567 /* confdefs.h.  */
10568 _ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h.  */
10572 #include <sys/types.h>
10573 #if defined __GLIBC__ && !defined __BEOS__
10574 Do not use statvfs on systems with GNU libc, because that function stats
10575 all preceding entries in /proc/mounts, and that makes df hang if even
10576 one of the corresponding file systems is hard-mounted, but not available.
10577 statvfs in GNU libc on BeOS operates differently: it only makes a system
10578 call.
10579 #endif
10580
10581 #ifdef __osf__
10582 "Do not use Tru64's statvfs implementation"
10583 #endif
10584
10585 #include <sys/statvfs.h>
10586 int
10587 main ()
10588 {
10589 struct statvfs fsd; statvfs (0, &fsd);
10590   ;
10591   return 0;
10592 }
10593 _ACEOF
10594 rm -f conftest.$ac_objext conftest$ac_exeext
10595 if { (ac_try="$ac_link"
10596 case "(($ac_try" in
10597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598   *) ac_try_echo=$ac_try;;
10599 esac
10600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10601   (eval "$ac_link") 2>conftest.er1
10602   ac_status=$?
10603   grep -v '^ *+' conftest.er1 >conftest.err
10604   rm -f conftest.er1
10605   cat conftest.err >&5
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); } && {
10608          test -z "$ac_c_werror_flag" ||
10609          test ! -s conftest.err
10610        } && test -s conftest$ac_exeext &&
10611        $as_test_x conftest$ac_exeext; then
10612   fu_cv_sys_stat_statvfs=yes
10613 else
10614   echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10616
10617         fu_cv_sys_stat_statvfs=no
10618 fi
10619
10620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10621       conftest$ac_exeext conftest.$ac_ext
10622 fi
10623 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
10624 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6; }
10625   if test $fu_cv_sys_stat_statvfs = yes; then
10626     ac_fsusage_space=yes
10627
10628 cat >>confdefs.h <<\_ACEOF
10629 #define STAT_STATVFS 1
10630 _ACEOF
10631
10632   fi
10633 fi
10634
10635 if test $ac_fsusage_space = no; then
10636   # DEC Alpha running OSF/1
10637   { echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
10638 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6; }
10639   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
10640   echo $ECHO_N "(cached) $ECHO_C" >&6
10641 else
10642   if test "$cross_compiling" = yes; then
10643   fu_cv_sys_stat_statfs3_osf1=no
10644 else
10645   cat >conftest.$ac_ext <<_ACEOF
10646 /* confdefs.h.  */
10647 _ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h.  */
10651
10652 #include <sys/param.h>
10653 #include <sys/types.h>
10654 #include <sys/mount.h>
10655   int
10656   main ()
10657   {
10658     struct statfs fsd;
10659     fsd.f_fsize = 0;
10660     return statfs (".", &fsd, sizeof (struct statfs)) != 0;
10661   }
10662 _ACEOF
10663 rm -f conftest$ac_exeext
10664 if { (ac_try="$ac_link"
10665 case "(($ac_try" in
10666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667   *) ac_try_echo=$ac_try;;
10668 esac
10669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10670   (eval "$ac_link") 2>&5
10671   ac_status=$?
10672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10674   { (case "(($ac_try" in
10675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676   *) ac_try_echo=$ac_try;;
10677 esac
10678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10679   (eval "$ac_try") 2>&5
10680   ac_status=$?
10681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682   (exit $ac_status); }; }; then
10683   fu_cv_sys_stat_statfs3_osf1=yes
10684 else
10685   echo "$as_me: program exited with status $ac_status" >&5
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10688
10689 ( exit $ac_status )
10690 fu_cv_sys_stat_statfs3_osf1=no
10691 fi
10692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10693 fi
10694
10695
10696 fi
10697
10698   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
10699 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6; }
10700   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
10701     ac_fsusage_space=yes
10702
10703 cat >>confdefs.h <<\_ACEOF
10704 #define STAT_STATFS3_OSF1 1
10705 _ACEOF
10706
10707   fi
10708 fi
10709
10710 if test $ac_fsusage_space = no; then
10711 # AIX
10712   { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
10713 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6; }
10714   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
10715   echo $ECHO_N "(cached) $ECHO_C" >&6
10716 else
10717   if test "$cross_compiling" = yes; then
10718   fu_cv_sys_stat_statfs2_bsize=no
10719 else
10720   cat >conftest.$ac_ext <<_ACEOF
10721 /* confdefs.h.  */
10722 _ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h.  */
10726
10727 #ifdef HAVE_SYS_PARAM_H
10728 #include <sys/param.h>
10729 #endif
10730 #ifdef HAVE_SYS_MOUNT_H
10731 #include <sys/mount.h>
10732 #endif
10733 #ifdef HAVE_SYS_VFS_H
10734 #include <sys/vfs.h>
10735 #endif
10736   int
10737   main ()
10738   {
10739   struct statfs fsd;
10740   fsd.f_bsize = 0;
10741   return statfs (".", &fsd) != 0;
10742   }
10743 _ACEOF
10744 rm -f conftest$ac_exeext
10745 if { (ac_try="$ac_link"
10746 case "(($ac_try" in
10747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748   *) ac_try_echo=$ac_try;;
10749 esac
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751   (eval "$ac_link") 2>&5
10752   ac_status=$?
10753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10755   { (case "(($ac_try" in
10756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757   *) ac_try_echo=$ac_try;;
10758 esac
10759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760   (eval "$ac_try") 2>&5
10761   ac_status=$?
10762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763   (exit $ac_status); }; }; then
10764   fu_cv_sys_stat_statfs2_bsize=yes
10765 else
10766   echo "$as_me: program exited with status $ac_status" >&5
10767 echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10769
10770 ( exit $ac_status )
10771 fu_cv_sys_stat_statfs2_bsize=no
10772 fi
10773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10774 fi
10775
10776
10777 fi
10778
10779   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
10780 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6; }
10781   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
10782     ac_fsusage_space=yes
10783
10784 cat >>confdefs.h <<\_ACEOF
10785 #define STAT_STATFS2_BSIZE 1
10786 _ACEOF
10787
10788   fi
10789 fi
10790
10791 if test $ac_fsusage_space = no; then
10792 # SVR3
10793   { echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
10794 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6; }
10795   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
10796   echo $ECHO_N "(cached) $ECHO_C" >&6
10797 else
10798   if test "$cross_compiling" = yes; then
10799   fu_cv_sys_stat_statfs4=no
10800 else
10801   cat >conftest.$ac_ext <<_ACEOF
10802 /* confdefs.h.  */
10803 _ACEOF
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h.  */
10807 #include <sys/types.h>
10808 #include <sys/statfs.h>
10809   int
10810   main ()
10811   {
10812   struct statfs fsd;
10813   return statfs (".", &fsd, sizeof fsd, 0) != 0;
10814   }
10815 _ACEOF
10816 rm -f conftest$ac_exeext
10817 if { (ac_try="$ac_link"
10818 case "(($ac_try" in
10819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820   *) ac_try_echo=$ac_try;;
10821 esac
10822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823   (eval "$ac_link") 2>&5
10824   ac_status=$?
10825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10827   { (case "(($ac_try" in
10828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829   *) ac_try_echo=$ac_try;;
10830 esac
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832   (eval "$ac_try") 2>&5
10833   ac_status=$?
10834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835   (exit $ac_status); }; }; then
10836   fu_cv_sys_stat_statfs4=yes
10837 else
10838   echo "$as_me: program exited with status $ac_status" >&5
10839 echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10841
10842 ( exit $ac_status )
10843 fu_cv_sys_stat_statfs4=no
10844 fi
10845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10846 fi
10847
10848
10849 fi
10850
10851   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
10852 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6; }
10853   if test $fu_cv_sys_stat_statfs4 = yes; then
10854     ac_fsusage_space=yes
10855
10856 cat >>confdefs.h <<\_ACEOF
10857 #define STAT_STATFS4 1
10858 _ACEOF
10859
10860   fi
10861 fi
10862
10863 if test $ac_fsusage_space = no; then
10864 # 4.4BSD and NetBSD
10865   { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
10866 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6; }
10867   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
10868   echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870   if test "$cross_compiling" = yes; then
10871   fu_cv_sys_stat_statfs2_fsize=no
10872 else
10873   cat >conftest.$ac_ext <<_ACEOF
10874 /* confdefs.h.  */
10875 _ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h.  */
10879 #include <sys/types.h>
10880 #ifdef HAVE_SYS_PARAM_H
10881 #include <sys/param.h>
10882 #endif
10883 #ifdef HAVE_SYS_MOUNT_H
10884 #include <sys/mount.h>
10885 #endif
10886   int
10887   main ()
10888   {
10889   struct statfs fsd;
10890   fsd.f_fsize = 0;
10891   return statfs (".", &fsd) != 0;
10892   }
10893 _ACEOF
10894 rm -f conftest$ac_exeext
10895 if { (ac_try="$ac_link"
10896 case "(($ac_try" in
10897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898   *) ac_try_echo=$ac_try;;
10899 esac
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901   (eval "$ac_link") 2>&5
10902   ac_status=$?
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10905   { (case "(($ac_try" in
10906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907   *) ac_try_echo=$ac_try;;
10908 esac
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910   (eval "$ac_try") 2>&5
10911   ac_status=$?
10912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913   (exit $ac_status); }; }; then
10914   fu_cv_sys_stat_statfs2_fsize=yes
10915 else
10916   echo "$as_me: program exited with status $ac_status" >&5
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10919
10920 ( exit $ac_status )
10921 fu_cv_sys_stat_statfs2_fsize=no
10922 fi
10923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10924 fi
10925
10926
10927 fi
10928
10929   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
10930 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6; }
10931   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
10932     ac_fsusage_space=yes
10933
10934 cat >>confdefs.h <<\_ACEOF
10935 #define STAT_STATFS2_FSIZE 1
10936 _ACEOF
10937
10938   fi
10939 fi
10940
10941 if test $ac_fsusage_space = no; then
10942   # Ultrix
10943   { echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
10944 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6; }
10945   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
10946   echo $ECHO_N "(cached) $ECHO_C" >&6
10947 else
10948   if test "$cross_compiling" = yes; then
10949   fu_cv_sys_stat_fs_data=no
10950 else
10951   cat >conftest.$ac_ext <<_ACEOF
10952 /* confdefs.h.  */
10953 _ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h.  */
10957 #include <sys/types.h>
10958 #ifdef HAVE_SYS_PARAM_H
10959 #include <sys/param.h>
10960 #endif
10961 #ifdef HAVE_SYS_MOUNT_H
10962 #include <sys/mount.h>
10963 #endif
10964 #ifdef HAVE_SYS_FS_TYPES_H
10965 #include <sys/fs_types.h>
10966 #endif
10967   int
10968   main ()
10969   {
10970   struct fs_data fsd;
10971   /* Ultrix's statfs returns 1 for success,
10972      0 for not mounted, -1 for failure.  */
10973   return statfs (".", &fsd) != 1;
10974   }
10975 _ACEOF
10976 rm -f conftest$ac_exeext
10977 if { (ac_try="$ac_link"
10978 case "(($ac_try" in
10979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980   *) ac_try_echo=$ac_try;;
10981 esac
10982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983   (eval "$ac_link") 2>&5
10984   ac_status=$?
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10987   { (case "(($ac_try" in
10988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989   *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992   (eval "$ac_try") 2>&5
10993   ac_status=$?
10994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995   (exit $ac_status); }; }; then
10996   fu_cv_sys_stat_fs_data=yes
10997 else
10998   echo "$as_me: program exited with status $ac_status" >&5
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11001
11002 ( exit $ac_status )
11003 fu_cv_sys_stat_fs_data=no
11004 fi
11005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11006 fi
11007
11008
11009 fi
11010
11011   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
11012 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6; }
11013   if test $fu_cv_sys_stat_fs_data = yes; then
11014     ac_fsusage_space=yes
11015
11016 cat >>confdefs.h <<\_ACEOF
11017 #define STAT_STATFS2_FS_DATA 1
11018 _ACEOF
11019
11020   fi
11021 fi
11022
11023 if test $ac_fsusage_space = no; then
11024   # SVR2
11025   cat >conftest.$ac_ext <<_ACEOF
11026 /* confdefs.h.  */
11027 _ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h.  */
11031 #include <sys/filsys.h>
11032
11033 _ACEOF
11034 if { (ac_try="$ac_cpp conftest.$ac_ext"
11035 case "(($ac_try" in
11036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037   *) ac_try_echo=$ac_try;;
11038 esac
11039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11041   ac_status=$?
11042   grep -v '^ *+' conftest.er1 >conftest.err
11043   rm -f conftest.er1
11044   cat conftest.err >&5
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); } >/dev/null && {
11047          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11048          test ! -s conftest.err
11049        }; then
11050
11051 cat >>confdefs.h <<\_ACEOF
11052 #define STAT_READ_FILSYS 1
11053 _ACEOF
11054
11055     ac_fsusage_space=yes
11056 else
11057   echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11059
11060
11061 fi
11062
11063 rm -f conftest.err conftest.$ac_ext
11064 fi
11065
11066 if test $ac_fsusage_space = yes; then
11067   gl_cv_fs_space=yes
11068 else
11069   gl_cv_fs_space=no
11070 fi
11071
11072
11073
11074   if test $gl_cv_fs_space = yes; then
11075     gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
11076
11077
11078
11079
11080
11081 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
11082 do
11083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11085   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11088   echo $ECHO_N "(cached) $ECHO_C" >&6
11089 fi
11090 ac_res=`eval echo '${'$as_ac_Header'}'`
11091                { echo "$as_me:$LINENO: result: $ac_res" >&5
11092 echo "${ECHO_T}$ac_res" >&6; }
11093 else
11094   # Is the header compilable?
11095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11097 cat >conftest.$ac_ext <<_ACEOF
11098 /* confdefs.h.  */
11099 _ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h.  */
11103 $ac_includes_default
11104 #include <$ac_header>
11105 _ACEOF
11106 rm -f conftest.$ac_objext
11107 if { (ac_try="$ac_compile"
11108 case "(($ac_try" in
11109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110   *) ac_try_echo=$ac_try;;
11111 esac
11112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113   (eval "$ac_compile") 2>conftest.er1
11114   ac_status=$?
11115   grep -v '^ *+' conftest.er1 >conftest.err
11116   rm -f conftest.er1
11117   cat conftest.err >&5
11118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119   (exit $ac_status); } && {
11120          test -z "$ac_c_werror_flag" ||
11121          test ! -s conftest.err
11122        } && test -s conftest.$ac_objext; then
11123   ac_header_compiler=yes
11124 else
11125   echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11127
11128         ac_header_compiler=no
11129 fi
11130
11131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11133 echo "${ECHO_T}$ac_header_compiler" >&6; }
11134
11135 # Is the header present?
11136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11138 cat >conftest.$ac_ext <<_ACEOF
11139 /* confdefs.h.  */
11140 _ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h.  */
11144 #include <$ac_header>
11145 _ACEOF
11146 if { (ac_try="$ac_cpp conftest.$ac_ext"
11147 case "(($ac_try" in
11148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149   *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11153   ac_status=$?
11154   grep -v '^ *+' conftest.er1 >conftest.err
11155   rm -f conftest.er1
11156   cat conftest.err >&5
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); } >/dev/null && {
11159          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11160          test ! -s conftest.err
11161        }; then
11162   ac_header_preproc=yes
11163 else
11164   echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11166
11167   ac_header_preproc=no
11168 fi
11169
11170 rm -f conftest.err conftest.$ac_ext
11171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11172 echo "${ECHO_T}$ac_header_preproc" >&6; }
11173
11174 # So?  What about this header?
11175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11176   yes:no: )
11177     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11181     ac_header_preproc=yes
11182     ;;
11183   no:yes:* )
11184     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11186     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11187 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11188     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11190     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11191 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11194     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11196
11197     ;;
11198 esac
11199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11202   echo $ECHO_N "(cached) $ECHO_C" >&6
11203 else
11204   eval "$as_ac_Header=\$ac_header_preproc"
11205 fi
11206 ac_res=`eval echo '${'$as_ac_Header'}'`
11207                { echo "$as_me:$LINENO: result: $ac_res" >&5
11208 echo "${ECHO_T}$ac_res" >&6; }
11209
11210 fi
11211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11212   cat >>confdefs.h <<_ACEOF
11213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11214 _ACEOF
11215
11216 fi
11217
11218 done
11219
11220
11221   { echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
11222 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6; }
11223   if test "${fu_cv_sys_truncating_statfs+set}" = set; then
11224   echo $ECHO_N "(cached) $ECHO_C" >&6
11225 else
11226   cat >conftest.$ac_ext <<_ACEOF
11227 /* confdefs.h.  */
11228 _ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h.  */
11232
11233 #if !defined(sun) && !defined(__sun)
11234 choke -- this is a workaround for a Sun-specific problem
11235 #endif
11236 #include <sys/types.h>
11237 #include <sys/vfs.h>
11238 int
11239 main ()
11240 {
11241 struct statfs t; long c = *(t.f_spare);
11242       if (c) return 0;
11243   ;
11244   return 0;
11245 }
11246 _ACEOF
11247 rm -f conftest.$ac_objext
11248 if { (ac_try="$ac_compile"
11249 case "(($ac_try" in
11250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251   *) ac_try_echo=$ac_try;;
11252 esac
11253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254   (eval "$ac_compile") 2>conftest.er1
11255   ac_status=$?
11256   grep -v '^ *+' conftest.er1 >conftest.err
11257   rm -f conftest.er1
11258   cat conftest.err >&5
11259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260   (exit $ac_status); } && {
11261          test -z "$ac_c_werror_flag" ||
11262          test ! -s conftest.err
11263        } && test -s conftest.$ac_objext; then
11264   fu_cv_sys_truncating_statfs=yes
11265 else
11266   echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11268
11269         fu_cv_sys_truncating_statfs=no
11270 fi
11271
11272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273 fi
11274
11275   if test $fu_cv_sys_truncating_statfs = yes; then
11276
11277 cat >>confdefs.h <<\_ACEOF
11278 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
11279 _ACEOF
11280
11281   fi
11282   { echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
11283 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6; }
11284
11285
11286   fi
11287
11288
11289     { echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
11290 echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
11291
11292   { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
11293 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
11294 if test "${ac_cv_search_getaddrinfo+set}" = set; then
11295   echo $ECHO_N "(cached) $ECHO_C" >&6
11296 else
11297   ac_func_search_save_LIBS=$LIBS
11298 cat >conftest.$ac_ext <<_ACEOF
11299 /* confdefs.h.  */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h.  */
11304
11305 /* Override any GCC internal prototype to avoid an error.
11306    Use char because int might match the return type of a GCC
11307    builtin and then its argument prototype would still apply.  */
11308 #ifdef __cplusplus
11309 extern "C"
11310 #endif
11311 char getaddrinfo ();
11312 int
11313 main ()
11314 {
11315 return getaddrinfo ();
11316   ;
11317   return 0;
11318 }
11319 _ACEOF
11320 for ac_lib in '' nsl socket; do
11321   if test -z "$ac_lib"; then
11322     ac_res="none required"
11323   else
11324     ac_res=-l$ac_lib
11325     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11326   fi
11327   rm -f conftest.$ac_objext conftest$ac_exeext
11328 if { (ac_try="$ac_link"
11329 case "(($ac_try" in
11330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331   *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334   (eval "$ac_link") 2>conftest.er1
11335   ac_status=$?
11336   grep -v '^ *+' conftest.er1 >conftest.err
11337   rm -f conftest.er1
11338   cat conftest.err >&5
11339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); } && {
11341          test -z "$ac_c_werror_flag" ||
11342          test ! -s conftest.err
11343        } && test -s conftest$ac_exeext &&
11344        $as_test_x conftest$ac_exeext; then
11345   ac_cv_search_getaddrinfo=$ac_res
11346 else
11347   echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11349
11350
11351 fi
11352
11353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11354       conftest$ac_exeext
11355   if test "${ac_cv_search_getaddrinfo+set}" = set; then
11356   break
11357 fi
11358 done
11359 if test "${ac_cv_search_getaddrinfo+set}" = set; then
11360   :
11361 else
11362   ac_cv_search_getaddrinfo=no
11363 fi
11364 rm conftest.$ac_ext
11365 LIBS=$ac_func_search_save_LIBS
11366 fi
11367 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
11368 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
11369 ac_res=$ac_cv_search_getaddrinfo
11370 if test "$ac_res" != no; then
11371   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11372
11373 fi
11374
11375
11376 for ac_func in getaddrinfo
11377 do
11378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11379 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11382   echo $ECHO_N "(cached) $ECHO_C" >&6
11383 else
11384   cat >conftest.$ac_ext <<_ACEOF
11385 /* confdefs.h.  */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h.  */
11390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11391    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11392 #define $ac_func innocuous_$ac_func
11393
11394 /* System header to define __stub macros and hopefully few prototypes,
11395     which can conflict with char $ac_func (); below.
11396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11397     <limits.h> exists even on freestanding compilers.  */
11398
11399 #ifdef __STDC__
11400 # include <limits.h>
11401 #else
11402 # include <assert.h>
11403 #endif
11404
11405 #undef $ac_func
11406
11407 /* Override any GCC internal prototype to avoid an error.
11408    Use char because int might match the return type of a GCC
11409    builtin and then its argument prototype would still apply.  */
11410 #ifdef __cplusplus
11411 extern "C"
11412 #endif
11413 char $ac_func ();
11414 /* The GNU C library defines this for functions which it implements
11415     to always fail with ENOSYS.  Some functions are actually named
11416     something starting with __ and the normal name is an alias.  */
11417 #if defined __stub_$ac_func || defined __stub___$ac_func
11418 choke me
11419 #endif
11420
11421 int
11422 main ()
11423 {
11424 return $ac_func ();
11425   ;
11426   return 0;
11427 }
11428 _ACEOF
11429 rm -f conftest.$ac_objext conftest$ac_exeext
11430 if { (ac_try="$ac_link"
11431 case "(($ac_try" in
11432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433   *) ac_try_echo=$ac_try;;
11434 esac
11435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436   (eval "$ac_link") 2>conftest.er1
11437   ac_status=$?
11438   grep -v '^ *+' conftest.er1 >conftest.err
11439   rm -f conftest.er1
11440   cat conftest.err >&5
11441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442   (exit $ac_status); } && {
11443          test -z "$ac_c_werror_flag" ||
11444          test ! -s conftest.err
11445        } && test -s conftest$ac_exeext &&
11446        $as_test_x conftest$ac_exeext; then
11447   eval "$as_ac_var=yes"
11448 else
11449   echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11451
11452         eval "$as_ac_var=no"
11453 fi
11454
11455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11456       conftest$ac_exeext conftest.$ac_ext
11457 fi
11458 ac_res=`eval echo '${'$as_ac_var'}'`
11459                { echo "$as_me:$LINENO: result: $ac_res" >&5
11460 echo "${ECHO_T}$ac_res" >&6; }
11461 if test `eval echo '${'$as_ac_var'}'` = yes; then
11462   cat >>confdefs.h <<_ACEOF
11463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11464 _ACEOF
11465
11466 else
11467
11468     { echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
11469 echo $ECHO_N "checking for getaddrinfo in ws2tcpip.h and -lws2_32... $ECHO_C" >&6; }
11470 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
11471   echo $ECHO_N "(cached) $ECHO_C" >&6
11472 else
11473
11474       gl_cv_w32_getaddrinfo=no
11475       am_save_LIBS="$LIBS"
11476       LIBS="$LIBS -lws2_32"
11477       cat >conftest.$ac_ext <<_ACEOF
11478 /* confdefs.h.  */
11479 _ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h.  */
11483
11484 #ifdef HAVE_WS2TCPIP_H
11485 #include <ws2tcpip.h>
11486 #endif
11487
11488 int
11489 main ()
11490 {
11491 getaddrinfo(0, 0, 0, 0);
11492   ;
11493   return 0;
11494 }
11495 _ACEOF
11496 rm -f conftest.$ac_objext conftest$ac_exeext
11497 if { (ac_try="$ac_link"
11498 case "(($ac_try" in
11499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500   *) ac_try_echo=$ac_try;;
11501 esac
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503   (eval "$ac_link") 2>conftest.er1
11504   ac_status=$?
11505   grep -v '^ *+' conftest.er1 >conftest.err
11506   rm -f conftest.er1
11507   cat conftest.err >&5
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); } && {
11510          test -z "$ac_c_werror_flag" ||
11511          test ! -s conftest.err
11512        } && test -s conftest$ac_exeext &&
11513        $as_test_x conftest$ac_exeext; then
11514   gl_cv_w32_getaddrinfo=yes
11515 else
11516   echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11518
11519
11520 fi
11521
11522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11523       conftest$ac_exeext conftest.$ac_ext
11524     LIBS="$am_save_LIBS"
11525 fi
11526 { echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
11527 echo "${ECHO_T}$gl_cv_w32_getaddrinfo" >&6; }
11528     if test "$gl_cv_w32_getaddrinfo" = "yes"; then
11529       LIBS="$LIBS -lws2_32"
11530     else
11531       gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
11532     fi
11533
11534 fi
11535 done
11536
11537
11538   # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
11539   # inline function declared in ws2tcpip.h, so we need to get that
11540   # header included somehow.
11541
11542   :
11543
11544
11545
11546
11547
11548   { echo "$as_me:$LINENO: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
11549 echo $ECHO_N "checking for gai_strerror (possibly via ws2tcpip.h)... $ECHO_C" >&6; }
11550 if test "${gl_cv_func_gai_strerror+set}" = set; then
11551   echo $ECHO_N "(cached) $ECHO_C" >&6
11552 else
11553
11554       cat >conftest.$ac_ext <<_ACEOF
11555 /* confdefs.h.  */
11556 _ACEOF
11557 cat confdefs.h >>conftest.$ac_ext
11558 cat >>conftest.$ac_ext <<_ACEOF
11559 /* end confdefs.h.  */
11560
11561 #include <sys/types.h>
11562 #ifdef HAVE_SYS_SOCKET_H
11563 #include <sys/socket.h>
11564 #endif
11565 #ifdef HAVE_NETDB_H
11566 #include <netdb.h>
11567 #endif
11568 #ifdef HAVE_WS2TCPIP_H
11569 #include <ws2tcpip.h>
11570 #endif
11571
11572 int
11573 main ()
11574 {
11575 gai_strerror (0);
11576   ;
11577   return 0;
11578 }
11579 _ACEOF
11580 rm -f conftest.$ac_objext conftest$ac_exeext
11581 if { (ac_try="$ac_link"
11582 case "(($ac_try" in
11583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584   *) ac_try_echo=$ac_try;;
11585 esac
11586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587   (eval "$ac_link") 2>conftest.er1
11588   ac_status=$?
11589   grep -v '^ *+' conftest.er1 >conftest.err
11590   rm -f conftest.er1
11591   cat conftest.err >&5
11592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593   (exit $ac_status); } && {
11594          test -z "$ac_c_werror_flag" ||
11595          test ! -s conftest.err
11596        } && test -s conftest$ac_exeext &&
11597        $as_test_x conftest$ac_exeext; then
11598   gl_cv_func_gai_strerror=yes
11599 else
11600   echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11602
11603         gl_cv_func_gai_strerror=no
11604 fi
11605
11606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11607       conftest$ac_exeext conftest.$ac_ext
11608 fi
11609 { echo "$as_me:$LINENO: result: $gl_cv_func_gai_strerror" >&5
11610 echo "${ECHO_T}$gl_cv_func_gai_strerror" >&6; }
11611   if test $gl_cv_func_gai_strerror = no; then
11612     gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
11613   fi
11614
11615
11616     { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
11617 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
11618 if test "${ac_cv_search_gethostbyname+set}" = set; then
11619   echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621   ac_func_search_save_LIBS=$LIBS
11622 cat >conftest.$ac_ext <<_ACEOF
11623 /* confdefs.h.  */
11624 _ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h.  */
11628
11629 /* Override any GCC internal prototype to avoid an error.
11630    Use char because int might match the return type of a GCC
11631    builtin and then its argument prototype would still apply.  */
11632 #ifdef __cplusplus
11633 extern "C"
11634 #endif
11635 char gethostbyname ();
11636 int
11637 main ()
11638 {
11639 return gethostbyname ();
11640   ;
11641   return 0;
11642 }
11643 _ACEOF
11644 for ac_lib in '' inet nsl; do
11645   if test -z "$ac_lib"; then
11646     ac_res="none required"
11647   else
11648     ac_res=-l$ac_lib
11649     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11650   fi
11651   rm -f conftest.$ac_objext conftest$ac_exeext
11652 if { (ac_try="$ac_link"
11653 case "(($ac_try" in
11654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655   *) ac_try_echo=$ac_try;;
11656 esac
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658   (eval "$ac_link") 2>conftest.er1
11659   ac_status=$?
11660   grep -v '^ *+' conftest.er1 >conftest.err
11661   rm -f conftest.er1
11662   cat conftest.err >&5
11663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664   (exit $ac_status); } && {
11665          test -z "$ac_c_werror_flag" ||
11666          test ! -s conftest.err
11667        } && test -s conftest$ac_exeext &&
11668        $as_test_x conftest$ac_exeext; then
11669   ac_cv_search_gethostbyname=$ac_res
11670 else
11671   echo "$as_me: failed program was:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11673
11674
11675 fi
11676
11677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11678       conftest$ac_exeext
11679   if test "${ac_cv_search_gethostbyname+set}" = set; then
11680   break
11681 fi
11682 done
11683 if test "${ac_cv_search_gethostbyname+set}" = set; then
11684   :
11685 else
11686   ac_cv_search_gethostbyname=no
11687 fi
11688 rm conftest.$ac_ext
11689 LIBS=$ac_func_search_save_LIBS
11690 fi
11691 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
11692 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
11693 ac_res=$ac_cv_search_gethostbyname
11694 if test "$ac_res" != no; then
11695   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11696
11697 fi
11698
11699   { echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
11700 echo $ECHO_N "checking for library containing getservbyname... $ECHO_C" >&6; }
11701 if test "${ac_cv_search_getservbyname+set}" = set; then
11702   echo $ECHO_N "(cached) $ECHO_C" >&6
11703 else
11704   ac_func_search_save_LIBS=$LIBS
11705 cat >conftest.$ac_ext <<_ACEOF
11706 /* confdefs.h.  */
11707 _ACEOF
11708 cat confdefs.h >>conftest.$ac_ext
11709 cat >>conftest.$ac_ext <<_ACEOF
11710 /* end confdefs.h.  */
11711
11712 /* Override any GCC internal prototype to avoid an error.
11713    Use char because int might match the return type of a GCC
11714    builtin and then its argument prototype would still apply.  */
11715 #ifdef __cplusplus
11716 extern "C"
11717 #endif
11718 char getservbyname ();
11719 int
11720 main ()
11721 {
11722 return getservbyname ();
11723   ;
11724   return 0;
11725 }
11726 _ACEOF
11727 for ac_lib in '' inet nsl socket xnet; do
11728   if test -z "$ac_lib"; then
11729     ac_res="none required"
11730   else
11731     ac_res=-l$ac_lib
11732     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11733   fi
11734   rm -f conftest.$ac_objext conftest$ac_exeext
11735 if { (ac_try="$ac_link"
11736 case "(($ac_try" in
11737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738   *) ac_try_echo=$ac_try;;
11739 esac
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741   (eval "$ac_link") 2>conftest.er1
11742   ac_status=$?
11743   grep -v '^ *+' conftest.er1 >conftest.err
11744   rm -f conftest.er1
11745   cat conftest.err >&5
11746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747   (exit $ac_status); } && {
11748          test -z "$ac_c_werror_flag" ||
11749          test ! -s conftest.err
11750        } && test -s conftest$ac_exeext &&
11751        $as_test_x conftest$ac_exeext; then
11752   ac_cv_search_getservbyname=$ac_res
11753 else
11754   echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.$ac_ext >&5
11756
11757
11758 fi
11759
11760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11761       conftest$ac_exeext
11762   if test "${ac_cv_search_getservbyname+set}" = set; then
11763   break
11764 fi
11765 done
11766 if test "${ac_cv_search_getservbyname+set}" = set; then
11767   :
11768 else
11769   ac_cv_search_getservbyname=no
11770 fi
11771 rm conftest.$ac_ext
11772 LIBS=$ac_func_search_save_LIBS
11773 fi
11774 { echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
11775 echo "${ECHO_T}$ac_cv_search_getservbyname" >&6; }
11776 ac_res=$ac_cv_search_getservbyname
11777 if test "$ac_res" != no; then
11778   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11779
11780 fi
11781
11782
11783 for ac_func in gethostbyname
11784 do
11785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11789   echo $ECHO_N "(cached) $ECHO_C" >&6
11790 else
11791   cat >conftest.$ac_ext <<_ACEOF
11792 /* confdefs.h.  */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h.  */
11797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11799 #define $ac_func innocuous_$ac_func
11800
11801 /* System header to define __stub macros and hopefully few prototypes,
11802     which can conflict with char $ac_func (); below.
11803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11804     <limits.h> exists even on freestanding compilers.  */
11805
11806 #ifdef __STDC__
11807 # include <limits.h>
11808 #else
11809 # include <assert.h>
11810 #endif
11811
11812 #undef $ac_func
11813
11814 /* Override any GCC internal prototype to avoid an error.
11815    Use char because int might match the return type of a GCC
11816    builtin and then its argument prototype would still apply.  */
11817 #ifdef __cplusplus
11818 extern "C"
11819 #endif
11820 char $ac_func ();
11821 /* The GNU C library defines this for functions which it implements
11822     to always fail with ENOSYS.  Some functions are actually named
11823     something starting with __ and the normal name is an alias.  */
11824 #if defined __stub_$ac_func || defined __stub___$ac_func
11825 choke me
11826 #endif
11827
11828 int
11829 main ()
11830 {
11831 return $ac_func ();
11832   ;
11833   return 0;
11834 }
11835 _ACEOF
11836 rm -f conftest.$ac_objext conftest$ac_exeext
11837 if { (ac_try="$ac_link"
11838 case "(($ac_try" in
11839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840   *) ac_try_echo=$ac_try;;
11841 esac
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843   (eval "$ac_link") 2>conftest.er1
11844   ac_status=$?
11845   grep -v '^ *+' conftest.er1 >conftest.err
11846   rm -f conftest.er1
11847   cat conftest.err >&5
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); } && {
11850          test -z "$ac_c_werror_flag" ||
11851          test ! -s conftest.err
11852        } && test -s conftest$ac_exeext &&
11853        $as_test_x conftest$ac_exeext; then
11854   eval "$as_ac_var=yes"
11855 else
11856   echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11858
11859         eval "$as_ac_var=no"
11860 fi
11861
11862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11863       conftest$ac_exeext conftest.$ac_ext
11864 fi
11865 ac_res=`eval echo '${'$as_ac_var'}'`
11866                { echo "$as_me:$LINENO: result: $ac_res" >&5
11867 echo "${ECHO_T}$ac_res" >&6; }
11868 if test `eval echo '${'$as_ac_var'}'` = yes; then
11869   cat >>confdefs.h <<_ACEOF
11870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11871 _ACEOF
11872
11873 else
11874
11875     { echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
11876 echo $ECHO_N "checking for gethostbyname in winsock2.h and -lws2_32... $ECHO_C" >&6; }
11877 if test "${gl_cv_w32_gethostbyname+set}" = set; then
11878   echo $ECHO_N "(cached) $ECHO_C" >&6
11879 else
11880
11881       gl_cv_w32_gethostbyname=no
11882       am_save_LIBS="$LIBS"
11883       LIBS="$LIBS -lws2_32"
11884       cat >conftest.$ac_ext <<_ACEOF
11885 /* confdefs.h.  */
11886 _ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h.  */
11890
11891 #ifdef HAVE_WINSOCK2_H
11892 #include <winsock2.h>
11893 #endif
11894
11895 int
11896 main ()
11897 {
11898 gethostbyname(0);
11899   ;
11900   return 0;
11901 }
11902 _ACEOF
11903 rm -f conftest.$ac_objext conftest$ac_exeext
11904 if { (ac_try="$ac_link"
11905 case "(($ac_try" in
11906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907   *) ac_try_echo=$ac_try;;
11908 esac
11909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910   (eval "$ac_link") 2>conftest.er1
11911   ac_status=$?
11912   grep -v '^ *+' conftest.er1 >conftest.err
11913   rm -f conftest.er1
11914   cat conftest.err >&5
11915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916   (exit $ac_status); } && {
11917          test -z "$ac_c_werror_flag" ||
11918          test ! -s conftest.err
11919        } && test -s conftest$ac_exeext &&
11920        $as_test_x conftest$ac_exeext; then
11921   gl_cv_w32_gethostbyname=yes
11922 else
11923   echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.$ac_ext >&5
11925
11926
11927 fi
11928
11929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11930       conftest$ac_exeext conftest.$ac_ext
11931     LIBS="$am_save_LIBS"
11932 fi
11933 { echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
11934 echo "${ECHO_T}$gl_cv_w32_gethostbyname" >&6; }
11935     if test "$gl_cv_w32_gethostbyname" = "yes"; then
11936       LIBS="$LIBS -lws2_32"
11937     fi
11938
11939 fi
11940 done
11941
11942
11943
11944
11945
11946
11947
11948   :
11949
11950
11951
11952
11953
11954
11955
11956
11957   { echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
11958 echo $ECHO_N "checking whether getaddrinfo is declared... $ECHO_C" >&6; }
11959 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
11960   echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962   cat >conftest.$ac_ext <<_ACEOF
11963 /* confdefs.h.  */
11964 _ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h.  */
11968
11969   /* sys/types.h is not needed according to POSIX, but the
11970      sys/socket.h in i386-unknown-freebsd4.10 and
11971      powerpc-apple-darwin5.5 required it. */
11972 #include <sys/types.h>
11973 #ifdef HAVE_SYS_SOCKET_H
11974 #include <sys/socket.h>
11975 #endif
11976 #ifdef HAVE_NETDB_H
11977 #include <netdb.h>
11978 #endif
11979 #ifdef HAVE_WS2TCPIP_H
11980 #include <ws2tcpip.h>
11981 #endif
11982
11983
11984 int
11985 main ()
11986 {
11987 #ifndef getaddrinfo
11988   (void) getaddrinfo;
11989 #endif
11990
11991   ;
11992   return 0;
11993 }
11994 _ACEOF
11995 rm -f conftest.$ac_objext
11996 if { (ac_try="$ac_compile"
11997 case "(($ac_try" in
11998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999   *) ac_try_echo=$ac_try;;
12000 esac
12001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002   (eval "$ac_compile") 2>conftest.er1
12003   ac_status=$?
12004   grep -v '^ *+' conftest.er1 >conftest.err
12005   rm -f conftest.er1
12006   cat conftest.err >&5
12007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008   (exit $ac_status); } && {
12009          test -z "$ac_c_werror_flag" ||
12010          test ! -s conftest.err
12011        } && test -s conftest.$ac_objext; then
12012   ac_cv_have_decl_getaddrinfo=yes
12013 else
12014   echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12016
12017         ac_cv_have_decl_getaddrinfo=no
12018 fi
12019
12020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12021 fi
12022 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
12023 echo "${ECHO_T}$ac_cv_have_decl_getaddrinfo" >&6; }
12024 if test $ac_cv_have_decl_getaddrinfo = yes; then
12025
12026 cat >>confdefs.h <<_ACEOF
12027 #define HAVE_DECL_GETADDRINFO 1
12028 _ACEOF
12029
12030
12031 else
12032   cat >>confdefs.h <<_ACEOF
12033 #define HAVE_DECL_GETADDRINFO 0
12034 _ACEOF
12035
12036
12037 fi
12038 { echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
12039 echo $ECHO_N "checking whether freeaddrinfo is declared... $ECHO_C" >&6; }
12040 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
12041   echo $ECHO_N "(cached) $ECHO_C" >&6
12042 else
12043   cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h.  */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h.  */
12049
12050   /* sys/types.h is not needed according to POSIX, but the
12051      sys/socket.h in i386-unknown-freebsd4.10 and
12052      powerpc-apple-darwin5.5 required it. */
12053 #include <sys/types.h>
12054 #ifdef HAVE_SYS_SOCKET_H
12055 #include <sys/socket.h>
12056 #endif
12057 #ifdef HAVE_NETDB_H
12058 #include <netdb.h>
12059 #endif
12060 #ifdef HAVE_WS2TCPIP_H
12061 #include <ws2tcpip.h>
12062 #endif
12063
12064
12065 int
12066 main ()
12067 {
12068 #ifndef freeaddrinfo
12069   (void) freeaddrinfo;
12070 #endif
12071
12072   ;
12073   return 0;
12074 }
12075 _ACEOF
12076 rm -f conftest.$ac_objext
12077 if { (ac_try="$ac_compile"
12078 case "(($ac_try" in
12079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080   *) ac_try_echo=$ac_try;;
12081 esac
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083   (eval "$ac_compile") 2>conftest.er1
12084   ac_status=$?
12085   grep -v '^ *+' conftest.er1 >conftest.err
12086   rm -f conftest.er1
12087   cat conftest.err >&5
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); } && {
12090          test -z "$ac_c_werror_flag" ||
12091          test ! -s conftest.err
12092        } && test -s conftest.$ac_objext; then
12093   ac_cv_have_decl_freeaddrinfo=yes
12094 else
12095   echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12097
12098         ac_cv_have_decl_freeaddrinfo=no
12099 fi
12100
12101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12102 fi
12103 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
12104 echo "${ECHO_T}$ac_cv_have_decl_freeaddrinfo" >&6; }
12105 if test $ac_cv_have_decl_freeaddrinfo = yes; then
12106
12107 cat >>confdefs.h <<_ACEOF
12108 #define HAVE_DECL_FREEADDRINFO 1
12109 _ACEOF
12110
12111
12112 else
12113   cat >>confdefs.h <<_ACEOF
12114 #define HAVE_DECL_FREEADDRINFO 0
12115 _ACEOF
12116
12117
12118 fi
12119 { echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
12120 echo $ECHO_N "checking whether gai_strerror is declared... $ECHO_C" >&6; }
12121 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
12122   echo $ECHO_N "(cached) $ECHO_C" >&6
12123 else
12124   cat >conftest.$ac_ext <<_ACEOF
12125 /* confdefs.h.  */
12126 _ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h.  */
12130
12131   /* sys/types.h is not needed according to POSIX, but the
12132      sys/socket.h in i386-unknown-freebsd4.10 and
12133      powerpc-apple-darwin5.5 required it. */
12134 #include <sys/types.h>
12135 #ifdef HAVE_SYS_SOCKET_H
12136 #include <sys/socket.h>
12137 #endif
12138 #ifdef HAVE_NETDB_H
12139 #include <netdb.h>
12140 #endif
12141 #ifdef HAVE_WS2TCPIP_H
12142 #include <ws2tcpip.h>
12143 #endif
12144
12145
12146 int
12147 main ()
12148 {
12149 #ifndef gai_strerror
12150   (void) gai_strerror;
12151 #endif
12152
12153   ;
12154   return 0;
12155 }
12156 _ACEOF
12157 rm -f conftest.$ac_objext
12158 if { (ac_try="$ac_compile"
12159 case "(($ac_try" in
12160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161   *) ac_try_echo=$ac_try;;
12162 esac
12163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12164   (eval "$ac_compile") 2>conftest.er1
12165   ac_status=$?
12166   grep -v '^ *+' conftest.er1 >conftest.err
12167   rm -f conftest.er1
12168   cat conftest.err >&5
12169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170   (exit $ac_status); } && {
12171          test -z "$ac_c_werror_flag" ||
12172          test ! -s conftest.err
12173        } && test -s conftest.$ac_objext; then
12174   ac_cv_have_decl_gai_strerror=yes
12175 else
12176   echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12178
12179         ac_cv_have_decl_gai_strerror=no
12180 fi
12181
12182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12183 fi
12184 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
12185 echo "${ECHO_T}$ac_cv_have_decl_gai_strerror" >&6; }
12186 if test $ac_cv_have_decl_gai_strerror = yes; then
12187
12188 cat >>confdefs.h <<_ACEOF
12189 #define HAVE_DECL_GAI_STRERROR 1
12190 _ACEOF
12191
12192
12193 else
12194   cat >>confdefs.h <<_ACEOF
12195 #define HAVE_DECL_GAI_STRERROR 0
12196 _ACEOF
12197
12198
12199 fi
12200 { echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
12201 echo $ECHO_N "checking whether getnameinfo is declared... $ECHO_C" >&6; }
12202 if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
12203   echo $ECHO_N "(cached) $ECHO_C" >&6
12204 else
12205   cat >conftest.$ac_ext <<_ACEOF
12206 /* confdefs.h.  */
12207 _ACEOF
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h.  */
12211
12212   /* sys/types.h is not needed according to POSIX, but the
12213      sys/socket.h in i386-unknown-freebsd4.10 and
12214      powerpc-apple-darwin5.5 required it. */
12215 #include <sys/types.h>
12216 #ifdef HAVE_SYS_SOCKET_H
12217 #include <sys/socket.h>
12218 #endif
12219 #ifdef HAVE_NETDB_H
12220 #include <netdb.h>
12221 #endif
12222 #ifdef HAVE_WS2TCPIP_H
12223 #include <ws2tcpip.h>
12224 #endif
12225
12226
12227 int
12228 main ()
12229 {
12230 #ifndef getnameinfo
12231   (void) getnameinfo;
12232 #endif
12233
12234   ;
12235   return 0;
12236 }
12237 _ACEOF
12238 rm -f conftest.$ac_objext
12239 if { (ac_try="$ac_compile"
12240 case "(($ac_try" in
12241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12242   *) ac_try_echo=$ac_try;;
12243 esac
12244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245   (eval "$ac_compile") 2>conftest.er1
12246   ac_status=$?
12247   grep -v '^ *+' conftest.er1 >conftest.err
12248   rm -f conftest.er1
12249   cat conftest.err >&5
12250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251   (exit $ac_status); } && {
12252          test -z "$ac_c_werror_flag" ||
12253          test ! -s conftest.err
12254        } && test -s conftest.$ac_objext; then
12255   ac_cv_have_decl_getnameinfo=yes
12256 else
12257   echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12259
12260         ac_cv_have_decl_getnameinfo=no
12261 fi
12262
12263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12264 fi
12265 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
12266 echo "${ECHO_T}$ac_cv_have_decl_getnameinfo" >&6; }
12267 if test $ac_cv_have_decl_getnameinfo = yes; then
12268
12269 cat >>confdefs.h <<_ACEOF
12270 #define HAVE_DECL_GETNAMEINFO 1
12271 _ACEOF
12272
12273
12274 else
12275   cat >>confdefs.h <<_ACEOF
12276 #define HAVE_DECL_GETNAMEINFO 0
12277 _ACEOF
12278
12279
12280 fi
12281
12282
12283   { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
12284 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
12285 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
12286   echo $ECHO_N "(cached) $ECHO_C" >&6
12287 else
12288   cat >conftest.$ac_ext <<_ACEOF
12289 /* confdefs.h.  */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h.  */
12294
12295 #include <sys/types.h>
12296 #ifdef HAVE_SYS_SOCKET_H
12297 #include <sys/socket.h>
12298 #endif
12299 #ifdef HAVE_NETDB_H
12300 #include <netdb.h>
12301 #endif
12302 #ifdef HAVE_WS2TCPIP_H
12303 #include <ws2tcpip.h>
12304 #endif
12305
12306
12307 typedef struct addrinfo ac__type_new_;
12308 int
12309 main ()
12310 {
12311 if ((ac__type_new_ *) 0)
12312   return 0;
12313 if (sizeof (ac__type_new_))
12314   return 0;
12315   ;
12316   return 0;
12317 }
12318 _ACEOF
12319 rm -f conftest.$ac_objext
12320 if { (ac_try="$ac_compile"
12321 case "(($ac_try" in
12322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323   *) ac_try_echo=$ac_try;;
12324 esac
12325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12326   (eval "$ac_compile") 2>conftest.er1
12327   ac_status=$?
12328   grep -v '^ *+' conftest.er1 >conftest.err
12329   rm -f conftest.er1
12330   cat conftest.err >&5
12331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); } && {
12333          test -z "$ac_c_werror_flag" ||
12334          test ! -s conftest.err
12335        } && test -s conftest.$ac_objext; then
12336   ac_cv_type_struct_addrinfo=yes
12337 else
12338   echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12340
12341         ac_cv_type_struct_addrinfo=no
12342 fi
12343
12344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12345 fi
12346 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
12347 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
12348 if test $ac_cv_type_struct_addrinfo = yes; then
12349
12350 cat >>confdefs.h <<_ACEOF
12351 #define HAVE_STRUCT_ADDRINFO 1
12352 _ACEOF
12353
12354
12355 fi
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365   :
12366
12367
12368
12369
12370
12371
12372   { echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
12373 echo $ECHO_N "checking for gettimeofday with POSIX signature... $ECHO_C" >&6; }
12374 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
12375   echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377   cat >conftest.$ac_ext <<_ACEOF
12378 /* confdefs.h.  */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h.  */
12383 #include <sys/time.h>
12384             struct timeval c;
12385
12386 int
12387 main ()
12388 {
12389
12390             int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
12391             int x = f (&c, 0);
12392             return !(x | c.tv_sec | c.tv_usec);
12393
12394   ;
12395   return 0;
12396 }
12397 _ACEOF
12398 rm -f conftest.$ac_objext
12399 if { (ac_try="$ac_compile"
12400 case "(($ac_try" in
12401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402   *) ac_try_echo=$ac_try;;
12403 esac
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405   (eval "$ac_compile") 2>conftest.er1
12406   ac_status=$?
12407   grep -v '^ *+' conftest.er1 >conftest.err
12408   rm -f conftest.er1
12409   cat conftest.err >&5
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); } && {
12412          test -z "$ac_c_werror_flag" ||
12413          test ! -s conftest.err
12414        } && test -s conftest.$ac_objext; then
12415   gl_cv_func_gettimeofday_posix_signature=yes
12416 else
12417   echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12419
12420         gl_cv_func_gettimeofday_posix_signature=no
12421 fi
12422
12423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424 fi
12425 { echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
12426 echo "${ECHO_T}$gl_cv_func_gettimeofday_posix_signature" >&6; }
12427
12428
12429
12430
12431  { echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
12432 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6; }
12433 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
12434   echo $ECHO_N "(cached) $ECHO_C" >&6
12435 else
12436   if test "$cross_compiling" = yes; then
12437        gl_cv_func_gettimeofday_clobber=yes
12438 else
12439   cat >conftest.$ac_ext <<_ACEOF
12440 /* confdefs.h.  */
12441 _ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h.  */
12445 #include <string.h>
12446           #include <sys/time.h>
12447           #include <time.h>
12448           #include <stdlib.h>
12449
12450 int
12451 main ()
12452 {
12453
12454           time_t t = 0;
12455           struct tm *lt;
12456           struct tm saved_lt;
12457           struct timeval tv;
12458           lt = localtime (&t);
12459           saved_lt = *lt;
12460           gettimeofday (&tv, NULL);
12461           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
12462
12463   ;
12464   return 0;
12465 }
12466 _ACEOF
12467 rm -f conftest$ac_exeext
12468 if { (ac_try="$ac_link"
12469 case "(($ac_try" in
12470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471   *) ac_try_echo=$ac_try;;
12472 esac
12473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474   (eval "$ac_link") 2>&5
12475   ac_status=$?
12476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12478   { (case "(($ac_try" in
12479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480   *) ac_try_echo=$ac_try;;
12481 esac
12482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483   (eval "$ac_try") 2>&5
12484   ac_status=$?
12485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486   (exit $ac_status); }; }; then
12487   gl_cv_func_gettimeofday_clobber=no
12488 else
12489   echo "$as_me: program exited with status $ac_status" >&5
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12492
12493 ( exit $ac_status )
12494 gl_cv_func_gettimeofday_clobber=yes
12495 fi
12496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12497 fi
12498
12499
12500 fi
12501 { echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
12502 echo "${ECHO_T}$gl_cv_func_gettimeofday_clobber" >&6; }
12503
12504  if test $gl_cv_func_gettimeofday_clobber = yes; then
12505    REPLACE_GETTIMEOFDAY=1
12506    SYS_TIME_H=sys/time.h
12507
12508   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
12509
12510
12511 for ac_header in sys/timeb.h
12512 do
12513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12515   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12518   echo $ECHO_N "(cached) $ECHO_C" >&6
12519 fi
12520 ac_res=`eval echo '${'$as_ac_Header'}'`
12521                { echo "$as_me:$LINENO: result: $ac_res" >&5
12522 echo "${ECHO_T}$ac_res" >&6; }
12523 else
12524   # Is the header compilable?
12525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h.  */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h.  */
12533 $ac_includes_default
12534 #include <$ac_header>
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543   (eval "$ac_compile") 2>conftest.er1
12544   ac_status=$?
12545   grep -v '^ *+' conftest.er1 >conftest.err
12546   rm -f conftest.er1
12547   cat conftest.err >&5
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); } && {
12550          test -z "$ac_c_werror_flag" ||
12551          test ! -s conftest.err
12552        } && test -s conftest.$ac_objext; then
12553   ac_header_compiler=yes
12554 else
12555   echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12557
12558         ac_header_compiler=no
12559 fi
12560
12561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12563 echo "${ECHO_T}$ac_header_compiler" >&6; }
12564
12565 # Is the header present?
12566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12568 cat >conftest.$ac_ext <<_ACEOF
12569 /* confdefs.h.  */
12570 _ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h.  */
12574 #include <$ac_header>
12575 _ACEOF
12576 if { (ac_try="$ac_cpp conftest.$ac_ext"
12577 case "(($ac_try" in
12578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12579   *) ac_try_echo=$ac_try;;
12580 esac
12581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12583   ac_status=$?
12584   grep -v '^ *+' conftest.er1 >conftest.err
12585   rm -f conftest.er1
12586   cat conftest.err >&5
12587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588   (exit $ac_status); } >/dev/null && {
12589          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12590          test ! -s conftest.err
12591        }; then
12592   ac_header_preproc=yes
12593 else
12594   echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12596
12597   ac_header_preproc=no
12598 fi
12599
12600 rm -f conftest.err conftest.$ac_ext
12601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12602 echo "${ECHO_T}$ac_header_preproc" >&6; }
12603
12604 # So?  What about this header?
12605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12606   yes:no: )
12607     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12611     ac_header_preproc=yes
12612     ;;
12613   no:yes:* )
12614     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12616     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12617 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12618     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12620     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12621 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12624     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12626
12627     ;;
12628 esac
12629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12632   echo $ECHO_N "(cached) $ECHO_C" >&6
12633 else
12634   eval "$as_ac_Header=\$ac_header_preproc"
12635 fi
12636 ac_res=`eval echo '${'$as_ac_Header'}'`
12637                { echo "$as_me:$LINENO: result: $ac_res" >&5
12638 echo "${ECHO_T}$ac_res" >&6; }
12639
12640 fi
12641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12642   cat >>confdefs.h <<_ACEOF
12643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12644 _ACEOF
12645
12646 fi
12647
12648 done
12649
12650
12651 for ac_func in _ftime
12652 do
12653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12657   echo $ECHO_N "(cached) $ECHO_C" >&6
12658 else
12659   cat >conftest.$ac_ext <<_ACEOF
12660 /* confdefs.h.  */
12661 _ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h.  */
12665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12667 #define $ac_func innocuous_$ac_func
12668
12669 /* System header to define __stub macros and hopefully few prototypes,
12670     which can conflict with char $ac_func (); below.
12671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12672     <limits.h> exists even on freestanding compilers.  */
12673
12674 #ifdef __STDC__
12675 # include <limits.h>
12676 #else
12677 # include <assert.h>
12678 #endif
12679
12680 #undef $ac_func
12681
12682 /* Override any GCC internal prototype to avoid an error.
12683    Use char because int might match the return type of a GCC
12684    builtin and then its argument prototype would still apply.  */
12685 #ifdef __cplusplus
12686 extern "C"
12687 #endif
12688 char $ac_func ();
12689 /* The GNU C library defines this for functions which it implements
12690     to always fail with ENOSYS.  Some functions are actually named
12691     something starting with __ and the normal name is an alias.  */
12692 #if defined __stub_$ac_func || defined __stub___$ac_func
12693 choke me
12694 #endif
12695
12696 int
12697 main ()
12698 {
12699 return $ac_func ();
12700   ;
12701   return 0;
12702 }
12703 _ACEOF
12704 rm -f conftest.$ac_objext conftest$ac_exeext
12705 if { (ac_try="$ac_link"
12706 case "(($ac_try" in
12707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708   *) ac_try_echo=$ac_try;;
12709 esac
12710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12711   (eval "$ac_link") 2>conftest.er1
12712   ac_status=$?
12713   grep -v '^ *+' conftest.er1 >conftest.err
12714   rm -f conftest.er1
12715   cat conftest.err >&5
12716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717   (exit $ac_status); } && {
12718          test -z "$ac_c_werror_flag" ||
12719          test ! -s conftest.err
12720        } && test -s conftest$ac_exeext &&
12721        $as_test_x conftest$ac_exeext; then
12722   eval "$as_ac_var=yes"
12723 else
12724   echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12726
12727         eval "$as_ac_var=no"
12728 fi
12729
12730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12731       conftest$ac_exeext conftest.$ac_ext
12732 fi
12733 ac_res=`eval echo '${'$as_ac_var'}'`
12734                { echo "$as_me:$LINENO: result: $ac_res" >&5
12735 echo "${ECHO_T}$ac_res" >&6; }
12736 if test `eval echo '${'$as_ac_var'}'` = yes; then
12737   cat >>confdefs.h <<_ACEOF
12738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12739 _ACEOF
12740
12741 fi
12742 done
12743
12744
12745
12746 cat >>confdefs.h <<\_ACEOF
12747 #define gmtime rpl_gmtime
12748 _ACEOF
12749
12750
12751 cat >>confdefs.h <<\_ACEOF
12752 #define localtime rpl_localtime
12753 _ACEOF
12754
12755
12756
12757 cat >>confdefs.h <<\_ACEOF
12758 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
12759 _ACEOF
12760
12761  fi
12762
12763
12764   if test $gl_cv_func_gettimeofday_posix_signature != yes; then
12765     REPLACE_GETTIMEOFDAY=1
12766     SYS_TIME_H=sys/time.h
12767     if test $gl_cv_func_gettimeofday_clobber != yes; then
12768       gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
12769
12770
12771 for ac_header in sys/timeb.h
12772 do
12773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12775   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12778   echo $ECHO_N "(cached) $ECHO_C" >&6
12779 fi
12780 ac_res=`eval echo '${'$as_ac_Header'}'`
12781                { echo "$as_me:$LINENO: result: $ac_res" >&5
12782 echo "${ECHO_T}$ac_res" >&6; }
12783 else
12784   # Is the header compilable?
12785 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12787 cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h.  */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h.  */
12793 $ac_includes_default
12794 #include <$ac_header>
12795 _ACEOF
12796 rm -f conftest.$ac_objext
12797 if { (ac_try="$ac_compile"
12798 case "(($ac_try" in
12799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800   *) ac_try_echo=$ac_try;;
12801 esac
12802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803   (eval "$ac_compile") 2>conftest.er1
12804   ac_status=$?
12805   grep -v '^ *+' conftest.er1 >conftest.err
12806   rm -f conftest.er1
12807   cat conftest.err >&5
12808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809   (exit $ac_status); } && {
12810          test -z "$ac_c_werror_flag" ||
12811          test ! -s conftest.err
12812        } && test -s conftest.$ac_objext; then
12813   ac_header_compiler=yes
12814 else
12815   echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12817
12818         ac_header_compiler=no
12819 fi
12820
12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12823 echo "${ECHO_T}$ac_header_compiler" >&6; }
12824
12825 # Is the header present?
12826 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12828 cat >conftest.$ac_ext <<_ACEOF
12829 /* confdefs.h.  */
12830 _ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h.  */
12834 #include <$ac_header>
12835 _ACEOF
12836 if { (ac_try="$ac_cpp conftest.$ac_ext"
12837 case "(($ac_try" in
12838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839   *) ac_try_echo=$ac_try;;
12840 esac
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12843   ac_status=$?
12844   grep -v '^ *+' conftest.er1 >conftest.err
12845   rm -f conftest.er1
12846   cat conftest.err >&5
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); } >/dev/null && {
12849          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12850          test ! -s conftest.err
12851        }; then
12852   ac_header_preproc=yes
12853 else
12854   echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12856
12857   ac_header_preproc=no
12858 fi
12859
12860 rm -f conftest.err conftest.$ac_ext
12861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12862 echo "${ECHO_T}$ac_header_preproc" >&6; }
12863
12864 # So?  What about this header?
12865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12866   yes:no: )
12867     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12871     ac_header_preproc=yes
12872     ;;
12873   no:yes:* )
12874     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12876     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12877 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12878     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12880     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12881 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12884     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12886
12887     ;;
12888 esac
12889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12892   echo $ECHO_N "(cached) $ECHO_C" >&6
12893 else
12894   eval "$as_ac_Header=\$ac_header_preproc"
12895 fi
12896 ac_res=`eval echo '${'$as_ac_Header'}'`
12897                { echo "$as_me:$LINENO: result: $ac_res" >&5
12898 echo "${ECHO_T}$ac_res" >&6; }
12899
12900 fi
12901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12902   cat >>confdefs.h <<_ACEOF
12903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12904 _ACEOF
12905
12906 fi
12907
12908 done
12909
12910
12911 for ac_func in _ftime
12912 do
12913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12917   echo $ECHO_N "(cached) $ECHO_C" >&6
12918 else
12919   cat >conftest.$ac_ext <<_ACEOF
12920 /* confdefs.h.  */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h.  */
12925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12926    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12927 #define $ac_func innocuous_$ac_func
12928
12929 /* System header to define __stub macros and hopefully few prototypes,
12930     which can conflict with char $ac_func (); below.
12931     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12932     <limits.h> exists even on freestanding compilers.  */
12933
12934 #ifdef __STDC__
12935 # include <limits.h>
12936 #else
12937 # include <assert.h>
12938 #endif
12939
12940 #undef $ac_func
12941
12942 /* Override any GCC internal prototype to avoid an error.
12943    Use char because int might match the return type of a GCC
12944    builtin and then its argument prototype would still apply.  */
12945 #ifdef __cplusplus
12946 extern "C"
12947 #endif
12948 char $ac_func ();
12949 /* The GNU C library defines this for functions which it implements
12950     to always fail with ENOSYS.  Some functions are actually named
12951     something starting with __ and the normal name is an alias.  */
12952 #if defined __stub_$ac_func || defined __stub___$ac_func
12953 choke me
12954 #endif
12955
12956 int
12957 main ()
12958 {
12959 return $ac_func ();
12960   ;
12961   return 0;
12962 }
12963 _ACEOF
12964 rm -f conftest.$ac_objext conftest$ac_exeext
12965 if { (ac_try="$ac_link"
12966 case "(($ac_try" in
12967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968   *) ac_try_echo=$ac_try;;
12969 esac
12970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971   (eval "$ac_link") 2>conftest.er1
12972   ac_status=$?
12973   grep -v '^ *+' conftest.er1 >conftest.err
12974   rm -f conftest.er1
12975   cat conftest.err >&5
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); } && {
12978          test -z "$ac_c_werror_flag" ||
12979          test ! -s conftest.err
12980        } && test -s conftest$ac_exeext &&
12981        $as_test_x conftest$ac_exeext; then
12982   eval "$as_ac_var=yes"
12983 else
12984   echo "$as_me: failed program was:" >&5
12985 sed 's/^/| /' conftest.$ac_ext >&5
12986
12987         eval "$as_ac_var=no"
12988 fi
12989
12990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12991       conftest$ac_exeext conftest.$ac_ext
12992 fi
12993 ac_res=`eval echo '${'$as_ac_var'}'`
12994                { echo "$as_me:$LINENO: result: $ac_res" >&5
12995 echo "${ECHO_T}$ac_res" >&6; }
12996 if test `eval echo '${'$as_ac_var'}'` = yes; then
12997   cat >>confdefs.h <<_ACEOF
12998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12999 _ACEOF
13000
13001 fi
13002 done
13003
13004
13005     fi
13006   fi
13007
13008
13009
13010 for ac_func in inet_ntop
13011 do
13012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13016   echo $ECHO_N "(cached) $ECHO_C" >&6
13017 else
13018   cat >conftest.$ac_ext <<_ACEOF
13019 /* confdefs.h.  */
13020 _ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h.  */
13024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13026 #define $ac_func innocuous_$ac_func
13027
13028 /* System header to define __stub macros and hopefully few prototypes,
13029     which can conflict with char $ac_func (); below.
13030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13031     <limits.h> exists even on freestanding compilers.  */
13032
13033 #ifdef __STDC__
13034 # include <limits.h>
13035 #else
13036 # include <assert.h>
13037 #endif
13038
13039 #undef $ac_func
13040
13041 /* Override any GCC internal prototype to avoid an error.
13042    Use char because int might match the return type of a GCC
13043    builtin and then its argument prototype would still apply.  */
13044 #ifdef __cplusplus
13045 extern "C"
13046 #endif
13047 char $ac_func ();
13048 /* The GNU C library defines this for functions which it implements
13049     to always fail with ENOSYS.  Some functions are actually named
13050     something starting with __ and the normal name is an alias.  */
13051 #if defined __stub_$ac_func || defined __stub___$ac_func
13052 choke me
13053 #endif
13054
13055 int
13056 main ()
13057 {
13058 return $ac_func ();
13059   ;
13060   return 0;
13061 }
13062 _ACEOF
13063 rm -f conftest.$ac_objext conftest$ac_exeext
13064 if { (ac_try="$ac_link"
13065 case "(($ac_try" in
13066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13067   *) ac_try_echo=$ac_try;;
13068 esac
13069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13070   (eval "$ac_link") 2>conftest.er1
13071   ac_status=$?
13072   grep -v '^ *+' conftest.er1 >conftest.err
13073   rm -f conftest.er1
13074   cat conftest.err >&5
13075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076   (exit $ac_status); } && {
13077          test -z "$ac_c_werror_flag" ||
13078          test ! -s conftest.err
13079        } && test -s conftest$ac_exeext &&
13080        $as_test_x conftest$ac_exeext; then
13081   eval "$as_ac_var=yes"
13082 else
13083   echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13085
13086         eval "$as_ac_var=no"
13087 fi
13088
13089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13090       conftest$ac_exeext conftest.$ac_ext
13091 fi
13092 ac_res=`eval echo '${'$as_ac_var'}'`
13093                { echo "$as_me:$LINENO: result: $ac_res" >&5
13094 echo "${ECHO_T}$ac_res" >&6; }
13095 if test `eval echo '${'$as_ac_var'}'` = yes; then
13096   cat >>confdefs.h <<_ACEOF
13097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13098 _ACEOF
13099
13100 else
13101   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
13102 fi
13103 done
13104
13105
13106
13107   :
13108
13109
13110
13111
13112
13113
13114
13115
13116   { echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
13117 echo $ECHO_N "checking whether inet_ntop is declared... $ECHO_C" >&6; }
13118 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
13119   echo $ECHO_N "(cached) $ECHO_C" >&6
13120 else
13121   cat >conftest.$ac_ext <<_ACEOF
13122 /* confdefs.h.  */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h.  */
13127 #include <arpa/inet.h>
13128
13129 int
13130 main ()
13131 {
13132 #ifndef inet_ntop
13133   (void) inet_ntop;
13134 #endif
13135
13136   ;
13137   return 0;
13138 }
13139 _ACEOF
13140 rm -f conftest.$ac_objext
13141 if { (ac_try="$ac_compile"
13142 case "(($ac_try" in
13143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144   *) ac_try_echo=$ac_try;;
13145 esac
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147   (eval "$ac_compile") 2>conftest.er1
13148   ac_status=$?
13149   grep -v '^ *+' conftest.er1 >conftest.err
13150   rm -f conftest.er1
13151   cat conftest.err >&5
13152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); } && {
13154          test -z "$ac_c_werror_flag" ||
13155          test ! -s conftest.err
13156        } && test -s conftest.$ac_objext; then
13157   ac_cv_have_decl_inet_ntop=yes
13158 else
13159   echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13161
13162         ac_cv_have_decl_inet_ntop=no
13163 fi
13164
13165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166 fi
13167 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
13168 echo "${ECHO_T}$ac_cv_have_decl_inet_ntop" >&6; }
13169 if test $ac_cv_have_decl_inet_ntop = yes; then
13170
13171 cat >>confdefs.h <<_ACEOF
13172 #define HAVE_DECL_INET_NTOP 1
13173 _ACEOF
13174
13175
13176 else
13177   cat >>confdefs.h <<_ACEOF
13178 #define HAVE_DECL_INET_NTOP 0
13179 _ACEOF
13180
13181
13182 fi
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198   if test $gl_cv_func_malloc_posix = yes; then
13199     HAVE_MALLOC_POSIX=1
13200
13201 cat >>confdefs.h <<\_ACEOF
13202 #define HAVE_MALLOC_POSIX 1
13203 _ACEOF
13204
13205   else
13206     gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
13207     HAVE_MALLOC_POSIX=0
13208   fi
13209
13210
13211
13212
13213   GNULIB_MALLOC_POSIX=1
13214
13215
13216
13217
13218 for ac_func in mkdtemp
13219 do
13220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13224   echo $ECHO_N "(cached) $ECHO_C" >&6
13225 else
13226   cat >conftest.$ac_ext <<_ACEOF
13227 /* confdefs.h.  */
13228 _ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h.  */
13232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13234 #define $ac_func innocuous_$ac_func
13235
13236 /* System header to define __stub macros and hopefully few prototypes,
13237     which can conflict with char $ac_func (); below.
13238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13239     <limits.h> exists even on freestanding compilers.  */
13240
13241 #ifdef __STDC__
13242 # include <limits.h>
13243 #else
13244 # include <assert.h>
13245 #endif
13246
13247 #undef $ac_func
13248
13249 /* Override any GCC internal prototype to avoid an error.
13250    Use char because int might match the return type of a GCC
13251    builtin and then its argument prototype would still apply.  */
13252 #ifdef __cplusplus
13253 extern "C"
13254 #endif
13255 char $ac_func ();
13256 /* The GNU C library defines this for functions which it implements
13257     to always fail with ENOSYS.  Some functions are actually named
13258     something starting with __ and the normal name is an alias.  */
13259 #if defined __stub_$ac_func || defined __stub___$ac_func
13260 choke me
13261 #endif
13262
13263 int
13264 main ()
13265 {
13266 return $ac_func ();
13267   ;
13268   return 0;
13269 }
13270 _ACEOF
13271 rm -f conftest.$ac_objext conftest$ac_exeext
13272 if { (ac_try="$ac_link"
13273 case "(($ac_try" in
13274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275   *) ac_try_echo=$ac_try;;
13276 esac
13277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13278   (eval "$ac_link") 2>conftest.er1
13279   ac_status=$?
13280   grep -v '^ *+' conftest.er1 >conftest.err
13281   rm -f conftest.er1
13282   cat conftest.err >&5
13283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284   (exit $ac_status); } && {
13285          test -z "$ac_c_werror_flag" ||
13286          test ! -s conftest.err
13287        } && test -s conftest$ac_exeext &&
13288        $as_test_x conftest$ac_exeext; then
13289   eval "$as_ac_var=yes"
13290 else
13291   echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13293
13294         eval "$as_ac_var=no"
13295 fi
13296
13297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13298       conftest$ac_exeext conftest.$ac_ext
13299 fi
13300 ac_res=`eval echo '${'$as_ac_var'}'`
13301                { echo "$as_me:$LINENO: result: $ac_res" >&5
13302 echo "${ECHO_T}$ac_res" >&6; }
13303 if test `eval echo '${'$as_ac_var'}'` = yes; then
13304   cat >>confdefs.h <<_ACEOF
13305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13306 _ACEOF
13307
13308 else
13309   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
13310 fi
13311 done
13312
13313   if test $ac_cv_func_mkdtemp = no; then
13314     HAVE_MKDTEMP=0
13315     :
13316
13317   fi
13318
13319
13320
13321   GNULIB_MKDTEMP=1
13322
13323
13324   { echo "$as_me:$LINENO: checking whether <netinet/in.h> is self-contained" >&5
13325 echo $ECHO_N "checking whether <netinet/in.h> is self-contained... $ECHO_C" >&6; }
13326 if test "${gl_cv_header_netinet_in_h_selfcontained+set}" = set; then
13327   echo $ECHO_N "(cached) $ECHO_C" >&6
13328 else
13329
13330       cat >conftest.$ac_ext <<_ACEOF
13331 /* confdefs.h.  */
13332 _ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h.  */
13336 #include <netinet/in.h>
13337 int
13338 main ()
13339 {
13340
13341   ;
13342   return 0;
13343 }
13344 _ACEOF
13345 rm -f conftest.$ac_objext
13346 if { (ac_try="$ac_compile"
13347 case "(($ac_try" in
13348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13349   *) ac_try_echo=$ac_try;;
13350 esac
13351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13352   (eval "$ac_compile") 2>conftest.er1
13353   ac_status=$?
13354   grep -v '^ *+' conftest.er1 >conftest.err
13355   rm -f conftest.er1
13356   cat conftest.err >&5
13357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358   (exit $ac_status); } && {
13359          test -z "$ac_c_werror_flag" ||
13360          test ! -s conftest.err
13361        } && test -s conftest.$ac_objext; then
13362   gl_cv_header_netinet_in_h_selfcontained=yes
13363 else
13364   echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.$ac_ext >&5
13366
13367         gl_cv_header_netinet_in_h_selfcontained=no
13368 fi
13369
13370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13371
13372 fi
13373 { echo "$as_me:$LINENO: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
13374 echo "${ECHO_T}$gl_cv_header_netinet_in_h_selfcontained" >&6; }
13375   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
13376     NETINET_IN_H=''
13377   else
13378     NETINET_IN_H='netinet/in.h'
13379
13380 for ac_header in netinet/in.h
13381 do
13382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13384   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13387   echo $ECHO_N "(cached) $ECHO_C" >&6
13388 fi
13389 ac_res=`eval echo '${'$as_ac_Header'}'`
13390                { echo "$as_me:$LINENO: result: $ac_res" >&5
13391 echo "${ECHO_T}$ac_res" >&6; }
13392 else
13393   # Is the header compilable?
13394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13396 cat >conftest.$ac_ext <<_ACEOF
13397 /* confdefs.h.  */
13398 _ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h.  */
13402 $ac_includes_default
13403 #include <$ac_header>
13404 _ACEOF
13405 rm -f conftest.$ac_objext
13406 if { (ac_try="$ac_compile"
13407 case "(($ac_try" in
13408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409   *) ac_try_echo=$ac_try;;
13410 esac
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412   (eval "$ac_compile") 2>conftest.er1
13413   ac_status=$?
13414   grep -v '^ *+' conftest.er1 >conftest.err
13415   rm -f conftest.er1
13416   cat conftest.err >&5
13417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418   (exit $ac_status); } && {
13419          test -z "$ac_c_werror_flag" ||
13420          test ! -s conftest.err
13421        } && test -s conftest.$ac_objext; then
13422   ac_header_compiler=yes
13423 else
13424   echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13426
13427         ac_header_compiler=no
13428 fi
13429
13430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13432 echo "${ECHO_T}$ac_header_compiler" >&6; }
13433
13434 # Is the header present?
13435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13437 cat >conftest.$ac_ext <<_ACEOF
13438 /* confdefs.h.  */
13439 _ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h.  */
13443 #include <$ac_header>
13444 _ACEOF
13445 if { (ac_try="$ac_cpp conftest.$ac_ext"
13446 case "(($ac_try" in
13447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448   *) ac_try_echo=$ac_try;;
13449 esac
13450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13451   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13452   ac_status=$?
13453   grep -v '^ *+' conftest.er1 >conftest.err
13454   rm -f conftest.er1
13455   cat conftest.err >&5
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); } >/dev/null && {
13458          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13459          test ! -s conftest.err
13460        }; then
13461   ac_header_preproc=yes
13462 else
13463   echo "$as_me: failed program was:" >&5
13464 sed 's/^/| /' conftest.$ac_ext >&5
13465
13466   ac_header_preproc=no
13467 fi
13468
13469 rm -f conftest.err conftest.$ac_ext
13470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13471 echo "${ECHO_T}$ac_header_preproc" >&6; }
13472
13473 # So?  What about this header?
13474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13475   yes:no: )
13476     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13480     ac_header_preproc=yes
13481     ;;
13482   no:yes:* )
13483     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13485     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13486 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13487     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13489     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13490 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13493     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13495
13496     ;;
13497 esac
13498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13501   echo $ECHO_N "(cached) $ECHO_C" >&6
13502 else
13503   eval "$as_ac_Header=\$ac_header_preproc"
13504 fi
13505 ac_res=`eval echo '${'$as_ac_Header'}'`
13506                { echo "$as_me:$LINENO: result: $ac_res" >&5
13507 echo "${ECHO_T}$ac_res" >&6; }
13508
13509 fi
13510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13511   cat >>confdefs.h <<_ACEOF
13512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13513 _ACEOF
13514
13515 fi
13516
13517 done
13518
13519
13520
13521
13522   :
13523
13524
13525
13526
13527
13528
13529
13530      if test $gl_cv_have_include_next = yes; then
13531        gl_cv_next_netinet_in_h='<'netinet/in.h'>'
13532      else
13533        { echo "$as_me:$LINENO: checking absolute name of <netinet/in.h>" >&5
13534 echo $ECHO_N "checking absolute name of <netinet/in.h>... $ECHO_C" >&6; }
13535 if test "${gl_cv_next_netinet_in_h+set}" = set; then
13536   echo $ECHO_N "(cached) $ECHO_C" >&6
13537 else
13538
13539           if test $ac_cv_header_netinet_in_h = yes; then
13540             cat >conftest.$ac_ext <<_ACEOF
13541 /* confdefs.h.  */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h.  */
13546 #include <netinet/in.h>
13547
13548 _ACEOF
13549                                     gl_cv_next_netinet_in_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13550                sed -n '\#/netinet/in.h#{
13551                  s#.*"\(.*/netinet/in.h\)".*#\1#
13552                  s#^/[^/]#//&#
13553                  p
13554                  q
13555                }'`'"'
13556           else
13557             gl_cv_next_netinet_in_h='<'netinet/in.h'>'
13558           fi
13559
13560 fi
13561 { echo "$as_me:$LINENO: result: $gl_cv_next_netinet_in_h" >&5
13562 echo "${ECHO_T}$gl_cv_next_netinet_in_h" >&6; }
13563      fi
13564      NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
13565
13566
13567
13568     if test $ac_cv_header_netinet_in_h = yes; then
13569       HAVE_NETINET_IN_H=1
13570     else
13571       HAVE_NETINET_IN_H=0
13572     fi
13573
13574   fi
13575
13576
13577   { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
13578 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
13579 if test -z "$MKDIR_P"; then
13580   if test "${ac_cv_path_mkdir+set}" = set; then
13581   echo $ECHO_N "(cached) $ECHO_C" >&6
13582 else
13583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13584 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13585 do
13586   IFS=$as_save_IFS
13587   test -z "$as_dir" && as_dir=.
13588   for ac_prog in mkdir gmkdir; do
13589          for ac_exec_ext in '' $ac_executable_extensions; do
13590            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
13591            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13592              'mkdir (GNU coreutils) '* | \
13593              'mkdir (coreutils) '* | \
13594              'mkdir (fileutils) '4.1*)
13595                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13596                break 3;;
13597            esac
13598          done
13599        done
13600 done
13601 IFS=$as_save_IFS
13602
13603 fi
13604
13605   if test "${ac_cv_path_mkdir+set}" = set; then
13606     MKDIR_P="$ac_cv_path_mkdir -p"
13607   else
13608     # As a last resort, use the slow shell script.  Don't cache a
13609     # value for MKDIR_P within a source directory, because that will
13610     # break other packages using the cache if that directory is
13611     # removed, or if the value is a relative name.
13612     test -d ./--version && rmdir ./--version
13613     MKDIR_P="$ac_install_sh -d"
13614   fi
13615 fi
13616 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
13617 echo "${ECHO_T}$MKDIR_P" >&6; }
13618
13619
13620   gl_LIBOBJS="$gl_LIBOBJS physmem.$ac_objext"
13621
13622   # Prerequisites of lib/physmem.c.
13623
13624
13625
13626
13627
13628
13629
13630
13631 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
13632     machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
13633     sys/systemcfg.h
13634 do
13635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13639   echo $ECHO_N "(cached) $ECHO_C" >&6
13640 else
13641   cat >conftest.$ac_ext <<_ACEOF
13642 /* confdefs.h.  */
13643 _ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h.  */
13647 $ac_includes_default
13648
13649 #include <$ac_header>
13650 _ACEOF
13651 rm -f conftest.$ac_objext
13652 if { (ac_try="$ac_compile"
13653 case "(($ac_try" in
13654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655   *) ac_try_echo=$ac_try;;
13656 esac
13657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658   (eval "$ac_compile") 2>conftest.er1
13659   ac_status=$?
13660   grep -v '^ *+' conftest.er1 >conftest.err
13661   rm -f conftest.er1
13662   cat conftest.err >&5
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); } && {
13665          test -z "$ac_c_werror_flag" ||
13666          test ! -s conftest.err
13667        } && test -s conftest.$ac_objext; then
13668   eval "$as_ac_Header=yes"
13669 else
13670   echo "$as_me: failed program was:" >&5
13671 sed 's/^/| /' conftest.$ac_ext >&5
13672
13673         eval "$as_ac_Header=no"
13674 fi
13675
13676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13677 fi
13678 ac_res=`eval echo '${'$as_ac_Header'}'`
13679                { echo "$as_me:$LINENO: result: $ac_res" >&5
13680 echo "${ECHO_T}$ac_res" >&6; }
13681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13682   cat >>confdefs.h <<_ACEOF
13683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13684 _ACEOF
13685
13686 fi
13687
13688 done
13689
13690
13691
13692
13693
13694
13695
13696
13697 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
13698 do
13699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13703   echo $ECHO_N "(cached) $ECHO_C" >&6
13704 else
13705   cat >conftest.$ac_ext <<_ACEOF
13706 /* confdefs.h.  */
13707 _ACEOF
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h.  */
13711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13713 #define $ac_func innocuous_$ac_func
13714
13715 /* System header to define __stub macros and hopefully few prototypes,
13716     which can conflict with char $ac_func (); below.
13717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13718     <limits.h> exists even on freestanding compilers.  */
13719
13720 #ifdef __STDC__
13721 # include <limits.h>
13722 #else
13723 # include <assert.h>
13724 #endif
13725
13726 #undef $ac_func
13727
13728 /* Override any GCC internal prototype to avoid an error.
13729    Use char because int might match the return type of a GCC
13730    builtin and then its argument prototype would still apply.  */
13731 #ifdef __cplusplus
13732 extern "C"
13733 #endif
13734 char $ac_func ();
13735 /* The GNU C library defines this for functions which it implements
13736     to always fail with ENOSYS.  Some functions are actually named
13737     something starting with __ and the normal name is an alias.  */
13738 #if defined __stub_$ac_func || defined __stub___$ac_func
13739 choke me
13740 #endif
13741
13742 int
13743 main ()
13744 {
13745 return $ac_func ();
13746   ;
13747   return 0;
13748 }
13749 _ACEOF
13750 rm -f conftest.$ac_objext conftest$ac_exeext
13751 if { (ac_try="$ac_link"
13752 case "(($ac_try" in
13753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754   *) ac_try_echo=$ac_try;;
13755 esac
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757   (eval "$ac_link") 2>conftest.er1
13758   ac_status=$?
13759   grep -v '^ *+' conftest.er1 >conftest.err
13760   rm -f conftest.er1
13761   cat conftest.err >&5
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); } && {
13764          test -z "$ac_c_werror_flag" ||
13765          test ! -s conftest.err
13766        } && test -s conftest$ac_exeext &&
13767        $as_test_x conftest$ac_exeext; then
13768   eval "$as_ac_var=yes"
13769 else
13770   echo "$as_me: failed program was:" >&5
13771 sed 's/^/| /' conftest.$ac_ext >&5
13772
13773         eval "$as_ac_var=no"
13774 fi
13775
13776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13777       conftest$ac_exeext conftest.$ac_ext
13778 fi
13779 ac_res=`eval echo '${'$as_ac_var'}'`
13780                { echo "$as_me:$LINENO: result: $ac_res" >&5
13781 echo "${ECHO_T}$ac_res" >&6; }
13782 if test `eval echo '${'$as_ac_var'}'` = yes; then
13783   cat >>confdefs.h <<_ACEOF
13784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13785 _ACEOF
13786
13787 fi
13788 done
13789
13790
13791
13792
13793   gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
13794
13795
13796
13797
13798
13799
13800   gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810 for ac_header in stdint.h
13811 do
13812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13814   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13817   echo $ECHO_N "(cached) $ECHO_C" >&6
13818 fi
13819 ac_res=`eval echo '${'$as_ac_Header'}'`
13820                { echo "$as_me:$LINENO: result: $ac_res" >&5
13821 echo "${ECHO_T}$ac_res" >&6; }
13822 else
13823   # Is the header compilable?
13824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13826 cat >conftest.$ac_ext <<_ACEOF
13827 /* confdefs.h.  */
13828 _ACEOF
13829 cat confdefs.h >>conftest.$ac_ext
13830 cat >>conftest.$ac_ext <<_ACEOF
13831 /* end confdefs.h.  */
13832 $ac_includes_default
13833 #include <$ac_header>
13834 _ACEOF
13835 rm -f conftest.$ac_objext
13836 if { (ac_try="$ac_compile"
13837 case "(($ac_try" in
13838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839   *) ac_try_echo=$ac_try;;
13840 esac
13841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842   (eval "$ac_compile") 2>conftest.er1
13843   ac_status=$?
13844   grep -v '^ *+' conftest.er1 >conftest.err
13845   rm -f conftest.er1
13846   cat conftest.err >&5
13847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848   (exit $ac_status); } && {
13849          test -z "$ac_c_werror_flag" ||
13850          test ! -s conftest.err
13851        } && test -s conftest.$ac_objext; then
13852   ac_header_compiler=yes
13853 else
13854   echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13856
13857         ac_header_compiler=no
13858 fi
13859
13860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13862 echo "${ECHO_T}$ac_header_compiler" >&6; }
13863
13864 # Is the header present?
13865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13867 cat >conftest.$ac_ext <<_ACEOF
13868 /* confdefs.h.  */
13869 _ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h.  */
13873 #include <$ac_header>
13874 _ACEOF
13875 if { (ac_try="$ac_cpp conftest.$ac_ext"
13876 case "(($ac_try" in
13877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878   *) ac_try_echo=$ac_try;;
13879 esac
13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13882   ac_status=$?
13883   grep -v '^ *+' conftest.er1 >conftest.err
13884   rm -f conftest.er1
13885   cat conftest.err >&5
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); } >/dev/null && {
13888          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13889          test ! -s conftest.err
13890        }; then
13891   ac_header_preproc=yes
13892 else
13893   echo "$as_me: failed program was:" >&5
13894 sed 's/^/| /' conftest.$ac_ext >&5
13895
13896   ac_header_preproc=no
13897 fi
13898
13899 rm -f conftest.err conftest.$ac_ext
13900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13901 echo "${ECHO_T}$ac_header_preproc" >&6; }
13902
13903 # So?  What about this header?
13904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13905   yes:no: )
13906     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13910     ac_header_preproc=yes
13911     ;;
13912   no:yes:* )
13913     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13915     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13916 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13917     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13919     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13920 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13921     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13923     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13925
13926     ;;
13927 esac
13928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13931   echo $ECHO_N "(cached) $ECHO_C" >&6
13932 else
13933   eval "$as_ac_Header=\$ac_header_preproc"
13934 fi
13935 ac_res=`eval echo '${'$as_ac_Header'}'`
13936                { echo "$as_me:$LINENO: result: $ac_res" >&5
13937 echo "${ECHO_T}$ac_res" >&6; }
13938
13939 fi
13940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13941   cat >>confdefs.h <<_ACEOF
13942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13943 _ACEOF
13944
13945 fi
13946
13947 done
13948
13949     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
13950 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
13951   result=
13952   cat >conftest.$ac_ext <<_ACEOF
13953 /* confdefs.h.  */
13954 _ACEOF
13955 cat confdefs.h >>conftest.$ac_ext
13956 cat >>conftest.$ac_ext <<_ACEOF
13957 /* end confdefs.h.  */
13958
13959 #include <limits.h>
13960 #if HAVE_STDINT_H
13961 #include <stdint.h>
13962 #endif
13963 #ifdef SIZE_MAX
13964 Found it
13965 #endif
13966
13967 _ACEOF
13968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13969   $EGREP "Found it" >/dev/null 2>&1; then
13970   result=yes
13971 fi
13972 rm -f conftest*
13973
13974   if test -z "$result"; then
13975                 if test "$cross_compiling" = yes; then
13976   # Depending upon the size, compute the lo and hi bounds.
13977 cat >conftest.$ac_ext <<_ACEOF
13978 /* confdefs.h.  */
13979 _ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h.  */
13983 #include <stddef.h>
13984 #include <limits.h>
13985 int
13986 main ()
13987 {
13988 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
13989 test_array [0] = 0
13990
13991   ;
13992   return 0;
13993 }
13994 _ACEOF
13995 rm -f conftest.$ac_objext
13996 if { (ac_try="$ac_compile"
13997 case "(($ac_try" in
13998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999   *) ac_try_echo=$ac_try;;
14000 esac
14001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002   (eval "$ac_compile") 2>conftest.er1
14003   ac_status=$?
14004   grep -v '^ *+' conftest.er1 >conftest.err
14005   rm -f conftest.er1
14006   cat conftest.err >&5
14007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008   (exit $ac_status); } && {
14009          test -z "$ac_c_werror_flag" ||
14010          test ! -s conftest.err
14011        } && test -s conftest.$ac_objext; then
14012   ac_lo=0 ac_mid=0
14013   while :; do
14014     cat >conftest.$ac_ext <<_ACEOF
14015 /* confdefs.h.  */
14016 _ACEOF
14017 cat confdefs.h >>conftest.$ac_ext
14018 cat >>conftest.$ac_ext <<_ACEOF
14019 /* end confdefs.h.  */
14020 #include <stddef.h>
14021 #include <limits.h>
14022 int
14023 main ()
14024 {
14025 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
14026 test_array [0] = 0
14027
14028   ;
14029   return 0;
14030 }
14031 _ACEOF
14032 rm -f conftest.$ac_objext
14033 if { (ac_try="$ac_compile"
14034 case "(($ac_try" in
14035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036   *) ac_try_echo=$ac_try;;
14037 esac
14038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039   (eval "$ac_compile") 2>conftest.er1
14040   ac_status=$?
14041   grep -v '^ *+' conftest.er1 >conftest.err
14042   rm -f conftest.er1
14043   cat conftest.err >&5
14044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045   (exit $ac_status); } && {
14046          test -z "$ac_c_werror_flag" ||
14047          test ! -s conftest.err
14048        } && test -s conftest.$ac_objext; then
14049   ac_hi=$ac_mid; break
14050 else
14051   echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14053
14054         ac_lo=`expr $ac_mid + 1`
14055                         if test $ac_lo -le $ac_mid; then
14056                           ac_lo= ac_hi=
14057                           break
14058                         fi
14059                         ac_mid=`expr 2 '*' $ac_mid + 1`
14060 fi
14061
14062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14063   done
14064 else
14065   echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14067
14068         cat >conftest.$ac_ext <<_ACEOF
14069 /* confdefs.h.  */
14070 _ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h.  */
14074 #include <stddef.h>
14075 #include <limits.h>
14076 int
14077 main ()
14078 {
14079 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
14080 test_array [0] = 0
14081
14082   ;
14083   return 0;
14084 }
14085 _ACEOF
14086 rm -f conftest.$ac_objext
14087 if { (ac_try="$ac_compile"
14088 case "(($ac_try" in
14089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090   *) ac_try_echo=$ac_try;;
14091 esac
14092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093   (eval "$ac_compile") 2>conftest.er1
14094   ac_status=$?
14095   grep -v '^ *+' conftest.er1 >conftest.err
14096   rm -f conftest.er1
14097   cat conftest.err >&5
14098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099   (exit $ac_status); } && {
14100          test -z "$ac_c_werror_flag" ||
14101          test ! -s conftest.err
14102        } && test -s conftest.$ac_objext; then
14103   ac_hi=-1 ac_mid=-1
14104   while :; do
14105     cat >conftest.$ac_ext <<_ACEOF
14106 /* confdefs.h.  */
14107 _ACEOF
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h.  */
14111 #include <stddef.h>
14112 #include <limits.h>
14113 int
14114 main ()
14115 {
14116 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
14117 test_array [0] = 0
14118
14119   ;
14120   return 0;
14121 }
14122 _ACEOF
14123 rm -f conftest.$ac_objext
14124 if { (ac_try="$ac_compile"
14125 case "(($ac_try" in
14126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127   *) ac_try_echo=$ac_try;;
14128 esac
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130   (eval "$ac_compile") 2>conftest.er1
14131   ac_status=$?
14132   grep -v '^ *+' conftest.er1 >conftest.err
14133   rm -f conftest.er1
14134   cat conftest.err >&5
14135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   (exit $ac_status); } && {
14137          test -z "$ac_c_werror_flag" ||
14138          test ! -s conftest.err
14139        } && test -s conftest.$ac_objext; then
14140   ac_lo=$ac_mid; break
14141 else
14142   echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14144
14145         ac_hi=`expr '(' $ac_mid ')' - 1`
14146                         if test $ac_mid -le $ac_hi; then
14147                           ac_lo= ac_hi=
14148                           break
14149                         fi
14150                         ac_mid=`expr 2 '*' $ac_mid`
14151 fi
14152
14153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14154   done
14155 else
14156   echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14158
14159         ac_lo= ac_hi=
14160 fi
14161
14162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14163 fi
14164
14165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14166 # Binary search between lo and hi bounds.
14167 while test "x$ac_lo" != "x$ac_hi"; do
14168   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14169   cat >conftest.$ac_ext <<_ACEOF
14170 /* confdefs.h.  */
14171 _ACEOF
14172 cat confdefs.h >>conftest.$ac_ext
14173 cat >>conftest.$ac_ext <<_ACEOF
14174 /* end confdefs.h.  */
14175 #include <stddef.h>
14176 #include <limits.h>
14177 int
14178 main ()
14179 {
14180 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
14181 test_array [0] = 0
14182
14183   ;
14184   return 0;
14185 }
14186 _ACEOF
14187 rm -f conftest.$ac_objext
14188 if { (ac_try="$ac_compile"
14189 case "(($ac_try" in
14190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191   *) ac_try_echo=$ac_try;;
14192 esac
14193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194   (eval "$ac_compile") 2>conftest.er1
14195   ac_status=$?
14196   grep -v '^ *+' conftest.er1 >conftest.err
14197   rm -f conftest.er1
14198   cat conftest.err >&5
14199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200   (exit $ac_status); } && {
14201          test -z "$ac_c_werror_flag" ||
14202          test ! -s conftest.err
14203        } && test -s conftest.$ac_objext; then
14204   ac_hi=$ac_mid
14205 else
14206   echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14208
14209         ac_lo=`expr '(' $ac_mid ')' + 1`
14210 fi
14211
14212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14213 done
14214 case $ac_lo in
14215 ?*) size_t_bits_minus_1=$ac_lo;;
14216 '') size_t_bits_minus_1= ;;
14217 esac
14218 else
14219   cat >conftest.$ac_ext <<_ACEOF
14220 /* confdefs.h.  */
14221 _ACEOF
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h.  */
14225 #include <stddef.h>
14226 #include <limits.h>
14227 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
14228 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
14229 #include <stdio.h>
14230 #include <stdlib.h>
14231 int
14232 main ()
14233 {
14234
14235   FILE *f = fopen ("conftest.val", "w");
14236   if (! f)
14237     return 1;
14238   if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
14239     {
14240       long int i = longval ();
14241       if (i != (sizeof (size_t) * CHAR_BIT - 1))
14242         return 1;
14243       fprintf (f, "%ld\n", i);
14244     }
14245   else
14246     {
14247       unsigned long int i = ulongval ();
14248       if (i != (sizeof (size_t) * CHAR_BIT - 1))
14249         return 1;
14250       fprintf (f, "%lu\n", i);
14251     }
14252   return ferror (f) || fclose (f) != 0;
14253
14254   ;
14255   return 0;
14256 }
14257 _ACEOF
14258 rm -f conftest$ac_exeext
14259 if { (ac_try="$ac_link"
14260 case "(($ac_try" in
14261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262   *) ac_try_echo=$ac_try;;
14263 esac
14264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14265   (eval "$ac_link") 2>&5
14266   ac_status=$?
14267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14269   { (case "(($ac_try" in
14270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271   *) ac_try_echo=$ac_try;;
14272 esac
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274   (eval "$ac_try") 2>&5
14275   ac_status=$?
14276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277   (exit $ac_status); }; }; then
14278   size_t_bits_minus_1=`cat conftest.val`
14279 else
14280   echo "$as_me: program exited with status $ac_status" >&5
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14283
14284 ( exit $ac_status )
14285 size_t_bits_minus_1=
14286 fi
14287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14288 fi
14289 rm -f conftest.val
14290
14291     if test "$cross_compiling" = yes; then
14292   # Depending upon the size, compute the lo and hi bounds.
14293 cat >conftest.$ac_ext <<_ACEOF
14294 /* confdefs.h.  */
14295 _ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h.  */
14299 #include <stddef.h>
14300 int
14301 main ()
14302 {
14303 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
14304 test_array [0] = 0
14305
14306   ;
14307   return 0;
14308 }
14309 _ACEOF
14310 rm -f conftest.$ac_objext
14311 if { (ac_try="$ac_compile"
14312 case "(($ac_try" in
14313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14314   *) ac_try_echo=$ac_try;;
14315 esac
14316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14317   (eval "$ac_compile") 2>conftest.er1
14318   ac_status=$?
14319   grep -v '^ *+' conftest.er1 >conftest.err
14320   rm -f conftest.er1
14321   cat conftest.err >&5
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); } && {
14324          test -z "$ac_c_werror_flag" ||
14325          test ! -s conftest.err
14326        } && test -s conftest.$ac_objext; then
14327   ac_lo=0 ac_mid=0
14328   while :; do
14329     cat >conftest.$ac_ext <<_ACEOF
14330 /* confdefs.h.  */
14331 _ACEOF
14332 cat confdefs.h >>conftest.$ac_ext
14333 cat >>conftest.$ac_ext <<_ACEOF
14334 /* end confdefs.h.  */
14335 #include <stddef.h>
14336 int
14337 main ()
14338 {
14339 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
14340 test_array [0] = 0
14341
14342   ;
14343   return 0;
14344 }
14345 _ACEOF
14346 rm -f conftest.$ac_objext
14347 if { (ac_try="$ac_compile"
14348 case "(($ac_try" in
14349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350   *) ac_try_echo=$ac_try;;
14351 esac
14352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14353   (eval "$ac_compile") 2>conftest.er1
14354   ac_status=$?
14355   grep -v '^ *+' conftest.er1 >conftest.err
14356   rm -f conftest.er1
14357   cat conftest.err >&5
14358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359   (exit $ac_status); } && {
14360          test -z "$ac_c_werror_flag" ||
14361          test ! -s conftest.err
14362        } && test -s conftest.$ac_objext; then
14363   ac_hi=$ac_mid; break
14364 else
14365   echo "$as_me: failed program was:" >&5
14366 sed 's/^/| /' conftest.$ac_ext >&5
14367
14368         ac_lo=`expr $ac_mid + 1`
14369                         if test $ac_lo -le $ac_mid; then
14370                           ac_lo= ac_hi=
14371                           break
14372                         fi
14373                         ac_mid=`expr 2 '*' $ac_mid + 1`
14374 fi
14375
14376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377   done
14378 else
14379   echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14381
14382         cat >conftest.$ac_ext <<_ACEOF
14383 /* confdefs.h.  */
14384 _ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h.  */
14388 #include <stddef.h>
14389 int
14390 main ()
14391 {
14392 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
14393 test_array [0] = 0
14394
14395   ;
14396   return 0;
14397 }
14398 _ACEOF
14399 rm -f conftest.$ac_objext
14400 if { (ac_try="$ac_compile"
14401 case "(($ac_try" in
14402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403   *) ac_try_echo=$ac_try;;
14404 esac
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406   (eval "$ac_compile") 2>conftest.er1
14407   ac_status=$?
14408   grep -v '^ *+' conftest.er1 >conftest.err
14409   rm -f conftest.er1
14410   cat conftest.err >&5
14411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412   (exit $ac_status); } && {
14413          test -z "$ac_c_werror_flag" ||
14414          test ! -s conftest.err
14415        } && test -s conftest.$ac_objext; then
14416   ac_hi=-1 ac_mid=-1
14417   while :; do
14418     cat >conftest.$ac_ext <<_ACEOF
14419 /* confdefs.h.  */
14420 _ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h.  */
14424 #include <stddef.h>
14425 int
14426 main ()
14427 {
14428 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
14429 test_array [0] = 0
14430
14431   ;
14432   return 0;
14433 }
14434 _ACEOF
14435 rm -f conftest.$ac_objext
14436 if { (ac_try="$ac_compile"
14437 case "(($ac_try" in
14438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439   *) ac_try_echo=$ac_try;;
14440 esac
14441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442   (eval "$ac_compile") 2>conftest.er1
14443   ac_status=$?
14444   grep -v '^ *+' conftest.er1 >conftest.err
14445   rm -f conftest.er1
14446   cat conftest.err >&5
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); } && {
14449          test -z "$ac_c_werror_flag" ||
14450          test ! -s conftest.err
14451        } && test -s conftest.$ac_objext; then
14452   ac_lo=$ac_mid; break
14453 else
14454   echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14456
14457         ac_hi=`expr '(' $ac_mid ')' - 1`
14458                         if test $ac_mid -le $ac_hi; then
14459                           ac_lo= ac_hi=
14460                           break
14461                         fi
14462                         ac_mid=`expr 2 '*' $ac_mid`
14463 fi
14464
14465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466   done
14467 else
14468   echo "$as_me: failed program was:" >&5
14469 sed 's/^/| /' conftest.$ac_ext >&5
14470
14471         ac_lo= ac_hi=
14472 fi
14473
14474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475 fi
14476
14477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14478 # Binary search between lo and hi bounds.
14479 while test "x$ac_lo" != "x$ac_hi"; do
14480   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14481   cat >conftest.$ac_ext <<_ACEOF
14482 /* confdefs.h.  */
14483 _ACEOF
14484 cat confdefs.h >>conftest.$ac_ext
14485 cat >>conftest.$ac_ext <<_ACEOF
14486 /* end confdefs.h.  */
14487 #include <stddef.h>
14488 int
14489 main ()
14490 {
14491 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
14492 test_array [0] = 0
14493
14494   ;
14495   return 0;
14496 }
14497 _ACEOF
14498 rm -f conftest.$ac_objext
14499 if { (ac_try="$ac_compile"
14500 case "(($ac_try" in
14501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502   *) ac_try_echo=$ac_try;;
14503 esac
14504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14505   (eval "$ac_compile") 2>conftest.er1
14506   ac_status=$?
14507   grep -v '^ *+' conftest.er1 >conftest.err
14508   rm -f conftest.er1
14509   cat conftest.err >&5
14510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511   (exit $ac_status); } && {
14512          test -z "$ac_c_werror_flag" ||
14513          test ! -s conftest.err
14514        } && test -s conftest.$ac_objext; then
14515   ac_hi=$ac_mid
14516 else
14517   echo "$as_me: failed program was:" >&5
14518 sed 's/^/| /' conftest.$ac_ext >&5
14519
14520         ac_lo=`expr '(' $ac_mid ')' + 1`
14521 fi
14522
14523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14524 done
14525 case $ac_lo in
14526 ?*) fits_in_uint=$ac_lo;;
14527 '') fits_in_uint= ;;
14528 esac
14529 else
14530   cat >conftest.$ac_ext <<_ACEOF
14531 /* confdefs.h.  */
14532 _ACEOF
14533 cat confdefs.h >>conftest.$ac_ext
14534 cat >>conftest.$ac_ext <<_ACEOF
14535 /* end confdefs.h.  */
14536 #include <stddef.h>
14537 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
14538 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
14539 #include <stdio.h>
14540 #include <stdlib.h>
14541 int
14542 main ()
14543 {
14544
14545   FILE *f = fopen ("conftest.val", "w");
14546   if (! f)
14547     return 1;
14548   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
14549     {
14550       long int i = longval ();
14551       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
14552         return 1;
14553       fprintf (f, "%ld\n", i);
14554     }
14555   else
14556     {
14557       unsigned long int i = ulongval ();
14558       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
14559         return 1;
14560       fprintf (f, "%lu\n", i);
14561     }
14562   return ferror (f) || fclose (f) != 0;
14563
14564   ;
14565   return 0;
14566 }
14567 _ACEOF
14568 rm -f conftest$ac_exeext
14569 if { (ac_try="$ac_link"
14570 case "(($ac_try" in
14571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572   *) ac_try_echo=$ac_try;;
14573 esac
14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575   (eval "$ac_link") 2>&5
14576   ac_status=$?
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14579   { (case "(($ac_try" in
14580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14581   *) ac_try_echo=$ac_try;;
14582 esac
14583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584   (eval "$ac_try") 2>&5
14585   ac_status=$?
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); }; }; then
14588   fits_in_uint=`cat conftest.val`
14589 else
14590   echo "$as_me: program exited with status $ac_status" >&5
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14593
14594 ( exit $ac_status )
14595 fits_in_uint=
14596 fi
14597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14598 fi
14599 rm -f conftest.val
14600
14601     if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
14602       if test $fits_in_uint = 1; then
14603                         cat >conftest.$ac_ext <<_ACEOF
14604 /* confdefs.h.  */
14605 _ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h.  */
14609 #include <stddef.h>
14610           extern size_t foo;
14611           extern unsigned long foo;
14612
14613 int
14614 main ()
14615 {
14616
14617   ;
14618   return 0;
14619 }
14620 _ACEOF
14621 rm -f conftest.$ac_objext
14622 if { (ac_try="$ac_compile"
14623 case "(($ac_try" in
14624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625   *) ac_try_echo=$ac_try;;
14626 esac
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628   (eval "$ac_compile") 2>conftest.er1
14629   ac_status=$?
14630   grep -v '^ *+' conftest.er1 >conftest.err
14631   rm -f conftest.er1
14632   cat conftest.err >&5
14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); } && {
14635          test -z "$ac_c_werror_flag" ||
14636          test ! -s conftest.err
14637        } && test -s conftest.$ac_objext; then
14638   fits_in_uint=0
14639 else
14640   echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14642
14643
14644 fi
14645
14646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14647       fi
14648                         if test $fits_in_uint = 1; then
14649         result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
14650       else
14651         result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
14652       fi
14653     else
14654             result='((size_t)~(size_t)0)'
14655     fi
14656   fi
14657   { echo "$as_me:$LINENO: result: $result" >&5
14658 echo "${ECHO_T}$result" >&6; }
14659   if test "$result" != yes; then
14660
14661 cat >>confdefs.h <<_ACEOF
14662 #define SIZE_MAX $result
14663 _ACEOF
14664
14665   fi
14666
14667
14668
14669
14670 for ac_func in snprintf
14671 do
14672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14673 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14676   echo $ECHO_N "(cached) $ECHO_C" >&6
14677 else
14678   cat >conftest.$ac_ext <<_ACEOF
14679 /* confdefs.h.  */
14680 _ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h.  */
14684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14686 #define $ac_func innocuous_$ac_func
14687
14688 /* System header to define __stub macros and hopefully few prototypes,
14689     which can conflict with char $ac_func (); below.
14690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14691     <limits.h> exists even on freestanding compilers.  */
14692
14693 #ifdef __STDC__
14694 # include <limits.h>
14695 #else
14696 # include <assert.h>
14697 #endif
14698
14699 #undef $ac_func
14700
14701 /* Override any GCC internal prototype to avoid an error.
14702    Use char because int might match the return type of a GCC
14703    builtin and then its argument prototype would still apply.  */
14704 #ifdef __cplusplus
14705 extern "C"
14706 #endif
14707 char $ac_func ();
14708 /* The GNU C library defines this for functions which it implements
14709     to always fail with ENOSYS.  Some functions are actually named
14710     something starting with __ and the normal name is an alias.  */
14711 #if defined __stub_$ac_func || defined __stub___$ac_func
14712 choke me
14713 #endif
14714
14715 int
14716 main ()
14717 {
14718 return $ac_func ();
14719   ;
14720   return 0;
14721 }
14722 _ACEOF
14723 rm -f conftest.$ac_objext conftest$ac_exeext
14724 if { (ac_try="$ac_link"
14725 case "(($ac_try" in
14726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727   *) ac_try_echo=$ac_try;;
14728 esac
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730   (eval "$ac_link") 2>conftest.er1
14731   ac_status=$?
14732   grep -v '^ *+' conftest.er1 >conftest.err
14733   rm -f conftest.er1
14734   cat conftest.err >&5
14735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736   (exit $ac_status); } && {
14737          test -z "$ac_c_werror_flag" ||
14738          test ! -s conftest.err
14739        } && test -s conftest$ac_exeext &&
14740        $as_test_x conftest$ac_exeext; then
14741   eval "$as_ac_var=yes"
14742 else
14743   echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14745
14746         eval "$as_ac_var=no"
14747 fi
14748
14749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14750       conftest$ac_exeext conftest.$ac_ext
14751 fi
14752 ac_res=`eval echo '${'$as_ac_var'}'`
14753                { echo "$as_me:$LINENO: result: $ac_res" >&5
14754 echo "${ECHO_T}$ac_res" >&6; }
14755 if test `eval echo '${'$as_ac_var'}'` = yes; then
14756   cat >>confdefs.h <<_ACEOF
14757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14758 _ACEOF
14759
14760 fi
14761 done
14762
14763   if test $ac_cv_func_snprintf = no; then
14764
14765
14766   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
14767   if test $ac_cv_func_snprintf = yes; then
14768     REPLACE_SNPRINTF=1
14769   fi
14770   :
14771
14772   fi
14773
14774   :
14775
14776
14777
14778
14779
14780   if test $ac_cv_have_decl_snprintf = no; then
14781     HAVE_DECL_SNPRINTF=0
14782   fi
14783
14784
14785
14786   GNULIB_SNPRINTF=1
14787
14788      { echo "$as_me:$LINENO: checking for socklen_t" >&5
14789 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
14790 if test "${ac_cv_type_socklen_t+set}" = set; then
14791   echo $ECHO_N "(cached) $ECHO_C" >&6
14792 else
14793   cat >conftest.$ac_ext <<_ACEOF
14794 /* confdefs.h.  */
14795 _ACEOF
14796 cat confdefs.h >>conftest.$ac_ext
14797 cat >>conftest.$ac_ext <<_ACEOF
14798 /* end confdefs.h.  */
14799 #include <sys/types.h>
14800       #if HAVE_SYS_SOCKET_H
14801       # include <sys/socket.h>
14802       #elif HAVE_WS2TCPIP_H
14803       # include <ws2tcpip.h>
14804       #endif
14805
14806 typedef socklen_t ac__type_new_;
14807 int
14808 main ()
14809 {
14810 if ((ac__type_new_ *) 0)
14811   return 0;
14812 if (sizeof (ac__type_new_))
14813   return 0;
14814   ;
14815   return 0;
14816 }
14817 _ACEOF
14818 rm -f conftest.$ac_objext
14819 if { (ac_try="$ac_compile"
14820 case "(($ac_try" in
14821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14822   *) ac_try_echo=$ac_try;;
14823 esac
14824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14825   (eval "$ac_compile") 2>conftest.er1
14826   ac_status=$?
14827   grep -v '^ *+' conftest.er1 >conftest.err
14828   rm -f conftest.er1
14829   cat conftest.err >&5
14830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831   (exit $ac_status); } && {
14832          test -z "$ac_c_werror_flag" ||
14833          test ! -s conftest.err
14834        } && test -s conftest.$ac_objext; then
14835   ac_cv_type_socklen_t=yes
14836 else
14837   echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14839
14840         ac_cv_type_socklen_t=no
14841 fi
14842
14843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14844 fi
14845 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14846 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
14847 if test $ac_cv_type_socklen_t = yes; then
14848   :
14849 else
14850   { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
14851 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
14852       if test "${gl_cv_socklen_t_equiv+set}" = set; then
14853   echo $ECHO_N "(cached) $ECHO_C" >&6
14854 else
14855   # Systems have either "struct sockaddr *" or
14856          # "void *" as the second argument to getpeername
14857          gl_cv_socklen_t_equiv=
14858          for arg2 in "struct sockaddr" void; do
14859            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
14860              cat >conftest.$ac_ext <<_ACEOF
14861 /* confdefs.h.  */
14862 _ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h.  */
14866 #include <sys/types.h>
14867                 #include <sys/socket.h>
14868
14869                 int getpeername (int, $arg2 *, $t *);
14870 int
14871 main ()
14872 {
14873 $t len;
14874                 getpeername (0, 0, &len);
14875   ;
14876   return 0;
14877 }
14878 _ACEOF
14879 rm -f conftest.$ac_objext
14880 if { (ac_try="$ac_compile"
14881 case "(($ac_try" in
14882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883   *) ac_try_echo=$ac_try;;
14884 esac
14885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886   (eval "$ac_compile") 2>conftest.er1
14887   ac_status=$?
14888   grep -v '^ *+' conftest.er1 >conftest.err
14889   rm -f conftest.er1
14890   cat conftest.err >&5
14891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); } && {
14893          test -z "$ac_c_werror_flag" ||
14894          test ! -s conftest.err
14895        } && test -s conftest.$ac_objext; then
14896   gl_cv_socklen_t_equiv="$t"
14897 else
14898   echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14900
14901
14902 fi
14903
14904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14905              test "$gl_cv_socklen_t_equiv" != "" && break
14906            done
14907            test "$gl_cv_socklen_t_equiv" != "" && break
14908          done
14909
14910 fi
14911
14912       if test "$gl_cv_socklen_t_equiv" = ""; then
14913         { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
14914 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
14915    { (exit 1); exit 1; }; }
14916       fi
14917       { echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
14918 echo "${ECHO_T}$gl_cv_socklen_t_equiv" >&6; }
14919
14920 cat >>confdefs.h <<_ACEOF
14921 #define socklen_t $gl_cv_socklen_t_equiv
14922 _ACEOF
14923
14924 fi
14925
14926
14927   { echo "$as_me:$LINENO: checking for ssize_t" >&5
14928 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
14929 if test "${gt_cv_ssize_t+set}" = set; then
14930   echo $ECHO_N "(cached) $ECHO_C" >&6
14931 else
14932   cat >conftest.$ac_ext <<_ACEOF
14933 /* confdefs.h.  */
14934 _ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h.  */
14938 #include <sys/types.h>
14939 int
14940 main ()
14941 {
14942 int x = sizeof (ssize_t *) + sizeof (ssize_t);
14943         return !x;
14944   ;
14945   return 0;
14946 }
14947 _ACEOF
14948 rm -f conftest.$ac_objext
14949 if { (ac_try="$ac_compile"
14950 case "(($ac_try" in
14951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952   *) ac_try_echo=$ac_try;;
14953 esac
14954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955   (eval "$ac_compile") 2>conftest.er1
14956   ac_status=$?
14957   grep -v '^ *+' conftest.er1 >conftest.err
14958   rm -f conftest.er1
14959   cat conftest.err >&5
14960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961   (exit $ac_status); } && {
14962          test -z "$ac_c_werror_flag" ||
14963          test ! -s conftest.err
14964        } && test -s conftest.$ac_objext; then
14965   gt_cv_ssize_t=yes
14966 else
14967   echo "$as_me: failed program was:" >&5
14968 sed 's/^/| /' conftest.$ac_ext >&5
14969
14970         gt_cv_ssize_t=no
14971 fi
14972
14973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14974 fi
14975 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
14976 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
14977   if test $gt_cv_ssize_t = no; then
14978
14979 cat >>confdefs.h <<\_ACEOF
14980 #define ssize_t int
14981 _ACEOF
14982
14983   fi
14984
14985
14986
14987
14988   # Define two additional variables used in the Makefile substitution.
14989
14990   if test "$ac_cv_header_stdbool_h" = yes; then
14991     STDBOOL_H=''
14992   else
14993     STDBOOL_H='stdbool.h'
14994   fi
14995
14996
14997   if test "$ac_cv_type__Bool" = yes; then
14998     HAVE__BOOL=1
14999   else
15000     HAVE__BOOL=0
15001   fi
15002
15003
15004
15005
15006
15007   if test $ac_cv_type_long_long_int = yes; then
15008     HAVE_LONG_LONG_INT=1
15009   else
15010     HAVE_LONG_LONG_INT=0
15011   fi
15012
15013
15014   if test $ac_cv_type_unsigned_long_long_int = yes; then
15015     HAVE_UNSIGNED_LONG_LONG_INT=1
15016   else
15017     HAVE_UNSIGNED_LONG_LONG_INT=0
15018   fi
15019
15020
15021       if test $ac_cv_header_inttypes_h = yes; then
15022     HAVE_INTTYPES_H=1
15023   else
15024     HAVE_INTTYPES_H=0
15025   fi
15026
15027
15028       if test $ac_cv_header_sys_types_h = yes; then
15029     HAVE_SYS_TYPES_H=1
15030   else
15031     HAVE_SYS_TYPES_H=0
15032   fi
15033
15034
15035
15036
15037
15038   :
15039
15040
15041
15042
15043
15044
15045
15046      if test $gl_cv_have_include_next = yes; then
15047        gl_cv_next_stdint_h='<'stdint.h'>'
15048      else
15049        { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
15050 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
15051 if test "${gl_cv_next_stdint_h+set}" = set; then
15052   echo $ECHO_N "(cached) $ECHO_C" >&6
15053 else
15054
15055           if test $ac_cv_header_stdint_h = yes; then
15056             cat >conftest.$ac_ext <<_ACEOF
15057 /* confdefs.h.  */
15058 _ACEOF
15059 cat confdefs.h >>conftest.$ac_ext
15060 cat >>conftest.$ac_ext <<_ACEOF
15061 /* end confdefs.h.  */
15062 #include <stdint.h>
15063
15064 _ACEOF
15065                                     gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15066                sed -n '\#/stdint.h#{
15067                  s#.*"\(.*/stdint.h\)".*#\1#
15068                  s#^/[^/]#//&#
15069                  p
15070                  q
15071                }'`'"'
15072           else
15073             gl_cv_next_stdint_h='<'stdint.h'>'
15074           fi
15075
15076 fi
15077 { echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
15078 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6; }
15079      fi
15080      NEXT_STDINT_H=$gl_cv_next_stdint_h
15081
15082
15083
15084   if test $ac_cv_header_stdint_h = yes; then
15085     HAVE_STDINT_H=1
15086   else
15087     HAVE_STDINT_H=0
15088   fi
15089
15090
15091     if test $ac_cv_header_stdint_h = yes; then
15092     { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
15093 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
15094 if test "${gl_cv_header_working_stdint_h+set}" = set; then
15095   echo $ECHO_N "(cached) $ECHO_C" >&6
15096 else
15097   gl_cv_header_working_stdint_h=no
15098        cat >conftest.$ac_ext <<_ACEOF
15099
15100          /* confdefs.h.  */
15101 _ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h.  */
15105
15106 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
15107 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
15108 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15109 #include <stdint.h>
15110 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
15111 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
15112 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
15113 #endif
15114
15115
15116   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15117      included before <wchar.h>.  */
15118   #include <stddef.h>
15119   #include <signal.h>
15120   #if HAVE_WCHAR_H
15121   # include <stdio.h>
15122   # include <time.h>
15123   # include <wchar.h>
15124   #endif
15125
15126
15127 #ifdef INT8_MAX
15128 int8_t a1 = INT8_MAX;
15129 int8_t a1min = INT8_MIN;
15130 #endif
15131 #ifdef INT16_MAX
15132 int16_t a2 = INT16_MAX;
15133 int16_t a2min = INT16_MIN;
15134 #endif
15135 #ifdef INT32_MAX
15136 int32_t a3 = INT32_MAX;
15137 int32_t a3min = INT32_MIN;
15138 #endif
15139 #ifdef INT64_MAX
15140 int64_t a4 = INT64_MAX;
15141 int64_t a4min = INT64_MIN;
15142 #endif
15143 #ifdef UINT8_MAX
15144 uint8_t b1 = UINT8_MAX;
15145 #else
15146 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
15147 #endif
15148 #ifdef UINT16_MAX
15149 uint16_t b2 = UINT16_MAX;
15150 #endif
15151 #ifdef UINT32_MAX
15152 uint32_t b3 = UINT32_MAX;
15153 #endif
15154 #ifdef UINT64_MAX
15155 uint64_t b4 = UINT64_MAX;
15156 #endif
15157 int_least8_t c1 = INT8_C (0x7f);
15158 int_least8_t c1max = INT_LEAST8_MAX;
15159 int_least8_t c1min = INT_LEAST8_MIN;
15160 int_least16_t c2 = INT16_C (0x7fff);
15161 int_least16_t c2max = INT_LEAST16_MAX;
15162 int_least16_t c2min = INT_LEAST16_MIN;
15163 int_least32_t c3 = INT32_C (0x7fffffff);
15164 int_least32_t c3max = INT_LEAST32_MAX;
15165 int_least32_t c3min = INT_LEAST32_MIN;
15166 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
15167 int_least64_t c4max = INT_LEAST64_MAX;
15168 int_least64_t c4min = INT_LEAST64_MIN;
15169 uint_least8_t d1 = UINT8_C (0xff);
15170 uint_least8_t d1max = UINT_LEAST8_MAX;
15171 uint_least16_t d2 = UINT16_C (0xffff);
15172 uint_least16_t d2max = UINT_LEAST16_MAX;
15173 uint_least32_t d3 = UINT32_C (0xffffffff);
15174 uint_least32_t d3max = UINT_LEAST32_MAX;
15175 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
15176 uint_least64_t d4max = UINT_LEAST64_MAX;
15177 int_fast8_t e1 = INT_FAST8_MAX;
15178 int_fast8_t e1min = INT_FAST8_MIN;
15179 int_fast16_t e2 = INT_FAST16_MAX;
15180 int_fast16_t e2min = INT_FAST16_MIN;
15181 int_fast32_t e3 = INT_FAST32_MAX;
15182 int_fast32_t e3min = INT_FAST32_MIN;
15183 int_fast64_t e4 = INT_FAST64_MAX;
15184 int_fast64_t e4min = INT_FAST64_MIN;
15185 uint_fast8_t f1 = UINT_FAST8_MAX;
15186 uint_fast16_t f2 = UINT_FAST16_MAX;
15187 uint_fast32_t f3 = UINT_FAST32_MAX;
15188 uint_fast64_t f4 = UINT_FAST64_MAX;
15189 #ifdef INTPTR_MAX
15190 intptr_t g = INTPTR_MAX;
15191 intptr_t gmin = INTPTR_MIN;
15192 #endif
15193 #ifdef UINTPTR_MAX
15194 uintptr_t h = UINTPTR_MAX;
15195 #endif
15196 intmax_t i = INTMAX_MAX;
15197 uintmax_t j = UINTMAX_MAX;
15198
15199 #include <limits.h> /* for CHAR_BIT */
15200 #define TYPE_MINIMUM(t) \
15201   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
15202 #define TYPE_MAXIMUM(t) \
15203   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
15204 struct s {
15205   int check_PTRDIFF:
15206       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
15207       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
15208       ? 1 : -1;
15209   /* Detect bug in FreeBSD 6.0 / ia64.  */
15210   int check_SIG_ATOMIC:
15211       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
15212       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
15213       ? 1 : -1;
15214   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
15215   int check_WCHAR:
15216       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
15217       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
15218       ? 1 : -1;
15219   /* Detect bug in mingw.  */
15220   int check_WINT:
15221       WINT_MIN == TYPE_MINIMUM (wint_t)
15222       && WINT_MAX == TYPE_MAXIMUM (wint_t)
15223       ? 1 : -1;
15224
15225   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
15226   int check_UINT8_C:
15227         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
15228   int check_UINT16_C:
15229         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
15230
15231   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
15232 #ifdef UINT8_MAX
15233   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
15234 #endif
15235 #ifdef UINT16_MAX
15236   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
15237 #endif
15238 #ifdef UINT32_MAX
15239   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
15240 #endif
15241 #ifdef UINT64_MAX
15242   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
15243 #endif
15244   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
15245   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
15246   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
15247   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
15248   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
15249   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
15250   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
15251   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
15252   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
15253   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
15254   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
15255 };
15256
15257 int
15258 main ()
15259 {
15260
15261   ;
15262   return 0;
15263 }
15264 _ACEOF
15265 rm -f conftest.$ac_objext
15266 if { (ac_try="$ac_compile"
15267 case "(($ac_try" in
15268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15269   *) ac_try_echo=$ac_try;;
15270 esac
15271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15272   (eval "$ac_compile") 2>conftest.er1
15273   ac_status=$?
15274   grep -v '^ *+' conftest.er1 >conftest.err
15275   rm -f conftest.er1
15276   cat conftest.err >&5
15277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278   (exit $ac_status); } && {
15279          test -z "$ac_c_werror_flag" ||
15280          test ! -s conftest.err
15281        } && test -s conftest.$ac_objext; then
15282   gl_cv_header_working_stdint_h=yes
15283 else
15284   echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15286
15287
15288 fi
15289
15290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15291 fi
15292 { echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
15293 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
15294   fi
15295   if test "$gl_cv_header_working_stdint_h" = yes; then
15296     STDINT_H=
15297   else
15298
15299
15300 for ac_header in sys/inttypes.h sys/bitypes.h
15301 do
15302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15304   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15307   echo $ECHO_N "(cached) $ECHO_C" >&6
15308 fi
15309 ac_res=`eval echo '${'$as_ac_Header'}'`
15310                { echo "$as_me:$LINENO: result: $ac_res" >&5
15311 echo "${ECHO_T}$ac_res" >&6; }
15312 else
15313   # Is the header compilable?
15314 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15316 cat >conftest.$ac_ext <<_ACEOF
15317 /* confdefs.h.  */
15318 _ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h.  */
15322 $ac_includes_default
15323 #include <$ac_header>
15324 _ACEOF
15325 rm -f conftest.$ac_objext
15326 if { (ac_try="$ac_compile"
15327 case "(($ac_try" in
15328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329   *) ac_try_echo=$ac_try;;
15330 esac
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332   (eval "$ac_compile") 2>conftest.er1
15333   ac_status=$?
15334   grep -v '^ *+' conftest.er1 >conftest.err
15335   rm -f conftest.er1
15336   cat conftest.err >&5
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); } && {
15339          test -z "$ac_c_werror_flag" ||
15340          test ! -s conftest.err
15341        } && test -s conftest.$ac_objext; then
15342   ac_header_compiler=yes
15343 else
15344   echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15346
15347         ac_header_compiler=no
15348 fi
15349
15350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15351 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15352 echo "${ECHO_T}$ac_header_compiler" >&6; }
15353
15354 # Is the header present?
15355 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15357 cat >conftest.$ac_ext <<_ACEOF
15358 /* confdefs.h.  */
15359 _ACEOF
15360 cat confdefs.h >>conftest.$ac_ext
15361 cat >>conftest.$ac_ext <<_ACEOF
15362 /* end confdefs.h.  */
15363 #include <$ac_header>
15364 _ACEOF
15365 if { (ac_try="$ac_cpp conftest.$ac_ext"
15366 case "(($ac_try" in
15367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368   *) ac_try_echo=$ac_try;;
15369 esac
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15372   ac_status=$?
15373   grep -v '^ *+' conftest.er1 >conftest.err
15374   rm -f conftest.er1
15375   cat conftest.err >&5
15376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); } >/dev/null && {
15378          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15379          test ! -s conftest.err
15380        }; then
15381   ac_header_preproc=yes
15382 else
15383   echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.$ac_ext >&5
15385
15386   ac_header_preproc=no
15387 fi
15388
15389 rm -f conftest.err conftest.$ac_ext
15390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15391 echo "${ECHO_T}$ac_header_preproc" >&6; }
15392
15393 # So?  What about this header?
15394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15395   yes:no: )
15396     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15400     ac_header_preproc=yes
15401     ;;
15402   no:yes:* )
15403     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15405     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15406 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15407     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15409     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15410 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15413     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15415
15416     ;;
15417 esac
15418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15421   echo $ECHO_N "(cached) $ECHO_C" >&6
15422 else
15423   eval "$as_ac_Header=\$ac_header_preproc"
15424 fi
15425 ac_res=`eval echo '${'$as_ac_Header'}'`
15426                { echo "$as_me:$LINENO: result: $ac_res" >&5
15427 echo "${ECHO_T}$ac_res" >&6; }
15428
15429 fi
15430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15431   cat >>confdefs.h <<_ACEOF
15432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15433 _ACEOF
15434
15435 fi
15436
15437 done
15438
15439     if test $ac_cv_header_sys_inttypes_h = yes; then
15440       HAVE_SYS_INTTYPES_H=1
15441     else
15442       HAVE_SYS_INTTYPES_H=0
15443     fi
15444
15445     if test $ac_cv_header_sys_bitypes_h = yes; then
15446       HAVE_SYS_BITYPES_H=1
15447     else
15448       HAVE_SYS_BITYPES_H=0
15449     fi
15450
15451
15452
15453   :
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
15469     { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
15470 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
15471 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
15472   echo $ECHO_N "(cached) $ECHO_C" >&6
15473 else
15474   if test "$cross_compiling" = yes; then
15475   # Depending upon the size, compute the lo and hi bounds.
15476 cat >conftest.$ac_ext <<_ACEOF
15477 /* confdefs.h.  */
15478 _ACEOF
15479 cat confdefs.h >>conftest.$ac_ext
15480 cat >>conftest.$ac_ext <<_ACEOF
15481 /* end confdefs.h.  */
15482
15483   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15484      included before <wchar.h>.  */
15485   #include <stddef.h>
15486   #include <signal.h>
15487   #if HAVE_WCHAR_H
15488   # include <stdio.h>
15489   # include <time.h>
15490   # include <wchar.h>
15491   #endif
15492
15493 #include <limits.h>
15494 int
15495 main ()
15496 {
15497 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
15498 test_array [0] = 0
15499
15500   ;
15501   return 0;
15502 }
15503 _ACEOF
15504 rm -f conftest.$ac_objext
15505 if { (ac_try="$ac_compile"
15506 case "(($ac_try" in
15507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508   *) ac_try_echo=$ac_try;;
15509 esac
15510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511   (eval "$ac_compile") 2>conftest.er1
15512   ac_status=$?
15513   grep -v '^ *+' conftest.er1 >conftest.err
15514   rm -f conftest.er1
15515   cat conftest.err >&5
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); } && {
15518          test -z "$ac_c_werror_flag" ||
15519          test ! -s conftest.err
15520        } && test -s conftest.$ac_objext; then
15521   ac_lo=0 ac_mid=0
15522   while :; do
15523     cat >conftest.$ac_ext <<_ACEOF
15524 /* confdefs.h.  */
15525 _ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h.  */
15529
15530   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15531      included before <wchar.h>.  */
15532   #include <stddef.h>
15533   #include <signal.h>
15534   #if HAVE_WCHAR_H
15535   # include <stdio.h>
15536   # include <time.h>
15537   # include <wchar.h>
15538   #endif
15539
15540 #include <limits.h>
15541 int
15542 main ()
15543 {
15544 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
15545 test_array [0] = 0
15546
15547   ;
15548   return 0;
15549 }
15550 _ACEOF
15551 rm -f conftest.$ac_objext
15552 if { (ac_try="$ac_compile"
15553 case "(($ac_try" in
15554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15555   *) ac_try_echo=$ac_try;;
15556 esac
15557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15558   (eval "$ac_compile") 2>conftest.er1
15559   ac_status=$?
15560   grep -v '^ *+' conftest.er1 >conftest.err
15561   rm -f conftest.er1
15562   cat conftest.err >&5
15563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564   (exit $ac_status); } && {
15565          test -z "$ac_c_werror_flag" ||
15566          test ! -s conftest.err
15567        } && test -s conftest.$ac_objext; then
15568   ac_hi=$ac_mid; break
15569 else
15570   echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15572
15573         ac_lo=`expr $ac_mid + 1`
15574                         if test $ac_lo -le $ac_mid; then
15575                           ac_lo= ac_hi=
15576                           break
15577                         fi
15578                         ac_mid=`expr 2 '*' $ac_mid + 1`
15579 fi
15580
15581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582   done
15583 else
15584   echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.$ac_ext >&5
15586
15587         cat >conftest.$ac_ext <<_ACEOF
15588 /* confdefs.h.  */
15589 _ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h.  */
15593
15594   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15595      included before <wchar.h>.  */
15596   #include <stddef.h>
15597   #include <signal.h>
15598   #if HAVE_WCHAR_H
15599   # include <stdio.h>
15600   # include <time.h>
15601   # include <wchar.h>
15602   #endif
15603
15604 #include <limits.h>
15605 int
15606 main ()
15607 {
15608 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
15609 test_array [0] = 0
15610
15611   ;
15612   return 0;
15613 }
15614 _ACEOF
15615 rm -f conftest.$ac_objext
15616 if { (ac_try="$ac_compile"
15617 case "(($ac_try" in
15618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15619   *) ac_try_echo=$ac_try;;
15620 esac
15621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15622   (eval "$ac_compile") 2>conftest.er1
15623   ac_status=$?
15624   grep -v '^ *+' conftest.er1 >conftest.err
15625   rm -f conftest.er1
15626   cat conftest.err >&5
15627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628   (exit $ac_status); } && {
15629          test -z "$ac_c_werror_flag" ||
15630          test ! -s conftest.err
15631        } && test -s conftest.$ac_objext; then
15632   ac_hi=-1 ac_mid=-1
15633   while :; do
15634     cat >conftest.$ac_ext <<_ACEOF
15635 /* confdefs.h.  */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h.  */
15640
15641   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15642      included before <wchar.h>.  */
15643   #include <stddef.h>
15644   #include <signal.h>
15645   #if HAVE_WCHAR_H
15646   # include <stdio.h>
15647   # include <time.h>
15648   # include <wchar.h>
15649   #endif
15650
15651 #include <limits.h>
15652 int
15653 main ()
15654 {
15655 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
15656 test_array [0] = 0
15657
15658   ;
15659   return 0;
15660 }
15661 _ACEOF
15662 rm -f conftest.$ac_objext
15663 if { (ac_try="$ac_compile"
15664 case "(($ac_try" in
15665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15666   *) ac_try_echo=$ac_try;;
15667 esac
15668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15669   (eval "$ac_compile") 2>conftest.er1
15670   ac_status=$?
15671   grep -v '^ *+' conftest.er1 >conftest.err
15672   rm -f conftest.er1
15673   cat conftest.err >&5
15674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675   (exit $ac_status); } && {
15676          test -z "$ac_c_werror_flag" ||
15677          test ! -s conftest.err
15678        } && test -s conftest.$ac_objext; then
15679   ac_lo=$ac_mid; break
15680 else
15681   echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684         ac_hi=`expr '(' $ac_mid ')' - 1`
15685                         if test $ac_mid -le $ac_hi; then
15686                           ac_lo= ac_hi=
15687                           break
15688                         fi
15689                         ac_mid=`expr 2 '*' $ac_mid`
15690 fi
15691
15692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15693   done
15694 else
15695   echo "$as_me: failed program was:" >&5
15696 sed 's/^/| /' conftest.$ac_ext >&5
15697
15698         ac_lo= ac_hi=
15699 fi
15700
15701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15702 fi
15703
15704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15705 # Binary search between lo and hi bounds.
15706 while test "x$ac_lo" != "x$ac_hi"; do
15707   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15708   cat >conftest.$ac_ext <<_ACEOF
15709 /* confdefs.h.  */
15710 _ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h.  */
15714
15715   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15716      included before <wchar.h>.  */
15717   #include <stddef.h>
15718   #include <signal.h>
15719   #if HAVE_WCHAR_H
15720   # include <stdio.h>
15721   # include <time.h>
15722   # include <wchar.h>
15723   #endif
15724
15725 #include <limits.h>
15726 int
15727 main ()
15728 {
15729 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
15730 test_array [0] = 0
15731
15732   ;
15733   return 0;
15734 }
15735 _ACEOF
15736 rm -f conftest.$ac_objext
15737 if { (ac_try="$ac_compile"
15738 case "(($ac_try" in
15739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740   *) ac_try_echo=$ac_try;;
15741 esac
15742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743   (eval "$ac_compile") 2>conftest.er1
15744   ac_status=$?
15745   grep -v '^ *+' conftest.er1 >conftest.err
15746   rm -f conftest.er1
15747   cat conftest.err >&5
15748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749   (exit $ac_status); } && {
15750          test -z "$ac_c_werror_flag" ||
15751          test ! -s conftest.err
15752        } && test -s conftest.$ac_objext; then
15753   ac_hi=$ac_mid
15754 else
15755   echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15757
15758         ac_lo=`expr '(' $ac_mid ')' + 1`
15759 fi
15760
15761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15762 done
15763 case $ac_lo in
15764 ?*) result=$ac_lo;;
15765 '') result=unknown ;;
15766 esac
15767 else
15768   cat >conftest.$ac_ext <<_ACEOF
15769 /* confdefs.h.  */
15770 _ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h.  */
15774
15775   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15776      included before <wchar.h>.  */
15777   #include <stddef.h>
15778   #include <signal.h>
15779   #if HAVE_WCHAR_H
15780   # include <stdio.h>
15781   # include <time.h>
15782   # include <wchar.h>
15783   #endif
15784
15785 #include <limits.h>
15786 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
15787 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
15788 #include <stdio.h>
15789 #include <stdlib.h>
15790 int
15791 main ()
15792 {
15793
15794   FILE *f = fopen ("conftest.val", "w");
15795   if (! f)
15796     return 1;
15797   if ((sizeof ($gltype) * CHAR_BIT) < 0)
15798     {
15799       long int i = longval ();
15800       if (i != (sizeof ($gltype) * CHAR_BIT))
15801         return 1;
15802       fprintf (f, "%ld\n", i);
15803     }
15804   else
15805     {
15806       unsigned long int i = ulongval ();
15807       if (i != (sizeof ($gltype) * CHAR_BIT))
15808         return 1;
15809       fprintf (f, "%lu\n", i);
15810     }
15811   return ferror (f) || fclose (f) != 0;
15812
15813   ;
15814   return 0;
15815 }
15816 _ACEOF
15817 rm -f conftest$ac_exeext
15818 if { (ac_try="$ac_link"
15819 case "(($ac_try" in
15820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821   *) ac_try_echo=$ac_try;;
15822 esac
15823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15824   (eval "$ac_link") 2>&5
15825   ac_status=$?
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15828   { (case "(($ac_try" in
15829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830   *) ac_try_echo=$ac_try;;
15831 esac
15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833   (eval "$ac_try") 2>&5
15834   ac_status=$?
15835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836   (exit $ac_status); }; }; then
15837   result=`cat conftest.val`
15838 else
15839   echo "$as_me: program exited with status $ac_status" >&5
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15842
15843 ( exit $ac_status )
15844 result=unknown
15845 fi
15846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15847 fi
15848 rm -f conftest.val
15849        eval gl_cv_bitsizeof_${gltype}=\$result
15850
15851 fi
15852 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
15853                { echo "$as_me:$LINENO: result: $ac_res" >&5
15854 echo "${ECHO_T}$ac_res" >&6; }
15855     eval result=\$gl_cv_bitsizeof_${gltype}
15856     if test $result = unknown; then
15857                                                 result=0
15858     fi
15859     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15860     cat >>confdefs.h <<_ACEOF
15861 #define BITSIZEOF_${GLTYPE} $result
15862 _ACEOF
15863
15864     eval BITSIZEOF_${GLTYPE}=\$result
15865   done
15866
15867
15868
15869
15870
15871
15872
15873   for gltype in sig_atomic_t wchar_t wint_t ; do
15874     { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
15875 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
15876 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
15877   echo $ECHO_N "(cached) $ECHO_C" >&6
15878 else
15879   cat >conftest.$ac_ext <<_ACEOF
15880 /* confdefs.h.  */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h.  */
15885
15886   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15887      included before <wchar.h>.  */
15888   #include <stddef.h>
15889   #include <signal.h>
15890   #if HAVE_WCHAR_H
15891   # include <stdio.h>
15892   # include <time.h>
15893   # include <wchar.h>
15894   #endif
15895
15896             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
15897 int
15898 main ()
15899 {
15900
15901   ;
15902   return 0;
15903 }
15904 _ACEOF
15905 rm -f conftest.$ac_objext
15906 if { (ac_try="$ac_compile"
15907 case "(($ac_try" in
15908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15909   *) ac_try_echo=$ac_try;;
15910 esac
15911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15912   (eval "$ac_compile") 2>conftest.er1
15913   ac_status=$?
15914   grep -v '^ *+' conftest.er1 >conftest.err
15915   rm -f conftest.er1
15916   cat conftest.err >&5
15917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918   (exit $ac_status); } && {
15919          test -z "$ac_c_werror_flag" ||
15920          test ! -s conftest.err
15921        } && test -s conftest.$ac_objext; then
15922   result=yes
15923 else
15924   echo "$as_me: failed program was:" >&5
15925 sed 's/^/| /' conftest.$ac_ext >&5
15926
15927         result=no
15928 fi
15929
15930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15931        eval gl_cv_type_${gltype}_signed=\$result
15932
15933 fi
15934 ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
15935                { echo "$as_me:$LINENO: result: $ac_res" >&5
15936 echo "${ECHO_T}$ac_res" >&6; }
15937     eval result=\$gl_cv_type_${gltype}_signed
15938     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15939     if test "$result" = yes; then
15940       cat >>confdefs.h <<_ACEOF
15941 #define HAVE_SIGNED_${GLTYPE} 1
15942 _ACEOF
15943
15944       eval HAVE_SIGNED_${GLTYPE}=1
15945     else
15946       eval HAVE_SIGNED_${GLTYPE}=0
15947     fi
15948   done
15949
15950
15951   gl_cv_type_ptrdiff_t_signed=yes
15952   gl_cv_type_size_t_signed=no
15953
15954
15955
15956
15957
15958
15959
15960   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
15961     { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
15962 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
15963 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
15964   echo $ECHO_N "(cached) $ECHO_C" >&6
15965 else
15966   eval gl_cv_type_${gltype}_suffix=no
15967        eval result=\$gl_cv_type_${gltype}_signed
15968        if test "$result" = yes; then
15969          glsufu=
15970        else
15971          glsufu=u
15972        fi
15973        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15974          case $glsuf in
15975            '')  gltype1='int';;
15976            l)   gltype1='long int';;
15977            ll)  gltype1='long long int';;
15978            i64) gltype1='__int64';;
15979            u)   gltype1='unsigned int';;
15980            ul)  gltype1='unsigned long int';;
15981            ull) gltype1='unsigned long long int';;
15982            ui64)gltype1='unsigned __int64';;
15983          esac
15984          cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h.  */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h.  */
15990
15991   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15992      included before <wchar.h>.  */
15993   #include <stddef.h>
15994   #include <signal.h>
15995   #if HAVE_WCHAR_H
15996   # include <stdio.h>
15997   # include <time.h>
15998   # include <wchar.h>
15999   #endif
16000
16001               extern $gltype foo;
16002               extern $gltype1 foo;
16003 int
16004 main ()
16005 {
16006
16007   ;
16008   return 0;
16009 }
16010 _ACEOF
16011 rm -f conftest.$ac_objext
16012 if { (ac_try="$ac_compile"
16013 case "(($ac_try" in
16014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015   *) ac_try_echo=$ac_try;;
16016 esac
16017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16018   (eval "$ac_compile") 2>conftest.er1
16019   ac_status=$?
16020   grep -v '^ *+' conftest.er1 >conftest.err
16021   rm -f conftest.er1
16022   cat conftest.err >&5
16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   (exit $ac_status); } && {
16025          test -z "$ac_c_werror_flag" ||
16026          test ! -s conftest.err
16027        } && test -s conftest.$ac_objext; then
16028   eval gl_cv_type_${gltype}_suffix=\$glsuf
16029 else
16030   echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.$ac_ext >&5
16032
16033
16034 fi
16035
16036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16037          eval result=\$gl_cv_type_${gltype}_suffix
16038          test "$result" != no && break
16039        done
16040 fi
16041 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
16042                { echo "$as_me:$LINENO: result: $ac_res" >&5
16043 echo "${ECHO_T}$ac_res" >&6; }
16044     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16045     eval result=\$gl_cv_type_${gltype}_suffix
16046     test "$result" = no && result=
16047     eval ${GLTYPE}_SUFFIX=\$result
16048     cat >>confdefs.h <<_ACEOF
16049 #define ${GLTYPE}_SUFFIX $result
16050 _ACEOF
16051
16052   done
16053
16054
16055
16056     STDINT_H=stdint.h
16057   fi
16058
16059
16060
16061
16062
16063
16064
16065   :
16066
16067
16068
16069
16070
16071
16072
16073      if test $gl_cv_have_include_next = yes; then
16074        gl_cv_next_stdio_h='<'stdio.h'>'
16075      else
16076        { echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
16077 echo $ECHO_N "checking absolute name of <stdio.h>... $ECHO_C" >&6; }
16078 if test "${gl_cv_next_stdio_h+set}" = set; then
16079   echo $ECHO_N "(cached) $ECHO_C" >&6
16080 else
16081
16082           if test $ac_cv_header_stdio_h = yes; then
16083             cat >conftest.$ac_ext <<_ACEOF
16084 /* confdefs.h.  */
16085 _ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h.  */
16089 #include <stdio.h>
16090
16091 _ACEOF
16092                                     gl_cv_next_stdio_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16093                sed -n '\#/stdio.h#{
16094                  s#.*"\(.*/stdio.h\)".*#\1#
16095                  s#^/[^/]#//&#
16096                  p
16097                  q
16098                }'`'"'
16099           else
16100             gl_cv_next_stdio_h='<'stdio.h'>'
16101           fi
16102
16103 fi
16104 { echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
16105 echo "${ECHO_T}$gl_cv_next_stdio_h" >&6; }
16106      fi
16107      NEXT_STDIO_H=$gl_cv_next_stdio_h
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117   :
16118
16119
16120
16121
16122
16123
16124
16125      if test $gl_cv_have_include_next = yes; then
16126        gl_cv_next_stdlib_h='<'stdlib.h'>'
16127      else
16128        { echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
16129 echo $ECHO_N "checking absolute name of <stdlib.h>... $ECHO_C" >&6; }
16130 if test "${gl_cv_next_stdlib_h+set}" = set; then
16131   echo $ECHO_N "(cached) $ECHO_C" >&6
16132 else
16133
16134           if test $ac_cv_header_stdlib_h = yes; then
16135             cat >conftest.$ac_ext <<_ACEOF
16136 /* confdefs.h.  */
16137 _ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h.  */
16141 #include <stdlib.h>
16142
16143 _ACEOF
16144                                     gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16145                sed -n '\#/stdlib.h#{
16146                  s#.*"\(.*/stdlib.h\)".*#\1#
16147                  s#^/[^/]#//&#
16148                  p
16149                  q
16150                }'`'"'
16151           else
16152             gl_cv_next_stdlib_h='<'stdlib.h'>'
16153           fi
16154
16155 fi
16156 { echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
16157 echo "${ECHO_T}$gl_cv_next_stdlib_h" >&6; }
16158      fi
16159      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
16160
16161
16162
16163
16164
16165
16166
16167 for ac_func in strdup
16168 do
16169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16173   echo $ECHO_N "(cached) $ECHO_C" >&6
16174 else
16175   cat >conftest.$ac_ext <<_ACEOF
16176 /* confdefs.h.  */
16177 _ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h.  */
16181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16183 #define $ac_func innocuous_$ac_func
16184
16185 /* System header to define __stub macros and hopefully few prototypes,
16186     which can conflict with char $ac_func (); below.
16187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16188     <limits.h> exists even on freestanding compilers.  */
16189
16190 #ifdef __STDC__
16191 # include <limits.h>
16192 #else
16193 # include <assert.h>
16194 #endif
16195
16196 #undef $ac_func
16197
16198 /* Override any GCC internal prototype to avoid an error.
16199    Use char because int might match the return type of a GCC
16200    builtin and then its argument prototype would still apply.  */
16201 #ifdef __cplusplus
16202 extern "C"
16203 #endif
16204 char $ac_func ();
16205 /* The GNU C library defines this for functions which it implements
16206     to always fail with ENOSYS.  Some functions are actually named
16207     something starting with __ and the normal name is an alias.  */
16208 #if defined __stub_$ac_func || defined __stub___$ac_func
16209 choke me
16210 #endif
16211
16212 int
16213 main ()
16214 {
16215 return $ac_func ();
16216   ;
16217   return 0;
16218 }
16219 _ACEOF
16220 rm -f conftest.$ac_objext conftest$ac_exeext
16221 if { (ac_try="$ac_link"
16222 case "(($ac_try" in
16223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224   *) ac_try_echo=$ac_try;;
16225 esac
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227   (eval "$ac_link") 2>conftest.er1
16228   ac_status=$?
16229   grep -v '^ *+' conftest.er1 >conftest.err
16230   rm -f conftest.er1
16231   cat conftest.err >&5
16232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233   (exit $ac_status); } && {
16234          test -z "$ac_c_werror_flag" ||
16235          test ! -s conftest.err
16236        } && test -s conftest$ac_exeext &&
16237        $as_test_x conftest$ac_exeext; then
16238   eval "$as_ac_var=yes"
16239 else
16240   echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16242
16243         eval "$as_ac_var=no"
16244 fi
16245
16246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16247       conftest$ac_exeext conftest.$ac_ext
16248 fi
16249 ac_res=`eval echo '${'$as_ac_var'}'`
16250                { echo "$as_me:$LINENO: result: $ac_res" >&5
16251 echo "${ECHO_T}$ac_res" >&6; }
16252 if test `eval echo '${'$as_ac_var'}'` = yes; then
16253   cat >>confdefs.h <<_ACEOF
16254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16255 _ACEOF
16256
16257 else
16258   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16259 fi
16260 done
16261
16262
16263   :
16264
16265
16266
16267
16268
16269   if test $ac_cv_have_decl_strdup = no; then
16270     HAVE_DECL_STRDUP=0
16271   fi
16272   :
16273
16274
16275
16276   GNULIB_STRDUP=1
16277
16278
16279
16280
16281
16282   { echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
16283 echo $ECHO_N "checking whether <sys/socket.h> is self-contained... $ECHO_C" >&6; }
16284 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
16285   echo $ECHO_N "(cached) $ECHO_C" >&6
16286 else
16287
16288       cat >conftest.$ac_ext <<_ACEOF
16289 /* confdefs.h.  */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h.  */
16294 #include <sys/socket.h>
16295 int
16296 main ()
16297 {
16298
16299   ;
16300   return 0;
16301 }
16302 _ACEOF
16303 rm -f conftest.$ac_objext
16304 if { (ac_try="$ac_compile"
16305 case "(($ac_try" in
16306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307   *) ac_try_echo=$ac_try;;
16308 esac
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310   (eval "$ac_compile") 2>conftest.er1
16311   ac_status=$?
16312   grep -v '^ *+' conftest.er1 >conftest.err
16313   rm -f conftest.er1
16314   cat conftest.err >&5
16315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316   (exit $ac_status); } && {
16317          test -z "$ac_c_werror_flag" ||
16318          test ! -s conftest.err
16319        } && test -s conftest.$ac_objext; then
16320   gl_cv_header_sys_socket_h_selfcontained=yes
16321 else
16322   echo "$as_me: failed program was:" >&5
16323 sed 's/^/| /' conftest.$ac_ext >&5
16324
16325         gl_cv_header_sys_socket_h_selfcontained=no
16326 fi
16327
16328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16329
16330 fi
16331 { echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
16332 echo "${ECHO_T}$gl_cv_header_sys_socket_h_selfcontained" >&6; }
16333   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
16334     SYS_SOCKET_H=''
16335   else
16336     SYS_SOCKET_H='sys/socket.h'
16337
16338
16339
16340
16341   :
16342
16343
16344
16345
16346
16347
16348
16349      if test $gl_cv_have_include_next = yes; then
16350        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
16351      else
16352        { echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
16353 echo $ECHO_N "checking absolute name of <sys/socket.h>... $ECHO_C" >&6; }
16354 if test "${gl_cv_next_sys_socket_h+set}" = set; then
16355   echo $ECHO_N "(cached) $ECHO_C" >&6
16356 else
16357
16358           if test $ac_cv_header_sys_socket_h = yes; then
16359             cat >conftest.$ac_ext <<_ACEOF
16360 /* confdefs.h.  */
16361 _ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h.  */
16365 #include <sys/socket.h>
16366
16367 _ACEOF
16368                                     gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16369                sed -n '\#/sys/socket.h#{
16370                  s#.*"\(.*/sys/socket.h\)".*#\1#
16371                  s#^/[^/]#//&#
16372                  p
16373                  q
16374                }'`'"'
16375           else
16376             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
16377           fi
16378
16379 fi
16380 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
16381 echo "${ECHO_T}$gl_cv_next_sys_socket_h" >&6; }
16382      fi
16383      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
16384
16385
16386
16387     if test $ac_cv_header_sys_socket_h = yes; then
16388       HAVE_SYS_SOCKET_H=1
16389       HAVE_WINSOCK2_H=0
16390       HAVE_WS2TCPIP_H=0
16391     else
16392       HAVE_SYS_SOCKET_H=0
16393
16394
16395 for ac_header in winsock2.h ws2tcpip.h
16396 do
16397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16399   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16402   echo $ECHO_N "(cached) $ECHO_C" >&6
16403 fi
16404 ac_res=`eval echo '${'$as_ac_Header'}'`
16405                { echo "$as_me:$LINENO: result: $ac_res" >&5
16406 echo "${ECHO_T}$ac_res" >&6; }
16407 else
16408   # Is the header compilable?
16409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16411 cat >conftest.$ac_ext <<_ACEOF
16412 /* confdefs.h.  */
16413 _ACEOF
16414 cat confdefs.h >>conftest.$ac_ext
16415 cat >>conftest.$ac_ext <<_ACEOF
16416 /* end confdefs.h.  */
16417 $ac_includes_default
16418 #include <$ac_header>
16419 _ACEOF
16420 rm -f conftest.$ac_objext
16421 if { (ac_try="$ac_compile"
16422 case "(($ac_try" in
16423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424   *) ac_try_echo=$ac_try;;
16425 esac
16426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427   (eval "$ac_compile") 2>conftest.er1
16428   ac_status=$?
16429   grep -v '^ *+' conftest.er1 >conftest.err
16430   rm -f conftest.er1
16431   cat conftest.err >&5
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); } && {
16434          test -z "$ac_c_werror_flag" ||
16435          test ! -s conftest.err
16436        } && test -s conftest.$ac_objext; then
16437   ac_header_compiler=yes
16438 else
16439   echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16441
16442         ac_header_compiler=no
16443 fi
16444
16445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16447 echo "${ECHO_T}$ac_header_compiler" >&6; }
16448
16449 # Is the header present?
16450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16452 cat >conftest.$ac_ext <<_ACEOF
16453 /* confdefs.h.  */
16454 _ACEOF
16455 cat confdefs.h >>conftest.$ac_ext
16456 cat >>conftest.$ac_ext <<_ACEOF
16457 /* end confdefs.h.  */
16458 #include <$ac_header>
16459 _ACEOF
16460 if { (ac_try="$ac_cpp conftest.$ac_ext"
16461 case "(($ac_try" in
16462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463   *) ac_try_echo=$ac_try;;
16464 esac
16465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16467   ac_status=$?
16468   grep -v '^ *+' conftest.er1 >conftest.err
16469   rm -f conftest.er1
16470   cat conftest.err >&5
16471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472   (exit $ac_status); } >/dev/null && {
16473          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16474          test ! -s conftest.err
16475        }; then
16476   ac_header_preproc=yes
16477 else
16478   echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16480
16481   ac_header_preproc=no
16482 fi
16483
16484 rm -f conftest.err conftest.$ac_ext
16485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16486 echo "${ECHO_T}$ac_header_preproc" >&6; }
16487
16488 # So?  What about this header?
16489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16490   yes:no: )
16491     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16495     ac_header_preproc=yes
16496     ;;
16497   no:yes:* )
16498     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16500     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16501 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16502     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16504     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16505 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16508     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16510
16511     ;;
16512 esac
16513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16516   echo $ECHO_N "(cached) $ECHO_C" >&6
16517 else
16518   eval "$as_ac_Header=\$ac_header_preproc"
16519 fi
16520 ac_res=`eval echo '${'$as_ac_Header'}'`
16521                { echo "$as_me:$LINENO: result: $ac_res" >&5
16522 echo "${ECHO_T}$ac_res" >&6; }
16523
16524 fi
16525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16526   cat >>confdefs.h <<_ACEOF
16527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16528 _ACEOF
16529
16530 fi
16531
16532 done
16533
16534       if test $ac_cv_header_winsock2_h = yes; then
16535         HAVE_WINSOCK2_H=1
16536       else
16537         HAVE_WINSOCK2_H=0
16538       fi
16539       if test $ac_cv_header_ws2tcpip_h = yes; then
16540         HAVE_WS2TCPIP_H=1
16541       else
16542         HAVE_WS2TCPIP_H=0
16543       fi
16544     fi
16545
16546
16547
16548   fi
16549
16550
16551   { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
16552 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
16553 if test -z "$MKDIR_P"; then
16554   if test "${ac_cv_path_mkdir+set}" = set; then
16555   echo $ECHO_N "(cached) $ECHO_C" >&6
16556 else
16557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16558 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
16559 do
16560   IFS=$as_save_IFS
16561   test -z "$as_dir" && as_dir=.
16562   for ac_prog in mkdir gmkdir; do
16563          for ac_exec_ext in '' $ac_executable_extensions; do
16564            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
16565            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
16566              'mkdir (GNU coreutils) '* | \
16567              'mkdir (coreutils) '* | \
16568              'mkdir (fileutils) '4.1*)
16569                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
16570                break 3;;
16571            esac
16572          done
16573        done
16574 done
16575 IFS=$as_save_IFS
16576
16577 fi
16578
16579   if test "${ac_cv_path_mkdir+set}" = set; then
16580     MKDIR_P="$ac_cv_path_mkdir -p"
16581   else
16582     # As a last resort, use the slow shell script.  Don't cache a
16583     # value for MKDIR_P within a source directory, because that will
16584     # break other packages using the cache if that directory is
16585     # removed, or if the value is a relative name.
16586     test -d ./--version && rmdir ./--version
16587     MKDIR_P="$ac_install_sh -d"
16588   fi
16589 fi
16590 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
16591 echo "${ECHO_T}$MKDIR_P" >&6; }
16592
16593
16594
16595   :
16596
16597
16598
16599
16600
16601   if test $ac_cv_func_lstat = yes; then
16602     HAVE_LSTAT=1
16603   else
16604     HAVE_LSTAT=0
16605   fi
16606
16607
16608       { echo "$as_me:$LINENO: checking whether mkdir is declared" >&5
16609 echo $ECHO_N "checking whether mkdir is declared... $ECHO_C" >&6; }
16610 if test "${ac_cv_have_decl_mkdir+set}" = set; then
16611   echo $ECHO_N "(cached) $ECHO_C" >&6
16612 else
16613   cat >conftest.$ac_ext <<_ACEOF
16614 /* confdefs.h.  */
16615 _ACEOF
16616 cat confdefs.h >>conftest.$ac_ext
16617 cat >>conftest.$ac_ext <<_ACEOF
16618 /* end confdefs.h.  */
16619 #include <sys/stat.h>
16620
16621 int
16622 main ()
16623 {
16624 #ifndef mkdir
16625   (void) mkdir;
16626 #endif
16627
16628   ;
16629   return 0;
16630 }
16631 _ACEOF
16632 rm -f conftest.$ac_objext
16633 if { (ac_try="$ac_compile"
16634 case "(($ac_try" in
16635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636   *) ac_try_echo=$ac_try;;
16637 esac
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639   (eval "$ac_compile") 2>conftest.er1
16640   ac_status=$?
16641   grep -v '^ *+' conftest.er1 >conftest.err
16642   rm -f conftest.er1
16643   cat conftest.err >&5
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); } && {
16646          test -z "$ac_c_werror_flag" ||
16647          test ! -s conftest.err
16648        } && test -s conftest.$ac_objext; then
16649   ac_cv_have_decl_mkdir=yes
16650 else
16651   echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16653
16654         ac_cv_have_decl_mkdir=no
16655 fi
16656
16657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16658 fi
16659 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_mkdir" >&5
16660 echo "${ECHO_T}$ac_cv_have_decl_mkdir" >&6; }
16661 if test $ac_cv_have_decl_mkdir = yes; then
16662
16663 cat >>confdefs.h <<_ACEOF
16664 #define HAVE_DECL_MKDIR 1
16665 _ACEOF
16666
16667
16668 else
16669   cat >>confdefs.h <<_ACEOF
16670 #define HAVE_DECL_MKDIR 0
16671 _ACEOF
16672
16673
16674 for ac_header in io.h
16675 do
16676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16678   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16681   echo $ECHO_N "(cached) $ECHO_C" >&6
16682 fi
16683 ac_res=`eval echo '${'$as_ac_Header'}'`
16684                { echo "$as_me:$LINENO: result: $ac_res" >&5
16685 echo "${ECHO_T}$ac_res" >&6; }
16686 else
16687   # Is the header compilable?
16688 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16690 cat >conftest.$ac_ext <<_ACEOF
16691 /* confdefs.h.  */
16692 _ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h.  */
16696 $ac_includes_default
16697 #include <$ac_header>
16698 _ACEOF
16699 rm -f conftest.$ac_objext
16700 if { (ac_try="$ac_compile"
16701 case "(($ac_try" in
16702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703   *) ac_try_echo=$ac_try;;
16704 esac
16705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16706   (eval "$ac_compile") 2>conftest.er1
16707   ac_status=$?
16708   grep -v '^ *+' conftest.er1 >conftest.err
16709   rm -f conftest.er1
16710   cat conftest.err >&5
16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); } && {
16713          test -z "$ac_c_werror_flag" ||
16714          test ! -s conftest.err
16715        } && test -s conftest.$ac_objext; then
16716   ac_header_compiler=yes
16717 else
16718   echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16720
16721         ac_header_compiler=no
16722 fi
16723
16724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16725 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16726 echo "${ECHO_T}$ac_header_compiler" >&6; }
16727
16728 # Is the header present?
16729 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16731 cat >conftest.$ac_ext <<_ACEOF
16732 /* confdefs.h.  */
16733 _ACEOF
16734 cat confdefs.h >>conftest.$ac_ext
16735 cat >>conftest.$ac_ext <<_ACEOF
16736 /* end confdefs.h.  */
16737 #include <$ac_header>
16738 _ACEOF
16739 if { (ac_try="$ac_cpp conftest.$ac_ext"
16740 case "(($ac_try" in
16741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742   *) ac_try_echo=$ac_try;;
16743 esac
16744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16746   ac_status=$?
16747   grep -v '^ *+' conftest.er1 >conftest.err
16748   rm -f conftest.er1
16749   cat conftest.err >&5
16750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751   (exit $ac_status); } >/dev/null && {
16752          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16753          test ! -s conftest.err
16754        }; then
16755   ac_header_preproc=yes
16756 else
16757   echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16759
16760   ac_header_preproc=no
16761 fi
16762
16763 rm -f conftest.err conftest.$ac_ext
16764 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16765 echo "${ECHO_T}$ac_header_preproc" >&6; }
16766
16767 # So?  What about this header?
16768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16769   yes:no: )
16770     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16772     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16774     ac_header_preproc=yes
16775     ;;
16776   no:yes:* )
16777     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16779     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16780 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16781     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16783     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16784 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16787     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16789
16790     ;;
16791 esac
16792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16795   echo $ECHO_N "(cached) $ECHO_C" >&6
16796 else
16797   eval "$as_ac_Header=\$ac_header_preproc"
16798 fi
16799 ac_res=`eval echo '${'$as_ac_Header'}'`
16800                { echo "$as_me:$LINENO: result: $ac_res" >&5
16801 echo "${ECHO_T}$ac_res" >&6; }
16802
16803 fi
16804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16805   cat >>confdefs.h <<_ACEOF
16806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16807 _ACEOF
16808
16809 fi
16810
16811 done
16812
16813 fi
16814
16815
16816   if test $ac_cv_have_decl_mkdir = yes; then
16817     HAVE_DECL_MKDIR=1
16818   else
16819     HAVE_DECL_MKDIR=0
16820   fi
16821
16822   if test "$ac_cv_header_io_h" = yes; then
16823     HAVE_IO_H=1
16824   else
16825     HAVE_IO_H=0
16826   fi
16827
16828
16829
16830
16831
16832
16833
16834
16835   :
16836
16837
16838
16839
16840
16841
16842
16843      if test $gl_cv_have_include_next = yes; then
16844        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16845      else
16846        { echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
16847 echo $ECHO_N "checking absolute name of <sys/stat.h>... $ECHO_C" >&6; }
16848 if test "${gl_cv_next_sys_stat_h+set}" = set; then
16849   echo $ECHO_N "(cached) $ECHO_C" >&6
16850 else
16851
16852           if test $ac_cv_header_sys_stat_h = yes; then
16853             cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h.  */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h.  */
16859 #include <sys/stat.h>
16860
16861 _ACEOF
16862                                     gl_cv_next_sys_stat_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16863                sed -n '\#/sys/stat.h#{
16864                  s#.*"\(.*/sys/stat.h\)".*#\1#
16865                  s#^/[^/]#//&#
16866                  p
16867                  q
16868                }'`'"'
16869           else
16870             gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16871           fi
16872
16873 fi
16874 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
16875 echo "${ECHO_T}$gl_cv_next_sys_stat_h" >&6; }
16876      fi
16877      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
16878
16879
16880
16881   SYS_STAT_H='sys/stat.h'
16882
16883
16884   { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
16885 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
16886 if test -z "$MKDIR_P"; then
16887   if test "${ac_cv_path_mkdir+set}" = set; then
16888   echo $ECHO_N "(cached) $ECHO_C" >&6
16889 else
16890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16891 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
16892 do
16893   IFS=$as_save_IFS
16894   test -z "$as_dir" && as_dir=.
16895   for ac_prog in mkdir gmkdir; do
16896          for ac_exec_ext in '' $ac_executable_extensions; do
16897            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
16898            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
16899              'mkdir (GNU coreutils) '* | \
16900              'mkdir (coreutils) '* | \
16901              'mkdir (fileutils) '4.1*)
16902                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
16903                break 3;;
16904            esac
16905          done
16906        done
16907 done
16908 IFS=$as_save_IFS
16909
16910 fi
16911
16912   if test "${ac_cv_path_mkdir+set}" = set; then
16913     MKDIR_P="$ac_cv_path_mkdir -p"
16914   else
16915     # As a last resort, use the slow shell script.  Don't cache a
16916     # value for MKDIR_P within a source directory, because that will
16917     # break other packages using the cache if that directory is
16918     # removed, or if the value is a relative name.
16919     test -d ./--version && rmdir ./--version
16920     MKDIR_P="$ac_install_sh -d"
16921   fi
16922 fi
16923 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
16924 echo "${ECHO_T}$MKDIR_P" >&6; }
16925
16926
16927
16928
16929   { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
16930 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
16931 if test -z "$MKDIR_P"; then
16932   if test "${ac_cv_path_mkdir+set}" = set; then
16933   echo $ECHO_N "(cached) $ECHO_C" >&6
16934 else
16935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16936 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
16937 do
16938   IFS=$as_save_IFS
16939   test -z "$as_dir" && as_dir=.
16940   for ac_prog in mkdir gmkdir; do
16941          for ac_exec_ext in '' $ac_executable_extensions; do
16942            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
16943            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
16944              'mkdir (GNU coreutils) '* | \
16945              'mkdir (coreutils) '* | \
16946              'mkdir (fileutils) '4.1*)
16947                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
16948                break 3;;
16949            esac
16950          done
16951        done
16952 done
16953 IFS=$as_save_IFS
16954
16955 fi
16956
16957   if test "${ac_cv_path_mkdir+set}" = set; then
16958     MKDIR_P="$ac_cv_path_mkdir -p"
16959   else
16960     # As a last resort, use the slow shell script.  Don't cache a
16961     # value for MKDIR_P within a source directory, because that will
16962     # break other packages using the cache if that directory is
16963     # removed, or if the value is a relative name.
16964     test -d ./--version && rmdir ./--version
16965     MKDIR_P="$ac_install_sh -d"
16966   fi
16967 fi
16968 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
16969 echo "${ECHO_T}$MKDIR_P" >&6; }
16970
16971
16972
16973
16974   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
16975
16976   :
16977
16978
16979
16980
16981
16982
16983
16984
16985   :
16986
16987
16988
16989
16990
16991
16992
16993      if test $gl_cv_have_include_next = yes; then
16994        gl_cv_next_unistd_h='<'unistd.h'>'
16995      else
16996        { echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
16997 echo $ECHO_N "checking absolute name of <unistd.h>... $ECHO_C" >&6; }
16998 if test "${gl_cv_next_unistd_h+set}" = set; then
16999   echo $ECHO_N "(cached) $ECHO_C" >&6
17000 else
17001
17002           if test $ac_cv_header_unistd_h = yes; then
17003             cat >conftest.$ac_ext <<_ACEOF
17004 /* confdefs.h.  */
17005 _ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h.  */
17009 #include <unistd.h>
17010
17011 _ACEOF
17012                                     gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17013                sed -n '\#/unistd.h#{
17014                  s#.*"\(.*/unistd.h\)".*#\1#
17015                  s#^/[^/]#//&#
17016                  p
17017                  q
17018                }'`'"'
17019           else
17020             gl_cv_next_unistd_h='<'unistd.h'>'
17021           fi
17022
17023 fi
17024 { echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
17025 echo "${ECHO_T}$gl_cv_next_unistd_h" >&6; }
17026      fi
17027      NEXT_UNISTD_H=$gl_cv_next_unistd_h
17028
17029
17030
17031
17032
17033   :
17034
17035
17036
17037
17038
17039   if test $ac_cv_header_unistd_h = yes; then
17040     HAVE_UNISTD_H=1
17041   else
17042     HAVE_UNISTD_H=0
17043   fi
17044
17045
17046
17047
17048
17049   :
17050
17051
17052
17053
17054
17055   if test $ac_cv_func_vasnprintf = no; then
17056
17057
17058   :
17059
17060
17061
17062
17063
17064   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
17065   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
17066   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
17067   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
17068   if test $ac_cv_func_vasnprintf = yes; then
17069
17070 cat >>confdefs.h <<\_ACEOF
17071 #define REPLACE_VASNPRINTF 1
17072 _ACEOF
17073
17074   fi
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
17086 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
17087 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
17088   echo $ECHO_N "(cached) $ECHO_C" >&6
17089 else
17090   cat >conftest.$ac_ext <<_ACEOF
17091 /* confdefs.h.  */
17092 _ACEOF
17093 cat confdefs.h >>conftest.$ac_ext
17094 cat >>conftest.$ac_ext <<_ACEOF
17095 /* end confdefs.h.  */
17096 $ac_includes_default
17097 typedef ptrdiff_t ac__type_new_;
17098 int
17099 main ()
17100 {
17101 if ((ac__type_new_ *) 0)
17102   return 0;
17103 if (sizeof (ac__type_new_))
17104   return 0;
17105   ;
17106   return 0;
17107 }
17108 _ACEOF
17109 rm -f conftest.$ac_objext
17110 if { (ac_try="$ac_compile"
17111 case "(($ac_try" in
17112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17113   *) ac_try_echo=$ac_try;;
17114 esac
17115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17116   (eval "$ac_compile") 2>conftest.er1
17117   ac_status=$?
17118   grep -v '^ *+' conftest.er1 >conftest.err
17119   rm -f conftest.er1
17120   cat conftest.err >&5
17121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122   (exit $ac_status); } && {
17123          test -z "$ac_c_werror_flag" ||
17124          test ! -s conftest.err
17125        } && test -s conftest.$ac_objext; then
17126   ac_cv_type_ptrdiff_t=yes
17127 else
17128   echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17130
17131         ac_cv_type_ptrdiff_t=no
17132 fi
17133
17134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17135 fi
17136 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
17137 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
17138 if test $ac_cv_type_ptrdiff_t = yes; then
17139
17140 cat >>confdefs.h <<_ACEOF
17141 #define HAVE_PTRDIFF_T 1
17142 _ACEOF
17143
17144
17145 fi
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156 for ac_func in snprintf wcslen
17157 do
17158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17159 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17162   echo $ECHO_N "(cached) $ECHO_C" >&6
17163 else
17164   cat >conftest.$ac_ext <<_ACEOF
17165 /* confdefs.h.  */
17166 _ACEOF
17167 cat confdefs.h >>conftest.$ac_ext
17168 cat >>conftest.$ac_ext <<_ACEOF
17169 /* end confdefs.h.  */
17170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17172 #define $ac_func innocuous_$ac_func
17173
17174 /* System header to define __stub macros and hopefully few prototypes,
17175     which can conflict with char $ac_func (); below.
17176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17177     <limits.h> exists even on freestanding compilers.  */
17178
17179 #ifdef __STDC__
17180 # include <limits.h>
17181 #else
17182 # include <assert.h>
17183 #endif
17184
17185 #undef $ac_func
17186
17187 /* Override any GCC internal prototype to avoid an error.
17188    Use char because int might match the return type of a GCC
17189    builtin and then its argument prototype would still apply.  */
17190 #ifdef __cplusplus
17191 extern "C"
17192 #endif
17193 char $ac_func ();
17194 /* The GNU C library defines this for functions which it implements
17195     to always fail with ENOSYS.  Some functions are actually named
17196     something starting with __ and the normal name is an alias.  */
17197 #if defined __stub_$ac_func || defined __stub___$ac_func
17198 choke me
17199 #endif
17200
17201 int
17202 main ()
17203 {
17204 return $ac_func ();
17205   ;
17206   return 0;
17207 }
17208 _ACEOF
17209 rm -f conftest.$ac_objext conftest$ac_exeext
17210 if { (ac_try="$ac_link"
17211 case "(($ac_try" in
17212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213   *) ac_try_echo=$ac_try;;
17214 esac
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216   (eval "$ac_link") 2>conftest.er1
17217   ac_status=$?
17218   grep -v '^ *+' conftest.er1 >conftest.err
17219   rm -f conftest.er1
17220   cat conftest.err >&5
17221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222   (exit $ac_status); } && {
17223          test -z "$ac_c_werror_flag" ||
17224          test ! -s conftest.err
17225        } && test -s conftest$ac_exeext &&
17226        $as_test_x conftest$ac_exeext; then
17227   eval "$as_ac_var=yes"
17228 else
17229   echo "$as_me: failed program was:" >&5
17230 sed 's/^/| /' conftest.$ac_ext >&5
17231
17232         eval "$as_ac_var=no"
17233 fi
17234
17235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17236       conftest$ac_exeext conftest.$ac_ext
17237 fi
17238 ac_res=`eval echo '${'$as_ac_var'}'`
17239                { echo "$as_me:$LINENO: result: $ac_res" >&5
17240 echo "${ECHO_T}$ac_res" >&6; }
17241 if test `eval echo '${'$as_ac_var'}'` = yes; then
17242   cat >>confdefs.h <<_ACEOF
17243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17244 _ACEOF
17245
17246 fi
17247 done
17248
17249       { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
17250 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
17251 if test "${ac_cv_have_decl__snprintf+set}" = set; then
17252   echo $ECHO_N "(cached) $ECHO_C" >&6
17253 else
17254   cat >conftest.$ac_ext <<_ACEOF
17255 /* confdefs.h.  */
17256 _ACEOF
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h.  */
17260 #include <stdio.h>
17261
17262 int
17263 main ()
17264 {
17265 #ifndef _snprintf
17266   (void) _snprintf;
17267 #endif
17268
17269   ;
17270   return 0;
17271 }
17272 _ACEOF
17273 rm -f conftest.$ac_objext
17274 if { (ac_try="$ac_compile"
17275 case "(($ac_try" in
17276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277   *) ac_try_echo=$ac_try;;
17278 esac
17279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280   (eval "$ac_compile") 2>conftest.er1
17281   ac_status=$?
17282   grep -v '^ *+' conftest.er1 >conftest.err
17283   rm -f conftest.er1
17284   cat conftest.err >&5
17285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286   (exit $ac_status); } && {
17287          test -z "$ac_c_werror_flag" ||
17288          test ! -s conftest.err
17289        } && test -s conftest.$ac_objext; then
17290   ac_cv_have_decl__snprintf=yes
17291 else
17292   echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17294
17295         ac_cv_have_decl__snprintf=no
17296 fi
17297
17298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17299 fi
17300 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
17301 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
17302 if test $ac_cv_have_decl__snprintf = yes; then
17303
17304 cat >>confdefs.h <<_ACEOF
17305 #define HAVE_DECL__SNPRINTF 1
17306 _ACEOF
17307
17308
17309 else
17310   cat >>confdefs.h <<_ACEOF
17311 #define HAVE_DECL__SNPRINTF 0
17312 _ACEOF
17313
17314
17315 fi
17316
17317
17318
17319
17320
17321
17322   fi
17323
17324
17325
17326   CFLAG_VISIBILITY=
17327   HAVE_VISIBILITY=0
17328   if test -n "$GCC"; then
17329     { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
17330 echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
17331     if test "${gl_cv_cc_visibility+set}" = set; then
17332   echo $ECHO_N "(cached) $ECHO_C" >&6
17333 else
17334
17335       gl_save_CFLAGS="$CFLAGS"
17336       CFLAGS="$CFLAGS -fvisibility=hidden"
17337       cat >conftest.$ac_ext <<_ACEOF
17338 /* confdefs.h.  */
17339 _ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h.  */
17343 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
17344          extern __attribute__((__visibility__("default"))) int exportedvar;
17345          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
17346          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
17347 int
17348 main ()
17349 {
17350
17351   ;
17352   return 0;
17353 }
17354 _ACEOF
17355 rm -f conftest.$ac_objext
17356 if { (ac_try="$ac_compile"
17357 case "(($ac_try" in
17358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359   *) ac_try_echo=$ac_try;;
17360 esac
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362   (eval "$ac_compile") 2>conftest.er1
17363   ac_status=$?
17364   grep -v '^ *+' conftest.er1 >conftest.err
17365   rm -f conftest.er1
17366   cat conftest.err >&5
17367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368   (exit $ac_status); } && {
17369          test -z "$ac_c_werror_flag" ||
17370          test ! -s conftest.err
17371        } && test -s conftest.$ac_objext; then
17372   gl_cv_cc_visibility=yes
17373 else
17374   echo "$as_me: failed program was:" >&5
17375 sed 's/^/| /' conftest.$ac_ext >&5
17376
17377         gl_cv_cc_visibility=no
17378 fi
17379
17380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17381       CFLAGS="$gl_save_CFLAGS"
17382 fi
17383
17384     { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
17385 echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
17386     if test $gl_cv_cc_visibility = yes; then
17387       CFLAG_VISIBILITY="-fvisibility=hidden"
17388       HAVE_VISIBILITY=1
17389     fi
17390   fi
17391
17392
17393
17394 cat >>confdefs.h <<_ACEOF
17395 #define HAVE_VISIBILITY $HAVE_VISIBILITY
17396 _ACEOF
17397
17398
17399
17400
17401   { echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
17402 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6; }
17403 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
17404   echo $ECHO_N "(cached) $ECHO_C" >&6
17405 else
17406   cat >conftest.$ac_ext <<_ACEOF
17407 #include <wchar.h>
17408 wchar_t w;
17409 _ACEOF
17410 rm -f conftest.$ac_objext
17411 if { (ac_try="$ac_compile"
17412 case "(($ac_try" in
17413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414   *) ac_try_echo=$ac_try;;
17415 esac
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417   (eval "$ac_compile") 2>conftest.er1
17418   ac_status=$?
17419   grep -v '^ *+' conftest.er1 >conftest.err
17420   rm -f conftest.er1
17421   cat conftest.err >&5
17422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423   (exit $ac_status); } && {
17424          test -z "$ac_c_werror_flag" ||
17425          test ! -s conftest.err
17426        } && test -s conftest.$ac_objext; then
17427   gl_cv_header_wchar_h_standalone=yes
17428 else
17429   echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17431
17432         gl_cv_header_wchar_h_standalone=no
17433 fi
17434
17435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17436 fi
17437 { echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
17438 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6; }
17439   if test $gl_cv_header_wchar_h_standalone != yes; then
17440     WCHAR_H=wchar.h
17441   fi
17442
17443
17444   :
17445
17446
17447
17448
17449
17450   if test $ac_cv_header_wchar_h = yes; then
17451     HAVE_WCHAR_H=1
17452   else
17453     HAVE_WCHAR_H=0
17454   fi
17455
17456
17457
17458
17459   :
17460
17461
17462
17463
17464
17465
17466
17467      if test $gl_cv_have_include_next = yes; then
17468        gl_cv_next_wchar_h='<'wchar.h'>'
17469      else
17470        { echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
17471 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6; }
17472 if test "${gl_cv_next_wchar_h+set}" = set; then
17473   echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475
17476           if test $ac_cv_header_wchar_h = yes; then
17477             cat >conftest.$ac_ext <<_ACEOF
17478 /* confdefs.h.  */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h.  */
17483 #include <wchar.h>
17484
17485 _ACEOF
17486                                     gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17487                sed -n '\#/wchar.h#{
17488                  s#.*"\(.*/wchar.h\)".*#\1#
17489                  s#^/[^/]#//&#
17490                  p
17491                  q
17492                }'`'"'
17493           else
17494             gl_cv_next_wchar_h='<'wchar.h'>'
17495           fi
17496
17497 fi
17498 { echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
17499 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6; }
17500      fi
17501      NEXT_WCHAR_H=$gl_cv_next_wchar_h
17502
17503
17504
17505
17506
17507
17508
17509
17510 for ac_header in stdint.h
17511 do
17512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17514   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17517   echo $ECHO_N "(cached) $ECHO_C" >&6
17518 fi
17519 ac_res=`eval echo '${'$as_ac_Header'}'`
17520                { echo "$as_me:$LINENO: result: $ac_res" >&5
17521 echo "${ECHO_T}$ac_res" >&6; }
17522 else
17523   # Is the header compilable?
17524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17526 cat >conftest.$ac_ext <<_ACEOF
17527 /* confdefs.h.  */
17528 _ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h.  */
17532 $ac_includes_default
17533 #include <$ac_header>
17534 _ACEOF
17535 rm -f conftest.$ac_objext
17536 if { (ac_try="$ac_compile"
17537 case "(($ac_try" in
17538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539   *) ac_try_echo=$ac_try;;
17540 esac
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542   (eval "$ac_compile") 2>conftest.er1
17543   ac_status=$?
17544   grep -v '^ *+' conftest.er1 >conftest.err
17545   rm -f conftest.er1
17546   cat conftest.err >&5
17547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548   (exit $ac_status); } && {
17549          test -z "$ac_c_werror_flag" ||
17550          test ! -s conftest.err
17551        } && test -s conftest.$ac_objext; then
17552   ac_header_compiler=yes
17553 else
17554   echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17556
17557         ac_header_compiler=no
17558 fi
17559
17560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17562 echo "${ECHO_T}$ac_header_compiler" >&6; }
17563
17564 # Is the header present?
17565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17567 cat >conftest.$ac_ext <<_ACEOF
17568 /* confdefs.h.  */
17569 _ACEOF
17570 cat confdefs.h >>conftest.$ac_ext
17571 cat >>conftest.$ac_ext <<_ACEOF
17572 /* end confdefs.h.  */
17573 #include <$ac_header>
17574 _ACEOF
17575 if { (ac_try="$ac_cpp conftest.$ac_ext"
17576 case "(($ac_try" in
17577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578   *) ac_try_echo=$ac_try;;
17579 esac
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17582   ac_status=$?
17583   grep -v '^ *+' conftest.er1 >conftest.err
17584   rm -f conftest.er1
17585   cat conftest.err >&5
17586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587   (exit $ac_status); } >/dev/null && {
17588          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17589          test ! -s conftest.err
17590        }; then
17591   ac_header_preproc=yes
17592 else
17593   echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.$ac_ext >&5
17595
17596   ac_header_preproc=no
17597 fi
17598
17599 rm -f conftest.err conftest.$ac_ext
17600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17601 echo "${ECHO_T}$ac_header_preproc" >&6; }
17602
17603 # So?  What about this header?
17604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17605   yes:no: )
17606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17610     ac_header_preproc=yes
17611     ;;
17612   no:yes:* )
17613     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17615     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17616 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17617     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17619     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17620 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17623     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17625
17626     ;;
17627 esac
17628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17631   echo $ECHO_N "(cached) $ECHO_C" >&6
17632 else
17633   eval "$as_ac_Header=\$ac_header_preproc"
17634 fi
17635 ac_res=`eval echo '${'$as_ac_Header'}'`
17636                { echo "$as_me:$LINENO: result: $ac_res" >&5
17637 echo "${ECHO_T}$ac_res" >&6; }
17638
17639 fi
17640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17641   cat >>confdefs.h <<_ACEOF
17642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17643 _ACEOF
17644
17645 fi
17646
17647 done
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658     # support deprecated ./configure flags to set various compiler flags
17659
17660
17661 # Check whether --with-cflags was given.
17662 if test "${with_cflags+set}" = set; then
17663   withval=$with_cflags;
17664             case "$withval" in
17665             "" | y | ye | yes | n | no)
17666                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-cflags option." >&5
17667 echo "$as_me: error: *** You must supply an argument to the --with-cflags option." >&2;}
17668    { (exit 1); exit 1; }; }
17669                 ;;
17670             esac
17671
17672             CFLAGS="$withval"
17673
17674 fi
17675
17676
17677
17678 # Check whether --with-includes was given.
17679 if test "${with_includes+set}" = set; then
17680   withval=$with_includes;
17681             case "$withval" in
17682             "" | y | ye | yes | n | no)
17683                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
17684 echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
17685    { (exit 1); exit 1; }; }
17686               ;;
17687             esac
17688
17689             for dir in $withval; do
17690                 if test -d "$dir"; then
17691                     CPPFLAGS="$CPPFLAGS -I$dir"
17692                 else
17693
17694     { echo "$as_me:$LINENO: WARNING: Include directory $dir does not exist." >&5
17695 echo "$as_me: WARNING: Include directory $dir does not exist." >&2;}
17696
17697
17698     cat <<AAW_EOF >>config.warnings
17699 Include directory $dir does not exist.
17700 AAW_EOF
17701
17702
17703                 fi
17704             done
17705
17706 fi
17707
17708
17709
17710 # Check whether --with-libraries was given.
17711 if test "${with_libraries+set}" = set; then
17712   withval=$with_libraries;
17713             case "$withval" in
17714             "" | y | ye | yes | n | no)
17715                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
17716 echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
17717    { (exit 1); exit 1; }; }
17718               ;;
17719             esac
17720
17721             for dir in $withval; do
17722                 if test -d "$dir"; then
17723                     case "$target" in
17724                       *-solaris2*,*-netbsd*)
17725                             LDFLAGS="$LDFLAGS -R$dir"
17726                             ;;
17727                     esac
17728                     LDFLAGS="$LDFLAGS -L$dir"
17729                 else
17730
17731     { echo "$as_me:$LINENO: WARNING: Library directory $dir does not exist." >&5
17732 echo "$as_me: WARNING: Library directory $dir does not exist." >&2;}
17733
17734
17735     cat <<AAW_EOF >>config.warnings
17736 Library directory $dir does not exist.
17737 AAW_EOF
17738
17739
17740                 fi
17741             done
17742
17743 fi
17744
17745
17746     # Warn for just about everything
17747
17748
17749
17750     { echo "$as_me:$LINENO: checking for gcc flag -Wall" >&5
17751 echo $ECHO_N "checking for gcc flag -Wall... $ECHO_C" >&6; }
17752     if test "x$GCC" = "xyes"; then
17753                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wall[^[:alnum:]-]' 2>&1 > /dev/null
17754                 if test $? -eq 0; then
17755             found_warning=yes
17756             { echo "$as_me:$LINENO: result: yes" >&5
17757 echo "${ECHO_T}yes" >&6; }
17758         else
17759             found_warning=no
17760             { echo "$as_me:$LINENO: result: no" >&5
17761 echo "${ECHO_T}no" >&6; }
17762         fi
17763     else
17764         found_warning=no
17765         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
17766 echo "${ECHO_T}no (not using gcc)" >&6; }
17767     fi
17768
17769     if test x"$found_warning" = x"yes"; then
17770         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wall"
17771
17772
17773     else
17774         :
17775     fi
17776
17777
17778     # And add any extra warnings too
17779
17780
17781
17782     { echo "$as_me:$LINENO: checking for gcc flag -Wextra" >&5
17783 echo $ECHO_N "checking for gcc flag -Wextra... $ECHO_C" >&6; }
17784     if test "x$GCC" = "xyes"; then
17785                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wextra[^[:alnum:]-]' 2>&1 > /dev/null
17786                 if test $? -eq 0; then
17787             found_warning=yes
17788             { echo "$as_me:$LINENO: result: yes" >&5
17789 echo "${ECHO_T}yes" >&6; }
17790         else
17791             found_warning=no
17792             { echo "$as_me:$LINENO: result: no" >&5
17793 echo "${ECHO_T}no" >&6; }
17794         fi
17795     else
17796         found_warning=no
17797         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
17798 echo "${ECHO_T}no (not using gcc)" >&6; }
17799     fi
17800
17801     if test x"$found_warning" = x"yes"; then
17802         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wextra"
17803
17804
17805     else
17806
17807
17808
17809     { echo "$as_me:$LINENO: checking for gcc flag -W" >&5
17810 echo $ECHO_N "checking for gcc flag -W... $ECHO_C" >&6; }
17811     if test "x$GCC" = "xyes"; then
17812                 $CC -v --help 2>&1 | $EGREP -- '^[:alnum:]-W^[:alnum:]-' 2>&1 > /dev/null
17813                 if test $? -eq 0; then
17814             found_warning=yes
17815             { echo "$as_me:$LINENO: result: yes" >&5
17816 echo "${ECHO_T}yes" >&6; }
17817         else
17818             found_warning=no
17819             { echo "$as_me:$LINENO: result: no" >&5
17820 echo "${ECHO_T}no" >&6; }
17821         fi
17822     else
17823         found_warning=no
17824         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
17825 echo "${ECHO_T}no (not using gcc)" >&6; }
17826     fi
17827
17828     if test x"$found_warning" = x"yes"; then
17829         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -W"
17830
17831
17832     else
17833         :
17834     fi
17835
17836
17837     fi
17838
17839
17840
17841 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17842
17843
17844
17845 #
17846 # Configuration flags (--with-xxx and --enable-xxx)
17847 #
17848
17849
17850
17851 # Check whether --with-user was given.
17852 if test "${with_user+set}" = set; then
17853   withval=$with_user;
17854             case "$withval" in
17855                 "" | y | ye | yes | n | no)
17856                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
17857 echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
17858    { (exit 1); exit 1; }; }
17859                   ;;
17860                 *)
17861                     CLIENT_LOGIN="$withval"
17862                   ;;
17863             esac
17864
17865 else
17866
17867
17868     { echo "$as_me:$LINENO: WARNING: no user specified (--with-user) -- using 'amanda'" >&5
17869 echo "$as_me: WARNING: no user specified (--with-user) -- using 'amanda'" >&2;}
17870
17871
17872     cat <<AAW_EOF >>config.warnings
17873 no user specified (--with-user) -- using 'amanda'
17874 AAW_EOF
17875
17876
17877             CLIENT_LOGIN=amanda
17878
17879
17880 fi
17881
17882
17883
17884 cat >>confdefs.h <<_ACEOF
17885 #define CLIENT_LOGIN "$CLIENT_LOGIN"
17886 _ACEOF
17887
17888
17889
17890
17891
17892 # Check whether --with-group was given.
17893 if test "${with_group+set}" = set; then
17894   withval=$with_group;
17895             case "$withval" in
17896                 "" | y | ye | yes | n | no)
17897                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
17898 echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
17899    { (exit 1); exit 1; }; }
17900                   ;;
17901                 *) SETUID_GROUP="$withval"
17902                   ;;
17903             esac
17904
17905 else
17906
17907
17908     { echo "$as_me:$LINENO: WARNING: no group specified (--with-group) -- using 'backup'" >&5
17909 echo "$as_me: WARNING: no group specified (--with-group) -- using 'backup'" >&2;}
17910
17911
17912     cat <<AAW_EOF >>config.warnings
17913 no group specified (--with-group) -- using 'backup'
17914 AAW_EOF
17915
17916
17917             CLIENT_LOGIN=backup
17918
17919
17920 fi
17921
17922
17923
17924
17925
17926 # Check whether --with-dumperdir was given.
17927 if test "${with_dumperdir+set}" = set; then
17928   withval=$with_dumperdir;
17929
17930     { echo "$as_me:$LINENO: WARNING: --with-dumperdir is no longer used." >&5
17931 echo "$as_me: WARNING: --with-dumperdir is no longer used." >&2;}
17932
17933
17934     cat <<AAW_EOF >>config.warnings
17935 --with-dumperdir is no longer used.
17936 AAW_EOF
17937
17938
17939
17940
17941 fi
17942
17943
17944
17945
17946 # Check whether --with-configdir was given.
17947 if test "${with_configdir+set}" = set; then
17948   withval=$with_configdir;
17949             case "$withval" in
17950             "" | y | ye | yes | n | no)
17951                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
17952 echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
17953    { (exit 1); exit 1; }; }
17954               ;;
17955             *) CONFIG_DIR="$withval"
17956               ;;
17957             esac
17958
17959 else
17960
17961             : ${CONFIG_DIR='${sysconfdir}/amanda'} # (variable will be evaluated below)
17962
17963
17964 fi
17965
17966
17967   prefix_NONE=
17968   exec_prefix_NONE=
17969   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
17970   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
17971   eval ac_define_dir="\"$CONFIG_DIR\""
17972   eval ac_define_dir="\"$ac_define_dir\""
17973   CONFIG_DIR="$ac_define_dir"
17974
17975
17976 cat >>confdefs.h <<_ACEOF
17977 #define CONFIG_DIR "$ac_define_dir"
17978 _ACEOF
17979
17980   test "$prefix_NONE" && prefix=NONE
17981   test "$exec_prefix_NONE" && exec_prefix=NONE
17982
17983
17984
17985
17986 # Check whether --with-indexdir was given.
17987 if test "${with_indexdir+set}" = set; then
17988   withval=$with_indexdir;    { { echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&5
17989 echo "$as_me: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&2;}
17990    { (exit 1); exit 1; }; }
17991
17992 fi
17993
17994
17995
17996
17997 # Check whether --with-dbdir was given.
17998 if test "${with_dbdir+set}" = set; then
17999   withval=$with_dbdir;    { { echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&5
18000 echo "$as_me: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&2;}
18001    { (exit 1); exit 1; }; }
18002
18003 fi
18004
18005
18006
18007
18008 # Check whether --with-logdir was given.
18009 if test "${with_logdir+set}" = set; then
18010   withval=$with_logdir;    { { echo "$as_me:$LINENO: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&5
18011 echo "$as_me: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&2;}
18012    { (exit 1); exit 1; }; }
18013
18014 fi
18015
18016
18017
18018
18019 # Check whether --with-suffixes was given.
18020 if test "${with_suffixes+set}" = set; then
18021   withval=$with_suffixes; USE_VERSION_SUFFIXES=$withval
18022 else
18023   : ${USE_VERSION_SUFFIXES=no}
18024
18025 fi
18026
18027
18028     case "$USE_VERSION_SUFFIXES" in
18029     y | ye | yes) USE_VERSION_SUFFIXES=yes
18030
18031 cat >>confdefs.h <<\_ACEOF
18032 #define USE_VERSION_SUFFIXES 1
18033 _ACEOF
18034
18035
18036         program_suffix="-$VERSION_SUFFIX"
18037         # This is from the output of configure.in.
18038         if test "x$program_transform_name" = xs,x,x,; then
18039             program_transform_name=
18040         else
18041             # Double any \ or $.  echo might interpret backslashes.
18042             cat <<\EOF_SED > conftestsed
18043 s,\\,\\\\,g; s,\$,$$,g
18044 EOF_SED
18045             program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
18046             rm -f conftestsed
18047         fi
18048         test "x$program_prefix" != xNONE &&
18049             program_transform_name="s,^,${program_prefix},; $program_transform_name"
18050         # Use a double $ so make ignores it.
18051         test "x$program_suffix" != xNONE &&
18052             program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
18053
18054         # sed with no file args requires a program.
18055         test "x$program_transform_name" = "" && program_transform_name="xs,x,x,"
18056         # Remove empty command
18057         cat <<\EOF_SED > conftestsed
18058 s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
18059 EOF_SED
18060         program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
18061         rm -f conftestsed
18062       ;;
18063     n | no) USE_VERSION_SUFFIXES=no
18064       ;;
18065     *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-suffixes option." >&5
18066 echo "$as_me: error: *** You must not supply an argument to --with-suffixes option." >&2;}
18067    { (exit 1); exit 1; }; }
18068       ;;
18069     esac
18070
18071
18072
18073
18074
18075 # Check whether --with-gnutar-listdir was given.
18076 if test "${with_gnutar_listdir+set}" = set; then
18077   withval=$with_gnutar_listdir;
18078             case "$withval" in
18079                 n | no) GNUTAR_LISTDIR= ;;
18080                 y | ye | yes) GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists' ;;
18081                 *) GNUTAR_LISTDIR="$withval" ;;
18082             esac
18083
18084 else
18085
18086             GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists'
18087
18088
18089 fi
18090
18091
18092     # substitute $prefix, etc. if necessary
18093
18094   prefix_NONE=
18095   exec_prefix_NONE=
18096   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
18097   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
18098   eval ac_define_dir="\"$GNUTAR_LISTDIR\""
18099   eval ac_define_dir="\"$ac_define_dir\""
18100   GNUTAR_LISTED_INCREMENTAL_DIR="$ac_define_dir"
18101
18102
18103 cat >>confdefs.h <<_ACEOF
18104 #define GNUTAR_LISTED_INCREMENTAL_DIR "$ac_define_dir"
18105 _ACEOF
18106
18107   test "$prefix_NONE" && prefix=NONE
18108   test "$exec_prefix_NONE" && exec_prefix=NONE
18109
18110
18111     # handle deprecated option
18112
18113 # Check whether --with-gnutar-listed-incremental was given.
18114 if test "${with_gnutar_listed_incremental+set}" = set; then
18115   withval=$with_gnutar_listed_incremental;
18116             { { echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&5
18117 echo "$as_me: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&2;}
18118    { (exit 1); exit 1; }; }
18119
18120
18121 fi
18122
18123
18124
18125
18126 # Check whether --with-tmpdir was given.
18127 if test "${with_tmpdir+set}" = set; then
18128   withval=$with_tmpdir;
18129             tmpdir="$withval"
18130
18131 else
18132
18133             tmpdir=yes
18134
18135
18136 fi
18137
18138
18139     case "$tmpdir" in
18140         n | no) { { echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
18141 echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
18142    { (exit 1); exit 1; }; };;
18143         y |  ye | yes) AMANDA_TMPDIR="/tmp/amanda";;
18144         *) AMANDA_TMPDIR="$tmpdir";;
18145     esac
18146
18147
18148   prefix_NONE=
18149   exec_prefix_NONE=
18150   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
18151   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
18152   eval ac_define_dir="\"$AMANDA_TMPDIR\""
18153   eval ac_define_dir="\"$ac_define_dir\""
18154   AMANDA_TMPDIR="$ac_define_dir"
18155
18156
18157 cat >>confdefs.h <<_ACEOF
18158 #define AMANDA_TMPDIR "$ac_define_dir"
18159 _ACEOF
18160
18161   test "$prefix_NONE" && prefix=NONE
18162   test "$exec_prefix_NONE" && exec_prefix=NONE
18163
18164
18165
18166
18167 # Check whether --with-force-uid was given.
18168 if test "${with_force_uid+set}" = set; then
18169   withval=$with_force_uid; CHECK_USERID="$withval"
18170 else
18171   : ${CHECK_USERID=yes}
18172
18173 fi
18174
18175     case "$CHECK_USERID" in
18176         y | ye | yes)
18177
18178 cat >>confdefs.h <<\_ACEOF
18179 #define CHECK_USERID 1
18180 _ACEOF
18181
18182           ;;
18183         n | no) :
18184           ;;
18185         *)
18186             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
18187 echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
18188    { (exit 1); exit 1; }; }
18189     esac
18190
18191
18192
18193
18194 # Check whether --with-owner was given.
18195 if test "${with_owner+set}" = set; then
18196   withval=$with_owner;
18197             case "$withval" in
18198             "" | y | ye | yes | n | no)
18199                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
18200 echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
18201    { (exit 1); exit 1; }; }
18202               ;;
18203             *) BINARY_OWNER="$withval"
18204               ;;
18205             esac
18206
18207 else
18208
18209             BINARY_OWNER="$CLIENT_LOGIN"
18210
18211
18212 fi
18213
18214
18215 cat >>confdefs.h <<_ACEOF
18216 #define BINARY_OWNER "$BINARY_OWNER"
18217 _ACEOF
18218
18219
18220
18221
18222
18223 # Check whether --with-fqdn was given.
18224 if test "${with_fqdn+set}" = set; then
18225   withval=$with_fqdn;  USE_FQDN=$withval
18226 else
18227    USE_FQDN=no
18228 fi
18229
18230
18231     case "$USE_FQDN" in
18232     n | no) : ;;
18233     y |  ye | yes)
18234
18235 cat >>confdefs.h <<\_ACEOF
18236 #define USE_FQDN 1
18237 _ACEOF
18238
18239       ;;
18240     *) { { echo "$as_me:$LINENO: error: You must not supply an argument to --with-fqdn option." >&5
18241 echo "$as_me: error: You must not supply an argument to --with-fqdn option." >&2;}
18242    { (exit 1); exit 1; }; }
18243       ;;
18244     esac
18245
18246
18247
18248 # Check whether --with-reuseports was given.
18249 if test "${with_reuseports+set}" = set; then
18250   withval=$with_reuseports;  case "$withval" in
18251             y | ye | yes) USE_REUSEADDR=no;;
18252             n | no) USE_REUSEADDR=yes;;
18253             *) { { echo "$as_me:$LINENO: error: You must not supply an argument to --without-reuseports" >&5
18254 echo "$as_me: error: You must not supply an argument to --without-reuseports" >&2;}
18255    { (exit 1); exit 1; }; };;
18256           esac
18257
18258 else
18259    USE_REUSEADDR=yes;
18260 fi
18261
18262     if test x"$USE_REUSEADDR" = x"yes"; then
18263
18264 cat >>confdefs.h <<\_ACEOF
18265 #define USE_REUSEADDR 1
18266 _ACEOF
18267
18268     fi
18269
18270
18271
18272 # Check whether --with-low-tcpportrange was given.
18273 if test "${with_low_tcpportrange+set}" = set; then
18274   withval=$with_low_tcpportrange;  LOW_TCPPORTRANGE="$withval"
18275 else
18276    LOW_TCPPORTRANGE=unlimited
18277 fi
18278
18279
18280     if test x"$LOW_TCPPORTRANGE" != x"unlimited"; then
18281         if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
18282             { { echo "$as_me:$LINENO: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&5
18283 echo "$as_me: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&2;}
18284    { (exit 1); exit 1; }; }
18285         fi
18286         min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
18287         max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
18288         if test $min_low_tcp_port -gt $max_low_tcp_port; then
18289             { { echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&5
18290 echo "$as_me: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&2;}
18291    { (exit 1); exit 1; }; }
18292         fi
18293         if test $min_low_tcp_port -lt 512; then
18294
18295     { echo "$as_me:$LINENO: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
18296 echo "$as_me: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
18297
18298
18299     cat <<AAW_EOF >>config.warnings
18300 the low TCP port range should be 512 or greater in --with-low-tcpportrange
18301 AAW_EOF
18302
18303
18304         fi
18305         if test $max_low_tcp_port -ge 1024; then
18306
18307     { echo "$as_me:$LINENO: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
18308 echo "$as_me: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
18309
18310
18311     cat <<AAW_EOF >>config.warnings
18312 the low TCP port range should be less than 1024 in --with-low-tcpportrange
18313 AAW_EOF
18314
18315
18316         fi
18317
18318 cat >>confdefs.h <<_ACEOF
18319 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
18320 _ACEOF
18321
18322     fi
18323
18324
18325 # Check whether --with-tcpportrange was given.
18326 if test "${with_tcpportrange+set}" = set; then
18327   withval=$with_tcpportrange;  TCPPORTRANGE="$withval"
18328 else
18329    TCPPORTRANGE="unlimited"
18330 fi
18331
18332
18333     if test x"$TCPPORTRANGE" != x"unlimited"; then
18334         if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
18335             { { echo "$as_me:$LINENO: error: --with-tcpportrange requires two comma-separated positive numbers" >&5
18336 echo "$as_me: error: --with-tcpportrange requires two comma-separated positive numbers" >&2;}
18337    { (exit 1); exit 1; }; }
18338         fi
18339         min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
18340         max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
18341         if test $min_tcp_port -gt $max_tcp_port; then
18342             { { echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&5
18343 echo "$as_me: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
18344    { (exit 1); exit 1; }; }
18345         fi
18346         if test $min_tcp_port -lt 1024; then
18347
18348     { echo "$as_me:$LINENO: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
18349 echo "$as_me: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
18350
18351
18352     cat <<AAW_EOF >>config.warnings
18353 the TCP port range should be 1024 or greater in --with-tcpportrange
18354 AAW_EOF
18355
18356
18357         fi
18358         if test $max_tcp_port -ge 65536; then
18359
18360     { echo "$as_me:$LINENO: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&5
18361 echo "$as_me: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
18362
18363
18364     cat <<AAW_EOF >>config.warnings
18365 the TCP port range should be less than 65536 in --with-tcpportrange
18366 AAW_EOF
18367
18368
18369         fi
18370
18371 cat >>confdefs.h <<_ACEOF
18372 #define TCPPORTRANGE $TCPPORTRANGE
18373 _ACEOF
18374
18375     fi
18376
18377
18378 # Check whether --with-udpportrange was given.
18379 if test "${with_udpportrange+set}" = set; then
18380   withval=$with_udpportrange;  UDPPORTRANGE="$withval"
18381 else
18382    UDPPORTRANGE="unlimited"
18383 fi
18384
18385     if test x"$UDPPORTRANGE" != x"unlimited"; then
18386         if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
18387             { { echo "$as_me:$LINENO: error: --with-udpportrange requires two comma-separated positive numbers" >&5
18388 echo "$as_me: error: --with-udpportrange requires two comma-separated positive numbers" >&2;}
18389    { (exit 1); exit 1; }; }
18390         fi
18391         min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
18392         max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
18393         if test $min_udp_port -gt $max_udp_port; then
18394             { { echo "$as_me:$LINENO: error: the second UDP port number must be greater than the first in --with-udpportrange" >&5
18395 echo "$as_me: error: the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
18396    { (exit 1); exit 1; }; }
18397         fi
18398         if test $max_udp_port -ge 1024; then
18399
18400     { echo "$as_me:$LINENO: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&5
18401 echo "$as_me: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&2;}
18402
18403
18404     cat <<AAW_EOF >>config.warnings
18405 the UDP port range should be less than 1025 in --with-udpportrange
18406 AAW_EOF
18407
18408
18409         fi
18410         if test $min_udp_port -le 0; then
18411
18412     { echo "$as_me:$LINENO: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&5
18413 echo "$as_me: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
18414
18415
18416     cat <<AAW_EOF >>config.warnings
18417 the UDP port range should be greater than 0 in --with-udpportrange
18418 AAW_EOF
18419
18420
18421         fi
18422
18423 cat >>confdefs.h <<_ACEOF
18424 #define UDPPORTRANGE $UDPPORTRANGE
18425 _ACEOF
18426
18427     fi
18428
18429
18430
18431 # Check whether --with-buffered-dump was given.
18432 if test "${with_buffered_dump+set}" = set; then
18433   withval=$with_buffered_dump;  DUMPER_SOCKET_BUFFERING=$withval
18434 else
18435    DUMPER_SOCKET_BUFFERING=no
18436 fi
18437
18438     case "$DUMPER_SOCKET_BUFFERING" in
18439     n | no) ;;
18440     y | ye | yes)
18441
18442 cat >>confdefs.h <<\_ACEOF
18443 #define DUMPER_SOCKET_BUFFERING 1
18444 _ACEOF
18445
18446       ;;
18447     *) { { echo "$as_me:$LINENO: error: You must not supply an argument to --with-buffered-dump." >&5
18448 echo "$as_me: error: You must not supply an argument to --with-buffered-dump." >&2;}
18449    { (exit 1); exit 1; }; } ;;
18450     esac
18451
18452
18453
18454 # Check whether --with-maxtapeblocksize was given.
18455 if test "${with_maxtapeblocksize+set}" = set; then
18456   withval=$with_maxtapeblocksize;  MAXTAPEBLOCKSIZE="$withval"
18457 else
18458    MAXTAPEBLOCKSIZE=32
18459
18460 fi
18461
18462
18463
18464 cat >>confdefs.h <<_ACEOF
18465 #define MAX_TAPE_BLOCK_KB ($MAXTAPEBLOCKSIZE)
18466 _ACEOF
18467
18468
18469
18470
18471
18472 # Check whether --with-assertions was given.
18473 if test "${with_assertions+set}" = set; then
18474   withval=$with_assertions;
18475             case "$withval" in
18476                 n | no) : ;;
18477                 y |  ye | yes)
18478
18479 cat >>confdefs.h <<\_ACEOF
18480 #define ASSERTIONS 1
18481 _ACEOF
18482
18483                   ;;
18484                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
18485 echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
18486    { (exit 1); exit 1; }; }
18487                   ;;
18488             esac
18489
18490
18491 fi
18492
18493
18494
18495
18496
18497 # Check whether --with-debugging was given.
18498 if test "${with_debugging+set}" = set; then
18499   withval=$with_debugging;  debugging="$withval"
18500 else
18501    debugging="yes"
18502
18503 fi
18504
18505
18506     case "$debugging" in
18507         n | no) { { echo "$as_me:$LINENO: error: Amanda no longer supports building with debugging disabled" >&5
18508 echo "$as_me: error: Amanda no longer supports building with debugging disabled" >&2;}
18509    { (exit 1); exit 1; }; };;
18510         y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
18511         *) AMANDA_DBGDIR="$debugging";;
18512     esac
18513
18514     # evaluate any extra variables in the directory
18515
18516   prefix_NONE=
18517   exec_prefix_NONE=
18518   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
18519   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
18520   eval ac_define_dir="\"$AMANDA_DBGDIR\""
18521   eval ac_define_dir="\"$ac_define_dir\""
18522   AMANDA_DBGDIR="$ac_define_dir"
18523
18524
18525 cat >>confdefs.h <<_ACEOF
18526 #define AMANDA_DBGDIR "$ac_define_dir"
18527 _ACEOF
18528
18529   test "$prefix_NONE" && prefix=NONE
18530   test "$exec_prefix_NONE" && exec_prefix=NONE
18531
18532
18533
18534
18535 # Check whether --with-debug_days was given.
18536 if test "${with_debug_days+set}" = set; then
18537   withval=$with_debug_days;
18538             debug_days="$withval"
18539
18540 else
18541
18542             debug_days="yes"
18543
18544
18545 fi
18546
18547     case "$debug_days" in
18548         n | no)
18549             AMANDA_DEBUG_DAYS=0 ;;
18550         y |  ye | yes)
18551             AMANDA_DEBUG_DAYS=4 ;;
18552         [0-9] | [0-9][0-9] | [0-9][0-9][0-9])
18553             AMANDA_DEBUG_DAYS="$debug_days" ;;
18554         *) { { echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
18555 echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
18556    { (exit 1); exit 1; }; }
18557           ;;
18558     esac
18559
18560 cat >>confdefs.h <<_ACEOF
18561 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
18562 _ACEOF
18563
18564
18565
18566
18567
18568 # Check whether --with-testing was given.
18569 if test "${with_testing+set}" = set; then
18570   withval=$with_testing;
18571             TESTING="$withval"
18572
18573 else
18574
18575             TESTING="no"
18576
18577
18578 fi
18579
18580     case "$TESTING" in
18581         n | no) SERVICE_SUFFIX="";;
18582         y |  ye | yes) SERVICE_SUFFIX="-test";;
18583         *) SERVICE_SUFFIX="-$TESTING";;
18584     esac
18585
18586     AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
18587     KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
18588
18589
18590
18591 cat >>confdefs.h <<_ACEOF
18592 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
18593 _ACEOF
18594
18595
18596 cat >>confdefs.h <<_ACEOF
18597 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
18598 _ACEOF
18599
18600
18601 cat >>confdefs.h <<_ACEOF
18602 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
18603 _ACEOF
18604
18605
18606
18607     SINGLE_USERID=${SINGLE_USERID:-no}
18608     WANT_SETUID_CLIENT=${WANT_SETUID_CLIENT:-true}
18609
18610
18611 # Check whether --with-single-userid was given.
18612 if test "${with_single_userid+set}" = set; then
18613   withval=$with_single_userid;    SINGLE_USERID=$withval
18614 fi
18615
18616
18617     case "$target" in
18618         *-pc-cygwin)
18619             WANT_SETUID_CLIENT=false
18620             SINGLE_USERID=yes
18621             ;;
18622     esac
18623
18624     if test x"$WANT_SETUID_CLIENT" = x"true"; then
18625
18626 cat >>confdefs.h <<\_ACEOF
18627 #define WANT_SETUID_CLIENT 1
18628 _ACEOF
18629
18630     fi
18631      if test x"$WANT_SETUID_CLIENT" = x"true"; then
18632   WANT_SETUID_CLIENT_TRUE=
18633   WANT_SETUID_CLIENT_FALSE='#'
18634 else
18635   WANT_SETUID_CLIENT_TRUE='#'
18636   WANT_SETUID_CLIENT_FALSE=
18637 fi
18638
18639
18640     if test x"$SINGLE_USERID" = x"yes"; then
18641
18642 cat >>confdefs.h <<\_ACEOF
18643 #define SINGLE_USERID 1
18644 _ACEOF
18645
18646     fi
18647
18648
18649     WANT_INSTALLPERMS=yes
18650     # Check whether --enable-installperms was given.
18651 if test "${enable_installperms+set}" = set; then
18652   enableval=$enable_installperms;  WANT_INSTALLPERMS="$enableval"
18653 else
18654    WANT_INSTALLPERMS="yes"
18655
18656 fi
18657
18658      if test x"$WANT_INSTALLPERMS" = x"yes"; then
18659   WANT_INSTALLPERMS_TRUE=
18660   WANT_INSTALLPERMS_FALSE='#'
18661 else
18662   WANT_INSTALLPERMS_TRUE='#'
18663   WANT_INSTALLPERMS_FALSE=
18664 fi
18665
18666
18667
18668
18669 #
18670 # Set up for Amanda components and modules
18671 #
18672
18673     WANT_SERVER=true
18674
18675 # Check whether --with-server was given.
18676 if test "${with_server+set}" = set; then
18677   withval=$with_server;
18678             case "$withval" in
18679             y | ye | yes) WANT_SERVER=true;;
18680             n | no) WANT_SERVER=false;;
18681             *) { { echo "$as_me:$LINENO: error: You must not supply an argument to the --without-server option." >&5
18682 echo "$as_me: error: You must not supply an argument to the --without-server option." >&2;}
18683    { (exit 1); exit 1; }; } ;;
18684             esac
18685
18686 fi
18687
18688
18689
18690     WANT_CLIENT=true
18691
18692 # Check whether --with-client was given.
18693 if test "${with_client+set}" = set; then
18694   withval=$with_client;
18695             case "$withval" in
18696             y | ye | yes) WANT_CLIENT=true;;
18697             n | no) WANT_CLIENT=false;;
18698             *) { { echo "$as_me:$LINENO: error: You must not supply an argument to the --without-client option." >&5
18699 echo "$as_me: error: You must not supply an argument to the --without-client option." >&2;}
18700    { (exit 1); exit 1; }; } ;;
18701             esac
18702
18703 fi
18704
18705
18706
18707
18708     WANT_RESTORE=${WANT_SERVER-true}
18709
18710 # Check whether --with-restore was given.
18711 if test "${with_restore+set}" = set; then
18712   withval=$with_restore;
18713             case "$withval" in
18714             y | ye | yes) WANT_RESTORE=true;;
18715             n | no) WANT_RESTORE=false;;
18716             *) { { echo "$as_me:$LINENO: error: You must not supply an argument to --with-restore option." >&5
18717 echo "$as_me: error: You must not supply an argument to --with-restore option." >&2;}
18718    { (exit 1); exit 1; }; } ;;
18719             esac
18720
18721 fi
18722
18723
18724
18725
18726     WANT_RECOVER=${WANT_CLIENT-true}
18727
18728 # Check whether --with-amrecover was given.
18729 if test "${with_amrecover+set}" = set; then
18730   withval=$with_amrecover;
18731             case "$withval" in
18732             y | ye | yes) WANT_RECOVER=false;;
18733             n | no) WANT_RECOVER=false;;
18734             *) { { echo "$as_me:$LINENO: error: You must not supply an argument to --with-amrecover option." >&5
18735 echo "$as_me: error: You must not supply an argument to --with-amrecover option." >&2;}
18736    { (exit 1); exit 1; }; } ;;
18737             esac
18738
18739 fi
18740
18741
18742
18743
18744 # Check whether --with-client-only was given.
18745 if test "${with_client_only+set}" = set; then
18746   withval=$with_client_only;    { { echo "$as_me:$LINENO: error: --with-client-only is deprecated, use --without-server instead." >&5
18747 echo "$as_me: error: --with-client-only is deprecated, use --without-server instead." >&2;}
18748    { (exit 1); exit 1; }; }
18749
18750 fi
18751
18752
18753
18754
18755 # Check whether --with-server-only was given.
18756 if test "${with_server_only+set}" = set; then
18757   withval=$with_server_only;    { { echo "$as_me:$LINENO: error: --with-server-only is deprecated, use --without-client instead." >&5
18758 echo "$as_me: error: --with-server-only is deprecated, use --without-client instead." >&2;}
18759    { (exit 1); exit 1; }; }
18760
18761 fi
18762
18763
18764
18765
18766
18767
18768
18769
18770     # detect invalid combinations of components
18771     if ! ${WANT_SERVER-true} && ${WANT_RESTORE-true}; then
18772         { { echo "$as_me:$LINENO: error: --without-server requires --without-restore" >&5
18773 echo "$as_me: error: --without-server requires --without-restore" >&2;}
18774    { (exit 1); exit 1; }; }
18775     fi
18776     if ! ${WANT_CLIENT-true} && ${WANT_RECOVER-true}; then
18777         { { echo "$as_me:$LINENO: error: --without-client requires --without-amrecover" >&5
18778 echo "$as_me: error: --without-client requires --without-amrecover" >&2;}
18779    { (exit 1); exit 1; }; }
18780     fi
18781
18782      if $WANT_CLIENT; then
18783   WANT_CLIENT_TRUE=
18784   WANT_CLIENT_FALSE='#'
18785 else
18786   WANT_CLIENT_TRUE='#'
18787   WANT_CLIENT_FALSE=
18788 fi
18789
18790      if $WANT_RESTORE; then
18791   WANT_RESTORE_TRUE=
18792   WANT_RESTORE_FALSE='#'
18793 else
18794   WANT_RESTORE_TRUE='#'
18795   WANT_RESTORE_FALSE=
18796 fi
18797
18798      if $WANT_SERVER; then
18799   WANT_SERVER_TRUE=
18800   WANT_SERVER_FALSE='#'
18801 else
18802   WANT_SERVER_TRUE='#'
18803   WANT_SERVER_FALSE=
18804 fi
18805
18806      if $WANT_RECOVER; then
18807   WANT_RECOVER_TRUE=
18808   WANT_RECOVER_FALSE='#'
18809 else
18810   WANT_RECOVER_TRUE='#'
18811   WANT_RECOVER_FALSE=
18812 fi
18813
18814
18815      if $WANT_SERVER || $WANT_RESTORE; then
18816   WANT_TAPE_TRUE=
18817   WANT_TAPE_FALSE='#'
18818 else
18819   WANT_TAPE_TRUE='#'
18820   WANT_TAPE_FALSE=
18821 fi
18822
18823
18824
18825     SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/sfw/bin:/usr/bsd:/etc:/usr/etc"
18826     # expand prefix or exec_prefix in LOCPATH
18827     LOCPATH=`(
18828         test "x$prefix" = xNONE && prefix=$ac_default_prefix
18829         test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
18830         eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
18831     )`
18832     SYSLOCPATH="$SYSPATH:$LOCPATH"
18833     LOCSYSPATH="$LOCPATH:$SYSPATH"
18834
18835
18836
18837
18838
18839 # Check whether --with-gnuplot was given.
18840 if test "${with_gnuplot+set}" = set; then
18841   withval=$with_gnuplot;
18842             case "$withval" in
18843                 y | ye | yes) : ;;
18844                 n | no) GNUPLOT=no ;;
18845                 *) GNUPLOT="$withval" ;;
18846             esac
18847
18848 fi
18849
18850     if test "x$GNUPLOT" = "xno"; then
18851         GNUPLOT=
18852     else
18853         # Extract the first word of "gnuplot", so it can be a program name with args.
18854 set dummy gnuplot; ac_word=$2
18855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18857 if test "${ac_cv_path_GNUPLOT+set}" = set; then
18858   echo $ECHO_N "(cached) $ECHO_C" >&6
18859 else
18860   case $GNUPLOT in
18861   [\\/]* | ?:[\\/]*)
18862   ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
18863   ;;
18864   *)
18865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18866 for as_dir in $LOCSYSPATH
18867 do
18868   IFS=$as_save_IFS
18869   test -z "$as_dir" && as_dir=.
18870   for ac_exec_ext in '' $ac_executable_extensions; do
18871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18872     ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
18873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18874     break 2
18875   fi
18876 done
18877 done
18878 IFS=$as_save_IFS
18879
18880   ;;
18881 esac
18882 fi
18883 GNUPLOT=$ac_cv_path_GNUPLOT
18884 if test -n "$GNUPLOT"; then
18885   { echo "$as_me:$LINENO: result: $GNUPLOT" >&5
18886 echo "${ECHO_T}$GNUPLOT" >&6; }
18887 else
18888   { echo "$as_me:$LINENO: result: no" >&5
18889 echo "${ECHO_T}no" >&6; }
18890 fi
18891
18892
18893     fi
18894
18895
18896
18897
18898
18899
18900     # Extract the first word of "pcat", so it can be a program name with args.
18901 set dummy pcat; ac_word=$2
18902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18904 if test "${ac_cv_path_PCAT+set}" = set; then
18905   echo $ECHO_N "(cached) $ECHO_C" >&6
18906 else
18907   case $PCAT in
18908   [\\/]* | ?:[\\/]*)
18909   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
18910   ;;
18911   *)
18912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18913 for as_dir in $LOCSYSPATH
18914 do
18915   IFS=$as_save_IFS
18916   test -z "$as_dir" && as_dir=.
18917   for ac_exec_ext in '' $ac_executable_extensions; do
18918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18919     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
18920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18921     break 2
18922   fi
18923 done
18924 done
18925 IFS=$as_save_IFS
18926
18927   ;;
18928 esac
18929 fi
18930 PCAT=$ac_cv_path_PCAT
18931 if test -n "$PCAT"; then
18932   { echo "$as_me:$LINENO: result: $PCAT" >&5
18933 echo "${ECHO_T}$PCAT" >&6; }
18934 else
18935   { echo "$as_me:$LINENO: result: no" >&5
18936 echo "${ECHO_T}no" >&6; }
18937 fi
18938
18939
18940
18941
18942
18943     # Extract the first word of "compress", so it can be a program name with args.
18944 set dummy compress; ac_word=$2
18945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18947 if test "${ac_cv_path_COMPRESS+set}" = set; then
18948   echo $ECHO_N "(cached) $ECHO_C" >&6
18949 else
18950   case $COMPRESS in
18951   [\\/]* | ?:[\\/]*)
18952   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
18953   ;;
18954   *)
18955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18956 for as_dir in $LOCSYSPATH
18957 do
18958   IFS=$as_save_IFS
18959   test -z "$as_dir" && as_dir=.
18960   for ac_exec_ext in '' $ac_executable_extensions; do
18961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18962     ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
18963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18964     break 2
18965   fi
18966 done
18967 done
18968 IFS=$as_save_IFS
18969
18970   ;;
18971 esac
18972 fi
18973 COMPRESS=$ac_cv_path_COMPRESS
18974 if test -n "$COMPRESS"; then
18975   { echo "$as_me:$LINENO: result: $COMPRESS" >&5
18976 echo "${ECHO_T}$COMPRESS" >&6; }
18977 else
18978   { echo "$as_me:$LINENO: result: no" >&5
18979 echo "${ECHO_T}no" >&6; }
18980 fi
18981
18982
18983
18984
18985
18986     # Extract the first word of "gzip", so it can be a program name with args.
18987 set dummy gzip; ac_word=$2
18988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18990 if test "${ac_cv_path_GZIP+set}" = set; then
18991   echo $ECHO_N "(cached) $ECHO_C" >&6
18992 else
18993   case $GZIP in
18994   [\\/]* | ?:[\\/]*)
18995   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
18996   ;;
18997   *)
18998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18999 for as_dir in $LOCSYSPATH
19000 do
19001   IFS=$as_save_IFS
19002   test -z "$as_dir" && as_dir=.
19003   for ac_exec_ext in '' $ac_executable_extensions; do
19004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19005     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
19006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19007     break 2
19008   fi
19009 done
19010 done
19011 IFS=$as_save_IFS
19012
19013   ;;
19014 esac
19015 fi
19016 GZIP=$ac_cv_path_GZIP
19017 if test -n "$GZIP"; then
19018   { echo "$as_me:$LINENO: result: $GZIP" >&5
19019 echo "${ECHO_T}$GZIP" >&6; }
19020 else
19021   { echo "$as_me:$LINENO: result: no" >&5
19022 echo "${ECHO_T}no" >&6; }
19023 fi
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034     if test "x$GNUPLOT" != "x"; then
19035         WANT_AMPLOT=true
19036
19037         # variable substitutions for amcat.awk
19038         if test "$PCAT"; then
19039             AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
19040         else
19041             AMPLOT_CAT_PACK=
19042         fi
19043         if test "$COMPRESS"; then
19044             AMPLOT_COMPRESS=$COMPRESS
19045             AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
19046         else
19047             AMPLOT_CAT_COMPRESS=
19048         fi
19049         if test "$GZIP"; then
19050             AMPLOT_COMPRESS=$GZIP
19051             AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
19052         else
19053             AMPLOT_CAT_GZIP=
19054         fi
19055
19056
19057
19058
19059
19060     else
19061         WANT_AMPLOT=false
19062
19063     { echo "$as_me:$LINENO: WARNING: Not building 'amplot', because gnuplot was not found" >&5
19064 echo "$as_me: WARNING: Not building 'amplot', because gnuplot was not found" >&2;}
19065
19066
19067     cat <<AAW_EOF >>config.warnings
19068 Not building 'amplot', because gnuplot was not found
19069 AAW_EOF
19070
19071
19072     fi
19073
19074      if test x"$WANT_AMPLOT" = x"true"; then
19075   WANT_AMPLOT_TRUE=
19076   WANT_AMPLOT_FALSE='#'
19077 else
19078   WANT_AMPLOT_TRUE='#'
19079   WANT_AMPLOT_FALSE=
19080 fi
19081
19082
19083
19084     # Check whether --enable-manpage-build was given.
19085 if test "${enable_manpage_build+set}" = set; then
19086   enableval=$enable_manpage_build;  ENABLE_MANPAGE_BUILD=$enableval
19087 else
19088    ENABLE_MANPAGE_BUILD=no
19089 fi
19090
19091
19092     # and ensure that everything docbook-related is OK if we'll be using it
19093     if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
19094         DOC_BUILD_DATE=`date '+%d-%m-%Y'`
19095
19096
19097 XSLTPROC_FLAGS="--nonet"
19098
19099
19100 # The (lack of) whitespace and overquoting here are all necessary for
19101 # proper formatting.
19102
19103 # Check whether --with-xsltproc was given.
19104 if test "${with_xsltproc+set}" = set; then
19105   withval=$with_xsltproc;  ac_with_xsltproc=$withval;
19106 else
19107    ac_with_xsltproc=maybe;
19108 fi
19109
19110
19111
19112 # Check whether --with-xsltproc-flags was given.
19113 if test "${with_xsltproc_flags+set}" = set; then
19114   withval=$with_xsltproc_flags;  if test "x$withval" == "xno"; then
19115         XSLTPROC_FLAGS=''
19116     else
19117         if test "x$withval" != "xyes"; then
19118             XSLTPROC_FLAGS="$withval"
19119         fi
19120     fi
19121
19122 fi
19123
19124
19125 # search for xsltproc if it wasn't specified
19126 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
19127     for ac_prog in xsltproc
19128 do
19129   # Extract the first word of "$ac_prog", so it can be a program name with args.
19130 set dummy $ac_prog; ac_word=$2
19131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19133 if test "${ac_cv_path_XSLTPROC+set}" = set; then
19134   echo $ECHO_N "(cached) $ECHO_C" >&6
19135 else
19136   case $XSLTPROC in
19137   [\\/]* | ?:[\\/]*)
19138   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19139   ;;
19140   *)
19141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19142 for as_dir in $LOCSYSPATH
19143 do
19144   IFS=$as_save_IFS
19145   test -z "$as_dir" && as_dir=.
19146   for ac_exec_ext in '' $ac_executable_extensions; do
19147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19148     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19150     break 2
19151   fi
19152 done
19153 done
19154 IFS=$as_save_IFS
19155
19156   ;;
19157 esac
19158 fi
19159 XSLTPROC=$ac_cv_path_XSLTPROC
19160 if test -n "$XSLTPROC"; then
19161   { echo "$as_me:$LINENO: result: $XSLTPROC" >&5
19162 echo "${ECHO_T}$XSLTPROC" >&6; }
19163 else
19164   { echo "$as_me:$LINENO: result: no" >&5
19165 echo "${ECHO_T}no" >&6; }
19166 fi
19167
19168
19169   test -n "$XSLTPROC" && break
19170 done
19171
19172 else
19173     if test "$ac_with_xsltproc" != "no"; then
19174         if test -x "$ac_with_xsltproc"; then
19175             XSLTPROC="$ac_with_xsltproc";
19176         else
19177
19178     { echo "$as_me:$LINENO: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&5
19179 echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&2;}
19180
19181
19182     cat <<AAW_EOF >>config.warnings
19183 Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative.
19184 AAW_EOF
19185
19186
19187             for ac_prog in xsltproc
19188 do
19189   # Extract the first word of "$ac_prog", so it can be a program name with args.
19190 set dummy $ac_prog; ac_word=$2
19191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19193 if test "${ac_cv_path_XSLTPROC+set}" = set; then
19194   echo $ECHO_N "(cached) $ECHO_C" >&6
19195 else
19196   case $XSLTPROC in
19197   [\\/]* | ?:[\\/]*)
19198   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19199   ;;
19200   *)
19201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19202 for as_dir in $LOCSYSPATH
19203 do
19204   IFS=$as_save_IFS
19205   test -z "$as_dir" && as_dir=.
19206   for ac_exec_ext in '' $ac_executable_extensions; do
19207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19208     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19210     break 2
19211   fi
19212 done
19213 done
19214 IFS=$as_save_IFS
19215
19216   ;;
19217 esac
19218 fi
19219 XSLTPROC=$ac_cv_path_XSLTPROC
19220 if test -n "$XSLTPROC"; then
19221   { echo "$as_me:$LINENO: result: $XSLTPROC" >&5
19222 echo "${ECHO_T}$XSLTPROC" >&6; }
19223 else
19224   { echo "$as_me:$LINENO: result: no" >&5
19225 echo "${ECHO_T}no" >&6; }
19226 fi
19227
19228
19229   test -n "$XSLTPROC" && break
19230 done
19231
19232         fi
19233     fi
19234 fi
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245     { echo "$as_me:$LINENO: checking for Docbook XSLT version 1.72.0" >&5
19246 echo $ECHO_N "checking for Docbook XSLT version 1.72.0... $ECHO_C" >&6; }
19247 if test "${ac_cv_docbook_xslt_1_72_0+set}" = set; then
19248   echo $ECHO_N "(cached) $ECHO_C" >&6
19249 else
19250
19251         ac_cv_docbook_xslt_1_72_0=no
19252         if test -n "$XSLTPROC"; then
19253             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
19254             $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&5
19255
19256             if test "$?" = 0; then
19257                 ac_cv_docbook_xslt_1_72_0=yes
19258             fi
19259         fi
19260
19261 fi
19262 { echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_1_72_0" >&5
19263 echo "${ECHO_T}$ac_cv_docbook_xslt_1_72_0" >&6; }
19264
19265     HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
19266     HAVE_DOCBOOK_XSLT="$HAVE_DOCBOOK_XSLT_1_72_0"
19267
19268
19269
19270
19271
19272
19273
19274
19275     { echo "$as_me:$LINENO: checking for current Docbook XSLT version" >&5
19276 echo $ECHO_N "checking for current Docbook XSLT version... $ECHO_C" >&6; }
19277 if test "${ac_cv_docbook_xslt_current_version+set}" = set; then
19278   echo $ECHO_N "(cached) $ECHO_C" >&6
19279 else
19280
19281         ac_cv_docbook_xslt_current_version=no
19282
19283         if test -n "$XSLTPROC"; then
19284             cat >conftest.xsl <<EOF
19285                 <xsl:stylesheet
19286                     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
19287                     xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
19288                     version="1.0">
19289                     <xsl:output method="text"/>
19290                     <xsl:template match="fm:project/fm:Version">
19291                         <xsl:value-of select="." />
19292                     </xsl:template>
19293                     <!-- do nothing with any other text -->
19294                     <xsl:template match="text()"/>
19295                 </xsl:stylesheet>
19296 EOF
19297             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/VERSION' with input:" >&5
19298             echo "====" >&5
19299             cat conftest.xsl >&5
19300             echo "====" >&5
19301
19302             ac_cv_docbook_xslt_current_version=`$XSLTPROC $XSLTPROC_FLAGS conftest.xsl http://docbook.sourceforge.net/release/xsl/current/VERSION 2>&5`
19303
19304             if test "$?" != 0; then
19305                 ac_cv_docbook_xslt_current_version='no'
19306             fi
19307
19308             rm conftest.xsl
19309         fi
19310
19311 fi
19312 { echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_current_version" >&5
19313 echo "${ECHO_T}$ac_cv_docbook_xslt_current_version" >&6; }
19314
19315     DOCBOOK_XSLT_CURRENT_VERSION="$ac_cv_docbook_xslt_current_version"
19316     { echo "$as_me:$LINENO: checking whether Docbook XSLT version is 1.72.0 or newer" >&5
19317 echo $ECHO_N "checking whether Docbook XSLT version is 1.72.0 or newer... $ECHO_C" >&6; }
19318
19319     if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
19320         { echo "$as_me:$LINENO: result: no" >&5
19321 echo "${ECHO_T}no" >&6; }
19322     else
19323
19324   # Used to indicate true or false condition
19325   ax_compare_version=false
19326
19327   # Convert the two version strings to be compared into a format that
19328   # allows a simple string comparison.  The end result is that a version
19329   # string of the form 1.12.5-r617 will be converted to the form
19330   # 0001001200050617.  In other words, each number is zero padded to four
19331   # digits, and non digits are removed.
19332
19333   ax_compare_version_A=`echo "$DOCBOOK_XSLT_CURRENT_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19334                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19335                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19336                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19337                      -e 's/[^0-9]//g'`
19338
19339
19340   ax_compare_version_B=`echo "1.72.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19341                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19342                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19343                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19344                      -e 's/[^0-9]//g'`
19345
19346
19347     ax_compare_version=`echo "x$ax_compare_version_A
19348 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"`
19349
19350
19351
19352     if test "$ax_compare_version" = "true" ; then
19353
19354             # version is less than required, so mark it as "no"
19355             DOCBOOK_XSLT_CURRENT_VERSION=no
19356
19357       fi
19358
19359
19360         if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
19361             { echo "$as_me:$LINENO: result: no" >&5
19362 echo "${ECHO_T}no" >&6; }
19363         else
19364             { echo "$as_me:$LINENO: result: yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&5
19365 echo "${ECHO_T}yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&6; }
19366         fi
19367     fi
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378     { echo "$as_me:$LINENO: checking for Docbook DTD version 4.1.2" >&5
19379 echo $ECHO_N "checking for Docbook DTD version 4.1.2... $ECHO_C" >&6; }
19380 if test "${ac_cv_docbook_dtd_4_1_2+set}" = set; then
19381   echo $ECHO_N "(cached) $ECHO_C" >&6
19382 else
19383
19384         ac_cv_docbook_dtd_4_1_2=no
19385         if test -n "$XSLTPROC"; then
19386             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
19387             cat <<EOF >conftest.xml
19388 <?xml version="1.0" encoding='ISO-8859-1'?>
19389 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
19390 <book id="empty">
19391 </book>
19392 EOF
19393             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
19394             echo "conftest.xml:" >&5
19395             echo "====" >&5
19396             cat conftest.xml >&5
19397             echo "====" >&5
19398
19399             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
19400             if test "$?" = 0 -o "$?" = 5; then
19401                 # failing to load the DTD is just a warning, so check for it in the output.
19402                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
19403                     : # no good..
19404                 else
19405                     ac_cv_docbook_dtd_4_1_2=yes
19406                 fi
19407             fi
19408             cat conftest.out >&5
19409
19410             rm -f conftest.xml conftest.out
19411         fi
19412
19413 fi
19414 { echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_1_2" >&5
19415 echo "${ECHO_T}$ac_cv_docbook_dtd_4_1_2" >&6; }
19416
19417     HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
19418     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_1_2"
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433     { echo "$as_me:$LINENO: checking for Docbook DTD version 4.2" >&5
19434 echo $ECHO_N "checking for Docbook DTD version 4.2... $ECHO_C" >&6; }
19435 if test "${ac_cv_docbook_dtd_4_2+set}" = set; then
19436   echo $ECHO_N "(cached) $ECHO_C" >&6
19437 else
19438
19439         ac_cv_docbook_dtd_4_2=no
19440         if test -n "$XSLTPROC"; then
19441             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
19442             cat <<EOF >conftest.xml
19443 <?xml version="1.0" encoding='ISO-8859-1'?>
19444 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
19445 <book id="empty">
19446 </book>
19447 EOF
19448             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
19449             echo "conftest.xml:" >&5
19450             echo "====" >&5
19451             cat conftest.xml >&5
19452             echo "====" >&5
19453
19454             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
19455             if test "$?" = 0 -o "$?" = 5; then
19456                 # failing to load the DTD is just a warning, so check for it in the output.
19457                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
19458                     : # no good..
19459                 else
19460                     ac_cv_docbook_dtd_4_2=yes
19461                 fi
19462             fi
19463             cat conftest.out >&5
19464
19465             rm -f conftest.xml conftest.out
19466         fi
19467
19468 fi
19469 { echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_2" >&5
19470 echo "${ECHO_T}$ac_cv_docbook_dtd_4_2" >&6; }
19471
19472     HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
19473     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_2"
19474
19475
19476
19477
19478
19479
19480         if test -z "$XSLTPROC"; then
19481             { { echo "$as_me:$LINENO: error: Cannot build manpages: 'xsltproc' was not found." >&5
19482 echo "$as_me: error: Cannot build manpages: 'xsltproc' was not found." >&2;}
19483    { (exit 1); exit 1; }; }
19484         fi
19485
19486         # if the 'current' Docbook revision is good enough, use that; otherwise,
19487         # if 1.72.0 is available, use that.
19488         XSLREL=current
19489         if test "x$DOCBOOK_XSLT_CURRENT_VERSION" = "xno"; then
19490             if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
19491                 { { echo "$as_me:$LINENO: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&5
19492 echo "$as_me: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&2;}
19493    { (exit 1); exit 1; }; }
19494             else
19495                 XSLREL=1.72.0
19496             fi
19497         fi
19498
19499         # disable validation if the correct DTDs are not available
19500         if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
19501
19502     { echo "$as_me:$LINENO: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&5
19503 echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
19504
19505
19506     cat <<AAW_EOF >>config.warnings
19507 Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation
19508 AAW_EOF
19509
19510
19511             XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
19512         fi
19513     fi
19514
19515      if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
19516   ENABLE_MANPAGE_BUILD_TRUE=
19517   ENABLE_MANPAGE_BUILD_FALSE='#'
19518 else
19519   ENABLE_MANPAGE_BUILD_TRUE='#'
19520   ENABLE_MANPAGE_BUILD_FALSE=
19521 fi
19522
19523
19524
19525
19526
19527
19528 # Check whether --with-index-server was given.
19529 if test "${with_index_server+set}" = set; then
19530   withval=$with_index_server;
19531             case "$withval" in
19532             "" | y | ye | yes | n | no)
19533                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
19534 echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
19535    { (exit 1); exit 1; }; }
19536               ;;
19537             *) DEFAULT_SERVER="$withval"
19538               ;;
19539             esac
19540
19541 else
19542   : ${DEFAULT_SERVER=`uname -n`}
19543
19544 fi
19545
19546
19547 cat >>confdefs.h <<_ACEOF
19548 #define DEFAULT_SERVER "$DEFAULT_SERVER"
19549 _ACEOF
19550
19551
19552
19553
19554 # Check whether --with-config was given.
19555 if test "${with_config+set}" = set; then
19556   withval=$with_config;
19557             case "$withval" in
19558             "" | y | ye | yes | n | no)
19559                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
19560 echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
19561    { (exit 1); exit 1; }; }
19562               ;;
19563             *) DEFAULT_CONFIG="$withval"
19564               ;;
19565             esac
19566
19567 else
19568   : ${DEFAULT_CONFIG=DailySet1}
19569
19570 fi
19571
19572
19573 cat >>confdefs.h <<_ACEOF
19574 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
19575 _ACEOF
19576
19577
19578
19579
19580 # Check whether --with-tape-server was given.
19581 if test "${with_tape_server+set}" = set; then
19582   withval=$with_tape_server;
19583             case "$withval" in
19584             "" | y | ye | yes | n | no)
19585                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
19586 echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
19587    { (exit 1); exit 1; }; }
19588               ;;
19589             *) DEFAULT_TAPE_SERVER="$withval"
19590               ;;
19591             esac
19592
19593 else
19594   : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
19595
19596 fi
19597
19598
19599 cat >>confdefs.h <<_ACEOF
19600 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
19601 _ACEOF
19602
19603
19604
19605
19606 # Check whether --with-tape-device was given.
19607 if test "${with_tape_device+set}" = set; then
19608   withval=$with_tape_device;
19609             case "$withval" in
19610             "" | y | ye | yes | n | no)
19611                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
19612 echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
19613    { (exit 1); exit 1; }; }
19614               ;;
19615             *) DEFAULT_TAPE_DEVICE="$withval"
19616               ;;
19617             esac
19618
19619
19620 fi
19621
19622
19623
19624 cat >>confdefs.h <<_ACEOF
19625 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
19626 _ACEOF
19627
19628
19629
19630     if test "${DEFAULT_TAPE_DEVICE+set}" = "set"; then
19631         EXAMPLE_TAPEDEV="$DEFAULT_TAPE_DEVICE"
19632     else
19633         EXAMPLE_TAPEDEV="tape:/dev/YOUR-TAPE-DEVICE-HERE"
19634     fi
19635
19636
19637
19638 # Check whether --with-changer-device was given.
19639 if test "${with_changer_device+set}" = set; then
19640   withval=$with_changer_device;
19641             case "$withval" in
19642             "" | y | ye | yes | n | no)
19643                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-changer-device option." >&5
19644 echo "$as_me: error: *** You must supply an argument to the --with-changer-device option." >&2;}
19645    { (exit 1); exit 1; }; }
19646               ;;
19647             *) DEFAULT_CHANGER_DEVICE="$withval"
19648               ;;
19649             esac
19650
19651
19652 fi
19653
19654
19655     if test -z "$DEFAULT_CHANGER_DEVICE"; then
19656         DEFAULT_CHANGER_DEVICE=/dev/null
19657         if test -f /dev/ch0; then
19658             DEFAULT_CHANGER_DEVICE=/dev/ch0
19659         fi
19660     fi
19661
19662
19663 cat >>confdefs.h <<_ACEOF
19664 #define DEFAULT_CHANGER_DEVICE "$DEFAULT_CHANGER_DEVICE"
19665 _ACEOF
19666
19667
19668
19669
19670 # Check whether --with-amandates was given.
19671 if test "${with_amandates+set}" = set; then
19672   withval=$with_amandates;
19673             case "$withval" in
19674                 n | no) { { echo "$as_me:$LINENO: error: *** --without-amandates is not allowed." >&5
19675 echo "$as_me: error: *** --without-amandates is not allowed." >&2;}
19676    { (exit 1); exit 1; }; };;
19677                 y |  ye | yes) amandates='$localstatedir/amanda/amandates' ;;
19678                 *) amandates="$withval";;
19679             esac
19680
19681 else
19682   amandates='$localstatedir/amanda/amandates'
19683
19684 fi
19685
19686
19687
19688   prefix_NONE=
19689   exec_prefix_NONE=
19690   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
19691   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
19692   eval ac_define_dir="\"$amandates\""
19693   eval ac_define_dir="\"$ac_define_dir\""
19694   DEFAULT_AMANDATES_FILE="$ac_define_dir"
19695
19696
19697 cat >>confdefs.h <<_ACEOF
19698 #define DEFAULT_AMANDATES_FILE "$ac_define_dir"
19699 _ACEOF
19700
19701   test "$prefix_NONE" && prefix=NONE
19702   test "$exec_prefix_NONE" && exec_prefix=NONE
19703
19704
19705
19706
19707     # Extract the first word of "getconf", so it can be a program name with args.
19708 set dummy getconf; ac_word=$2
19709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19711 if test "${ac_cv_path_GETCONF+set}" = set; then
19712   echo $ECHO_N "(cached) $ECHO_C" >&6
19713 else
19714   case $GETCONF in
19715   [\\/]* | ?:[\\/]*)
19716   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
19717   ;;
19718   *)
19719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19720 for as_dir in $SYSPATH
19721 do
19722   IFS=$as_save_IFS
19723   test -z "$as_dir" && as_dir=.
19724   for ac_exec_ext in '' $ac_executable_extensions; do
19725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19726     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
19727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19728     break 2
19729   fi
19730 done
19731 done
19732 IFS=$as_save_IFS
19733
19734   ;;
19735 esac
19736 fi
19737 GETCONF=$ac_cv_path_GETCONF
19738 if test -n "$GETCONF"; then
19739   { echo "$as_me:$LINENO: result: $GETCONF" >&5
19740 echo "${ECHO_T}$GETCONF" >&6; }
19741 else
19742   { echo "$as_me:$LINENO: result: no" >&5
19743 echo "${ECHO_T}no" >&6; }
19744 fi
19745
19746
19747
19748
19749
19750
19751
19752     # we use 'getconf', if it exists, to get the relevant
19753     # compiler flags.
19754     GETCONF_LFS="LFS"
19755     case "$target" in
19756         *-hp-*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
19757         *-ibm-aix*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
19758     esac
19759
19760     # Checks for compilers, typedefs, structures, and compiler characteristics.
19761     # Check for large file compilation environment.
19762     NEED_RESETOFS=yes
19763     { echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
19764 echo $ECHO_N "checking for large file compilation CFLAGS... $ECHO_C" >&6; }
19765 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
19766   echo $ECHO_N "(cached) $ECHO_C" >&6
19767 else
19768
19769         amanda_cv_LFS_CFLAGS=
19770         if test "$GETCONF"; then
19771             if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
19772                 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
19773                 NEED_RESETOFS=no
19774             fi
19775         fi
19776
19777
19778 fi
19779 { echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
19780 echo "${ECHO_T}$amanda_cv_LFS_CFLAGS" >&6; }
19781     CFLAGS="$CFLAGS $amanda_cv_LFS_CFLAGS"
19782
19783
19784     { echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
19785 echo $ECHO_N "checking for large file compilation LDFLAGS... $ECHO_C" >&6; }
19786 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
19787   echo $ECHO_N "(cached) $ECHO_C" >&6
19788 else
19789
19790         amanda_cv_LFS_LDFLAGS=
19791         if test "$GETCONF"; then
19792             if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
19793                 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
19794                 NEED_RESETOFS=no
19795             fi
19796         fi
19797
19798
19799 fi
19800 { echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
19801 echo "${ECHO_T}$amanda_cv_LFS_LDFLAGS" >&6; }
19802     LDFLAGS="$LDFLAGS $amanda_cv_LFS_LDFLAGS"
19803
19804
19805     { echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
19806 echo $ECHO_N "checking for large file compilation LIBS... $ECHO_C" >&6; }
19807 if test "${amanda_cv_LFS_LIBS+set}" = set; then
19808   echo $ECHO_N "(cached) $ECHO_C" >&6
19809 else
19810
19811         amanda_cv_LFS_LIBS=
19812         if test "$GETCONF"; then
19813             if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
19814                 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
19815                 NEED_RESETOFS=no
19816             fi
19817         fi
19818
19819
19820 fi
19821 { echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
19822 echo "${ECHO_T}$amanda_cv_LFS_LIBS" >&6; }
19823     LIBS="$amanda_cv_LFS_LIBS $LIBS"
19824
19825
19826     if test x"$NEED_RESETOFS" = x"yes"; then
19827
19828 cat >>confdefs.h <<\_ACEOF
19829 #define NEED_RESETOFS 1
19830 _ACEOF
19831
19832     fi
19833
19834
19835
19836     # Extract the first word of "chio", so it can be a program name with args.
19837 set dummy chio; ac_word=$2
19838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19840 if test "${ac_cv_path_CHIO+set}" = set; then
19841   echo $ECHO_N "(cached) $ECHO_C" >&6
19842 else
19843   case $CHIO in
19844   [\\/]* | ?:[\\/]*)
19845   ac_cv_path_CHIO="$CHIO" # Let the user override the test with a path.
19846   ;;
19847   *)
19848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19849 for as_dir in $LOCSYSPATH
19850 do
19851   IFS=$as_save_IFS
19852   test -z "$as_dir" && as_dir=.
19853   for ac_exec_ext in '' $ac_executable_extensions; do
19854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19855     ac_cv_path_CHIO="$as_dir/$ac_word$ac_exec_ext"
19856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19857     break 2
19858   fi
19859 done
19860 done
19861 IFS=$as_save_IFS
19862
19863   test -z "$ac_cv_path_CHIO" && ac_cv_path_CHIO="chio"
19864   ;;
19865 esac
19866 fi
19867 CHIO=$ac_cv_path_CHIO
19868 if test -n "$CHIO"; then
19869   { echo "$as_me:$LINENO: result: $CHIO" >&5
19870 echo "${ECHO_T}$CHIO" >&6; }
19871 else
19872   { echo "$as_me:$LINENO: result: no" >&5
19873 echo "${ECHO_T}no" >&6; }
19874 fi
19875
19876
19877
19878
19879
19880     # Extract the first word of "chs", so it can be a program name with args.
19881 set dummy chs; ac_word=$2
19882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19884 if test "${ac_cv_path_CHS+set}" = set; then
19885   echo $ECHO_N "(cached) $ECHO_C" >&6
19886 else
19887   case $CHS in
19888   [\\/]* | ?:[\\/]*)
19889   ac_cv_path_CHS="$CHS" # Let the user override the test with a path.
19890   ;;
19891   *)
19892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19893 for as_dir in $LOCSYSPATH
19894 do
19895   IFS=$as_save_IFS
19896   test -z "$as_dir" && as_dir=.
19897   for ac_exec_ext in '' $ac_executable_extensions; do
19898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19899     ac_cv_path_CHS="$as_dir/$ac_word$ac_exec_ext"
19900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19901     break 2
19902   fi
19903 done
19904 done
19905 IFS=$as_save_IFS
19906
19907   test -z "$ac_cv_path_CHS" && ac_cv_path_CHS="chs"
19908   ;;
19909 esac
19910 fi
19911 CHS=$ac_cv_path_CHS
19912 if test -n "$CHS"; then
19913   { echo "$as_me:$LINENO: result: $CHS" >&5
19914 echo "${ECHO_T}$CHS" >&6; }
19915 else
19916   { echo "$as_me:$LINENO: result: no" >&5
19917 echo "${ECHO_T}no" >&6; }
19918 fi
19919
19920
19921
19922
19923
19924     # Extract the first word of "mtx", so it can be a program name with args.
19925 set dummy mtx; ac_word=$2
19926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19928 if test "${ac_cv_path_MTX+set}" = set; then
19929   echo $ECHO_N "(cached) $ECHO_C" >&6
19930 else
19931   case $MTX in
19932   [\\/]* | ?:[\\/]*)
19933   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
19934   ;;
19935   *)
19936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19937 for as_dir in $LOCSYSPATH
19938 do
19939   IFS=$as_save_IFS
19940   test -z "$as_dir" && as_dir=.
19941   for ac_exec_ext in '' $ac_executable_extensions; do
19942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19943     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
19944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19945     break 2
19946   fi
19947 done
19948 done
19949 IFS=$as_save_IFS
19950
19951   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
19952   ;;
19953 esac
19954 fi
19955 MTX=$ac_cv_path_MTX
19956 if test -n "$MTX"; then
19957   { echo "$as_me:$LINENO: result: $MTX" >&5
19958 echo "${ECHO_T}$MTX" >&6; }
19959 else
19960   { echo "$as_me:$LINENO: result: no" >&5
19961 echo "${ECHO_T}no" >&6; }
19962 fi
19963
19964
19965
19966
19967
19968     # Extract the first word of "mcutil", so it can be a program name with args.
19969 set dummy mcutil; ac_word=$2
19970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19972 if test "${ac_cv_path_MCUTIL+set}" = set; then
19973   echo $ECHO_N "(cached) $ECHO_C" >&6
19974 else
19975   case $MCUTIL in
19976   [\\/]* | ?:[\\/]*)
19977   ac_cv_path_MCUTIL="$MCUTIL" # Let the user override the test with a path.
19978   ;;
19979   *)
19980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19981 for as_dir in $LOCSYSPATH
19982 do
19983   IFS=$as_save_IFS
19984   test -z "$as_dir" && as_dir=.
19985   for ac_exec_ext in '' $ac_executable_extensions; do
19986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19987     ac_cv_path_MCUTIL="$as_dir/$ac_word$ac_exec_ext"
19988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19989     break 2
19990   fi
19991 done
19992 done
19993 IFS=$as_save_IFS
19994
19995   test -z "$ac_cv_path_MCUTIL" && ac_cv_path_MCUTIL="mcutil"
19996   ;;
19997 esac
19998 fi
19999 MCUTIL=$ac_cv_path_MCUTIL
20000 if test -n "$MCUTIL"; then
20001   { echo "$as_me:$LINENO: result: $MCUTIL" >&5
20002 echo "${ECHO_T}$MCUTIL" >&6; }
20003 else
20004   { echo "$as_me:$LINENO: result: no" >&5
20005 echo "${ECHO_T}no" >&6; }
20006 fi
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030 for ac_header in \
20031         camlib.h \
20032         chio.h \
20033         linux/chio.h \
20034         scsi/sg.h \
20035         scsi/scsi_ioctl.h \
20036         sys/chio.h \
20037         sys/dsreq.h \
20038         sys/mtio.h \
20039         sys/scarray.h \
20040         sys/gscdds.h \
20041         sys/scsi.h \
20042         sys/scsiio.h \
20043         sys/scsi/impl/uscsi.h \
20044         sys/scsi/scsi/ioctl.h \
20045
20046 do
20047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20049   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20052   echo $ECHO_N "(cached) $ECHO_C" >&6
20053 fi
20054 ac_res=`eval echo '${'$as_ac_Header'}'`
20055                { echo "$as_me:$LINENO: result: $ac_res" >&5
20056 echo "${ECHO_T}$ac_res" >&6; }
20057 else
20058   # Is the header compilable?
20059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20061 cat >conftest.$ac_ext <<_ACEOF
20062 /* confdefs.h.  */
20063 _ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h.  */
20067 $ac_includes_default
20068 #include <$ac_header>
20069 _ACEOF
20070 rm -f conftest.$ac_objext
20071 if { (ac_try="$ac_compile"
20072 case "(($ac_try" in
20073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074   *) ac_try_echo=$ac_try;;
20075 esac
20076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077   (eval "$ac_compile") 2>conftest.er1
20078   ac_status=$?
20079   grep -v '^ *+' conftest.er1 >conftest.err
20080   rm -f conftest.er1
20081   cat conftest.err >&5
20082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083   (exit $ac_status); } && {
20084          test -z "$ac_c_werror_flag" ||
20085          test ! -s conftest.err
20086        } && test -s conftest.$ac_objext; then
20087   ac_header_compiler=yes
20088 else
20089   echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20091
20092         ac_header_compiler=no
20093 fi
20094
20095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20096 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20097 echo "${ECHO_T}$ac_header_compiler" >&6; }
20098
20099 # Is the header present?
20100 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20102 cat >conftest.$ac_ext <<_ACEOF
20103 /* confdefs.h.  */
20104 _ACEOF
20105 cat confdefs.h >>conftest.$ac_ext
20106 cat >>conftest.$ac_ext <<_ACEOF
20107 /* end confdefs.h.  */
20108 #include <$ac_header>
20109 _ACEOF
20110 if { (ac_try="$ac_cpp conftest.$ac_ext"
20111 case "(($ac_try" in
20112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113   *) ac_try_echo=$ac_try;;
20114 esac
20115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20116   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20117   ac_status=$?
20118   grep -v '^ *+' conftest.er1 >conftest.err
20119   rm -f conftest.er1
20120   cat conftest.err >&5
20121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122   (exit $ac_status); } >/dev/null && {
20123          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20124          test ! -s conftest.err
20125        }; then
20126   ac_header_preproc=yes
20127 else
20128   echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20130
20131   ac_header_preproc=no
20132 fi
20133
20134 rm -f conftest.err conftest.$ac_ext
20135 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20136 echo "${ECHO_T}$ac_header_preproc" >&6; }
20137
20138 # So?  What about this header?
20139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20140   yes:no: )
20141     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20145     ac_header_preproc=yes
20146     ;;
20147   no:yes:* )
20148     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20150     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20151 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20152     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20154     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20155 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20156     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20158     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20160
20161     ;;
20162 esac
20163 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20166   echo $ECHO_N "(cached) $ECHO_C" >&6
20167 else
20168   eval "$as_ac_Header=\$ac_header_preproc"
20169 fi
20170 ac_res=`eval echo '${'$as_ac_Header'}'`
20171                { echo "$as_me:$LINENO: result: $ac_res" >&5
20172 echo "${ECHO_T}$ac_res" >&6; }
20173
20174 fi
20175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20176   cat >>confdefs.h <<_ACEOF
20177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20178 _ACEOF
20179
20180 fi
20181
20182 done
20183
20184
20185     #
20186     # chio support
20187     #
20188     if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
20189         { echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
20190 echo $ECHO_N "checking for HP/UX-like scsi changer support... $ECHO_C" >&6; }
20191 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
20192   echo $ECHO_N "(cached) $ECHO_C" >&6
20193 else
20194   cat >conftest.$ac_ext <<_ACEOF
20195 /* confdefs.h.  */
20196 _ACEOF
20197 cat confdefs.h >>conftest.$ac_ext
20198 cat >>conftest.$ac_ext <<_ACEOF
20199 /* end confdefs.h.  */
20200
20201 #include <sys/scsi.h>
20202
20203 int
20204 main ()
20205 {
20206
20207             static struct element_addresses changer_info;
20208             int i = SIOC_ELEMENT_ADDRESSES;
20209             int j = SIOC_ELEMENT_STATUS;
20210             int k = SIOC_MOVE_MEDIUM;
20211
20212   ;
20213   return 0;
20214 }
20215 _ACEOF
20216 rm -f conftest.$ac_objext
20217 if { (ac_try="$ac_compile"
20218 case "(($ac_try" in
20219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220   *) ac_try_echo=$ac_try;;
20221 esac
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223   (eval "$ac_compile") 2>conftest.er1
20224   ac_status=$?
20225   grep -v '^ *+' conftest.er1 >conftest.err
20226   rm -f conftest.er1
20227   cat conftest.err >&5
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); } && {
20230          test -z "$ac_c_werror_flag" ||
20231          test ! -s conftest.err
20232        } && test -s conftest.$ac_objext; then
20233   amanda_cv_hpux_scsi_chio=yes
20234 else
20235   echo "$as_me: failed program was:" >&5
20236 sed 's/^/| /' conftest.$ac_ext >&5
20237
20238         amanda_cv_hpux_scsi_chio=no
20239 fi
20240
20241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20242 fi
20243 { echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
20244 echo "${ECHO_T}$amanda_cv_hpux_scsi_chio" >&6; }
20245         if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
20246             WANT_SCSI_HPUX=yes
20247             WANT_CHG_SCSI=yes
20248         fi
20249     fi
20250
20251     #
20252     # Linux SCSI based on ioctl
20253     #
20254     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
20255        test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
20256             { echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
20257 echo $ECHO_N "checking for Linux like scsi support (ioctl)... $ECHO_C" >&6; }
20258 if test "${amanda_cv_linux_scsi+set}" = set; then
20259   echo $ECHO_N "(cached) $ECHO_C" >&6
20260 else
20261   cat >conftest.$ac_ext <<_ACEOF
20262 /* confdefs.h.  */
20263 _ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h.  */
20267
20268 #include <scsi/scsi_ioctl.h>
20269 #include <sys/mtio.h>
20270
20271 int
20272 main ()
20273 {
20274
20275             int device;
20276             char *Command;
20277             ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
20278
20279   ;
20280   return 0;
20281 }
20282 _ACEOF
20283 rm -f conftest.$ac_objext
20284 if { (ac_try="$ac_compile"
20285 case "(($ac_try" in
20286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287   *) ac_try_echo=$ac_try;;
20288 esac
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290   (eval "$ac_compile") 2>conftest.er1
20291   ac_status=$?
20292   grep -v '^ *+' conftest.er1 >conftest.err
20293   rm -f conftest.er1
20294   cat conftest.err >&5
20295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296   (exit $ac_status); } && {
20297          test -z "$ac_c_werror_flag" ||
20298          test ! -s conftest.err
20299        } && test -s conftest.$ac_objext; then
20300   amanda_cv_linux_scsi=yes
20301 else
20302   echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20304
20305         amanda_cv_linux_scsi=no
20306 fi
20307
20308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20309 fi
20310 { echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
20311 echo "${ECHO_T}$amanda_cv_linux_scsi" >&6; }
20312     fi
20313
20314     #
20315     # Linux SCSI based on sg
20316     #
20317     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
20318        test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
20319             { echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
20320 echo $ECHO_N "checking for Linux like scsi support (sg)... $ECHO_C" >&6; }
20321 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
20322   echo $ECHO_N "(cached) $ECHO_C" >&6
20323 else
20324   cat >conftest.$ac_ext <<_ACEOF
20325 /* confdefs.h.  */
20326 _ACEOF
20327 cat confdefs.h >>conftest.$ac_ext
20328 cat >>conftest.$ac_ext <<_ACEOF
20329 /* end confdefs.h.  */
20330
20331 #include <sys/types.h>
20332 #include <scsi/sg.h>
20333 #include <sys/mtio.h>
20334
20335 int
20336 main ()
20337 {
20338
20339             int device;
20340             struct sg_header *psg_header;
20341             char *buffer;
20342             write(device, buffer, 1);
20343
20344   ;
20345   return 0;
20346 }
20347 _ACEOF
20348 rm -f conftest.$ac_objext
20349 if { (ac_try="$ac_compile"
20350 case "(($ac_try" in
20351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352   *) ac_try_echo=$ac_try;;
20353 esac
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355   (eval "$ac_compile") 2>conftest.er1
20356   ac_status=$?
20357   grep -v '^ *+' conftest.er1 >conftest.err
20358   rm -f conftest.er1
20359   cat conftest.err >&5
20360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361   (exit $ac_status); } && {
20362          test -z "$ac_c_werror_flag" ||
20363          test ! -s conftest.err
20364        } && test -s conftest.$ac_objext; then
20365   amanda_cv_linux_sg_scsi=yes
20366 else
20367   echo "$as_me: failed program was:" >&5
20368 sed 's/^/| /' conftest.$ac_ext >&5
20369
20370         amanda_cv_linux_sg_scsi=no
20371 fi
20372
20373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20374 fi
20375 { echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
20376 echo "${ECHO_T}$amanda_cv_linux_sg_scsi" >&6; }
20377     fi
20378
20379     if test x"$amanda_cv_linux_scsi" = x"yes" ||
20380      test x"$amanda_cv_linux_sg_scsi" = x"yes";then
20381             WANT_SCSI_LINUX=yes
20382             WANT_CHG_SCSI=yes
20383     fi
20384
20385     #
20386     # HP-UX SCSI
20387     #
20388     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
20389        test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
20390             { echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
20391 echo $ECHO_N "checking for HP-UX like scsi support... $ECHO_C" >&6; }
20392 if test "${amanda_cv_hpux_scsi+set}" = set; then
20393   echo $ECHO_N "(cached) $ECHO_C" >&6
20394 else
20395   cat >conftest.$ac_ext <<_ACEOF
20396 /* confdefs.h.  */
20397 _ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h.  */
20401
20402 #include <stdio.h>
20403 #include <sys/ioctl.h>
20404 #include <sys/scsi.h>
20405 #include <sys/mtio.h>
20406
20407 int
20408 main ()
20409 {
20410
20411             int device;
20412             char *Command;
20413             ioctl(device, SIOC_IO, Command);
20414
20415   ;
20416   return 0;
20417 }
20418 _ACEOF
20419 rm -f conftest.$ac_objext
20420 if { (ac_try="$ac_compile"
20421 case "(($ac_try" in
20422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423   *) ac_try_echo=$ac_try;;
20424 esac
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426   (eval "$ac_compile") 2>conftest.er1
20427   ac_status=$?
20428   grep -v '^ *+' conftest.er1 >conftest.err
20429   rm -f conftest.er1
20430   cat conftest.err >&5
20431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432   (exit $ac_status); } && {
20433          test -z "$ac_c_werror_flag" ||
20434          test ! -s conftest.err
20435        } && test -s conftest.$ac_objext; then
20436   amanda_cv_hpux_scsi=yes
20437 else
20438   echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20440
20441         amanda_cv_hpux_scsi=no
20442 fi
20443
20444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20445 fi
20446 { echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
20447 echo "${ECHO_T}$amanda_cv_hpux_scsi" >&6; }
20448             if test x"$amanda_cv_hpux_scsi" = x"yes";then
20449                     WANT_SCSI_HPUX_NEW=yes
20450                     WANT_CHG_SCSI=yes
20451                     WANT_CHG_SCSI_CHIO=yes
20452             fi
20453     fi
20454
20455     #
20456     # IRIX SCSI
20457     #
20458     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
20459        test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
20460             { echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
20461 echo $ECHO_N "checking for Irix like scsi support... $ECHO_C" >&6; }
20462 if test "${amanda_cv_irix_scsi+set}" = set; then
20463   echo $ECHO_N "(cached) $ECHO_C" >&6
20464 else
20465   cat >conftest.$ac_ext <<_ACEOF
20466 /* confdefs.h.  */
20467 _ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h.  */
20471
20472 #include <sys/types.h>
20473 #include <sys/dsreq.h>
20474 #include <sys/mtio.h>
20475
20476 int
20477 main ()
20478 {
20479
20480             int device=1;
20481             char Command;
20482             ioctl(device, DS_ENTER, &Command);
20483
20484   ;
20485   return 0;
20486 }
20487 _ACEOF
20488 rm -f conftest.$ac_objext
20489 if { (ac_try="$ac_compile"
20490 case "(($ac_try" in
20491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492   *) ac_try_echo=$ac_try;;
20493 esac
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495   (eval "$ac_compile") 2>conftest.er1
20496   ac_status=$?
20497   grep -v '^ *+' conftest.er1 >conftest.err
20498   rm -f conftest.er1
20499   cat conftest.err >&5
20500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501   (exit $ac_status); } && {
20502          test -z "$ac_c_werror_flag" ||
20503          test ! -s conftest.err
20504        } && test -s conftest.$ac_objext; then
20505   amanda_cv_irix_scsi=yes
20506 else
20507   echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20509
20510         amanda_cv_irix_scsi=no
20511 fi
20512
20513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20514 fi
20515 { echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
20516 echo "${ECHO_T}$amanda_cv_irix_scsi" >&6; }
20517             if test x"$amanda_cv_irix_scsi" = x"yes";then
20518                     WANT_SCSI_IRIX=yes
20519                     WANT_CHG_SCSI=yes
20520             fi
20521     fi
20522
20523     #
20524     # Solaris  SCSI
20525     #
20526     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
20527        test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
20528             { echo "$as_me:$LINENO: checking for Solaris-like scsi support" >&5
20529 echo $ECHO_N "checking for Solaris-like scsi support... $ECHO_C" >&6; }
20530 if test "${amanda_cv_solaris_scsi+set}" = set; then
20531   echo $ECHO_N "(cached) $ECHO_C" >&6
20532 else
20533   cat >conftest.$ac_ext <<_ACEOF
20534 /* confdefs.h.  */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h.  */
20539
20540 #include <sys/types.h>
20541 #include <sys/scsi/impl/uscsi.h>
20542 #include <sys/mtio.h>
20543
20544 int
20545 main ()
20546 {
20547
20548             int device;
20549             char *Command;
20550             ioctl(device, USCSICMD, Command);
20551
20552   ;
20553   return 0;
20554 }
20555 _ACEOF
20556 rm -f conftest.$ac_objext
20557 if { (ac_try="$ac_compile"
20558 case "(($ac_try" in
20559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20560   *) ac_try_echo=$ac_try;;
20561 esac
20562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20563   (eval "$ac_compile") 2>conftest.er1
20564   ac_status=$?
20565   grep -v '^ *+' conftest.er1 >conftest.err
20566   rm -f conftest.er1
20567   cat conftest.err >&5
20568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569   (exit $ac_status); } && {
20570          test -z "$ac_c_werror_flag" ||
20571          test ! -s conftest.err
20572        } && test -s conftest.$ac_objext; then
20573   amanda_cv_solaris_scsi=yes
20574 else
20575   echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20577
20578         amanda_cv_solaris_scsi=no
20579 fi
20580
20581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20582 fi
20583 { echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
20584 echo "${ECHO_T}$amanda_cv_solaris_scsi" >&6; }
20585             if test x"$amanda_cv_solaris_scsi" = x"yes";then
20586                     WANT_SCSI_SOLARIS=yes
20587                     WANT_CHG_SCSI=yes
20588             fi
20589     fi
20590
20591     #
20592     # AIX SCSI
20593     #
20594     if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
20595        test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
20596        test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
20597             { echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
20598 echo $ECHO_N "checking for AIX like scsi support... $ECHO_C" >&6; }
20599 if test "${amanda_cv_aix_scsi+set}" = set; then
20600   echo $ECHO_N "(cached) $ECHO_C" >&6
20601 else
20602   cat >conftest.$ac_ext <<_ACEOF
20603 /* confdefs.h.  */
20604 _ACEOF
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h.  */
20608
20609 #include <sys/types.h>
20610 #include <sys/scarray.h>
20611 #include <sys/tape.h>
20612
20613 int
20614 main ()
20615 {
20616
20617             int device;
20618             char *Command;
20619             ioctl(device, STIOCMD, Command);
20620
20621   ;
20622   return 0;
20623 }
20624 _ACEOF
20625 rm -f conftest.$ac_objext
20626 if { (ac_try="$ac_compile"
20627 case "(($ac_try" in
20628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629   *) ac_try_echo=$ac_try;;
20630 esac
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632   (eval "$ac_compile") 2>conftest.er1
20633   ac_status=$?
20634   grep -v '^ *+' conftest.er1 >conftest.err
20635   rm -f conftest.er1
20636   cat conftest.err >&5
20637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638   (exit $ac_status); } && {
20639          test -z "$ac_c_werror_flag" ||
20640          test ! -s conftest.err
20641        } && test -s conftest.$ac_objext; then
20642   amanda_cv_aix_scsi=yes
20643 else
20644   echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647         amanda_cv_aix_scsi=no
20648 fi
20649
20650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20651 fi
20652 { echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
20653 echo "${ECHO_T}$amanda_cv_aix_scsi" >&6; }
20654             if test x"$amanda_cv_aix_scsi" = x"yes";then
20655                     WANT_SCSI_AIX=yes
20656                     WANT_CHG_SCSI=yes
20657             fi
20658     fi
20659     #
20660     # BSD CAM SCSI
20661     #
20662     if test x"$ac_cv_header_cam_cam_h" = x"yes";then
20663             { echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
20664 echo $ECHO_N "checking for CAM like scsi support... $ECHO_C" >&6; }
20665 if test "${amanda_cv_cam_scsi+set}" = set; then
20666   echo $ECHO_N "(cached) $ECHO_C" >&6
20667 else
20668   cat >conftest.$ac_ext <<_ACEOF
20669 /* confdefs.h.  */
20670 _ACEOF
20671 cat confdefs.h >>conftest.$ac_ext
20672 cat >>conftest.$ac_ext <<_ACEOF
20673 /* end confdefs.h.  */
20674
20675 #include <stdio.h>
20676 # include <fcntl.h>
20677 # include <cam/cam.h>
20678 # include <cam/cam_ccb.h>
20679 # include <cam/scsi/scsi_message.h>
20680 # include <cam/scsi/scsi_pass.h>
20681 # include <camlib.h>
20682
20683 int
20684 main ()
20685 {
20686
20687             struct cam_device *curdev;
20688
20689             curdev = cam_open_pass("", O_RDWR, NULL);
20690
20691   ;
20692   return 0;
20693 }
20694 _ACEOF
20695 rm -f conftest.$ac_objext
20696 if { (ac_try="$ac_compile"
20697 case "(($ac_try" in
20698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699   *) ac_try_echo=$ac_try;;
20700 esac
20701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702   (eval "$ac_compile") 2>conftest.er1
20703   ac_status=$?
20704   grep -v '^ *+' conftest.er1 >conftest.err
20705   rm -f conftest.er1
20706   cat conftest.err >&5
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); } && {
20709          test -z "$ac_c_werror_flag" ||
20710          test ! -s conftest.err
20711        } && test -s conftest.$ac_objext; then
20712   amanda_cv_cam_scsi=yes
20713 else
20714   echo "$as_me: failed program was:" >&5
20715 sed 's/^/| /' conftest.$ac_ext >&5
20716
20717         amanda_cv_cam_scsi=no
20718 fi
20719
20720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20721 fi
20722 { echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
20723 echo "${ECHO_T}$amanda_cv_cam_scsi" >&6; }
20724             if test x"$amanda_cv_cam_scsi" = x"yes";then
20725                     WANT_SCSI_CAM=yes
20726                     WANT_CHG_SCSI=yes
20727
20728 { echo "$as_me:$LINENO: checking for main in -lcam" >&5
20729 echo $ECHO_N "checking for main in -lcam... $ECHO_C" >&6; }
20730 if test "${ac_cv_lib_cam_main+set}" = set; then
20731   echo $ECHO_N "(cached) $ECHO_C" >&6
20732 else
20733   ac_check_lib_save_LIBS=$LIBS
20734 LIBS="-lcam  $LIBS"
20735 cat >conftest.$ac_ext <<_ACEOF
20736 /* confdefs.h.  */
20737 _ACEOF
20738 cat confdefs.h >>conftest.$ac_ext
20739 cat >>conftest.$ac_ext <<_ACEOF
20740 /* end confdefs.h.  */
20741
20742
20743 int
20744 main ()
20745 {
20746 return main ();
20747   ;
20748   return 0;
20749 }
20750 _ACEOF
20751 rm -f conftest.$ac_objext conftest$ac_exeext
20752 if { (ac_try="$ac_link"
20753 case "(($ac_try" in
20754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755   *) ac_try_echo=$ac_try;;
20756 esac
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758   (eval "$ac_link") 2>conftest.er1
20759   ac_status=$?
20760   grep -v '^ *+' conftest.er1 >conftest.err
20761   rm -f conftest.er1
20762   cat conftest.err >&5
20763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764   (exit $ac_status); } && {
20765          test -z "$ac_c_werror_flag" ||
20766          test ! -s conftest.err
20767        } && test -s conftest$ac_exeext &&
20768        $as_test_x conftest$ac_exeext; then
20769   ac_cv_lib_cam_main=yes
20770 else
20771   echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20773
20774         ac_cv_lib_cam_main=no
20775 fi
20776
20777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20778       conftest$ac_exeext conftest.$ac_ext
20779 LIBS=$ac_check_lib_save_LIBS
20780 fi
20781 { echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
20782 echo "${ECHO_T}$ac_cv_lib_cam_main" >&6; }
20783 if test $ac_cv_lib_cam_main = yes; then
20784   cat >>confdefs.h <<_ACEOF
20785 #define HAVE_LIBCAM 1
20786 _ACEOF
20787
20788   LIBS="-lcam $LIBS"
20789
20790 fi
20791
20792             fi
20793     fi
20794
20795
20796     #
20797     # BSD SCSI
20798     #
20799     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
20800        test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
20801         { echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
20802 echo $ECHO_N "checking for BSD like scsi support... $ECHO_C" >&6; }
20803 if test "${amanda_cv_bsd_scsi+set}" = set; then
20804   echo $ECHO_N "(cached) $ECHO_C" >&6
20805 else
20806   cat >conftest.$ac_ext <<_ACEOF
20807 /* confdefs.h.  */
20808 _ACEOF
20809 cat confdefs.h >>conftest.$ac_ext
20810 cat >>conftest.$ac_ext <<_ACEOF
20811 /* end confdefs.h.  */
20812
20813 #include <sys/types.h>
20814 #include <sys/scsiio.h>
20815 #include <sys/mtio.h>
20816
20817 int
20818 main ()
20819 {
20820
20821         int device=1;
20822         char Command;
20823         ioctl(device, SCIOCCOMMAND, &Command);
20824
20825   ;
20826   return 0;
20827 }
20828 _ACEOF
20829 rm -f conftest.$ac_objext
20830 if { (ac_try="$ac_compile"
20831 case "(($ac_try" in
20832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833   *) ac_try_echo=$ac_try;;
20834 esac
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836   (eval "$ac_compile") 2>conftest.er1
20837   ac_status=$?
20838   grep -v '^ *+' conftest.er1 >conftest.err
20839   rm -f conftest.er1
20840   cat conftest.err >&5
20841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842   (exit $ac_status); } && {
20843          test -z "$ac_c_werror_flag" ||
20844          test ! -s conftest.err
20845        } && test -s conftest.$ac_objext; then
20846   amanda_cv_bsd_scsi=yes
20847 else
20848   echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.$ac_ext >&5
20850
20851         amanda_cv_bsd_scsi=no
20852 fi
20853
20854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20855 fi
20856 { echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
20857 echo "${ECHO_T}$amanda_cv_bsd_scsi" >&6; }
20858         if test x"$amanda_cv_bsd_scsi" = x"yes";then
20859            WANT_SCSI_BSD=yes
20860            WANT_CHG_SCSI=yes
20861         fi
20862     fi
20863
20864     # Do not build chg-scsi-chio if we cannot find the needed support
20865     # include files for the SCSI interfaces
20866     # chio.h and sys/chio.h are chio based systems
20867     if test x"$ac_cv_header_chio_h" = x"yes" ||
20868        test x"$ac_cv_header_linux_chio_h" = x"yes" ||
20869        test x"$ac_cv_header_sys_chio_h" = x"yes"; then
20870        # chg-scsi does not support FreeBSD 3.0's chio.h; it became backward
20871        # incompatible with the introduction of camlib.h
20872        if test x"$ac_cv_header_camlib_h" != x"yes"; then
20873          WANT_SCSI_CHIO=yes
20874          # prefer to use chg-scsi, unless we already have a driver for that,
20875          # in which case set it up as chg-scsi-chio.
20876          if test x"$WANT_CHG_SCSI" = x"no"; then
20877            WANT_CHG_SCSI=yes
20878          else
20879            WANT_CHG_SCSI_CHIO=yes
20880          fi
20881        fi
20882     fi
20883
20884     # scsi-based implementations
20885      if test x"$WANT_CHG_SCSI" = x"yes"; then
20886   WANT_CHG_SCSI_TRUE=
20887   WANT_CHG_SCSI_FALSE='#'
20888 else
20889   WANT_CHG_SCSI_TRUE='#'
20890   WANT_CHG_SCSI_FALSE=
20891 fi
20892
20893      if test x"$WANT_SCSI_LINUX" = x"yes"; then
20894   WANT_SCSI_LINUX_TRUE=
20895   WANT_SCSI_LINUX_FALSE='#'
20896 else
20897   WANT_SCSI_LINUX_TRUE='#'
20898   WANT_SCSI_LINUX_FALSE=
20899 fi
20900
20901      if test x"$WANT_SCSI_HPUX_NEW" = x"yes"; then
20902   WANT_SCSI_HPUX_NEW_TRUE=
20903   WANT_SCSI_HPUX_NEW_FALSE='#'
20904 else
20905   WANT_SCSI_HPUX_NEW_TRUE='#'
20906   WANT_SCSI_HPUX_NEW_FALSE=
20907 fi
20908
20909      if test x"$WANT_SCSI_IRIX" = x"yes"; then
20910   WANT_SCSI_IRIX_TRUE=
20911   WANT_SCSI_IRIX_FALSE='#'
20912 else
20913   WANT_SCSI_IRIX_TRUE='#'
20914   WANT_SCSI_IRIX_FALSE=
20915 fi
20916
20917      if test x"$WANT_SCSI_SOLARIS" = x"yes"; then
20918   WANT_SCSI_SOLARIS_TRUE=
20919   WANT_SCSI_SOLARIS_FALSE='#'
20920 else
20921   WANT_SCSI_SOLARIS_TRUE='#'
20922   WANT_SCSI_SOLARIS_FALSE=
20923 fi
20924
20925      if test x"$WANT_SCSI_AIX" = x"yes"; then
20926   WANT_SCSI_AIX_TRUE=
20927   WANT_SCSI_AIX_FALSE='#'
20928 else
20929   WANT_SCSI_AIX_TRUE='#'
20930   WANT_SCSI_AIX_FALSE=
20931 fi
20932
20933      if test x"$WANT_SCSI_CAM" = x"yes"; then
20934   WANT_SCSI_CAM_TRUE=
20935   WANT_SCSI_CAM_FALSE='#'
20936 else
20937   WANT_SCSI_CAM_TRUE='#'
20938   WANT_SCSI_CAM_FALSE=
20939 fi
20940
20941      if test x"$WANT_SCSI_BSD" = x"yes"; then
20942   WANT_SCSI_BSD_TRUE=
20943   WANT_SCSI_BSD_FALSE='#'
20944 else
20945   WANT_SCSI_BSD_TRUE='#'
20946   WANT_SCSI_BSD_FALSE=
20947 fi
20948
20949
20950     # scsi-chio-based implementations
20951      if test x"$WANT_CHG_SCSI_CHIO" = x"yes"; then
20952   WANT_CHG_SCSI_CHIO_TRUE=
20953   WANT_CHG_SCSI_CHIO_FALSE='#'
20954 else
20955   WANT_CHG_SCSI_CHIO_TRUE='#'
20956   WANT_CHG_SCSI_CHIO_FALSE=
20957 fi
20958
20959      if test x"$WANT_SCSI_HPUX" = x"yes"; then
20960   WANT_SCSI_HPUX_TRUE=
20961   WANT_SCSI_HPUX_FALSE='#'
20962 else
20963   WANT_SCSI_HPUX_TRUE='#'
20964   WANT_SCSI_HPUX_FALSE=
20965 fi
20966
20967      if test x"$WANT_SCSI_CHIO" = x"yes"; then
20968   WANT_SCSI_CHIO_TRUE=
20969   WANT_SCSI_CHIO_FALSE='#'
20970 else
20971   WANT_SCSI_CHIO_TRUE='#'
20972   WANT_SCSI_CHIO_FALSE=
20973 fi
20974
20975
20976
20977
20978
20979
20980
20981 for ac_header in fstab.h \
20982         mntent.h \
20983         mnttab.h \
20984         sys/vfstab.h \
20985
20986 do
20987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20989   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20992   echo $ECHO_N "(cached) $ECHO_C" >&6
20993 fi
20994 ac_res=`eval echo '${'$as_ac_Header'}'`
20995                { echo "$as_me:$LINENO: result: $ac_res" >&5
20996 echo "${ECHO_T}$ac_res" >&6; }
20997 else
20998   # Is the header compilable?
20999 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21001 cat >conftest.$ac_ext <<_ACEOF
21002 /* confdefs.h.  */
21003 _ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h.  */
21007 $ac_includes_default
21008 #include <$ac_header>
21009 _ACEOF
21010 rm -f conftest.$ac_objext
21011 if { (ac_try="$ac_compile"
21012 case "(($ac_try" in
21013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014   *) ac_try_echo=$ac_try;;
21015 esac
21016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21017   (eval "$ac_compile") 2>conftest.er1
21018   ac_status=$?
21019   grep -v '^ *+' conftest.er1 >conftest.err
21020   rm -f conftest.er1
21021   cat conftest.err >&5
21022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023   (exit $ac_status); } && {
21024          test -z "$ac_c_werror_flag" ||
21025          test ! -s conftest.err
21026        } && test -s conftest.$ac_objext; then
21027   ac_header_compiler=yes
21028 else
21029   echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21031
21032         ac_header_compiler=no
21033 fi
21034
21035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21037 echo "${ECHO_T}$ac_header_compiler" >&6; }
21038
21039 # Is the header present?
21040 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21042 cat >conftest.$ac_ext <<_ACEOF
21043 /* confdefs.h.  */
21044 _ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h.  */
21048 #include <$ac_header>
21049 _ACEOF
21050 if { (ac_try="$ac_cpp conftest.$ac_ext"
21051 case "(($ac_try" in
21052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21053   *) ac_try_echo=$ac_try;;
21054 esac
21055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21056   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21057   ac_status=$?
21058   grep -v '^ *+' conftest.er1 >conftest.err
21059   rm -f conftest.er1
21060   cat conftest.err >&5
21061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062   (exit $ac_status); } >/dev/null && {
21063          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21064          test ! -s conftest.err
21065        }; then
21066   ac_header_preproc=yes
21067 else
21068   echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21070
21071   ac_header_preproc=no
21072 fi
21073
21074 rm -f conftest.err conftest.$ac_ext
21075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21076 echo "${ECHO_T}$ac_header_preproc" >&6; }
21077
21078 # So?  What about this header?
21079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21080   yes:no: )
21081     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21085     ac_header_preproc=yes
21086     ;;
21087   no:yes:* )
21088     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21090     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21091 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21092     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21094     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21095 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21096     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21098     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21100
21101     ;;
21102 esac
21103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21106   echo $ECHO_N "(cached) $ECHO_C" >&6
21107 else
21108   eval "$as_ac_Header=\$ac_header_preproc"
21109 fi
21110 ac_res=`eval echo '${'$as_ac_Header'}'`
21111                { echo "$as_me:$LINENO: result: $ac_res" >&5
21112 echo "${ECHO_T}$ac_res" >&6; }
21113
21114 fi
21115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21116   cat >>confdefs.h <<_ACEOF
21117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21118 _ACEOF
21119
21120 fi
21121
21122 done
21123
21124
21125
21126 for ac_func in endmntent
21127 do
21128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21129 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21132   echo $ECHO_N "(cached) $ECHO_C" >&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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21142 #define $ac_func innocuous_$ac_func
21143
21144 /* System header to define __stub macros and hopefully few prototypes,
21145     which can conflict with char $ac_func (); below.
21146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21147     <limits.h> exists even on freestanding compilers.  */
21148
21149 #ifdef __STDC__
21150 # include <limits.h>
21151 #else
21152 # include <assert.h>
21153 #endif
21154
21155 #undef $ac_func
21156
21157 /* Override any GCC internal prototype to avoid an error.
21158    Use char because int might match the return type of a GCC
21159    builtin and then its argument prototype would still apply.  */
21160 #ifdef __cplusplus
21161 extern "C"
21162 #endif
21163 char $ac_func ();
21164 /* The GNU C library defines this for functions which it implements
21165     to always fail with ENOSYS.  Some functions are actually named
21166     something starting with __ and the normal name is an alias.  */
21167 #if defined __stub_$ac_func || defined __stub___$ac_func
21168 choke me
21169 #endif
21170
21171 int
21172 main ()
21173 {
21174 return $ac_func ();
21175   ;
21176   return 0;
21177 }
21178 _ACEOF
21179 rm -f conftest.$ac_objext conftest$ac_exeext
21180 if { (ac_try="$ac_link"
21181 case "(($ac_try" in
21182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21183   *) ac_try_echo=$ac_try;;
21184 esac
21185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21186   (eval "$ac_link") 2>conftest.er1
21187   ac_status=$?
21188   grep -v '^ *+' conftest.er1 >conftest.err
21189   rm -f conftest.er1
21190   cat conftest.err >&5
21191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192   (exit $ac_status); } && {
21193          test -z "$ac_c_werror_flag" ||
21194          test ! -s conftest.err
21195        } && test -s conftest$ac_exeext &&
21196        $as_test_x conftest$ac_exeext; then
21197   eval "$as_ac_var=yes"
21198 else
21199   echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21201
21202         eval "$as_ac_var=no"
21203 fi
21204
21205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21206       conftest$ac_exeext conftest.$ac_ext
21207 fi
21208 ac_res=`eval echo '${'$as_ac_var'}'`
21209                { echo "$as_me:$LINENO: result: $ac_res" >&5
21210 echo "${ECHO_T}$ac_res" >&6; }
21211 if test `eval echo '${'$as_ac_var'}'` = yes; then
21212   cat >>confdefs.h <<_ACEOF
21213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21214 _ACEOF
21215
21216 fi
21217 done
21218
21219
21220 for ac_func in setmntent
21221 do
21222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21226   echo $ECHO_N "(cached) $ECHO_C" >&6
21227 else
21228   cat >conftest.$ac_ext <<_ACEOF
21229 /* confdefs.h.  */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h.  */
21234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21236 #define $ac_func innocuous_$ac_func
21237
21238 /* System header to define __stub macros and hopefully few prototypes,
21239     which can conflict with char $ac_func (); below.
21240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21241     <limits.h> exists even on freestanding compilers.  */
21242
21243 #ifdef __STDC__
21244 # include <limits.h>
21245 #else
21246 # include <assert.h>
21247 #endif
21248
21249 #undef $ac_func
21250
21251 /* Override any GCC internal prototype to avoid an error.
21252    Use char because int might match the return type of a GCC
21253    builtin and then its argument prototype would still apply.  */
21254 #ifdef __cplusplus
21255 extern "C"
21256 #endif
21257 char $ac_func ();
21258 /* The GNU C library defines this for functions which it implements
21259     to always fail with ENOSYS.  Some functions are actually named
21260     something starting with __ and the normal name is an alias.  */
21261 #if defined __stub_$ac_func || defined __stub___$ac_func
21262 choke me
21263 #endif
21264
21265 int
21266 main ()
21267 {
21268 return $ac_func ();
21269   ;
21270   return 0;
21271 }
21272 _ACEOF
21273 rm -f conftest.$ac_objext conftest$ac_exeext
21274 if { (ac_try="$ac_link"
21275 case "(($ac_try" in
21276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21277   *) ac_try_echo=$ac_try;;
21278 esac
21279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21280   (eval "$ac_link") 2>conftest.er1
21281   ac_status=$?
21282   grep -v '^ *+' conftest.er1 >conftest.err
21283   rm -f conftest.er1
21284   cat conftest.err >&5
21285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286   (exit $ac_status); } && {
21287          test -z "$ac_c_werror_flag" ||
21288          test ! -s conftest.err
21289        } && test -s conftest$ac_exeext &&
21290        $as_test_x conftest$ac_exeext; then
21291   eval "$as_ac_var=yes"
21292 else
21293   echo "$as_me: failed program was:" >&5
21294 sed 's/^/| /' conftest.$ac_ext >&5
21295
21296         eval "$as_ac_var=no"
21297 fi
21298
21299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21300       conftest$ac_exeext conftest.$ac_ext
21301 fi
21302 ac_res=`eval echo '${'$as_ac_var'}'`
21303                { echo "$as_me:$LINENO: result: $ac_res" >&5
21304 echo "${ECHO_T}$ac_res" >&6; }
21305 if test `eval echo '${'$as_ac_var'}'` = yes; then
21306   cat >>confdefs.h <<_ACEOF
21307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21308 _ACEOF
21309
21310 fi
21311 done
21312
21313
21314
21315
21316
21317
21318
21319
21320 for ac_header in fcntl.h \
21321         sys/fcntl.h \
21322         sys/types.h \
21323         sys/file.h \
21324         unistd.h \
21325
21326 do
21327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21329   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21332   echo $ECHO_N "(cached) $ECHO_C" >&6
21333 fi
21334 ac_res=`eval echo '${'$as_ac_Header'}'`
21335                { echo "$as_me:$LINENO: result: $ac_res" >&5
21336 echo "${ECHO_T}$ac_res" >&6; }
21337 else
21338   # Is the header compilable?
21339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21341 cat >conftest.$ac_ext <<_ACEOF
21342 /* confdefs.h.  */
21343 _ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h.  */
21347 $ac_includes_default
21348 #include <$ac_header>
21349 _ACEOF
21350 rm -f conftest.$ac_objext
21351 if { (ac_try="$ac_compile"
21352 case "(($ac_try" in
21353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354   *) ac_try_echo=$ac_try;;
21355 esac
21356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21357   (eval "$ac_compile") 2>conftest.er1
21358   ac_status=$?
21359   grep -v '^ *+' conftest.er1 >conftest.err
21360   rm -f conftest.er1
21361   cat conftest.err >&5
21362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363   (exit $ac_status); } && {
21364          test -z "$ac_c_werror_flag" ||
21365          test ! -s conftest.err
21366        } && test -s conftest.$ac_objext; then
21367   ac_header_compiler=yes
21368 else
21369   echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21371
21372         ac_header_compiler=no
21373 fi
21374
21375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21377 echo "${ECHO_T}$ac_header_compiler" >&6; }
21378
21379 # Is the header present?
21380 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21382 cat >conftest.$ac_ext <<_ACEOF
21383 /* confdefs.h.  */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h.  */
21388 #include <$ac_header>
21389 _ACEOF
21390 if { (ac_try="$ac_cpp conftest.$ac_ext"
21391 case "(($ac_try" in
21392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21393   *) ac_try_echo=$ac_try;;
21394 esac
21395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21396   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21397   ac_status=$?
21398   grep -v '^ *+' conftest.er1 >conftest.err
21399   rm -f conftest.er1
21400   cat conftest.err >&5
21401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402   (exit $ac_status); } >/dev/null && {
21403          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21404          test ! -s conftest.err
21405        }; then
21406   ac_header_preproc=yes
21407 else
21408   echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21410
21411   ac_header_preproc=no
21412 fi
21413
21414 rm -f conftest.err conftest.$ac_ext
21415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21416 echo "${ECHO_T}$ac_header_preproc" >&6; }
21417
21418 # So?  What about this header?
21419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21420   yes:no: )
21421     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21425     ac_header_preproc=yes
21426     ;;
21427   no:yes:* )
21428     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21430     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21431 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21432     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21434     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21435 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21438     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21440
21441     ;;
21442 esac
21443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21446   echo $ECHO_N "(cached) $ECHO_C" >&6
21447 else
21448   eval "$as_ac_Header=\$ac_header_preproc"
21449 fi
21450 ac_res=`eval echo '${'$as_ac_Header'}'`
21451                { echo "$as_me:$LINENO: result: $ac_res" >&5
21452 echo "${ECHO_T}$ac_res" >&6; }
21453
21454 fi
21455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21456   cat >>confdefs.h <<_ACEOF
21457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21458 _ACEOF
21459
21460 fi
21461
21462 done
21463
21464
21465     # find a working file-locking mechanism.
21466     # Note: these all use AC_TRY_LINK to make sure that we can compile
21467     # and link each variant.  They do not try to test the variants --
21468     # that is left to runtime.
21469     WORKING_FILE_LOCK="no"
21470
21471     # check POSIX locking
21472     { echo "$as_me:$LINENO: checking whether POSIX locking (with fcntl(2)) is available" >&5
21473 echo $ECHO_N "checking whether POSIX locking (with fcntl(2)) is available... $ECHO_C" >&6; }
21474 if test "${amanda_cv_posix_filelocking+set}" = set; then
21475   echo $ECHO_N "(cached) $ECHO_C" >&6
21476 else
21477
21478             cat >conftest.$ac_ext <<_ACEOF
21479 /* confdefs.h.  */
21480 _ACEOF
21481 cat confdefs.h >>conftest.$ac_ext
21482 cat >>conftest.$ac_ext <<_ACEOF
21483 /* end confdefs.h.  */
21484
21485 #if HAVE_SYS_TYPES_H
21486 # include <sys/types.h>
21487 #endif
21488 #if HAVE_UNISTD_H
21489 # include <unistd.h>
21490 #endif
21491 #if HAVE_FCNTL_H
21492 # include <fcntl.h>
21493 #endif
21494
21495 int
21496 main ()
21497 {
21498
21499             struct flock lock;
21500
21501             lock.l_type = F_RDLCK;
21502             lock.l_start = 0;
21503             lock.l_whence = SEEK_CUR;
21504             lock.l_len = 0;
21505             return fcntl(1, F_SETLK, &lock);
21506
21507   ;
21508   return 0;
21509 }
21510 _ACEOF
21511 rm -f conftest.$ac_objext conftest$ac_exeext
21512 if { (ac_try="$ac_link"
21513 case "(($ac_try" in
21514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515   *) ac_try_echo=$ac_try;;
21516 esac
21517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518   (eval "$ac_link") 2>conftest.er1
21519   ac_status=$?
21520   grep -v '^ *+' conftest.er1 >conftest.err
21521   rm -f conftest.er1
21522   cat conftest.err >&5
21523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524   (exit $ac_status); } && {
21525          test -z "$ac_c_werror_flag" ||
21526          test ! -s conftest.err
21527        } && test -s conftest$ac_exeext &&
21528        $as_test_x conftest$ac_exeext; then
21529
21530         amanda_cv_posix_filelocking="yes"
21531
21532 else
21533   echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21535
21536
21537         amanda_cv_posix_filelocking="no"
21538
21539 fi
21540
21541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21542       conftest$ac_exeext conftest.$ac_ext
21543
21544 fi
21545 { echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
21546 echo "${ECHO_T}$amanda_cv_posix_filelocking" >&6; }
21547     if test "x$amanda_cv_posix_filelocking" = xyes; then
21548
21549 cat >>confdefs.h <<\_ACEOF
21550 #define WANT_AMFLOCK_POSIX 1
21551 _ACEOF
21552
21553         WANT_AMFLOCK_POSIX="yes"
21554         WORKING_FILE_LOCK="yes"
21555     fi
21556      if test x"$WANT_AMFLOCK_POSIX" = x"yes"; then
21557   WANT_AMFLOCK_POSIX_TRUE=
21558   WANT_AMFLOCK_POSIX_FALSE='#'
21559 else
21560   WANT_AMFLOCK_POSIX_TRUE='#'
21561   WANT_AMFLOCK_POSIX_FALSE=
21562 fi
21563
21564
21565     # check flock-based (BSD) locking
21566     { echo "$as_me:$LINENO: checking whether flock locking is available" >&5
21567 echo $ECHO_N "checking whether flock locking is available... $ECHO_C" >&6; }
21568 if test "${amanda_cv_flock_filelocking+set}" = set; then
21569   echo $ECHO_N "(cached) $ECHO_C" >&6
21570 else
21571
21572             cat >conftest.$ac_ext <<_ACEOF
21573 /* confdefs.h.  */
21574 _ACEOF
21575 cat confdefs.h >>conftest.$ac_ext
21576 cat >>conftest.$ac_ext <<_ACEOF
21577 /* end confdefs.h.  */
21578
21579 #if HAVE_SYS_FILE_H
21580 # include <sys/file.h>
21581 #endif
21582
21583 int
21584 main ()
21585 {
21586
21587             return flock(1, LOCK_SH);
21588
21589   ;
21590   return 0;
21591 }
21592 _ACEOF
21593 rm -f conftest.$ac_objext conftest$ac_exeext
21594 if { (ac_try="$ac_link"
21595 case "(($ac_try" in
21596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21597   *) ac_try_echo=$ac_try;;
21598 esac
21599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21600   (eval "$ac_link") 2>conftest.er1
21601   ac_status=$?
21602   grep -v '^ *+' conftest.er1 >conftest.err
21603   rm -f conftest.er1
21604   cat conftest.err >&5
21605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606   (exit $ac_status); } && {
21607          test -z "$ac_c_werror_flag" ||
21608          test ! -s conftest.err
21609        } && test -s conftest$ac_exeext &&
21610        $as_test_x conftest$ac_exeext; then
21611
21612         amanda_cv_flock_filelocking="yes"
21613
21614 else
21615   echo "$as_me: failed program was:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21617
21618
21619         amanda_cv_flock_filelocking="no"
21620
21621 fi
21622
21623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21624       conftest$ac_exeext conftest.$ac_ext
21625
21626 fi
21627 { echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
21628 echo "${ECHO_T}$amanda_cv_flock_filelocking" >&6; }
21629     if test "x$amanda_cv_flock_filelocking" = xyes; then
21630
21631 cat >>confdefs.h <<\_ACEOF
21632 #define WANT_AMFLOCK_FLOCK 1
21633 _ACEOF
21634
21635         WANT_AMFLOCK_FLOCK="yes"
21636         WORKING_FILE_LOCK="yes"
21637     fi
21638      if test x"$WANT_AMFLOCK_FLOCK" = x"yes"; then
21639   WANT_AMFLOCK_FLOCK_TRUE=
21640   WANT_AMFLOCK_FLOCK_FALSE='#'
21641 else
21642   WANT_AMFLOCK_FLOCK_TRUE='#'
21643   WANT_AMFLOCK_FLOCK_FALSE=
21644 fi
21645
21646
21647     # check lockf-based (SVR2, SVR3, SVR4) locking
21648     { echo "$as_me:$LINENO: checking whether lockf(3) locking is available" >&5
21649 echo $ECHO_N "checking whether lockf(3) locking is available... $ECHO_C" >&6; }
21650 if test "${amanda_cv_lockf_filelocking+set}" = set; then
21651   echo $ECHO_N "(cached) $ECHO_C" >&6
21652 else
21653
21654             cat >conftest.$ac_ext <<_ACEOF
21655 /* confdefs.h.  */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h.  */
21660
21661 #if HAVE_UNISTD_H
21662 # include <unistd.h>
21663 #endif
21664
21665 int
21666 main ()
21667 {
21668
21669             return lockf(1, F_LOCK, 0);
21670
21671   ;
21672   return 0;
21673 }
21674 _ACEOF
21675 rm -f conftest.$ac_objext conftest$ac_exeext
21676 if { (ac_try="$ac_link"
21677 case "(($ac_try" in
21678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679   *) ac_try_echo=$ac_try;;
21680 esac
21681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21682   (eval "$ac_link") 2>conftest.er1
21683   ac_status=$?
21684   grep -v '^ *+' conftest.er1 >conftest.err
21685   rm -f conftest.er1
21686   cat conftest.err >&5
21687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688   (exit $ac_status); } && {
21689          test -z "$ac_c_werror_flag" ||
21690          test ! -s conftest.err
21691        } && test -s conftest$ac_exeext &&
21692        $as_test_x conftest$ac_exeext; then
21693
21694         amanda_cv_lockf_filelocking="yes"
21695
21696 else
21697   echo "$as_me: failed program was:" >&5
21698 sed 's/^/| /' conftest.$ac_ext >&5
21699
21700
21701         amanda_cv_lockf_filelocking="no"
21702
21703 fi
21704
21705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21706       conftest$ac_exeext conftest.$ac_ext
21707
21708 fi
21709 { echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
21710 echo "${ECHO_T}$amanda_cv_lockf_filelocking" >&6; }
21711     if test "x$amanda_cv_lockf_filelocking" = xyes; then
21712
21713 cat >>confdefs.h <<\_ACEOF
21714 #define WANT_AMFLOCK_LOCKF 1
21715 _ACEOF
21716
21717         WANT_AMFLOCK_LOCKF="yes"
21718         WORKING_FILE_LOCK="yes"
21719     fi
21720      if test x"$WANT_AMFLOCK_LOCKF" = x"yes"; then
21721   WANT_AMFLOCK_LOCKF_TRUE=
21722   WANT_AMFLOCK_LOCKF_FALSE='#'
21723 else
21724   WANT_AMFLOCK_LOCKF_TRUE='#'
21725   WANT_AMFLOCK_LOCKF_FALSE=
21726 fi
21727
21728
21729     # check our homebrew hardlink-based locking (requires hardlinks)
21730     { echo "$as_me:$LINENO: checking whether link(2) is available for locking" >&5
21731 echo $ECHO_N "checking whether link(2) is available for locking... $ECHO_C" >&6; }
21732 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
21733   echo $ECHO_N "(cached) $ECHO_C" >&6
21734 else
21735
21736             cat >conftest.$ac_ext <<_ACEOF
21737 /* confdefs.h.  */
21738 _ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h.  */
21742
21743 #if HAVE_UNISTD_H
21744 # include <unistd.h>
21745 #endif
21746
21747 int
21748 main ()
21749 {
21750
21751             return link("/tmp/foo", "/tmp/bar");
21752
21753   ;
21754   return 0;
21755 }
21756 _ACEOF
21757 rm -f conftest.$ac_objext conftest$ac_exeext
21758 if { (ac_try="$ac_link"
21759 case "(($ac_try" in
21760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761   *) ac_try_echo=$ac_try;;
21762 esac
21763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21764   (eval "$ac_link") 2>conftest.er1
21765   ac_status=$?
21766   grep -v '^ *+' conftest.er1 >conftest.err
21767   rm -f conftest.er1
21768   cat conftest.err >&5
21769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770   (exit $ac_status); } && {
21771          test -z "$ac_c_werror_flag" ||
21772          test ! -s conftest.err
21773        } && test -s conftest$ac_exeext &&
21774        $as_test_x conftest$ac_exeext; then
21775
21776         amanda_cv_lnlock_filelocking="yes"
21777
21778 else
21779   echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21781
21782
21783         amanda_cv_lnlock_filelocking="no"
21784
21785 fi
21786
21787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21788       conftest$ac_exeext conftest.$ac_ext
21789
21790 fi
21791 { echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
21792 echo "${ECHO_T}$amanda_cv_lnlock_filelocking" >&6; }
21793     if test "x$amanda_cv_lnlock_filelocking" = xyes; then
21794
21795 cat >>confdefs.h <<\_ACEOF
21796 #define WANT_AMFLOCK_LNLOCK 1
21797 _ACEOF
21798
21799         WANT_AMFLOCK_LNLOCK="yes"
21800         WORKING_FILE_LOCK="yes"
21801     fi
21802      if test x"$WANT_AMFLOCK_LNLOCK" = x"yes"; then
21803   WANT_AMFLOCK_LNLOCK_TRUE=
21804   WANT_AMFLOCK_LNLOCK_FALSE='#'
21805 else
21806   WANT_AMFLOCK_LNLOCK_TRUE='#'
21807   WANT_AMFLOCK_LNLOCK_FALSE=
21808 fi
21809
21810
21811     if test x"$WORKING_FILE_LOCK" = "no"; then
21812         # this shouldn't happen, and is *bad* if it does
21813         { { echo "$as_me:$LINENO: error: *** No working file locking capability found!" >&5
21814 echo "$as_me: error: *** No working file locking capability found!" >&2;}
21815    { (exit 1); exit 1; }; }
21816     fi
21817
21818
21819
21820     for ac_prog in swig
21821 do
21822   # Extract the first word of "$ac_prog", so it can be a program name with args.
21823 set dummy $ac_prog; ac_word=$2
21824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21826 if test "${ac_cv_path_SWIG+set}" = set; then
21827   echo $ECHO_N "(cached) $ECHO_C" >&6
21828 else
21829   case $SWIG in
21830   [\\/]* | ?:[\\/]*)
21831   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
21832   ;;
21833   *)
21834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21835 for as_dir in $LOCSYSPATH
21836 do
21837   IFS=$as_save_IFS
21838   test -z "$as_dir" && as_dir=.
21839   for ac_exec_ext in '' $ac_executable_extensions; do
21840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21841     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
21842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21843     break 2
21844   fi
21845 done
21846 done
21847 IFS=$as_save_IFS
21848
21849   ;;
21850 esac
21851 fi
21852 SWIG=$ac_cv_path_SWIG
21853 if test -n "$SWIG"; then
21854   { echo "$as_me:$LINENO: result: $SWIG" >&5
21855 echo "${ECHO_T}$SWIG" >&6; }
21856 else
21857   { echo "$as_me:$LINENO: result: no" >&5
21858 echo "${ECHO_T}no" >&6; }
21859 fi
21860
21861
21862   test -n "$SWIG" && break
21863 done
21864
21865
21866
21867         # Extract the first word of "swig", so it can be a program name with args.
21868 set dummy swig; ac_word=$2
21869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21871 if test "${ac_cv_path_SWIG+set}" = set; then
21872   echo $ECHO_N "(cached) $ECHO_C" >&6
21873 else
21874   case $SWIG in
21875   [\\/]* | ?:[\\/]*)
21876   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
21877   ;;
21878   *)
21879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21880 for as_dir in $PATH
21881 do
21882   IFS=$as_save_IFS
21883   test -z "$as_dir" && as_dir=.
21884   for ac_exec_ext in '' $ac_executable_extensions; do
21885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21886     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
21887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21888     break 2
21889   fi
21890 done
21891 done
21892 IFS=$as_save_IFS
21893
21894   ;;
21895 esac
21896 fi
21897 SWIG=$ac_cv_path_SWIG
21898 if test -n "$SWIG"; then
21899   { echo "$as_me:$LINENO: result: $SWIG" >&5
21900 echo "${ECHO_T}$SWIG" >&6; }
21901 else
21902   { echo "$as_me:$LINENO: result: no" >&5
21903 echo "${ECHO_T}no" >&6; }
21904 fi
21905
21906
21907         if test -z "$SWIG" ; then
21908                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
21909         elif test -n "1.3.28" ; then
21910                 { echo "$as_me:$LINENO: checking for SWIG version" >&5
21911 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
21912                 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'`
21913                 { echo "$as_me:$LINENO: result: $swig_version" >&5
21914 echo "${ECHO_T}$swig_version" >&6; }
21915                 if test -n "$swig_version" ; then
21916                         # Calculate the required version number components
21917                         required=1.3.28
21918                         required_major=`echo $required | sed 's/[^0-9].*//'`
21919                         if test -z "$required_major" ; then
21920                                 required_major=0
21921                         fi
21922                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
21923                         required_minor=`echo $required | sed 's/[^0-9].*//'`
21924                         if test -z "$required_minor" ; then
21925                                 required_minor=0
21926                         fi
21927                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
21928                         required_patch=`echo $required | sed 's/[^0-9].*//'`
21929                         if test -z "$required_patch" ; then
21930                                 required_patch=0
21931                         fi
21932                         # Calculate the available version number components
21933                         available=$swig_version
21934                         available_major=`echo $available | sed 's/[^0-9].*//'`
21935                         if test -z "$available_major" ; then
21936                                 available_major=0
21937                         fi
21938                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
21939                         available_minor=`echo $available | sed 's/[^0-9].*//'`
21940                         if test -z "$available_minor" ; then
21941                                 available_minor=0
21942                         fi
21943                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
21944                         available_patch=`echo $available | sed 's/[^0-9].*//'`
21945                         if test -z "$available_patch" ; then
21946                                 available_patch=0
21947                         fi
21948                         if test $available_major -ne $required_major \
21949                                 -o $available_minor -ne $required_minor \
21950                                 -o $available_patch -lt $required_patch ; then
21951                                 SWIG='echo "Error: SWIG version >= 1.3.28 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
21952                         else
21953                                 SWIG_LIB=`$SWIG -swiglib`
21954                         fi
21955                 else
21956                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
21957                 fi
21958         fi
21959
21960
21961
21962
21963
21964     for ac_prog in perl5 perl
21965 do
21966   # Extract the first word of "$ac_prog", so it can be a program name with args.
21967 set dummy $ac_prog; ac_word=$2
21968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21970 if test "${ac_cv_path_PERL+set}" = set; then
21971   echo $ECHO_N "(cached) $ECHO_C" >&6
21972 else
21973   case $PERL in
21974   [\\/]* | ?:[\\/]*)
21975   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
21976   ;;
21977   *)
21978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21979 for as_dir in $LOCSYSPATH
21980 do
21981   IFS=$as_save_IFS
21982   test -z "$as_dir" && as_dir=.
21983   for ac_exec_ext in '' $ac_executable_extensions; do
21984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21985     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
21986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21987     break 2
21988   fi
21989 done
21990 done
21991 IFS=$as_save_IFS
21992
21993   ;;
21994 esac
21995 fi
21996 PERL=$ac_cv_path_PERL
21997 if test -n "$PERL"; then
21998   { echo "$as_me:$LINENO: result: $PERL" >&5
21999 echo "${ECHO_T}$PERL" >&6; }
22000 else
22001   { echo "$as_me:$LINENO: result: no" >&5
22002 echo "${ECHO_T}no" >&6; }
22003 fi
22004
22005
22006   test -n "$PERL" && break
22007 done
22008
22009
22010     # Make sure we have perl
22011 if test -z "$PERL"; then
22012 # Extract the first word of "perl", so it can be a program name with args.
22013 set dummy perl; ac_word=$2
22014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22016 if test "${ac_cv_prog_PERL+set}" = set; then
22017   echo $ECHO_N "(cached) $ECHO_C" >&6
22018 else
22019   if test -n "$PERL"; then
22020   ac_cv_prog_PERL="$PERL" # Let the user override the test.
22021 else
22022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22023 for as_dir in $PATH
22024 do
22025   IFS=$as_save_IFS
22026   test -z "$as_dir" && as_dir=.
22027   for ac_exec_ext in '' $ac_executable_extensions; do
22028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22029     ac_cv_prog_PERL="perl"
22030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22031     break 2
22032   fi
22033 done
22034 done
22035 IFS=$as_save_IFS
22036
22037 fi
22038 fi
22039 PERL=$ac_cv_prog_PERL
22040 if test -n "$PERL"; then
22041   { echo "$as_me:$LINENO: result: $PERL" >&5
22042 echo "${ECHO_T}$PERL" >&6; }
22043 else
22044   { echo "$as_me:$LINENO: result: no" >&5
22045 echo "${ECHO_T}no" >&6; }
22046 fi
22047
22048
22049 fi
22050
22051 # Check if version of Perl is sufficient
22052 ac_perl_version="5.6.0"
22053
22054 if test "x$PERL" != "x"; then
22055   { echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
22056 echo $ECHO_N "checking for perl version greater than or equal to $ac_perl_version... $ECHO_C" >&6; }
22057   # NB: It would be nice to log the error if there is one, but we cannot rely
22058   # on autoconf internals
22059   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
22060   if test $? -ne 0; then
22061     { echo "$as_me:$LINENO: result: no" >&5
22062 echo "${ECHO_T}no" >&6; };
22063
22064         { { echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
22065 echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
22066    { (exit 1); exit 1; }; }
22067
22068   else
22069     { echo "$as_me:$LINENO: result: ok" >&5
22070 echo "${ECHO_T}ok" >&6; };
22071
22072   fi
22073 else
22074   { echo "$as_me:$LINENO: WARNING: could not find perl" >&5
22075 echo "$as_me: WARNING: could not find perl" >&2;}
22076 fi
22077
22078
22079
22080
22081
22082
22083     # If we want cygwin to copy ddl to modules directory.
22084     WANT_CYGWIN_COPY_PERL_DLL="false"
22085
22086     # get the include path for building perl extensions
22087     PERL_INC=`$PERL -MExtUtils::Embed -e perl_inc`
22088
22089
22090     if test x"$enable_shared" = x"no"; then
22091         { { echo "$as_me:$LINENO: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&5
22092 echo "$as_me: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&2;}
22093    { (exit 1); exit 1; }; }
22094     fi
22095
22096     case "$target" in
22097         *freebsd[123456]*) # up to and including FreeBSD 6.*
22098             # Before 7.0, FreeBSD systems don't include a DT_NEEDS segment in
22099             # libgthread to automatically pull in the desired threading library.
22100             # Instead, they assume that any application linking against
22101             # libgthread will pull in the threading library.  This is fine for
22102             # Amanda C applications, but for Perl applications this assumption
22103             # means that the perl binary would pull in the threading library.
22104             # But perl is compiled without threading by default.
22105             #
22106             # Specifically, this occurs on any FreeBSD using gcc-3.*: the linking
22107             # decision is made in gcc's spec files, which were changed in
22108             # gcc-4.0.  For a more in-depth discussion, see
22109             #  http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_FreeBSD
22110             #
22111             # The easiest solution for the "default" case is to link all perl
22112             # extension libraries against the threading library, so it is loaded
22113             # when perl loads the extension library.  The default threading
22114             # library in FreeBSD is libpthread.  The below default will work on
22115             # such a FreeBSD system, but ports maintainers and those with
22116             # different configurations may need to override this value with
22117             # --with-perlextlibs.
22118             #
22119             # We can't use -pthread because gcc on FreeBSD ignores -pthread in
22120             # combination with -shared.  See
22121             #   http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026229.html
22122
22123             PERLEXTLIBS="-lpthread"
22124             ;;
22125         *-pc-cygwin)
22126             # When need -lperl and the '-L' where it is located,
22127             # we don't want the DynaLoader.a
22128             PERLEXTLIBS=`perl -MExtUtils::Embed -e ldopts | sed -e 's/^.*-L/-L/'`
22129             WANT_CYGWIN_COPY_PERL_DLL="true";
22130             ;;
22131     esac
22132      if $WANT_CYGWIN_COPY_PERL_DLL; then
22133   WANT_CYGWIN_COPY_PERL_DLL_TRUE=
22134   WANT_CYGWIN_COPY_PERL_DLL_FALSE='#'
22135 else
22136   WANT_CYGWIN_COPY_PERL_DLL_TRUE='#'
22137   WANT_CYGWIN_COPY_PERL_DLL_FALSE=
22138 fi
22139
22140
22141
22142 # Check whether --with-perlextlibs was given.
22143 if test "${with_perlextlibs+set}" = set; then
22144   withval=$with_perlextlibs;
22145             case "$withval" in
22146                 y|ye|yes) { { echo "$as_me:$LINENO: error: *** You must specify a value for --with-perlextlibs" >&5
22147 echo "$as_me: error: *** You must specify a value for --with-perlextlibs" >&2;}
22148    { (exit 1); exit 1; }; };;
22149                 n|no) PERLEXTLIBS='';;
22150                 *) PERLEXTLIBS="$withval" ;;
22151             esac
22152
22153 fi
22154
22155
22156
22157
22158
22159     # Extract the first word of "cat", so it can be a program name with args.
22160 set dummy cat; ac_word=$2
22161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22163 if test "${ac_cv_path_CAT+set}" = set; then
22164   echo $ECHO_N "(cached) $ECHO_C" >&6
22165 else
22166   case $CAT in
22167   [\\/]* | ?:[\\/]*)
22168   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
22169   ;;
22170   *)
22171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22172 for as_dir in $LOCSYSPATH
22173 do
22174   IFS=$as_save_IFS
22175   test -z "$as_dir" && as_dir=.
22176   for ac_exec_ext in '' $ac_executable_extensions; do
22177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22178     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
22179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22180     break 2
22181   fi
22182 done
22183 done
22184 IFS=$as_save_IFS
22185
22186   test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="cat"
22187   ;;
22188 esac
22189 fi
22190 CAT=$ac_cv_path_CAT
22191 if test -n "$CAT"; then
22192   { echo "$as_me:$LINENO: result: $CAT" >&5
22193 echo "${ECHO_T}$CAT" >&6; }
22194 else
22195   { echo "$as_me:$LINENO: result: no" >&5
22196 echo "${ECHO_T}no" >&6; }
22197 fi
22198
22199
22200
22201
22202
22203
22204
22205
22206     if test "$GZIP"; then
22207
22208 cat >>confdefs.h <<\_ACEOF
22209 #define HAVE_GZIP 1
22210 _ACEOF
22211
22212         COMPRESS_PATH="$GZIP"
22213         COMPRESS_SUFFIX=".gz"
22214         COMPRESS_FAST_OPT="--fast"
22215         COMPRESS_BEST_OPT="--best"
22216         UNCOMPRESS_PATH="$GZIP"
22217         UNCOMPRESS_OPT="-dc"
22218     else
22219         if test "$COMPRESS"; then
22220             COMPRESS_PATH="$COMPRESS"
22221             COMPRESS_SUFFIX=".Z"
22222             COMPRESS_FAST_OPT="-f"
22223             COMPRESS_BEST_OPT="-f"
22224             UNCOMPRESS_PATH="$COMPRESS"
22225             UNCOMPRESS_OPT="-dc"
22226         else
22227             # If we have to use cat, we don't define COMPRESS_FAST_OPT,
22228             # COMPRESS_BEST_OPT, or UNCOMPRESS_OPT as "" since cat will look
22229             # look for a file by the name of "".
22230             # XXX is the above true? --dustin
22231
22232
22233     { echo "$as_me:$LINENO: WARNING: Cannot find either gzip or compress.  Using cat." >&5
22234 echo "$as_me: WARNING: Cannot find either gzip or compress.  Using cat." >&2;}
22235
22236
22237     cat <<AAW_EOF >>config.warnings
22238 Cannot find either gzip or compress.  Using cat.
22239 AAW_EOF
22240
22241
22242             COMPRESS_PATH="$CAT"
22243             COMPRESS_SUFFIX=""
22244             COMPRESS_FAST_OPT=""
22245             COMPRESS_BEST_OPT=""
22246             UNCOMPRESS_PATH="$CAT"
22247             UNCOMPRESS_OPT=""
22248         fi
22249     fi
22250
22251
22252 cat >>confdefs.h <<_ACEOF
22253 #define COMPRESS_PATH "$COMPRESS_PATH"
22254 _ACEOF
22255
22256
22257 cat >>confdefs.h <<_ACEOF
22258 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
22259 _ACEOF
22260
22261
22262 cat >>confdefs.h <<_ACEOF
22263 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
22264 _ACEOF
22265
22266
22267 cat >>confdefs.h <<_ACEOF
22268 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
22269 _ACEOF
22270
22271
22272 cat >>confdefs.h <<_ACEOF
22273 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
22274 _ACEOF
22275
22276
22277 cat >>confdefs.h <<_ACEOF
22278 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
22279 _ACEOF
22280
22281
22282     # Empty GZIP so that make dist works.
22283     GZIP=
22284
22285
22286     { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
22287 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
22288 if test "${ac_cv_has_sockaddr_storage+set}" = set; then
22289   echo $ECHO_N "(cached) $ECHO_C" >&6
22290 else
22291
22292         cat >conftest.$ac_ext <<_ACEOF
22293 /* confdefs.h.  */
22294 _ACEOF
22295 cat confdefs.h >>conftest.$ac_ext
22296 cat >>conftest.$ac_ext <<_ACEOF
22297 /* end confdefs.h.  */
22298
22299 #       include <sys/types.h>
22300 #       include <sys/socket.h>
22301 int
22302 main ()
22303 {
22304 u_int i = sizeof (struct sockaddr_storage)
22305   ;
22306   return 0;
22307 }
22308 _ACEOF
22309 rm -f conftest.$ac_objext
22310 if { (ac_try="$ac_compile"
22311 case "(($ac_try" in
22312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22313   *) ac_try_echo=$ac_try;;
22314 esac
22315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22316   (eval "$ac_compile") 2>conftest.er1
22317   ac_status=$?
22318   grep -v '^ *+' conftest.er1 >conftest.err
22319   rm -f conftest.er1
22320   cat conftest.err >&5
22321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322   (exit $ac_status); } && {
22323          test -z "$ac_c_werror_flag" ||
22324          test ! -s conftest.err
22325        } && test -s conftest.$ac_objext; then
22326   ac_cv_has_sockaddr_storage=yes
22327 else
22328   echo "$as_me: failed program was:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22330
22331         ac_cv_has_sockaddr_storage=no
22332 fi
22333
22334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22335
22336 fi
22337 { echo "$as_me:$LINENO: result: $ac_cv_has_sockaddr_storage" >&5
22338 echo "${ECHO_T}$ac_cv_has_sockaddr_storage" >&6; }
22339
22340     if test $ac_cv_has_sockaddr_storage = yes ; then
22341
22342 cat >>confdefs.h <<\_ACEOF
22343 #define HAVE_SOCKADDR_STORAGE 1
22344 _ACEOF
22345
22346     fi
22347
22348
22349
22350
22351     WORKING_IPV6=no
22352
22353 # Check whether --with-ipv6 was given.
22354 if test "${with_ipv6+set}" = set; then
22355   withval=$with_ipv6;
22356             case "$withval" in
22357             y | ye | yes) amanda_with_ipv6=yes;;
22358             n | no) amanda_with_ipv6=no;;
22359             *)
22360                 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ipv6 option." >&5
22361 echo "$as_me: error: *** You must not supply an argument to --with-ipv6 option." >&2;}
22362    { (exit 1); exit 1; }; }
22363               ;;
22364             esac
22365
22366 else
22367
22368             amanda_with_ipv6=maybe
22369
22370
22371 fi
22372
22373
22374     if test x"$amanda_with_ipv6" = x"yes" ||
22375        test x"$amanda_with_ipv6" = x"maybe" ; then
22376         { echo "$as_me:$LINENO: checking for working IPv6" >&5
22377 echo $ECHO_N "checking for working IPv6... $ECHO_C" >&6; }
22378 if test "${amanda_cv_working_ipv6+set}" = set; then
22379   echo $ECHO_N "(cached) $ECHO_C" >&6
22380 else
22381
22382             case "$target" in
22383                 *-pc-cygwin) amanda_cv_working_ipv6=no;;
22384                 *)
22385                     if test "$cross_compiling" = yes; then
22386    amanda_cv_working_ipv6=yes
22387
22388 else
22389   cat >conftest.$ac_ext <<_ACEOF
22390 /* confdefs.h.  */
22391 _ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h.  */
22395
22396 #include <sys/types.h>
22397 #ifdef HAVE_SYS_SOCKET_H
22398 #include <sys/socket.h>
22399 #endif
22400 #ifdef HAVE_NETINET_IN_H
22401 #include <netinet/in.h>
22402 #endif
22403 #ifdef HAVE_WINSOCK2_H
22404 #include <winsock2.h>
22405 #endif
22406 #include <sys/socket.h>
22407 #include <errno.h>
22408
22409 main()
22410 {
22411    int aa;
22412    aa = socket(AF_INET6, SOCK_STREAM, 0);
22413    if (aa > 0) return 0;
22414    return aa;
22415 }
22416 _ACEOF
22417 rm -f conftest$ac_exeext
22418 if { (ac_try="$ac_link"
22419 case "(($ac_try" in
22420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22421   *) ac_try_echo=$ac_try;;
22422 esac
22423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22424   (eval "$ac_link") 2>&5
22425   ac_status=$?
22426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22428   { (case "(($ac_try" in
22429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430   *) ac_try_echo=$ac_try;;
22431 esac
22432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22433   (eval "$ac_try") 2>&5
22434   ac_status=$?
22435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436   (exit $ac_status); }; }; then
22437    amanda_cv_working_ipv6=yes
22438 else
22439   echo "$as_me: program exited with status $ac_status" >&5
22440 echo "$as_me: failed program was:" >&5
22441 sed 's/^/| /' conftest.$ac_ext >&5
22442
22443 ( exit $ac_status )
22444  amanda_cv_working_ipv6=no
22445 fi
22446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22447 fi
22448
22449
22450             esac
22451
22452 fi
22453 { echo "$as_me:$LINENO: result: $amanda_cv_working_ipv6" >&5
22454 echo "${ECHO_T}$amanda_cv_working_ipv6" >&6; }
22455
22456         if test "$amanda_cv_working_ipv6" = yes; then
22457             WORKING_IPV6=yes
22458
22459 cat >>confdefs.h <<\_ACEOF
22460 #define WORKING_IPV6 1
22461 _ACEOF
22462
22463         else
22464             # error out only if the user specifically requested support
22465             if test x"$amanda_with_ipv6" = x"yes"; then
22466                 { { echo "$as_me:$LINENO: error: IPv6 support was requested, but it is not working." >&5
22467 echo "$as_me: error: IPv6 support was requested, but it is not working." >&2;}
22468    { (exit 1); exit 1; }; }
22469             fi
22470         fi
22471     fi
22472
22473
22474
22475
22476 # Check whether --with-mmap was given.
22477 if test "${with_mmap+set}" = set; then
22478   withval=$with_mmap;
22479             case "$FORCE_MMAP" in
22480                 y | ye | yes | n | no) : ;;
22481                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-mmap." >&5
22482 echo "$as_me: error: *** You must not supply an argument to --with-mmap." >&2;}
22483    { (exit 1); exit 1; }; } ;;
22484             esac
22485             FORCE_MMAP=$withval
22486
22487 else
22488    : ${FORCE_MMAP=no}
22489
22490 fi
22491
22492
22493
22494
22495
22496 for ac_header in \
22497             sys/shm.h \
22498             sys/mman.h \
22499
22500 do
22501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22503   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22506   echo $ECHO_N "(cached) $ECHO_C" >&6
22507 fi
22508 ac_res=`eval echo '${'$as_ac_Header'}'`
22509                { echo "$as_me:$LINENO: result: $ac_res" >&5
22510 echo "${ECHO_T}$ac_res" >&6; }
22511 else
22512   # Is the header compilable?
22513 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22515 cat >conftest.$ac_ext <<_ACEOF
22516 /* confdefs.h.  */
22517 _ACEOF
22518 cat confdefs.h >>conftest.$ac_ext
22519 cat >>conftest.$ac_ext <<_ACEOF
22520 /* end confdefs.h.  */
22521 $ac_includes_default
22522 #include <$ac_header>
22523 _ACEOF
22524 rm -f conftest.$ac_objext
22525 if { (ac_try="$ac_compile"
22526 case "(($ac_try" in
22527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528   *) ac_try_echo=$ac_try;;
22529 esac
22530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22531   (eval "$ac_compile") 2>conftest.er1
22532   ac_status=$?
22533   grep -v '^ *+' conftest.er1 >conftest.err
22534   rm -f conftest.er1
22535   cat conftest.err >&5
22536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537   (exit $ac_status); } && {
22538          test -z "$ac_c_werror_flag" ||
22539          test ! -s conftest.err
22540        } && test -s conftest.$ac_objext; then
22541   ac_header_compiler=yes
22542 else
22543   echo "$as_me: failed program was:" >&5
22544 sed 's/^/| /' conftest.$ac_ext >&5
22545
22546         ac_header_compiler=no
22547 fi
22548
22549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22551 echo "${ECHO_T}$ac_header_compiler" >&6; }
22552
22553 # Is the header present?
22554 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22556 cat >conftest.$ac_ext <<_ACEOF
22557 /* confdefs.h.  */
22558 _ACEOF
22559 cat confdefs.h >>conftest.$ac_ext
22560 cat >>conftest.$ac_ext <<_ACEOF
22561 /* end confdefs.h.  */
22562 #include <$ac_header>
22563 _ACEOF
22564 if { (ac_try="$ac_cpp conftest.$ac_ext"
22565 case "(($ac_try" in
22566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567   *) ac_try_echo=$ac_try;;
22568 esac
22569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22570   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22571   ac_status=$?
22572   grep -v '^ *+' conftest.er1 >conftest.err
22573   rm -f conftest.er1
22574   cat conftest.err >&5
22575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576   (exit $ac_status); } >/dev/null && {
22577          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22578          test ! -s conftest.err
22579        }; then
22580   ac_header_preproc=yes
22581 else
22582   echo "$as_me: failed program was:" >&5
22583 sed 's/^/| /' conftest.$ac_ext >&5
22584
22585   ac_header_preproc=no
22586 fi
22587
22588 rm -f conftest.err conftest.$ac_ext
22589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22590 echo "${ECHO_T}$ac_header_preproc" >&6; }
22591
22592 # So?  What about this header?
22593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22594   yes:no: )
22595     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22599     ac_header_preproc=yes
22600     ;;
22601   no:yes:* )
22602     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22604     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22605 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22606     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22608     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22609 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22612     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22614
22615     ;;
22616 esac
22617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22620   echo $ECHO_N "(cached) $ECHO_C" >&6
22621 else
22622   eval "$as_ac_Header=\$ac_header_preproc"
22623 fi
22624 ac_res=`eval echo '${'$as_ac_Header'}'`
22625                { echo "$as_me:$LINENO: result: $ac_res" >&5
22626 echo "${ECHO_T}$ac_res" >&6; }
22627
22628 fi
22629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22630   cat >>confdefs.h <<_ACEOF
22631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22632 _ACEOF
22633
22634 fi
22635
22636 done
22637
22638
22639
22640
22641 for ac_header in stdlib.h unistd.h
22642 do
22643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22645   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22648   echo $ECHO_N "(cached) $ECHO_C" >&6
22649 fi
22650 ac_res=`eval echo '${'$as_ac_Header'}'`
22651                { echo "$as_me:$LINENO: result: $ac_res" >&5
22652 echo "${ECHO_T}$ac_res" >&6; }
22653 else
22654   # Is the header compilable?
22655 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22657 cat >conftest.$ac_ext <<_ACEOF
22658 /* confdefs.h.  */
22659 _ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h.  */
22663 $ac_includes_default
22664 #include <$ac_header>
22665 _ACEOF
22666 rm -f conftest.$ac_objext
22667 if { (ac_try="$ac_compile"
22668 case "(($ac_try" in
22669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22670   *) ac_try_echo=$ac_try;;
22671 esac
22672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22673   (eval "$ac_compile") 2>conftest.er1
22674   ac_status=$?
22675   grep -v '^ *+' conftest.er1 >conftest.err
22676   rm -f conftest.er1
22677   cat conftest.err >&5
22678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679   (exit $ac_status); } && {
22680          test -z "$ac_c_werror_flag" ||
22681          test ! -s conftest.err
22682        } && test -s conftest.$ac_objext; then
22683   ac_header_compiler=yes
22684 else
22685   echo "$as_me: failed program was:" >&5
22686 sed 's/^/| /' conftest.$ac_ext >&5
22687
22688         ac_header_compiler=no
22689 fi
22690
22691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22693 echo "${ECHO_T}$ac_header_compiler" >&6; }
22694
22695 # Is the header present?
22696 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22698 cat >conftest.$ac_ext <<_ACEOF
22699 /* confdefs.h.  */
22700 _ACEOF
22701 cat confdefs.h >>conftest.$ac_ext
22702 cat >>conftest.$ac_ext <<_ACEOF
22703 /* end confdefs.h.  */
22704 #include <$ac_header>
22705 _ACEOF
22706 if { (ac_try="$ac_cpp conftest.$ac_ext"
22707 case "(($ac_try" in
22708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22709   *) ac_try_echo=$ac_try;;
22710 esac
22711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22712   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22713   ac_status=$?
22714   grep -v '^ *+' conftest.er1 >conftest.err
22715   rm -f conftest.er1
22716   cat conftest.err >&5
22717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718   (exit $ac_status); } >/dev/null && {
22719          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22720          test ! -s conftest.err
22721        }; then
22722   ac_header_preproc=yes
22723 else
22724   echo "$as_me: failed program was:" >&5
22725 sed 's/^/| /' conftest.$ac_ext >&5
22726
22727   ac_header_preproc=no
22728 fi
22729
22730 rm -f conftest.err conftest.$ac_ext
22731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22732 echo "${ECHO_T}$ac_header_preproc" >&6; }
22733
22734 # So?  What about this header?
22735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22736   yes:no: )
22737     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22739     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22741     ac_header_preproc=yes
22742     ;;
22743   no:yes:* )
22744     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22746     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22747 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22748     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22750     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22751 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22754     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22756
22757     ;;
22758 esac
22759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22762   echo $ECHO_N "(cached) $ECHO_C" >&6
22763 else
22764   eval "$as_ac_Header=\$ac_header_preproc"
22765 fi
22766 ac_res=`eval echo '${'$as_ac_Header'}'`
22767                { echo "$as_me:$LINENO: result: $ac_res" >&5
22768 echo "${ECHO_T}$ac_res" >&6; }
22769
22770 fi
22771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22772   cat >>confdefs.h <<_ACEOF
22773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22774 _ACEOF
22775
22776 fi
22777
22778 done
22779
22780
22781 for ac_func in getpagesize
22782 do
22783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22787   echo $ECHO_N "(cached) $ECHO_C" >&6
22788 else
22789   cat >conftest.$ac_ext <<_ACEOF
22790 /* confdefs.h.  */
22791 _ACEOF
22792 cat confdefs.h >>conftest.$ac_ext
22793 cat >>conftest.$ac_ext <<_ACEOF
22794 /* end confdefs.h.  */
22795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22797 #define $ac_func innocuous_$ac_func
22798
22799 /* System header to define __stub macros and hopefully few prototypes,
22800     which can conflict with char $ac_func (); below.
22801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22802     <limits.h> exists even on freestanding compilers.  */
22803
22804 #ifdef __STDC__
22805 # include <limits.h>
22806 #else
22807 # include <assert.h>
22808 #endif
22809
22810 #undef $ac_func
22811
22812 /* Override any GCC internal prototype to avoid an error.
22813    Use char because int might match the return type of a GCC
22814    builtin and then its argument prototype would still apply.  */
22815 #ifdef __cplusplus
22816 extern "C"
22817 #endif
22818 char $ac_func ();
22819 /* The GNU C library defines this for functions which it implements
22820     to always fail with ENOSYS.  Some functions are actually named
22821     something starting with __ and the normal name is an alias.  */
22822 #if defined __stub_$ac_func || defined __stub___$ac_func
22823 choke me
22824 #endif
22825
22826 int
22827 main ()
22828 {
22829 return $ac_func ();
22830   ;
22831   return 0;
22832 }
22833 _ACEOF
22834 rm -f conftest.$ac_objext conftest$ac_exeext
22835 if { (ac_try="$ac_link"
22836 case "(($ac_try" in
22837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22838   *) ac_try_echo=$ac_try;;
22839 esac
22840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22841   (eval "$ac_link") 2>conftest.er1
22842   ac_status=$?
22843   grep -v '^ *+' conftest.er1 >conftest.err
22844   rm -f conftest.er1
22845   cat conftest.err >&5
22846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847   (exit $ac_status); } && {
22848          test -z "$ac_c_werror_flag" ||
22849          test ! -s conftest.err
22850        } && test -s conftest$ac_exeext &&
22851        $as_test_x conftest$ac_exeext; then
22852   eval "$as_ac_var=yes"
22853 else
22854   echo "$as_me: failed program was:" >&5
22855 sed 's/^/| /' conftest.$ac_ext >&5
22856
22857         eval "$as_ac_var=no"
22858 fi
22859
22860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22861       conftest$ac_exeext conftest.$ac_ext
22862 fi
22863 ac_res=`eval echo '${'$as_ac_var'}'`
22864                { echo "$as_me:$LINENO: result: $ac_res" >&5
22865 echo "${ECHO_T}$ac_res" >&6; }
22866 if test `eval echo '${'$as_ac_var'}'` = yes; then
22867   cat >>confdefs.h <<_ACEOF
22868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22869 _ACEOF
22870
22871 fi
22872 done
22873
22874 { echo "$as_me:$LINENO: checking for working mmap" >&5
22875 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
22876 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22877   echo $ECHO_N "(cached) $ECHO_C" >&6
22878 else
22879   if test "$cross_compiling" = yes; then
22880   ac_cv_func_mmap_fixed_mapped=no
22881 else
22882   cat >conftest.$ac_ext <<_ACEOF
22883 /* confdefs.h.  */
22884 _ACEOF
22885 cat confdefs.h >>conftest.$ac_ext
22886 cat >>conftest.$ac_ext <<_ACEOF
22887 /* end confdefs.h.  */
22888 $ac_includes_default
22889 /* malloc might have been renamed as rpl_malloc. */
22890 #undef malloc
22891
22892 /* Thanks to Mike Haertel and Jim Avera for this test.
22893    Here is a matrix of mmap possibilities:
22894         mmap private not fixed
22895         mmap private fixed at somewhere currently unmapped
22896         mmap private fixed at somewhere already mapped
22897         mmap shared not fixed
22898         mmap shared fixed at somewhere currently unmapped
22899         mmap shared fixed at somewhere already mapped
22900    For private mappings, we should verify that changes cannot be read()
22901    back from the file, nor mmap's back from the file at a different
22902    address.  (There have been systems where private was not correctly
22903    implemented like the infamous i386 svr4.0, and systems where the
22904    VM page cache was not coherent with the file system buffer cache
22905    like early versions of FreeBSD and possibly contemporary NetBSD.)
22906    For shared mappings, we should conversely verify that changes get
22907    propagated back to all the places they're supposed to be.
22908
22909    Grep wants private fixed already mapped.
22910    The main things grep needs to know about mmap are:
22911    * does it exist and is it safe to write into the mmap'd area
22912    * how to use it (BSD variants)  */
22913
22914 #include <fcntl.h>
22915 #include <sys/mman.h>
22916
22917 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22918 char *malloc ();
22919 #endif
22920
22921 /* This mess was copied from the GNU getpagesize.h.  */
22922 #ifndef HAVE_GETPAGESIZE
22923 /* Assume that all systems that can run configure have sys/param.h.  */
22924 # ifndef HAVE_SYS_PARAM_H
22925 #  define HAVE_SYS_PARAM_H 1
22926 # endif
22927
22928 # ifdef _SC_PAGESIZE
22929 #  define getpagesize() sysconf(_SC_PAGESIZE)
22930 # else /* no _SC_PAGESIZE */
22931 #  ifdef HAVE_SYS_PARAM_H
22932 #   include <sys/param.h>
22933 #   ifdef EXEC_PAGESIZE
22934 #    define getpagesize() EXEC_PAGESIZE
22935 #   else /* no EXEC_PAGESIZE */
22936 #    ifdef NBPG
22937 #     define getpagesize() NBPG * CLSIZE
22938 #     ifndef CLSIZE
22939 #      define CLSIZE 1
22940 #     endif /* no CLSIZE */
22941 #    else /* no NBPG */
22942 #     ifdef NBPC
22943 #      define getpagesize() NBPC
22944 #     else /* no NBPC */
22945 #      ifdef PAGESIZE
22946 #       define getpagesize() PAGESIZE
22947 #      endif /* PAGESIZE */
22948 #     endif /* no NBPC */
22949 #    endif /* no NBPG */
22950 #   endif /* no EXEC_PAGESIZE */
22951 #  else /* no HAVE_SYS_PARAM_H */
22952 #   define getpagesize() 8192   /* punt totally */
22953 #  endif /* no HAVE_SYS_PARAM_H */
22954 # endif /* no _SC_PAGESIZE */
22955
22956 #endif /* no HAVE_GETPAGESIZE */
22957
22958 int
22959 main ()
22960 {
22961   char *data, *data2, *data3;
22962   int i, pagesize;
22963   int fd;
22964
22965   pagesize = getpagesize ();
22966
22967   /* First, make a file with some known garbage in it. */
22968   data = (char *) malloc (pagesize);
22969   if (!data)
22970     return 1;
22971   for (i = 0; i < pagesize; ++i)
22972     *(data + i) = rand ();
22973   umask (0);
22974   fd = creat ("conftest.mmap", 0600);
22975   if (fd < 0)
22976     return 1;
22977   if (write (fd, data, pagesize) != pagesize)
22978     return 1;
22979   close (fd);
22980
22981   /* Next, try to mmap the file at a fixed address which already has
22982      something else allocated at it.  If we can, also make sure that
22983      we see the same garbage.  */
22984   fd = open ("conftest.mmap", O_RDWR);
22985   if (fd < 0)
22986     return 1;
22987   data2 = (char *) malloc (2 * pagesize);
22988   if (!data2)
22989     return 1;
22990   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
22991   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22992                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22993     return 1;
22994   for (i = 0; i < pagesize; ++i)
22995     if (*(data + i) != *(data2 + i))
22996       return 1;
22997
22998   /* Finally, make sure that changes to the mapped area do not
22999      percolate back to the file as seen by read().  (This is a bug on
23000      some variants of i386 svr4.0.)  */
23001   for (i = 0; i < pagesize; ++i)
23002     *(data2 + i) = *(data2 + i) + 1;
23003   data3 = (char *) malloc (pagesize);
23004   if (!data3)
23005     return 1;
23006   if (read (fd, data3, pagesize) != pagesize)
23007     return 1;
23008   for (i = 0; i < pagesize; ++i)
23009     if (*(data + i) != *(data3 + i))
23010       return 1;
23011   close (fd);
23012   return 0;
23013 }
23014 _ACEOF
23015 rm -f conftest$ac_exeext
23016 if { (ac_try="$ac_link"
23017 case "(($ac_try" in
23018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019   *) ac_try_echo=$ac_try;;
23020 esac
23021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23022   (eval "$ac_link") 2>&5
23023   ac_status=$?
23024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23026   { (case "(($ac_try" in
23027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23028   *) ac_try_echo=$ac_try;;
23029 esac
23030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23031   (eval "$ac_try") 2>&5
23032   ac_status=$?
23033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034   (exit $ac_status); }; }; then
23035   ac_cv_func_mmap_fixed_mapped=yes
23036 else
23037   echo "$as_me: program exited with status $ac_status" >&5
23038 echo "$as_me: failed program was:" >&5
23039 sed 's/^/| /' conftest.$ac_ext >&5
23040
23041 ( exit $ac_status )
23042 ac_cv_func_mmap_fixed_mapped=no
23043 fi
23044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23045 fi
23046
23047
23048 fi
23049 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23050 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
23051 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23052
23053 cat >>confdefs.h <<\_ACEOF
23054 #define HAVE_MMAP 1
23055 _ACEOF
23056
23057 fi
23058 rm -f conftest.mmap
23059
23060
23061
23062 for ac_func in shmget
23063 do
23064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23065 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23067 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23068   echo $ECHO_N "(cached) $ECHO_C" >&6
23069 else
23070   cat >conftest.$ac_ext <<_ACEOF
23071 /* confdefs.h.  */
23072 _ACEOF
23073 cat confdefs.h >>conftest.$ac_ext
23074 cat >>conftest.$ac_ext <<_ACEOF
23075 /* end confdefs.h.  */
23076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23078 #define $ac_func innocuous_$ac_func
23079
23080 /* System header to define __stub macros and hopefully few prototypes,
23081     which can conflict with char $ac_func (); below.
23082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23083     <limits.h> exists even on freestanding compilers.  */
23084
23085 #ifdef __STDC__
23086 # include <limits.h>
23087 #else
23088 # include <assert.h>
23089 #endif
23090
23091 #undef $ac_func
23092
23093 /* Override any GCC internal prototype to avoid an error.
23094    Use char because int might match the return type of a GCC
23095    builtin and then its argument prototype would still apply.  */
23096 #ifdef __cplusplus
23097 extern "C"
23098 #endif
23099 char $ac_func ();
23100 /* The GNU C library defines this for functions which it implements
23101     to always fail with ENOSYS.  Some functions are actually named
23102     something starting with __ and the normal name is an alias.  */
23103 #if defined __stub_$ac_func || defined __stub___$ac_func
23104 choke me
23105 #endif
23106
23107 int
23108 main ()
23109 {
23110 return $ac_func ();
23111   ;
23112   return 0;
23113 }
23114 _ACEOF
23115 rm -f conftest.$ac_objext conftest$ac_exeext
23116 if { (ac_try="$ac_link"
23117 case "(($ac_try" in
23118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23119   *) ac_try_echo=$ac_try;;
23120 esac
23121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23122   (eval "$ac_link") 2>conftest.er1
23123   ac_status=$?
23124   grep -v '^ *+' conftest.er1 >conftest.err
23125   rm -f conftest.er1
23126   cat conftest.err >&5
23127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128   (exit $ac_status); } && {
23129          test -z "$ac_c_werror_flag" ||
23130          test ! -s conftest.err
23131        } && test -s conftest$ac_exeext &&
23132        $as_test_x conftest$ac_exeext; then
23133   eval "$as_ac_var=yes"
23134 else
23135   echo "$as_me: failed program was:" >&5
23136 sed 's/^/| /' conftest.$ac_ext >&5
23137
23138         eval "$as_ac_var=no"
23139 fi
23140
23141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23142       conftest$ac_exeext conftest.$ac_ext
23143 fi
23144 ac_res=`eval echo '${'$as_ac_var'}'`
23145                { echo "$as_me:$LINENO: result: $ac_res" >&5
23146 echo "${ECHO_T}$ac_res" >&6; }
23147 if test `eval echo '${'$as_ac_var'}'` = yes; then
23148   cat >>confdefs.h <<_ACEOF
23149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23150 _ACEOF
23151
23152
23153
23154
23155
23156 for ac_header in sys/types.h \
23157             sys/ipc.h \
23158             sys/shm.h \
23159
23160 do
23161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23163   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23166   echo $ECHO_N "(cached) $ECHO_C" >&6
23167 fi
23168 ac_res=`eval echo '${'$as_ac_Header'}'`
23169                { echo "$as_me:$LINENO: result: $ac_res" >&5
23170 echo "${ECHO_T}$ac_res" >&6; }
23171 else
23172   # Is the header compilable?
23173 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23175 cat >conftest.$ac_ext <<_ACEOF
23176 /* confdefs.h.  */
23177 _ACEOF
23178 cat confdefs.h >>conftest.$ac_ext
23179 cat >>conftest.$ac_ext <<_ACEOF
23180 /* end confdefs.h.  */
23181 $ac_includes_default
23182 #include <$ac_header>
23183 _ACEOF
23184 rm -f conftest.$ac_objext
23185 if { (ac_try="$ac_compile"
23186 case "(($ac_try" in
23187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23188   *) ac_try_echo=$ac_try;;
23189 esac
23190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23191   (eval "$ac_compile") 2>conftest.er1
23192   ac_status=$?
23193   grep -v '^ *+' conftest.er1 >conftest.err
23194   rm -f conftest.er1
23195   cat conftest.err >&5
23196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197   (exit $ac_status); } && {
23198          test -z "$ac_c_werror_flag" ||
23199          test ! -s conftest.err
23200        } && test -s conftest.$ac_objext; then
23201   ac_header_compiler=yes
23202 else
23203   echo "$as_me: failed program was:" >&5
23204 sed 's/^/| /' conftest.$ac_ext >&5
23205
23206         ac_header_compiler=no
23207 fi
23208
23209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23210 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23211 echo "${ECHO_T}$ac_header_compiler" >&6; }
23212
23213 # Is the header present?
23214 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23216 cat >conftest.$ac_ext <<_ACEOF
23217 /* confdefs.h.  */
23218 _ACEOF
23219 cat confdefs.h >>conftest.$ac_ext
23220 cat >>conftest.$ac_ext <<_ACEOF
23221 /* end confdefs.h.  */
23222 #include <$ac_header>
23223 _ACEOF
23224 if { (ac_try="$ac_cpp conftest.$ac_ext"
23225 case "(($ac_try" in
23226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23227   *) ac_try_echo=$ac_try;;
23228 esac
23229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23230   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23231   ac_status=$?
23232   grep -v '^ *+' conftest.er1 >conftest.err
23233   rm -f conftest.er1
23234   cat conftest.err >&5
23235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236   (exit $ac_status); } >/dev/null && {
23237          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23238          test ! -s conftest.err
23239        }; then
23240   ac_header_preproc=yes
23241 else
23242   echo "$as_me: failed program was:" >&5
23243 sed 's/^/| /' conftest.$ac_ext >&5
23244
23245   ac_header_preproc=no
23246 fi
23247
23248 rm -f conftest.err conftest.$ac_ext
23249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23250 echo "${ECHO_T}$ac_header_preproc" >&6; }
23251
23252 # So?  What about this header?
23253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23254   yes:no: )
23255     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23259     ac_header_preproc=yes
23260     ;;
23261   no:yes:* )
23262     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23264     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23265 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23266     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23268     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23269 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23272     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23274
23275     ;;
23276 esac
23277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23280   echo $ECHO_N "(cached) $ECHO_C" >&6
23281 else
23282   eval "$as_ac_Header=\$ac_header_preproc"
23283 fi
23284 ac_res=`eval echo '${'$as_ac_Header'}'`
23285                { echo "$as_me:$LINENO: result: $ac_res" >&5
23286 echo "${ECHO_T}$ac_res" >&6; }
23287
23288 fi
23289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23290   cat >>confdefs.h <<_ACEOF
23291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23292 _ACEOF
23293
23294 fi
23295
23296 done
23297
23298
23299         { echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
23300 echo $ECHO_N "checking for shmdt() argument type... $ECHO_C" >&6; }
23301 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
23302   echo $ECHO_N "(cached) $ECHO_C" >&6
23303 else
23304
23305                 if test "$ac_cv_func_shmget" = yes; then
23306                     cat <<EOF >conftest.$ac_ext
23307 #include "confdefs.h"
23308 #ifdef HAVE_SYS_TYPES_H
23309 # include <sys/types.h>
23310 #endif
23311 #ifdef HAVE_SYS_IPC_H
23312 # include <sys/ipc.h>
23313 #endif
23314 #ifdef HAVE_SYS_SHM_H
23315 # include <sys/shm.h>
23316 #endif
23317
23318 #ifdef __cplusplus
23319 extern "C" void *shmat(int, void *, int);
23320 #else
23321 void *shmat();
23322 #endif
23323
23324 int main()
23325 {
23326     int i;
23327     return 0;
23328 }
23329 EOF
23330                     ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
23331                     if test $? = 0; then
23332                         amanda_cv_shmdt_arg_type=void
23333                     else
23334                         amanda_cv_shmdt_arg_type=char
23335                     fi
23336                     rm -f conftest*
23337                 else
23338                     amanda_cv_shmdt_arg_type=nothing
23339                 fi
23340
23341
23342 fi
23343 { echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
23344 echo "${ECHO_T}$amanda_cv_shmdt_arg_type" >&6; }
23345
23346 cat >>confdefs.h <<_ACEOF
23347 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
23348 _ACEOF
23349
23350
23351
23352             case "$FORCE_MMAP" in
23353             n | no)
23354
23355 cat >>confdefs.h <<\_ACEOF
23356 #define HAVE_SYSVSHM 1
23357 _ACEOF
23358
23359               ;;
23360             esac
23361
23362
23363 fi
23364 done
23365
23366
23367 ice_have_shmat=no
23368
23369 for ac_func in shmat
23370 do
23371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23375   echo $ECHO_N "(cached) $ECHO_C" >&6
23376 else
23377   cat >conftest.$ac_ext <<_ACEOF
23378 /* confdefs.h.  */
23379 _ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h.  */
23383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23385 #define $ac_func innocuous_$ac_func
23386
23387 /* System header to define __stub macros and hopefully few prototypes,
23388     which can conflict with char $ac_func (); below.
23389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23390     <limits.h> exists even on freestanding compilers.  */
23391
23392 #ifdef __STDC__
23393 # include <limits.h>
23394 #else
23395 # include <assert.h>
23396 #endif
23397
23398 #undef $ac_func
23399
23400 /* Override any GCC internal prototype to avoid an error.
23401    Use char because int might match the return type of a GCC
23402    builtin and then its argument prototype would still apply.  */
23403 #ifdef __cplusplus
23404 extern "C"
23405 #endif
23406 char $ac_func ();
23407 /* The GNU C library defines this for functions which it implements
23408     to always fail with ENOSYS.  Some functions are actually named
23409     something starting with __ and the normal name is an alias.  */
23410 #if defined __stub_$ac_func || defined __stub___$ac_func
23411 choke me
23412 #endif
23413
23414 int
23415 main ()
23416 {
23417 return $ac_func ();
23418   ;
23419   return 0;
23420 }
23421 _ACEOF
23422 rm -f conftest.$ac_objext conftest$ac_exeext
23423 if { (ac_try="$ac_link"
23424 case "(($ac_try" in
23425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23426   *) ac_try_echo=$ac_try;;
23427 esac
23428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23429   (eval "$ac_link") 2>conftest.er1
23430   ac_status=$?
23431   grep -v '^ *+' conftest.er1 >conftest.err
23432   rm -f conftest.er1
23433   cat conftest.err >&5
23434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435   (exit $ac_status); } && {
23436          test -z "$ac_c_werror_flag" ||
23437          test ! -s conftest.err
23438        } && test -s conftest$ac_exeext &&
23439        $as_test_x conftest$ac_exeext; then
23440   eval "$as_ac_var=yes"
23441 else
23442   echo "$as_me: failed program was:" >&5
23443 sed 's/^/| /' conftest.$ac_ext >&5
23444
23445         eval "$as_ac_var=no"
23446 fi
23447
23448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23449       conftest$ac_exeext conftest.$ac_ext
23450 fi
23451 ac_res=`eval echo '${'$as_ac_var'}'`
23452                { echo "$as_me:$LINENO: result: $ac_res" >&5
23453 echo "${ECHO_T}$ac_res" >&6; }
23454 if test `eval echo '${'$as_ac_var'}'` = yes; then
23455   cat >>confdefs.h <<_ACEOF
23456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23457 _ACEOF
23458  ice_have_shmat=yes
23459 fi
23460 done
23461
23462 if test "${ice_have_shmat}" = yes; then
23463 { echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
23464 echo $ECHO_N "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6; }
23465 if test "${ice_cv_have_shmat_decl+set}" = set; then
23466   echo $ECHO_N "(cached) $ECHO_C" >&6
23467 else
23468
23469 ice_cv_have_shmat_decl=no
23470 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
23471 ice_re_word='(^|[^a-zA-Z0-9_])'
23472 for header in sys/types.h sys/ipc.h sys/shm.h; do
23473 # Check for ordinary declaration
23474 cat >conftest.$ac_ext <<_ACEOF
23475 /* confdefs.h.  */
23476 _ACEOF
23477 cat confdefs.h >>conftest.$ac_ext
23478 cat >>conftest.$ac_ext <<_ACEOF
23479 /* end confdefs.h.  */
23480 #include <$header>
23481
23482 _ACEOF
23483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23484   $EGREP "${ice_re_word}shmat[  ]*\(" >/dev/null 2>&1; then
23485   ice_cv_have_shmat_decl=yes
23486 fi
23487 rm -f conftest*
23488
23489 if test "$ice_cv_have_shmat_decl" = yes; then
23490         break
23491 fi
23492 # Check for "fixed" declaration like "getpid _PARAMS((int))"
23493 cat >conftest.$ac_ext <<_ACEOF
23494 /* confdefs.h.  */
23495 _ACEOF
23496 cat confdefs.h >>conftest.$ac_ext
23497 cat >>conftest.$ac_ext <<_ACEOF
23498 /* end confdefs.h.  */
23499 #include <$header>
23500
23501 _ACEOF
23502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23503   $EGREP "${ice_re_word}shmat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
23504   ice_cv_have_shmat_decl=yes
23505 fi
23506 rm -f conftest*
23507
23508 if test "$ice_cv_have_shmat_decl" = yes; then
23509         break
23510 fi
23511 done
23512
23513 fi
23514
23515 { echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
23516 echo "${ECHO_T}$ice_cv_have_shmat_decl" >&6; }
23517 if test "$ice_cv_have_shmat_decl" = yes; then
23518
23519 cat >>confdefs.h <<_ACEOF
23520 #define HAVE_SHMAT_DECL 1
23521 _ACEOF
23522
23523 fi
23524 fi
23525
23526
23527 ice_have_shmctl=no
23528
23529 for ac_func in shmctl
23530 do
23531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23532 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23534 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23535   echo $ECHO_N "(cached) $ECHO_C" >&6
23536 else
23537   cat >conftest.$ac_ext <<_ACEOF
23538 /* confdefs.h.  */
23539 _ACEOF
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h.  */
23543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23544    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23545 #define $ac_func innocuous_$ac_func
23546
23547 /* System header to define __stub macros and hopefully few prototypes,
23548     which can conflict with char $ac_func (); below.
23549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23550     <limits.h> exists even on freestanding compilers.  */
23551
23552 #ifdef __STDC__
23553 # include <limits.h>
23554 #else
23555 # include <assert.h>
23556 #endif
23557
23558 #undef $ac_func
23559
23560 /* Override any GCC internal prototype to avoid an error.
23561    Use char because int might match the return type of a GCC
23562    builtin and then its argument prototype would still apply.  */
23563 #ifdef __cplusplus
23564 extern "C"
23565 #endif
23566 char $ac_func ();
23567 /* The GNU C library defines this for functions which it implements
23568     to always fail with ENOSYS.  Some functions are actually named
23569     something starting with __ and the normal name is an alias.  */
23570 #if defined __stub_$ac_func || defined __stub___$ac_func
23571 choke me
23572 #endif
23573
23574 int
23575 main ()
23576 {
23577 return $ac_func ();
23578   ;
23579   return 0;
23580 }
23581 _ACEOF
23582 rm -f conftest.$ac_objext conftest$ac_exeext
23583 if { (ac_try="$ac_link"
23584 case "(($ac_try" in
23585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23586   *) ac_try_echo=$ac_try;;
23587 esac
23588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23589   (eval "$ac_link") 2>conftest.er1
23590   ac_status=$?
23591   grep -v '^ *+' conftest.er1 >conftest.err
23592   rm -f conftest.er1
23593   cat conftest.err >&5
23594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595   (exit $ac_status); } && {
23596          test -z "$ac_c_werror_flag" ||
23597          test ! -s conftest.err
23598        } && test -s conftest$ac_exeext &&
23599        $as_test_x conftest$ac_exeext; then
23600   eval "$as_ac_var=yes"
23601 else
23602   echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23604
23605         eval "$as_ac_var=no"
23606 fi
23607
23608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23609       conftest$ac_exeext conftest.$ac_ext
23610 fi
23611 ac_res=`eval echo '${'$as_ac_var'}'`
23612                { echo "$as_me:$LINENO: result: $ac_res" >&5
23613 echo "${ECHO_T}$ac_res" >&6; }
23614 if test `eval echo '${'$as_ac_var'}'` = yes; then
23615   cat >>confdefs.h <<_ACEOF
23616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23617 _ACEOF
23618  ice_have_shmctl=yes
23619 fi
23620 done
23621
23622 if test "${ice_have_shmctl}" = yes; then
23623 { echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
23624 echo $ECHO_N "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6; }
23625 if test "${ice_cv_have_shmctl_decl+set}" = set; then
23626   echo $ECHO_N "(cached) $ECHO_C" >&6
23627 else
23628
23629 ice_cv_have_shmctl_decl=no
23630 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
23631 ice_re_word='(^|[^a-zA-Z0-9_])'
23632 for header in sys/types.h sys/ipc.h sys/shm.h; do
23633 # Check for ordinary declaration
23634 cat >conftest.$ac_ext <<_ACEOF
23635 /* confdefs.h.  */
23636 _ACEOF
23637 cat confdefs.h >>conftest.$ac_ext
23638 cat >>conftest.$ac_ext <<_ACEOF
23639 /* end confdefs.h.  */
23640 #include <$header>
23641
23642 _ACEOF
23643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23644   $EGREP "${ice_re_word}shmctl[         ]*\(" >/dev/null 2>&1; then
23645   ice_cv_have_shmctl_decl=yes
23646 fi
23647 rm -f conftest*
23648
23649 if test "$ice_cv_have_shmctl_decl" = yes; then
23650         break
23651 fi
23652 # Check for "fixed" declaration like "getpid _PARAMS((int))"
23653 cat >conftest.$ac_ext <<_ACEOF
23654 /* confdefs.h.  */
23655 _ACEOF
23656 cat confdefs.h >>conftest.$ac_ext
23657 cat >>conftest.$ac_ext <<_ACEOF
23658 /* end confdefs.h.  */
23659 #include <$header>
23660
23661 _ACEOF
23662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23663   $EGREP "${ice_re_word}shmctl[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
23664   ice_cv_have_shmctl_decl=yes
23665 fi
23666 rm -f conftest*
23667
23668 if test "$ice_cv_have_shmctl_decl" = yes; then
23669         break
23670 fi
23671 done
23672
23673 fi
23674
23675 { echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
23676 echo "${ECHO_T}$ice_cv_have_shmctl_decl" >&6; }
23677 if test "$ice_cv_have_shmctl_decl" = yes; then
23678
23679 cat >>confdefs.h <<_ACEOF
23680 #define HAVE_SHMCTL_DECL 1
23681 _ACEOF
23682
23683 fi
23684 fi
23685
23686
23687 ice_have_shmdt=no
23688
23689 for ac_func in shmdt
23690 do
23691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23692 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23694 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23695   echo $ECHO_N "(cached) $ECHO_C" >&6
23696 else
23697   cat >conftest.$ac_ext <<_ACEOF
23698 /* confdefs.h.  */
23699 _ACEOF
23700 cat confdefs.h >>conftest.$ac_ext
23701 cat >>conftest.$ac_ext <<_ACEOF
23702 /* end confdefs.h.  */
23703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23705 #define $ac_func innocuous_$ac_func
23706
23707 /* System header to define __stub macros and hopefully few prototypes,
23708     which can conflict with char $ac_func (); below.
23709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23710     <limits.h> exists even on freestanding compilers.  */
23711
23712 #ifdef __STDC__
23713 # include <limits.h>
23714 #else
23715 # include <assert.h>
23716 #endif
23717
23718 #undef $ac_func
23719
23720 /* Override any GCC internal prototype to avoid an error.
23721    Use char because int might match the return type of a GCC
23722    builtin and then its argument prototype would still apply.  */
23723 #ifdef __cplusplus
23724 extern "C"
23725 #endif
23726 char $ac_func ();
23727 /* The GNU C library defines this for functions which it implements
23728     to always fail with ENOSYS.  Some functions are actually named
23729     something starting with __ and the normal name is an alias.  */
23730 #if defined __stub_$ac_func || defined __stub___$ac_func
23731 choke me
23732 #endif
23733
23734 int
23735 main ()
23736 {
23737 return $ac_func ();
23738   ;
23739   return 0;
23740 }
23741 _ACEOF
23742 rm -f conftest.$ac_objext conftest$ac_exeext
23743 if { (ac_try="$ac_link"
23744 case "(($ac_try" in
23745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23746   *) ac_try_echo=$ac_try;;
23747 esac
23748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23749   (eval "$ac_link") 2>conftest.er1
23750   ac_status=$?
23751   grep -v '^ *+' conftest.er1 >conftest.err
23752   rm -f conftest.er1
23753   cat conftest.err >&5
23754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755   (exit $ac_status); } && {
23756          test -z "$ac_c_werror_flag" ||
23757          test ! -s conftest.err
23758        } && test -s conftest$ac_exeext &&
23759        $as_test_x conftest$ac_exeext; then
23760   eval "$as_ac_var=yes"
23761 else
23762   echo "$as_me: failed program was:" >&5
23763 sed 's/^/| /' conftest.$ac_ext >&5
23764
23765         eval "$as_ac_var=no"
23766 fi
23767
23768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23769       conftest$ac_exeext conftest.$ac_ext
23770 fi
23771 ac_res=`eval echo '${'$as_ac_var'}'`
23772                { echo "$as_me:$LINENO: result: $ac_res" >&5
23773 echo "${ECHO_T}$ac_res" >&6; }
23774 if test `eval echo '${'$as_ac_var'}'` = yes; then
23775   cat >>confdefs.h <<_ACEOF
23776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23777 _ACEOF
23778  ice_have_shmdt=yes
23779 fi
23780 done
23781
23782 if test "${ice_have_shmdt}" = yes; then
23783 { echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
23784 echo $ECHO_N "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6; }
23785 if test "${ice_cv_have_shmdt_decl+set}" = set; then
23786   echo $ECHO_N "(cached) $ECHO_C" >&6
23787 else
23788
23789 ice_cv_have_shmdt_decl=no
23790 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
23791 ice_re_word='(^|[^a-zA-Z0-9_])'
23792 for header in sys/types.h sys/ipc.h sys/shm.h; do
23793 # Check for ordinary declaration
23794 cat >conftest.$ac_ext <<_ACEOF
23795 /* confdefs.h.  */
23796 _ACEOF
23797 cat confdefs.h >>conftest.$ac_ext
23798 cat >>conftest.$ac_ext <<_ACEOF
23799 /* end confdefs.h.  */
23800 #include <$header>
23801
23802 _ACEOF
23803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23804   $EGREP "${ice_re_word}shmdt[  ]*\(" >/dev/null 2>&1; then
23805   ice_cv_have_shmdt_decl=yes
23806 fi
23807 rm -f conftest*
23808
23809 if test "$ice_cv_have_shmdt_decl" = yes; then
23810         break
23811 fi
23812 # Check for "fixed" declaration like "getpid _PARAMS((int))"
23813 cat >conftest.$ac_ext <<_ACEOF
23814 /* confdefs.h.  */
23815 _ACEOF
23816 cat confdefs.h >>conftest.$ac_ext
23817 cat >>conftest.$ac_ext <<_ACEOF
23818 /* end confdefs.h.  */
23819 #include <$header>
23820
23821 _ACEOF
23822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23823   $EGREP "${ice_re_word}shmdt[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
23824   ice_cv_have_shmdt_decl=yes
23825 fi
23826 rm -f conftest*
23827
23828 if test "$ice_cv_have_shmdt_decl" = yes; then
23829         break
23830 fi
23831 done
23832
23833 fi
23834
23835 { echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
23836 echo "${ECHO_T}$ice_cv_have_shmdt_decl" >&6; }
23837 if test "$ice_cv_have_shmdt_decl" = yes; then
23838
23839 cat >>confdefs.h <<_ACEOF
23840 #define HAVE_SHMDT_DECL 1
23841 _ACEOF
23842
23843 fi
23844 fi
23845
23846
23847 ice_have_shmget=no
23848
23849 for ac_func in shmget
23850 do
23851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23855   echo $ECHO_N "(cached) $ECHO_C" >&6
23856 else
23857   cat >conftest.$ac_ext <<_ACEOF
23858 /* confdefs.h.  */
23859 _ACEOF
23860 cat confdefs.h >>conftest.$ac_ext
23861 cat >>conftest.$ac_ext <<_ACEOF
23862 /* end confdefs.h.  */
23863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23865 #define $ac_func innocuous_$ac_func
23866
23867 /* System header to define __stub macros and hopefully few prototypes,
23868     which can conflict with char $ac_func (); below.
23869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23870     <limits.h> exists even on freestanding compilers.  */
23871
23872 #ifdef __STDC__
23873 # include <limits.h>
23874 #else
23875 # include <assert.h>
23876 #endif
23877
23878 #undef $ac_func
23879
23880 /* Override any GCC internal prototype to avoid an error.
23881    Use char because int might match the return type of a GCC
23882    builtin and then its argument prototype would still apply.  */
23883 #ifdef __cplusplus
23884 extern "C"
23885 #endif
23886 char $ac_func ();
23887 /* The GNU C library defines this for functions which it implements
23888     to always fail with ENOSYS.  Some functions are actually named
23889     something starting with __ and the normal name is an alias.  */
23890 #if defined __stub_$ac_func || defined __stub___$ac_func
23891 choke me
23892 #endif
23893
23894 int
23895 main ()
23896 {
23897 return $ac_func ();
23898   ;
23899   return 0;
23900 }
23901 _ACEOF
23902 rm -f conftest.$ac_objext conftest$ac_exeext
23903 if { (ac_try="$ac_link"
23904 case "(($ac_try" in
23905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23906   *) ac_try_echo=$ac_try;;
23907 esac
23908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23909   (eval "$ac_link") 2>conftest.er1
23910   ac_status=$?
23911   grep -v '^ *+' conftest.er1 >conftest.err
23912   rm -f conftest.er1
23913   cat conftest.err >&5
23914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915   (exit $ac_status); } && {
23916          test -z "$ac_c_werror_flag" ||
23917          test ! -s conftest.err
23918        } && test -s conftest$ac_exeext &&
23919        $as_test_x conftest$ac_exeext; then
23920   eval "$as_ac_var=yes"
23921 else
23922   echo "$as_me: failed program was:" >&5
23923 sed 's/^/| /' conftest.$ac_ext >&5
23924
23925         eval "$as_ac_var=no"
23926 fi
23927
23928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23929       conftest$ac_exeext conftest.$ac_ext
23930 fi
23931 ac_res=`eval echo '${'$as_ac_var'}'`
23932                { echo "$as_me:$LINENO: result: $ac_res" >&5
23933 echo "${ECHO_T}$ac_res" >&6; }
23934 if test `eval echo '${'$as_ac_var'}'` = yes; then
23935   cat >>confdefs.h <<_ACEOF
23936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23937 _ACEOF
23938  ice_have_shmget=yes
23939 fi
23940 done
23941
23942 if test "${ice_have_shmget}" = yes; then
23943 { echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
23944 echo $ECHO_N "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6; }
23945 if test "${ice_cv_have_shmget_decl+set}" = set; then
23946   echo $ECHO_N "(cached) $ECHO_C" >&6
23947 else
23948
23949 ice_cv_have_shmget_decl=no
23950 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
23951 ice_re_word='(^|[^a-zA-Z0-9_])'
23952 for header in sys/types.h sys/ipc.h sys/shm.h; do
23953 # Check for ordinary declaration
23954 cat >conftest.$ac_ext <<_ACEOF
23955 /* confdefs.h.  */
23956 _ACEOF
23957 cat confdefs.h >>conftest.$ac_ext
23958 cat >>conftest.$ac_ext <<_ACEOF
23959 /* end confdefs.h.  */
23960 #include <$header>
23961
23962 _ACEOF
23963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23964   $EGREP "${ice_re_word}shmget[         ]*\(" >/dev/null 2>&1; then
23965   ice_cv_have_shmget_decl=yes
23966 fi
23967 rm -f conftest*
23968
23969 if test "$ice_cv_have_shmget_decl" = yes; then
23970         break
23971 fi
23972 # Check for "fixed" declaration like "getpid _PARAMS((int))"
23973 cat >conftest.$ac_ext <<_ACEOF
23974 /* confdefs.h.  */
23975 _ACEOF
23976 cat confdefs.h >>conftest.$ac_ext
23977 cat >>conftest.$ac_ext <<_ACEOF
23978 /* end confdefs.h.  */
23979 #include <$header>
23980
23981 _ACEOF
23982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23983   $EGREP "${ice_re_word}shmget[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
23984   ice_cv_have_shmget_decl=yes
23985 fi
23986 rm -f conftest*
23987
23988 if test "$ice_cv_have_shmget_decl" = yes; then
23989         break
23990 fi
23991 done
23992
23993 fi
23994
23995 { echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
23996 echo "${ECHO_T}$ice_cv_have_shmget_decl" >&6; }
23997 if test "$ice_cv_have_shmget_decl" = yes; then
23998
23999 cat >>confdefs.h <<_ACEOF
24000 #define HAVE_SHMGET_DECL 1
24001 _ACEOF
24002
24003 fi
24004 fi
24005
24006
24007     if test "x$ac_cv_func_mmap_fixed_mapped" != xyes; then
24008         case "$FORCE_MMAP" in
24009         n | no)
24010             if test "x$ac_cv_func_shmget" != xyes; then
24011
24012     { echo "$as_me:$LINENO: WARNING: Neither shmget() nor mmap() found. This system will not support the Amanda server." >&5
24013 echo "$as_me: WARNING: Neither shmget() nor mmap() found. This system will not support the Amanda server." >&2;}
24014
24015
24016     cat <<AAW_EOF >>config.warnings
24017 Neither shmget() nor mmap() found. This system will not support the Amanda server.
24018 AAW_EOF
24019
24020
24021                 NO_SERVER_MODE=true
24022             fi
24023           ;;
24024         y | ye | yes)
24025
24026     { echo "$as_me:$LINENO: WARNING: --with-mmap used on a system with no mmap() support.  This system will not support the Amanda server." >&5
24027 echo "$as_me: WARNING: --with-mmap used on a system with no mmap() support.  This system will not support the Amanda server." >&2;}
24028
24029
24030     cat <<AAW_EOF >>config.warnings
24031 --with-mmap used on a system with no mmap() support.  This system will not support the Amanda server.
24032 AAW_EOF
24033
24034
24035             NO_SERVER_MODE=true
24036           ;;
24037         esac
24038     fi
24039
24040
24041
24042
24043
24044
24045
24046 ac_header_dirent=no
24047 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24048   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24049 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24050 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24052   echo $ECHO_N "(cached) $ECHO_C" >&6
24053 else
24054   cat >conftest.$ac_ext <<_ACEOF
24055 /* confdefs.h.  */
24056 _ACEOF
24057 cat confdefs.h >>conftest.$ac_ext
24058 cat >>conftest.$ac_ext <<_ACEOF
24059 /* end confdefs.h.  */
24060 #include <sys/types.h>
24061 #include <$ac_hdr>
24062
24063 int
24064 main ()
24065 {
24066 if ((DIR *) 0)
24067 return 0;
24068   ;
24069   return 0;
24070 }
24071 _ACEOF
24072 rm -f conftest.$ac_objext
24073 if { (ac_try="$ac_compile"
24074 case "(($ac_try" in
24075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24076   *) ac_try_echo=$ac_try;;
24077 esac
24078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24079   (eval "$ac_compile") 2>conftest.er1
24080   ac_status=$?
24081   grep -v '^ *+' conftest.er1 >conftest.err
24082   rm -f conftest.er1
24083   cat conftest.err >&5
24084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085   (exit $ac_status); } && {
24086          test -z "$ac_c_werror_flag" ||
24087          test ! -s conftest.err
24088        } && test -s conftest.$ac_objext; then
24089   eval "$as_ac_Header=yes"
24090 else
24091   echo "$as_me: failed program was:" >&5
24092 sed 's/^/| /' conftest.$ac_ext >&5
24093
24094         eval "$as_ac_Header=no"
24095 fi
24096
24097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24098 fi
24099 ac_res=`eval echo '${'$as_ac_Header'}'`
24100                { echo "$as_me:$LINENO: result: $ac_res" >&5
24101 echo "${ECHO_T}$ac_res" >&6; }
24102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24103   cat >>confdefs.h <<_ACEOF
24104 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24105 _ACEOF
24106
24107 ac_header_dirent=$ac_hdr; break
24108 fi
24109
24110 done
24111 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24112 if test $ac_header_dirent = dirent.h; then
24113   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24114 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24115 if test "${ac_cv_search_opendir+set}" = set; then
24116   echo $ECHO_N "(cached) $ECHO_C" >&6
24117 else
24118   ac_func_search_save_LIBS=$LIBS
24119 cat >conftest.$ac_ext <<_ACEOF
24120 /* confdefs.h.  */
24121 _ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h.  */
24125
24126 /* Override any GCC internal prototype to avoid an error.
24127    Use char because int might match the return type of a GCC
24128    builtin and then its argument prototype would still apply.  */
24129 #ifdef __cplusplus
24130 extern "C"
24131 #endif
24132 char opendir ();
24133 int
24134 main ()
24135 {
24136 return opendir ();
24137   ;
24138   return 0;
24139 }
24140 _ACEOF
24141 for ac_lib in '' dir; do
24142   if test -z "$ac_lib"; then
24143     ac_res="none required"
24144   else
24145     ac_res=-l$ac_lib
24146     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24147   fi
24148   rm -f conftest.$ac_objext conftest$ac_exeext
24149 if { (ac_try="$ac_link"
24150 case "(($ac_try" in
24151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24152   *) ac_try_echo=$ac_try;;
24153 esac
24154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24155   (eval "$ac_link") 2>conftest.er1
24156   ac_status=$?
24157   grep -v '^ *+' conftest.er1 >conftest.err
24158   rm -f conftest.er1
24159   cat conftest.err >&5
24160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161   (exit $ac_status); } && {
24162          test -z "$ac_c_werror_flag" ||
24163          test ! -s conftest.err
24164        } && test -s conftest$ac_exeext &&
24165        $as_test_x conftest$ac_exeext; then
24166   ac_cv_search_opendir=$ac_res
24167 else
24168   echo "$as_me: failed program was:" >&5
24169 sed 's/^/| /' conftest.$ac_ext >&5
24170
24171
24172 fi
24173
24174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24175       conftest$ac_exeext
24176   if test "${ac_cv_search_opendir+set}" = set; then
24177   break
24178 fi
24179 done
24180 if test "${ac_cv_search_opendir+set}" = set; then
24181   :
24182 else
24183   ac_cv_search_opendir=no
24184 fi
24185 rm conftest.$ac_ext
24186 LIBS=$ac_func_search_save_LIBS
24187 fi
24188 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24189 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24190 ac_res=$ac_cv_search_opendir
24191 if test "$ac_res" != no; then
24192   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24193
24194 fi
24195
24196 else
24197   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24198 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24199 if test "${ac_cv_search_opendir+set}" = set; then
24200   echo $ECHO_N "(cached) $ECHO_C" >&6
24201 else
24202   ac_func_search_save_LIBS=$LIBS
24203 cat >conftest.$ac_ext <<_ACEOF
24204 /* confdefs.h.  */
24205 _ACEOF
24206 cat confdefs.h >>conftest.$ac_ext
24207 cat >>conftest.$ac_ext <<_ACEOF
24208 /* end confdefs.h.  */
24209
24210 /* Override any GCC internal prototype to avoid an error.
24211    Use char because int might match the return type of a GCC
24212    builtin and then its argument prototype would still apply.  */
24213 #ifdef __cplusplus
24214 extern "C"
24215 #endif
24216 char opendir ();
24217 int
24218 main ()
24219 {
24220 return opendir ();
24221   ;
24222   return 0;
24223 }
24224 _ACEOF
24225 for ac_lib in '' x; do
24226   if test -z "$ac_lib"; then
24227     ac_res="none required"
24228   else
24229     ac_res=-l$ac_lib
24230     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24231   fi
24232   rm -f conftest.$ac_objext conftest$ac_exeext
24233 if { (ac_try="$ac_link"
24234 case "(($ac_try" in
24235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24236   *) ac_try_echo=$ac_try;;
24237 esac
24238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24239   (eval "$ac_link") 2>conftest.er1
24240   ac_status=$?
24241   grep -v '^ *+' conftest.er1 >conftest.err
24242   rm -f conftest.er1
24243   cat conftest.err >&5
24244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245   (exit $ac_status); } && {
24246          test -z "$ac_c_werror_flag" ||
24247          test ! -s conftest.err
24248        } && test -s conftest$ac_exeext &&
24249        $as_test_x conftest$ac_exeext; then
24250   ac_cv_search_opendir=$ac_res
24251 else
24252   echo "$as_me: failed program was:" >&5
24253 sed 's/^/| /' conftest.$ac_ext >&5
24254
24255
24256 fi
24257
24258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24259       conftest$ac_exeext
24260   if test "${ac_cv_search_opendir+set}" = set; then
24261   break
24262 fi
24263 done
24264 if test "${ac_cv_search_opendir+set}" = set; then
24265   :
24266 else
24267   ac_cv_search_opendir=no
24268 fi
24269 rm conftest.$ac_ext
24270 LIBS=$ac_func_search_save_LIBS
24271 fi
24272 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24273 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24274 ac_res=$ac_cv_search_opendir
24275 if test "$ac_res" != no; then
24276   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24277
24278 fi
24279
24280 fi
24281
24282
24283     # include the dirent headers as described in the autoconf documentation.
24284     { echo "$as_me:$LINENO: checking whether readdir is declared" >&5
24285 echo $ECHO_N "checking whether readdir is declared... $ECHO_C" >&6; }
24286 if test "${ac_cv_have_decl_readdir+set}" = set; then
24287   echo $ECHO_N "(cached) $ECHO_C" >&6
24288 else
24289   cat >conftest.$ac_ext <<_ACEOF
24290 /* confdefs.h.  */
24291 _ACEOF
24292 cat confdefs.h >>conftest.$ac_ext
24293 cat >>conftest.$ac_ext <<_ACEOF
24294 /* end confdefs.h.  */
24295
24296 #if HAVE_DIRENT_H
24297 # include <dirent.h>
24298 # define NAMLEN(dirent) strlen((dirent)->d_name)
24299 #else
24300 # define dirent direct
24301 # define NAMLEN(dirent) (dirent)->d_namlen
24302 # if HAVE_SYS_NDIR_H
24303 #  include <sys/ndir.h>
24304 # endif
24305 # if HAVE_SYS_DIR_H
24306 #  include <sys/dir.h>
24307 # endif
24308 # if HAVE_NDIR_H
24309 #  include <ndir.h>
24310 # endif
24311 #endif
24312
24313
24314 int
24315 main ()
24316 {
24317 #ifndef readdir
24318   (void) readdir;
24319 #endif
24320
24321   ;
24322   return 0;
24323 }
24324 _ACEOF
24325 rm -f conftest.$ac_objext
24326 if { (ac_try="$ac_compile"
24327 case "(($ac_try" in
24328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24329   *) ac_try_echo=$ac_try;;
24330 esac
24331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24332   (eval "$ac_compile") 2>conftest.er1
24333   ac_status=$?
24334   grep -v '^ *+' conftest.er1 >conftest.err
24335   rm -f conftest.er1
24336   cat conftest.err >&5
24337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338   (exit $ac_status); } && {
24339          test -z "$ac_c_werror_flag" ||
24340          test ! -s conftest.err
24341        } && test -s conftest.$ac_objext; then
24342   ac_cv_have_decl_readdir=yes
24343 else
24344   echo "$as_me: failed program was:" >&5
24345 sed 's/^/| /' conftest.$ac_ext >&5
24346
24347         ac_cv_have_decl_readdir=no
24348 fi
24349
24350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24351 fi
24352 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir" >&5
24353 echo "${ECHO_T}$ac_cv_have_decl_readdir" >&6; }
24354 if test $ac_cv_have_decl_readdir = yes; then
24355
24356 cat >>confdefs.h <<_ACEOF
24357 #define HAVE_DECL_READDIR 1
24358 _ACEOF
24359
24360
24361 else
24362   cat >>confdefs.h <<_ACEOF
24363 #define HAVE_DECL_READDIR 0
24364 _ACEOF
24365
24366
24367 fi
24368 { echo "$as_me:$LINENO: checking whether readdir_r is declared" >&5
24369 echo $ECHO_N "checking whether readdir_r is declared... $ECHO_C" >&6; }
24370 if test "${ac_cv_have_decl_readdir_r+set}" = set; then
24371   echo $ECHO_N "(cached) $ECHO_C" >&6
24372 else
24373   cat >conftest.$ac_ext <<_ACEOF
24374 /* confdefs.h.  */
24375 _ACEOF
24376 cat confdefs.h >>conftest.$ac_ext
24377 cat >>conftest.$ac_ext <<_ACEOF
24378 /* end confdefs.h.  */
24379
24380 #if HAVE_DIRENT_H
24381 # include <dirent.h>
24382 # define NAMLEN(dirent) strlen((dirent)->d_name)
24383 #else
24384 # define dirent direct
24385 # define NAMLEN(dirent) (dirent)->d_namlen
24386 # if HAVE_SYS_NDIR_H
24387 #  include <sys/ndir.h>
24388 # endif
24389 # if HAVE_SYS_DIR_H
24390 #  include <sys/dir.h>
24391 # endif
24392 # if HAVE_NDIR_H
24393 #  include <ndir.h>
24394 # endif
24395 #endif
24396
24397
24398 int
24399 main ()
24400 {
24401 #ifndef readdir_r
24402   (void) readdir_r;
24403 #endif
24404
24405   ;
24406   return 0;
24407 }
24408 _ACEOF
24409 rm -f conftest.$ac_objext
24410 if { (ac_try="$ac_compile"
24411 case "(($ac_try" in
24412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24413   *) ac_try_echo=$ac_try;;
24414 esac
24415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24416   (eval "$ac_compile") 2>conftest.er1
24417   ac_status=$?
24418   grep -v '^ *+' conftest.er1 >conftest.err
24419   rm -f conftest.er1
24420   cat conftest.err >&5
24421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422   (exit $ac_status); } && {
24423          test -z "$ac_c_werror_flag" ||
24424          test ! -s conftest.err
24425        } && test -s conftest.$ac_objext; then
24426   ac_cv_have_decl_readdir_r=yes
24427 else
24428   echo "$as_me: failed program was:" >&5
24429 sed 's/^/| /' conftest.$ac_ext >&5
24430
24431         ac_cv_have_decl_readdir_r=no
24432 fi
24433
24434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24435 fi
24436 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir_r" >&5
24437 echo "${ECHO_T}$ac_cv_have_decl_readdir_r" >&6; }
24438 if test $ac_cv_have_decl_readdir_r = yes; then
24439
24440 cat >>confdefs.h <<_ACEOF
24441 #define HAVE_DECL_READDIR_R 1
24442 _ACEOF
24443
24444
24445 else
24446   cat >>confdefs.h <<_ACEOF
24447 #define HAVE_DECL_READDIR_R 0
24448 _ACEOF
24449
24450
24451 fi
24452 { echo "$as_me:$LINENO: checking whether readdir64 is declared" >&5
24453 echo $ECHO_N "checking whether readdir64 is declared... $ECHO_C" >&6; }
24454 if test "${ac_cv_have_decl_readdir64+set}" = set; then
24455   echo $ECHO_N "(cached) $ECHO_C" >&6
24456 else
24457   cat >conftest.$ac_ext <<_ACEOF
24458 /* confdefs.h.  */
24459 _ACEOF
24460 cat confdefs.h >>conftest.$ac_ext
24461 cat >>conftest.$ac_ext <<_ACEOF
24462 /* end confdefs.h.  */
24463
24464 #if HAVE_DIRENT_H
24465 # include <dirent.h>
24466 # define NAMLEN(dirent) strlen((dirent)->d_name)
24467 #else
24468 # define dirent direct
24469 # define NAMLEN(dirent) (dirent)->d_namlen
24470 # if HAVE_SYS_NDIR_H
24471 #  include <sys/ndir.h>
24472 # endif
24473 # if HAVE_SYS_DIR_H
24474 #  include <sys/dir.h>
24475 # endif
24476 # if HAVE_NDIR_H
24477 #  include <ndir.h>
24478 # endif
24479 #endif
24480
24481
24482 int
24483 main ()
24484 {
24485 #ifndef readdir64
24486   (void) readdir64;
24487 #endif
24488
24489   ;
24490   return 0;
24491 }
24492 _ACEOF
24493 rm -f conftest.$ac_objext
24494 if { (ac_try="$ac_compile"
24495 case "(($ac_try" in
24496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24497   *) ac_try_echo=$ac_try;;
24498 esac
24499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24500   (eval "$ac_compile") 2>conftest.er1
24501   ac_status=$?
24502   grep -v '^ *+' conftest.er1 >conftest.err
24503   rm -f conftest.er1
24504   cat conftest.err >&5
24505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506   (exit $ac_status); } && {
24507          test -z "$ac_c_werror_flag" ||
24508          test ! -s conftest.err
24509        } && test -s conftest.$ac_objext; then
24510   ac_cv_have_decl_readdir64=yes
24511 else
24512   echo "$as_me: failed program was:" >&5
24513 sed 's/^/| /' conftest.$ac_ext >&5
24514
24515         ac_cv_have_decl_readdir64=no
24516 fi
24517
24518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24519 fi
24520 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64" >&5
24521 echo "${ECHO_T}$ac_cv_have_decl_readdir64" >&6; }
24522 if test $ac_cv_have_decl_readdir64 = yes; then
24523
24524 cat >>confdefs.h <<_ACEOF
24525 #define HAVE_DECL_READDIR64 1
24526 _ACEOF
24527
24528
24529 else
24530   cat >>confdefs.h <<_ACEOF
24531 #define HAVE_DECL_READDIR64 0
24532 _ACEOF
24533
24534
24535 fi
24536 { echo "$as_me:$LINENO: checking whether readdir64_r is declared" >&5
24537 echo $ECHO_N "checking whether readdir64_r is declared... $ECHO_C" >&6; }
24538 if test "${ac_cv_have_decl_readdir64_r+set}" = set; then
24539   echo $ECHO_N "(cached) $ECHO_C" >&6
24540 else
24541   cat >conftest.$ac_ext <<_ACEOF
24542 /* confdefs.h.  */
24543 _ACEOF
24544 cat confdefs.h >>conftest.$ac_ext
24545 cat >>conftest.$ac_ext <<_ACEOF
24546 /* end confdefs.h.  */
24547
24548 #if HAVE_DIRENT_H
24549 # include <dirent.h>
24550 # define NAMLEN(dirent) strlen((dirent)->d_name)
24551 #else
24552 # define dirent direct
24553 # define NAMLEN(dirent) (dirent)->d_namlen
24554 # if HAVE_SYS_NDIR_H
24555 #  include <sys/ndir.h>
24556 # endif
24557 # if HAVE_SYS_DIR_H
24558 #  include <sys/dir.h>
24559 # endif
24560 # if HAVE_NDIR_H
24561 #  include <ndir.h>
24562 # endif
24563 #endif
24564
24565
24566 int
24567 main ()
24568 {
24569 #ifndef readdir64_r
24570   (void) readdir64_r;
24571 #endif
24572
24573   ;
24574   return 0;
24575 }
24576 _ACEOF
24577 rm -f conftest.$ac_objext
24578 if { (ac_try="$ac_compile"
24579 case "(($ac_try" in
24580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24581   *) ac_try_echo=$ac_try;;
24582 esac
24583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24584   (eval "$ac_compile") 2>conftest.er1
24585   ac_status=$?
24586   grep -v '^ *+' conftest.er1 >conftest.err
24587   rm -f conftest.er1
24588   cat conftest.err >&5
24589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590   (exit $ac_status); } && {
24591          test -z "$ac_c_werror_flag" ||
24592          test ! -s conftest.err
24593        } && test -s conftest.$ac_objext; then
24594   ac_cv_have_decl_readdir64_r=yes
24595 else
24596   echo "$as_me: failed program was:" >&5
24597 sed 's/^/| /' conftest.$ac_ext >&5
24598
24599         ac_cv_have_decl_readdir64_r=no
24600 fi
24601
24602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24603 fi
24604 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64_r" >&5
24605 echo "${ECHO_T}$ac_cv_have_decl_readdir64_r" >&6; }
24606 if test $ac_cv_have_decl_readdir64_r = yes; then
24607
24608 cat >>confdefs.h <<_ACEOF
24609 #define HAVE_DECL_READDIR64_R 1
24610 _ACEOF
24611
24612
24613 else
24614   cat >>confdefs.h <<_ACEOF
24615 #define HAVE_DECL_READDIR64_R 0
24616 _ACEOF
24617
24618
24619 fi
24620
24621
24622
24623
24624     # disk device prefixes
24625     { echo "$as_me:$LINENO: checking disk device prefixes" >&5
24626 echo $ECHO_N "checking disk device prefixes... $ECHO_C" >&6; }
24627
24628     # Use df to find the mount point for the root filesystem.  Use
24629     # the positional parameters to find the particular line from df
24630     # that contains the root paritition.  We put it in a subshell so
24631     # that the original positional parameters are not messed with.
24632     dfline=`(
24633         df / | while read line; do
24634             set -- $line
24635                     while test $# -gt 0; do
24636                 if test "x$1" = "x/"; then
24637                     echo $line
24638                     break 2
24639                 fi
24640                 shift
24641             done
24642         done
24643     ) | sed 's/(//' | sed 's/)//' `
24644
24645     # Search for the mount point by using expr to find the parameter
24646     # with dev in it.
24647     mount=`(
24648         set -- $dfline
24649                 while test $# -gt 0; do
24650             if expr "$1" : '.*dev' >/dev/null 2>&1; then
24651                 echo $1
24652                 break
24653             fi
24654             shift
24655         done
24656     )`
24657
24658     # get any system-specific configuration information
24659     case "$target" in
24660         *-hp-*)
24661             CLIENT_SCRIPTS_OPT=amhpfixdevs
24662             case $mount in
24663                 /dev/vg*)
24664
24665     { echo "$as_me:$LINENO: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&5
24666 echo "$as_me: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&2;}
24667
24668
24669     cat <<AAW_EOF >>config.warnings
24670 Run amhpfixdevs on HP-UX systems using /dev/vg??.
24671 AAW_EOF
24672
24673
24674                     ;;
24675             esac
24676             ;;
24677         *-sni-sysv4)
24678             DEV_PREFIX=/dev/dsk/
24679             RDEV_PREFIX=/dev/rdsk/
24680             CLIENT_SCRIPTS_OPT=amsinixfixdevs
24681             if ! test -d /dev/dsk; then
24682
24683     { echo "$as_me:$LINENO: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&5
24684 echo "$as_me: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&2;}
24685
24686
24687     cat <<AAW_EOF >>config.warnings
24688 Run amsinixfixdevs on Sinix systems using VxFS.
24689 AAW_EOF
24690
24691
24692             fi
24693             ;;
24694         *-sco3.2v4*)
24695             DEV_PREFIX=/dev/
24696             RDEV_PREFIX=/dev/
24697             ;;
24698         *)
24699             CLIENT_SCRIPTS_OPT=
24700             ;;
24701     esac
24702
24703     if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
24704         { echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
24705 echo "${ECHO_T}(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6; }
24706     else
24707         if test -d /dev/dsk; then
24708             DEV_PREFIX=/dev/dsk/
24709             if test -d /dev/rdsk; then
24710                 RDEV_PREFIX=/dev/rdsk/
24711             else
24712                 RDEV_PREFIX=/dev/dsk/
24713             fi
24714         elif test -d /dev; then
24715             DEV_PREFIX=/dev/
24716
24717             # Some systems, notably Linux, do not have raw disk devices
24718             # names.  Check this by trying to see if a raw disk device name
24719             # exists using the normal raw device path prepended to the
24720             # mount point of the root filesystem.
24721             if test "$mount"; then
24722                 dev_name="/dev/r`basename $mount`"
24723                 if test -b $dev_name -o -c $dev_name; then
24724                     RDEV_PREFIX=/dev/r
24725                 else
24726                     RDEV_PREFIX=/dev/
24727                 fi
24728             else
24729                 RDEV_PREFIX=/dev/r
24730             fi
24731         else
24732             # just fake it..
24733             DEV_PREFIX=/
24734             RDEV_PREFIX=/
24735         fi
24736         { echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
24737 echo "${ECHO_T}$DEV_PREFIX - $RDEV_PREFIX" >&6; }
24738     fi
24739
24740
24741 cat >>confdefs.h <<_ACEOF
24742 #define DEV_PREFIX "${DEV_PREFIX}"
24743 _ACEOF
24744
24745
24746 cat >>confdefs.h <<_ACEOF
24747 #define RDEV_PREFIX "${RDEV_PREFIX}"
24748 _ACEOF
24749
24750
24751
24752
24753
24754     case "$target" in
24755         *-dec-osf*)
24756                     ;;
24757         *-dg-*)
24758                     ;;
24759         *-netbsd*)
24760                     ;;
24761         *-freebsd*)
24762                     ;;
24763         *-openbsd*)
24764                     ;;
24765         *-hp-*)
24766                     case "$CC" in
24767                         *gcc*)
24768                             CPPFLAGS="$CPPFLAGS -D__STDC_EXT__"
24769
24770                             ;;
24771                         *cc*)
24772                             CFLAGS="$CFLAGS -Ae"
24773
24774                             ;;
24775                     esac
24776                     ;;
24777         *-ibm-aix*)
24778                     ;;
24779         m88k-motorola-sysv4)
24780                     ;;
24781         *-nextstep3)
24782                     ;;
24783         *-pc-bsdi*)
24784                     ;;
24785         *-pc-linux-*)
24786                     ;;
24787         *-redhat-linux-*)
24788                     ;;
24789         *-suse-linux-*)
24790                     ;;
24791         x86_64-*-linux-*)
24792                     ;;
24793         alpha*-*-linux-*)
24794                     ;;
24795         sparc*-*-linux-*)
24796                     ;;
24797         powerpc-*-linux-*)
24798                     ;;
24799         *-sgi-irix3*)
24800                     # The old cc won't work!
24801                     if test "x$GCC" != "xyes"; then
24802                         { { echo "$as_me:$LINENO: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&5
24803 echo "$as_me: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&2;}
24804    { (exit 1); exit 1; }; }
24805                     fi
24806                     ;;
24807         *-sgi-irix4*)
24808                     ;;
24809         *-sgi-irix5*)
24810                     ;;
24811         *-sgi-irix6*)
24812                     ;;
24813         *-solaris2*)
24814                     ;;
24815         *-sun-sunos4.1*)
24816                     ;;
24817         *-ultrix*)
24818                     ;;
24819         *-sysv4.2uw2*)
24820                     ;;
24821         *-sco3.2v5*)
24822                     ;;
24823         i386-pc-isc4*)
24824                     ;;
24825         *-sni-sysv4)
24826                     ;;
24827         *-pc-cygwin)
24828
24829 cat >>confdefs.h <<\_ACEOF
24830 #define IGNORE_TAR_ERRORS 1
24831 _ACEOF
24832
24833                     # Cygwin needs PATH to find cygwin1.dll
24834
24835 cat >>confdefs.h <<\_ACEOF
24836 #define NEED_PATH_ENV 1
24837 _ACEOF
24838
24839
24840 cat >>confdefs.h <<\_ACEOF
24841 #define IGNORE_FSTAB 1
24842 _ACEOF
24843
24844                     LDFLAGS="$LDFLAGS -Wl,-enable-runtime-pseudo-reloc -no-undefined"
24845
24846                     ;;
24847         *-apple-darwin7*) # MacOS X 10.3.* (Panther)
24848                     ;;
24849         *-apple-darwin8*) # MacOS X 10.4.* (Tiger)
24850                     ;;
24851       *)
24852
24853
24854     cat <<AAW_EOF >>config.warnings
24855 *****
24856 This machine, target type $target, is not known to be fully supported
24857 by this configure script.  If the installation of Amanda on this system
24858 succeeds or needed any patches, please email amanda-hackers@amanda.org
24859 with the patches or an indication of the sucess or failure of the
24860 Amanda installation on your system.
24861 *****
24862 AAW_EOF
24863
24864                     ;;
24865     esac
24866
24867
24868
24869
24870
24871   prefix_NONE=
24872   exec_prefix_NONE=
24873   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24874   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24875   eval ac_define_dir="\"$bindir\""
24876   eval ac_define_dir="\"$ac_define_dir\""
24877   bindir="$ac_define_dir"
24878
24879
24880 cat >>confdefs.h <<_ACEOF
24881 #define bindir "$ac_define_dir"
24882 _ACEOF
24883
24884   test "$prefix_NONE" && prefix=NONE
24885   test "$exec_prefix_NONE" && exec_prefix=NONE
24886
24887
24888
24889   prefix_NONE=
24890   exec_prefix_NONE=
24891   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24892   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24893   eval ac_define_dir="\"$sbindir\""
24894   eval ac_define_dir="\"$ac_define_dir\""
24895   sbindir="$ac_define_dir"
24896
24897
24898 cat >>confdefs.h <<_ACEOF
24899 #define sbindir "$ac_define_dir"
24900 _ACEOF
24901
24902   test "$prefix_NONE" && prefix=NONE
24903   test "$exec_prefix_NONE" && exec_prefix=NONE
24904
24905
24906
24907   prefix_NONE=
24908   exec_prefix_NONE=
24909   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24910   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24911   eval ac_define_dir="\"$libexecdir\""
24912   eval ac_define_dir="\"$ac_define_dir\""
24913   libexecdir="$ac_define_dir"
24914
24915
24916 cat >>confdefs.h <<_ACEOF
24917 #define libexecdir "$ac_define_dir"
24918 _ACEOF
24919
24920   test "$prefix_NONE" && prefix=NONE
24921   test "$exec_prefix_NONE" && exec_prefix=NONE
24922
24923
24924
24925   prefix_NONE=
24926   exec_prefix_NONE=
24927   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24928   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24929   eval ac_define_dir="\"$mandir\""
24930   eval ac_define_dir="\"$ac_define_dir\""
24931   mandir="$ac_define_dir"
24932
24933
24934 cat >>confdefs.h <<_ACEOF
24935 #define mandir "$ac_define_dir"
24936 _ACEOF
24937
24938   test "$prefix_NONE" && prefix=NONE
24939   test "$exec_prefix_NONE" && exec_prefix=NONE
24940
24941
24942
24943     # amanda-specific directories
24944     AMLIBDIR=$libdir/amanda
24945
24946 # Check whether --with-amlibdir was given.
24947 if test "${with_amlibdir+set}" = set; then
24948   withval=$with_amlibdir;
24949             case "$withval" in
24950                 n | no) AMLIBDIR=$libdir ;;
24951                 y | ye | yes) AMLIBDIR=$libdir/amanda ;;
24952                 *) AMLIBDIR=$withval ;;
24953             esac
24954
24955
24956 fi
24957
24958
24959   prefix_NONE=
24960   exec_prefix_NONE=
24961   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24962   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24963   eval ac_define_dir="\"$AMLIBDIR\""
24964   eval ac_define_dir="\"$ac_define_dir\""
24965   amlibdir="$ac_define_dir"
24966
24967
24968 cat >>confdefs.h <<_ACEOF
24969 #define amlibdir "$ac_define_dir"
24970 _ACEOF
24971
24972   test "$prefix_NONE" && prefix=NONE
24973   test "$exec_prefix_NONE" && exec_prefix=NONE
24974
24975
24976     AMLIBEXECDIR=$libexecdir/amanda
24977
24978 # Check whether --with-amlibexecdir was given.
24979 if test "${with_amlibexecdir+set}" = set; then
24980   withval=$with_amlibexecdir;
24981             case "$withval" in
24982                 n | no) AMLIBEXECDIR=$libexecdir ;;
24983                 y | ye | yes) AMLIBEXECDIR=$libexecdir/amanda ;;
24984                 *) AMLIBEXECDIR=$withval ;;
24985             esac
24986
24987
24988 fi
24989
24990
24991   prefix_NONE=
24992   exec_prefix_NONE=
24993   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24994   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24995   eval ac_define_dir="\"$AMLIBEXECDIR\""
24996   eval ac_define_dir="\"$ac_define_dir\""
24997   amlibexecdir="$ac_define_dir"
24998
24999
25000 cat >>confdefs.h <<_ACEOF
25001 #define amlibexecdir "$ac_define_dir"
25002 _ACEOF
25003
25004   test "$prefix_NONE" && prefix=NONE
25005   test "$exec_prefix_NONE" && exec_prefix=NONE
25006
25007
25008     amincludedir="${includedir}/amanda"
25009
25010   prefix_NONE=
25011   exec_prefix_NONE=
25012   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25013   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25014   eval ac_define_dir="\"$amincludedir\""
25015   eval ac_define_dir="\"$ac_define_dir\""
25016   amincludedir="$ac_define_dir"
25017
25018
25019 cat >>confdefs.h <<_ACEOF
25020 #define amincludedir "$ac_define_dir"
25021 _ACEOF
25022
25023   test "$prefix_NONE" && prefix=NONE
25024   test "$exec_prefix_NONE" && exec_prefix=NONE
25025
25026
25027
25028 # Check whether --with-amperldir was given.
25029 if test "${with_amperldir+set}" = set; then
25030   withval=$with_amperldir;
25031             case "$withval" in
25032                 y | ye | yes) AMPERLLIB=DEFAULT ;;
25033                 n | no) AMPERLLIB=$amlibdir/perl ;;
25034                 *) AMPERLLIB=$withval ;;
25035             esac
25036
25037 else
25038
25039             AMPERLLIB=DEFAULT
25040
25041
25042 fi
25043
25044     # apply the default if no value was given.
25045     if test x"$AMPERLLIB" = x"DEFAULT"; then
25046         eval `$PERL -V:installsitelib`
25047         AMPERLLIB=$installsitelib
25048     fi
25049
25050   prefix_NONE=
25051   exec_prefix_NONE=
25052   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25053   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25054   eval ac_define_dir="\"$AMPERLLIB\""
25055   eval ac_define_dir="\"$ac_define_dir\""
25056   amperldir="$ac_define_dir"
25057
25058
25059 cat >>confdefs.h <<_ACEOF
25060 #define amperldir "$ac_define_dir"
25061 _ACEOF
25062
25063   test "$prefix_NONE" && prefix=NONE
25064   test "$exec_prefix_NONE" && exec_prefix=NONE
25065
25066
25067     DUMPER_DIR='${amlibexecdir}/application'
25068
25069   prefix_NONE=
25070   exec_prefix_NONE=
25071   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25072   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25073   eval ac_define_dir="\"$DUMPER_DIR\""
25074   eval ac_define_dir="\"$ac_define_dir\""
25075   DUMPER_DIR="$ac_define_dir"
25076
25077
25078 cat >>confdefs.h <<_ACEOF
25079 #define DUMPER_DIR "$ac_define_dir"
25080 _ACEOF
25081
25082   test "$prefix_NONE" && prefix=NONE
25083   test "$exec_prefix_NONE" && exec_prefix=NONE
25084
25085     # TODO: rename to APPLICATION_DIR, add to Amanda::Paths and 'amgtconf build.APPLICATION_DIR'
25086
25087
25088 #
25089 # Internationalization
25090 #
25091
25092     # FreeBSD needs to link libxpg4
25093
25094 { echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
25095 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6; }
25096 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
25097   echo $ECHO_N "(cached) $ECHO_C" >&6
25098 else
25099   ac_check_lib_save_LIBS=$LIBS
25100 LIBS="-lxpg4  $LIBS"
25101 cat >conftest.$ac_ext <<_ACEOF
25102 /* confdefs.h.  */
25103 _ACEOF
25104 cat confdefs.h >>conftest.$ac_ext
25105 cat >>conftest.$ac_ext <<_ACEOF
25106 /* end confdefs.h.  */
25107
25108 /* Override any GCC internal prototype to avoid an error.
25109    Use char because int might match the return type of a GCC
25110    builtin and then its argument prototype would still apply.  */
25111 #ifdef __cplusplus
25112 extern "C"
25113 #endif
25114 char setlocale ();
25115 int
25116 main ()
25117 {
25118 return setlocale ();
25119   ;
25120   return 0;
25121 }
25122 _ACEOF
25123 rm -f conftest.$ac_objext conftest$ac_exeext
25124 if { (ac_try="$ac_link"
25125 case "(($ac_try" in
25126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25127   *) ac_try_echo=$ac_try;;
25128 esac
25129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25130   (eval "$ac_link") 2>conftest.er1
25131   ac_status=$?
25132   grep -v '^ *+' conftest.er1 >conftest.err
25133   rm -f conftest.er1
25134   cat conftest.err >&5
25135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136   (exit $ac_status); } && {
25137          test -z "$ac_c_werror_flag" ||
25138          test ! -s conftest.err
25139        } && test -s conftest$ac_exeext &&
25140        $as_test_x conftest$ac_exeext; then
25141   ac_cv_lib_xpg4_setlocale=yes
25142 else
25143   echo "$as_me: failed program was:" >&5
25144 sed 's/^/| /' conftest.$ac_ext >&5
25145
25146         ac_cv_lib_xpg4_setlocale=no
25147 fi
25148
25149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25150       conftest$ac_exeext conftest.$ac_ext
25151 LIBS=$ac_check_lib_save_LIBS
25152 fi
25153 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
25154 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6; }
25155 if test $ac_cv_lib_xpg4_setlocale = yes; then
25156   cat >>confdefs.h <<_ACEOF
25157 #define HAVE_LIBXPG4 1
25158 _ACEOF
25159
25160   LIBS="-lxpg4 $LIBS"
25161
25162 fi
25163
25164
25165     # ------------------------------------------------------------------
25166     # All list of languages for which a translation exist. Each
25167     #  language is separated by a space.
25168     # ------------------------------------------------------------------
25169     ALL_LINGUAS=""
25170
25171
25172     # Extract the first word of "msgfmt", so it can be a program name with args.
25173 set dummy msgfmt; ac_word=$2
25174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25176 if test "${ac_cv_path_MSGFMT+set}" = set; then
25177   echo $ECHO_N "(cached) $ECHO_C" >&6
25178 else
25179   case $MSGFMT in
25180   [\\/]* | ?:[\\/]*)
25181   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
25182   ;;
25183   *)
25184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25185 for as_dir in $LOCSYSPATH
25186 do
25187   IFS=$as_save_IFS
25188   test -z "$as_dir" && as_dir=.
25189   for ac_exec_ext in '' $ac_executable_extensions; do
25190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25191     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
25192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25193     break 2
25194   fi
25195 done
25196 done
25197 IFS=$as_save_IFS
25198
25199   ;;
25200 esac
25201 fi
25202 MSGFMT=$ac_cv_path_MSGFMT
25203 if test -n "$MSGFMT"; then
25204   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25205 echo "${ECHO_T}$MSGFMT" >&6; }
25206 else
25207   { echo "$as_me:$LINENO: result: no" >&5
25208 echo "${ECHO_T}no" >&6; }
25209 fi
25210
25211
25212     # Extract the first word of "gettext", so it can be a program name with args.
25213 set dummy gettext; ac_word=$2
25214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25216 if test "${ac_cv_path_GETTEXT+set}" = set; then
25217   echo $ECHO_N "(cached) $ECHO_C" >&6
25218 else
25219   case $GETTEXT in
25220   [\\/]* | ?:[\\/]*)
25221   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
25222   ;;
25223   *)
25224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25225 for as_dir in $LOCSYSPATH
25226 do
25227   IFS=$as_save_IFS
25228   test -z "$as_dir" && as_dir=.
25229   for ac_exec_ext in '' $ac_executable_extensions; do
25230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25231     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
25232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25233     break 2
25234   fi
25235 done
25236 done
25237 IFS=$as_save_IFS
25238
25239   ;;
25240 esac
25241 fi
25242 GETTEXT=$ac_cv_path_GETTEXT
25243 if test -n "$GETTEXT"; then
25244   { echo "$as_me:$LINENO: result: $GETTEXT" >&5
25245 echo "${ECHO_T}$GETTEXT" >&6; }
25246 else
25247   { echo "$as_me:$LINENO: result: no" >&5
25248 echo "${ECHO_T}no" >&6; }
25249 fi
25250
25251
25252
25253
25254
25255   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
25256 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
25257     # Check whether --enable-nls was given.
25258 if test "${enable_nls+set}" = set; then
25259   enableval=$enable_nls; USE_NLS=$enableval
25260 else
25261   USE_NLS=yes
25262 fi
25263
25264   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
25265 echo "${ECHO_T}$USE_NLS" >&6; }
25266
25267
25268
25269
25270
25271
25272 # Prepare PATH_SEPARATOR.
25273 # The user is always right.
25274 if test "${PATH_SEPARATOR+set}" != set; then
25275   echo "#! /bin/sh" >conf$$.sh
25276   echo  "exit 0"   >>conf$$.sh
25277   chmod +x conf$$.sh
25278   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25279     PATH_SEPARATOR=';'
25280   else
25281     PATH_SEPARATOR=:
25282   fi
25283   rm -f conf$$.sh
25284 fi
25285
25286 # Find out how to test for executable files. Don't use a zero-byte file,
25287 # as systems may use methods other than mode bits to determine executability.
25288 cat >conf$$.file <<_ASEOF
25289 #! /bin/sh
25290 exit 0
25291 _ASEOF
25292 chmod +x conf$$.file
25293 if test -x conf$$.file >/dev/null 2>&1; then
25294   ac_executable_p="test -x"
25295 else
25296   ac_executable_p="test -f"
25297 fi
25298 rm -f conf$$.file
25299
25300 # Extract the first word of "msgfmt", so it can be a program name with args.
25301 set dummy msgfmt; ac_word=$2
25302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25304 if test "${ac_cv_path_MSGFMT+set}" = set; then
25305   echo $ECHO_N "(cached) $ECHO_C" >&6
25306 else
25307   case "$MSGFMT" in
25308   [\\/]* | ?:[\\/]*)
25309     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
25310     ;;
25311   *)
25312     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
25313     for ac_dir in $PATH; do
25314       IFS="$ac_save_IFS"
25315       test -z "$ac_dir" && ac_dir=.
25316       for ac_exec_ext in '' $ac_executable_extensions; do
25317         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
25318           echo "$as_me: trying $ac_dir/$ac_word..." >&5
25319           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
25320      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
25321             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
25322             break 2
25323           fi
25324         fi
25325       done
25326     done
25327     IFS="$ac_save_IFS"
25328   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
25329     ;;
25330 esac
25331 fi
25332 MSGFMT="$ac_cv_path_MSGFMT"
25333 if test "$MSGFMT" != ":"; then
25334   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25335 echo "${ECHO_T}$MSGFMT" >&6; }
25336 else
25337   { echo "$as_me:$LINENO: result: no" >&5
25338 echo "${ECHO_T}no" >&6; }
25339 fi
25340
25341   # Extract the first word of "gmsgfmt", so it can be a program name with args.
25342 set dummy gmsgfmt; ac_word=$2
25343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25345 if test "${ac_cv_path_GMSGFMT+set}" = set; then
25346   echo $ECHO_N "(cached) $ECHO_C" >&6
25347 else
25348   case $GMSGFMT in
25349   [\\/]* | ?:[\\/]*)
25350   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
25351   ;;
25352   *)
25353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25354 for as_dir in $PATH
25355 do
25356   IFS=$as_save_IFS
25357   test -z "$as_dir" && as_dir=.
25358   for ac_exec_ext in '' $ac_executable_extensions; do
25359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25360     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
25361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25362     break 2
25363   fi
25364 done
25365 done
25366 IFS=$as_save_IFS
25367
25368   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
25369   ;;
25370 esac
25371 fi
25372 GMSGFMT=$ac_cv_path_GMSGFMT
25373 if test -n "$GMSGFMT"; then
25374   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
25375 echo "${ECHO_T}$GMSGFMT" >&6; }
25376 else
25377   { echo "$as_me:$LINENO: result: no" >&5
25378 echo "${ECHO_T}no" >&6; }
25379 fi
25380
25381
25382
25383     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
25384     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
25385     *) MSGFMT_015=$MSGFMT ;;
25386   esac
25387
25388   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
25389     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
25390     *) GMSGFMT_015=$GMSGFMT ;;
25391   esac
25392
25393
25394
25395 # Prepare PATH_SEPARATOR.
25396 # The user is always right.
25397 if test "${PATH_SEPARATOR+set}" != set; then
25398   echo "#! /bin/sh" >conf$$.sh
25399   echo  "exit 0"   >>conf$$.sh
25400   chmod +x conf$$.sh
25401   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25402     PATH_SEPARATOR=';'
25403   else
25404     PATH_SEPARATOR=:
25405   fi
25406   rm -f conf$$.sh
25407 fi
25408
25409 # Find out how to test for executable files. Don't use a zero-byte file,
25410 # as systems may use methods other than mode bits to determine executability.
25411 cat >conf$$.file <<_ASEOF
25412 #! /bin/sh
25413 exit 0
25414 _ASEOF
25415 chmod +x conf$$.file
25416 if test -x conf$$.file >/dev/null 2>&1; then
25417   ac_executable_p="test -x"
25418 else
25419   ac_executable_p="test -f"
25420 fi
25421 rm -f conf$$.file
25422
25423 # Extract the first word of "xgettext", so it can be a program name with args.
25424 set dummy xgettext; ac_word=$2
25425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25427 if test "${ac_cv_path_XGETTEXT+set}" = set; then
25428   echo $ECHO_N "(cached) $ECHO_C" >&6
25429 else
25430   case "$XGETTEXT" in
25431   [\\/]* | ?:[\\/]*)
25432     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
25433     ;;
25434   *)
25435     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
25436     for ac_dir in $PATH; do
25437       IFS="$ac_save_IFS"
25438       test -z "$ac_dir" && ac_dir=.
25439       for ac_exec_ext in '' $ac_executable_extensions; do
25440         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
25441           echo "$as_me: trying $ac_dir/$ac_word..." >&5
25442           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
25443      (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
25444             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
25445             break 2
25446           fi
25447         fi
25448       done
25449     done
25450     IFS="$ac_save_IFS"
25451   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
25452     ;;
25453 esac
25454 fi
25455 XGETTEXT="$ac_cv_path_XGETTEXT"
25456 if test "$XGETTEXT" != ":"; then
25457   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25458 echo "${ECHO_T}$XGETTEXT" >&6; }
25459 else
25460   { echo "$as_me:$LINENO: result: no" >&5
25461 echo "${ECHO_T}no" >&6; }
25462 fi
25463
25464     rm -f messages.po
25465
25466     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
25467     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
25468     *) XGETTEXT_015=$XGETTEXT ;;
25469   esac
25470
25471
25472
25473 # Prepare PATH_SEPARATOR.
25474 # The user is always right.
25475 if test "${PATH_SEPARATOR+set}" != set; then
25476   echo "#! /bin/sh" >conf$$.sh
25477   echo  "exit 0"   >>conf$$.sh
25478   chmod +x conf$$.sh
25479   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25480     PATH_SEPARATOR=';'
25481   else
25482     PATH_SEPARATOR=:
25483   fi
25484   rm -f conf$$.sh
25485 fi
25486
25487 # Find out how to test for executable files. Don't use a zero-byte file,
25488 # as systems may use methods other than mode bits to determine executability.
25489 cat >conf$$.file <<_ASEOF
25490 #! /bin/sh
25491 exit 0
25492 _ASEOF
25493 chmod +x conf$$.file
25494 if test -x conf$$.file >/dev/null 2>&1; then
25495   ac_executable_p="test -x"
25496 else
25497   ac_executable_p="test -f"
25498 fi
25499 rm -f conf$$.file
25500
25501 # Extract the first word of "msgmerge", so it can be a program name with args.
25502 set dummy msgmerge; ac_word=$2
25503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25505 if test "${ac_cv_path_MSGMERGE+set}" = set; then
25506   echo $ECHO_N "(cached) $ECHO_C" >&6
25507 else
25508   case "$MSGMERGE" in
25509   [\\/]* | ?:[\\/]*)
25510     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
25511     ;;
25512   *)
25513     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
25514     for ac_dir in $PATH; do
25515       IFS="$ac_save_IFS"
25516       test -z "$ac_dir" && ac_dir=.
25517       for ac_exec_ext in '' $ac_executable_extensions; do
25518         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
25519           echo "$as_me: trying $ac_dir/$ac_word..." >&5
25520           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
25521             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
25522             break 2
25523           fi
25524         fi
25525       done
25526     done
25527     IFS="$ac_save_IFS"
25528   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
25529     ;;
25530 esac
25531 fi
25532 MSGMERGE="$ac_cv_path_MSGMERGE"
25533 if test "$MSGMERGE" != ":"; then
25534   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25535 echo "${ECHO_T}$MSGMERGE" >&6; }
25536 else
25537   { echo "$as_me:$LINENO: result: no" >&5
25538 echo "${ECHO_T}no" >&6; }
25539 fi
25540
25541
25542         test -n "$localedir" || localedir='${datadir}/locale'
25543
25544
25545   ac_config_commands="$ac_config_commands po-directories"
25546
25547
25548
25549
25550
25551
25552
25553
25554
25555     use_additional=yes
25556
25557   acl_save_prefix="$prefix"
25558   prefix="$acl_final_prefix"
25559   acl_save_exec_prefix="$exec_prefix"
25560   exec_prefix="$acl_final_exec_prefix"
25561
25562     eval additional_includedir=\"$includedir\"
25563     eval additional_libdir=\"$libdir\"
25564
25565   exec_prefix="$acl_save_exec_prefix"
25566   prefix="$acl_save_prefix"
25567
25568
25569 # Check whether --with-libiconv-prefix was given.
25570 if test "${with_libiconv_prefix+set}" = set; then
25571   withval=$with_libiconv_prefix;
25572     if test "X$withval" = "Xno"; then
25573       use_additional=no
25574     else
25575       if test "X$withval" = "X"; then
25576
25577   acl_save_prefix="$prefix"
25578   prefix="$acl_final_prefix"
25579   acl_save_exec_prefix="$exec_prefix"
25580   exec_prefix="$acl_final_exec_prefix"
25581
25582           eval additional_includedir=\"$includedir\"
25583           eval additional_libdir=\"$libdir\"
25584
25585   exec_prefix="$acl_save_exec_prefix"
25586   prefix="$acl_save_prefix"
25587
25588       else
25589         additional_includedir="$withval/include"
25590         additional_libdir="$withval/$acl_libdirstem"
25591       fi
25592     fi
25593
25594 fi
25595
25596       LIBICONV=
25597   LTLIBICONV=
25598   INCICONV=
25599   rpathdirs=
25600   ltrpathdirs=
25601   names_already_handled=
25602   names_next_round='iconv '
25603   while test -n "$names_next_round"; do
25604     names_this_round="$names_next_round"
25605     names_next_round=
25606     for name in $names_this_round; do
25607       already_handled=
25608       for n in $names_already_handled; do
25609         if test "$n" = "$name"; then
25610           already_handled=yes
25611           break
25612         fi
25613       done
25614       if test -z "$already_handled"; then
25615         names_already_handled="$names_already_handled $name"
25616                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
25617         eval value=\"\$HAVE_LIB$uppername\"
25618         if test -n "$value"; then
25619           if test "$value" = yes; then
25620             eval value=\"\$LIB$uppername\"
25621             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
25622             eval value=\"\$LTLIB$uppername\"
25623             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
25624           else
25625                                     :
25626           fi
25627         else
25628                               found_dir=
25629           found_la=
25630           found_so=
25631           found_a=
25632           if test $use_additional = yes; then
25633             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
25634               found_dir="$additional_libdir"
25635               found_so="$additional_libdir/lib$name.$shlibext"
25636               if test -f "$additional_libdir/lib$name.la"; then
25637                 found_la="$additional_libdir/lib$name.la"
25638               fi
25639             else
25640               if test -f "$additional_libdir/lib$name.$libext"; then
25641                 found_dir="$additional_libdir"
25642                 found_a="$additional_libdir/lib$name.$libext"
25643                 if test -f "$additional_libdir/lib$name.la"; then
25644                   found_la="$additional_libdir/lib$name.la"
25645                 fi
25646               fi
25647             fi
25648           fi
25649           if test "X$found_dir" = "X"; then
25650             for x in $LDFLAGS $LTLIBICONV; do
25651
25652   acl_save_prefix="$prefix"
25653   prefix="$acl_final_prefix"
25654   acl_save_exec_prefix="$exec_prefix"
25655   exec_prefix="$acl_final_exec_prefix"
25656   eval x=\"$x\"
25657   exec_prefix="$acl_save_exec_prefix"
25658   prefix="$acl_save_prefix"
25659
25660               case "$x" in
25661                 -L*)
25662                   dir=`echo "X$x" | sed -e 's/^X-L//'`
25663                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
25664                     found_dir="$dir"
25665                     found_so="$dir/lib$name.$shlibext"
25666                     if test -f "$dir/lib$name.la"; then
25667                       found_la="$dir/lib$name.la"
25668                     fi
25669                   else
25670                     if test -f "$dir/lib$name.$libext"; then
25671                       found_dir="$dir"
25672                       found_a="$dir/lib$name.$libext"
25673                       if test -f "$dir/lib$name.la"; then
25674                         found_la="$dir/lib$name.la"
25675                       fi
25676                     fi
25677                   fi
25678                   ;;
25679               esac
25680               if test "X$found_dir" != "X"; then
25681                 break
25682               fi
25683             done
25684           fi
25685           if test "X$found_dir" != "X"; then
25686                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
25687             if test "X$found_so" != "X"; then
25688                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
25689                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25690               else
25691                                                                                 haveit=
25692                 for x in $ltrpathdirs; do
25693                   if test "X$x" = "X$found_dir"; then
25694                     haveit=yes
25695                     break
25696                   fi
25697                 done
25698                 if test -z "$haveit"; then
25699                   ltrpathdirs="$ltrpathdirs $found_dir"
25700                 fi
25701                                 if test "$hardcode_direct" = yes; then
25702                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25703                 else
25704                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
25705                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25706                                                             haveit=
25707                     for x in $rpathdirs; do
25708                       if test "X$x" = "X$found_dir"; then
25709                         haveit=yes
25710                         break
25711                       fi
25712                     done
25713                     if test -z "$haveit"; then
25714                       rpathdirs="$rpathdirs $found_dir"
25715                     fi
25716                   else
25717                                                                                 haveit=
25718                     for x in $LDFLAGS $LIBICONV; do
25719
25720   acl_save_prefix="$prefix"
25721   prefix="$acl_final_prefix"
25722   acl_save_exec_prefix="$exec_prefix"
25723   exec_prefix="$acl_final_exec_prefix"
25724   eval x=\"$x\"
25725   exec_prefix="$acl_save_exec_prefix"
25726   prefix="$acl_save_prefix"
25727
25728                       if test "X$x" = "X-L$found_dir"; then
25729                         haveit=yes
25730                         break
25731                       fi
25732                     done
25733                     if test -z "$haveit"; then
25734                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
25735                     fi
25736                     if test "$hardcode_minus_L" != no; then
25737                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25738                     else
25739                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
25740                     fi
25741                   fi
25742                 fi
25743               fi
25744             else
25745               if test "X$found_a" != "X"; then
25746                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
25747               else
25748                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
25749               fi
25750             fi
25751                         additional_includedir=
25752             case "$found_dir" in
25753               */$acl_libdirstem | */$acl_libdirstem/)
25754                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
25755                 additional_includedir="$basedir/include"
25756                 ;;
25757             esac
25758             if test "X$additional_includedir" != "X"; then
25759                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
25760                 haveit=
25761                 if test "X$additional_includedir" = "X/usr/local/include"; then
25762                   if test -n "$GCC"; then
25763                     case $host_os in
25764                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25765                     esac
25766                   fi
25767                 fi
25768                 if test -z "$haveit"; then
25769                   for x in $CPPFLAGS $INCICONV; do
25770
25771   acl_save_prefix="$prefix"
25772   prefix="$acl_final_prefix"
25773   acl_save_exec_prefix="$exec_prefix"
25774   exec_prefix="$acl_final_exec_prefix"
25775   eval x=\"$x\"
25776   exec_prefix="$acl_save_exec_prefix"
25777   prefix="$acl_save_prefix"
25778
25779                     if test "X$x" = "X-I$additional_includedir"; then
25780                       haveit=yes
25781                       break
25782                     fi
25783                   done
25784                   if test -z "$haveit"; then
25785                     if test -d "$additional_includedir"; then
25786                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
25787                     fi
25788                   fi
25789                 fi
25790               fi
25791             fi
25792                         if test -n "$found_la"; then
25793                                                         save_libdir="$libdir"
25794               case "$found_la" in
25795                 */* | *\\*) . "$found_la" ;;
25796                 *) . "./$found_la" ;;
25797               esac
25798               libdir="$save_libdir"
25799                             for dep in $dependency_libs; do
25800                 case "$dep" in
25801                   -L*)
25802                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25803                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
25804                       haveit=
25805                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
25806                         if test -n "$GCC"; then
25807                           case $host_os in
25808                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25809                           esac
25810                         fi
25811                       fi
25812                       if test -z "$haveit"; then
25813                         haveit=
25814                         for x in $LDFLAGS $LIBICONV; do
25815
25816   acl_save_prefix="$prefix"
25817   prefix="$acl_final_prefix"
25818   acl_save_exec_prefix="$exec_prefix"
25819   exec_prefix="$acl_final_exec_prefix"
25820   eval x=\"$x\"
25821   exec_prefix="$acl_save_exec_prefix"
25822   prefix="$acl_save_prefix"
25823
25824                           if test "X$x" = "X-L$additional_libdir"; then
25825                             haveit=yes
25826                             break
25827                           fi
25828                         done
25829                         if test -z "$haveit"; then
25830                           if test -d "$additional_libdir"; then
25831                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
25832                           fi
25833                         fi
25834                         haveit=
25835                         for x in $LDFLAGS $LTLIBICONV; do
25836
25837   acl_save_prefix="$prefix"
25838   prefix="$acl_final_prefix"
25839   acl_save_exec_prefix="$exec_prefix"
25840   exec_prefix="$acl_final_exec_prefix"
25841   eval x=\"$x\"
25842   exec_prefix="$acl_save_exec_prefix"
25843   prefix="$acl_save_prefix"
25844
25845                           if test "X$x" = "X-L$additional_libdir"; then
25846                             haveit=yes
25847                             break
25848                           fi
25849                         done
25850                         if test -z "$haveit"; then
25851                           if test -d "$additional_libdir"; then
25852                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
25853                           fi
25854                         fi
25855                       fi
25856                     fi
25857                     ;;
25858                   -R*)
25859                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
25860                     if test "$enable_rpath" != no; then
25861                                                                   haveit=
25862                       for x in $rpathdirs; do
25863                         if test "X$x" = "X$dir"; then
25864                           haveit=yes
25865                           break
25866                         fi
25867                       done
25868                       if test -z "$haveit"; then
25869                         rpathdirs="$rpathdirs $dir"
25870                       fi
25871                                                                   haveit=
25872                       for x in $ltrpathdirs; do
25873                         if test "X$x" = "X$dir"; then
25874                           haveit=yes
25875                           break
25876                         fi
25877                       done
25878                       if test -z "$haveit"; then
25879                         ltrpathdirs="$ltrpathdirs $dir"
25880                       fi
25881                     fi
25882                     ;;
25883                   -l*)
25884                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25885                     ;;
25886                   *.la)
25887                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25888                     ;;
25889                   *)
25890                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
25891                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
25892                     ;;
25893                 esac
25894               done
25895             fi
25896           else
25897                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
25898             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
25899           fi
25900         fi
25901       fi
25902     done
25903   done
25904   if test "X$rpathdirs" != "X"; then
25905     if test -n "$hardcode_libdir_separator"; then
25906                         alldirs=
25907       for found_dir in $rpathdirs; do
25908         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
25909       done
25910             acl_save_libdir="$libdir"
25911       libdir="$alldirs"
25912       eval flag=\"$hardcode_libdir_flag_spec\"
25913       libdir="$acl_save_libdir"
25914       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
25915     else
25916             for found_dir in $rpathdirs; do
25917         acl_save_libdir="$libdir"
25918         libdir="$found_dir"
25919         eval flag=\"$hardcode_libdir_flag_spec\"
25920         libdir="$acl_save_libdir"
25921         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
25922       done
25923     fi
25924   fi
25925   if test "X$ltrpathdirs" != "X"; then
25926             for found_dir in $ltrpathdirs; do
25927       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
25928     done
25929   fi
25930
25931
25932
25933
25934
25935
25936
25937
25938
25939
25940
25941
25942
25943
25944
25945
25946
25947
25948     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
25949 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
25950 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
25951   echo $ECHO_N "(cached) $ECHO_C" >&6
25952 else
25953   gt_save_LIBS="$LIBS"
25954      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
25955      cat >conftest.$ac_ext <<_ACEOF
25956 /* confdefs.h.  */
25957 _ACEOF
25958 cat confdefs.h >>conftest.$ac_ext
25959 cat >>conftest.$ac_ext <<_ACEOF
25960 /* end confdefs.h.  */
25961 #include <CoreFoundation/CFPreferences.h>
25962 int
25963 main ()
25964 {
25965 CFPreferencesCopyAppValue(NULL, NULL)
25966   ;
25967   return 0;
25968 }
25969 _ACEOF
25970 rm -f conftest.$ac_objext conftest$ac_exeext
25971 if { (ac_try="$ac_link"
25972 case "(($ac_try" in
25973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25974   *) ac_try_echo=$ac_try;;
25975 esac
25976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25977   (eval "$ac_link") 2>conftest.er1
25978   ac_status=$?
25979   grep -v '^ *+' conftest.er1 >conftest.err
25980   rm -f conftest.er1
25981   cat conftest.err >&5
25982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25983   (exit $ac_status); } && {
25984          test -z "$ac_c_werror_flag" ||
25985          test ! -s conftest.err
25986        } && test -s conftest$ac_exeext &&
25987        $as_test_x conftest$ac_exeext; then
25988   gt_cv_func_CFPreferencesCopyAppValue=yes
25989 else
25990   echo "$as_me: failed program was:" >&5
25991 sed 's/^/| /' conftest.$ac_ext >&5
25992
25993         gt_cv_func_CFPreferencesCopyAppValue=no
25994 fi
25995
25996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25997       conftest$ac_exeext conftest.$ac_ext
25998      LIBS="$gt_save_LIBS"
25999 fi
26000 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
26001 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
26002   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
26003
26004 cat >>confdefs.h <<\_ACEOF
26005 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
26006 _ACEOF
26007
26008   fi
26009     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
26010 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
26011 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
26012   echo $ECHO_N "(cached) $ECHO_C" >&6
26013 else
26014   gt_save_LIBS="$LIBS"
26015      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
26016      cat >conftest.$ac_ext <<_ACEOF
26017 /* confdefs.h.  */
26018 _ACEOF
26019 cat confdefs.h >>conftest.$ac_ext
26020 cat >>conftest.$ac_ext <<_ACEOF
26021 /* end confdefs.h.  */
26022 #include <CoreFoundation/CFLocale.h>
26023 int
26024 main ()
26025 {
26026 CFLocaleCopyCurrent();
26027   ;
26028   return 0;
26029 }
26030 _ACEOF
26031 rm -f conftest.$ac_objext conftest$ac_exeext
26032 if { (ac_try="$ac_link"
26033 case "(($ac_try" in
26034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26035   *) ac_try_echo=$ac_try;;
26036 esac
26037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26038   (eval "$ac_link") 2>conftest.er1
26039   ac_status=$?
26040   grep -v '^ *+' conftest.er1 >conftest.err
26041   rm -f conftest.er1
26042   cat conftest.err >&5
26043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044   (exit $ac_status); } && {
26045          test -z "$ac_c_werror_flag" ||
26046          test ! -s conftest.err
26047        } && test -s conftest$ac_exeext &&
26048        $as_test_x conftest$ac_exeext; then
26049   gt_cv_func_CFLocaleCopyCurrent=yes
26050 else
26051   echo "$as_me: failed program was:" >&5
26052 sed 's/^/| /' conftest.$ac_ext >&5
26053
26054         gt_cv_func_CFLocaleCopyCurrent=no
26055 fi
26056
26057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26058       conftest$ac_exeext conftest.$ac_ext
26059      LIBS="$gt_save_LIBS"
26060 fi
26061 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
26062 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
26063   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26064
26065 cat >>confdefs.h <<\_ACEOF
26066 #define HAVE_CFLOCALECOPYCURRENT 1
26067 _ACEOF
26068
26069   fi
26070   INTL_MACOSX_LIBS=
26071   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26072     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
26073   fi
26074
26075
26076
26077
26078
26079
26080   LIBINTL=
26081   LTLIBINTL=
26082   POSUB=
26083
26084     if test "$USE_NLS" = "yes"; then
26085     gt_use_preinstalled_gnugettext=no
26086
26087
26088
26089
26090
26091
26092         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
26093 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
26094 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
26095   echo $ECHO_N "(cached) $ECHO_C" >&6
26096 else
26097   cat >conftest.$ac_ext <<_ACEOF
26098 /* confdefs.h.  */
26099 _ACEOF
26100 cat confdefs.h >>conftest.$ac_ext
26101 cat >>conftest.$ac_ext <<_ACEOF
26102 /* end confdefs.h.  */
26103 #include <libintl.h>
26104 extern int _nl_msg_cat_cntr;
26105 extern int *_nl_domain_bindings;
26106 int
26107 main ()
26108 {
26109 bindtextdomain ("", "");
26110 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
26111   ;
26112   return 0;
26113 }
26114 _ACEOF
26115 rm -f conftest.$ac_objext conftest$ac_exeext
26116 if { (ac_try="$ac_link"
26117 case "(($ac_try" in
26118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26119   *) ac_try_echo=$ac_try;;
26120 esac
26121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26122   (eval "$ac_link") 2>conftest.er1
26123   ac_status=$?
26124   grep -v '^ *+' conftest.er1 >conftest.err
26125   rm -f conftest.er1
26126   cat conftest.err >&5
26127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128   (exit $ac_status); } && {
26129          test -z "$ac_c_werror_flag" ||
26130          test ! -s conftest.err
26131        } && test -s conftest$ac_exeext &&
26132        $as_test_x conftest$ac_exeext; then
26133   gt_cv_func_gnugettext1_libc=yes
26134 else
26135   echo "$as_me: failed program was:" >&5
26136 sed 's/^/| /' conftest.$ac_ext >&5
26137
26138         gt_cv_func_gnugettext1_libc=no
26139 fi
26140
26141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26142       conftest$ac_exeext conftest.$ac_ext
26143 fi
26144 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
26145 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
26146
26147         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
26148
26149
26150
26151
26152
26153           am_save_CPPFLAGS="$CPPFLAGS"
26154
26155   for element in $INCICONV; do
26156     haveit=
26157     for x in $CPPFLAGS; do
26158
26159   acl_save_prefix="$prefix"
26160   prefix="$acl_final_prefix"
26161   acl_save_exec_prefix="$exec_prefix"
26162   exec_prefix="$acl_final_exec_prefix"
26163   eval x=\"$x\"
26164   exec_prefix="$acl_save_exec_prefix"
26165   prefix="$acl_save_prefix"
26166
26167       if test "X$x" = "X$element"; then
26168         haveit=yes
26169         break
26170       fi
26171     done
26172     if test -z "$haveit"; then
26173       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26174     fi
26175   done
26176
26177
26178   { echo "$as_me:$LINENO: checking for iconv" >&5
26179 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
26180 if test "${am_cv_func_iconv+set}" = set; then
26181   echo $ECHO_N "(cached) $ECHO_C" >&6
26182 else
26183
26184     am_cv_func_iconv="no, consider installing GNU libiconv"
26185     am_cv_lib_iconv=no
26186     cat >conftest.$ac_ext <<_ACEOF
26187 /* confdefs.h.  */
26188 _ACEOF
26189 cat confdefs.h >>conftest.$ac_ext
26190 cat >>conftest.$ac_ext <<_ACEOF
26191 /* end confdefs.h.  */
26192 #include <stdlib.h>
26193 #include <iconv.h>
26194 int
26195 main ()
26196 {
26197 iconv_t cd = iconv_open("","");
26198        iconv(cd,NULL,NULL,NULL,NULL);
26199        iconv_close(cd);
26200   ;
26201   return 0;
26202 }
26203 _ACEOF
26204 rm -f conftest.$ac_objext conftest$ac_exeext
26205 if { (ac_try="$ac_link"
26206 case "(($ac_try" in
26207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26208   *) ac_try_echo=$ac_try;;
26209 esac
26210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26211   (eval "$ac_link") 2>conftest.er1
26212   ac_status=$?
26213   grep -v '^ *+' conftest.er1 >conftest.err
26214   rm -f conftest.er1
26215   cat conftest.err >&5
26216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217   (exit $ac_status); } && {
26218          test -z "$ac_c_werror_flag" ||
26219          test ! -s conftest.err
26220        } && test -s conftest$ac_exeext &&
26221        $as_test_x conftest$ac_exeext; then
26222   am_cv_func_iconv=yes
26223 else
26224   echo "$as_me: failed program was:" >&5
26225 sed 's/^/| /' conftest.$ac_ext >&5
26226
26227
26228 fi
26229
26230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26231       conftest$ac_exeext conftest.$ac_ext
26232     if test "$am_cv_func_iconv" != yes; then
26233       am_save_LIBS="$LIBS"
26234       LIBS="$LIBS $LIBICONV"
26235       cat >conftest.$ac_ext <<_ACEOF
26236 /* confdefs.h.  */
26237 _ACEOF
26238 cat confdefs.h >>conftest.$ac_ext
26239 cat >>conftest.$ac_ext <<_ACEOF
26240 /* end confdefs.h.  */
26241 #include <stdlib.h>
26242 #include <iconv.h>
26243 int
26244 main ()
26245 {
26246 iconv_t cd = iconv_open("","");
26247          iconv(cd,NULL,NULL,NULL,NULL);
26248          iconv_close(cd);
26249   ;
26250   return 0;
26251 }
26252 _ACEOF
26253 rm -f conftest.$ac_objext conftest$ac_exeext
26254 if { (ac_try="$ac_link"
26255 case "(($ac_try" in
26256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26257   *) ac_try_echo=$ac_try;;
26258 esac
26259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26260   (eval "$ac_link") 2>conftest.er1
26261   ac_status=$?
26262   grep -v '^ *+' conftest.er1 >conftest.err
26263   rm -f conftest.er1
26264   cat conftest.err >&5
26265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266   (exit $ac_status); } && {
26267          test -z "$ac_c_werror_flag" ||
26268          test ! -s conftest.err
26269        } && test -s conftest$ac_exeext &&
26270        $as_test_x conftest$ac_exeext; then
26271   am_cv_lib_iconv=yes
26272         am_cv_func_iconv=yes
26273 else
26274   echo "$as_me: failed program was:" >&5
26275 sed 's/^/| /' conftest.$ac_ext >&5
26276
26277
26278 fi
26279
26280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26281       conftest$ac_exeext conftest.$ac_ext
26282       LIBS="$am_save_LIBS"
26283     fi
26284
26285 fi
26286 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26287 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
26288   if test "$am_cv_func_iconv" = yes; then
26289
26290 cat >>confdefs.h <<\_ACEOF
26291 #define HAVE_ICONV 1
26292 _ACEOF
26293
26294   fi
26295   if test "$am_cv_lib_iconv" = yes; then
26296     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
26297 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
26298     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
26299 echo "${ECHO_T}$LIBICONV" >&6; }
26300   else
26301             CPPFLAGS="$am_save_CPPFLAGS"
26302     LIBICONV=
26303     LTLIBICONV=
26304   fi
26305
26306
26307
26308
26309
26310
26311
26312     use_additional=yes
26313
26314   acl_save_prefix="$prefix"
26315   prefix="$acl_final_prefix"
26316   acl_save_exec_prefix="$exec_prefix"
26317   exec_prefix="$acl_final_exec_prefix"
26318
26319     eval additional_includedir=\"$includedir\"
26320     eval additional_libdir=\"$libdir\"
26321
26322   exec_prefix="$acl_save_exec_prefix"
26323   prefix="$acl_save_prefix"
26324
26325
26326 # Check whether --with-libintl-prefix was given.
26327 if test "${with_libintl_prefix+set}" = set; then
26328   withval=$with_libintl_prefix;
26329     if test "X$withval" = "Xno"; then
26330       use_additional=no
26331     else
26332       if test "X$withval" = "X"; then
26333
26334   acl_save_prefix="$prefix"
26335   prefix="$acl_final_prefix"
26336   acl_save_exec_prefix="$exec_prefix"
26337   exec_prefix="$acl_final_exec_prefix"
26338
26339           eval additional_includedir=\"$includedir\"
26340           eval additional_libdir=\"$libdir\"
26341
26342   exec_prefix="$acl_save_exec_prefix"
26343   prefix="$acl_save_prefix"
26344
26345       else
26346         additional_includedir="$withval/include"
26347         additional_libdir="$withval/$acl_libdirstem"
26348       fi
26349     fi
26350
26351 fi
26352
26353       LIBINTL=
26354   LTLIBINTL=
26355   INCINTL=
26356   rpathdirs=
26357   ltrpathdirs=
26358   names_already_handled=
26359   names_next_round='intl '
26360   while test -n "$names_next_round"; do
26361     names_this_round="$names_next_round"
26362     names_next_round=
26363     for name in $names_this_round; do
26364       already_handled=
26365       for n in $names_already_handled; do
26366         if test "$n" = "$name"; then
26367           already_handled=yes
26368           break
26369         fi
26370       done
26371       if test -z "$already_handled"; then
26372         names_already_handled="$names_already_handled $name"
26373                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26374         eval value=\"\$HAVE_LIB$uppername\"
26375         if test -n "$value"; then
26376           if test "$value" = yes; then
26377             eval value=\"\$LIB$uppername\"
26378             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
26379             eval value=\"\$LTLIB$uppername\"
26380             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
26381           else
26382                                     :
26383           fi
26384         else
26385                               found_dir=
26386           found_la=
26387           found_so=
26388           found_a=
26389           if test $use_additional = yes; then
26390             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
26391               found_dir="$additional_libdir"
26392               found_so="$additional_libdir/lib$name.$shlibext"
26393               if test -f "$additional_libdir/lib$name.la"; then
26394                 found_la="$additional_libdir/lib$name.la"
26395               fi
26396             else
26397               if test -f "$additional_libdir/lib$name.$libext"; then
26398                 found_dir="$additional_libdir"
26399                 found_a="$additional_libdir/lib$name.$libext"
26400                 if test -f "$additional_libdir/lib$name.la"; then
26401                   found_la="$additional_libdir/lib$name.la"
26402                 fi
26403               fi
26404             fi
26405           fi
26406           if test "X$found_dir" = "X"; then
26407             for x in $LDFLAGS $LTLIBINTL; do
26408
26409   acl_save_prefix="$prefix"
26410   prefix="$acl_final_prefix"
26411   acl_save_exec_prefix="$exec_prefix"
26412   exec_prefix="$acl_final_exec_prefix"
26413   eval x=\"$x\"
26414   exec_prefix="$acl_save_exec_prefix"
26415   prefix="$acl_save_prefix"
26416
26417               case "$x" in
26418                 -L*)
26419                   dir=`echo "X$x" | sed -e 's/^X-L//'`
26420                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
26421                     found_dir="$dir"
26422                     found_so="$dir/lib$name.$shlibext"
26423                     if test -f "$dir/lib$name.la"; then
26424                       found_la="$dir/lib$name.la"
26425                     fi
26426                   else
26427                     if test -f "$dir/lib$name.$libext"; then
26428                       found_dir="$dir"
26429                       found_a="$dir/lib$name.$libext"
26430                       if test -f "$dir/lib$name.la"; then
26431                         found_la="$dir/lib$name.la"
26432                       fi
26433                     fi
26434                   fi
26435                   ;;
26436               esac
26437               if test "X$found_dir" != "X"; then
26438                 break
26439               fi
26440             done
26441           fi
26442           if test "X$found_dir" != "X"; then
26443                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
26444             if test "X$found_so" != "X"; then
26445                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
26446                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26447               else
26448                                                                                 haveit=
26449                 for x in $ltrpathdirs; do
26450                   if test "X$x" = "X$found_dir"; then
26451                     haveit=yes
26452                     break
26453                   fi
26454                 done
26455                 if test -z "$haveit"; then
26456                   ltrpathdirs="$ltrpathdirs $found_dir"
26457                 fi
26458                                 if test "$hardcode_direct" = yes; then
26459                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26460                 else
26461                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26462                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26463                                                             haveit=
26464                     for x in $rpathdirs; do
26465                       if test "X$x" = "X$found_dir"; then
26466                         haveit=yes
26467                         break
26468                       fi
26469                     done
26470                     if test -z "$haveit"; then
26471                       rpathdirs="$rpathdirs $found_dir"
26472                     fi
26473                   else
26474                                                                                 haveit=
26475                     for x in $LDFLAGS $LIBINTL; do
26476
26477   acl_save_prefix="$prefix"
26478   prefix="$acl_final_prefix"
26479   acl_save_exec_prefix="$exec_prefix"
26480   exec_prefix="$acl_final_exec_prefix"
26481   eval x=\"$x\"
26482   exec_prefix="$acl_save_exec_prefix"
26483   prefix="$acl_save_prefix"
26484
26485                       if test "X$x" = "X-L$found_dir"; then
26486                         haveit=yes
26487                         break
26488                       fi
26489                     done
26490                     if test -z "$haveit"; then
26491                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
26492                     fi
26493                     if test "$hardcode_minus_L" != no; then
26494                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26495                     else
26496                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
26497                     fi
26498                   fi
26499                 fi
26500               fi
26501             else
26502               if test "X$found_a" != "X"; then
26503                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
26504               else
26505                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
26506               fi
26507             fi
26508                         additional_includedir=
26509             case "$found_dir" in
26510               */$acl_libdirstem | */$acl_libdirstem/)
26511                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
26512                 additional_includedir="$basedir/include"
26513                 ;;
26514             esac
26515             if test "X$additional_includedir" != "X"; then
26516                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
26517                 haveit=
26518                 if test "X$additional_includedir" = "X/usr/local/include"; then
26519                   if test -n "$GCC"; then
26520                     case $host_os in
26521                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26522                     esac
26523                   fi
26524                 fi
26525                 if test -z "$haveit"; then
26526                   for x in $CPPFLAGS $INCINTL; do
26527
26528   acl_save_prefix="$prefix"
26529   prefix="$acl_final_prefix"
26530   acl_save_exec_prefix="$exec_prefix"
26531   exec_prefix="$acl_final_exec_prefix"
26532   eval x=\"$x\"
26533   exec_prefix="$acl_save_exec_prefix"
26534   prefix="$acl_save_prefix"
26535
26536                     if test "X$x" = "X-I$additional_includedir"; then
26537                       haveit=yes
26538                       break
26539                     fi
26540                   done
26541                   if test -z "$haveit"; then
26542                     if test -d "$additional_includedir"; then
26543                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
26544                     fi
26545                   fi
26546                 fi
26547               fi
26548             fi
26549                         if test -n "$found_la"; then
26550                                                         save_libdir="$libdir"
26551               case "$found_la" in
26552                 */* | *\\*) . "$found_la" ;;
26553                 *) . "./$found_la" ;;
26554               esac
26555               libdir="$save_libdir"
26556                             for dep in $dependency_libs; do
26557                 case "$dep" in
26558                   -L*)
26559                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26560                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
26561                       haveit=
26562                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
26563                         if test -n "$GCC"; then
26564                           case $host_os in
26565                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26566                           esac
26567                         fi
26568                       fi
26569                       if test -z "$haveit"; then
26570                         haveit=
26571                         for x in $LDFLAGS $LIBINTL; do
26572
26573   acl_save_prefix="$prefix"
26574   prefix="$acl_final_prefix"
26575   acl_save_exec_prefix="$exec_prefix"
26576   exec_prefix="$acl_final_exec_prefix"
26577   eval x=\"$x\"
26578   exec_prefix="$acl_save_exec_prefix"
26579   prefix="$acl_save_prefix"
26580
26581                           if test "X$x" = "X-L$additional_libdir"; then
26582                             haveit=yes
26583                             break
26584                           fi
26585                         done
26586                         if test -z "$haveit"; then
26587                           if test -d "$additional_libdir"; then
26588                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
26589                           fi
26590                         fi
26591                         haveit=
26592                         for x in $LDFLAGS $LTLIBINTL; do
26593
26594   acl_save_prefix="$prefix"
26595   prefix="$acl_final_prefix"
26596   acl_save_exec_prefix="$exec_prefix"
26597   exec_prefix="$acl_final_exec_prefix"
26598   eval x=\"$x\"
26599   exec_prefix="$acl_save_exec_prefix"
26600   prefix="$acl_save_prefix"
26601
26602                           if test "X$x" = "X-L$additional_libdir"; then
26603                             haveit=yes
26604                             break
26605                           fi
26606                         done
26607                         if test -z "$haveit"; then
26608                           if test -d "$additional_libdir"; then
26609                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
26610                           fi
26611                         fi
26612                       fi
26613                     fi
26614                     ;;
26615                   -R*)
26616                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
26617                     if test "$enable_rpath" != no; then
26618                                                                   haveit=
26619                       for x in $rpathdirs; do
26620                         if test "X$x" = "X$dir"; then
26621                           haveit=yes
26622                           break
26623                         fi
26624                       done
26625                       if test -z "$haveit"; then
26626                         rpathdirs="$rpathdirs $dir"
26627                       fi
26628                                                                   haveit=
26629                       for x in $ltrpathdirs; do
26630                         if test "X$x" = "X$dir"; then
26631                           haveit=yes
26632                           break
26633                         fi
26634                       done
26635                       if test -z "$haveit"; then
26636                         ltrpathdirs="$ltrpathdirs $dir"
26637                       fi
26638                     fi
26639                     ;;
26640                   -l*)
26641                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26642                     ;;
26643                   *.la)
26644                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26645                     ;;
26646                   *)
26647                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
26648                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
26649                     ;;
26650                 esac
26651               done
26652             fi
26653           else
26654                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
26655             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
26656           fi
26657         fi
26658       fi
26659     done
26660   done
26661   if test "X$rpathdirs" != "X"; then
26662     if test -n "$hardcode_libdir_separator"; then
26663                         alldirs=
26664       for found_dir in $rpathdirs; do
26665         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26666       done
26667             acl_save_libdir="$libdir"
26668       libdir="$alldirs"
26669       eval flag=\"$hardcode_libdir_flag_spec\"
26670       libdir="$acl_save_libdir"
26671       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
26672     else
26673             for found_dir in $rpathdirs; do
26674         acl_save_libdir="$libdir"
26675         libdir="$found_dir"
26676         eval flag=\"$hardcode_libdir_flag_spec\"
26677         libdir="$acl_save_libdir"
26678         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
26679       done
26680     fi
26681   fi
26682   if test "X$ltrpathdirs" != "X"; then
26683             for found_dir in $ltrpathdirs; do
26684       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
26685     done
26686   fi
26687
26688           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
26689 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
26690 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
26691   echo $ECHO_N "(cached) $ECHO_C" >&6
26692 else
26693   gt_save_CPPFLAGS="$CPPFLAGS"
26694             CPPFLAGS="$CPPFLAGS $INCINTL"
26695             gt_save_LIBS="$LIBS"
26696             LIBS="$LIBS $LIBINTL"
26697                         cat >conftest.$ac_ext <<_ACEOF
26698 /* confdefs.h.  */
26699 _ACEOF
26700 cat confdefs.h >>conftest.$ac_ext
26701 cat >>conftest.$ac_ext <<_ACEOF
26702 /* end confdefs.h.  */
26703 #include <libintl.h>
26704 extern int _nl_msg_cat_cntr;
26705 extern
26706 #ifdef __cplusplus
26707 "C"
26708 #endif
26709 const char *_nl_expand_alias (const char *);
26710 int
26711 main ()
26712 {
26713 bindtextdomain ("", "");
26714 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
26715   ;
26716   return 0;
26717 }
26718 _ACEOF
26719 rm -f conftest.$ac_objext conftest$ac_exeext
26720 if { (ac_try="$ac_link"
26721 case "(($ac_try" in
26722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26723   *) ac_try_echo=$ac_try;;
26724 esac
26725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26726   (eval "$ac_link") 2>conftest.er1
26727   ac_status=$?
26728   grep -v '^ *+' conftest.er1 >conftest.err
26729   rm -f conftest.er1
26730   cat conftest.err >&5
26731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732   (exit $ac_status); } && {
26733          test -z "$ac_c_werror_flag" ||
26734          test ! -s conftest.err
26735        } && test -s conftest$ac_exeext &&
26736        $as_test_x conftest$ac_exeext; then
26737   gt_cv_func_gnugettext1_libintl=yes
26738 else
26739   echo "$as_me: failed program was:" >&5
26740 sed 's/^/| /' conftest.$ac_ext >&5
26741
26742         gt_cv_func_gnugettext1_libintl=no
26743 fi
26744
26745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26746       conftest$ac_exeext conftest.$ac_ext
26747                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
26748               LIBS="$LIBS $LIBICONV"
26749               cat >conftest.$ac_ext <<_ACEOF
26750 /* confdefs.h.  */
26751 _ACEOF
26752 cat confdefs.h >>conftest.$ac_ext
26753 cat >>conftest.$ac_ext <<_ACEOF
26754 /* end confdefs.h.  */
26755 #include <libintl.h>
26756 extern int _nl_msg_cat_cntr;
26757 extern
26758 #ifdef __cplusplus
26759 "C"
26760 #endif
26761 const char *_nl_expand_alias (const char *);
26762 int
26763 main ()
26764 {
26765 bindtextdomain ("", "");
26766 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
26767   ;
26768   return 0;
26769 }
26770 _ACEOF
26771 rm -f conftest.$ac_objext conftest$ac_exeext
26772 if { (ac_try="$ac_link"
26773 case "(($ac_try" in
26774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26775   *) ac_try_echo=$ac_try;;
26776 esac
26777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26778   (eval "$ac_link") 2>conftest.er1
26779   ac_status=$?
26780   grep -v '^ *+' conftest.er1 >conftest.err
26781   rm -f conftest.er1
26782   cat conftest.err >&5
26783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784   (exit $ac_status); } && {
26785          test -z "$ac_c_werror_flag" ||
26786          test ! -s conftest.err
26787        } && test -s conftest$ac_exeext &&
26788        $as_test_x conftest$ac_exeext; then
26789   LIBINTL="$LIBINTL $LIBICONV"
26790                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
26791                 gt_cv_func_gnugettext1_libintl=yes
26792
26793 else
26794   echo "$as_me: failed program was:" >&5
26795 sed 's/^/| /' conftest.$ac_ext >&5
26796
26797
26798 fi
26799
26800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26801       conftest$ac_exeext conftest.$ac_ext
26802             fi
26803             CPPFLAGS="$gt_save_CPPFLAGS"
26804             LIBS="$gt_save_LIBS"
26805 fi
26806 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
26807 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
26808         fi
26809
26810                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
26811            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
26812                 && test "$PACKAGE" != gettext-runtime \
26813                 && test "$PACKAGE" != gettext-tools; }; then
26814           gt_use_preinstalled_gnugettext=yes
26815         else
26816                     LIBINTL=
26817           LTLIBINTL=
26818           INCINTL=
26819         fi
26820
26821
26822
26823     if test -n "$INTL_MACOSX_LIBS"; then
26824       if test "$gt_use_preinstalled_gnugettext" = "yes" \
26825          || test "$nls_cv_use_gnu_gettext" = "yes"; then
26826                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
26827         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
26828       fi
26829     fi
26830
26831     if test "$gt_use_preinstalled_gnugettext" = "yes" \
26832        || test "$nls_cv_use_gnu_gettext" = "yes"; then
26833
26834 cat >>confdefs.h <<\_ACEOF
26835 #define ENABLE_NLS 1
26836 _ACEOF
26837
26838     else
26839       USE_NLS=no
26840     fi
26841   fi
26842
26843   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
26844 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
26845   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
26846 echo "${ECHO_T}$USE_NLS" >&6; }
26847   if test "$USE_NLS" = "yes"; then
26848     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
26849 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
26850     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
26851       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
26852         gt_source="external libintl"
26853       else
26854         gt_source="libc"
26855       fi
26856     else
26857       gt_source="included intl directory"
26858     fi
26859     { echo "$as_me:$LINENO: result: $gt_source" >&5
26860 echo "${ECHO_T}$gt_source" >&6; }
26861   fi
26862
26863   if test "$USE_NLS" = "yes"; then
26864
26865     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
26866       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
26867         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
26868 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
26869         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
26870 echo "${ECHO_T}$LIBINTL" >&6; }
26871
26872   for element in $INCINTL; do
26873     haveit=
26874     for x in $CPPFLAGS; do
26875
26876   acl_save_prefix="$prefix"
26877   prefix="$acl_final_prefix"
26878   acl_save_exec_prefix="$exec_prefix"
26879   exec_prefix="$acl_final_exec_prefix"
26880   eval x=\"$x\"
26881   exec_prefix="$acl_save_exec_prefix"
26882   prefix="$acl_save_prefix"
26883
26884       if test "X$x" = "X$element"; then
26885         haveit=yes
26886         break
26887       fi
26888     done
26889     if test -z "$haveit"; then
26890       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26891     fi
26892   done
26893
26894       fi
26895
26896
26897 cat >>confdefs.h <<\_ACEOF
26898 #define HAVE_GETTEXT 1
26899 _ACEOF
26900
26901
26902 cat >>confdefs.h <<\_ACEOF
26903 #define HAVE_DCGETTEXT 1
26904 _ACEOF
26905
26906     fi
26907
26908         POSUB=po
26909   fi
26910
26911
26912
26913     INTLLIBS="$LIBINTL"
26914
26915
26916
26917
26918
26919
26920
26921 #
26922 # Devices
26923 #
26924
26925     case "$target" in
26926         sparc-sun-solaris2.10) # Solaris 10
26927         # curl is not in the LD_LIBRARY_PATH on Solaris 10, so we search
26928         # for it in a few common paths; we then extract the -L flags and
26929         # translate them to -R flags, as required by the runtime linker.
26930         # Extract the first word of "curl-config", so it can be a program name with args.
26931 set dummy curl-config; ac_word=$2
26932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26934 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
26935   echo $ECHO_N "(cached) $ECHO_C" >&6
26936 else
26937   case $CURL_CONFIG in
26938   [\\/]* | ?:[\\/]*)
26939   ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
26940   ;;
26941   *)
26942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26943 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
26944 for as_dir in $as_dummy
26945 do
26946   IFS=$as_save_IFS
26947   test -z "$as_dir" && as_dir=.
26948   for ac_exec_ext in '' $ac_executable_extensions; do
26949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26950     ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26952     break 2
26953   fi
26954 done
26955 done
26956 IFS=$as_save_IFS
26957
26958   ;;
26959 esac
26960 fi
26961 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
26962 if test -n "$CURL_CONFIG"; then
26963   { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
26964 echo "${ECHO_T}$CURL_CONFIG" >&6; }
26965 else
26966   { echo "$as_me:$LINENO: result: no" >&5
26967 echo "${ECHO_T}no" >&6; }
26968 fi
26969
26970
26971         if test -n "$CURL_CONFIG"; then
26972             curlflags=`$CURL_CONFIG --libs 2>/dev/null`
26973             for flag in curlflags; do
26974                 case $flag in
26975                     -L*) LDFLAGS="$LDFLAGS "`echo "x$flag" | sed -e 's/^x-L/-R/'`;;
26976                 esac
26977             done
26978         fi
26979         ;;
26980     esac
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020 # Check whether --with-libcurl was given.
27021 if test "${with_libcurl+set}" = set; then
27022   withval=$with_libcurl; _libcurl_with=$withval
27023 else
27024   _libcurl_with=yes
27025 fi
27026
27027
27028   if test "$_libcurl_with" != "no" ; then
27029
27030      for ac_prog in gawk mawk nawk awk
27031 do
27032   # Extract the first word of "$ac_prog", so it can be a program name with args.
27033 set dummy $ac_prog; ac_word=$2
27034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27036 if test "${ac_cv_prog_AWK+set}" = set; then
27037   echo $ECHO_N "(cached) $ECHO_C" >&6
27038 else
27039   if test -n "$AWK"; then
27040   ac_cv_prog_AWK="$AWK" # Let the user override the test.
27041 else
27042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27043 for as_dir in $PATH
27044 do
27045   IFS=$as_save_IFS
27046   test -z "$as_dir" && as_dir=.
27047   for ac_exec_ext in '' $ac_executable_extensions; do
27048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27049     ac_cv_prog_AWK="$ac_prog"
27050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27051     break 2
27052   fi
27053 done
27054 done
27055 IFS=$as_save_IFS
27056
27057 fi
27058 fi
27059 AWK=$ac_cv_prog_AWK
27060 if test -n "$AWK"; then
27061   { echo "$as_me:$LINENO: result: $AWK" >&5
27062 echo "${ECHO_T}$AWK" >&6; }
27063 else
27064   { echo "$as_me:$LINENO: result: no" >&5
27065 echo "${ECHO_T}no" >&6; }
27066 fi
27067
27068
27069   test -n "$AWK" && break
27070 done
27071
27072
27073      _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
27074
27075      _libcurl_try_link=yes
27076
27077      if test -d "$_libcurl_with" ; then
27078         LIBCURL_CPPFLAGS="-I$withval/include"
27079         _libcurl_ldflags="-L$withval/lib"
27080         # Extract the first word of "curl-config", so it can be a program name with args.
27081 set dummy curl-config; ac_word=$2
27082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27084 if test "${ac_cv_path__libcurl_config+set}" = set; then
27085   echo $ECHO_N "(cached) $ECHO_C" >&6
27086 else
27087   case $_libcurl_config in
27088   [\\/]* | ?:[\\/]*)
27089   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
27090   ;;
27091   *)
27092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27093 for as_dir in "$withval/bin"
27094 do
27095   IFS=$as_save_IFS
27096   test -z "$as_dir" && as_dir=.
27097   for ac_exec_ext in '' $ac_executable_extensions; do
27098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27099     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
27100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27101     break 2
27102   fi
27103 done
27104 done
27105 IFS=$as_save_IFS
27106
27107   test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
27108   ;;
27109 esac
27110 fi
27111 _libcurl_config=$ac_cv_path__libcurl_config
27112 if test -n "$_libcurl_config"; then
27113   { echo "$as_me:$LINENO: result: $_libcurl_config" >&5
27114 echo "${ECHO_T}$_libcurl_config" >&6; }
27115 else
27116   { echo "$as_me:$LINENO: result: no" >&5
27117 echo "${ECHO_T}no" >&6; }
27118 fi
27119
27120
27121      else
27122         # Extract the first word of "curl-config", so it can be a program name with args.
27123 set dummy curl-config; ac_word=$2
27124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27126 if test "${ac_cv_path__libcurl_config+set}" = set; then
27127   echo $ECHO_N "(cached) $ECHO_C" >&6
27128 else
27129   case $_libcurl_config in
27130   [\\/]* | ?:[\\/]*)
27131   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
27132   ;;
27133   *)
27134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27135 for as_dir in $PATH
27136 do
27137   IFS=$as_save_IFS
27138   test -z "$as_dir" && as_dir=.
27139   for ac_exec_ext in '' $ac_executable_extensions; do
27140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27141     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
27142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27143     break 2
27144   fi
27145 done
27146 done
27147 IFS=$as_save_IFS
27148
27149   ;;
27150 esac
27151 fi
27152 _libcurl_config=$ac_cv_path__libcurl_config
27153 if test -n "$_libcurl_config"; then
27154   { echo "$as_me:$LINENO: result: $_libcurl_config" >&5
27155 echo "${ECHO_T}$_libcurl_config" >&6; }
27156 else
27157   { echo "$as_me:$LINENO: result: no" >&5
27158 echo "${ECHO_T}no" >&6; }
27159 fi
27160
27161
27162      fi
27163
27164      if test x$_libcurl_config != "x" ; then
27165         { echo "$as_me:$LINENO: checking for the version of libcurl" >&5
27166 echo $ECHO_N "checking for the version of libcurl... $ECHO_C" >&6; }
27167 if test "${libcurl_cv_lib_curl_version+set}" = set; then
27168   echo $ECHO_N "(cached) $ECHO_C" >&6
27169 else
27170   libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
27171 fi
27172 { echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_version" >&5
27173 echo "${ECHO_T}$libcurl_cv_lib_curl_version" >&6; }
27174
27175         _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
27176         _libcurl_wanted=`echo 7.10.0 | $_libcurl_version_parse`
27177
27178         if test $_libcurl_wanted -gt 0 ; then
27179            { echo "$as_me:$LINENO: checking for libcurl >= version 7.10.0" >&5
27180 echo $ECHO_N "checking for libcurl >= version 7.10.0... $ECHO_C" >&6; }
27181 if test "${libcurl_cv_lib_version_ok+set}" = set; then
27182   echo $ECHO_N "(cached) $ECHO_C" >&6
27183 else
27184
27185               if test $_libcurl_version -ge $_libcurl_wanted ; then
27186                  libcurl_cv_lib_version_ok=yes
27187               else
27188                  libcurl_cv_lib_version_ok=no
27189               fi
27190
27191 fi
27192 { echo "$as_me:$LINENO: result: $libcurl_cv_lib_version_ok" >&5
27193 echo "${ECHO_T}$libcurl_cv_lib_version_ok" >&6; }
27194         fi
27195
27196         if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
27197            if test x"$LIBCURL_CPPFLAGS" = "x" ; then
27198               LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
27199            fi
27200            if test x"$LIBCURL" = "x" ; then
27201               LIBCURL=`$_libcurl_config --libs`
27202
27203               # This is so silly, but Apple actually has a bug in their
27204               # curl-config script.  Fixed in Tiger, but there are still
27205               # lots of Panther installs around.
27206               case "${host}" in
27207                  powerpc-apple-darwin7*)
27208                     LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
27209                  ;;
27210               esac
27211            fi
27212
27213            # All curl-config scripts support --feature
27214            _libcurl_features=`$_libcurl_config --feature`
27215
27216            # Is it modern enough to have --protocols? (7.12.4)
27217            if test $_libcurl_version -ge 461828 ; then
27218               _libcurl_protocols=`$_libcurl_config --protocols`
27219            fi
27220         else
27221            _libcurl_try_link=no
27222         fi
27223
27224         unset _libcurl_wanted
27225      fi
27226
27227      if test $_libcurl_try_link = yes ; then
27228
27229         # we didn't find curl-config, so let's see if the user-supplied
27230         # link line (or failing that, "-lcurl") is enough.
27231         LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
27232
27233         { echo "$as_me:$LINENO: checking whether libcurl is usable" >&5
27234 echo $ECHO_N "checking whether libcurl is usable... $ECHO_C" >&6; }
27235 if test "${libcurl_cv_lib_curl_usable+set}" = set; then
27236   echo $ECHO_N "(cached) $ECHO_C" >&6
27237 else
27238
27239            _libcurl_save_cppflags=$CPPFLAGS
27240            CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
27241            _libcurl_save_libs=$LIBS
27242            LIBS="$LIBCURL $LIBS"
27243
27244            cat >conftest.$ac_ext <<_ACEOF
27245 /* confdefs.h.  */
27246 _ACEOF
27247 cat confdefs.h >>conftest.$ac_ext
27248 cat >>conftest.$ac_ext <<_ACEOF
27249 /* end confdefs.h.  */
27250 #include <curl/curl.h>
27251 int
27252 main ()
27253 {
27254
27255 /* Try and use a few common options to force a failure if we are
27256    missing symbols or can't link. */
27257 int x;
27258 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
27259 x=CURL_ERROR_SIZE;
27260 x=CURLOPT_WRITEFUNCTION;
27261 x=CURLOPT_FILE;
27262 x=CURLOPT_ERRORBUFFER;
27263 x=CURLOPT_STDERR;
27264 x=CURLOPT_VERBOSE;
27265
27266   ;
27267   return 0;
27268 }
27269 _ACEOF
27270 rm -f conftest.$ac_objext conftest$ac_exeext
27271 if { (ac_try="$ac_link"
27272 case "(($ac_try" in
27273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27274   *) ac_try_echo=$ac_try;;
27275 esac
27276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27277   (eval "$ac_link") 2>conftest.er1
27278   ac_status=$?
27279   grep -v '^ *+' conftest.er1 >conftest.err
27280   rm -f conftest.er1
27281   cat conftest.err >&5
27282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283   (exit $ac_status); } && {
27284          test -z "$ac_c_werror_flag" ||
27285          test ! -s conftest.err
27286        } && test -s conftest$ac_exeext &&
27287        $as_test_x conftest$ac_exeext; then
27288   libcurl_cv_lib_curl_usable=yes
27289 else
27290   echo "$as_me: failed program was:" >&5
27291 sed 's/^/| /' conftest.$ac_ext >&5
27292
27293         libcurl_cv_lib_curl_usable=no
27294 fi
27295
27296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27297       conftest$ac_exeext conftest.$ac_ext
27298
27299            CPPFLAGS=$_libcurl_save_cppflags
27300            LIBS=$_libcurl_save_libs
27301            unset _libcurl_save_cppflags
27302            unset _libcurl_save_libs
27303
27304 fi
27305 { echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_usable" >&5
27306 echo "${ECHO_T}$libcurl_cv_lib_curl_usable" >&6; }
27307
27308         if test $libcurl_cv_lib_curl_usable = yes ; then
27309
27310            # Does curl_free() exist in this version of libcurl?
27311            # If not, fake it with free()
27312
27313            _libcurl_save_cppflags=$CPPFLAGS
27314            CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
27315            _libcurl_save_libs=$LIBS
27316            LIBS="$LIBS $LIBCURL"
27317
27318            { echo "$as_me:$LINENO: checking for curl_free" >&5
27319 echo $ECHO_N "checking for curl_free... $ECHO_C" >&6; }
27320 if test "${ac_cv_func_curl_free+set}" = set; then
27321   echo $ECHO_N "(cached) $ECHO_C" >&6
27322 else
27323   cat >conftest.$ac_ext <<_ACEOF
27324 /* confdefs.h.  */
27325 _ACEOF
27326 cat confdefs.h >>conftest.$ac_ext
27327 cat >>conftest.$ac_ext <<_ACEOF
27328 /* end confdefs.h.  */
27329 /* Define curl_free to an innocuous variant, in case <limits.h> declares curl_free.
27330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27331 #define curl_free innocuous_curl_free
27332
27333 /* System header to define __stub macros and hopefully few prototypes,
27334     which can conflict with char curl_free (); below.
27335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27336     <limits.h> exists even on freestanding compilers.  */
27337
27338 #ifdef __STDC__
27339 # include <limits.h>
27340 #else
27341 # include <assert.h>
27342 #endif
27343
27344 #undef curl_free
27345
27346 /* Override any GCC internal prototype to avoid an error.
27347    Use char because int might match the return type of a GCC
27348    builtin and then its argument prototype would still apply.  */
27349 #ifdef __cplusplus
27350 extern "C"
27351 #endif
27352 char curl_free ();
27353 /* The GNU C library defines this for functions which it implements
27354     to always fail with ENOSYS.  Some functions are actually named
27355     something starting with __ and the normal name is an alias.  */
27356 #if defined __stub_curl_free || defined __stub___curl_free
27357 choke me
27358 #endif
27359
27360 int
27361 main ()
27362 {
27363 return curl_free ();
27364   ;
27365   return 0;
27366 }
27367 _ACEOF
27368 rm -f conftest.$ac_objext conftest$ac_exeext
27369 if { (ac_try="$ac_link"
27370 case "(($ac_try" in
27371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27372   *) ac_try_echo=$ac_try;;
27373 esac
27374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27375   (eval "$ac_link") 2>conftest.er1
27376   ac_status=$?
27377   grep -v '^ *+' conftest.er1 >conftest.err
27378   rm -f conftest.er1
27379   cat conftest.err >&5
27380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381   (exit $ac_status); } && {
27382          test -z "$ac_c_werror_flag" ||
27383          test ! -s conftest.err
27384        } && test -s conftest$ac_exeext &&
27385        $as_test_x conftest$ac_exeext; then
27386   ac_cv_func_curl_free=yes
27387 else
27388   echo "$as_me: failed program was:" >&5
27389 sed 's/^/| /' conftest.$ac_ext >&5
27390
27391         ac_cv_func_curl_free=no
27392 fi
27393
27394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27395       conftest$ac_exeext conftest.$ac_ext
27396 fi
27397 { echo "$as_me:$LINENO: result: $ac_cv_func_curl_free" >&5
27398 echo "${ECHO_T}$ac_cv_func_curl_free" >&6; }
27399 if test $ac_cv_func_curl_free = yes; then
27400   :
27401 else
27402
27403 cat >>confdefs.h <<\_ACEOF
27404 #define curl_free free
27405 _ACEOF
27406
27407 fi
27408
27409
27410            CPPFLAGS=$_libcurl_save_cppflags
27411            LIBS=$_libcurl_save_libs
27412            unset _libcurl_save_cppflags
27413            unset _libcurl_save_libs
27414
27415
27416 cat >>confdefs.h <<\_ACEOF
27417 #define HAVE_LIBCURL 1
27418 _ACEOF
27419
27420
27421
27422
27423            for _libcurl_feature in $_libcurl_features ; do
27424               cat >>confdefs.h <<_ACEOF
27425 #define `echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
27426 _ACEOF
27427
27428               eval `echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
27429            done
27430
27431            if test "x$_libcurl_protocols" = "x" ; then
27432
27433               # We don't have --protocols, so just assume that all
27434               # protocols are available
27435               _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
27436
27437               if test x$libcurl_feature_SSL = xyes ; then
27438                  _libcurl_protocols="$_libcurl_protocols HTTPS"
27439
27440                  # FTPS wasn't standards-compliant until version
27441                  # 7.11.0
27442                  if test $_libcurl_version -ge 461568; then
27443                     _libcurl_protocols="$_libcurl_protocols FTPS"
27444                  fi
27445               fi
27446            fi
27447
27448            for _libcurl_protocol in $_libcurl_protocols ; do
27449               cat >>confdefs.h <<_ACEOF
27450 #define `echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
27451 _ACEOF
27452
27453               eval `echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
27454            done
27455         else
27456            unset LIBCURL
27457            unset LIBCURL_CPPFLAGS
27458         fi
27459      fi
27460
27461      unset _libcurl_try_link
27462      unset _libcurl_version_parse
27463      unset _libcurl_config
27464      unset _libcurl_feature
27465      unset _libcurl_features
27466      unset _libcurl_protocol
27467      unset _libcurl_protocols
27468      unset _libcurl_version
27469      unset _libcurl_ldflags
27470   fi
27471
27472   if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
27473      # This is the IF-NO path
27474      HAVE_CURL=no
27475   else
27476      # This is the IF-YES path
27477      HAVE_CURL=yes
27478   fi
27479
27480   unset _libcurl_with
27481
27482     if test x"$HAVE_CURL" = x"yes"; then
27483         LIBS="$LIBCURL $LIBS"
27484
27485         CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
27486
27487
27488
27489
27490     { echo "$as_me:$LINENO: checking for curl_off_t" >&5
27491 echo $ECHO_N "checking for curl_off_t... $ECHO_C" >&6; }
27492 if test "${ac_cv_type_curl_off_t+set}" = set; then
27493   echo $ECHO_N "(cached) $ECHO_C" >&6
27494 else
27495   cat >conftest.$ac_ext <<_ACEOF
27496 /* confdefs.h.  */
27497 _ACEOF
27498 cat confdefs.h >>conftest.$ac_ext
27499 cat >>conftest.$ac_ext <<_ACEOF
27500 /* end confdefs.h.  */
27501
27502 #ifdef STDC_HEADERS
27503 #include <stdlib.h>
27504 #include <stddef.h>
27505 #endif
27506 #include <curl/curl.h>
27507
27508
27509
27510 typedef curl_off_t ac__type_new_;
27511 int
27512 main ()
27513 {
27514 if ((ac__type_new_ *) 0)
27515   return 0;
27516 if (sizeof (ac__type_new_))
27517   return 0;
27518   ;
27519   return 0;
27520 }
27521 _ACEOF
27522 rm -f conftest.$ac_objext
27523 if { (ac_try="$ac_compile"
27524 case "(($ac_try" in
27525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27526   *) ac_try_echo=$ac_try;;
27527 esac
27528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27529   (eval "$ac_compile") 2>conftest.er1
27530   ac_status=$?
27531   grep -v '^ *+' conftest.er1 >conftest.err
27532   rm -f conftest.er1
27533   cat conftest.err >&5
27534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535   (exit $ac_status); } && {
27536          test -z "$ac_c_werror_flag" ||
27537          test ! -s conftest.err
27538        } && test -s conftest.$ac_objext; then
27539   ac_cv_type_curl_off_t=yes
27540 else
27541   echo "$as_me: failed program was:" >&5
27542 sed 's/^/| /' conftest.$ac_ext >&5
27543
27544         ac_cv_type_curl_off_t=no
27545 fi
27546
27547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27548 fi
27549 { echo "$as_me:$LINENO: result: $ac_cv_type_curl_off_t" >&5
27550 echo "${ECHO_T}$ac_cv_type_curl_off_t" >&6; }
27551 if test $ac_cv_type_curl_off_t = yes; then
27552   :
27553 else
27554
27555
27556 cat >>confdefs.h <<\_ACEOF
27557 #define curl_off_t off_t
27558 _ACEOF
27559
27560
27561 fi
27562
27563
27564     fi
27565
27566
27567     HAVE_HMAC=yes
27568
27569 { echo "$as_me:$LINENO: checking for HMAC_CTX_init in -lcrypto" >&5
27570 echo $ECHO_N "checking for HMAC_CTX_init in -lcrypto... $ECHO_C" >&6; }
27571 if test "${ac_cv_lib_crypto_HMAC_CTX_init+set}" = set; then
27572   echo $ECHO_N "(cached) $ECHO_C" >&6
27573 else
27574   ac_check_lib_save_LIBS=$LIBS
27575 LIBS="-lcrypto  $LIBS"
27576 cat >conftest.$ac_ext <<_ACEOF
27577 /* confdefs.h.  */
27578 _ACEOF
27579 cat confdefs.h >>conftest.$ac_ext
27580 cat >>conftest.$ac_ext <<_ACEOF
27581 /* end confdefs.h.  */
27582
27583 /* Override any GCC internal prototype to avoid an error.
27584    Use char because int might match the return type of a GCC
27585    builtin and then its argument prototype would still apply.  */
27586 #ifdef __cplusplus
27587 extern "C"
27588 #endif
27589 char HMAC_CTX_init ();
27590 int
27591 main ()
27592 {
27593 return HMAC_CTX_init ();
27594   ;
27595   return 0;
27596 }
27597 _ACEOF
27598 rm -f conftest.$ac_objext conftest$ac_exeext
27599 if { (ac_try="$ac_link"
27600 case "(($ac_try" in
27601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27602   *) ac_try_echo=$ac_try;;
27603 esac
27604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27605   (eval "$ac_link") 2>conftest.er1
27606   ac_status=$?
27607   grep -v '^ *+' conftest.er1 >conftest.err
27608   rm -f conftest.er1
27609   cat conftest.err >&5
27610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27611   (exit $ac_status); } && {
27612          test -z "$ac_c_werror_flag" ||
27613          test ! -s conftest.err
27614        } && test -s conftest$ac_exeext &&
27615        $as_test_x conftest$ac_exeext; then
27616   ac_cv_lib_crypto_HMAC_CTX_init=yes
27617 else
27618   echo "$as_me: failed program was:" >&5
27619 sed 's/^/| /' conftest.$ac_ext >&5
27620
27621         ac_cv_lib_crypto_HMAC_CTX_init=no
27622 fi
27623
27624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27625       conftest$ac_exeext conftest.$ac_ext
27626 LIBS=$ac_check_lib_save_LIBS
27627 fi
27628 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
27629 echo "${ECHO_T}$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
27630 if test $ac_cv_lib_crypto_HMAC_CTX_init = yes; then
27631   cat >>confdefs.h <<_ACEOF
27632 #define HAVE_LIBCRYPTO 1
27633 _ACEOF
27634
27635   LIBS="-lcrypto $LIBS"
27636
27637 else
27638   HAVE_HMAC=no
27639 fi
27640
27641
27642     found_hmac_h=no
27643
27644
27645
27646 for ac_header in openssl/hmac.h crypto/hmac.h hmac.h
27647 do
27648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27650   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27653   echo $ECHO_N "(cached) $ECHO_C" >&6
27654 fi
27655 ac_res=`eval echo '${'$as_ac_Header'}'`
27656                { echo "$as_me:$LINENO: result: $ac_res" >&5
27657 echo "${ECHO_T}$ac_res" >&6; }
27658 else
27659   # Is the header compilable?
27660 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27662 cat >conftest.$ac_ext <<_ACEOF
27663 /* confdefs.h.  */
27664 _ACEOF
27665 cat confdefs.h >>conftest.$ac_ext
27666 cat >>conftest.$ac_ext <<_ACEOF
27667 /* end confdefs.h.  */
27668 $ac_includes_default
27669 #include <$ac_header>
27670 _ACEOF
27671 rm -f conftest.$ac_objext
27672 if { (ac_try="$ac_compile"
27673 case "(($ac_try" in
27674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27675   *) ac_try_echo=$ac_try;;
27676 esac
27677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27678   (eval "$ac_compile") 2>conftest.er1
27679   ac_status=$?
27680   grep -v '^ *+' conftest.er1 >conftest.err
27681   rm -f conftest.er1
27682   cat conftest.err >&5
27683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684   (exit $ac_status); } && {
27685          test -z "$ac_c_werror_flag" ||
27686          test ! -s conftest.err
27687        } && test -s conftest.$ac_objext; then
27688   ac_header_compiler=yes
27689 else
27690   echo "$as_me: failed program was:" >&5
27691 sed 's/^/| /' conftest.$ac_ext >&5
27692
27693         ac_header_compiler=no
27694 fi
27695
27696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27698 echo "${ECHO_T}$ac_header_compiler" >&6; }
27699
27700 # Is the header present?
27701 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27703 cat >conftest.$ac_ext <<_ACEOF
27704 /* confdefs.h.  */
27705 _ACEOF
27706 cat confdefs.h >>conftest.$ac_ext
27707 cat >>conftest.$ac_ext <<_ACEOF
27708 /* end confdefs.h.  */
27709 #include <$ac_header>
27710 _ACEOF
27711 if { (ac_try="$ac_cpp conftest.$ac_ext"
27712 case "(($ac_try" in
27713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27714   *) ac_try_echo=$ac_try;;
27715 esac
27716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27717   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27718   ac_status=$?
27719   grep -v '^ *+' conftest.er1 >conftest.err
27720   rm -f conftest.er1
27721   cat conftest.err >&5
27722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723   (exit $ac_status); } >/dev/null && {
27724          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27725          test ! -s conftest.err
27726        }; then
27727   ac_header_preproc=yes
27728 else
27729   echo "$as_me: failed program was:" >&5
27730 sed 's/^/| /' conftest.$ac_ext >&5
27731
27732   ac_header_preproc=no
27733 fi
27734
27735 rm -f conftest.err conftest.$ac_ext
27736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27737 echo "${ECHO_T}$ac_header_preproc" >&6; }
27738
27739 # So?  What about this header?
27740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27741   yes:no: )
27742     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27746     ac_header_preproc=yes
27747     ;;
27748   no:yes:* )
27749     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27751     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27752 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27753     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27755     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27756 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27759     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27761
27762     ;;
27763 esac
27764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27767   echo $ECHO_N "(cached) $ECHO_C" >&6
27768 else
27769   eval "$as_ac_Header=\$ac_header_preproc"
27770 fi
27771 ac_res=`eval echo '${'$as_ac_Header'}'`
27772                { echo "$as_me:$LINENO: result: $ac_res" >&5
27773 echo "${ECHO_T}$ac_res" >&6; }
27774
27775 fi
27776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27777   cat >>confdefs.h <<_ACEOF
27778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27779 _ACEOF
27780  found_hmac_h=yes; break
27781 fi
27782
27783 done
27784
27785     if test x"$found_hmac_h" != x"yes"; then
27786         HAVE_HMAC=no
27787     fi
27788
27789
27790
27791
27792
27793     # Check whether --enable-s3-device was given.
27794 if test "${enable_s3_device+set}" = set; then
27795   enableval=$enable_s3_device;  WANT_S3_DEVICE=$enableval
27796 else
27797    WANT_S3_DEVICE=maybe
27798 fi
27799
27800
27801     { echo "$as_me:$LINENO: checking whether to include the Amazon S3 device" >&5
27802 echo $ECHO_N "checking whether to include the Amazon S3 device... $ECHO_C" >&6; }
27803     # if the user didn't specify 'no', then check for support
27804     if test x"$WANT_S3_DEVICE" != x"no"; then
27805         if test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"; then
27806             WANT_S3_DEVICE=yes
27807         else
27808             # no support -- if the user explicitly enabled the device,
27809             # then this is an error
27810             if test x"$WANT_S3_DEVICE" = x"yes"; then
27811                 { echo "$as_me:$LINENO: result: no" >&5
27812 echo "${ECHO_T}no" >&6; }
27813                 { { echo "$as_me:$LINENO: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&5
27814 echo "$as_me: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&2;}
27815    { (exit 1); exit 1; }; }
27816             else
27817                 WANT_S3_DEVICE=no
27818             fi
27819         fi
27820     fi
27821     { echo "$as_me:$LINENO: result: $WANT_S3_DEVICE" >&5
27822 echo "${ECHO_T}$WANT_S3_DEVICE" >&6; }
27823
27824      if test x"$WANT_S3_DEVICE" = x"yes"; then
27825   WANT_S3_DEVICE_TRUE=
27826   WANT_S3_DEVICE_FALSE='#'
27827 else
27828   WANT_S3_DEVICE_TRUE='#'
27829   WANT_S3_DEVICE_FALSE=
27830 fi
27831
27832
27833     # Now handle any setup for S3, if we want it.
27834     if test x"$WANT_S3_DEVICE" = x"yes"; then
27835
27836 cat >>confdefs.h <<\_ACEOF
27837 #define WANT_S3_DEVICE
27838 _ACEOF
27839
27840     fi
27841
27842
27843     # Check whether --enable-devpay was given.
27844 if test "${enable_devpay+set}" = set; then
27845   enableval=$enable_devpay; WANT_DEVPAY=$enableval
27846 else
27847   WANT_DEVPAY=no
27848 fi
27849
27850
27851     { echo "$as_me:$LINENO: checking whether to include the Amazon S3 device's DevPay support" >&5
27852 echo $ECHO_N "checking whether to include the Amazon S3 device's DevPay support... $ECHO_C" >&6; }
27853     if test x"$WANT_DEVPAY" = x"yes"; then
27854         if test x"$WANT_S3_DEVICE" != x"yes"; then
27855             { echo "$as_me:$LINENO: result: no" >&5
27856 echo "${ECHO_T}no" >&6; }
27857             { { echo "$as_me:$LINENO: error: DevPay support requires the S3 device (--enable-s3-device)" >&5
27858 echo "$as_me: error: DevPay support requires the S3 device (--enable-s3-device)" >&2;}
27859    { (exit 1); exit 1; }; }
27860         fi
27861
27862
27863 cat >>confdefs.h <<\_ACEOF
27864 #define WANT_DEVPAY
27865 _ACEOF
27866
27867     fi
27868     { echo "$as_me:$LINENO: result: $WANT_DEVPAY" >&5
27869 echo "${ECHO_T}$WANT_DEVPAY" >&6; }
27870
27871      if test "$WANT_DEVPAY" = "yes"; then
27872   WANT_DEVPAY_TRUE=
27873   WANT_DEVPAY_FALSE='#'
27874 else
27875   WANT_DEVPAY_TRUE='#'
27876   WANT_DEVPAY_FALSE=
27877 fi
27878
27879
27880
27881
27882
27883
27884 for ac_header in \
27885         linux/zftape.h \
27886         sys/tape.h \
27887         sys/mtio.h \
27888
27889 do
27890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27892   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27895   echo $ECHO_N "(cached) $ECHO_C" >&6
27896 fi
27897 ac_res=`eval echo '${'$as_ac_Header'}'`
27898                { echo "$as_me:$LINENO: result: $ac_res" >&5
27899 echo "${ECHO_T}$ac_res" >&6; }
27900 else
27901   # Is the header compilable?
27902 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27904 cat >conftest.$ac_ext <<_ACEOF
27905 /* confdefs.h.  */
27906 _ACEOF
27907 cat confdefs.h >>conftest.$ac_ext
27908 cat >>conftest.$ac_ext <<_ACEOF
27909 /* end confdefs.h.  */
27910 $ac_includes_default
27911 #include <$ac_header>
27912 _ACEOF
27913 rm -f conftest.$ac_objext
27914 if { (ac_try="$ac_compile"
27915 case "(($ac_try" in
27916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27917   *) ac_try_echo=$ac_try;;
27918 esac
27919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27920   (eval "$ac_compile") 2>conftest.er1
27921   ac_status=$?
27922   grep -v '^ *+' conftest.er1 >conftest.err
27923   rm -f conftest.er1
27924   cat conftest.err >&5
27925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926   (exit $ac_status); } && {
27927          test -z "$ac_c_werror_flag" ||
27928          test ! -s conftest.err
27929        } && test -s conftest.$ac_objext; then
27930   ac_header_compiler=yes
27931 else
27932   echo "$as_me: failed program was:" >&5
27933 sed 's/^/| /' conftest.$ac_ext >&5
27934
27935         ac_header_compiler=no
27936 fi
27937
27938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27940 echo "${ECHO_T}$ac_header_compiler" >&6; }
27941
27942 # Is the header present?
27943 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27945 cat >conftest.$ac_ext <<_ACEOF
27946 /* confdefs.h.  */
27947 _ACEOF
27948 cat confdefs.h >>conftest.$ac_ext
27949 cat >>conftest.$ac_ext <<_ACEOF
27950 /* end confdefs.h.  */
27951 #include <$ac_header>
27952 _ACEOF
27953 if { (ac_try="$ac_cpp conftest.$ac_ext"
27954 case "(($ac_try" in
27955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27956   *) ac_try_echo=$ac_try;;
27957 esac
27958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27959   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27960   ac_status=$?
27961   grep -v '^ *+' conftest.er1 >conftest.err
27962   rm -f conftest.er1
27963   cat conftest.err >&5
27964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965   (exit $ac_status); } >/dev/null && {
27966          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27967          test ! -s conftest.err
27968        }; then
27969   ac_header_preproc=yes
27970 else
27971   echo "$as_me: failed program was:" >&5
27972 sed 's/^/| /' conftest.$ac_ext >&5
27973
27974   ac_header_preproc=no
27975 fi
27976
27977 rm -f conftest.err conftest.$ac_ext
27978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27979 echo "${ECHO_T}$ac_header_preproc" >&6; }
27980
27981 # So?  What about this header?
27982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27983   yes:no: )
27984     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27986     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27988     ac_header_preproc=yes
27989     ;;
27990   no:yes:* )
27991     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27993     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27994 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27995     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27997     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27998 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28001     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28003
28004     ;;
28005 esac
28006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28009   echo $ECHO_N "(cached) $ECHO_C" >&6
28010 else
28011   eval "$as_ac_Header=\$ac_header_preproc"
28012 fi
28013 ac_res=`eval echo '${'$as_ac_Header'}'`
28014                { echo "$as_me:$LINENO: result: $ac_res" >&5
28015 echo "${ECHO_T}$ac_res" >&6; }
28016
28017 fi
28018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28019   cat >>confdefs.h <<_ACEOF
28020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28021 _ACEOF
28022
28023 fi
28024
28025 done
28026
28027
28028     # check for MTIOCTOP, an indicator of POSIX tape support
28029     { echo "$as_me:$LINENO: checking for MTIOCTOP" >&5
28030 echo $ECHO_N "checking for MTIOCTOP... $ECHO_C" >&6; }
28031 if test "${amanda_cv_HAVE_MTIOCTOP+set}" = set; then
28032   echo $ECHO_N "(cached) $ECHO_C" >&6
28033 else
28034
28035         cat >conftest.$ac_ext <<_ACEOF
28036 /* confdefs.h.  */
28037 _ACEOF
28038 cat confdefs.h >>conftest.$ac_ext
28039 cat >>conftest.$ac_ext <<_ACEOF
28040 /* end confdefs.h.  */
28041
28042 #ifdef HAVE_SYS_TAPE_H
28043 # include <sys/tape.h>
28044 #endif
28045 #ifdef HAVE_SYS_MTIO_H
28046 # include <sys/mtio.h>
28047 #endif
28048 #ifndef MTIOCTOP
28049 #error MTIOCTOP not defined
28050 #endif
28051
28052 int
28053 main ()
28054 {
28055  int dummy = 0;
28056   ;
28057   return 0;
28058 }
28059 _ACEOF
28060 rm -f conftest.$ac_objext
28061 if { (ac_try="$ac_compile"
28062 case "(($ac_try" in
28063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064   *) ac_try_echo=$ac_try;;
28065 esac
28066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28067   (eval "$ac_compile") 2>conftest.er1
28068   ac_status=$?
28069   grep -v '^ *+' conftest.er1 >conftest.err
28070   rm -f conftest.er1
28071   cat conftest.err >&5
28072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073   (exit $ac_status); } && {
28074          test -z "$ac_c_werror_flag" ||
28075          test ! -s conftest.err
28076        } && test -s conftest.$ac_objext; then
28077   amanda_cv_HAVE_MTIOCTOP=yes
28078 else
28079   echo "$as_me: failed program was:" >&5
28080 sed 's/^/| /' conftest.$ac_ext >&5
28081
28082         amanda_cv_HAVE_MTIOCTOP=no
28083 fi
28084
28085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28086
28087         HAVE_MTIOCTOP=$amanda_cv_HAVE_MTIOCTOP
28088
28089 fi
28090 { echo "$as_me:$LINENO: result: $amanda_cv_HAVE_MTIOCTOP" >&5
28091 echo "${ECHO_T}$amanda_cv_HAVE_MTIOCTOP" >&6; }
28092
28093     # decide which tape device to compile (arranged in such a way that
28094     # only one actually gets compiled)
28095     case "$target" in
28096       *-ibm-aix*) aix_tapeio=yes ;;
28097       *-sysv4.2uw2*) uware_tapeio=yes ;;
28098       *-sco3.2v5*) xenix_tapeio=yes ;;
28099       i386-pc-isc4*) xenix_tapeio=yes ;;
28100     esac
28101
28102     # maybe we have no tape device at all (e.g., Mac OS X)?
28103     if test -n "$xenix_tapeio" ||
28104        test -n "$aix_tapeio" ||
28105        test -n "$uware_tapeio" ||
28106        test -n "$HAVE_MTIOCTOP"; then
28107         want_tape_device=yes
28108
28109 cat >>confdefs.h <<\_ACEOF
28110 #define WANT_TAPE_DEVICE 1
28111 _ACEOF
28112
28113     fi
28114
28115      if test -n "$xenix_tapeio"; then
28116   WANT_TAPE_XENIX_TRUE=
28117   WANT_TAPE_XENIX_FALSE='#'
28118 else
28119   WANT_TAPE_XENIX_TRUE='#'
28120   WANT_TAPE_XENIX_FALSE=
28121 fi
28122
28123      if test -n "$aix_tapeio"; then
28124   WANT_TAPE_AIX_TRUE=
28125   WANT_TAPE_AIX_FALSE='#'
28126 else
28127   WANT_TAPE_AIX_TRUE='#'
28128   WANT_TAPE_AIX_FALSE=
28129 fi
28130
28131      if test -n "$uware_tapeio"; then
28132   WANT_TAPE_UWARE_TRUE=
28133   WANT_TAPE_UWARE_FALSE='#'
28134 else
28135   WANT_TAPE_UWARE_TRUE='#'
28136   WANT_TAPE_UWARE_FALSE=
28137 fi
28138
28139      if test -n "$HAVE_MTIOCTOP"; then
28140   WANT_TAPE_POSIX_TRUE=
28141   WANT_TAPE_POSIX_FALSE='#'
28142 else
28143   WANT_TAPE_POSIX_TRUE='#'
28144   WANT_TAPE_POSIX_FALSE=
28145 fi
28146
28147      if test -n "$want_tape_device"; then
28148   WANT_TAPE_DEVICE_TRUE=
28149   WANT_TAPE_DEVICE_FALSE='#'
28150 else
28151   WANT_TAPE_DEVICE_TRUE='#'
28152   WANT_TAPE_DEVICE_FALSE=
28153 fi
28154
28155
28156     if test -n "$xenix_tapeio"; then
28157
28158 cat >>confdefs.h <<\_ACEOF
28159 #define WANT_TAPE_XENIX 1
28160 _ACEOF
28161
28162     fi
28163
28164     if test -n "$aix_tapeio"; then
28165
28166 cat >>confdefs.h <<\_ACEOF
28167 #define WANT_TAPE_AIX 1
28168 _ACEOF
28169
28170     fi
28171
28172     if test -n "$uware_tapeio"; then
28173
28174 cat >>confdefs.h <<\_ACEOF
28175 #define WANT_TAPE_UWARE 1
28176 _ACEOF
28177
28178     fi
28179
28180     #
28181     # Check for various "mt status" related structure elements.
28182     #
28183     { echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
28184 echo $ECHO_N "checking for mt_flags mtget structure element... $ECHO_C" >&6; }
28185     cat >conftest.$ac_ext <<_ACEOF
28186 /* confdefs.h.  */
28187 _ACEOF
28188 cat confdefs.h >>conftest.$ac_ext
28189 cat >>conftest.$ac_ext <<_ACEOF
28190 /* end confdefs.h.  */
28191
28192 #include <stdio.h>
28193 #include <sys/types.h>
28194 #include <sys/mtio.h>
28195
28196 int
28197 main ()
28198 {
28199
28200             struct mtget buf;
28201             long ds;
28202
28203             ds = buf.mt_flags;
28204
28205   ;
28206   return 0;
28207 }
28208 _ACEOF
28209 rm -f conftest.$ac_objext
28210 if { (ac_try="$ac_compile"
28211 case "(($ac_try" in
28212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28213   *) ac_try_echo=$ac_try;;
28214 esac
28215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28216   (eval "$ac_compile") 2>conftest.er1
28217   ac_status=$?
28218   grep -v '^ *+' conftest.er1 >conftest.err
28219   rm -f conftest.er1
28220   cat conftest.err >&5
28221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222   (exit $ac_status); } && {
28223          test -z "$ac_c_werror_flag" ||
28224          test ! -s conftest.err
28225        } && test -s conftest.$ac_objext; then
28226
28227             { echo "$as_me:$LINENO: result: yes" >&5
28228 echo "${ECHO_T}yes" >&6; }
28229
28230 cat >>confdefs.h <<\_ACEOF
28231 #define HAVE_MT_FLAGS 1
28232 _ACEOF
28233
28234
28235 else
28236   echo "$as_me: failed program was:" >&5
28237 sed 's/^/| /' conftest.$ac_ext >&5
28238
28239
28240             { echo "$as_me:$LINENO: result: no" >&5
28241 echo "${ECHO_T}no" >&6; }
28242
28243 fi
28244
28245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28246
28247     { echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
28248 echo $ECHO_N "checking for mt_fileno mtget structure element... $ECHO_C" >&6; }
28249     mt_fileno_result="found"
28250     cat >conftest.$ac_ext <<_ACEOF
28251 /* confdefs.h.  */
28252 _ACEOF
28253 cat confdefs.h >>conftest.$ac_ext
28254 cat >>conftest.$ac_ext <<_ACEOF
28255 /* end confdefs.h.  */
28256
28257 #include <stdio.h>
28258 #include <sys/types.h>
28259 #include <sys/mtio.h>
28260
28261 int
28262 main ()
28263 {
28264
28265             struct mtget buf;
28266             long ds;
28267
28268             ds = buf.mt_fileno;
28269
28270   ;
28271   return 0;
28272 }
28273 _ACEOF
28274 rm -f conftest.$ac_objext
28275 if { (ac_try="$ac_compile"
28276 case "(($ac_try" in
28277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28278   *) ac_try_echo=$ac_try;;
28279 esac
28280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28281   (eval "$ac_compile") 2>conftest.er1
28282   ac_status=$?
28283   grep -v '^ *+' conftest.er1 >conftest.err
28284   rm -f conftest.er1
28285   cat conftest.err >&5
28286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287   (exit $ac_status); } && {
28288          test -z "$ac_c_werror_flag" ||
28289          test ! -s conftest.err
28290        } && test -s conftest.$ac_objext; then
28291
28292             { echo "$as_me:$LINENO: result: yes" >&5
28293 echo "${ECHO_T}yes" >&6; }
28294
28295 cat >>confdefs.h <<\_ACEOF
28296 #define HAVE_MT_FILENO 1
28297 _ACEOF
28298
28299
28300 else
28301   echo "$as_me: failed program was:" >&5
28302 sed 's/^/| /' conftest.$ac_ext >&5
28303
28304
28305             { echo "$as_me:$LINENO: result: no" >&5
28306 echo "${ECHO_T}no" >&6; }
28307
28308 fi
28309
28310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28311
28312     { echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
28313 echo $ECHO_N "checking for mt_blkno mtget structure element... $ECHO_C" >&6; }
28314     cat >conftest.$ac_ext <<_ACEOF
28315 /* confdefs.h.  */
28316 _ACEOF
28317 cat confdefs.h >>conftest.$ac_ext
28318 cat >>conftest.$ac_ext <<_ACEOF
28319 /* end confdefs.h.  */
28320
28321 #include <stdio.h>
28322 #include <sys/types.h>
28323 #include <sys/mtio.h>
28324
28325 int
28326 main ()
28327 {
28328
28329             struct mtget buf;
28330             long ds;
28331
28332             ds = buf.mt_blkno;
28333
28334   ;
28335   return 0;
28336 }
28337 _ACEOF
28338 rm -f conftest.$ac_objext
28339 if { (ac_try="$ac_compile"
28340 case "(($ac_try" in
28341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28342   *) ac_try_echo=$ac_try;;
28343 esac
28344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28345   (eval "$ac_compile") 2>conftest.er1
28346   ac_status=$?
28347   grep -v '^ *+' conftest.er1 >conftest.err
28348   rm -f conftest.er1
28349   cat conftest.err >&5
28350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351   (exit $ac_status); } && {
28352          test -z "$ac_c_werror_flag" ||
28353          test ! -s conftest.err
28354        } && test -s conftest.$ac_objext; then
28355
28356             { echo "$as_me:$LINENO: result: yes" >&5
28357 echo "${ECHO_T}yes" >&6; }
28358
28359 cat >>confdefs.h <<\_ACEOF
28360 #define HAVE_MT_BLKNO 1
28361 _ACEOF
28362
28363
28364 else
28365   echo "$as_me: failed program was:" >&5
28366 sed 's/^/| /' conftest.$ac_ext >&5
28367
28368
28369             { echo "$as_me:$LINENO: result: no" >&5
28370 echo "${ECHO_T}no" >&6; }
28371
28372 fi
28373
28374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28375
28376     { echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
28377 echo $ECHO_N "checking for mt_dsreg mtget structure element... $ECHO_C" >&6; }
28378     cat >conftest.$ac_ext <<_ACEOF
28379 /* confdefs.h.  */
28380 _ACEOF
28381 cat confdefs.h >>conftest.$ac_ext
28382 cat >>conftest.$ac_ext <<_ACEOF
28383 /* end confdefs.h.  */
28384
28385 #include <stdio.h>
28386 #include <sys/types.h>
28387 #include <sys/mtio.h>
28388
28389 int
28390 main ()
28391 {
28392
28393             struct mtget buf;
28394             long ds;
28395
28396             ds = buf.mt_dsreg;
28397
28398   ;
28399   return 0;
28400 }
28401 _ACEOF
28402 rm -f conftest.$ac_objext
28403 if { (ac_try="$ac_compile"
28404 case "(($ac_try" in
28405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28406   *) ac_try_echo=$ac_try;;
28407 esac
28408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28409   (eval "$ac_compile") 2>conftest.er1
28410   ac_status=$?
28411   grep -v '^ *+' conftest.er1 >conftest.err
28412   rm -f conftest.er1
28413   cat conftest.err >&5
28414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415   (exit $ac_status); } && {
28416          test -z "$ac_c_werror_flag" ||
28417          test ! -s conftest.err
28418        } && test -s conftest.$ac_objext; then
28419
28420             { echo "$as_me:$LINENO: result: yes" >&5
28421 echo "${ECHO_T}yes" >&6; }
28422
28423 cat >>confdefs.h <<\_ACEOF
28424 #define HAVE_MT_DSREG 1
28425 _ACEOF
28426
28427
28428 else
28429   echo "$as_me: failed program was:" >&5
28430 sed 's/^/| /' conftest.$ac_ext >&5
28431
28432
28433             { echo "$as_me:$LINENO: result: no" >&5
28434 echo "${ECHO_T}no" >&6; }
28435
28436 fi
28437
28438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28439
28440     { echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
28441 echo $ECHO_N "checking for mt_erreg mtget structure element... $ECHO_C" >&6; }
28442     cat >conftest.$ac_ext <<_ACEOF
28443 /* confdefs.h.  */
28444 _ACEOF
28445 cat confdefs.h >>conftest.$ac_ext
28446 cat >>conftest.$ac_ext <<_ACEOF
28447 /* end confdefs.h.  */
28448
28449 #include <stdio.h>
28450 #include <sys/types.h>
28451 #include <sys/mtio.h>
28452
28453 int
28454 main ()
28455 {
28456
28457             struct mtget buf;
28458             long ds;
28459
28460             ds = buf.mt_erreg;
28461
28462   ;
28463   return 0;
28464 }
28465 _ACEOF
28466 rm -f conftest.$ac_objext
28467 if { (ac_try="$ac_compile"
28468 case "(($ac_try" in
28469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28470   *) ac_try_echo=$ac_try;;
28471 esac
28472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28473   (eval "$ac_compile") 2>conftest.er1
28474   ac_status=$?
28475   grep -v '^ *+' conftest.er1 >conftest.err
28476   rm -f conftest.er1
28477   cat conftest.err >&5
28478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479   (exit $ac_status); } && {
28480          test -z "$ac_c_werror_flag" ||
28481          test ! -s conftest.err
28482        } && test -s conftest.$ac_objext; then
28483
28484             { echo "$as_me:$LINENO: result: yes" >&5
28485 echo "${ECHO_T}yes" >&6; }
28486
28487 cat >>confdefs.h <<\_ACEOF
28488 #define HAVE_MT_ERREG 1
28489 _ACEOF
28490
28491
28492 else
28493   echo "$as_me: failed program was:" >&5
28494 sed 's/^/| /' conftest.$ac_ext >&5
28495
28496
28497             { echo "$as_me:$LINENO: result: no" >&5
28498 echo "${ECHO_T}no" >&6; }
28499
28500 fi
28501
28502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28503
28504
28505 #
28506 # Security (authentication) mechansims
28507 #
28508
28509     BSD_SECURITY="yes"
28510
28511 # Check whether --with-bsd-security was given.
28512 if test "${with_bsd_security+set}" = set; then
28513   withval=$with_bsd_security;
28514             case "$withval" in
28515                 n | no) BSD_SECURITY=no ;;
28516                 y |  ye | yes) ;;
28517                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-bsd-security." >&5
28518 echo "$as_me: error: *** You must not supply an argument to --without-bsd-security." >&2;}
28519    { (exit 1); exit 1; }; }
28520                     ;;
28521             esac
28522
28523 fi
28524
28525
28526     USE_AMANDAHOSTS=yes
28527
28528 # Check whether --with-amandahosts was given.
28529 if test "${with_amandahosts+set}" = set; then
28530   withval=$with_amandahosts;
28531             case "$withval" in
28532                 n | no ) USE_AMANDAHOSTS="no" ;;
28533                 y |  ye | yes) : ;;
28534                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-amandahosts option." >&5
28535 echo "$as_me: error: *** You must not supply an argument to --without-amandahosts option." >&2;}
28536    { (exit 1); exit 1; }; }
28537                   ;;
28538             esac
28539
28540
28541 fi
28542
28543
28544     if test "x$BSD_SECURITY" = "xyes"; then
28545
28546 cat >>confdefs.h <<\_ACEOF
28547 #define BSD_SECURITY 1
28548 _ACEOF
28549
28550         if test "x$USE_AMANDAHOSTS" = "xyes"; then
28551
28552 cat >>confdefs.h <<\_ACEOF
28553 #define USE_AMANDAHOSTS 1
28554 _ACEOF
28555
28556         fi
28557     fi
28558
28559      if test x"$BSD_SECURITY" = x"yes"; then
28560   WANT_BSD_SECURITY_TRUE=
28561   WANT_BSD_SECURITY_FALSE='#'
28562 else
28563   WANT_BSD_SECURITY_TRUE='#'
28564   WANT_BSD_SECURITY_FALSE=
28565 fi
28566
28567
28568
28569     BSDTCP_SECURITY="no"
28570
28571 # Check whether --with-bsdtcp-security was given.
28572 if test "${with_bsdtcp_security+set}" = set; then
28573   withval=$with_bsdtcp_security;
28574             case "$withval" in
28575                 n | no) : ;;
28576                 y |  ye | yes) BSDTCP_SECURITY=yes ;;
28577                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdtcp-security." >&5
28578 echo "$as_me: error: *** You must not supply an argument to --with-bsdtcp-security." >&2;}
28579    { (exit 1); exit 1; }; }
28580               ;;
28581             esac
28582
28583 fi
28584
28585
28586     if test "x$BSDTCP_SECURITY" = "xyes"; then
28587
28588 cat >>confdefs.h <<\_ACEOF
28589 #define BSDTCP_SECURITY 1
28590 _ACEOF
28591
28592     fi
28593      if test x"$BSDTCP_SECURITY" = x"yes"; then
28594   WANT_BSDTCP_SECURITY_TRUE=
28595   WANT_BSDTCP_SECURITY_FALSE='#'
28596 else
28597   WANT_BSDTCP_SECURITY_TRUE='#'
28598   WANT_BSDTCP_SECURITY_FALSE=
28599 fi
28600
28601
28602
28603     BSDUDP_SECURITY="no"
28604
28605 # Check whether --with-bsdudp-security was given.
28606 if test "${with_bsdudp_security+set}" = set; then
28607   withval=$with_bsdudp_security;
28608             case "$withval" in
28609                 n | no) : ;;
28610                 y |  ye | yes) BSDUDP_SECURITY=yes ;;
28611                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdudp-security." >&5
28612 echo "$as_me: error: *** You must not supply an argument to --with-bsdudp-security." >&2;}
28613    { (exit 1); exit 1; }; }
28614               ;;
28615             esac
28616
28617 fi
28618
28619
28620     if test "x$BSDUDP_SECURITY" = "xyes"; then
28621
28622 cat >>confdefs.h <<\_ACEOF
28623 #define BSDUDP_SECURITY 1
28624 _ACEOF
28625
28626     fi
28627      if test x"$BSDUDP_SECURITY" = x"yes"; then
28628   WANT_BSDUDP_SECURITY_TRUE=
28629   WANT_BSDUDP_SECURITY_FALSE='#'
28630 else
28631   WANT_BSDUDP_SECURITY_TRUE='#'
28632   WANT_BSDUDP_SECURITY_FALSE=
28633 fi
28634
28635
28636
28637     RSH_SECURITY=no
28638
28639 # Check whether --with-rsh-security was given.
28640 if test "${with_rsh_security+set}" = set; then
28641   withval=$with_rsh_security;
28642             case "$withval" in
28643                 n | no) : ;;
28644                 y |  ye | yes) RSH_SECURITY=yes ;;
28645                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rsh-security." >&5
28646 echo "$as_me: error: *** You must not supply an argument to --with-rsh-security." >&2;}
28647    { (exit 1); exit 1; }; }
28648               ;;
28649             esac
28650
28651 fi
28652
28653
28654     if test "x$RSH_SECURITY" = "xyes"; then
28655
28656 cat >>confdefs.h <<\_ACEOF
28657 #define RSH_SECURITY 1
28658 _ACEOF
28659
28660     fi
28661      if test x"$RSH_SECURITY" = x"yes"; then
28662   WANT_RSH_SECURITY_TRUE=
28663   WANT_RSH_SECURITY_FALSE='#'
28664 else
28665   WANT_RSH_SECURITY_TRUE='#'
28666   WANT_RSH_SECURITY_FALSE=
28667 fi
28668
28669
28670
28671     SSH_SECURITY=no
28672
28673 # Check whether --with-ssh-security was given.
28674 if test "${with_ssh_security+set}" = set; then
28675   withval=$with_ssh_security;
28676             case "$withval" in
28677                 n | no) : ;;
28678                 y |  ye | yes) SSH_SECURITY=yes ;;
28679                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ssh-security." >&5
28680 echo "$as_me: error: *** You must not supply an argument to --with-ssh-security." >&2;}
28681    { (exit 1); exit 1; }; }
28682               ;;
28683             esac
28684
28685 fi
28686
28687
28688     if test "x$SSH_SECURITY" = "xyes"; then
28689         # find the SSH binary
28690         for ac_prog in ssh
28691 do
28692   # Extract the first word of "$ac_prog", so it can be a program name with args.
28693 set dummy $ac_prog; ac_word=$2
28694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28696 if test "${ac_cv_path_SSH+set}" = set; then
28697   echo $ECHO_N "(cached) $ECHO_C" >&6
28698 else
28699   case $SSH in
28700   [\\/]* | ?:[\\/]*)
28701   ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
28702   ;;
28703   *)
28704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28705 for as_dir in $LOCSYSPATH
28706 do
28707   IFS=$as_save_IFS
28708   test -z "$as_dir" && as_dir=.
28709   for ac_exec_ext in '' $ac_executable_extensions; do
28710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28711     ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
28712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28713     break 2
28714   fi
28715 done
28716 done
28717 IFS=$as_save_IFS
28718
28719   ;;
28720 esac
28721 fi
28722 SSH=$ac_cv_path_SSH
28723 if test -n "$SSH"; then
28724   { echo "$as_me:$LINENO: result: $SSH" >&5
28725 echo "${ECHO_T}$SSH" >&6; }
28726 else
28727   { echo "$as_me:$LINENO: result: no" >&5
28728 echo "${ECHO_T}no" >&6; }
28729 fi
28730
28731
28732   test -n "$SSH" && break
28733 done
28734
28735
28736         # see what options we should use
28737
28738 # Check whether --with-ssh-options was given.
28739 if test "${with_ssh_options+set}" = set; then
28740   withval=$with_ssh_options;  SSH_OPTIONS="$withval"
28741 else
28742    SSH_OPTIONS=''
28743
28744 fi
28745
28746
28747         case "$SSH_OPTIONS" in
28748             y | ye | yes | n | no)
28749                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to --with-ssh-options." >&5
28750 echo "$as_me: error: *** You must supply an argument to --with-ssh-options." >&2;}
28751    { (exit 1); exit 1; }; };;
28752             *) : ;;
28753         esac
28754
28755         { echo "$as_me:$LINENO: checking SSH options" >&5
28756 echo $ECHO_N "checking SSH options... $ECHO_C" >&6; }
28757         # if we didn't get SSH options from the user, figure them out for ourselves
28758         if test -z "$SSH_OPTIONS"; then
28759             case `$SSH -V 2>&1` in
28760                 OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
28761                 *) SSH_OPTIONS='-x -o BatchMode=yes' ;;
28762             esac
28763         fi
28764
28765         # now convert that to a comma-separated list of C strings
28766         eval "set dummy ${SSH_OPTIONS}"; shift
28767         SSH_OPTIONS=''
28768         for i in "${@}"; do
28769             quoted="\"`echo "$i" | sed -e 's/\"/\\\"/'`\""
28770             SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }$quoted";
28771         done
28772         { echo "$as_me:$LINENO: result: $SSH_OPTIONS" >&5
28773 echo "${ECHO_T}$SSH_OPTIONS" >&6; }
28774
28775         # finally, make the various outputs for all of this
28776
28777 cat >>confdefs.h <<\_ACEOF
28778 #define SSH_SECURITY 1
28779 _ACEOF
28780
28781
28782 cat >>confdefs.h <<_ACEOF
28783 #define SSH "$SSH"
28784 _ACEOF
28785
28786
28787 cat >>confdefs.h <<_ACEOF
28788 #define SSH_OPTIONS $SSH_OPTIONS
28789 _ACEOF
28790
28791     fi
28792      if test x"$SSH_SECURITY" = x"yes"; then
28793   WANT_SSH_SECURITY_TRUE=
28794   WANT_SSH_SECURITY_FALSE='#'
28795 else
28796   WANT_SSH_SECURITY_TRUE='#'
28797   WANT_SSH_SECURITY_FALSE=
28798 fi
28799
28800
28801
28802     # Specify --with-krb4-security if Kerberos software is in somewhere
28803     # other than the listed KRB4_SPOTS.  We only compile kerberos support in
28804     # if the right files are there.
28805
28806     : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
28807
28808     KRB4_SECURITY="no"
28809
28810 # Check whether --with-krb4-security was given.
28811 if test "${with_krb4_security+set}" = set; then
28812   withval=$with_krb4_security;
28813             case "$withval" in
28814                 n | no) ;;
28815                 y | ye | yes) KRB4_SECURITY="yes" ;;
28816                 *) KRB4_SPOTS="$KRB4_SECURITY"
28817                    KRB4_SECURITY="yes"
28818                    ;;
28819             esac
28820
28821 fi
28822
28823
28824     # check the remaining, subsidiary options
28825
28826     { echo "$as_me:$LINENO: checking host principal" >&5
28827 echo $ECHO_N "checking host principal... $ECHO_C" >&6; }
28828
28829 # Check whether --with-server-principal was given.
28830 if test "${with_server_principal+set}" = set; then
28831   withval=$with_server_principal;
28832             case "$withval" in
28833                 "" | y | ye | yes | n | no)
28834                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-principal option." >&5
28835 echo "$as_me: error: *** You must supply an argument to the --with-server-principal option." >&2;}
28836    { (exit 1); exit 1; }; }
28837                   ;;
28838                 *) SERVER_HOST_PRINCIPAL="$withval" ;;
28839             esac
28840
28841 else
28842    : ${SERVER_HOST_PRINCIPAL="amanda"}
28843
28844 fi
28845
28846     { echo "$as_me:$LINENO: result: $SERVER_HOST_PRINCIPAL" >&5
28847 echo "${ECHO_T}$SERVER_HOST_PRINCIPAL" >&6; }
28848
28849     { echo "$as_me:$LINENO: checking server host instance" >&5
28850 echo $ECHO_N "checking server host instance... $ECHO_C" >&6; }
28851
28852 # Check whether --with-server-instance was given.
28853 if test "${with_server_instance+set}" = set; then
28854   withval=$with_server_instance;
28855             case "$withval" in
28856                 "" | y | ye | yes | n | no)
28857                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-instance option." >&5
28858 echo "$as_me: error: *** You must supply an argument to the --with-server-instance option." >&2;}
28859    { (exit 1); exit 1; }; }
28860                   ;;
28861                 *) SERVER_HOST_INSTANCE="$withval" ;;
28862             esac
28863
28864 else
28865    : ${SERVER_HOST_INSTANCE="amanda"}
28866
28867 fi
28868
28869     { echo "$as_me:$LINENO: result: $SERVER_HOST_INSTANCE" >&5
28870 echo "${ECHO_T}$SERVER_HOST_INSTANCE" >&6; }
28871
28872     { echo "$as_me:$LINENO: checking server host key file" >&5
28873 echo $ECHO_N "checking server host key file... $ECHO_C" >&6; }
28874
28875 # Check whether --with-server-keyfile was given.
28876 if test "${with_server_keyfile+set}" = set; then
28877   withval=$with_server_keyfile;
28878             case "$withval" in
28879                 "" | y | ye | yes | n | no)
28880                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-keyfile option." >&5
28881 echo "$as_me: error: *** You must supply an argument to the --with-server-keyfile option." >&2;}
28882    { (exit 1); exit 1; }; }
28883                   ;;
28884                 *) SERVER_HOST_KEY_FILE="$withval" ;;
28885             esac
28886
28887 else
28888    : ${SERVER_HOST_KEY_FILE="/.amanda"}
28889
28890 fi
28891
28892     { echo "$as_me:$LINENO: result: $SERVER_HOST_KEY_FILE" >&5
28893 echo "${ECHO_T}$SERVER_HOST_KEY_FILE" >&6; }
28894
28895     { echo "$as_me:$LINENO: checking client host principle" >&5
28896 echo $ECHO_N "checking client host principle... $ECHO_C" >&6; }
28897
28898 # Check whether --with-client-principal was given.
28899 if test "${with_client_principal+set}" = set; then
28900   withval=$with_client_principal;
28901             case "$withval" in
28902                 "" | y | ye | yes | n | no)
28903                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-principal option." >&5
28904 echo "$as_me: error: *** You must supply an argument to the --with-client-principal option." >&2;}
28905    { (exit 1); exit 1; }; }
28906                   ;;
28907                 *) CLIENT_HOST_PRINCIPAL="$withval" ;;
28908             esac
28909
28910 else
28911    : ${CLIENT_HOST_PRINCIPAL="rcmd"}
28912
28913 fi
28914
28915     { echo "$as_me:$LINENO: result: $CLIENT_HOST_PRINCIPAL" >&5
28916 echo "${ECHO_T}$CLIENT_HOST_PRINCIPAL" >&6; }
28917
28918     { echo "$as_me:$LINENO: checking client host instance" >&5
28919 echo $ECHO_N "checking client host instance... $ECHO_C" >&6; }
28920
28921 # Check whether --with-client-instance was given.
28922 if test "${with_client_instance+set}" = set; then
28923   withval=$with_client_instance;
28924             case "$withval" in
28925                 "" | y | ye | yes | n | no)
28926                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-instance option." >&5
28927 echo "$as_me: error: *** You must supply an argument to the --with-client-instance option." >&2;}
28928    { (exit 1); exit 1; }; }
28929                   ;;
28930                 *) CLIENT_HOST_INSTANCE="$withval" ;;
28931             esac
28932
28933 else
28934    : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
28935
28936 fi
28937
28938     { echo "$as_me:$LINENO: result: $CLIENT_HOST_INSTANCE" >&5
28939 echo "${ECHO_T}$CLIENT_HOST_INSTANCE" >&6; }
28940
28941     { echo "$as_me:$LINENO: checking client host key file" >&5
28942 echo $ECHO_N "checking client host key file... $ECHO_C" >&6; }
28943
28944 # Check whether --with-client-keyfile was given.
28945 if test "${with_client_keyfile+set}" = set; then
28946   withval=$with_client_keyfile;
28947             case "$withval" in
28948                 "" | y | ye | yes | n | no)
28949                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-keyfile option." >&5
28950 echo "$as_me: error: *** You must supply an argument to the --with-client-keyfile option." >&2;}
28951    { (exit 1); exit 1; }; }
28952                   ;;
28953                 *) CLIENT_HOST_KEY_FILE="$withval" ;;
28954             esac
28955
28956 else
28957    : ${CLIENT_HOST_KEY_FILE=KEYFILE}
28958
28959 fi
28960
28961     # Assume it's either KEYFILE (defined in krb.h), or a string filename...
28962     if test "x$CLIENT_HOST_KEY_FILE" != "xKEYFILE"; then
28963       # add quotes
28964       CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
28965     fi
28966     { echo "$as_me:$LINENO: result: $CLIENT_HOST_KEY_FILE" >&5
28967 echo "${ECHO_T}$CLIENT_HOST_KEY_FILE" >&6; }
28968
28969     { echo "$as_me:$LINENO: checking ticket lifetime" >&5
28970 echo $ECHO_N "checking ticket lifetime... $ECHO_C" >&6; }
28971
28972 # Check whether --with-ticket-lifetime was given.
28973 if test "${with_ticket_lifetime+set}" = set; then
28974   withval=$with_ticket_lifetime;
28975             case "$withval" in
28976             "" | y | ye | yes | n | no)
28977                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ticket-lifetime option." >&5
28978 echo "$as_me: error: *** You must supply an argument to the --with-ticket-lifetime option." >&2;}
28979    { (exit 1); exit 1; }; }
28980               ;;
28981             *) TICKET_LIFETIME="$withval" ;;
28982             esac
28983
28984 else
28985    : ${TICKET_LIFETIME=128}
28986
28987 fi
28988
28989     { echo "$as_me:$LINENO: result: $TICKET_LIFETIME" >&5
28990 echo "${ECHO_T}$TICKET_LIFETIME" >&6; }
28991
28992
28993     if test "x${KRB4_SECURITY}" = "xyes"; then
28994         { echo "$as_me:$LINENO: checking for Kerberos and Amanda kerberos4 bits" >&5
28995 echo $ECHO_N "checking for Kerberos and Amanda kerberos4 bits... $ECHO_C" >&6; }
28996         found="no"
28997         for dir in $KRB4_SPOTS; do
28998             if test \( -f ${dir}/lib/libkrb.a -o -f ${dir}/lib/libkrb.so \) -a \( -f ${dir}/lib/libdes.a -o -f ${dir}/lib/libdes.so \) ; then
28999                 #
29000                 # This is the original Kerberos 4.
29001                 #
29002                 { echo "$as_me:$LINENO: result: found in $dir" >&5
29003 echo "${ECHO_T}found in $dir" >&6; }
29004                 found="yes"
29005
29006                 #
29007                 # This handles BSD/OS.
29008                 #
29009                 if test -d $dir/include/kerberosIV ; then
29010                     CPPFLAGS="$CPPFLAGS -I$dir/include/kerberosIV"
29011
29012                 else
29013                     CPPFLAGS="$CPPFLAGS -I$dir/include"
29014
29015                 fi
29016                 LDFLAGS="$LDFLAGS -L$dir/lib"
29017
29018                 LIBS="-lkrb -ldes $LIBS"
29019
29020                 if test -f ${dir}/lib/libcom_err.a; then
29021                     LIBS="-lcom_err $LIBS"
29022
29023                 fi
29024                 break
29025             elif test \( -f ${dir}/lib/libkrb4.a -o -f ${dir}/lib/libkrb4.so \) &&
29026                  test \( -f ${dir}/lib/libcrypto.a -o -f ${dir}/lib/libcrypto.so \) &&
29027                  test \( -f ${dir}/lib/libdes425.a -o -f ${dir}/lib/libdes425.so \) ; then
29028                 #
29029                 # This is Kerberos 5 with Kerberos 4 back-support.
29030                 #
29031                 { echo "$as_me:$LINENO: result: found in $dir" >&5
29032 echo "${ECHO_T}found in $dir" >&6; }
29033                 found="yes"
29034                 CPPFLAGS="$CPPFLAGS -I$dir/include -I$dir/include/kerberosIV"
29035
29036                 LDFLAGS="$LDFLAGS -L$dir/lib"
29037
29038                 if test \( -f ${dir}/lib/libkrb5.a -o -f ${dir}/lib/libkrb5.so \) &&
29039                    test \( -f ${dir}/lib/libcom_err.a -o -f ${dir}/lib/libcom_err.so \) ; then
29040                     LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err $LIBS"
29041
29042                 else
29043                     LIBS="-lkrb4 -lcrypto -ldes425 $LIBS"
29044
29045                 fi
29046                 break
29047             fi
29048         done
29049
29050         if test "x$found" = "xno" ; then
29051             { echo "$as_me:$LINENO: result: no libraries found" >&5
29052 echo "${ECHO_T}no libraries found" >&6; }
29053
29054     { echo "$as_me:$LINENO: WARNING: No Kerberos IV libraries were found on your system; disabling krb4-security" >&5
29055 echo "$as_me: WARNING: No Kerberos IV libraries were found on your system; disabling krb4-security" >&2;}
29056
29057
29058     cat <<AAW_EOF >>config.warnings
29059 No Kerberos IV libraries were found on your system; disabling krb4-security
29060 AAW_EOF
29061
29062
29063             KRB4_SECURITY="no"
29064         else
29065
29066 cat >>confdefs.h <<\_ACEOF
29067 #define KRB4_SECURITY 1
29068 _ACEOF
29069
29070
29071 cat >>confdefs.h <<_ACEOF
29072 #define SERVER_HOST_PRINCIPAL "$SERVER_HOST_PRINCIPAL"
29073 _ACEOF
29074
29075
29076 cat >>confdefs.h <<_ACEOF
29077 #define SERVER_HOST_INSTANCE "$SERVER_HOST_INSTANCE"
29078 _ACEOF
29079
29080
29081 cat >>confdefs.h <<_ACEOF
29082 #define SERVER_HOST_KEY_FILE "$SERVER_HOST_KEY_FILE"
29083 _ACEOF
29084
29085
29086 cat >>confdefs.h <<_ACEOF
29087 #define CLIENT_HOST_PRINCIPAL "$CLIENT_HOST_PRINCIPAL"
29088 _ACEOF
29089
29090
29091 cat >>confdefs.h <<_ACEOF
29092 #define CLIENT_HOST_INSTANCE $CLIENT_HOST_INSTANCE
29093 _ACEOF
29094
29095
29096 cat >>confdefs.h <<_ACEOF
29097 #define CLIENT_HOST_KEY_FILE $CLIENT_HOST_KEY_FILE
29098 _ACEOF
29099
29100
29101 cat >>confdefs.h <<_ACEOF
29102 #define TICKET_LIFETIME $TICKET_LIFETIME
29103 _ACEOF
29104
29105         fi
29106     fi
29107      if test x"$KRB4_SECURITY" = x"yes"; then
29108   WANT_KRB4_SECURITY_TRUE=
29109   WANT_KRB4_SECURITY_FALSE='#'
29110 else
29111   WANT_KRB4_SECURITY_TRUE='#'
29112   WANT_KRB4_SECURITY_FALSE=
29113 fi
29114
29115
29116
29117     # Specify --with-krb5-security if Kerberos software is in somewhere
29118     # other than the listed KRB5_SPOTS.  We only compile kerberos support in
29119     # if the right files are there.
29120
29121     KRB5_SECURITY="no"
29122     : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
29123
29124
29125 # Check whether --with-krb5-security was given.
29126 if test "${with_krb5_security+set}" = set; then
29127   withval=$with_krb5_security;
29128             case "$withval" in
29129                 n | no) KRB5_SECURITY=no ;;
29130                 y | ye | yes) KRB5_SECURITY=yes ;;
29131                 *) KRB5_SPOTS="$KRB5_SECURITY"
29132                    KRB5_SECURITY=yes
29133                    ;;
29134             esac
29135
29136
29137 fi
29138
29139
29140     if test "x$KRB5_SECURITY" = "xyes"; then
29141         # if found, force the static versions of these libs (.a) by linking directly
29142         # with the .a files.  I don't know how to get -R dependancies checked
29143         # in autoconf at this time. -kashmir
29144         { echo "$as_me:$LINENO: checking for Kerberos V libraries" >&5
29145 echo $ECHO_N "checking for Kerberos V libraries... $ECHO_C" >&6; }
29146         KRB5_DIR_FOUND=""
29147         for dir in $KRB5_SPOTS; do
29148           for lib in lib lib64; do
29149             k5libdir=${dir}/${lib}
29150             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
29151                 if test -f ${k5libdir}/libk5crypto.a -o -f ${k5libdir}/libk5crypto.so; then
29152                     K5CRYPTO=-lk5crypto
29153                 elif test -f ${k5libdir}/libcrypto.a -o -f ${k5libdir}/libcrypto.so; then
29154                     K5CRYPTO=-lcrypto
29155                 else
29156                     K5CRYPTO=""
29157                 fi
29158                 if test -f ${k5libdir}/libkrb5support.a -o -f ${k5libdir}/libkrb5support.so; then
29159                     K5SUPPORT=-lkrb5support
29160                 else
29161                     K5SUPPORT=""
29162                 fi
29163                 KRB5_DIR_FOUND=$dir
29164                 KRB5_LIBDIR_FOUND=$k5libdir
29165                 LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err $LIBS"
29166
29167                 break
29168             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
29169                 LIBS="-lgssapi -lkrb5 -lasn1 $LIBS"
29170
29171                 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL_INCLUDES"
29172
29173                 break
29174             fi
29175           done
29176         done
29177
29178         if test "$KRB5_DIR_FOUND"; then
29179             { echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
29180 echo "${ECHO_T}found in $KRB5_DIR_FOUND" >&6; }
29181             #
29182             # some OS's, such as NetBSD, stick krb5 includes out of the way...
29183             # should probably just use autoconf to look for various include
29184             # options and set them, but don't quite want to do that until I've
29185             # dug into it a bit more.
29186             #
29187             if test -d "$KRB5_DIR_FOUND/krb5" ; then
29188                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include/krb5"
29189
29190             else
29191                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include"
29192
29193             fi
29194
29195 { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
29196 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
29197 if test "${ac_cv_lib_krb5support_main+set}" = set; then
29198   echo $ECHO_N "(cached) $ECHO_C" >&6
29199 else
29200   ac_check_lib_save_LIBS=$LIBS
29201 LIBS="-lkrb5support  $LIBS"
29202 cat >conftest.$ac_ext <<_ACEOF
29203 /* confdefs.h.  */
29204 _ACEOF
29205 cat confdefs.h >>conftest.$ac_ext
29206 cat >>conftest.$ac_ext <<_ACEOF
29207 /* end confdefs.h.  */
29208
29209
29210 int
29211 main ()
29212 {
29213 return main ();
29214   ;
29215   return 0;
29216 }
29217 _ACEOF
29218 rm -f conftest.$ac_objext conftest$ac_exeext
29219 if { (ac_try="$ac_link"
29220 case "(($ac_try" in
29221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29222   *) ac_try_echo=$ac_try;;
29223 esac
29224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29225   (eval "$ac_link") 2>conftest.er1
29226   ac_status=$?
29227   grep -v '^ *+' conftest.er1 >conftest.err
29228   rm -f conftest.er1
29229   cat conftest.err >&5
29230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29231   (exit $ac_status); } && {
29232          test -z "$ac_c_werror_flag" ||
29233          test ! -s conftest.err
29234        } && test -s conftest$ac_exeext &&
29235        $as_test_x conftest$ac_exeext; then
29236   ac_cv_lib_krb5support_main=yes
29237 else
29238   echo "$as_me: failed program was:" >&5
29239 sed 's/^/| /' conftest.$ac_ext >&5
29240
29241         ac_cv_lib_krb5support_main=no
29242 fi
29243
29244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29245       conftest$ac_exeext conftest.$ac_ext
29246 LIBS=$ac_check_lib_save_LIBS
29247 fi
29248 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
29249 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
29250 if test $ac_cv_lib_krb5support_main = yes; then
29251   cat >>confdefs.h <<_ACEOF
29252 #define HAVE_LIBKRB5SUPPORT 1
29253 _ACEOF
29254
29255   LIBS="-lkrb5support $LIBS"
29256
29257 fi
29258
29259             LDFLAGS="$LDFLAGS -L$KRB5_LIBDIR_FOUND"
29260
29261
29262
29263 cat >>confdefs.h <<\_ACEOF
29264 #define KRB5_SECURITY 1
29265 _ACEOF
29266
29267         else
29268             { echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
29269 echo "${ECHO_T}no krb5 system libraries found" >&6; }
29270             { { echo "$as_me:$LINENO: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&5
29271 echo "$as_me: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&2;}
29272    { (exit 1); exit 1; }; }
29273             KRB5_SECURITY="no"
29274         fi
29275     fi
29276
29277      if test x"$KRB5_SECURITY" = x"yes"; then
29278   WANT_KRB5_SECURITY_TRUE=
29279   WANT_KRB5_SECURITY_FALSE='#'
29280 else
29281   WANT_KRB5_SECURITY_TRUE='#'
29282   WANT_KRB5_SECURITY_FALSE=
29283 fi
29284
29285
29286
29287 #
29288 # Dumpers
29289 #
29290
29291
29292
29293     for ac_prog in xfsdump
29294 do
29295   # Extract the first word of "$ac_prog", so it can be a program name with args.
29296 set dummy $ac_prog; ac_word=$2
29297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29299 if test "${ac_cv_path_XFSDUMP+set}" = set; then
29300   echo $ECHO_N "(cached) $ECHO_C" >&6
29301 else
29302   case $XFSDUMP in
29303   [\\/]* | ?:[\\/]*)
29304   ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
29305   ;;
29306   *)
29307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29308 for as_dir in $SYSLOCPATH
29309 do
29310   IFS=$as_save_IFS
29311   test -z "$as_dir" && as_dir=.
29312   for ac_exec_ext in '' $ac_executable_extensions; do
29313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29314     ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
29315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29316     break 2
29317   fi
29318 done
29319 done
29320 IFS=$as_save_IFS
29321
29322   ;;
29323 esac
29324 fi
29325 XFSDUMP=$ac_cv_path_XFSDUMP
29326 if test -n "$XFSDUMP"; then
29327   { echo "$as_me:$LINENO: result: $XFSDUMP" >&5
29328 echo "${ECHO_T}$XFSDUMP" >&6; }
29329 else
29330   { echo "$as_me:$LINENO: result: no" >&5
29331 echo "${ECHO_T}no" >&6; }
29332 fi
29333
29334
29335   test -n "$XFSDUMP" && break
29336 done
29337
29338     for ac_prog in xfsrestore
29339 do
29340   # Extract the first word of "$ac_prog", so it can be a program name with args.
29341 set dummy $ac_prog; ac_word=$2
29342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29344 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
29345   echo $ECHO_N "(cached) $ECHO_C" >&6
29346 else
29347   case $XFSRESTORE in
29348   [\\/]* | ?:[\\/]*)
29349   ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
29350   ;;
29351   *)
29352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29353 for as_dir in $SYSLOCPATH
29354 do
29355   IFS=$as_save_IFS
29356   test -z "$as_dir" && as_dir=.
29357   for ac_exec_ext in '' $ac_executable_extensions; do
29358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29359     ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
29360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29361     break 2
29362   fi
29363 done
29364 done
29365 IFS=$as_save_IFS
29366
29367   ;;
29368 esac
29369 fi
29370 XFSRESTORE=$ac_cv_path_XFSRESTORE
29371 if test -n "$XFSRESTORE"; then
29372   { echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
29373 echo "${ECHO_T}$XFSRESTORE" >&6; }
29374 else
29375   { echo "$as_me:$LINENO: result: no" >&5
29376 echo "${ECHO_T}no" >&6; }
29377 fi
29378
29379
29380   test -n "$XFSRESTORE" && break
29381 done
29382
29383     if test "$XFSDUMP" -a "$XFSRESTORE"; then
29384
29385 cat >>confdefs.h <<_ACEOF
29386 #define XFSDUMP "$XFSDUMP"
29387 _ACEOF
29388
29389
29390 cat >>confdefs.h <<_ACEOF
29391 #define XFSRESTORE "$XFSRESTORE"
29392 _ACEOF
29393
29394
29395     { 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
29396 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;}
29397
29398
29399     cat <<AAW_EOF >>config.warnings
29400 xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h
29401 AAW_EOF
29402
29403
29404     fi
29405
29406
29407
29408
29409     # Extract the first word of "vxdump", so it can be a program name with args.
29410 set dummy vxdump; ac_word=$2
29411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29413 if test "${ac_cv_path_VXDUMP+set}" = set; then
29414   echo $ECHO_N "(cached) $ECHO_C" >&6
29415 else
29416   case $VXDUMP in
29417   [\\/]* | ?:[\\/]*)
29418   ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
29419   ;;
29420   *)
29421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29422 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
29423 for as_dir in $as_dummy
29424 do
29425   IFS=$as_save_IFS
29426   test -z "$as_dir" && as_dir=.
29427   for ac_exec_ext in '' $ac_executable_extensions; do
29428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29429     ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
29430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29431     break 2
29432   fi
29433 done
29434 done
29435 IFS=$as_save_IFS
29436
29437   ;;
29438 esac
29439 fi
29440 VXDUMP=$ac_cv_path_VXDUMP
29441 if test -n "$VXDUMP"; then
29442   { echo "$as_me:$LINENO: result: $VXDUMP" >&5
29443 echo "${ECHO_T}$VXDUMP" >&6; }
29444 else
29445   { echo "$as_me:$LINENO: result: no" >&5
29446 echo "${ECHO_T}no" >&6; }
29447 fi
29448
29449
29450     # Extract the first word of "vxrestore", so it can be a program name with args.
29451 set dummy vxrestore; ac_word=$2
29452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29454 if test "${ac_cv_path_VXRESTORE+set}" = set; then
29455   echo $ECHO_N "(cached) $ECHO_C" >&6
29456 else
29457   case $VXRESTORE in
29458   [\\/]* | ?:[\\/]*)
29459   ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
29460   ;;
29461   *)
29462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29463 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
29464 for as_dir in $as_dummy
29465 do
29466   IFS=$as_save_IFS
29467   test -z "$as_dir" && as_dir=.
29468   for ac_exec_ext in '' $ac_executable_extensions; do
29469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29470     ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
29471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29472     break 2
29473   fi
29474 done
29475 done
29476 IFS=$as_save_IFS
29477
29478   ;;
29479 esac
29480 fi
29481 VXRESTORE=$ac_cv_path_VXRESTORE
29482 if test -n "$VXRESTORE"; then
29483   { echo "$as_me:$LINENO: result: $VXRESTORE" >&5
29484 echo "${ECHO_T}$VXRESTORE" >&6; }
29485 else
29486   { echo "$as_me:$LINENO: result: no" >&5
29487 echo "${ECHO_T}no" >&6; }
29488 fi
29489
29490
29491     if test "$VXDUMP" -a "$VXRESTORE"; then
29492
29493 cat >>confdefs.h <<_ACEOF
29494 #define VXDUMP "$VXDUMP"
29495 _ACEOF
29496
29497
29498 cat >>confdefs.h <<_ACEOF
29499 #define VXRESTORE "$VXRESTORE"
29500 _ACEOF
29501
29502     fi
29503
29504
29505
29506
29507     # Extract the first word of "vdump", so it can be a program name with args.
29508 set dummy vdump; ac_word=$2
29509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29511 if test "${ac_cv_path_VDUMP+set}" = set; then
29512   echo $ECHO_N "(cached) $ECHO_C" >&6
29513 else
29514   case $VDUMP in
29515   [\\/]* | ?:[\\/]*)
29516   ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
29517   ;;
29518   *)
29519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29520 for as_dir in $SYSLOCPATH
29521 do
29522   IFS=$as_save_IFS
29523   test -z "$as_dir" && as_dir=.
29524   for ac_exec_ext in '' $ac_executable_extensions; do
29525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29526     ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
29527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29528     break 2
29529   fi
29530 done
29531 done
29532 IFS=$as_save_IFS
29533
29534   ;;
29535 esac
29536 fi
29537 VDUMP=$ac_cv_path_VDUMP
29538 if test -n "$VDUMP"; then
29539   { echo "$as_me:$LINENO: result: $VDUMP" >&5
29540 echo "${ECHO_T}$VDUMP" >&6; }
29541 else
29542   { echo "$as_me:$LINENO: result: no" >&5
29543 echo "${ECHO_T}no" >&6; }
29544 fi
29545
29546
29547     # Extract the first word of "vrestore", so it can be a program name with args.
29548 set dummy vrestore; ac_word=$2
29549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29551 if test "${ac_cv_path_VRESTORE+set}" = set; then
29552   echo $ECHO_N "(cached) $ECHO_C" >&6
29553 else
29554   case $VRESTORE in
29555   [\\/]* | ?:[\\/]*)
29556   ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
29557   ;;
29558   *)
29559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29560 for as_dir in $SYSLOCPATH
29561 do
29562   IFS=$as_save_IFS
29563   test -z "$as_dir" && as_dir=.
29564   for ac_exec_ext in '' $ac_executable_extensions; do
29565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29566     ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
29567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29568     break 2
29569   fi
29570 done
29571 done
29572 IFS=$as_save_IFS
29573
29574   ;;
29575 esac
29576 fi
29577 VRESTORE=$ac_cv_path_VRESTORE
29578 if test -n "$VRESTORE"; then
29579   { echo "$as_me:$LINENO: result: $VRESTORE" >&5
29580 echo "${ECHO_T}$VRESTORE" >&6; }
29581 else
29582   { echo "$as_me:$LINENO: result: no" >&5
29583 echo "${ECHO_T}no" >&6; }
29584 fi
29585
29586
29587     if test "$VDUMP" -a "$VRESTORE"; then
29588
29589 cat >>confdefs.h <<_ACEOF
29590 #define VDUMP "$VDUMP"
29591 _ACEOF
29592
29593
29594 cat >>confdefs.h <<_ACEOF
29595 #define VRESTORE "$VRESTORE"
29596 _ACEOF
29597
29598     fi
29599
29600
29601
29602     # Extract the first word of "grep", so it can be a program name with args.
29603 set dummy grep; ac_word=$2
29604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29606 if test "${ac_cv_path_GREP+set}" = set; then
29607   echo $ECHO_N "(cached) $ECHO_C" >&6
29608 else
29609   case $GREP in
29610   [\\/]* | ?:[\\/]*)
29611   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
29612   ;;
29613   *)
29614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29615 for as_dir in $LOCSYSPATH
29616 do
29617   IFS=$as_save_IFS
29618   test -z "$as_dir" && as_dir=.
29619   for ac_exec_ext in '' $ac_executable_extensions; do
29620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29621     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
29622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29623     break 2
29624   fi
29625 done
29626 done
29627 IFS=$as_save_IFS
29628
29629   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
29630   ;;
29631 esac
29632 fi
29633 GREP=$ac_cv_path_GREP
29634 if test -n "$GREP"; then
29635   { echo "$as_me:$LINENO: result: $GREP" >&5
29636 echo "${ECHO_T}$GREP" >&6; }
29637 else
29638   { echo "$as_me:$LINENO: result: no" >&5
29639 echo "${ECHO_T}no" >&6; }
29640 fi
29641
29642
29643
29644 cat >>confdefs.h <<_ACEOF
29645 #define GREP "$GREP"
29646 _ACEOF
29647
29648
29649
29650
29651
29652
29653     # Set the order of dump programs to look for.  Finding the proper file
29654     # system dumping program is problematic.  Some systems, notably HP-UX
29655     # and AIX, have both the backup and dump programs.  HP-UX can't use the
29656     # the backup program while AIX systems can't use the dump program.  So
29657     # a variable is set up here to specify the order of dump programs to
29658     # search for on the system.
29659     DUMP_PROGRAMS="ufsdump dump backup"
29660     dump_returns_1=
29661     case "$target" in
29662         *-dg-*)
29663             DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
29664             dump_returns_1=yes
29665             ;;
29666       *-ibm-aix*)
29667             DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
29668
29669 cat >>confdefs.h <<\_ACEOF
29670 #define AIX_BACKUP 1
29671 _ACEOF
29672
29673             ;;
29674       *-ultrix*)
29675             dump_returns_1=yes
29676             ;;
29677     esac
29678
29679     if test -n "$dump_returns_1"; then
29680
29681 cat >>confdefs.h <<\_ACEOF
29682 #define DUMP_RETURNS_1 1
29683 _ACEOF
29684
29685     fi
29686
29687     for ac_prog in $DUMP_PROGRAMS
29688 do
29689   # Extract the first word of "$ac_prog", so it can be a program name with args.
29690 set dummy $ac_prog; ac_word=$2
29691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29693 if test "${ac_cv_path_DUMP+set}" = set; then
29694   echo $ECHO_N "(cached) $ECHO_C" >&6
29695 else
29696   case $DUMP in
29697   [\\/]* | ?:[\\/]*)
29698   ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
29699   ;;
29700   *)
29701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29702 for as_dir in $SYSLOCPATH
29703 do
29704   IFS=$as_save_IFS
29705   test -z "$as_dir" && as_dir=.
29706   for ac_exec_ext in '' $ac_executable_extensions; do
29707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29708     ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
29709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29710     break 2
29711   fi
29712 done
29713 done
29714 IFS=$as_save_IFS
29715
29716   ;;
29717 esac
29718 fi
29719 DUMP=$ac_cv_path_DUMP
29720 if test -n "$DUMP"; then
29721   { echo "$as_me:$LINENO: result: $DUMP" >&5
29722 echo "${ECHO_T}$DUMP" >&6; }
29723 else
29724   { echo "$as_me:$LINENO: result: no" >&5
29725 echo "${ECHO_T}no" >&6; }
29726 fi
29727
29728
29729   test -n "$DUMP" && break
29730 done
29731
29732     for ac_prog in ufsrestore restore
29733 do
29734   # Extract the first word of "$ac_prog", so it can be a program name with args.
29735 set dummy $ac_prog; ac_word=$2
29736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29738 if test "${ac_cv_path_RESTORE+set}" = set; then
29739   echo $ECHO_N "(cached) $ECHO_C" >&6
29740 else
29741   case $RESTORE in
29742   [\\/]* | ?:[\\/]*)
29743   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
29744   ;;
29745   *)
29746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29747 for as_dir in $SYSLOCPATH
29748 do
29749   IFS=$as_save_IFS
29750   test -z "$as_dir" && as_dir=.
29751   for ac_exec_ext in '' $ac_executable_extensions; do
29752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29753     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
29754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29755     break 2
29756   fi
29757 done
29758 done
29759 IFS=$as_save_IFS
29760
29761   ;;
29762 esac
29763 fi
29764 RESTORE=$ac_cv_path_RESTORE
29765 if test -n "$RESTORE"; then
29766   { echo "$as_me:$LINENO: result: $RESTORE" >&5
29767 echo "${ECHO_T}$RESTORE" >&6; }
29768 else
29769   { echo "$as_me:$LINENO: result: no" >&5
29770 echo "${ECHO_T}no" >&6; }
29771 fi
29772
29773
29774   test -n "$RESTORE" && break
29775 done
29776
29777
29778     # newer versions of GNU tar include a program named 'backup' which
29779     # does *not* implement the expected 'dump' interface.  Detect that here
29780     # and pretend we never saw it.
29781     if test -n "$DUMP"; then
29782       if test "`basename $DUMP`" = "backup"; then
29783         backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
29784         if test $? -eq 0; then
29785           DUMP=
29786         fi
29787       fi
29788     fi
29789
29790     if test "$DUMP" -a "$RESTORE"; then
29791
29792 cat >>confdefs.h <<_ACEOF
29793 #define DUMP "$DUMP"
29794 _ACEOF
29795
29796
29797 cat >>confdefs.h <<_ACEOF
29798 #define RESTORE "$RESTORE"
29799 _ACEOF
29800
29801
29802         # check for an estimate flag
29803         if test -x $DUMP; then
29804             { echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
29805 echo $ECHO_N "checking whether $DUMP supports -E or -S for estimates... $ECHO_C" >&6; }
29806 if test "${amanda_cv_dump_estimate+set}" = set; then
29807   echo $ECHO_N "(cached) $ECHO_C" >&6
29808 else
29809
29810                     case "$DUMP" in
29811                     *dump)
29812                         { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
29813                             | $GREP -v Dumping
29814                             | $GREP -v Date
29815                             | $GREP -v Label >conftest.d-E 2>&1'
29816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29817   (eval $ac_try) 2>&5
29818   ac_status=$?
29819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820   (exit $ac_status); }; }
29821                         cat conftest.d-E >&5
29822                         { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
29823                             | $GREP -v Dumping
29824                             | $GREP -v Date
29825                             | $GREP -v Label >conftest.d-S 2>&1'
29826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29827   (eval $ac_try) 2>&5
29828   ac_status=$?
29829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830   (exit $ac_status); }; }
29831                         cat conftest.d-S >&5
29832                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
29833                             | $GREP -v Dumping
29834                             | $GREP -v Date
29835                             | $GREP -v Label >conftest.d 2>&1'
29836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29837   (eval $ac_try) 2>&5
29838   ac_status=$?
29839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840   (exit $ac_status); }; }
29841                         cat conftest.d >&5
29842                         if { ac_try='cmp conftest.d-E conftest.d 1>&2'
29843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29844   (eval $ac_try) 2>&5
29845   ac_status=$?
29846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847   (exit $ac_status); }; }; then
29848                             amanda_cv_dump_estimate=E
29849                         elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
29850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29851   (eval $ac_try) 2>&5
29852   ac_status=$?
29853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854   (exit $ac_status); }; }; then
29855                             amanda_cv_dump_estimate=S
29856                         else
29857                             amanda_cv_dump_estimate=no
29858                         fi
29859                         rm -f conftest.d conftest.d-E conftest.d-S
29860                       ;;
29861                     *) amanda_cv_dump_estimate=no
29862                       ;;
29863                     esac
29864
29865 fi
29866 { echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
29867 echo "${ECHO_T}$amanda_cv_dump_estimate" >&6; }
29868         else
29869
29870     { echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -E/-S test" >&5
29871 echo "$as_me: WARNING: $DUMP is not executable, cannot run -E/-S test" >&2;}
29872
29873
29874     cat <<AAW_EOF >>config.warnings
29875 $DUMP is not executable, cannot run -E/-S test
29876 AAW_EOF
29877
29878
29879             amanda_cv_dump_estimate=no
29880         fi
29881         if test "x$amanda_cv_dump_estimate" != xno; then
29882
29883 cat >>confdefs.h <<_ACEOF
29884 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
29885 _ACEOF
29886
29887         fi
29888
29889
29890 # Check whether --with-dump-honor-nodump was given.
29891 if test "${with_dump_honor_nodump+set}" = set; then
29892   withval=$with_dump_honor_nodump;
29893             if test -x $DUMP; then
29894                 { echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
29895 echo $ECHO_N "checking whether $DUMP supports -h (honor nodump flag)... $ECHO_C" >&6; }
29896 if test "${amanda_cv_honor_nodump+set}" = set; then
29897   echo $ECHO_N "(cached) $ECHO_C" >&6
29898 else
29899
29900                     case "$DUMP" in
29901                     *dump)
29902                         { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
29903                             | $GREP -v Dumping
29904                             | $GREP -v Date
29905                             | $GREP -v Label >conftest.d-h 2>&1'
29906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29907   (eval $ac_try) 2>&5
29908   ac_status=$?
29909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910   (exit $ac_status); }; }
29911                         cat conftest.d-h >&5
29912                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
29913                             | $GREP -v Dumping
29914                             | $GREP -v Date
29915                             | $GREP -v Label >conftest.d 2>&1'
29916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29917   (eval $ac_try) 2>&5
29918   ac_status=$?
29919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920   (exit $ac_status); }; }
29921                         cat conftest.d >&5
29922                         if { ac_try='diff conftest.d-h conftest.d 1>&2'
29923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29924   (eval $ac_try) 2>&5
29925   ac_status=$?
29926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927   (exit $ac_status); }; }; then
29928                             amanda_cv_honor_nodump=yes
29929                         else
29930                             amanda_cv_honor_nodump=no
29931                         fi
29932                         rm -f conftest.d conftest.d-h
29933                       ;;
29934                     *) amanda_cv_honor_nodump=no
29935                       ;;
29936                     esac
29937
29938 fi
29939 { echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
29940 echo "${ECHO_T}$amanda_cv_honor_nodump" >&6; }
29941             else
29942
29943     { echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -h test" >&5
29944 echo "$as_me: WARNING: $DUMP is not executable, cannot run -h test" >&2;}
29945
29946
29947     cat <<AAW_EOF >>config.warnings
29948 $DUMP is not executable, cannot run -h test
29949 AAW_EOF
29950
29951
29952                 amanda_cv_honor_nodump=no
29953             fi
29954             if test "x$amanda_cv_honor_nodump" = xyes; then
29955
29956 cat >>confdefs.h <<\_ACEOF
29957 #define HAVE_HONOR_NODUMP 1
29958 _ACEOF
29959
29960             fi
29961
29962 fi
29963
29964     fi
29965
29966
29967
29968
29969     # call with
29970
29971 # Check whether --with-gnutar was given.
29972 if test "${with_gnutar+set}" = set; then
29973   withval=$with_gnutar;
29974             # check withval
29975             case "$withval" in
29976                 /*) GNUTAR="$withval";;
29977                 y|ye|yes) :;;
29978                 n|no) GNUTAR=no ;;
29979                 *)  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
29980 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
29981    { (exit 1); exit 1; }; };;
29982             esac
29983             # done
29984
29985
29986 fi
29987
29988
29989     if test "x$GNUTAR" = "xno"; then
29990         GNUTAR=
29991     else
29992         for gnutar_name in gtar gnutar tar; do
29993             for ac_prog in $gnutar_name
29994 do
29995   # Extract the first word of "$ac_prog", so it can be a program name with args.
29996 set dummy $ac_prog; ac_word=$2
29997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29999 if test "${ac_cv_path_GNUTAR+set}" = set; then
30000   echo $ECHO_N "(cached) $ECHO_C" >&6
30001 else
30002   case $GNUTAR in
30003   [\\/]* | ?:[\\/]*)
30004   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
30005   ;;
30006   *)
30007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30008 for as_dir in $LOCSYSPATH
30009 do
30010   IFS=$as_save_IFS
30011   test -z "$as_dir" && as_dir=.
30012   for ac_exec_ext in '' $ac_executable_extensions; do
30013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30014     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
30015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30016     break 2
30017   fi
30018 done
30019 done
30020 IFS=$as_save_IFS
30021
30022   ;;
30023 esac
30024 fi
30025 GNUTAR=$ac_cv_path_GNUTAR
30026 if test -n "$GNUTAR"; then
30027   { echo "$as_me:$LINENO: result: $GNUTAR" >&5
30028 echo "${ECHO_T}$GNUTAR" >&6; }
30029 else
30030   { echo "$as_me:$LINENO: result: no" >&5
30031 echo "${ECHO_T}no" >&6; }
30032 fi
30033
30034
30035   test -n "$GNUTAR" && break
30036 done
30037
30038             if test -n "$GNUTAR"; then
30039               case "`\"$GNUTAR\" --version 2>&1`" in
30040                *GNU*tar* | *Free*paxutils* )
30041                             # OK, it is GNU tar
30042                             break
30043                             ;;
30044                *)
30045                             # warning..
30046
30047     { echo "$as_me:$LINENO: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&5
30048 echo "$as_me: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&2;}
30049
30050
30051     cat <<AAW_EOF >>config.warnings
30052 $GNUTAR is not GNU tar, so it will not be used.
30053 AAW_EOF
30054
30055
30056                             # reset the cache for GNUTAR so AC_PATH_PROGS will search again
30057                             GNUTAR=''
30058                             unset ac_cv_path_GNUTAR
30059                             ;;
30060               esac
30061             fi
30062         done
30063     fi
30064
30065     if test "x$GNUTAR" != "x"; then
30066         # define unquoted
30067
30068 cat >>confdefs.h <<_ACEOF
30069 #define GNUTAR "$GNUTAR"
30070 _ACEOF
30071
30072     fi
30073
30074
30075
30076
30077
30078
30079
30080 # Check whether --with-smbclient was given.
30081 if test "${with_smbclient+set}" = set; then
30082   withval=$with_smbclient;
30083             case "$withval" in
30084                 /*) SAMBA_CLIENT="$withval";;
30085                 y|ye|yes) :;;
30086                 n|no) SAMBA_CLIENT=no ;;
30087                 *)  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
30088 echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
30089    { (exit 1); exit 1; }; };;
30090             esac
30091
30092
30093 fi
30094
30095
30096
30097 # Check whether --with-samba-user was given.
30098 if test "${with_samba_user+set}" = set; then
30099   withval=$with_samba_user;  { { echo "$as_me:$LINENO: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&5
30100 echo "$as_me: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&2;}
30101    { (exit 1); exit 1; }; }
30102
30103 fi
30104
30105
30106     if test "x$SAMBA_CLIENT" != "xno"; then
30107       # Extract the first word of "smbclient", so it can be a program name with args.
30108 set dummy smbclient; ac_word=$2
30109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30111 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
30112   echo $ECHO_N "(cached) $ECHO_C" >&6
30113 else
30114   case $SAMBA_CLIENT in
30115   [\\/]* | ?:[\\/]*)
30116   ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
30117   ;;
30118   *)
30119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30120 for as_dir in $LOCSYSPATH
30121 do
30122   IFS=$as_save_IFS
30123   test -z "$as_dir" && as_dir=.
30124   for ac_exec_ext in '' $ac_executable_extensions; do
30125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30126     ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
30127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30128     break 2
30129   fi
30130 done
30131 done
30132 IFS=$as_save_IFS
30133
30134   ;;
30135 esac
30136 fi
30137 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
30138 if test -n "$SAMBA_CLIENT"; then
30139   { echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
30140 echo "${ECHO_T}$SAMBA_CLIENT" >&6; }
30141 else
30142   { echo "$as_me:$LINENO: result: no" >&5
30143 echo "${ECHO_T}no" >&6; }
30144 fi
30145
30146
30147       smbversion=0
30148       if test ! -z "$SAMBA_CLIENT"; then
30149         case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
30150         *"Unknown host"*)
30151                       smbversion=1
30152                       ;;
30153         *"Connection to not.a.host.name failed"*)
30154                       smbversion=2
30155                       ;;
30156         *)
30157
30158     { echo "$as_me:$LINENO: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
30159 echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
30160
30161
30162     cat <<AAW_EOF >>config.warnings
30163 $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.
30164 AAW_EOF
30165
30166
30167                       SAMBA_CLIENT=
30168                       ;;
30169         esac
30170         if test -n "$SAMBA_CLIENT"; then
30171
30172 cat >>confdefs.h <<_ACEOF
30173 #define SAMBA_CLIENT "$SAMBA_CLIENT"
30174 _ACEOF
30175
30176
30177 cat >>confdefs.h <<_ACEOF
30178 #define SAMBA_VERSION $smbversion
30179 _ACEOF
30180
30181         fi
30182       fi
30183     fi
30184
30185      if test -n "$SAMBA_CLIENT"; then
30186   WANT_SAMBA_TRUE=
30187   WANT_SAMBA_FALSE='#'
30188 else
30189   WANT_SAMBA_TRUE='#'
30190   WANT_SAMBA_FALSE=
30191 fi
30192
30193
30194
30195     USE_RUNDUMP=no
30196
30197     # some systems require rundump unconditionally
30198     case "$target" in
30199         *-ultrix*) USE_RUNDUMP=yes ;;
30200         *-dg-*) USE_RUNDUMP=yes ;;
30201     esac
30202
30203
30204 # Check whether --with-rundump was given.
30205 if test "${with_rundump+set}" = set; then
30206   withval=$with_rundump;
30207         case "$withval" in
30208             n | no) USE_RUNDUMP=no ;;
30209             y | ye | yes) USE_RUNDUMP=yes ;;
30210             *) { { echo "$as_me:$LINENO: error: You must not supply an argument to --with-rundump option." >&5
30211 echo "$as_me: error: You must not supply an argument to --with-rundump option." >&2;}
30212    { (exit 1); exit 1; }; };;
30213         esac
30214
30215 fi
30216
30217
30218     if test x"$USE_RUNDUMP" = x"yes"; then
30219
30220 cat >>confdefs.h <<\_ACEOF
30221 #define USE_RUNDUMP 1
30222 _ACEOF
30223
30224     fi
30225
30226
30227 #
30228 # Look for other programs Amanda will use
30229 #
30230
30231
30232     # Extract the first word of "grep", so it can be a program name with args.
30233 set dummy grep; ac_word=$2
30234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30236 if test "${ac_cv_path_GREP+set}" = set; then
30237   echo $ECHO_N "(cached) $ECHO_C" >&6
30238 else
30239   case $GREP in
30240   [\\/]* | ?:[\\/]*)
30241   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
30242   ;;
30243   *)
30244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30245 for as_dir in $LOCSYSPATH
30246 do
30247   IFS=$as_save_IFS
30248   test -z "$as_dir" && as_dir=.
30249   for ac_exec_ext in '' $ac_executable_extensions; do
30250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30251     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
30252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30253     break 2
30254   fi
30255 done
30256 done
30257 IFS=$as_save_IFS
30258
30259   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
30260   ;;
30261 esac
30262 fi
30263 GREP=$ac_cv_path_GREP
30264 if test -n "$GREP"; then
30265   { echo "$as_me:$LINENO: result: $GREP" >&5
30266 echo "${ECHO_T}$GREP" >&6; }
30267 else
30268   { echo "$as_me:$LINENO: result: no" >&5
30269 echo "${ECHO_T}no" >&6; }
30270 fi
30271
30272
30273
30274 cat >>confdefs.h <<_ACEOF
30275 #define GREP "$GREP"
30276 _ACEOF
30277
30278
30279 { echo "$as_me:$LINENO: checking for egrep" >&5
30280 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
30281 if test "${ac_cv_path_EGREP+set}" = set; then
30282   echo $ECHO_N "(cached) $ECHO_C" >&6
30283 else
30284   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
30285    then ac_cv_path_EGREP="$GREP -E"
30286    else
30287      # Extract the first word of "egrep" to use in msg output
30288 if test -z "$EGREP"; then
30289 set dummy egrep; ac_prog_name=$2
30290 if test "${ac_cv_path_EGREP+set}" = set; then
30291   echo $ECHO_N "(cached) $ECHO_C" >&6
30292 else
30293   ac_path_EGREP_found=false
30294 # Loop through the user's path and test for each of PROGNAME-LIST
30295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30296 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
30297 do
30298   IFS=$as_save_IFS
30299   test -z "$as_dir" && as_dir=.
30300   for ac_prog in egrep; do
30301   for ac_exec_ext in '' $ac_executable_extensions; do
30302     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
30303     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
30304     # Check for GNU ac_path_EGREP and select it if it is found.
30305   # Check for GNU $ac_path_EGREP
30306 case `"$ac_path_EGREP" --version 2>&1` in
30307 *GNU*)
30308   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
30309 *)
30310   ac_count=0
30311   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
30312   while :
30313   do
30314     cat "conftest.in" "conftest.in" >"conftest.tmp"
30315     mv "conftest.tmp" "conftest.in"
30316     cp "conftest.in" "conftest.nl"
30317     echo 'EGREP' >> "conftest.nl"
30318     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
30319     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
30320     ac_count=`expr $ac_count + 1`
30321     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
30322       # Best one so far, save it but keep looking for a better one
30323       ac_cv_path_EGREP="$ac_path_EGREP"
30324       ac_path_EGREP_max=$ac_count
30325     fi
30326     # 10*(2^10) chars as input seems more than enough
30327     test $ac_count -gt 10 && break
30328   done
30329   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
30330 esac
30331
30332
30333     $ac_path_EGREP_found && break 3
30334   done
30335 done
30336
30337 done
30338 IFS=$as_save_IFS
30339
30340
30341 fi
30342
30343 EGREP="$ac_cv_path_EGREP"
30344 if test -z "$EGREP"; then
30345   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
30346 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
30347    { (exit 1); exit 1; }; }
30348 fi
30349
30350 else
30351   ac_cv_path_EGREP=$EGREP
30352 fi
30353
30354
30355    fi
30356 fi
30357 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
30358 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
30359  EGREP="$ac_cv_path_EGREP"
30360
30361
30362
30363
30364
30365
30366     # Extract the first word of "lint", so it can be a program name with args.
30367 set dummy lint; ac_word=$2
30368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30370 if test "${ac_cv_path_AMLINT+set}" = set; then
30371   echo $ECHO_N "(cached) $ECHO_C" >&6
30372 else
30373   case $AMLINT in
30374   [\\/]* | ?:[\\/]*)
30375   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
30376   ;;
30377   *)
30378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30379 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
30380 for as_dir in $as_dummy
30381 do
30382   IFS=$as_save_IFS
30383   test -z "$as_dir" && as_dir=.
30384   for ac_exec_ext in '' $ac_executable_extensions; do
30385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30386     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
30387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30388     break 2
30389   fi
30390 done
30391 done
30392 IFS=$as_save_IFS
30393
30394   ;;
30395 esac
30396 fi
30397 AMLINT=$ac_cv_path_AMLINT
30398 if test -n "$AMLINT"; then
30399   { echo "$as_me:$LINENO: result: $AMLINT" >&5
30400 echo "${ECHO_T}$AMLINT" >&6; }
30401 else
30402   { echo "$as_me:$LINENO: result: no" >&5
30403 echo "${ECHO_T}no" >&6; }
30404 fi
30405
30406
30407     if test ! -z "$AMLINT"; then
30408       $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
30409       if test $? -eq 0; then
30410         AMLINTFLAGS="-n -s -u -m -x"
30411         AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
30412         AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
30413         AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
30414         AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
30415         AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
30416         AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
30417         AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
30418         AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
30419         AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
30420         AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
30421         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
30422         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
30423         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
30424         AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
30425         AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
30426         AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
30427         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
30428         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
30429         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
30430         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
30431         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
30432         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
30433         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
30434         AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
30435         AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
30436         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
30437         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
30438         AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
30439         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
30440         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
30441         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
30442         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
30443         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
30444         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
30445         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
30446         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
30447         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
30448         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
30449         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
30450         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
30451         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
30452         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
30453         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
30454         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
30455         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
30456         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
30457         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
30458         AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
30459         AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
30460         AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
30461       else
30462         AMLINTFLAGS=""
30463       fi
30464     else
30465       # Extract the first word of "splint", so it can be a program name with args.
30466 set dummy splint; ac_word=$2
30467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30469 if test "${ac_cv_path_AMLINT+set}" = set; then
30470   echo $ECHO_N "(cached) $ECHO_C" >&6
30471 else
30472   case $AMLINT in
30473   [\\/]* | ?:[\\/]*)
30474   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
30475   ;;
30476   *)
30477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30478 for as_dir in $SYSLOCPATH
30479 do
30480   IFS=$as_save_IFS
30481   test -z "$as_dir" && as_dir=.
30482   for ac_exec_ext in '' $ac_executable_extensions; do
30483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30484     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
30485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30486     break 2
30487   fi
30488 done
30489 done
30490 IFS=$as_save_IFS
30491
30492   ;;
30493 esac
30494 fi
30495 AMLINT=$ac_cv_path_AMLINT
30496 if test -n "$AMLINT"; then
30497   { echo "$as_me:$LINENO: result: $AMLINT" >&5
30498 echo "${ECHO_T}$AMLINT" >&6; }
30499 else
30500   { echo "$as_me:$LINENO: result: no" >&5
30501 echo "${ECHO_T}no" >&6; }
30502 fi
30503
30504
30505       if test ! -z "$AMLINT"; then
30506         AMLINT="splint"
30507       else
30508         AMLINT='echo "Error: LINT is not installed" ; false'
30509       fi
30510       AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
30511     fi
30512
30513
30514 for ac_prog in flex lex
30515 do
30516   # Extract the first word of "$ac_prog", so it can be a program name with args.
30517 set dummy $ac_prog; ac_word=$2
30518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30520 if test "${ac_cv_prog_LEX+set}" = set; then
30521   echo $ECHO_N "(cached) $ECHO_C" >&6
30522 else
30523   if test -n "$LEX"; then
30524   ac_cv_prog_LEX="$LEX" # Let the user override the test.
30525 else
30526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30527 for as_dir in $PATH
30528 do
30529   IFS=$as_save_IFS
30530   test -z "$as_dir" && as_dir=.
30531   for ac_exec_ext in '' $ac_executable_extensions; do
30532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30533     ac_cv_prog_LEX="$ac_prog"
30534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30535     break 2
30536   fi
30537 done
30538 done
30539 IFS=$as_save_IFS
30540
30541 fi
30542 fi
30543 LEX=$ac_cv_prog_LEX
30544 if test -n "$LEX"; then
30545   { echo "$as_me:$LINENO: result: $LEX" >&5
30546 echo "${ECHO_T}$LEX" >&6; }
30547 else
30548   { echo "$as_me:$LINENO: result: no" >&5
30549 echo "${ECHO_T}no" >&6; }
30550 fi
30551
30552
30553   test -n "$LEX" && break
30554 done
30555 test -n "$LEX" || LEX=":"
30556
30557 if test "x$LEX" != "x:"; then
30558   cat >conftest.l <<_ACEOF
30559 %%
30560 a { ECHO; }
30561 b { REJECT; }
30562 c { yymore (); }
30563 d { yyless (1); }
30564 e { yyless (input () != 0); }
30565 f { unput (yytext[0]); }
30566 . { BEGIN INITIAL; }
30567 %%
30568 #ifdef YYTEXT_POINTER
30569 extern char *yytext;
30570 #endif
30571 int
30572 main (void)
30573 {
30574   return ! yylex () + ! yywrap ();
30575 }
30576 _ACEOF
30577 { (ac_try="$LEX conftest.l"
30578 case "(($ac_try" in
30579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30580   *) ac_try_echo=$ac_try;;
30581 esac
30582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30583   (eval "$LEX conftest.l") 2>&5
30584   ac_status=$?
30585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30586   (exit $ac_status); }
30587 { echo "$as_me:$LINENO: checking lex output file root" >&5
30588 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
30589 if test "${ac_cv_prog_lex_root+set}" = set; then
30590   echo $ECHO_N "(cached) $ECHO_C" >&6
30591 else
30592
30593 if test -f lex.yy.c; then
30594   ac_cv_prog_lex_root=lex.yy
30595 elif test -f lexyy.c; then
30596   ac_cv_prog_lex_root=lexyy
30597 else
30598   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
30599 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
30600    { (exit 1); exit 1; }; }
30601 fi
30602 fi
30603 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
30604 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
30605 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
30606
30607 if test -z "${LEXLIB+set}"; then
30608   { echo "$as_me:$LINENO: checking lex library" >&5
30609 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
30610 if test "${ac_cv_lib_lex+set}" = set; then
30611   echo $ECHO_N "(cached) $ECHO_C" >&6
30612 else
30613
30614     ac_save_LIBS=$LIBS
30615     ac_cv_lib_lex='none needed'
30616     for ac_lib in '' -lfl -ll; do
30617       LIBS="$ac_lib $ac_save_LIBS"
30618       cat >conftest.$ac_ext <<_ACEOF
30619 `cat $LEX_OUTPUT_ROOT.c`
30620 _ACEOF
30621 rm -f conftest.$ac_objext conftest$ac_exeext
30622 if { (ac_try="$ac_link"
30623 case "(($ac_try" in
30624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30625   *) ac_try_echo=$ac_try;;
30626 esac
30627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30628   (eval "$ac_link") 2>conftest.er1
30629   ac_status=$?
30630   grep -v '^ *+' conftest.er1 >conftest.err
30631   rm -f conftest.er1
30632   cat conftest.err >&5
30633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634   (exit $ac_status); } && {
30635          test -z "$ac_c_werror_flag" ||
30636          test ! -s conftest.err
30637        } && test -s conftest$ac_exeext &&
30638        $as_test_x conftest$ac_exeext; then
30639   ac_cv_lib_lex=$ac_lib
30640 else
30641   echo "$as_me: failed program was:" >&5
30642 sed 's/^/| /' conftest.$ac_ext >&5
30643
30644
30645 fi
30646
30647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30648       conftest$ac_exeext conftest.$ac_ext
30649       test "$ac_cv_lib_lex" != 'none needed' && break
30650     done
30651     LIBS=$ac_save_LIBS
30652
30653 fi
30654 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
30655 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
30656   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
30657 fi
30658
30659
30660 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
30661 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
30662 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
30663   echo $ECHO_N "(cached) $ECHO_C" >&6
30664 else
30665   # POSIX says lex can declare yytext either as a pointer or an array; the
30666 # default is implementation-dependent.  Figure out which it is, since
30667 # not all implementations provide the %pointer and %array declarations.
30668 ac_cv_prog_lex_yytext_pointer=no
30669 ac_save_LIBS=$LIBS
30670 LIBS="$LEXLIB $ac_save_LIBS"
30671 cat >conftest.$ac_ext <<_ACEOF
30672 #define YYTEXT_POINTER 1
30673 `cat $LEX_OUTPUT_ROOT.c`
30674 _ACEOF
30675 rm -f conftest.$ac_objext conftest$ac_exeext
30676 if { (ac_try="$ac_link"
30677 case "(($ac_try" in
30678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30679   *) ac_try_echo=$ac_try;;
30680 esac
30681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30682   (eval "$ac_link") 2>conftest.er1
30683   ac_status=$?
30684   grep -v '^ *+' conftest.er1 >conftest.err
30685   rm -f conftest.er1
30686   cat conftest.err >&5
30687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688   (exit $ac_status); } && {
30689          test -z "$ac_c_werror_flag" ||
30690          test ! -s conftest.err
30691        } && test -s conftest$ac_exeext &&
30692        $as_test_x conftest$ac_exeext; then
30693   ac_cv_prog_lex_yytext_pointer=yes
30694 else
30695   echo "$as_me: failed program was:" >&5
30696 sed 's/^/| /' conftest.$ac_ext >&5
30697
30698
30699 fi
30700
30701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30702       conftest$ac_exeext conftest.$ac_ext
30703 LIBS=$ac_save_LIBS
30704
30705 fi
30706 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
30707 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
30708 if test $ac_cv_prog_lex_yytext_pointer = yes; then
30709
30710 cat >>confdefs.h <<\_ACEOF
30711 #define YYTEXT_POINTER 1
30712 _ACEOF
30713
30714 fi
30715 rm -f conftest.l $LEX_OUTPUT_ROOT.c
30716
30717 fi
30718 if test "$LEX" = :; then
30719   LEX=${am_missing_run}flex
30720 fi
30721
30722
30723     # Extract the first word of "ar", so it can be a program name with args.
30724 set dummy ar; ac_word=$2
30725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30727 if test "${ac_cv_path_AR+set}" = set; then
30728   echo $ECHO_N "(cached) $ECHO_C" >&6
30729 else
30730   case $AR in
30731   [\\/]* | ?:[\\/]*)
30732   ac_cv_path_AR="$AR" # Let the user override the test with a path.
30733   ;;
30734   *)
30735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30736 for as_dir in $LOCSYSPATH
30737 do
30738   IFS=$as_save_IFS
30739   test -z "$as_dir" && as_dir=.
30740   for ac_exec_ext in '' $ac_executable_extensions; do
30741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30742     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
30743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30744     break 2
30745   fi
30746 done
30747 done
30748 IFS=$as_save_IFS
30749
30750   ;;
30751 esac
30752 fi
30753 AR=$ac_cv_path_AR
30754 if test -n "$AR"; then
30755   { echo "$as_me:$LINENO: result: $AR" >&5
30756 echo "${ECHO_T}$AR" >&6; }
30757 else
30758   { echo "$as_me:$LINENO: result: no" >&5
30759 echo "${ECHO_T}no" >&6; }
30760 fi
30761
30762
30763
30764
30765
30766     # Extract the first word of "gettext", so it can be a program name with args.
30767 set dummy gettext; ac_word=$2
30768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30770 if test "${ac_cv_path_GETTEXT+set}" = set; then
30771   echo $ECHO_N "(cached) $ECHO_C" >&6
30772 else
30773   case $GETTEXT in
30774   [\\/]* | ?:[\\/]*)
30775   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
30776   ;;
30777   *)
30778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30779 for as_dir in $LOCSYSPATH
30780 do
30781   IFS=$as_save_IFS
30782   test -z "$as_dir" && as_dir=.
30783   for ac_exec_ext in '' $ac_executable_extensions; do
30784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30785     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
30786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30787     break 2
30788   fi
30789 done
30790 done
30791 IFS=$as_save_IFS
30792
30793   ;;
30794 esac
30795 fi
30796 GETTEXT=$ac_cv_path_GETTEXT
30797 if test -n "$GETTEXT"; then
30798   { echo "$as_me:$LINENO: result: $GETTEXT" >&5
30799 echo "${ECHO_T}$GETTEXT" >&6; }
30800 else
30801   { echo "$as_me:$LINENO: result: no" >&5
30802 echo "${ECHO_T}no" >&6; }
30803 fi
30804
30805
30806
30807 for ac_prog in gawk mawk nawk awk
30808 do
30809   # Extract the first word of "$ac_prog", so it can be a program name with args.
30810 set dummy $ac_prog; ac_word=$2
30811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30813 if test "${ac_cv_prog_AWK+set}" = set; then
30814   echo $ECHO_N "(cached) $ECHO_C" >&6
30815 else
30816   if test -n "$AWK"; then
30817   ac_cv_prog_AWK="$AWK" # Let the user override the test.
30818 else
30819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30820 for as_dir in $PATH
30821 do
30822   IFS=$as_save_IFS
30823   test -z "$as_dir" && as_dir=.
30824   for ac_exec_ext in '' $ac_executable_extensions; do
30825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30826     ac_cv_prog_AWK="$ac_prog"
30827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30828     break 2
30829   fi
30830 done
30831 done
30832 IFS=$as_save_IFS
30833
30834 fi
30835 fi
30836 AWK=$ac_cv_prog_AWK
30837 if test -n "$AWK"; then
30838   { echo "$as_me:$LINENO: result: $AWK" >&5
30839 echo "${ECHO_T}$AWK" >&6; }
30840 else
30841   { echo "$as_me:$LINENO: result: no" >&5
30842 echo "${ECHO_T}no" >&6; }
30843 fi
30844
30845
30846   test -n "$AWK" && break
30847 done
30848
30849 for ac_prog in 'bison -y' byacc
30850 do
30851   # Extract the first word of "$ac_prog", so it can be a program name with args.
30852 set dummy $ac_prog; ac_word=$2
30853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30855 if test "${ac_cv_prog_YACC+set}" = set; then
30856   echo $ECHO_N "(cached) $ECHO_C" >&6
30857 else
30858   if test -n "$YACC"; then
30859   ac_cv_prog_YACC="$YACC" # Let the user override the test.
30860 else
30861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30862 for as_dir in $PATH
30863 do
30864   IFS=$as_save_IFS
30865   test -z "$as_dir" && as_dir=.
30866   for ac_exec_ext in '' $ac_executable_extensions; do
30867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30868     ac_cv_prog_YACC="$ac_prog"
30869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30870     break 2
30871   fi
30872 done
30873 done
30874 IFS=$as_save_IFS
30875
30876 fi
30877 fi
30878 YACC=$ac_cv_prog_YACC
30879 if test -n "$YACC"; then
30880   { echo "$as_me:$LINENO: result: $YACC" >&5
30881 echo "${ECHO_T}$YACC" >&6; }
30882 else
30883   { echo "$as_me:$LINENO: result: no" >&5
30884 echo "${ECHO_T}no" >&6; }
30885 fi
30886
30887
30888   test -n "$YACC" && break
30889 done
30890 test -n "$YACC" || YACC="yacc"
30891
30892 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
30893 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
30894 if test -z "$MKDIR_P"; then
30895   if test "${ac_cv_path_mkdir+set}" = set; then
30896   echo $ECHO_N "(cached) $ECHO_C" >&6
30897 else
30898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30899 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
30900 do
30901   IFS=$as_save_IFS
30902   test -z "$as_dir" && as_dir=.
30903   for ac_prog in mkdir gmkdir; do
30904          for ac_exec_ext in '' $ac_executable_extensions; do
30905            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
30906            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
30907              'mkdir (GNU coreutils) '* | \
30908              'mkdir (coreutils) '* | \
30909              'mkdir (fileutils) '4.1*)
30910                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
30911                break 3;;
30912            esac
30913          done
30914        done
30915 done
30916 IFS=$as_save_IFS
30917
30918 fi
30919
30920   if test "${ac_cv_path_mkdir+set}" = set; then
30921     MKDIR_P="$ac_cv_path_mkdir -p"
30922   else
30923     # As a last resort, use the slow shell script.  Don't cache a
30924     # value for MKDIR_P within a source directory, because that will
30925     # break other packages using the cache if that directory is
30926     # removed, or if the value is a relative name.
30927     test -d ./--version && rmdir ./--version
30928     MKDIR_P="$ac_install_sh -d"
30929   fi
30930 fi
30931 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
30932 echo "${ECHO_T}$MKDIR_P" >&6; }
30933
30934
30935
30936     # Extract the first word of "dd", so it can be a program name with args.
30937 set dummy dd; ac_word=$2
30938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30940 if test "${ac_cv_path_DD+set}" = set; then
30941   echo $ECHO_N "(cached) $ECHO_C" >&6
30942 else
30943   case $DD in
30944   [\\/]* | ?:[\\/]*)
30945   ac_cv_path_DD="$DD" # Let the user override the test with a path.
30946   ;;
30947   *)
30948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30949 for as_dir in $LOCSYSPATH
30950 do
30951   IFS=$as_save_IFS
30952   test -z "$as_dir" && as_dir=.
30953   for ac_exec_ext in '' $ac_executable_extensions; do
30954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30955     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
30956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30957     break 2
30958   fi
30959 done
30960 done
30961 IFS=$as_save_IFS
30962
30963   ;;
30964 esac
30965 fi
30966 DD=$ac_cv_path_DD
30967 if test -n "$DD"; then
30968   { echo "$as_me:$LINENO: result: $DD" >&5
30969 echo "${ECHO_T}$DD" >&6; }
30970 else
30971   { echo "$as_me:$LINENO: result: no" >&5
30972 echo "${ECHO_T}no" >&6; }
30973 fi
30974
30975
30976
30977
30978
30979     # Extract the first word of "bash", so it can be a program name with args.
30980 set dummy bash; ac_word=$2
30981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30983 if test "${ac_cv_path_BASH+set}" = set; then
30984   echo $ECHO_N "(cached) $ECHO_C" >&6
30985 else
30986   case $BASH in
30987   [\\/]* | ?:[\\/]*)
30988   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
30989   ;;
30990   *)
30991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30992 for as_dir in $SYSPATH
30993 do
30994   IFS=$as_save_IFS
30995   test -z "$as_dir" && as_dir=.
30996   for ac_exec_ext in '' $ac_executable_extensions; do
30997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30998     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
30999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31000     break 2
31001   fi
31002 done
31003 done
31004 IFS=$as_save_IFS
31005
31006   ;;
31007 esac
31008 fi
31009 BASH=$ac_cv_path_BASH
31010 if test -n "$BASH"; then
31011   { echo "$as_me:$LINENO: result: $BASH" >&5
31012 echo "${ECHO_T}$BASH" >&6; }
31013 else
31014   { echo "$as_me:$LINENO: result: no" >&5
31015 echo "${ECHO_T}no" >&6; }
31016 fi
31017
31018
31019
31020
31021
31022
31023
31024     # Extract the first word of "sort", so it can be a program name with args.
31025 set dummy sort; ac_word=$2
31026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31028 if test "${ac_cv_path_SORT+set}" = set; then
31029   echo $ECHO_N "(cached) $ECHO_C" >&6
31030 else
31031   case $SORT in
31032   [\\/]* | ?:[\\/]*)
31033   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
31034   ;;
31035   *)
31036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31037 for as_dir in $LOCSYSPATH
31038 do
31039   IFS=$as_save_IFS
31040   test -z "$as_dir" && as_dir=.
31041   for ac_exec_ext in '' $ac_executable_extensions; do
31042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31043     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
31044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31045     break 2
31046   fi
31047 done
31048 done
31049 IFS=$as_save_IFS
31050
31051   test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
31052   ;;
31053 esac
31054 fi
31055 SORT=$ac_cv_path_SORT
31056 if test -n "$SORT"; then
31057   { echo "$as_me:$LINENO: result: $SORT" >&5
31058 echo "${ECHO_T}$SORT" >&6; }
31059 else
31060   { echo "$as_me:$LINENO: result: no" >&5
31061 echo "${ECHO_T}no" >&6; }
31062 fi
31063
31064
31065
31066     # sort is only needed in the server build
31067     if test x"$SORT" = x"NONE" && $WANT_SERVER; then
31068         { { echo "$as_me:$LINENO: error: Set SORT to the path of the sort program." >&5
31069 echo "$as_me: error: Set SORT to the path of the sort program." >&2;}
31070    { (exit 1); exit 1; }; }
31071     fi
31072
31073
31074 cat >>confdefs.h <<_ACEOF
31075 #define SORT_PATH "$SORT"
31076 _ACEOF
31077
31078
31079
31080
31081     for ac_prog in Mail mailx mail
31082 do
31083   # Extract the first word of "$ac_prog", so it can be a program name with args.
31084 set dummy $ac_prog; ac_word=$2
31085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31087 if test "${ac_cv_path_MAILER+set}" = set; then
31088   echo $ECHO_N "(cached) $ECHO_C" >&6
31089 else
31090   case $MAILER in
31091   [\\/]* | ?:[\\/]*)
31092   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
31093   ;;
31094   *)
31095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31096 for as_dir in $PATH
31097 do
31098   IFS=$as_save_IFS
31099   test -z "$as_dir" && as_dir=.
31100   for ac_exec_ext in '' $ac_executable_extensions; do
31101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31102     ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
31103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31104     break 2
31105   fi
31106 done
31107 done
31108 IFS=$as_save_IFS
31109
31110   ;;
31111 esac
31112 fi
31113 MAILER=$ac_cv_path_MAILER
31114 if test -n "$MAILER"; then
31115   { echo "$as_me:$LINENO: result: $MAILER" >&5
31116 echo "${ECHO_T}$MAILER" >&6; }
31117 else
31118   { echo "$as_me:$LINENO: result: no" >&5
31119 echo "${ECHO_T}no" >&6; }
31120 fi
31121
31122
31123   test -n "$MAILER" && break
31124 done
31125 test -n "$MAILER" || MAILER="NONE"
31126
31127     if test x"$MAILER" = x"NONE"; then
31128
31129     { echo "$as_me:$LINENO: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
31130 echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
31131
31132
31133     cat <<AAW_EOF >>config.warnings
31134 WARNING: Amanda cannot send mail reports without a mailer.
31135 AAW_EOF
31136
31137
31138     else
31139
31140 cat >>confdefs.h <<_ACEOF
31141 #define MAILER "$MAILER"
31142 _ACEOF
31143
31144     fi
31145
31146
31147
31148     # Extract the first word of "mt", so it can be a program name with args.
31149 set dummy mt; ac_word=$2
31150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31152 if test "${ac_cv_path_MT+set}" = set; then
31153   echo $ECHO_N "(cached) $ECHO_C" >&6
31154 else
31155   case $MT in
31156   [\\/]* | ?:[\\/]*)
31157   ac_cv_path_MT="$MT" # Let the user override the test with a path.
31158   ;;
31159   *)
31160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31161 for as_dir in $LOCSYSPATH
31162 do
31163   IFS=$as_save_IFS
31164   test -z "$as_dir" && as_dir=.
31165   for ac_exec_ext in '' $ac_executable_extensions; do
31166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31167     ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
31168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31169     break 2
31170   fi
31171 done
31172 done
31173 IFS=$as_save_IFS
31174
31175   test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
31176   ;;
31177 esac
31178 fi
31179 MT=$ac_cv_path_MT
31180 if test -n "$MT"; then
31181   { echo "$as_me:$LINENO: result: $MT" >&5
31182 echo "${ECHO_T}$MT" >&6; }
31183 else
31184   { echo "$as_me:$LINENO: result: no" >&5
31185 echo "${ECHO_T}no" >&6; }
31186 fi
31187
31188
31189
31190     case "$target" in
31191         *-hp-*) MT_FILE_FLAG="-t" ;;
31192         *) MT_FILE_FLAG="-f" ;;
31193     esac
31194
31195
31196
31197 cat >>confdefs.h <<_ACEOF
31198 #define MT_FILE_FLAG "$MT_FILE_FLAG"
31199 _ACEOF
31200
31201
31202
31203
31204
31205     for ac_prog in lpr lp
31206 do
31207   # Extract the first word of "$ac_prog", so it can be a program name with args.
31208 set dummy $ac_prog; ac_word=$2
31209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31211 if test "${ac_cv_path_PRINT+set}" = set; then
31212   echo $ECHO_N "(cached) $ECHO_C" >&6
31213 else
31214   case $PRINT in
31215   [\\/]* | ?:[\\/]*)
31216   ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
31217   ;;
31218   *)
31219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31220 for as_dir in $PATH
31221 do
31222   IFS=$as_save_IFS
31223   test -z "$as_dir" && as_dir=.
31224   for ac_exec_ext in '' $ac_executable_extensions; do
31225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31226     ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
31227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31228     break 2
31229   fi
31230 done
31231 done
31232 IFS=$as_save_IFS
31233
31234   ;;
31235 esac
31236 fi
31237 PRINT=$ac_cv_path_PRINT
31238 if test -n "$PRINT"; then
31239   { echo "$as_me:$LINENO: result: $PRINT" >&5
31240 echo "${ECHO_T}$PRINT" >&6; }
31241 else
31242   { echo "$as_me:$LINENO: result: no" >&5
31243 echo "${ECHO_T}no" >&6; }
31244 fi
31245
31246
31247   test -n "$PRINT" && break
31248 done
31249
31250     if test ! -z "$PRINT"; then
31251
31252 cat >>confdefs.h <<_ACEOF
31253 #define LPRCMD "$PRINT"
31254 _ACEOF
31255
31256
31257         { echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
31258 echo $ECHO_N "checking which flag to use to select a printer... $ECHO_C" >&6; }
31259 if test "${amanda_cv_printer_flag+set}" = set; then
31260   echo $ECHO_N "(cached) $ECHO_C" >&6
31261 else
31262
31263             amanda_cv_printer_flag=$PRINTER_FLAG
31264             case "$PRINT" in
31265                 lpr|*/lpr) amanda_cv_printer_flag="-P";;
31266                 lp|*/lp) amanda_cv_printer_flag="-d";;
31267             esac
31268
31269 fi
31270 { echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
31271 echo "${ECHO_T}$amanda_cv_printer_flag" >&6; }
31272         if test ! -z "$amanda_cv_printer_flag"; then
31273
31274 cat >>confdefs.h <<_ACEOF
31275 #define LPRFLAG "$amanda_cv_printer_flag"
31276 _ACEOF
31277
31278         else
31279
31280     { echo "$as_me:$LINENO: WARNING: WARNING: amanda will always print to the default printer" >&5
31281 echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
31282
31283
31284     cat <<AAW_EOF >>config.warnings
31285 WARNING: amanda will always print to the default printer
31286 AAW_EOF
31287
31288
31289         fi
31290     fi
31291
31292
31293
31294     # Extract the first word of "pcat", so it can be a program name with args.
31295 set dummy pcat; ac_word=$2
31296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31298 if test "${ac_cv_path_PCAT+set}" = set; then
31299   echo $ECHO_N "(cached) $ECHO_C" >&6
31300 else
31301   case $PCAT in
31302   [\\/]* | ?:[\\/]*)
31303   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
31304   ;;
31305   *)
31306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31307 for as_dir in $LOCSYSPATH
31308 do
31309   IFS=$as_save_IFS
31310   test -z "$as_dir" && as_dir=.
31311   for ac_exec_ext in '' $ac_executable_extensions; do
31312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31313     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
31314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31315     break 2
31316   fi
31317 done
31318 done
31319 IFS=$as_save_IFS
31320
31321   ;;
31322 esac
31323 fi
31324 PCAT=$ac_cv_path_PCAT
31325 if test -n "$PCAT"; then
31326   { echo "$as_me:$LINENO: result: $PCAT" >&5
31327 echo "${ECHO_T}$PCAT" >&6; }
31328 else
31329   { echo "$as_me:$LINENO: result: no" >&5
31330 echo "${ECHO_T}no" >&6; }
31331 fi
31332
31333
31334
31335
31336
31337     for ac_prog in perl5 perl
31338 do
31339   # Extract the first word of "$ac_prog", so it can be a program name with args.
31340 set dummy $ac_prog; ac_word=$2
31341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31343 if test "${ac_cv_path_PERL+set}" = set; then
31344   echo $ECHO_N "(cached) $ECHO_C" >&6
31345 else
31346   case $PERL in
31347   [\\/]* | ?:[\\/]*)
31348   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31349   ;;
31350   *)
31351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31352 for as_dir in $LOCSYSPATH
31353 do
31354   IFS=$as_save_IFS
31355   test -z "$as_dir" && as_dir=.
31356   for ac_exec_ext in '' $ac_executable_extensions; do
31357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31358     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
31359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31360     break 2
31361   fi
31362 done
31363 done
31364 IFS=$as_save_IFS
31365
31366   ;;
31367 esac
31368 fi
31369 PERL=$ac_cv_path_PERL
31370 if test -n "$PERL"; then
31371   { echo "$as_me:$LINENO: result: $PERL" >&5
31372 echo "${ECHO_T}$PERL" >&6; }
31373 else
31374   { echo "$as_me:$LINENO: result: no" >&5
31375 echo "${ECHO_T}no" >&6; }
31376 fi
31377
31378
31379   test -n "$PERL" && break
31380 done
31381
31382
31383     # Make sure we have perl
31384 if test -z "$PERL"; then
31385 # Extract the first word of "perl", so it can be a program name with args.
31386 set dummy perl; ac_word=$2
31387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31389 if test "${ac_cv_prog_PERL+set}" = set; then
31390   echo $ECHO_N "(cached) $ECHO_C" >&6
31391 else
31392   if test -n "$PERL"; then
31393   ac_cv_prog_PERL="$PERL" # Let the user override the test.
31394 else
31395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31396 for as_dir in $PATH
31397 do
31398   IFS=$as_save_IFS
31399   test -z "$as_dir" && as_dir=.
31400   for ac_exec_ext in '' $ac_executable_extensions; do
31401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31402     ac_cv_prog_PERL="perl"
31403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31404     break 2
31405   fi
31406 done
31407 done
31408 IFS=$as_save_IFS
31409
31410 fi
31411 fi
31412 PERL=$ac_cv_prog_PERL
31413 if test -n "$PERL"; then
31414   { echo "$as_me:$LINENO: result: $PERL" >&5
31415 echo "${ECHO_T}$PERL" >&6; }
31416 else
31417   { echo "$as_me:$LINENO: result: no" >&5
31418 echo "${ECHO_T}no" >&6; }
31419 fi
31420
31421
31422 fi
31423
31424 # Check if version of Perl is sufficient
31425 ac_perl_version="5.6.0"
31426
31427 if test "x$PERL" != "x"; then
31428   { echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
31429 echo $ECHO_N "checking for perl version greater than or equal to $ac_perl_version... $ECHO_C" >&6; }
31430   # NB: It would be nice to log the error if there is one, but we cannot rely
31431   # on autoconf internals
31432   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
31433   if test $? -ne 0; then
31434     { echo "$as_me:$LINENO: result: no" >&5
31435 echo "${ECHO_T}no" >&6; };
31436
31437         { { echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
31438 echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
31439    { (exit 1); exit 1; }; }
31440
31441   else
31442     { echo "$as_me:$LINENO: result: ok" >&5
31443 echo "${ECHO_T}ok" >&6; };
31444
31445   fi
31446 else
31447   { echo "$as_me:$LINENO: WARNING: could not find perl" >&5
31448 echo "$as_me: WARNING: could not find perl" >&2;}
31449 fi
31450
31451
31452
31453
31454     for ac_prog in swig
31455 do
31456   # Extract the first word of "$ac_prog", so it can be a program name with args.
31457 set dummy $ac_prog; ac_word=$2
31458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31460 if test "${ac_cv_path_SWIG+set}" = set; then
31461   echo $ECHO_N "(cached) $ECHO_C" >&6
31462 else
31463   case $SWIG in
31464   [\\/]* | ?:[\\/]*)
31465   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
31466   ;;
31467   *)
31468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31469 for as_dir in $LOCSYSPATH
31470 do
31471   IFS=$as_save_IFS
31472   test -z "$as_dir" && as_dir=.
31473   for ac_exec_ext in '' $ac_executable_extensions; do
31474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31475     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
31476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31477     break 2
31478   fi
31479 done
31480 done
31481 IFS=$as_save_IFS
31482
31483   ;;
31484 esac
31485 fi
31486 SWIG=$ac_cv_path_SWIG
31487 if test -n "$SWIG"; then
31488   { echo "$as_me:$LINENO: result: $SWIG" >&5
31489 echo "${ECHO_T}$SWIG" >&6; }
31490 else
31491   { echo "$as_me:$LINENO: result: no" >&5
31492 echo "${ECHO_T}no" >&6; }
31493 fi
31494
31495
31496   test -n "$SWIG" && break
31497 done
31498
31499
31500
31501         # Extract the first word of "swig", so it can be a program name with args.
31502 set dummy swig; ac_word=$2
31503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31505 if test "${ac_cv_path_SWIG+set}" = set; then
31506   echo $ECHO_N "(cached) $ECHO_C" >&6
31507 else
31508   case $SWIG in
31509   [\\/]* | ?:[\\/]*)
31510   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
31511   ;;
31512   *)
31513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31514 for as_dir in $PATH
31515 do
31516   IFS=$as_save_IFS
31517   test -z "$as_dir" && as_dir=.
31518   for ac_exec_ext in '' $ac_executable_extensions; do
31519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31520     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
31521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31522     break 2
31523   fi
31524 done
31525 done
31526 IFS=$as_save_IFS
31527
31528   ;;
31529 esac
31530 fi
31531 SWIG=$ac_cv_path_SWIG
31532 if test -n "$SWIG"; then
31533   { echo "$as_me:$LINENO: result: $SWIG" >&5
31534 echo "${ECHO_T}$SWIG" >&6; }
31535 else
31536   { echo "$as_me:$LINENO: result: no" >&5
31537 echo "${ECHO_T}no" >&6; }
31538 fi
31539
31540
31541         if test -z "$SWIG" ; then
31542                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
31543         elif test -n "1.3.28" ; then
31544                 { echo "$as_me:$LINENO: checking for SWIG version" >&5
31545 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
31546                 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'`
31547                 { echo "$as_me:$LINENO: result: $swig_version" >&5
31548 echo "${ECHO_T}$swig_version" >&6; }
31549                 if test -n "$swig_version" ; then
31550                         # Calculate the required version number components
31551                         required=1.3.28
31552                         required_major=`echo $required | sed 's/[^0-9].*//'`
31553                         if test -z "$required_major" ; then
31554                                 required_major=0
31555                         fi
31556                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
31557                         required_minor=`echo $required | sed 's/[^0-9].*//'`
31558                         if test -z "$required_minor" ; then
31559                                 required_minor=0
31560                         fi
31561                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
31562                         required_patch=`echo $required | sed 's/[^0-9].*//'`
31563                         if test -z "$required_patch" ; then
31564                                 required_patch=0
31565                         fi
31566                         # Calculate the available version number components
31567                         available=$swig_version
31568                         available_major=`echo $available | sed 's/[^0-9].*//'`
31569                         if test -z "$available_major" ; then
31570                                 available_major=0
31571                         fi
31572                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
31573                         available_minor=`echo $available | sed 's/[^0-9].*//'`
31574                         if test -z "$available_minor" ; then
31575                                 available_minor=0
31576                         fi
31577                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
31578                         available_patch=`echo $available | sed 's/[^0-9].*//'`
31579                         if test -z "$available_patch" ; then
31580                                 available_patch=0
31581                         fi
31582                         if test $available_major -ne $required_major \
31583                                 -o $available_minor -ne $required_minor \
31584                                 -o $available_patch -lt $required_patch ; then
31585                                 SWIG='echo "Error: SWIG version >= 1.3.28 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
31586                         else
31587                                 SWIG_LIB=`$SWIG -swiglib`
31588                         fi
31589                 else
31590                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
31591                 fi
31592         fi
31593
31594
31595
31596
31597
31598 #
31599 # Compiler / system characteristics
31600 #
31601
31602 #
31603 # compiler
31604 #
31605 if test $ac_cv_c_compiler_gnu = yes; then
31606     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
31607 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
31608 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
31609   echo $ECHO_N "(cached) $ECHO_C" >&6
31610 else
31611     ac_pattern="Autoconf.*'x'"
31612   cat >conftest.$ac_ext <<_ACEOF
31613 /* confdefs.h.  */
31614 _ACEOF
31615 cat confdefs.h >>conftest.$ac_ext
31616 cat >>conftest.$ac_ext <<_ACEOF
31617 /* end confdefs.h.  */
31618 #include <sgtty.h>
31619 Autoconf TIOCGETP
31620 _ACEOF
31621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31622   $EGREP "$ac_pattern" >/dev/null 2>&1; then
31623   ac_cv_prog_gcc_traditional=yes
31624 else
31625   ac_cv_prog_gcc_traditional=no
31626 fi
31627 rm -f conftest*
31628
31629
31630   if test $ac_cv_prog_gcc_traditional = no; then
31631     cat >conftest.$ac_ext <<_ACEOF
31632 /* confdefs.h.  */
31633 _ACEOF
31634 cat confdefs.h >>conftest.$ac_ext
31635 cat >>conftest.$ac_ext <<_ACEOF
31636 /* end confdefs.h.  */
31637 #include <termio.h>
31638 Autoconf TCGETA
31639 _ACEOF
31640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31641   $EGREP "$ac_pattern" >/dev/null 2>&1; then
31642   ac_cv_prog_gcc_traditional=yes
31643 fi
31644 rm -f conftest*
31645
31646   fi
31647 fi
31648 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
31649 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
31650   if test $ac_cv_prog_gcc_traditional = yes; then
31651     CC="$CC -traditional"
31652   fi
31653 fi
31654
31655 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
31656 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
31657 if test "${ac_cv_c_const+set}" = set; then
31658   echo $ECHO_N "(cached) $ECHO_C" >&6
31659 else
31660   cat >conftest.$ac_ext <<_ACEOF
31661 /* confdefs.h.  */
31662 _ACEOF
31663 cat confdefs.h >>conftest.$ac_ext
31664 cat >>conftest.$ac_ext <<_ACEOF
31665 /* end confdefs.h.  */
31666
31667 int
31668 main ()
31669 {
31670 /* FIXME: Include the comments suggested by Paul. */
31671 #ifndef __cplusplus
31672   /* Ultrix mips cc rejects this.  */
31673   typedef int charset[2];
31674   const charset cs;
31675   /* SunOS 4.1.1 cc rejects this.  */
31676   char const *const *pcpcc;
31677   char **ppc;
31678   /* NEC SVR4.0.2 mips cc rejects this.  */
31679   struct point {int x, y;};
31680   static struct point const zero = {0,0};
31681   /* AIX XL C 1.02.0.0 rejects this.
31682      It does not let you subtract one const X* pointer from another in
31683      an arm of an if-expression whose if-part is not a constant
31684      expression */
31685   const char *g = "string";
31686   pcpcc = &g + (g ? g-g : 0);
31687   /* HPUX 7.0 cc rejects these. */
31688   ++pcpcc;
31689   ppc = (char**) pcpcc;
31690   pcpcc = (char const *const *) ppc;
31691   { /* SCO 3.2v4 cc rejects this.  */
31692     char *t;
31693     char const *s = 0 ? (char *) 0 : (char const *) 0;
31694
31695     *t++ = 0;
31696     if (s) return 0;
31697   }
31698   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
31699     int x[] = {25, 17};
31700     const int *foo = &x[0];
31701     ++foo;
31702   }
31703   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
31704     typedef const int *iptr;
31705     iptr p = 0;
31706     ++p;
31707   }
31708   { /* AIX XL C 1.02.0.0 rejects this saying
31709        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
31710     struct s { int j; const int *ap[3]; };
31711     struct s *b; b->j = 5;
31712   }
31713   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
31714     const int foo = 10;
31715     if (!foo) return 0;
31716   }
31717   return !cs[0] && !zero.x;
31718 #endif
31719
31720   ;
31721   return 0;
31722 }
31723 _ACEOF
31724 rm -f conftest.$ac_objext
31725 if { (ac_try="$ac_compile"
31726 case "(($ac_try" in
31727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31728   *) ac_try_echo=$ac_try;;
31729 esac
31730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31731   (eval "$ac_compile") 2>conftest.er1
31732   ac_status=$?
31733   grep -v '^ *+' conftest.er1 >conftest.err
31734   rm -f conftest.er1
31735   cat conftest.err >&5
31736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737   (exit $ac_status); } && {
31738          test -z "$ac_c_werror_flag" ||
31739          test ! -s conftest.err
31740        } && test -s conftest.$ac_objext; then
31741   ac_cv_c_const=yes
31742 else
31743   echo "$as_me: failed program was:" >&5
31744 sed 's/^/| /' conftest.$ac_ext >&5
31745
31746         ac_cv_c_const=no
31747 fi
31748
31749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31750 fi
31751 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
31752 echo "${ECHO_T}$ac_cv_c_const" >&6; }
31753 if test $ac_cv_c_const = no; then
31754
31755 cat >>confdefs.h <<\_ACEOF
31756 #define const
31757 _ACEOF
31758
31759 fi
31760
31761 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
31762 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
31763 if test "${ac_cv_c_bigendian+set}" = set; then
31764   echo $ECHO_N "(cached) $ECHO_C" >&6
31765 else
31766   # See if sys/param.h defines the BYTE_ORDER macro.
31767 cat >conftest.$ac_ext <<_ACEOF
31768 /* confdefs.h.  */
31769 _ACEOF
31770 cat confdefs.h >>conftest.$ac_ext
31771 cat >>conftest.$ac_ext <<_ACEOF
31772 /* end confdefs.h.  */
31773 #include <sys/types.h>
31774 #include <sys/param.h>
31775
31776 int
31777 main ()
31778 {
31779 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
31780         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
31781  bogus endian macros
31782 #endif
31783
31784   ;
31785   return 0;
31786 }
31787 _ACEOF
31788 rm -f conftest.$ac_objext
31789 if { (ac_try="$ac_compile"
31790 case "(($ac_try" in
31791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31792   *) ac_try_echo=$ac_try;;
31793 esac
31794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31795   (eval "$ac_compile") 2>conftest.er1
31796   ac_status=$?
31797   grep -v '^ *+' conftest.er1 >conftest.err
31798   rm -f conftest.er1
31799   cat conftest.err >&5
31800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801   (exit $ac_status); } && {
31802          test -z "$ac_c_werror_flag" ||
31803          test ! -s conftest.err
31804        } && test -s conftest.$ac_objext; then
31805   # It does; now see whether it defined to BIG_ENDIAN or not.
31806 cat >conftest.$ac_ext <<_ACEOF
31807 /* confdefs.h.  */
31808 _ACEOF
31809 cat confdefs.h >>conftest.$ac_ext
31810 cat >>conftest.$ac_ext <<_ACEOF
31811 /* end confdefs.h.  */
31812 #include <sys/types.h>
31813 #include <sys/param.h>
31814
31815 int
31816 main ()
31817 {
31818 #if BYTE_ORDER != BIG_ENDIAN
31819  not big endian
31820 #endif
31821
31822   ;
31823   return 0;
31824 }
31825 _ACEOF
31826 rm -f conftest.$ac_objext
31827 if { (ac_try="$ac_compile"
31828 case "(($ac_try" in
31829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31830   *) ac_try_echo=$ac_try;;
31831 esac
31832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31833   (eval "$ac_compile") 2>conftest.er1
31834   ac_status=$?
31835   grep -v '^ *+' conftest.er1 >conftest.err
31836   rm -f conftest.er1
31837   cat conftest.err >&5
31838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839   (exit $ac_status); } && {
31840          test -z "$ac_c_werror_flag" ||
31841          test ! -s conftest.err
31842        } && test -s conftest.$ac_objext; then
31843   ac_cv_c_bigendian=yes
31844 else
31845   echo "$as_me: failed program was:" >&5
31846 sed 's/^/| /' conftest.$ac_ext >&5
31847
31848         ac_cv_c_bigendian=no
31849 fi
31850
31851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31852 else
31853   echo "$as_me: failed program was:" >&5
31854 sed 's/^/| /' conftest.$ac_ext >&5
31855
31856         # It does not; compile a test program.
31857 if test "$cross_compiling" = yes; then
31858   # try to guess the endianness by grepping values into an object file
31859   ac_cv_c_bigendian=unknown
31860   cat >conftest.$ac_ext <<_ACEOF
31861 /* confdefs.h.  */
31862 _ACEOF
31863 cat confdefs.h >>conftest.$ac_ext
31864 cat >>conftest.$ac_ext <<_ACEOF
31865 /* end confdefs.h.  */
31866 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
31867 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
31868 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
31869 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
31870 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
31871 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
31872 int
31873 main ()
31874 {
31875  _ascii (); _ebcdic ();
31876   ;
31877   return 0;
31878 }
31879 _ACEOF
31880 rm -f conftest.$ac_objext
31881 if { (ac_try="$ac_compile"
31882 case "(($ac_try" in
31883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31884   *) ac_try_echo=$ac_try;;
31885 esac
31886 eval "echo \"\$as_me:$LINENO: $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   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   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
31898   ac_cv_c_bigendian=yes
31899 fi
31900 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
31901   if test "$ac_cv_c_bigendian" = unknown; then
31902     ac_cv_c_bigendian=no
31903   else
31904     # finding both strings is unlikely to happen, but who knows?
31905     ac_cv_c_bigendian=unknown
31906   fi
31907 fi
31908 else
31909   echo "$as_me: failed program was:" >&5
31910 sed 's/^/| /' conftest.$ac_ext >&5
31911
31912
31913 fi
31914
31915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31916 else
31917   cat >conftest.$ac_ext <<_ACEOF
31918 /* confdefs.h.  */
31919 _ACEOF
31920 cat confdefs.h >>conftest.$ac_ext
31921 cat >>conftest.$ac_ext <<_ACEOF
31922 /* end confdefs.h.  */
31923 $ac_includes_default
31924 int
31925 main ()
31926 {
31927
31928   /* Are we little or big endian?  From Harbison&Steele.  */
31929   union
31930   {
31931     long int l;
31932     char c[sizeof (long int)];
31933   } u;
31934   u.l = 1;
31935   return u.c[sizeof (long int) - 1] == 1;
31936
31937   ;
31938   return 0;
31939 }
31940 _ACEOF
31941 rm -f conftest$ac_exeext
31942 if { (ac_try="$ac_link"
31943 case "(($ac_try" in
31944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31945   *) ac_try_echo=$ac_try;;
31946 esac
31947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31948   (eval "$ac_link") 2>&5
31949   ac_status=$?
31950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31951   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31952   { (case "(($ac_try" in
31953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31954   *) ac_try_echo=$ac_try;;
31955 esac
31956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31957   (eval "$ac_try") 2>&5
31958   ac_status=$?
31959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960   (exit $ac_status); }; }; then
31961   ac_cv_c_bigendian=no
31962 else
31963   echo "$as_me: program exited with status $ac_status" >&5
31964 echo "$as_me: failed program was:" >&5
31965 sed 's/^/| /' conftest.$ac_ext >&5
31966
31967 ( exit $ac_status )
31968 ac_cv_c_bigendian=yes
31969 fi
31970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31971 fi
31972
31973
31974 fi
31975
31976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31977 fi
31978 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
31979 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
31980 case $ac_cv_c_bigendian in
31981   yes)
31982
31983 cat >>confdefs.h <<\_ACEOF
31984 #define WORDS_BIGENDIAN 1
31985 _ACEOF
31986  ;;
31987   no)
31988      ;;
31989   *)
31990     { { echo "$as_me:$LINENO: error: unknown endianness
31991 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
31992 echo "$as_me: error: unknown endianness
31993 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
31994    { (exit 1); exit 1; }; } ;;
31995 esac
31996
31997
31998 # GCC_COMPILER is needed in the gnulib Makefile to silence errors
31999  if test "x$GCC" = "xyes"; then
32000   GCC_COMPILER_TRUE=
32001   GCC_COMPILER_FALSE='#'
32002 else
32003   GCC_COMPILER_TRUE='#'
32004   GCC_COMPILER_FALSE=
32005 fi
32006
32007
32008 #
32009 # Warnings
32010 #
32011
32012
32013
32014
32015     { echo "$as_me:$LINENO: checking for gcc flag -Wparentheses" >&5
32016 echo $ECHO_N "checking for gcc flag -Wparentheses... $ECHO_C" >&6; }
32017     if test "x$GCC" = "xyes"; then
32018                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wparentheses[^[:alnum:]-]' 2>&1 > /dev/null
32019                 if test $? -eq 0; then
32020             found_warning=yes
32021             { echo "$as_me:$LINENO: result: yes" >&5
32022 echo "${ECHO_T}yes" >&6; }
32023         else
32024             found_warning=no
32025             { echo "$as_me:$LINENO: result: no" >&5
32026 echo "${ECHO_T}no" >&6; }
32027         fi
32028     else
32029         found_warning=no
32030         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32031 echo "${ECHO_T}no (not using gcc)" >&6; }
32032     fi
32033
32034     if test x"$found_warning" = x"yes"; then
32035         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
32036
32037
32038     else
32039         :
32040     fi
32041
32042
32043
32044
32045
32046
32047     { echo "$as_me:$LINENO: checking for gcc flag -Wdeclaration-after-statement" >&5
32048 echo $ECHO_N "checking for gcc flag -Wdeclaration-after-statement... $ECHO_C" >&6; }
32049     if test "x$GCC" = "xyes"; then
32050                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wdeclaration-after-statement[^[:alnum:]-]' 2>&1 > /dev/null
32051                 if test $? -eq 0; then
32052             found_warning=yes
32053             { echo "$as_me:$LINENO: result: yes" >&5
32054 echo "${ECHO_T}yes" >&6; }
32055         else
32056             found_warning=no
32057             { echo "$as_me:$LINENO: result: no" >&5
32058 echo "${ECHO_T}no" >&6; }
32059         fi
32060     else
32061         found_warning=no
32062         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32063 echo "${ECHO_T}no (not using gcc)" >&6; }
32064     fi
32065
32066     if test x"$found_warning" = x"yes"; then
32067         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
32068
32069
32070     else
32071         :
32072     fi
32073
32074
32075
32076
32077
32078
32079     { echo "$as_me:$LINENO: checking for gcc flag -Wmissing-prototypes" >&5
32080 echo $ECHO_N "checking for gcc flag -Wmissing-prototypes... $ECHO_C" >&6; }
32081     if test "x$GCC" = "xyes"; then
32082                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wmissing-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
32083                 if test $? -eq 0; then
32084             found_warning=yes
32085             { echo "$as_me:$LINENO: result: yes" >&5
32086 echo "${ECHO_T}yes" >&6; }
32087         else
32088             found_warning=no
32089             { echo "$as_me:$LINENO: result: no" >&5
32090 echo "${ECHO_T}no" >&6; }
32091         fi
32092     else
32093         found_warning=no
32094         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32095 echo "${ECHO_T}no (not using gcc)" >&6; }
32096     fi
32097
32098     if test x"$found_warning" = x"yes"; then
32099         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
32100
32101
32102     else
32103         :
32104     fi
32105
32106
32107
32108
32109
32110
32111     { echo "$as_me:$LINENO: checking for gcc flag -Wstrict-prototypes" >&5
32112 echo $ECHO_N "checking for gcc flag -Wstrict-prototypes... $ECHO_C" >&6; }
32113     if test "x$GCC" = "xyes"; then
32114                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wstrict-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
32115                 if test $? -eq 0; then
32116             found_warning=yes
32117             { echo "$as_me:$LINENO: result: yes" >&5
32118 echo "${ECHO_T}yes" >&6; }
32119         else
32120             found_warning=no
32121             { echo "$as_me:$LINENO: result: no" >&5
32122 echo "${ECHO_T}no" >&6; }
32123         fi
32124     else
32125         found_warning=no
32126         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32127 echo "${ECHO_T}no (not using gcc)" >&6; }
32128     fi
32129
32130     if test x"$found_warning" = x"yes"; then
32131         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
32132
32133
32134     else
32135         :
32136     fi
32137
32138
32139
32140
32141
32142
32143     { echo "$as_me:$LINENO: checking for gcc flag -Wmissing-declarations" >&5
32144 echo $ECHO_N "checking for gcc flag -Wmissing-declarations... $ECHO_C" >&6; }
32145     if test "x$GCC" = "xyes"; then
32146                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wmissing-declarations[^[:alnum:]-]' 2>&1 > /dev/null
32147                 if test $? -eq 0; then
32148             found_warning=yes
32149             { echo "$as_me:$LINENO: result: yes" >&5
32150 echo "${ECHO_T}yes" >&6; }
32151         else
32152             found_warning=no
32153             { echo "$as_me:$LINENO: result: no" >&5
32154 echo "${ECHO_T}no" >&6; }
32155         fi
32156     else
32157         found_warning=no
32158         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32159 echo "${ECHO_T}no (not using gcc)" >&6; }
32160     fi
32161
32162     if test x"$found_warning" = x"yes"; then
32163         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
32164
32165
32166     else
32167         :
32168     fi
32169
32170
32171
32172
32173
32174
32175     { echo "$as_me:$LINENO: checking for gcc flag -Wformat" >&5
32176 echo $ECHO_N "checking for gcc flag -Wformat... $ECHO_C" >&6; }
32177     if test "x$GCC" = "xyes"; then
32178                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wformat[^[:alnum:]-]' 2>&1 > /dev/null
32179                 if test $? -eq 0; then
32180             found_warning=yes
32181             { echo "$as_me:$LINENO: result: yes" >&5
32182 echo "${ECHO_T}yes" >&6; }
32183         else
32184             found_warning=no
32185             { echo "$as_me:$LINENO: result: no" >&5
32186 echo "${ECHO_T}no" >&6; }
32187         fi
32188     else
32189         found_warning=no
32190         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32191 echo "${ECHO_T}no (not using gcc)" >&6; }
32192     fi
32193
32194     if test x"$found_warning" = x"yes"; then
32195         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
32196
32197
32198     else
32199         :
32200     fi
32201
32202
32203
32204
32205
32206
32207     { echo "$as_me:$LINENO: checking for gcc flag -Wsign-compare" >&5
32208 echo $ECHO_N "checking for gcc flag -Wsign-compare... $ECHO_C" >&6; }
32209     if test "x$GCC" = "xyes"; then
32210                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wsign-compare[^[:alnum:]-]' 2>&1 > /dev/null
32211                 if test $? -eq 0; then
32212             found_warning=yes
32213             { echo "$as_me:$LINENO: result: yes" >&5
32214 echo "${ECHO_T}yes" >&6; }
32215         else
32216             found_warning=no
32217             { echo "$as_me:$LINENO: result: no" >&5
32218 echo "${ECHO_T}no" >&6; }
32219         fi
32220     else
32221         found_warning=no
32222         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32223 echo "${ECHO_T}no (not using gcc)" >&6; }
32224     fi
32225
32226     if test x"$found_warning" = x"yes"; then
32227         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
32228
32229
32230     else
32231         :
32232     fi
32233
32234
32235
32236
32237
32238
32239     { echo "$as_me:$LINENO: checking for gcc flag -Wfloat-equal" >&5
32240 echo $ECHO_N "checking for gcc flag -Wfloat-equal... $ECHO_C" >&6; }
32241     if test "x$GCC" = "xyes"; then
32242                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wfloat-equal[^[:alnum:]-]' 2>&1 > /dev/null
32243                 if test $? -eq 0; then
32244             found_warning=yes
32245             { echo "$as_me:$LINENO: result: yes" >&5
32246 echo "${ECHO_T}yes" >&6; }
32247         else
32248             found_warning=no
32249             { echo "$as_me:$LINENO: result: no" >&5
32250 echo "${ECHO_T}no" >&6; }
32251         fi
32252     else
32253         found_warning=no
32254         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32255 echo "${ECHO_T}no (not using gcc)" >&6; }
32256     fi
32257
32258     if test x"$found_warning" = x"yes"; then
32259         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
32260
32261
32262     else
32263         :
32264     fi
32265
32266
32267
32268
32269
32270
32271     { echo "$as_me:$LINENO: checking for gcc flag -Wold-style-definition" >&5
32272 echo $ECHO_N "checking for gcc flag -Wold-style-definition... $ECHO_C" >&6; }
32273     if test "x$GCC" = "xyes"; then
32274                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wold-style-definition[^[:alnum:]-]' 2>&1 > /dev/null
32275                 if test $? -eq 0; then
32276             found_warning=yes
32277             { echo "$as_me:$LINENO: result: yes" >&5
32278 echo "${ECHO_T}yes" >&6; }
32279         else
32280             found_warning=no
32281             { echo "$as_me:$LINENO: result: no" >&5
32282 echo "${ECHO_T}no" >&6; }
32283         fi
32284     else
32285         found_warning=no
32286         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32287 echo "${ECHO_T}no (not using gcc)" >&6; }
32288     fi
32289
32290     if test x"$found_warning" = x"yes"; then
32291         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
32292
32293
32294     else
32295         :
32296     fi
32297
32298
32299
32300     # test for -W'warning', then add the 'no-' version.
32301
32302
32303
32304     { echo "$as_me:$LINENO: checking for gcc flag -Wstrict-aliasing" >&5
32305 echo $ECHO_N "checking for gcc flag -Wstrict-aliasing... $ECHO_C" >&6; }
32306     if test "x$GCC" = "xyes"; then
32307                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
32308                 if test $? -eq 0; then
32309             found_warning=yes
32310             { echo "$as_me:$LINENO: result: yes" >&5
32311 echo "${ECHO_T}yes" >&6; }
32312         else
32313             found_warning=no
32314             { echo "$as_me:$LINENO: result: no" >&5
32315 echo "${ECHO_T}no" >&6; }
32316         fi
32317     else
32318         found_warning=no
32319         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32320 echo "${ECHO_T}no (not using gcc)" >&6; }
32321     fi
32322
32323     if test x"$found_warning" = x"yes"; then
32324         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
32325
32326
32327     else
32328         :
32329     fi
32330
32331
32332
32333     # test for -W'warning', then add the 'no-' version.
32334
32335
32336
32337     { echo "$as_me:$LINENO: checking for gcc flag -Wunknown-pragmas" >&5
32338 echo $ECHO_N "checking for gcc flag -Wunknown-pragmas... $ECHO_C" >&6; }
32339     if test "x$GCC" = "xyes"; then
32340                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wunknown-pragmas[^[:alnum:]-]' 2>&1 > /dev/null
32341                 if test $? -eq 0; then
32342             found_warning=yes
32343             { echo "$as_me:$LINENO: result: yes" >&5
32344 echo "${ECHO_T}yes" >&6; }
32345         else
32346             found_warning=no
32347             { echo "$as_me:$LINENO: result: no" >&5
32348 echo "${ECHO_T}no" >&6; }
32349         fi
32350     else
32351         found_warning=no
32352         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32353 echo "${ECHO_T}no (not using gcc)" >&6; }
32354     fi
32355
32356     if test x"$found_warning" = x"yes"; then
32357         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
32358
32359
32360     else
32361         :
32362     fi
32363
32364
32365
32366
32367 #
32368 # Libtool
32369 #
32370 # Check whether --enable-shared was given.
32371 if test "${enable_shared+set}" = set; then
32372   enableval=$enable_shared; p=${PACKAGE-default}
32373     case $enableval in
32374     yes) enable_shared=yes ;;
32375     no) enable_shared=no ;;
32376     *)
32377       enable_shared=no
32378       # Look at the argument we got.  We use all the common list separators.
32379       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32380       for pkg in $enableval; do
32381         IFS="$lt_save_ifs"
32382         if test "X$pkg" = "X$p"; then
32383           enable_shared=yes
32384         fi
32385       done
32386       IFS="$lt_save_ifs"
32387       ;;
32388     esac
32389 else
32390   enable_shared=yes
32391 fi
32392
32393
32394 # Check whether --enable-static was given.
32395 if test "${enable_static+set}" = set; then
32396   enableval=$enable_static; p=${PACKAGE-default}
32397     case $enableval in
32398     yes) enable_static=yes ;;
32399     no) enable_static=no ;;
32400     *)
32401      enable_static=no
32402       # Look at the argument we got.  We use all the common list separators.
32403       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32404       for pkg in $enableval; do
32405         IFS="$lt_save_ifs"
32406         if test "X$pkg" = "X$p"; then
32407           enable_static=yes
32408         fi
32409       done
32410       IFS="$lt_save_ifs"
32411       ;;
32412     esac
32413 else
32414   enable_static=yes
32415 fi
32416
32417
32418 # Check whether --enable-fast-install was given.
32419 if test "${enable_fast_install+set}" = set; then
32420   enableval=$enable_fast_install; p=${PACKAGE-default}
32421     case $enableval in
32422     yes) enable_fast_install=yes ;;
32423     no) enable_fast_install=no ;;
32424     *)
32425       enable_fast_install=no
32426       # Look at the argument we got.  We use all the common list separators.
32427       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32428       for pkg in $enableval; do
32429         IFS="$lt_save_ifs"
32430         if test "X$pkg" = "X$p"; then
32431           enable_fast_install=yes
32432         fi
32433       done
32434       IFS="$lt_save_ifs"
32435       ;;
32436     esac
32437 else
32438   enable_fast_install=yes
32439 fi
32440
32441
32442 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
32443 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
32444 if test "${lt_cv_path_SED+set}" = set; then
32445   echo $ECHO_N "(cached) $ECHO_C" >&6
32446 else
32447   # Loop through the user's path and test for sed and gsed.
32448 # Then use that list of sed's as ones to test for truncation.
32449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32450 for as_dir in $PATH
32451 do
32452   IFS=$as_save_IFS
32453   test -z "$as_dir" && as_dir=.
32454   for lt_ac_prog in sed gsed; do
32455     for ac_exec_ext in '' $ac_executable_extensions; do
32456       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
32457         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
32458       fi
32459     done
32460   done
32461 done
32462 lt_ac_max=0
32463 lt_ac_count=0
32464 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
32465 # along with /bin/sed that truncates output.
32466 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
32467   test ! -f $lt_ac_sed && continue
32468   cat /dev/null > conftest.in
32469   lt_ac_count=0
32470   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
32471   # Check for GNU sed and select it if it is found.
32472   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
32473     lt_cv_path_SED=$lt_ac_sed
32474     break
32475   fi
32476   while true; do
32477     cat conftest.in conftest.in >conftest.tmp
32478     mv conftest.tmp conftest.in
32479     cp conftest.in conftest.nl
32480     echo >>conftest.nl
32481     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
32482     cmp -s conftest.out conftest.nl || break
32483     # 10000 chars as input seems more than enough
32484     test $lt_ac_count -gt 10 && break
32485     lt_ac_count=`expr $lt_ac_count + 1`
32486     if test $lt_ac_count -gt $lt_ac_max; then
32487       lt_ac_max=$lt_ac_count
32488       lt_cv_path_SED=$lt_ac_sed
32489     fi
32490   done
32491 done
32492
32493 fi
32494
32495 SED=$lt_cv_path_SED
32496 { echo "$as_me:$LINENO: result: $SED" >&5
32497 echo "${ECHO_T}$SED" >&6; }
32498
32499
32500 # Check whether --with-gnu-ld was given.
32501 if test "${with_gnu_ld+set}" = set; then
32502   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
32503 else
32504   with_gnu_ld=no
32505 fi
32506
32507 ac_prog=ld
32508 if test "$GCC" = yes; then
32509   # Check if gcc -print-prog-name=ld gives a path.
32510   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
32511 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
32512   case $host in
32513   *-*-mingw*)
32514     # gcc leaves a trailing carriage return which upsets mingw
32515     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
32516   *)
32517     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
32518   esac
32519   case $ac_prog in
32520     # Accept absolute paths.
32521     [\\/]* | ?:[\\/]*)
32522       re_direlt='/[^/][^/]*/\.\./'
32523       # Canonicalize the pathname of ld
32524       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
32525       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
32526         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
32527       done
32528       test -z "$LD" && LD="$ac_prog"
32529       ;;
32530   "")
32531     # If it fails, then pretend we aren't using GCC.
32532     ac_prog=ld
32533     ;;
32534   *)
32535     # If it is relative, then search for the first ld in PATH.
32536     with_gnu_ld=unknown
32537     ;;
32538   esac
32539 elif test "$with_gnu_ld" = yes; then
32540   { echo "$as_me:$LINENO: checking for GNU ld" >&5
32541 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
32542 else
32543   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
32544 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
32545 fi
32546 if test "${lt_cv_path_LD+set}" = set; then
32547   echo $ECHO_N "(cached) $ECHO_C" >&6
32548 else
32549   if test -z "$LD"; then
32550   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32551   for ac_dir in $PATH; do
32552     IFS="$lt_save_ifs"
32553     test -z "$ac_dir" && ac_dir=.
32554     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
32555       lt_cv_path_LD="$ac_dir/$ac_prog"
32556       # Check to see if the program is GNU ld.  I'd rather use --version,
32557       # but apparently some variants of GNU ld only accept -v.
32558       # Break only if it was the GNU/non-GNU ld that we prefer.
32559       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
32560       *GNU* | *'with BFD'*)
32561         test "$with_gnu_ld" != no && break
32562         ;;
32563       *)
32564         test "$with_gnu_ld" != yes && break
32565         ;;
32566       esac
32567     fi
32568   done
32569   IFS="$lt_save_ifs"
32570 else
32571   lt_cv_path_LD="$LD" # Let the user override the test with a path.
32572 fi
32573 fi
32574
32575 LD="$lt_cv_path_LD"
32576 if test -n "$LD"; then
32577   { echo "$as_me:$LINENO: result: $LD" >&5
32578 echo "${ECHO_T}$LD" >&6; }
32579 else
32580   { echo "$as_me:$LINENO: result: no" >&5
32581 echo "${ECHO_T}no" >&6; }
32582 fi
32583 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
32584 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
32585    { (exit 1); exit 1; }; }
32586 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
32587 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
32588 if test "${lt_cv_prog_gnu_ld+set}" = set; then
32589   echo $ECHO_N "(cached) $ECHO_C" >&6
32590 else
32591   # I'd rather use --version here, but apparently some GNU lds only accept -v.
32592 case `$LD -v 2>&1 </dev/null` in
32593 *GNU* | *'with BFD'*)
32594   lt_cv_prog_gnu_ld=yes
32595   ;;
32596 *)
32597   lt_cv_prog_gnu_ld=no
32598   ;;
32599 esac
32600 fi
32601 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
32602 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
32603 with_gnu_ld=$lt_cv_prog_gnu_ld
32604
32605
32606 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
32607 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
32608 if test "${lt_cv_ld_reload_flag+set}" = set; then
32609   echo $ECHO_N "(cached) $ECHO_C" >&6
32610 else
32611   lt_cv_ld_reload_flag='-r'
32612 fi
32613 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
32614 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
32615 reload_flag=$lt_cv_ld_reload_flag
32616 case $reload_flag in
32617 "" | " "*) ;;
32618 *) reload_flag=" $reload_flag" ;;
32619 esac
32620 reload_cmds='$LD$reload_flag -o $output$reload_objs'
32621 case $host_os in
32622   darwin*)
32623     if test "$GCC" = yes; then
32624       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
32625     else
32626       reload_cmds='$LD$reload_flag -o $output$reload_objs'
32627     fi
32628     ;;
32629 esac
32630
32631 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
32632 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
32633 if test "${lt_cv_path_NM+set}" = set; then
32634   echo $ECHO_N "(cached) $ECHO_C" >&6
32635 else
32636   if test -n "$NM"; then
32637   # Let the user override the test.
32638   lt_cv_path_NM="$NM"
32639 else
32640   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32641   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
32642     IFS="$lt_save_ifs"
32643     test -z "$ac_dir" && ac_dir=.
32644     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
32645     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
32646       # Check to see if the nm accepts a BSD-compat flag.
32647       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
32648       #   nm: unknown option "B" ignored
32649       # Tru64's nm complains that /dev/null is an invalid object file
32650       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
32651       */dev/null* | *'Invalid file or object type'*)
32652         lt_cv_path_NM="$tmp_nm -B"
32653         break
32654         ;;
32655       *)
32656         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
32657         */dev/null*)
32658           lt_cv_path_NM="$tmp_nm -p"
32659           break
32660           ;;
32661         *)
32662           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
32663           continue # so that we can try to find one that supports BSD flags
32664           ;;
32665         esac
32666       esac
32667     fi
32668   done
32669   IFS="$lt_save_ifs"
32670   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
32671 fi
32672 fi
32673 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
32674 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
32675 NM="$lt_cv_path_NM"
32676
32677 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
32678 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
32679 LN_S=$as_ln_s
32680 if test "$LN_S" = "ln -s"; then
32681   { echo "$as_me:$LINENO: result: yes" >&5
32682 echo "${ECHO_T}yes" >&6; }
32683 else
32684   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
32685 echo "${ECHO_T}no, using $LN_S" >&6; }
32686 fi
32687
32688 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
32689 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
32690 if test "${lt_cv_deplibs_check_method+set}" = set; then
32691   echo $ECHO_N "(cached) $ECHO_C" >&6
32692 else
32693   lt_cv_file_magic_cmd='$MAGIC_CMD'
32694 lt_cv_file_magic_test_file=
32695 lt_cv_deplibs_check_method='unknown'
32696 # Need to set the preceding variable on all platforms that support
32697 # interlibrary dependencies.
32698 # 'none' -- dependencies not supported.
32699 # `unknown' -- same as none, but documents that we really don't know.
32700 # 'pass_all' -- all dependencies passed with no checks.
32701 # 'test_compile' -- check by making test program.
32702 # 'file_magic [[regex]]' -- check by looking for files in library path
32703 # which responds to the $file_magic_cmd with a given extended regex.
32704 # If you have `file' or equivalent on your system and you're not sure
32705 # whether `pass_all' will *always* work, you probably want this one.
32706
32707 case $host_os in
32708 aix4* | aix5*)
32709   lt_cv_deplibs_check_method=pass_all
32710   ;;
32711
32712 beos*)
32713   lt_cv_deplibs_check_method=pass_all
32714   ;;
32715
32716 bsdi[45]*)
32717   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
32718   lt_cv_file_magic_cmd='/usr/bin/file -L'
32719   lt_cv_file_magic_test_file=/shlib/libc.so
32720   ;;
32721
32722 cygwin*)
32723   # func_win32_libid is a shell function defined in ltmain.sh
32724   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
32725   lt_cv_file_magic_cmd='func_win32_libid'
32726   ;;
32727
32728 mingw* | pw32*)
32729   # Base MSYS/MinGW do not provide the 'file' command needed by
32730   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
32731   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
32732   lt_cv_file_magic_cmd='$OBJDUMP -f'
32733   ;;
32734
32735 darwin* | rhapsody*)
32736   lt_cv_deplibs_check_method=pass_all
32737   ;;
32738
32739 freebsd* | kfreebsd*-gnu | dragonfly*)
32740   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
32741     case $host_cpu in
32742     i*86 )
32743       # Not sure whether the presence of OpenBSD here was a mistake.
32744       # Let's accept both of them until this is cleared up.
32745       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
32746       lt_cv_file_magic_cmd=/usr/bin/file
32747       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
32748       ;;
32749     esac
32750   else
32751     lt_cv_deplibs_check_method=pass_all
32752   fi
32753   ;;
32754
32755 gnu*)
32756   lt_cv_deplibs_check_method=pass_all
32757   ;;
32758
32759 hpux10.20* | hpux11*)
32760   lt_cv_file_magic_cmd=/usr/bin/file
32761   case $host_cpu in
32762   ia64*)
32763     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
32764     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
32765     ;;
32766   hppa*64*)
32767     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]'
32768     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
32769     ;;
32770   *)
32771     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
32772     lt_cv_file_magic_test_file=/usr/lib/libc.sl
32773     ;;
32774   esac
32775   ;;
32776
32777 irix5* | irix6* | nonstopux*)
32778   case $LD in
32779   *-32|*"-32 ") libmagic=32-bit;;
32780   *-n32|*"-n32 ") libmagic=N32;;
32781   *-64|*"-64 ") libmagic=64-bit;;
32782   *) libmagic=never-match;;
32783   esac
32784   lt_cv_deplibs_check_method=pass_all
32785   ;;
32786
32787 # This must be Linux ELF.
32788 linux*)
32789   lt_cv_deplibs_check_method=pass_all
32790   ;;
32791
32792 netbsd*)
32793   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
32794     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
32795   else
32796     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
32797   fi
32798   ;;
32799
32800 newos6*)
32801   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
32802   lt_cv_file_magic_cmd=/usr/bin/file
32803   lt_cv_file_magic_test_file=/usr/lib/libnls.so
32804   ;;
32805
32806 nto-qnx*)
32807   lt_cv_deplibs_check_method=unknown
32808   ;;
32809
32810 openbsd*)
32811   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
32812     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
32813   else
32814     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
32815   fi
32816   ;;
32817
32818 osf3* | osf4* | osf5*)
32819   lt_cv_deplibs_check_method=pass_all
32820   ;;
32821
32822 sco3.2v5*)
32823   lt_cv_deplibs_check_method=pass_all
32824   ;;
32825
32826 solaris*)
32827   lt_cv_deplibs_check_method=pass_all
32828   ;;
32829
32830 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
32831   case $host_vendor in
32832   motorola)
32833     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]'
32834     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
32835     ;;
32836   ncr)
32837     lt_cv_deplibs_check_method=pass_all
32838     ;;
32839   sequent)
32840     lt_cv_file_magic_cmd='/bin/file'
32841     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
32842     ;;
32843   sni)
32844     lt_cv_file_magic_cmd='/bin/file'
32845     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
32846     lt_cv_file_magic_test_file=/lib/libc.so
32847     ;;
32848   siemens)
32849     lt_cv_deplibs_check_method=pass_all
32850     ;;
32851   esac
32852   ;;
32853
32854 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
32855   lt_cv_deplibs_check_method=pass_all
32856   ;;
32857 esac
32858
32859 fi
32860 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
32861 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
32862 file_magic_cmd=$lt_cv_file_magic_cmd
32863 deplibs_check_method=$lt_cv_deplibs_check_method
32864 test -z "$deplibs_check_method" && deplibs_check_method=unknown
32865
32866
32867 # If no C compiler was specified, use CC.
32868 LTCC=${LTCC-"$CC"}
32869
32870 # Allow CC to be a program name with arguments.
32871 compiler=$CC
32872
32873 # Check whether --enable-libtool-lock was given.
32874 if test "${enable_libtool_lock+set}" = set; then
32875   enableval=$enable_libtool_lock;
32876 fi
32877
32878 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
32879
32880 # Some flags need to be propagated to the compiler or linker for good
32881 # libtool support.
32882 case $host in
32883 ia64-*-hpux*)
32884   # Find out which ABI we are using.
32885   echo 'int i;' > conftest.$ac_ext
32886   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32887   (eval $ac_compile) 2>&5
32888   ac_status=$?
32889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32890   (exit $ac_status); }; then
32891     case `/usr/bin/file conftest.$ac_objext` in
32892     *ELF-32*)
32893       HPUX_IA64_MODE="32"
32894       ;;
32895     *ELF-64*)
32896       HPUX_IA64_MODE="64"
32897       ;;
32898     esac
32899   fi
32900   rm -rf conftest*
32901   ;;
32902 *-*-irix6*)
32903   # Find out which ABI we are using.
32904   echo '#line 32904 "configure"' > conftest.$ac_ext
32905   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32906   (eval $ac_compile) 2>&5
32907   ac_status=$?
32908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909   (exit $ac_status); }; then
32910    if test "$lt_cv_prog_gnu_ld" = yes; then
32911     case `/usr/bin/file conftest.$ac_objext` in
32912     *32-bit*)
32913       LD="${LD-ld} -melf32bsmip"
32914       ;;
32915     *N32*)
32916       LD="${LD-ld} -melf32bmipn32"
32917       ;;
32918     *64-bit*)
32919       LD="${LD-ld} -melf64bmip"
32920       ;;
32921     esac
32922    else
32923     case `/usr/bin/file conftest.$ac_objext` in
32924     *32-bit*)
32925       LD="${LD-ld} -32"
32926       ;;
32927     *N32*)
32928       LD="${LD-ld} -n32"
32929       ;;
32930     *64-bit*)
32931       LD="${LD-ld} -64"
32932       ;;
32933     esac
32934    fi
32935   fi
32936   rm -rf conftest*
32937   ;;
32938
32939 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
32940   # Find out which ABI we are using.
32941   echo 'int i;' > conftest.$ac_ext
32942   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32943   (eval $ac_compile) 2>&5
32944   ac_status=$?
32945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946   (exit $ac_status); }; then
32947     case `/usr/bin/file conftest.o` in
32948     *32-bit*)
32949       case $host in
32950         x86_64-*linux*)
32951           LD="${LD-ld} -m elf_i386"
32952           ;;
32953         ppc64-*linux*|powerpc64-*linux*)
32954           LD="${LD-ld} -m elf32ppclinux"
32955           ;;
32956         s390x-*linux*)
32957           LD="${LD-ld} -m elf_s390"
32958           ;;
32959         sparc64-*linux*)
32960           LD="${LD-ld} -m elf32_sparc"
32961           ;;
32962       esac
32963       ;;
32964     *64-bit*)
32965       case $host in
32966         x86_64-*linux*)
32967           LD="${LD-ld} -m elf_x86_64"
32968           ;;
32969         ppc*-*linux*|powerpc*-*linux*)
32970           LD="${LD-ld} -m elf64ppc"
32971           ;;
32972         s390*-*linux*)
32973           LD="${LD-ld} -m elf64_s390"
32974           ;;
32975         sparc*-*linux*)
32976           LD="${LD-ld} -m elf64_sparc"
32977           ;;
32978       esac
32979       ;;
32980     esac
32981   fi
32982   rm -rf conftest*
32983   ;;
32984
32985 *-*-sco3.2v5*)
32986   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
32987   SAVE_CFLAGS="$CFLAGS"
32988   CFLAGS="$CFLAGS -belf"
32989   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
32990 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
32991 if test "${lt_cv_cc_needs_belf+set}" = set; then
32992   echo $ECHO_N "(cached) $ECHO_C" >&6
32993 else
32994   ac_ext=c
32995 ac_cpp='$CPP $CPPFLAGS'
32996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32999
33000      cat >conftest.$ac_ext <<_ACEOF
33001 /* confdefs.h.  */
33002 _ACEOF
33003 cat confdefs.h >>conftest.$ac_ext
33004 cat >>conftest.$ac_ext <<_ACEOF
33005 /* end confdefs.h.  */
33006
33007 int
33008 main ()
33009 {
33010
33011   ;
33012   return 0;
33013 }
33014 _ACEOF
33015 rm -f conftest.$ac_objext conftest$ac_exeext
33016 if { (ac_try="$ac_link"
33017 case "(($ac_try" in
33018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33019   *) ac_try_echo=$ac_try;;
33020 esac
33021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33022   (eval "$ac_link") 2>conftest.er1
33023   ac_status=$?
33024   grep -v '^ *+' conftest.er1 >conftest.err
33025   rm -f conftest.er1
33026   cat conftest.err >&5
33027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028   (exit $ac_status); } && {
33029          test -z "$ac_c_werror_flag" ||
33030          test ! -s conftest.err
33031        } && test -s conftest$ac_exeext &&
33032        $as_test_x conftest$ac_exeext; then
33033   lt_cv_cc_needs_belf=yes
33034 else
33035   echo "$as_me: failed program was:" >&5
33036 sed 's/^/| /' conftest.$ac_ext >&5
33037
33038         lt_cv_cc_needs_belf=no
33039 fi
33040
33041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33042       conftest$ac_exeext conftest.$ac_ext
33043      ac_ext=c
33044 ac_cpp='$CPP $CPPFLAGS'
33045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33048
33049 fi
33050 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
33051 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
33052   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
33053     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
33054     CFLAGS="$SAVE_CFLAGS"
33055   fi
33056   ;;
33057
33058 esac
33059
33060 need_locks="$enable_libtool_lock"
33061
33062
33063
33064 for ac_header in dlfcn.h
33065 do
33066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33068   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33071   echo $ECHO_N "(cached) $ECHO_C" >&6
33072 fi
33073 ac_res=`eval echo '${'$as_ac_Header'}'`
33074                { echo "$as_me:$LINENO: result: $ac_res" >&5
33075 echo "${ECHO_T}$ac_res" >&6; }
33076 else
33077   # Is the header compilable?
33078 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33080 cat >conftest.$ac_ext <<_ACEOF
33081 /* confdefs.h.  */
33082 _ACEOF
33083 cat confdefs.h >>conftest.$ac_ext
33084 cat >>conftest.$ac_ext <<_ACEOF
33085 /* end confdefs.h.  */
33086 $ac_includes_default
33087 #include <$ac_header>
33088 _ACEOF
33089 rm -f conftest.$ac_objext
33090 if { (ac_try="$ac_compile"
33091 case "(($ac_try" in
33092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33093   *) ac_try_echo=$ac_try;;
33094 esac
33095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33096   (eval "$ac_compile") 2>conftest.er1
33097   ac_status=$?
33098   grep -v '^ *+' conftest.er1 >conftest.err
33099   rm -f conftest.er1
33100   cat conftest.err >&5
33101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33102   (exit $ac_status); } && {
33103          test -z "$ac_c_werror_flag" ||
33104          test ! -s conftest.err
33105        } && test -s conftest.$ac_objext; then
33106   ac_header_compiler=yes
33107 else
33108   echo "$as_me: failed program was:" >&5
33109 sed 's/^/| /' conftest.$ac_ext >&5
33110
33111         ac_header_compiler=no
33112 fi
33113
33114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33115 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33116 echo "${ECHO_T}$ac_header_compiler" >&6; }
33117
33118 # Is the header present?
33119 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33121 cat >conftest.$ac_ext <<_ACEOF
33122 /* confdefs.h.  */
33123 _ACEOF
33124 cat confdefs.h >>conftest.$ac_ext
33125 cat >>conftest.$ac_ext <<_ACEOF
33126 /* end confdefs.h.  */
33127 #include <$ac_header>
33128 _ACEOF
33129 if { (ac_try="$ac_cpp conftest.$ac_ext"
33130 case "(($ac_try" in
33131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33132   *) ac_try_echo=$ac_try;;
33133 esac
33134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33135   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33136   ac_status=$?
33137   grep -v '^ *+' conftest.er1 >conftest.err
33138   rm -f conftest.er1
33139   cat conftest.err >&5
33140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141   (exit $ac_status); } >/dev/null && {
33142          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33143          test ! -s conftest.err
33144        }; then
33145   ac_header_preproc=yes
33146 else
33147   echo "$as_me: failed program was:" >&5
33148 sed 's/^/| /' conftest.$ac_ext >&5
33149
33150   ac_header_preproc=no
33151 fi
33152
33153 rm -f conftest.err conftest.$ac_ext
33154 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33155 echo "${ECHO_T}$ac_header_preproc" >&6; }
33156
33157 # So?  What about this header?
33158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33159   yes:no: )
33160     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33163 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33164     ac_header_preproc=yes
33165     ;;
33166   no:yes:* )
33167     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33168 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33169     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33170 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33171     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33172 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33173     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33174 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33175     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33177     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33178 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33179
33180     ;;
33181 esac
33182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33185   echo $ECHO_N "(cached) $ECHO_C" >&6
33186 else
33187   eval "$as_ac_Header=\$ac_header_preproc"
33188 fi
33189 ac_res=`eval echo '${'$as_ac_Header'}'`
33190                { echo "$as_me:$LINENO: result: $ac_res" >&5
33191 echo "${ECHO_T}$ac_res" >&6; }
33192
33193 fi
33194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33195   cat >>confdefs.h <<_ACEOF
33196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33197 _ACEOF
33198
33199 fi
33200
33201 done
33202
33203 ac_ext=cpp
33204 ac_cpp='$CXXCPP $CPPFLAGS'
33205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33208 if test -z "$CXX"; then
33209   if test -n "$CCC"; then
33210     CXX=$CCC
33211   else
33212     if test -n "$ac_tool_prefix"; then
33213   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
33214   do
33215     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
33216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
33217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33219 if test "${ac_cv_prog_CXX+set}" = set; then
33220   echo $ECHO_N "(cached) $ECHO_C" >&6
33221 else
33222   if test -n "$CXX"; then
33223   ac_cv_prog_CXX="$CXX" # Let the user override the test.
33224 else
33225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33226 for as_dir in $PATH
33227 do
33228   IFS=$as_save_IFS
33229   test -z "$as_dir" && as_dir=.
33230   for ac_exec_ext in '' $ac_executable_extensions; do
33231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33232     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
33233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33234     break 2
33235   fi
33236 done
33237 done
33238 IFS=$as_save_IFS
33239
33240 fi
33241 fi
33242 CXX=$ac_cv_prog_CXX
33243 if test -n "$CXX"; then
33244   { echo "$as_me:$LINENO: result: $CXX" >&5
33245 echo "${ECHO_T}$CXX" >&6; }
33246 else
33247   { echo "$as_me:$LINENO: result: no" >&5
33248 echo "${ECHO_T}no" >&6; }
33249 fi
33250
33251
33252     test -n "$CXX" && break
33253   done
33254 fi
33255 if test -z "$CXX"; then
33256   ac_ct_CXX=$CXX
33257   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
33258 do
33259   # Extract the first word of "$ac_prog", so it can be a program name with args.
33260 set dummy $ac_prog; ac_word=$2
33261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33263 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
33264   echo $ECHO_N "(cached) $ECHO_C" >&6
33265 else
33266   if test -n "$ac_ct_CXX"; then
33267   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
33268 else
33269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33270 for as_dir in $PATH
33271 do
33272   IFS=$as_save_IFS
33273   test -z "$as_dir" && as_dir=.
33274   for ac_exec_ext in '' $ac_executable_extensions; do
33275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33276     ac_cv_prog_ac_ct_CXX="$ac_prog"
33277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33278     break 2
33279   fi
33280 done
33281 done
33282 IFS=$as_save_IFS
33283
33284 fi
33285 fi
33286 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
33287 if test -n "$ac_ct_CXX"; then
33288   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
33289 echo "${ECHO_T}$ac_ct_CXX" >&6; }
33290 else
33291   { echo "$as_me:$LINENO: result: no" >&5
33292 echo "${ECHO_T}no" >&6; }
33293 fi
33294
33295
33296   test -n "$ac_ct_CXX" && break
33297 done
33298
33299   if test "x$ac_ct_CXX" = x; then
33300     CXX="g++"
33301   else
33302     case $cross_compiling:$ac_tool_warned in
33303 yes:)
33304 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33305 whose name does not start with the host triplet.  If you think this
33306 configuration is useful to you, please write to autoconf@gnu.org." >&5
33307 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33308 whose name does not start with the host triplet.  If you think this
33309 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33310 ac_tool_warned=yes ;;
33311 esac
33312     CXX=$ac_ct_CXX
33313   fi
33314 fi
33315
33316   fi
33317 fi
33318 # Provide some information about the compiler.
33319 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
33320 ac_compiler=`set X $ac_compile; echo $2`
33321 { (ac_try="$ac_compiler --version >&5"
33322 case "(($ac_try" in
33323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33324   *) ac_try_echo=$ac_try;;
33325 esac
33326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33327   (eval "$ac_compiler --version >&5") 2>&5
33328   ac_status=$?
33329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33330   (exit $ac_status); }
33331 { (ac_try="$ac_compiler -v >&5"
33332 case "(($ac_try" in
33333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33334   *) ac_try_echo=$ac_try;;
33335 esac
33336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33337   (eval "$ac_compiler -v >&5") 2>&5
33338   ac_status=$?
33339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340   (exit $ac_status); }
33341 { (ac_try="$ac_compiler -V >&5"
33342 case "(($ac_try" in
33343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33344   *) ac_try_echo=$ac_try;;
33345 esac
33346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33347   (eval "$ac_compiler -V >&5") 2>&5
33348   ac_status=$?
33349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33350   (exit $ac_status); }
33351
33352 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
33353 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
33354 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
33355   echo $ECHO_N "(cached) $ECHO_C" >&6
33356 else
33357   cat >conftest.$ac_ext <<_ACEOF
33358 /* confdefs.h.  */
33359 _ACEOF
33360 cat confdefs.h >>conftest.$ac_ext
33361 cat >>conftest.$ac_ext <<_ACEOF
33362 /* end confdefs.h.  */
33363
33364 int
33365 main ()
33366 {
33367 #ifndef __GNUC__
33368        choke me
33369 #endif
33370
33371   ;
33372   return 0;
33373 }
33374 _ACEOF
33375 rm -f conftest.$ac_objext
33376 if { (ac_try="$ac_compile"
33377 case "(($ac_try" in
33378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33379   *) ac_try_echo=$ac_try;;
33380 esac
33381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33382   (eval "$ac_compile") 2>conftest.er1
33383   ac_status=$?
33384   grep -v '^ *+' conftest.er1 >conftest.err
33385   rm -f conftest.er1
33386   cat conftest.err >&5
33387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33388   (exit $ac_status); } && {
33389          test -z "$ac_cxx_werror_flag" ||
33390          test ! -s conftest.err
33391        } && test -s conftest.$ac_objext; then
33392   ac_compiler_gnu=yes
33393 else
33394   echo "$as_me: failed program was:" >&5
33395 sed 's/^/| /' conftest.$ac_ext >&5
33396
33397         ac_compiler_gnu=no
33398 fi
33399
33400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33401 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
33402
33403 fi
33404 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
33405 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
33406 GXX=`test $ac_compiler_gnu = yes && echo yes`
33407 ac_test_CXXFLAGS=${CXXFLAGS+set}
33408 ac_save_CXXFLAGS=$CXXFLAGS
33409 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
33410 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
33411 if test "${ac_cv_prog_cxx_g+set}" = set; then
33412   echo $ECHO_N "(cached) $ECHO_C" >&6
33413 else
33414   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
33415    ac_cxx_werror_flag=yes
33416    ac_cv_prog_cxx_g=no
33417    CXXFLAGS="-g"
33418    cat >conftest.$ac_ext <<_ACEOF
33419 /* confdefs.h.  */
33420 _ACEOF
33421 cat confdefs.h >>conftest.$ac_ext
33422 cat >>conftest.$ac_ext <<_ACEOF
33423 /* end confdefs.h.  */
33424
33425 int
33426 main ()
33427 {
33428
33429   ;
33430   return 0;
33431 }
33432 _ACEOF
33433 rm -f conftest.$ac_objext
33434 if { (ac_try="$ac_compile"
33435 case "(($ac_try" in
33436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33437   *) ac_try_echo=$ac_try;;
33438 esac
33439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33440   (eval "$ac_compile") 2>conftest.er1
33441   ac_status=$?
33442   grep -v '^ *+' conftest.er1 >conftest.err
33443   rm -f conftest.er1
33444   cat conftest.err >&5
33445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446   (exit $ac_status); } && {
33447          test -z "$ac_cxx_werror_flag" ||
33448          test ! -s conftest.err
33449        } && test -s conftest.$ac_objext; then
33450   ac_cv_prog_cxx_g=yes
33451 else
33452   echo "$as_me: failed program was:" >&5
33453 sed 's/^/| /' conftest.$ac_ext >&5
33454
33455         CXXFLAGS=""
33456       cat >conftest.$ac_ext <<_ACEOF
33457 /* confdefs.h.  */
33458 _ACEOF
33459 cat confdefs.h >>conftest.$ac_ext
33460 cat >>conftest.$ac_ext <<_ACEOF
33461 /* end confdefs.h.  */
33462
33463 int
33464 main ()
33465 {
33466
33467   ;
33468   return 0;
33469 }
33470 _ACEOF
33471 rm -f conftest.$ac_objext
33472 if { (ac_try="$ac_compile"
33473 case "(($ac_try" in
33474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33475   *) ac_try_echo=$ac_try;;
33476 esac
33477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33478   (eval "$ac_compile") 2>conftest.er1
33479   ac_status=$?
33480   grep -v '^ *+' conftest.er1 >conftest.err
33481   rm -f conftest.er1
33482   cat conftest.err >&5
33483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484   (exit $ac_status); } && {
33485          test -z "$ac_cxx_werror_flag" ||
33486          test ! -s conftest.err
33487        } && test -s conftest.$ac_objext; then
33488   :
33489 else
33490   echo "$as_me: failed program was:" >&5
33491 sed 's/^/| /' conftest.$ac_ext >&5
33492
33493         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
33494          CXXFLAGS="-g"
33495          cat >conftest.$ac_ext <<_ACEOF
33496 /* confdefs.h.  */
33497 _ACEOF
33498 cat confdefs.h >>conftest.$ac_ext
33499 cat >>conftest.$ac_ext <<_ACEOF
33500 /* end confdefs.h.  */
33501
33502 int
33503 main ()
33504 {
33505
33506   ;
33507   return 0;
33508 }
33509 _ACEOF
33510 rm -f conftest.$ac_objext
33511 if { (ac_try="$ac_compile"
33512 case "(($ac_try" in
33513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33514   *) ac_try_echo=$ac_try;;
33515 esac
33516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33517   (eval "$ac_compile") 2>conftest.er1
33518   ac_status=$?
33519   grep -v '^ *+' conftest.er1 >conftest.err
33520   rm -f conftest.er1
33521   cat conftest.err >&5
33522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33523   (exit $ac_status); } && {
33524          test -z "$ac_cxx_werror_flag" ||
33525          test ! -s conftest.err
33526        } && test -s conftest.$ac_objext; then
33527   ac_cv_prog_cxx_g=yes
33528 else
33529   echo "$as_me: failed program was:" >&5
33530 sed 's/^/| /' conftest.$ac_ext >&5
33531
33532
33533 fi
33534
33535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33536 fi
33537
33538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33539 fi
33540
33541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33542    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
33543 fi
33544 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
33545 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
33546 if test "$ac_test_CXXFLAGS" = set; then
33547   CXXFLAGS=$ac_save_CXXFLAGS
33548 elif test $ac_cv_prog_cxx_g = yes; then
33549   if test "$GXX" = yes; then
33550     CXXFLAGS="-g -O2"
33551   else
33552     CXXFLAGS="-g"
33553   fi
33554 else
33555   if test "$GXX" = yes; then
33556     CXXFLAGS="-O2"
33557   else
33558     CXXFLAGS=
33559   fi
33560 fi
33561 ac_ext=cpp
33562 ac_cpp='$CXXCPP $CPPFLAGS'
33563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33566
33567 depcc="$CXX"  am_compiler_list=
33568
33569 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
33570 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
33571 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
33572   echo $ECHO_N "(cached) $ECHO_C" >&6
33573 else
33574   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
33575   # We make a subdir and do the tests there.  Otherwise we can end up
33576   # making bogus files that we don't know about and never remove.  For
33577   # instance it was reported that on HP-UX the gcc test will end up
33578   # making a dummy file named `D' -- because `-MD' means `put the output
33579   # in D'.
33580   mkdir conftest.dir
33581   # Copy depcomp to subdir because otherwise we won't find it if we're
33582   # using a relative directory.
33583   cp "$am_depcomp" conftest.dir
33584   cd conftest.dir
33585   # We will build objects and dependencies in a subdirectory because
33586   # it helps to detect inapplicable dependency modes.  For instance
33587   # both Tru64's cc and ICC support -MD to output dependencies as a
33588   # side effect of compilation, but ICC will put the dependencies in
33589   # the current directory while Tru64 will put them in the object
33590   # directory.
33591   mkdir sub
33592
33593   am_cv_CXX_dependencies_compiler_type=none
33594   if test "$am_compiler_list" = ""; then
33595      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
33596   fi
33597   for depmode in $am_compiler_list; do
33598     # Setup a source with many dependencies, because some compilers
33599     # like to wrap large dependency lists on column 80 (with \), and
33600     # we should not choose a depcomp mode which is confused by this.
33601     #
33602     # We need to recreate these files for each test, as the compiler may
33603     # overwrite some of them when testing with obscure command lines.
33604     # This happens at least with the AIX C compiler.
33605     : > sub/conftest.c
33606     for i in 1 2 3 4 5 6; do
33607       echo '#include "conftst'$i'.h"' >> sub/conftest.c
33608       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
33609       # Solaris 8's {/usr,}/bin/sh.
33610       touch sub/conftst$i.h
33611     done
33612     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
33613
33614     case $depmode in
33615     nosideeffect)
33616       # after this tag, mechanisms are not by side-effect, so they'll
33617       # only be used when explicitly requested
33618       if test "x$enable_dependency_tracking" = xyes; then
33619         continue
33620       else
33621         break
33622       fi
33623       ;;
33624     none) break ;;
33625     esac
33626     # We check with `-c' and `-o' for the sake of the "dashmstdout"
33627     # mode.  It turns out that the SunPro C++ compiler does not properly
33628     # handle `-M -o', and we need to detect this.
33629     if depmode=$depmode \
33630        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
33631        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
33632        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
33633          >/dev/null 2>conftest.err &&
33634        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
33635        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
33636        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
33637        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
33638       # icc doesn't choke on unknown options, it will just issue warnings
33639       # or remarks (even with -Werror).  So we grep stderr for any message
33640       # that says an option was ignored or not supported.
33641       # When given -MP, icc 7.0 and 7.1 complain thusly:
33642       #   icc: Command line warning: ignoring option '-M'; no argument required
33643       # The diagnosis changed in icc 8.0:
33644       #   icc: Command line remark: option '-MP' not supported
33645       if (grep 'ignoring option' conftest.err ||
33646           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
33647         am_cv_CXX_dependencies_compiler_type=$depmode
33648         break
33649       fi
33650     fi
33651   done
33652
33653   cd ..
33654   rm -rf conftest.dir
33655 else
33656   am_cv_CXX_dependencies_compiler_type=none
33657 fi
33658
33659 fi
33660 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
33661 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
33662 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
33663
33664  if
33665   test "x$enable_dependency_tracking" != xno \
33666   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
33667   am__fastdepCXX_TRUE=
33668   am__fastdepCXX_FALSE='#'
33669 else
33670   am__fastdepCXX_TRUE='#'
33671   am__fastdepCXX_FALSE=
33672 fi
33673
33674
33675
33676
33677 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
33678     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
33679     (test "X$CXX" != "Xg++"))) ; then
33680   ac_ext=cpp
33681 ac_cpp='$CXXCPP $CPPFLAGS'
33682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33685 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
33686 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
33687 if test -z "$CXXCPP"; then
33688   if test "${ac_cv_prog_CXXCPP+set}" = set; then
33689   echo $ECHO_N "(cached) $ECHO_C" >&6
33690 else
33691       # Double quotes because CXXCPP needs to be expanded
33692     for CXXCPP in "$CXX -E" "/lib/cpp"
33693     do
33694       ac_preproc_ok=false
33695 for ac_cxx_preproc_warn_flag in '' yes
33696 do
33697   # Use a header file that comes with gcc, so configuring glibc
33698   # with a fresh cross-compiler works.
33699   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33700   # <limits.h> exists even on freestanding compilers.
33701   # On the NeXT, cc -E runs the code through the compiler's parser,
33702   # not just through cpp. "Syntax error" is here to catch this case.
33703   cat >conftest.$ac_ext <<_ACEOF
33704 /* confdefs.h.  */
33705 _ACEOF
33706 cat confdefs.h >>conftest.$ac_ext
33707 cat >>conftest.$ac_ext <<_ACEOF
33708 /* end confdefs.h.  */
33709 #ifdef __STDC__
33710 # include <limits.h>
33711 #else
33712 # include <assert.h>
33713 #endif
33714                      Syntax error
33715 _ACEOF
33716 if { (ac_try="$ac_cpp conftest.$ac_ext"
33717 case "(($ac_try" in
33718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33719   *) ac_try_echo=$ac_try;;
33720 esac
33721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33722   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33723   ac_status=$?
33724   grep -v '^ *+' conftest.er1 >conftest.err
33725   rm -f conftest.er1
33726   cat conftest.err >&5
33727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728   (exit $ac_status); } >/dev/null && {
33729          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33730          test ! -s conftest.err
33731        }; then
33732   :
33733 else
33734   echo "$as_me: failed program was:" >&5
33735 sed 's/^/| /' conftest.$ac_ext >&5
33736
33737   # Broken: fails on valid input.
33738 continue
33739 fi
33740
33741 rm -f conftest.err conftest.$ac_ext
33742
33743   # OK, works on sane cases.  Now check whether nonexistent headers
33744   # can be detected and how.
33745   cat >conftest.$ac_ext <<_ACEOF
33746 /* confdefs.h.  */
33747 _ACEOF
33748 cat confdefs.h >>conftest.$ac_ext
33749 cat >>conftest.$ac_ext <<_ACEOF
33750 /* end confdefs.h.  */
33751 #include <ac_nonexistent.h>
33752 _ACEOF
33753 if { (ac_try="$ac_cpp conftest.$ac_ext"
33754 case "(($ac_try" in
33755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33756   *) ac_try_echo=$ac_try;;
33757 esac
33758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33759   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33760   ac_status=$?
33761   grep -v '^ *+' conftest.er1 >conftest.err
33762   rm -f conftest.er1
33763   cat conftest.err >&5
33764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33765   (exit $ac_status); } >/dev/null && {
33766          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33767          test ! -s conftest.err
33768        }; then
33769   # Broken: success on invalid input.
33770 continue
33771 else
33772   echo "$as_me: failed program was:" >&5
33773 sed 's/^/| /' conftest.$ac_ext >&5
33774
33775   # Passes both tests.
33776 ac_preproc_ok=:
33777 break
33778 fi
33779
33780 rm -f conftest.err conftest.$ac_ext
33781
33782 done
33783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
33784 rm -f conftest.err conftest.$ac_ext
33785 if $ac_preproc_ok; then
33786   break
33787 fi
33788
33789     done
33790     ac_cv_prog_CXXCPP=$CXXCPP
33791
33792 fi
33793   CXXCPP=$ac_cv_prog_CXXCPP
33794 else
33795   ac_cv_prog_CXXCPP=$CXXCPP
33796 fi
33797 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
33798 echo "${ECHO_T}$CXXCPP" >&6; }
33799 ac_preproc_ok=false
33800 for ac_cxx_preproc_warn_flag in '' yes
33801 do
33802   # Use a header file that comes with gcc, so configuring glibc
33803   # with a fresh cross-compiler works.
33804   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33805   # <limits.h> exists even on freestanding compilers.
33806   # On the NeXT, cc -E runs the code through the compiler's parser,
33807   # not just through cpp. "Syntax error" is here to catch this case.
33808   cat >conftest.$ac_ext <<_ACEOF
33809 /* confdefs.h.  */
33810 _ACEOF
33811 cat confdefs.h >>conftest.$ac_ext
33812 cat >>conftest.$ac_ext <<_ACEOF
33813 /* end confdefs.h.  */
33814 #ifdef __STDC__
33815 # include <limits.h>
33816 #else
33817 # include <assert.h>
33818 #endif
33819                      Syntax error
33820 _ACEOF
33821 if { (ac_try="$ac_cpp conftest.$ac_ext"
33822 case "(($ac_try" in
33823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33824   *) ac_try_echo=$ac_try;;
33825 esac
33826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33828   ac_status=$?
33829   grep -v '^ *+' conftest.er1 >conftest.err
33830   rm -f conftest.er1
33831   cat conftest.err >&5
33832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33833   (exit $ac_status); } >/dev/null && {
33834          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33835          test ! -s conftest.err
33836        }; then
33837   :
33838 else
33839   echo "$as_me: failed program was:" >&5
33840 sed 's/^/| /' conftest.$ac_ext >&5
33841
33842   # Broken: fails on valid input.
33843 continue
33844 fi
33845
33846 rm -f conftest.err conftest.$ac_ext
33847
33848   # OK, works on sane cases.  Now check whether nonexistent headers
33849   # can be detected and how.
33850   cat >conftest.$ac_ext <<_ACEOF
33851 /* confdefs.h.  */
33852 _ACEOF
33853 cat confdefs.h >>conftest.$ac_ext
33854 cat >>conftest.$ac_ext <<_ACEOF
33855 /* end confdefs.h.  */
33856 #include <ac_nonexistent.h>
33857 _ACEOF
33858 if { (ac_try="$ac_cpp conftest.$ac_ext"
33859 case "(($ac_try" in
33860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33861   *) ac_try_echo=$ac_try;;
33862 esac
33863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33865   ac_status=$?
33866   grep -v '^ *+' conftest.er1 >conftest.err
33867   rm -f conftest.er1
33868   cat conftest.err >&5
33869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33870   (exit $ac_status); } >/dev/null && {
33871          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33872          test ! -s conftest.err
33873        }; then
33874   # Broken: success on invalid input.
33875 continue
33876 else
33877   echo "$as_me: failed program was:" >&5
33878 sed 's/^/| /' conftest.$ac_ext >&5
33879
33880   # Passes both tests.
33881 ac_preproc_ok=:
33882 break
33883 fi
33884
33885 rm -f conftest.err conftest.$ac_ext
33886
33887 done
33888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
33889 rm -f conftest.err conftest.$ac_ext
33890 if $ac_preproc_ok; then
33891   :
33892 else
33893   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
33894 See \`config.log' for more details." >&5
33895 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
33896 See \`config.log' for more details." >&2;}
33897    { (exit 1); exit 1; }; }
33898 fi
33899
33900 ac_ext=cpp
33901 ac_cpp='$CXXCPP $CPPFLAGS'
33902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33905
33906 fi
33907
33908
33909 ac_ext=f
33910 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
33911 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33912 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
33913 if test -n "$ac_tool_prefix"; then
33914   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
33915   do
33916     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
33917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
33918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33920 if test "${ac_cv_prog_F77+set}" = set; then
33921   echo $ECHO_N "(cached) $ECHO_C" >&6
33922 else
33923   if test -n "$F77"; then
33924   ac_cv_prog_F77="$F77" # Let the user override the test.
33925 else
33926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33927 for as_dir in $PATH
33928 do
33929   IFS=$as_save_IFS
33930   test -z "$as_dir" && as_dir=.
33931   for ac_exec_ext in '' $ac_executable_extensions; do
33932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33933     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
33934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33935     break 2
33936   fi
33937 done
33938 done
33939 IFS=$as_save_IFS
33940
33941 fi
33942 fi
33943 F77=$ac_cv_prog_F77
33944 if test -n "$F77"; then
33945   { echo "$as_me:$LINENO: result: $F77" >&5
33946 echo "${ECHO_T}$F77" >&6; }
33947 else
33948   { echo "$as_me:$LINENO: result: no" >&5
33949 echo "${ECHO_T}no" >&6; }
33950 fi
33951
33952
33953     test -n "$F77" && break
33954   done
33955 fi
33956 if test -z "$F77"; then
33957   ac_ct_F77=$F77
33958   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
33959 do
33960   # Extract the first word of "$ac_prog", so it can be a program name with args.
33961 set dummy $ac_prog; ac_word=$2
33962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33964 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
33965   echo $ECHO_N "(cached) $ECHO_C" >&6
33966 else
33967   if test -n "$ac_ct_F77"; then
33968   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
33969 else
33970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33971 for as_dir in $PATH
33972 do
33973   IFS=$as_save_IFS
33974   test -z "$as_dir" && as_dir=.
33975   for ac_exec_ext in '' $ac_executable_extensions; do
33976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33977     ac_cv_prog_ac_ct_F77="$ac_prog"
33978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33979     break 2
33980   fi
33981 done
33982 done
33983 IFS=$as_save_IFS
33984
33985 fi
33986 fi
33987 ac_ct_F77=$ac_cv_prog_ac_ct_F77
33988 if test -n "$ac_ct_F77"; then
33989   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
33990 echo "${ECHO_T}$ac_ct_F77" >&6; }
33991 else
33992   { echo "$as_me:$LINENO: result: no" >&5
33993 echo "${ECHO_T}no" >&6; }
33994 fi
33995
33996
33997   test -n "$ac_ct_F77" && break
33998 done
33999
34000   if test "x$ac_ct_F77" = x; then
34001     F77=""
34002   else
34003     case $cross_compiling:$ac_tool_warned in
34004 yes:)
34005 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34006 whose name does not start with the host triplet.  If you think this
34007 configuration is useful to you, please write to autoconf@gnu.org." >&5
34008 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34009 whose name does not start with the host triplet.  If you think this
34010 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34011 ac_tool_warned=yes ;;
34012 esac
34013     F77=$ac_ct_F77
34014   fi
34015 fi
34016
34017
34018 # Provide some information about the compiler.
34019 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
34020 ac_compiler=`set X $ac_compile; echo $2`
34021 { (ac_try="$ac_compiler --version >&5"
34022 case "(($ac_try" in
34023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34024   *) ac_try_echo=$ac_try;;
34025 esac
34026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34027   (eval "$ac_compiler --version >&5") 2>&5
34028   ac_status=$?
34029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34030   (exit $ac_status); }
34031 { (ac_try="$ac_compiler -v >&5"
34032 case "(($ac_try" in
34033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34034   *) ac_try_echo=$ac_try;;
34035 esac
34036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34037   (eval "$ac_compiler -v >&5") 2>&5
34038   ac_status=$?
34039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34040   (exit $ac_status); }
34041 { (ac_try="$ac_compiler -V >&5"
34042 case "(($ac_try" in
34043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34044   *) ac_try_echo=$ac_try;;
34045 esac
34046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34047   (eval "$ac_compiler -V >&5") 2>&5
34048   ac_status=$?
34049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34050   (exit $ac_status); }
34051 rm -f a.out
34052
34053 # If we don't use `.F' as extension, the preprocessor is not run on the
34054 # input file.  (Note that this only needs to work for GNU compilers.)
34055 ac_save_ext=$ac_ext
34056 ac_ext=F
34057 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
34058 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
34059 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
34060   echo $ECHO_N "(cached) $ECHO_C" >&6
34061 else
34062   cat >conftest.$ac_ext <<_ACEOF
34063       program main
34064 #ifndef __GNUC__
34065        choke me
34066 #endif
34067
34068       end
34069 _ACEOF
34070 rm -f conftest.$ac_objext
34071 if { (ac_try="$ac_compile"
34072 case "(($ac_try" in
34073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34074   *) ac_try_echo=$ac_try;;
34075 esac
34076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34077   (eval "$ac_compile") 2>conftest.er1
34078   ac_status=$?
34079   grep -v '^ *+' conftest.er1 >conftest.err
34080   rm -f conftest.er1
34081   cat conftest.err >&5
34082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34083   (exit $ac_status); } && {
34084          test -z "$ac_f77_werror_flag" ||
34085          test ! -s conftest.err
34086        } && test -s conftest.$ac_objext; then
34087   ac_compiler_gnu=yes
34088 else
34089   echo "$as_me: failed program was:" >&5
34090 sed 's/^/| /' conftest.$ac_ext >&5
34091
34092         ac_compiler_gnu=no
34093 fi
34094
34095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34096 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
34097
34098 fi
34099 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
34100 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
34101 ac_ext=$ac_save_ext
34102 ac_test_FFLAGS=${FFLAGS+set}
34103 ac_save_FFLAGS=$FFLAGS
34104 FFLAGS=
34105 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
34106 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
34107 if test "${ac_cv_prog_f77_g+set}" = set; then
34108   echo $ECHO_N "(cached) $ECHO_C" >&6
34109 else
34110   FFLAGS=-g
34111 cat >conftest.$ac_ext <<_ACEOF
34112       program main
34113
34114       end
34115 _ACEOF
34116 rm -f conftest.$ac_objext
34117 if { (ac_try="$ac_compile"
34118 case "(($ac_try" in
34119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34120   *) ac_try_echo=$ac_try;;
34121 esac
34122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34123   (eval "$ac_compile") 2>conftest.er1
34124   ac_status=$?
34125   grep -v '^ *+' conftest.er1 >conftest.err
34126   rm -f conftest.er1
34127   cat conftest.err >&5
34128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34129   (exit $ac_status); } && {
34130          test -z "$ac_f77_werror_flag" ||
34131          test ! -s conftest.err
34132        } && test -s conftest.$ac_objext; then
34133   ac_cv_prog_f77_g=yes
34134 else
34135   echo "$as_me: failed program was:" >&5
34136 sed 's/^/| /' conftest.$ac_ext >&5
34137
34138         ac_cv_prog_f77_g=no
34139 fi
34140
34141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34142
34143 fi
34144 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
34145 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
34146 if test "$ac_test_FFLAGS" = set; then
34147   FFLAGS=$ac_save_FFLAGS
34148 elif test $ac_cv_prog_f77_g = yes; then
34149   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
34150     FFLAGS="-g -O2"
34151   else
34152     FFLAGS="-g"
34153   fi
34154 else
34155   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
34156     FFLAGS="-O2"
34157   else
34158     FFLAGS=
34159   fi
34160 fi
34161
34162 G77=`test $ac_compiler_gnu = yes && echo yes`
34163 ac_ext=c
34164 ac_cpp='$CPP $CPPFLAGS'
34165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34168
34169
34170
34171 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
34172
34173 # find the maximum length of command line arguments
34174 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
34175 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
34176 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
34177   echo $ECHO_N "(cached) $ECHO_C" >&6
34178 else
34179     i=0
34180   teststring="ABCD"
34181
34182   case $build_os in
34183   msdosdjgpp*)
34184     # On DJGPP, this test can blow up pretty badly due to problems in libc
34185     # (any single argument exceeding 2000 bytes causes a buffer overrun
34186     # during glob expansion).  Even if it were fixed, the result of this
34187     # check would be larger than it should be.
34188     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
34189     ;;
34190
34191   gnu*)
34192     # Under GNU Hurd, this test is not required because there is
34193     # no limit to the length of command line arguments.
34194     # Libtool will interpret -1 as no limit whatsoever
34195     lt_cv_sys_max_cmd_len=-1;
34196     ;;
34197
34198   cygwin* | mingw*)
34199     # On Win9x/ME, this test blows up -- it succeeds, but takes
34200     # about 5 minutes as the teststring grows exponentially.
34201     # Worse, since 9x/ME are not pre-emptively multitasking,
34202     # you end up with a "frozen" computer, even though with patience
34203     # the test eventually succeeds (with a max line length of 256k).
34204     # Instead, let's just punt: use the minimum linelength reported by
34205     # all of the supported platforms: 8192 (on NT/2K/XP).
34206     lt_cv_sys_max_cmd_len=8192;
34207     ;;
34208
34209   amigaos*)
34210     # On AmigaOS with pdksh, this test takes hours, literally.
34211     # So we just punt and use a minimum line length of 8192.
34212     lt_cv_sys_max_cmd_len=8192;
34213     ;;
34214
34215   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
34216     # This has been around since 386BSD, at least.  Likely further.
34217     if test -x /sbin/sysctl; then
34218       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
34219     elif test -x /usr/sbin/sysctl; then
34220       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
34221     else
34222       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
34223     fi
34224     # And add a safety zone
34225     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
34226     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
34227     ;;
34228   osf*)
34229     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
34230     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
34231     # nice to cause kernel panics so lets avoid the loop below.
34232     # First set a reasonable default.
34233     lt_cv_sys_max_cmd_len=16384
34234     #
34235     if test -x /sbin/sysconfig; then
34236       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
34237         *1*) lt_cv_sys_max_cmd_len=-1 ;;
34238       esac
34239     fi
34240     ;;
34241   *)
34242     # If test is not a shell built-in, we'll probably end up computing a
34243     # maximum length that is only half of the actual maximum length, but
34244     # we can't tell.
34245     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
34246     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
34247                = "XX$teststring") >/dev/null 2>&1 &&
34248             new_result=`expr "X$teststring" : ".*" 2>&1` &&
34249             lt_cv_sys_max_cmd_len=$new_result &&
34250             test $i != 17 # 1/2 MB should be enough
34251     do
34252       i=`expr $i + 1`
34253       teststring=$teststring$teststring
34254     done
34255     teststring=
34256     # Add a significant safety factor because C++ compilers can tack on massive
34257     # amounts of additional arguments before passing them to the linker.
34258     # It appears as though 1/2 is a usable value.
34259     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
34260     ;;
34261   esac
34262
34263 fi
34264
34265 if test -n $lt_cv_sys_max_cmd_len ; then
34266   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
34267 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
34268 else
34269   { echo "$as_me:$LINENO: result: none" >&5
34270 echo "${ECHO_T}none" >&6; }
34271 fi
34272
34273
34274
34275
34276 # Check for command to grab the raw symbol name followed by C symbol from nm.
34277 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
34278 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
34279 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
34280   echo $ECHO_N "(cached) $ECHO_C" >&6
34281 else
34282
34283 # These are sane defaults that work on at least a few old systems.
34284 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
34285
34286 # Character class describing NM global symbol codes.
34287 symcode='[BCDEGRST]'
34288
34289 # Regexp to match symbols that can be accessed directly from C.
34290 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
34291
34292 # Transform an extracted symbol line into a proper C declaration
34293 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
34294
34295 # Transform an extracted symbol line into symbol name and symbol address
34296 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
34297
34298 # Define system-specific variables.
34299 case $host_os in
34300 aix*)
34301   symcode='[BCDT]'
34302   ;;
34303 cygwin* | mingw* | pw32*)
34304   symcode='[ABCDGISTW]'
34305   ;;
34306 hpux*) # Its linker distinguishes data from code symbols
34307   if test "$host_cpu" = ia64; then
34308     symcode='[ABCDEGRST]'
34309   fi
34310   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
34311   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
34312   ;;
34313 linux*)
34314   if test "$host_cpu" = ia64; then
34315     symcode='[ABCDGIRSTW]'
34316     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
34317     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
34318   fi
34319   ;;
34320 irix* | nonstopux*)
34321   symcode='[BCDEGRST]'
34322   ;;
34323 osf*)
34324   symcode='[BCDEGQRST]'
34325   ;;
34326 solaris* | sysv5*)
34327   symcode='[BDRT]'
34328   ;;
34329 sysv4)
34330   symcode='[DFNSTU]'
34331   ;;
34332 esac
34333
34334 # Handle CRLF in mingw tool chain
34335 opt_cr=
34336 case $build_os in
34337 mingw*)
34338   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
34339   ;;
34340 esac
34341
34342 # If we're using GNU nm, then use its standard symbol codes.
34343 case `$NM -V 2>&1` in
34344 *GNU* | *'with BFD'*)
34345   symcode='[ABCDGIRSTW]' ;;
34346 esac
34347
34348 # Try without a prefix undercore, then with it.
34349 for ac_symprfx in "" "_"; do
34350
34351   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
34352   symxfrm="\\1 $ac_symprfx\\2 \\2"
34353
34354   # Write the raw and C identifiers.
34355   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
34356
34357   # Check to see that the pipe works correctly.
34358   pipe_works=no
34359
34360   rm -f conftest*
34361   cat > conftest.$ac_ext <<EOF
34362 #ifdef __cplusplus
34363 extern "C" {
34364 #endif
34365 char nm_test_var;
34366 void nm_test_func(){}
34367 #ifdef __cplusplus
34368 }
34369 #endif
34370 int main(){nm_test_var='a';nm_test_func();return(0);}
34371 EOF
34372
34373   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34374   (eval $ac_compile) 2>&5
34375   ac_status=$?
34376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34377   (exit $ac_status); }; then
34378     # Now try to grab the symbols.
34379     nlist=conftest.nm
34380     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
34381   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
34382   ac_status=$?
34383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384   (exit $ac_status); } && test -s "$nlist"; then
34385       # Try sorting and uniquifying the output.
34386       if sort "$nlist" | uniq > "$nlist"T; then
34387         mv -f "$nlist"T "$nlist"
34388       else
34389         rm -f "$nlist"T
34390       fi
34391
34392       # Make sure that we snagged all the symbols we need.
34393       if grep ' nm_test_var$' "$nlist" >/dev/null; then
34394         if grep ' nm_test_func$' "$nlist" >/dev/null; then
34395           cat <<EOF > conftest.$ac_ext
34396 #ifdef __cplusplus
34397 extern "C" {
34398 #endif
34399
34400 EOF
34401           # Now generate the symbol file.
34402           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
34403
34404           cat <<EOF >> conftest.$ac_ext
34405 #if defined (__STDC__) && __STDC__
34406 # define lt_ptr_t void *
34407 #else
34408 # define lt_ptr_t char *
34409 # define const
34410 #endif
34411
34412 /* The mapping between symbol names and symbols. */
34413 const struct {
34414   const char *name;
34415   lt_ptr_t address;
34416 }
34417 lt_preloaded_symbols[] =
34418 {
34419 EOF
34420           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
34421           cat <<\EOF >> conftest.$ac_ext
34422   {0, (lt_ptr_t) 0}
34423 };
34424
34425 #ifdef __cplusplus
34426 }
34427 #endif
34428 EOF
34429           # Now try linking the two files.
34430           mv conftest.$ac_objext conftstm.$ac_objext
34431           lt_save_LIBS="$LIBS"
34432           lt_save_CFLAGS="$CFLAGS"
34433           LIBS="conftstm.$ac_objext"
34434           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
34435           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34436   (eval $ac_link) 2>&5
34437   ac_status=$?
34438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439   (exit $ac_status); } && test -s conftest${ac_exeext}; then
34440             pipe_works=yes
34441           fi
34442           LIBS="$lt_save_LIBS"
34443           CFLAGS="$lt_save_CFLAGS"
34444         else
34445           echo "cannot find nm_test_func in $nlist" >&5
34446         fi
34447       else
34448         echo "cannot find nm_test_var in $nlist" >&5
34449       fi
34450     else
34451       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
34452     fi
34453   else
34454     echo "$progname: failed program was:" >&5
34455     cat conftest.$ac_ext >&5
34456   fi
34457   rm -f conftest* conftst*
34458
34459   # Do not use the global_symbol_pipe unless it works.
34460   if test "$pipe_works" = yes; then
34461     break
34462   else
34463     lt_cv_sys_global_symbol_pipe=
34464   fi
34465 done
34466
34467 fi
34468
34469 if test -z "$lt_cv_sys_global_symbol_pipe"; then
34470   lt_cv_sys_global_symbol_to_cdecl=
34471 fi
34472 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
34473   { echo "$as_me:$LINENO: result: failed" >&5
34474 echo "${ECHO_T}failed" >&6; }
34475 else
34476   { echo "$as_me:$LINENO: result: ok" >&5
34477 echo "${ECHO_T}ok" >&6; }
34478 fi
34479
34480 { echo "$as_me:$LINENO: checking for objdir" >&5
34481 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
34482 if test "${lt_cv_objdir+set}" = set; then
34483   echo $ECHO_N "(cached) $ECHO_C" >&6
34484 else
34485   rm -f .libs 2>/dev/null
34486 mkdir .libs 2>/dev/null
34487 if test -d .libs; then
34488   lt_cv_objdir=.libs
34489 else
34490   # MS-DOS does not allow filenames that begin with a dot.
34491   lt_cv_objdir=_libs
34492 fi
34493 rmdir .libs 2>/dev/null
34494 fi
34495 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
34496 echo "${ECHO_T}$lt_cv_objdir" >&6; }
34497 objdir=$lt_cv_objdir
34498
34499
34500
34501
34502
34503 case $host_os in
34504 aix3*)
34505   # AIX sometimes has problems with the GCC collect2 program.  For some
34506   # reason, if we set the COLLECT_NAMES environment variable, the problems
34507   # vanish in a puff of smoke.
34508   if test "X${COLLECT_NAMES+set}" != Xset; then
34509     COLLECT_NAMES=
34510     export COLLECT_NAMES
34511   fi
34512   ;;
34513 esac
34514
34515 # Sed substitution that helps us do robust quoting.  It backslashifies
34516 # metacharacters that are still active within double-quoted strings.
34517 Xsed='sed -e 1s/^X//'
34518 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
34519
34520 # Same as above, but do not quote variable references.
34521 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
34522
34523 # Sed substitution to delay expansion of an escaped shell variable in a
34524 # double_quote_subst'ed string.
34525 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
34526
34527 # Sed substitution to avoid accidental globbing in evaled expressions
34528 no_glob_subst='s/\*/\\\*/g'
34529
34530 # Constants:
34531 rm="rm -f"
34532
34533 # Global variables:
34534 default_ofile=libtool
34535 can_build_shared=yes
34536
34537 # All known linkers require a `.a' archive for static linking (except MSVC,
34538 # which needs '.lib').
34539 libext=a
34540 ltmain="$ac_aux_dir/ltmain.sh"
34541 ofile="$default_ofile"
34542 with_gnu_ld="$lt_cv_prog_gnu_ld"
34543
34544 if test -n "$ac_tool_prefix"; then
34545   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
34546 set dummy ${ac_tool_prefix}ar; ac_word=$2
34547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34549 if test "${ac_cv_prog_AR+set}" = set; then
34550   echo $ECHO_N "(cached) $ECHO_C" >&6
34551 else
34552   if test -n "$AR"; then
34553   ac_cv_prog_AR="$AR" # Let the user override the test.
34554 else
34555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34556 for as_dir in $PATH
34557 do
34558   IFS=$as_save_IFS
34559   test -z "$as_dir" && as_dir=.
34560   for ac_exec_ext in '' $ac_executable_extensions; do
34561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34562     ac_cv_prog_AR="${ac_tool_prefix}ar"
34563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34564     break 2
34565   fi
34566 done
34567 done
34568 IFS=$as_save_IFS
34569
34570 fi
34571 fi
34572 AR=$ac_cv_prog_AR
34573 if test -n "$AR"; then
34574   { echo "$as_me:$LINENO: result: $AR" >&5
34575 echo "${ECHO_T}$AR" >&6; }
34576 else
34577   { echo "$as_me:$LINENO: result: no" >&5
34578 echo "${ECHO_T}no" >&6; }
34579 fi
34580
34581
34582 fi
34583 if test -z "$ac_cv_prog_AR"; then
34584   ac_ct_AR=$AR
34585   # Extract the first word of "ar", so it can be a program name with args.
34586 set dummy ar; ac_word=$2
34587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34589 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
34590   echo $ECHO_N "(cached) $ECHO_C" >&6
34591 else
34592   if test -n "$ac_ct_AR"; then
34593   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
34594 else
34595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34596 for as_dir in $PATH
34597 do
34598   IFS=$as_save_IFS
34599   test -z "$as_dir" && as_dir=.
34600   for ac_exec_ext in '' $ac_executable_extensions; do
34601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34602     ac_cv_prog_ac_ct_AR="ar"
34603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34604     break 2
34605   fi
34606 done
34607 done
34608 IFS=$as_save_IFS
34609
34610 fi
34611 fi
34612 ac_ct_AR=$ac_cv_prog_ac_ct_AR
34613 if test -n "$ac_ct_AR"; then
34614   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
34615 echo "${ECHO_T}$ac_ct_AR" >&6; }
34616 else
34617   { echo "$as_me:$LINENO: result: no" >&5
34618 echo "${ECHO_T}no" >&6; }
34619 fi
34620
34621   if test "x$ac_ct_AR" = x; then
34622     AR="false"
34623   else
34624     case $cross_compiling:$ac_tool_warned in
34625 yes:)
34626 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34627 whose name does not start with the host triplet.  If you think this
34628 configuration is useful to you, please write to autoconf@gnu.org." >&5
34629 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34630 whose name does not start with the host triplet.  If you think this
34631 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34632 ac_tool_warned=yes ;;
34633 esac
34634     AR=$ac_ct_AR
34635   fi
34636 else
34637   AR="$ac_cv_prog_AR"
34638 fi
34639
34640 if test -n "$ac_tool_prefix"; then
34641   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
34642 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
34643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34645 if test "${ac_cv_prog_RANLIB+set}" = set; then
34646   echo $ECHO_N "(cached) $ECHO_C" >&6
34647 else
34648   if test -n "$RANLIB"; then
34649   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
34650 else
34651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34652 for as_dir in $PATH
34653 do
34654   IFS=$as_save_IFS
34655   test -z "$as_dir" && as_dir=.
34656   for ac_exec_ext in '' $ac_executable_extensions; do
34657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34658     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
34659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34660     break 2
34661   fi
34662 done
34663 done
34664 IFS=$as_save_IFS
34665
34666 fi
34667 fi
34668 RANLIB=$ac_cv_prog_RANLIB
34669 if test -n "$RANLIB"; then
34670   { echo "$as_me:$LINENO: result: $RANLIB" >&5
34671 echo "${ECHO_T}$RANLIB" >&6; }
34672 else
34673   { echo "$as_me:$LINENO: result: no" >&5
34674 echo "${ECHO_T}no" >&6; }
34675 fi
34676
34677
34678 fi
34679 if test -z "$ac_cv_prog_RANLIB"; then
34680   ac_ct_RANLIB=$RANLIB
34681   # Extract the first word of "ranlib", so it can be a program name with args.
34682 set dummy ranlib; ac_word=$2
34683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34685 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
34686   echo $ECHO_N "(cached) $ECHO_C" >&6
34687 else
34688   if test -n "$ac_ct_RANLIB"; then
34689   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
34690 else
34691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34692 for as_dir in $PATH
34693 do
34694   IFS=$as_save_IFS
34695   test -z "$as_dir" && as_dir=.
34696   for ac_exec_ext in '' $ac_executable_extensions; do
34697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34698     ac_cv_prog_ac_ct_RANLIB="ranlib"
34699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34700     break 2
34701   fi
34702 done
34703 done
34704 IFS=$as_save_IFS
34705
34706 fi
34707 fi
34708 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
34709 if test -n "$ac_ct_RANLIB"; then
34710   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
34711 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
34712 else
34713   { echo "$as_me:$LINENO: result: no" >&5
34714 echo "${ECHO_T}no" >&6; }
34715 fi
34716
34717   if test "x$ac_ct_RANLIB" = x; then
34718     RANLIB=":"
34719   else
34720     case $cross_compiling:$ac_tool_warned in
34721 yes:)
34722 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34723 whose name does not start with the host triplet.  If you think this
34724 configuration is useful to you, please write to autoconf@gnu.org." >&5
34725 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34726 whose name does not start with the host triplet.  If you think this
34727 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34728 ac_tool_warned=yes ;;
34729 esac
34730     RANLIB=$ac_ct_RANLIB
34731   fi
34732 else
34733   RANLIB="$ac_cv_prog_RANLIB"
34734 fi
34735
34736 if test -n "$ac_tool_prefix"; then
34737   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
34738 set dummy ${ac_tool_prefix}strip; ac_word=$2
34739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34741 if test "${ac_cv_prog_STRIP+set}" = set; then
34742   echo $ECHO_N "(cached) $ECHO_C" >&6
34743 else
34744   if test -n "$STRIP"; then
34745   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
34746 else
34747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34748 for as_dir in $PATH
34749 do
34750   IFS=$as_save_IFS
34751   test -z "$as_dir" && as_dir=.
34752   for ac_exec_ext in '' $ac_executable_extensions; do
34753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34754     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
34755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34756     break 2
34757   fi
34758 done
34759 done
34760 IFS=$as_save_IFS
34761
34762 fi
34763 fi
34764 STRIP=$ac_cv_prog_STRIP
34765 if test -n "$STRIP"; then
34766   { echo "$as_me:$LINENO: result: $STRIP" >&5
34767 echo "${ECHO_T}$STRIP" >&6; }
34768 else
34769   { echo "$as_me:$LINENO: result: no" >&5
34770 echo "${ECHO_T}no" >&6; }
34771 fi
34772
34773
34774 fi
34775 if test -z "$ac_cv_prog_STRIP"; then
34776   ac_ct_STRIP=$STRIP
34777   # Extract the first word of "strip", so it can be a program name with args.
34778 set dummy strip; ac_word=$2
34779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34781 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
34782   echo $ECHO_N "(cached) $ECHO_C" >&6
34783 else
34784   if test -n "$ac_ct_STRIP"; then
34785   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
34786 else
34787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34788 for as_dir in $PATH
34789 do
34790   IFS=$as_save_IFS
34791   test -z "$as_dir" && as_dir=.
34792   for ac_exec_ext in '' $ac_executable_extensions; do
34793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34794     ac_cv_prog_ac_ct_STRIP="strip"
34795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34796     break 2
34797   fi
34798 done
34799 done
34800 IFS=$as_save_IFS
34801
34802 fi
34803 fi
34804 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
34805 if test -n "$ac_ct_STRIP"; then
34806   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
34807 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
34808 else
34809   { echo "$as_me:$LINENO: result: no" >&5
34810 echo "${ECHO_T}no" >&6; }
34811 fi
34812
34813   if test "x$ac_ct_STRIP" = x; then
34814     STRIP=":"
34815   else
34816     case $cross_compiling:$ac_tool_warned in
34817 yes:)
34818 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34819 whose name does not start with the host triplet.  If you think this
34820 configuration is useful to you, please write to autoconf@gnu.org." >&5
34821 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34822 whose name does not start with the host triplet.  If you think this
34823 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34824 ac_tool_warned=yes ;;
34825 esac
34826     STRIP=$ac_ct_STRIP
34827   fi
34828 else
34829   STRIP="$ac_cv_prog_STRIP"
34830 fi
34831
34832
34833 old_CC="$CC"
34834 old_CFLAGS="$CFLAGS"
34835
34836 # Set sane defaults for various variables
34837 test -z "$AR" && AR=ar
34838 test -z "$AR_FLAGS" && AR_FLAGS=cru
34839 test -z "$AS" && AS=as
34840 test -z "$CC" && CC=cc
34841 test -z "$LTCC" && LTCC=$CC
34842 test -z "$DLLTOOL" && DLLTOOL=dlltool
34843 test -z "$LD" && LD=ld
34844 test -z "$LN_S" && LN_S="ln -s"
34845 test -z "$MAGIC_CMD" && MAGIC_CMD=file
34846 test -z "$NM" && NM=nm
34847 test -z "$SED" && SED=sed
34848 test -z "$OBJDUMP" && OBJDUMP=objdump
34849 test -z "$RANLIB" && RANLIB=:
34850 test -z "$STRIP" && STRIP=:
34851 test -z "$ac_objext" && ac_objext=o
34852
34853 # Determine commands to create old-style static archives.
34854 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
34855 old_postinstall_cmds='chmod 644 $oldlib'
34856 old_postuninstall_cmds=
34857
34858 if test -n "$RANLIB"; then
34859   case $host_os in
34860   openbsd*)
34861     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
34862     ;;
34863   *)
34864     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
34865     ;;
34866   esac
34867   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
34868 fi
34869
34870 for cc_temp in $compiler""; do
34871   case $cc_temp in
34872     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
34873     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
34874     \-*) ;;
34875     *) break;;
34876   esac
34877 done
34878 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
34879
34880
34881 # Only perform the check for file, if the check method requires it
34882 case $deplibs_check_method in
34883 file_magic*)
34884   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
34885     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
34886 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
34887 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
34888   echo $ECHO_N "(cached) $ECHO_C" >&6
34889 else
34890   case $MAGIC_CMD in
34891 [\\/*] |  ?:[\\/]*)
34892   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
34893   ;;
34894 *)
34895   lt_save_MAGIC_CMD="$MAGIC_CMD"
34896   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
34897   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
34898   for ac_dir in $ac_dummy; do
34899     IFS="$lt_save_ifs"
34900     test -z "$ac_dir" && ac_dir=.
34901     if test -f $ac_dir/${ac_tool_prefix}file; then
34902       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
34903       if test -n "$file_magic_test_file"; then
34904         case $deplibs_check_method in
34905         "file_magic "*)
34906           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
34907           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
34908           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
34909             $EGREP "$file_magic_regex" > /dev/null; then
34910             :
34911           else
34912             cat <<EOF 1>&2
34913
34914 *** Warning: the command libtool uses to detect shared libraries,
34915 *** $file_magic_cmd, produces output that libtool cannot recognize.
34916 *** The result is that libtool may fail to recognize shared libraries
34917 *** as such.  This will affect the creation of libtool libraries that
34918 *** depend on shared libraries, but programs linked with such libtool
34919 *** libraries will work regardless of this problem.  Nevertheless, you
34920 *** may want to report the problem to your system manager and/or to
34921 *** bug-libtool@gnu.org
34922
34923 EOF
34924           fi ;;
34925         esac
34926       fi
34927       break
34928     fi
34929   done
34930   IFS="$lt_save_ifs"
34931   MAGIC_CMD="$lt_save_MAGIC_CMD"
34932   ;;
34933 esac
34934 fi
34935
34936 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
34937 if test -n "$MAGIC_CMD"; then
34938   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
34939 echo "${ECHO_T}$MAGIC_CMD" >&6; }
34940 else
34941   { echo "$as_me:$LINENO: result: no" >&5
34942 echo "${ECHO_T}no" >&6; }
34943 fi
34944
34945 if test -z "$lt_cv_path_MAGIC_CMD"; then
34946   if test -n "$ac_tool_prefix"; then
34947     { echo "$as_me:$LINENO: checking for file" >&5
34948 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
34949 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
34950   echo $ECHO_N "(cached) $ECHO_C" >&6
34951 else
34952   case $MAGIC_CMD in
34953 [\\/*] |  ?:[\\/]*)
34954   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
34955   ;;
34956 *)
34957   lt_save_MAGIC_CMD="$MAGIC_CMD"
34958   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
34959   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
34960   for ac_dir in $ac_dummy; do
34961     IFS="$lt_save_ifs"
34962     test -z "$ac_dir" && ac_dir=.
34963     if test -f $ac_dir/file; then
34964       lt_cv_path_MAGIC_CMD="$ac_dir/file"
34965       if test -n "$file_magic_test_file"; then
34966         case $deplibs_check_method in
34967         "file_magic "*)
34968           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
34969           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
34970           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
34971             $EGREP "$file_magic_regex" > /dev/null; then
34972             :
34973           else
34974             cat <<EOF 1>&2
34975
34976 *** Warning: the command libtool uses to detect shared libraries,
34977 *** $file_magic_cmd, produces output that libtool cannot recognize.
34978 *** The result is that libtool may fail to recognize shared libraries
34979 *** as such.  This will affect the creation of libtool libraries that
34980 *** depend on shared libraries, but programs linked with such libtool
34981 *** libraries will work regardless of this problem.  Nevertheless, you
34982 *** may want to report the problem to your system manager and/or to
34983 *** bug-libtool@gnu.org
34984
34985 EOF
34986           fi ;;
34987         esac
34988       fi
34989       break
34990     fi
34991   done
34992   IFS="$lt_save_ifs"
34993   MAGIC_CMD="$lt_save_MAGIC_CMD"
34994   ;;
34995 esac
34996 fi
34997
34998 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
34999 if test -n "$MAGIC_CMD"; then
35000   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
35001 echo "${ECHO_T}$MAGIC_CMD" >&6; }
35002 else
35003   { echo "$as_me:$LINENO: result: no" >&5
35004 echo "${ECHO_T}no" >&6; }
35005 fi
35006
35007   else
35008     MAGIC_CMD=:
35009   fi
35010 fi
35011
35012   fi
35013   ;;
35014 esac
35015
35016 enable_dlopen=no
35017 enable_win32_dll=no
35018
35019 # Check whether --enable-libtool-lock was given.
35020 if test "${enable_libtool_lock+set}" = set; then
35021   enableval=$enable_libtool_lock;
35022 fi
35023
35024 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
35025
35026
35027 # Check whether --with-pic was given.
35028 if test "${with_pic+set}" = set; then
35029   withval=$with_pic; pic_mode="$withval"
35030 else
35031   pic_mode=default
35032 fi
35033
35034 test -z "$pic_mode" && pic_mode=default
35035
35036 # Use C for the default configuration in the libtool script
35037 tagname=
35038 lt_save_CC="$CC"
35039 ac_ext=c
35040 ac_cpp='$CPP $CPPFLAGS'
35041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35044
35045
35046 # Source file extension for C test sources.
35047 ac_ext=c
35048
35049 # Object file extension for compiled C test sources.
35050 objext=o
35051 objext=$objext
35052
35053 # Code to be used in simple compile tests
35054 lt_simple_compile_test_code="int some_variable = 0;\n"
35055
35056 # Code to be used in simple link tests
35057 lt_simple_link_test_code='int main(){return(0);}\n'
35058
35059
35060 # If no C compiler was specified, use CC.
35061 LTCC=${LTCC-"$CC"}
35062
35063 # Allow CC to be a program name with arguments.
35064 compiler=$CC
35065
35066
35067 # save warnings/boilerplate of simple test code
35068 ac_outfile=conftest.$ac_objext
35069 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
35070 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
35071 _lt_compiler_boilerplate=`cat conftest.err`
35072 $rm conftest*
35073
35074 ac_outfile=conftest.$ac_objext
35075 printf "$lt_simple_link_test_code" >conftest.$ac_ext
35076 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
35077 _lt_linker_boilerplate=`cat conftest.err`
35078 $rm conftest*
35079
35080
35081 #
35082 # Check for any special shared library compilation flags.
35083 #
35084 lt_prog_cc_shlib=
35085 if test "$GCC" = no; then
35086   case $host_os in
35087   sco3.2v5*)
35088     lt_prog_cc_shlib='-belf'
35089     ;;
35090   esac
35091 fi
35092 if test -n "$lt_prog_cc_shlib"; then
35093
35094     { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
35095 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
35096
35097
35098     cat <<AAW_EOF >>config.warnings
35099 \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries
35100 AAW_EOF
35101
35102
35103   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
35104   else
35105
35106     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
35107 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
35108
35109
35110     cat <<AAW_EOF >>config.warnings
35111 add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure
35112 AAW_EOF
35113
35114
35115     lt_cv_prog_cc_can_build_shared=no
35116   fi
35117 fi
35118
35119
35120 #
35121 # Check to make sure the static flag actually works.
35122 #
35123 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
35124 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
35125 if test "${lt_prog_compiler_static_works+set}" = set; then
35126   echo $ECHO_N "(cached) $ECHO_C" >&6
35127 else
35128   lt_prog_compiler_static_works=no
35129    save_LDFLAGS="$LDFLAGS"
35130    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
35131    printf "$lt_simple_link_test_code" > conftest.$ac_ext
35132    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
35133      # The linker can only warn and ignore the option if not recognized
35134      # So say no if there are warnings
35135      if test -s conftest.err; then
35136        # Append any errors to the config.log.
35137        cat conftest.err 1>&5
35138        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
35139        $SED '/^$/d' conftest.err >conftest.er2
35140        if diff conftest.exp conftest.er2 >/dev/null; then
35141          lt_prog_compiler_static_works=yes
35142        fi
35143      else
35144        lt_prog_compiler_static_works=yes
35145      fi
35146    fi
35147    $rm conftest*
35148    LDFLAGS="$save_LDFLAGS"
35149
35150 fi
35151 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
35152 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
35153
35154 if test x"$lt_prog_compiler_static_works" = xyes; then
35155     :
35156 else
35157     lt_prog_compiler_static=
35158 fi
35159
35160
35161
35162 ## CAVEAT EMPTOR:
35163 ## There is no encapsulation within the following macros, do not change
35164 ## the running order or otherwise move them around unless you know exactly
35165 ## what you are doing...
35166
35167 lt_prog_compiler_no_builtin_flag=
35168
35169 if test "$GCC" = yes; then
35170   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
35171
35172
35173 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
35174 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
35175 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
35176   echo $ECHO_N "(cached) $ECHO_C" >&6
35177 else
35178   lt_cv_prog_compiler_rtti_exceptions=no
35179   ac_outfile=conftest.$ac_objext
35180    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
35181    lt_compiler_flag="-fno-rtti -fno-exceptions"
35182    # Insert the option either (1) after the last *FLAGS variable, or
35183    # (2) before a word containing "conftest.", or (3) at the end.
35184    # Note that $ac_compile itself does not contain backslashes and begins
35185    # with a dollar sign (not a hyphen), so the echo should work correctly.
35186    # The option is referenced via a variable to avoid confusing sed.
35187    lt_compile=`echo "$ac_compile" | $SED \
35188    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
35189    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
35190    -e 's:$: $lt_compiler_flag:'`
35191    (eval echo "\"\$as_me:35191: $lt_compile\"" >&5)
35192    (eval "$lt_compile" 2>conftest.err)
35193    ac_status=$?
35194    cat conftest.err >&5
35195    echo "$as_me:35195: \$? = $ac_status" >&5
35196    if (exit $ac_status) && test -s "$ac_outfile"; then
35197      # The compiler can only warn and ignore the option if not recognized
35198      # So say no if there are warnings other than the usual output.
35199      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
35200      $SED '/^$/d' conftest.err >conftest.er2
35201      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
35202        lt_cv_prog_compiler_rtti_exceptions=yes
35203      fi
35204    fi
35205    $rm conftest*
35206
35207 fi
35208 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
35209 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
35210
35211 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
35212     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
35213 else
35214     :
35215 fi
35216
35217 fi
35218
35219 lt_prog_compiler_wl=
35220 lt_prog_compiler_pic=
35221 lt_prog_compiler_static=
35222
35223 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
35224 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
35225
35226   if test "$GCC" = yes; then
35227     lt_prog_compiler_wl='-Wl,'
35228     lt_prog_compiler_static='-static'
35229
35230     case $host_os in
35231       aix*)
35232       # All AIX code is PIC.
35233       if test "$host_cpu" = ia64; then
35234         # AIX 5 now supports IA64 processor
35235         lt_prog_compiler_static='-Bstatic'
35236       fi
35237       ;;
35238
35239     amigaos*)
35240       # FIXME: we need at least 68020 code to build shared libraries, but
35241       # adding the `-m68020' flag to GCC prevents building anything better,
35242       # like `-m68040'.
35243       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
35244       ;;
35245
35246     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
35247       # PIC is the default for these OSes.
35248       ;;
35249
35250     mingw* | pw32* | os2*)
35251       # This hack is so that the source file can tell whether it is being
35252       # built for inclusion in a dll (and should export symbols for example).
35253       lt_prog_compiler_pic='-DDLL_EXPORT'
35254       ;;
35255
35256     darwin* | rhapsody*)
35257       # PIC is the default on this platform
35258       # Common symbols not allowed in MH_DYLIB files
35259       lt_prog_compiler_pic='-fno-common'
35260       ;;
35261
35262     msdosdjgpp*)
35263       # Just because we use GCC doesn't mean we suddenly get shared libraries
35264       # on systems that don't support them.
35265       lt_prog_compiler_can_build_shared=no
35266       enable_shared=no
35267       ;;
35268
35269     sysv4*MP*)
35270       if test -d /usr/nec; then
35271         lt_prog_compiler_pic=-Kconform_pic
35272       fi
35273       ;;
35274
35275     hpux*)
35276       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
35277       # not for PA HP-UX.
35278       case $host_cpu in
35279       hppa*64*|ia64*)
35280         # +Z the default
35281         ;;
35282       *)
35283         lt_prog_compiler_pic='-fPIC'
35284         ;;
35285       esac
35286       ;;
35287
35288     *)
35289       lt_prog_compiler_pic='-fPIC'
35290       ;;
35291     esac
35292   else
35293     # PORTME Check for flag to pass linker flags through the system compiler.
35294     case $host_os in
35295     aix*)
35296       lt_prog_compiler_wl='-Wl,'
35297       if test "$host_cpu" = ia64; then
35298         # AIX 5 now supports IA64 processor
35299         lt_prog_compiler_static='-Bstatic'
35300       else
35301         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
35302       fi
35303       ;;
35304       darwin*)
35305         # PIC is the default on this platform
35306         # Common symbols not allowed in MH_DYLIB files
35307        case $cc_basename in
35308          xlc*)
35309          lt_prog_compiler_pic='-qnocommon'
35310          lt_prog_compiler_wl='-Wl,'
35311          ;;
35312        esac
35313        ;;
35314
35315     mingw* | pw32* | os2*)
35316       # This hack is so that the source file can tell whether it is being
35317       # built for inclusion in a dll (and should export symbols for example).
35318       lt_prog_compiler_pic='-DDLL_EXPORT'
35319       ;;
35320
35321     hpux9* | hpux10* | hpux11*)
35322       lt_prog_compiler_wl='-Wl,'
35323       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
35324       # not for PA HP-UX.
35325       case $host_cpu in
35326       hppa*64*|ia64*)
35327         # +Z the default
35328         ;;
35329       *)
35330         lt_prog_compiler_pic='+Z'
35331         ;;
35332       esac
35333       # Is there a better lt_prog_compiler_static that works with the bundled CC?
35334       lt_prog_compiler_static='${wl}-a ${wl}archive'
35335       ;;
35336
35337     irix5* | irix6* | nonstopux*)
35338       lt_prog_compiler_wl='-Wl,'
35339       # PIC (with -KPIC) is the default.
35340       lt_prog_compiler_static='-non_shared'
35341       ;;
35342
35343     newsos6)
35344       lt_prog_compiler_pic='-KPIC'
35345       lt_prog_compiler_static='-Bstatic'
35346       ;;
35347
35348     linux*)
35349       case $cc_basename in
35350       icc* | ecc*)
35351         lt_prog_compiler_wl='-Wl,'
35352         lt_prog_compiler_pic='-KPIC'
35353         lt_prog_compiler_static='-static'
35354         ;;
35355       pgcc* | pgf77* | pgf90* | pgf95*)
35356         # Portland Group compilers (*not* the Pentium gcc compiler,
35357         # which looks to be a dead project)
35358         lt_prog_compiler_wl='-Wl,'
35359         lt_prog_compiler_pic='-fpic'
35360         lt_prog_compiler_static='-Bstatic'
35361         ;;
35362       ccc*)
35363         lt_prog_compiler_wl='-Wl,'
35364         # All Alpha code is PIC.
35365         lt_prog_compiler_static='-non_shared'
35366         ;;
35367       esac
35368       ;;
35369
35370     osf3* | osf4* | osf5*)
35371       lt_prog_compiler_wl='-Wl,'
35372       # All OSF/1 code is PIC.
35373       lt_prog_compiler_static='-non_shared'
35374       ;;
35375
35376     sco3.2v5*)
35377       lt_prog_compiler_pic='-Kpic'
35378       lt_prog_compiler_static='-dn'
35379       ;;
35380
35381     solaris*)
35382       lt_prog_compiler_pic='-KPIC'
35383       lt_prog_compiler_static='-Bstatic'
35384       case $cc_basename in
35385       f77* | f90* | f95*)
35386         lt_prog_compiler_wl='-Qoption ld ';;
35387       *)
35388         lt_prog_compiler_wl='-Wl,';;
35389       esac
35390       ;;
35391
35392     sunos4*)
35393       lt_prog_compiler_wl='-Qoption ld '
35394       lt_prog_compiler_pic='-PIC'
35395       lt_prog_compiler_static='-Bstatic'
35396       ;;
35397
35398     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
35399       lt_prog_compiler_wl='-Wl,'
35400       lt_prog_compiler_pic='-KPIC'
35401       lt_prog_compiler_static='-Bstatic'
35402       ;;
35403
35404     sysv4*MP*)
35405       if test -d /usr/nec ;then
35406         lt_prog_compiler_pic='-Kconform_pic'
35407         lt_prog_compiler_static='-Bstatic'
35408       fi
35409       ;;
35410
35411     unicos*)
35412       lt_prog_compiler_wl='-Wl,'
35413       lt_prog_compiler_can_build_shared=no
35414       ;;
35415
35416     uts4*)
35417       lt_prog_compiler_pic='-pic'
35418       lt_prog_compiler_static='-Bstatic'
35419       ;;
35420
35421     *)
35422       lt_prog_compiler_can_build_shared=no
35423       ;;
35424     esac
35425   fi
35426
35427 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
35428 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
35429
35430 #
35431 # Check to make sure the PIC flag actually works.
35432 #
35433 if test -n "$lt_prog_compiler_pic"; then
35434
35435 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
35436 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
35437 if test "${lt_prog_compiler_pic_works+set}" = set; then
35438   echo $ECHO_N "(cached) $ECHO_C" >&6
35439 else
35440   lt_prog_compiler_pic_works=no
35441   ac_outfile=conftest.$ac_objext
35442    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
35443    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
35444    # Insert the option either (1) after the last *FLAGS variable, or
35445    # (2) before a word containing "conftest.", or (3) at the end.
35446    # Note that $ac_compile itself does not contain backslashes and begins
35447    # with a dollar sign (not a hyphen), so the echo should work correctly.
35448    # The option is referenced via a variable to avoid confusing sed.
35449    lt_compile=`echo "$ac_compile" | $SED \
35450    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
35451    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
35452    -e 's:$: $lt_compiler_flag:'`
35453    (eval echo "\"\$as_me:35453: $lt_compile\"" >&5)
35454    (eval "$lt_compile" 2>conftest.err)
35455    ac_status=$?
35456    cat conftest.err >&5
35457    echo "$as_me:35457: \$? = $ac_status" >&5
35458    if (exit $ac_status) && test -s "$ac_outfile"; then
35459      # The compiler can only warn and ignore the option if not recognized
35460      # So say no if there are warnings other than the usual output.
35461      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
35462      $SED '/^$/d' conftest.err >conftest.er2
35463      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
35464        lt_prog_compiler_pic_works=yes
35465      fi
35466    fi
35467    $rm conftest*
35468
35469 fi
35470 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
35471 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
35472
35473 if test x"$lt_prog_compiler_pic_works" = xyes; then
35474     case $lt_prog_compiler_pic in
35475      "" | " "*) ;;
35476      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
35477      esac
35478 else
35479     lt_prog_compiler_pic=
35480      lt_prog_compiler_can_build_shared=no
35481 fi
35482
35483 fi
35484 case $host_os in
35485   # For platforms which do not support PIC, -DPIC is meaningless:
35486   *djgpp*)
35487     lt_prog_compiler_pic=
35488     ;;
35489   *)
35490     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
35491     ;;
35492 esac
35493
35494 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
35495 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
35496 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
35497   echo $ECHO_N "(cached) $ECHO_C" >&6
35498 else
35499   lt_cv_prog_compiler_c_o=no
35500    $rm -r conftest 2>/dev/null
35501    mkdir conftest
35502    cd conftest
35503    mkdir out
35504    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
35505
35506    lt_compiler_flag="-o out/conftest2.$ac_objext"
35507    # Insert the option either (1) after the last *FLAGS variable, or
35508    # (2) before a word containing "conftest.", or (3) at the end.
35509    # Note that $ac_compile itself does not contain backslashes and begins
35510    # with a dollar sign (not a hyphen), so the echo should work correctly.
35511    lt_compile=`echo "$ac_compile" | $SED \
35512    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
35513    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
35514    -e 's:$: $lt_compiler_flag:'`
35515    (eval echo "\"\$as_me:35515: $lt_compile\"" >&5)
35516    (eval "$lt_compile" 2>out/conftest.err)
35517    ac_status=$?
35518    cat out/conftest.err >&5
35519    echo "$as_me:35519: \$? = $ac_status" >&5
35520    if (exit $ac_status) && test -s out/conftest2.$ac_objext
35521    then
35522      # The compiler can only warn and ignore the option if not recognized
35523      # So say no if there are warnings
35524      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
35525      $SED '/^$/d' out/conftest.err >out/conftest.er2
35526      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
35527        lt_cv_prog_compiler_c_o=yes
35528      fi
35529    fi
35530    chmod u+w . 2>&5
35531    $rm conftest*
35532    # SGI C++ compiler will create directory out/ii_files/ for
35533    # template instantiation
35534    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
35535    $rm out/* && rmdir out
35536    cd ..
35537    rmdir conftest
35538    $rm conftest*
35539
35540 fi
35541 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
35542 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
35543
35544
35545 hard_links="nottested"
35546 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
35547   # do not overwrite the value of need_locks provided by the user
35548   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
35549 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
35550   hard_links=yes
35551   $rm conftest*
35552   ln conftest.a conftest.b 2>/dev/null && hard_links=no
35553   touch conftest.a
35554   ln conftest.a conftest.b 2>&5 || hard_links=no
35555   ln conftest.a conftest.b 2>/dev/null && hard_links=no
35556   { echo "$as_me:$LINENO: result: $hard_links" >&5
35557 echo "${ECHO_T}$hard_links" >&6; }
35558   if test "$hard_links" = no; then
35559
35560     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
35561 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
35562
35563
35564     cat <<AAW_EOF >>config.warnings
35565 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
35566 AAW_EOF
35567
35568
35569     need_locks=warn
35570   fi
35571 else
35572   need_locks=no
35573 fi
35574
35575 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
35576 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
35577
35578   runpath_var=
35579   allow_undefined_flag=
35580   enable_shared_with_static_runtimes=no
35581   archive_cmds=
35582   archive_expsym_cmds=
35583   old_archive_From_new_cmds=
35584   old_archive_from_expsyms_cmds=
35585   export_dynamic_flag_spec=
35586   whole_archive_flag_spec=
35587   thread_safe_flag_spec=
35588   hardcode_libdir_flag_spec=
35589   hardcode_libdir_flag_spec_ld=
35590   hardcode_libdir_separator=
35591   hardcode_direct=no
35592   hardcode_minus_L=no
35593   hardcode_shlibpath_var=unsupported
35594   link_all_deplibs=unknown
35595   hardcode_automatic=no
35596   module_cmds=
35597   module_expsym_cmds=
35598   always_export_symbols=no
35599   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
35600   # include_expsyms should be a list of space-separated symbols to be *always*
35601   # included in the symbol list
35602   include_expsyms=
35603   # exclude_expsyms can be an extended regexp of symbols to exclude
35604   # it will be wrapped by ` (' and `)$', so one must not match beginning or
35605   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
35606   # as well as any symbol that contains `d'.
35607   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
35608   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
35609   # platforms (ab)use it in PIC code, but their linkers get confused if
35610   # the symbol is explicitly referenced.  Since portable code cannot
35611   # rely on this symbol name, it's probably fine to never include it in
35612   # preloaded symbol tables.
35613   extract_expsyms_cmds=
35614   # Just being paranoid about ensuring that cc_basename is set.
35615   for cc_temp in $compiler""; do
35616   case $cc_temp in
35617     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35618     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35619     \-*) ;;
35620     *) break;;
35621   esac
35622 done
35623 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
35624
35625   case $host_os in
35626   cygwin* | mingw* | pw32*)
35627     # FIXME: the MSVC++ port hasn't been tested in a loooong time
35628     # When not using gcc, we currently assume that we are using
35629     # Microsoft Visual C++.
35630     if test "$GCC" != yes; then
35631       with_gnu_ld=no
35632     fi
35633     ;;
35634   openbsd*)
35635     with_gnu_ld=no
35636     ;;
35637   esac
35638
35639   ld_shlibs=yes
35640   if test "$with_gnu_ld" = yes; then
35641     # If archive_cmds runs LD, not CC, wlarc should be empty
35642     wlarc='${wl}'
35643
35644     # Set some defaults for GNU ld with shared library support. These
35645     # are reset later if shared libraries are not supported. Putting them
35646     # here allows them to be overridden if necessary.
35647     runpath_var=LD_RUN_PATH
35648     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
35649     export_dynamic_flag_spec='${wl}--export-dynamic'
35650     # ancient GNU ld didn't support --whole-archive et. al.
35651     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
35652         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
35653       else
35654         whole_archive_flag_spec=
35655     fi
35656     supports_anon_versioning=no
35657     case `$LD -v 2>/dev/null` in
35658       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
35659       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
35660       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
35661       *\ 2.11.*) ;; # other 2.11 versions
35662       *) supports_anon_versioning=yes ;;
35663     esac
35664
35665     # See if GNU ld supports shared libraries.
35666     case $host_os in
35667     aix3* | aix4* | aix5*)
35668       # On AIX/PPC, the GNU linker is very broken
35669       if test "$host_cpu" != ia64; then
35670         ld_shlibs=no
35671         cat <<EOF 1>&2
35672
35673 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
35674 *** to be unable to reliably create shared libraries on AIX.
35675 *** Therefore, libtool is disabling shared libraries support.  If you
35676 *** really care for shared libraries, you may want to modify your PATH
35677 *** so that a non-GNU linker is found, and then restart.
35678
35679 EOF
35680       fi
35681       ;;
35682
35683     amigaos*)
35684       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)'
35685       hardcode_libdir_flag_spec='-L$libdir'
35686       hardcode_minus_L=yes
35687
35688       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
35689       # that the semantics of dynamic libraries on AmigaOS, at least up
35690       # to version 4, is to share data among multiple programs linked
35691       # with the same dynamic library.  Since this doesn't match the
35692       # behavior of shared libraries on other platforms, we can't use
35693       # them.
35694       ld_shlibs=no
35695       ;;
35696
35697     beos*)
35698       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35699         allow_undefined_flag=unsupported
35700         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
35701         # support --undefined.  This deserves some investigation.  FIXME
35702         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35703       else
35704         ld_shlibs=no
35705       fi
35706       ;;
35707
35708     cygwin* | mingw* | pw32*)
35709       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
35710       # as there is no search path for DLLs.
35711       hardcode_libdir_flag_spec='-L$libdir'
35712       allow_undefined_flag=unsupported
35713       always_export_symbols=no
35714       enable_shared_with_static_runtimes=yes
35715       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
35716
35717       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
35718         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
35719         # If the export-symbols file already is a .def file (1st line
35720         # is EXPORTS), use it as is; otherwise, prepend...
35721         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
35722           cp $export_symbols $output_objdir/$soname.def;
35723         else
35724           echo EXPORTS > $output_objdir/$soname.def;
35725           cat $export_symbols >> $output_objdir/$soname.def;
35726         fi~
35727         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
35728       else
35729         ld_shlibs=no
35730       fi
35731       ;;
35732
35733     linux*)
35734       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35735         tmp_addflag=
35736         case $cc_basename,$host_cpu in
35737         pgcc*)                          # Portland Group C compiler
35738           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'
35739           tmp_addflag=' $pic_flag'
35740           ;;
35741         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
35742           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'
35743           tmp_addflag=' $pic_flag -Mnomain' ;;
35744         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
35745           tmp_addflag=' -i_dynamic' ;;
35746         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
35747           tmp_addflag=' -i_dynamic -nofor_main' ;;
35748         ifc* | ifort*)                  # Intel Fortran compiler
35749           tmp_addflag=' -nofor_main' ;;
35750         esac
35751         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35752
35753         if test $supports_anon_versioning = yes; then
35754           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
35755   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
35756   $echo "local: *; };" >> $output_objdir/$libname.ver~
35757           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
35758         fi
35759       else
35760         ld_shlibs=no
35761       fi
35762       ;;
35763
35764     netbsd*)
35765       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
35766         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
35767         wlarc=
35768       else
35769         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35770         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
35771       fi
35772       ;;
35773
35774     solaris* | sysv5*)
35775       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
35776         ld_shlibs=no
35777         cat <<EOF 1>&2
35778
35779 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
35780 *** create shared libraries on Solaris systems.  Therefore, libtool
35781 *** is disabling shared libraries support.  We urge you to upgrade GNU
35782 *** binutils to release 2.9.1 or newer.  Another option is to modify
35783 *** your PATH or compiler configuration so that the native linker is
35784 *** used, and then restart.
35785
35786 EOF
35787       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35788         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35789         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
35790       else
35791         ld_shlibs=no
35792       fi
35793       ;;
35794
35795     sunos4*)
35796       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
35797       wlarc=
35798       hardcode_direct=yes
35799       hardcode_shlibpath_var=no
35800       ;;
35801
35802     *)
35803       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35804         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35805         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
35806       else
35807         ld_shlibs=no
35808       fi
35809       ;;
35810     esac
35811
35812     if test "$ld_shlibs" = no; then
35813       runpath_var=
35814       hardcode_libdir_flag_spec=
35815       export_dynamic_flag_spec=
35816       whole_archive_flag_spec=
35817     fi
35818   else
35819     # PORTME fill in a description of your system's linker (not GNU ld)
35820     case $host_os in
35821     aix3*)
35822       allow_undefined_flag=unsupported
35823       always_export_symbols=yes
35824       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'
35825       # Note: this linker hardcodes the directories in LIBPATH if there
35826       # are no directories specified by -L.
35827       hardcode_minus_L=yes
35828       if test "$GCC" = yes && test -z "$link_static_flag"; then
35829         # Neither direct hardcoding nor static linking is supported with a
35830         # broken collect2.
35831         hardcode_direct=unsupported
35832       fi
35833       ;;
35834
35835     aix4* | aix5*)
35836       if test "$host_cpu" = ia64; then
35837         # On IA64, the linker does run time linking by default, so we don't
35838         # have to do anything special.
35839         aix_use_runtimelinking=no
35840         exp_sym_flag='-Bexport'
35841         no_entry_flag=""
35842       else
35843         # If we're using GNU nm, then we don't want the "-C" option.
35844         # -C means demangle to AIX nm, but means don't demangle with GNU nm
35845         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
35846           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'
35847         else
35848           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'
35849         fi
35850         aix_use_runtimelinking=no
35851
35852         # Test if we are trying to use run time linking or normal
35853         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
35854         # need to do runtime linking.
35855         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
35856           for ld_flag in $LDFLAGS; do
35857           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
35858             aix_use_runtimelinking=yes
35859             break
35860           fi
35861           done
35862         esac
35863
35864         exp_sym_flag='-bexport'
35865         no_entry_flag='-bnoentry'
35866       fi
35867
35868       # When large executables or shared objects are built, AIX ld can
35869       # have problems creating the table of contents.  If linking a library
35870       # or program results in "error TOC overflow" add -mminimal-toc to
35871       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
35872       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
35873
35874       archive_cmds=''
35875       hardcode_direct=yes
35876       hardcode_libdir_separator=':'
35877       link_all_deplibs=yes
35878
35879       if test "$GCC" = yes; then
35880         case $host_os in aix4.[012]|aix4.[012].*)
35881         # We only want to do this on AIX 4.2 and lower, the check
35882         # below for broken collect2 doesn't work under 4.3+
35883           collect2name=`${CC} -print-prog-name=collect2`
35884           if test -f "$collect2name" && \
35885            strings "$collect2name" | grep resolve_lib_name >/dev/null
35886           then
35887           # We have reworked collect2
35888           hardcode_direct=yes
35889           else
35890           # We have old collect2
35891           hardcode_direct=unsupported
35892           # It fails to find uninstalled libraries when the uninstalled
35893           # path is not listed in the libpath.  Setting hardcode_minus_L
35894           # to unsupported forces relinking
35895           hardcode_minus_L=yes
35896           hardcode_libdir_flag_spec='-L$libdir'
35897           hardcode_libdir_separator=
35898           fi
35899         esac
35900         shared_flag='-shared'
35901         if test "$aix_use_runtimelinking" = yes; then
35902           shared_flag="$shared_flag "'${wl}-G'
35903         fi
35904       else
35905         # not using gcc
35906         if test "$host_cpu" = ia64; then
35907         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
35908         # chokes on -Wl,-G. The following line is correct:
35909           shared_flag='-G'
35910         else
35911         if test "$aix_use_runtimelinking" = yes; then
35912             shared_flag='${wl}-G'
35913           else
35914             shared_flag='${wl}-bM:SRE'
35915         fi
35916         fi
35917       fi
35918
35919       # It seems that -bexpall does not export symbols beginning with
35920       # underscore (_), so it is better to generate a list of symbols to export.
35921       always_export_symbols=yes
35922       if test "$aix_use_runtimelinking" = yes; then
35923         # Warning - without using the other runtime loading flags (-brtl),
35924         # -berok will link without error, but may produce a broken library.
35925         allow_undefined_flag='-berok'
35926        # Determine the default libpath from the value encoded in an empty executable.
35927        cat >conftest.$ac_ext <<_ACEOF
35928 /* confdefs.h.  */
35929 _ACEOF
35930 cat confdefs.h >>conftest.$ac_ext
35931 cat >>conftest.$ac_ext <<_ACEOF
35932 /* end confdefs.h.  */
35933
35934 int
35935 main ()
35936 {
35937
35938   ;
35939   return 0;
35940 }
35941 _ACEOF
35942 rm -f conftest.$ac_objext conftest$ac_exeext
35943 if { (ac_try="$ac_link"
35944 case "(($ac_try" in
35945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35946   *) ac_try_echo=$ac_try;;
35947 esac
35948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35949   (eval "$ac_link") 2>conftest.er1
35950   ac_status=$?
35951   grep -v '^ *+' conftest.er1 >conftest.err
35952   rm -f conftest.er1
35953   cat conftest.err >&5
35954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35955   (exit $ac_status); } && {
35956          test -z "$ac_c_werror_flag" ||
35957          test ! -s conftest.err
35958        } && test -s conftest$ac_exeext &&
35959        $as_test_x conftest$ac_exeext; then
35960
35961 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
35962 }'`
35963 # Check for a 64-bit object if we didn't find anything.
35964 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
35965 }'`; fi
35966 else
35967   echo "$as_me: failed program was:" >&5
35968 sed 's/^/| /' conftest.$ac_ext >&5
35969
35970
35971 fi
35972
35973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35974       conftest$ac_exeext conftest.$ac_ext
35975 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
35976
35977        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
35978         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
35979        else
35980         if test "$host_cpu" = ia64; then
35981           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
35982           allow_undefined_flag="-z nodefs"
35983           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
35984         else
35985          # Determine the default libpath from the value encoded in an empty executable.
35986          cat >conftest.$ac_ext <<_ACEOF
35987 /* confdefs.h.  */
35988 _ACEOF
35989 cat confdefs.h >>conftest.$ac_ext
35990 cat >>conftest.$ac_ext <<_ACEOF
35991 /* end confdefs.h.  */
35992
35993 int
35994 main ()
35995 {
35996
35997   ;
35998   return 0;
35999 }
36000 _ACEOF
36001 rm -f conftest.$ac_objext conftest$ac_exeext
36002 if { (ac_try="$ac_link"
36003 case "(($ac_try" in
36004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36005   *) ac_try_echo=$ac_try;;
36006 esac
36007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36008   (eval "$ac_link") 2>conftest.er1
36009   ac_status=$?
36010   grep -v '^ *+' conftest.er1 >conftest.err
36011   rm -f conftest.er1
36012   cat conftest.err >&5
36013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36014   (exit $ac_status); } && {
36015          test -z "$ac_c_werror_flag" ||
36016          test ! -s conftest.err
36017        } && test -s conftest$ac_exeext &&
36018        $as_test_x conftest$ac_exeext; then
36019
36020 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
36021 }'`
36022 # Check for a 64-bit object if we didn't find anything.
36023 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
36024 }'`; fi
36025 else
36026   echo "$as_me: failed program was:" >&5
36027 sed 's/^/| /' conftest.$ac_ext >&5
36028
36029
36030 fi
36031
36032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36033       conftest$ac_exeext conftest.$ac_ext
36034 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
36035
36036          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
36037           # Warning - without using the other run time loading flags,
36038           # -berok will link without error, but may produce a broken library.
36039           no_undefined_flag=' ${wl}-bernotok'
36040           allow_undefined_flag=' ${wl}-berok'
36041           # -bexpall does not export symbols beginning with underscore (_)
36042           always_export_symbols=yes
36043           # Exported symbols can be pulled into shared objects from archives
36044           whole_archive_flag_spec=' '
36045           archive_cmds_need_lc=yes
36046           # This is similar to how AIX traditionally builds its shared libraries.
36047           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
36048         fi
36049       fi
36050       ;;
36051
36052     amigaos*)
36053       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)'
36054       hardcode_libdir_flag_spec='-L$libdir'
36055       hardcode_minus_L=yes
36056       # see comment about different semantics on the GNU ld section
36057       ld_shlibs=no
36058       ;;
36059
36060     bsdi[45]*)
36061       export_dynamic_flag_spec=-rdynamic
36062       ;;
36063
36064     cygwin* | mingw* | pw32*)
36065       # When not using gcc, we currently assume that we are using
36066       # Microsoft Visual C++.
36067       # hardcode_libdir_flag_spec is actually meaningless, as there is
36068       # no search path for DLLs.
36069       hardcode_libdir_flag_spec=' '
36070       allow_undefined_flag=unsupported
36071       # Tell ltmain to make .lib files, not .a files.
36072       libext=lib
36073       # Tell ltmain to make .dll files, not .so files.
36074       shrext_cmds=".dll"
36075       # FIXME: Setting linknames here is a bad hack.
36076       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
36077       # The linker will automatically build a .lib file if we build a DLL.
36078       old_archive_From_new_cmds='true'
36079       # FIXME: Should let the user specify the lib program.
36080       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
36081       fix_srcfile_path='`cygpath -w "$srcfile"`'
36082       enable_shared_with_static_runtimes=yes
36083       ;;
36084
36085     darwin* | rhapsody*)
36086       case $host_os in
36087         rhapsody* | darwin1.[012])
36088          allow_undefined_flag='${wl}-undefined ${wl}suppress'
36089          ;;
36090        *) # Darwin 1.3 on
36091          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
36092            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
36093          else
36094            case ${MACOSX_DEPLOYMENT_TARGET} in
36095              10.[012])
36096                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
36097                ;;
36098              10.*)
36099                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
36100                ;;
36101            esac
36102          fi
36103          ;;
36104       esac
36105       archive_cmds_need_lc=no
36106       hardcode_direct=no
36107       hardcode_automatic=yes
36108       hardcode_shlibpath_var=unsupported
36109       whole_archive_flag_spec=''
36110       link_all_deplibs=yes
36111     if test "$GCC" = yes ; then
36112         output_verbose_link_cmd='echo'
36113         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
36114       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
36115       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
36116       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
36117       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
36118     else
36119       case $cc_basename in
36120         xlc*)
36121          output_verbose_link_cmd='echo'
36122          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
36123          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
36124           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
36125          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
36126           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
36127           ;;
36128        *)
36129          ld_shlibs=no
36130           ;;
36131       esac
36132     fi
36133       ;;
36134
36135     dgux*)
36136       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36137       hardcode_libdir_flag_spec='-L$libdir'
36138       hardcode_shlibpath_var=no
36139       ;;
36140
36141     freebsd1*)
36142       ld_shlibs=no
36143       ;;
36144
36145     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
36146     # support.  Future versions do this automatically, but an explicit c++rt0.o
36147     # does not break anything, and helps significantly (at the cost of a little
36148     # extra space).
36149     freebsd2.2*)
36150       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
36151       hardcode_libdir_flag_spec='-R$libdir'
36152       hardcode_direct=yes
36153       hardcode_shlibpath_var=no
36154       ;;
36155
36156     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
36157     freebsd2*)
36158       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
36159       hardcode_direct=yes
36160       hardcode_minus_L=yes
36161       hardcode_shlibpath_var=no
36162       ;;
36163
36164     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
36165     freebsd* | kfreebsd*-gnu | dragonfly*)
36166       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
36167       hardcode_libdir_flag_spec='-R$libdir'
36168       hardcode_direct=yes
36169       hardcode_shlibpath_var=no
36170       ;;
36171
36172     hpux9*)
36173       if test "$GCC" = yes; then
36174         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'
36175       else
36176         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'
36177       fi
36178       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
36179       hardcode_libdir_separator=:
36180       hardcode_direct=yes
36181
36182       # hardcode_minus_L: Not really in the search PATH,
36183       # but as the default location of the library.
36184       hardcode_minus_L=yes
36185       export_dynamic_flag_spec='${wl}-E'
36186       ;;
36187
36188     hpux10* | hpux11*)
36189       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
36190         case $host_cpu in
36191         hppa*64*|ia64*)
36192           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36193           ;;
36194         *)
36195           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
36196           ;;
36197         esac
36198       else
36199         case $host_cpu in
36200         hppa*64*|ia64*)
36201           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
36202           ;;
36203         *)
36204           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
36205           ;;
36206         esac
36207       fi
36208       if test "$with_gnu_ld" = no; then
36209         case $host_cpu in
36210         hppa*64*)
36211           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
36212           hardcode_libdir_flag_spec_ld='+b $libdir'
36213           hardcode_libdir_separator=:
36214           hardcode_direct=no
36215           hardcode_shlibpath_var=no
36216           ;;
36217         ia64*)
36218           hardcode_libdir_flag_spec='-L$libdir'
36219           hardcode_direct=no
36220           hardcode_shlibpath_var=no
36221
36222           # hardcode_minus_L: Not really in the search PATH,
36223           # but as the default location of the library.
36224           hardcode_minus_L=yes
36225           ;;
36226         *)
36227           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
36228           hardcode_libdir_separator=:
36229           hardcode_direct=yes
36230           export_dynamic_flag_spec='${wl}-E'
36231
36232           # hardcode_minus_L: Not really in the search PATH,
36233           # but as the default location of the library.
36234           hardcode_minus_L=yes
36235           ;;
36236         esac
36237       fi
36238       ;;
36239
36240     irix5* | irix6* | nonstopux*)
36241       if test "$GCC" = yes; then
36242         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
36243       else
36244         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
36245         hardcode_libdir_flag_spec_ld='-rpath $libdir'
36246       fi
36247       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
36248       hardcode_libdir_separator=:
36249       link_all_deplibs=yes
36250       ;;
36251
36252     netbsd*)
36253       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
36254         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
36255       else
36256         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
36257       fi
36258       hardcode_libdir_flag_spec='-R$libdir'
36259       hardcode_direct=yes
36260       hardcode_shlibpath_var=no
36261       ;;
36262
36263     newsos6)
36264       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36265       hardcode_direct=yes
36266       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
36267       hardcode_libdir_separator=:
36268       hardcode_shlibpath_var=no
36269       ;;
36270
36271     openbsd*)
36272       hardcode_direct=yes
36273       hardcode_shlibpath_var=no
36274       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
36275         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
36276         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
36277         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
36278         export_dynamic_flag_spec='${wl}-E'
36279       else
36280        case $host_os in
36281          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
36282            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
36283            hardcode_libdir_flag_spec='-R$libdir'
36284            ;;
36285          *)
36286            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
36287            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
36288            ;;
36289        esac
36290       fi
36291       ;;
36292
36293     os2*)
36294       hardcode_libdir_flag_spec='-L$libdir'
36295       hardcode_minus_L=yes
36296       allow_undefined_flag=unsupported
36297       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'
36298       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
36299       ;;
36300
36301     osf3*)
36302       if test "$GCC" = yes; then
36303         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
36304         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
36305       else
36306         allow_undefined_flag=' -expect_unresolved \*'
36307         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
36308       fi
36309       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
36310       hardcode_libdir_separator=:
36311       ;;
36312
36313     osf4* | osf5*)      # as osf3* with the addition of -msym flag
36314       if test "$GCC" = yes; then
36315         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
36316         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
36317         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
36318       else
36319         allow_undefined_flag=' -expect_unresolved \*'
36320         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
36321         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
36322         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
36323
36324         # Both c and cxx compiler support -rpath directly
36325         hardcode_libdir_flag_spec='-rpath $libdir'
36326       fi
36327       hardcode_libdir_separator=:
36328       ;;
36329
36330     sco3.2v5*)
36331       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36332       hardcode_shlibpath_var=no
36333       export_dynamic_flag_spec='${wl}-Bexport'
36334       runpath_var=LD_RUN_PATH
36335       hardcode_runpath_var=yes
36336       ;;
36337
36338     solaris*)
36339       no_undefined_flag=' -z text'
36340       if test "x$archive_cmds" = "x"; then
36341         if test "$GCC" = yes; then
36342           wlarc='${wl}'
36343           if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
36344             archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36345             archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
36346             $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
36347           else
36348             archive_cmds='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36349             archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
36350             $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
36351           fi
36352         else
36353           wlarc=''
36354           lt_prog_compiler_static='-static'
36355           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
36356           archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
36357           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
36358           lt_prog_compiler_static='-static'
36359         fi
36360       fi
36361       hardcode_libdir_flag_spec='-R$libdir'
36362       hardcode_shlibpath_var=no
36363       case $host_os in
36364       solaris2.[0-5] | solaris2.[0-5].*) ;;
36365       *)
36366         # The compiler driver will combine linker options so we
36367         # cannot just pass the convience library names through
36368         # without $wl, iff we do not link with $LD.
36369         # Luckily, gcc supports the same syntax we need for Sun Studio.
36370         # Supported since Solaris 2.6 (maybe 2.5.1?)
36371         case $wlarc in
36372         '')
36373           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
36374         *)
36375           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
36376         esac ;;
36377       esac
36378       link_all_deplibs=yes
36379       ;;
36380
36381     sunos4*)
36382       if test "x$host_vendor" = xsequent; then
36383         # Use $CC to link under sequent, because it throws in some extra .o
36384         # files that make .init and .fini sections work.
36385         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
36386       else
36387         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
36388       fi
36389       hardcode_libdir_flag_spec='-L$libdir'
36390       hardcode_direct=yes
36391       hardcode_minus_L=yes
36392       hardcode_shlibpath_var=no
36393       ;;
36394
36395     sysv4)
36396       case $host_vendor in
36397         sni)
36398           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36399           hardcode_direct=yes # is this really true???
36400         ;;
36401         siemens)
36402           ## LD is ld it makes a PLAMLIB
36403           ## CC just makes a GrossModule.
36404           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
36405           reload_cmds='$CC -r -o $output$reload_objs'
36406           hardcode_direct=no
36407         ;;
36408         motorola)
36409           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36410           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
36411         ;;
36412       esac
36413       runpath_var='LD_RUN_PATH'
36414       hardcode_shlibpath_var=no
36415       ;;
36416
36417     sysv4.3*)
36418       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36419       hardcode_shlibpath_var=no
36420       export_dynamic_flag_spec='-Bexport'
36421       ;;
36422
36423     sysv4*MP*)
36424       if test -d /usr/nec; then
36425         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36426         hardcode_shlibpath_var=no
36427         runpath_var=LD_RUN_PATH
36428         hardcode_runpath_var=yes
36429         ld_shlibs=yes
36430       fi
36431       ;;
36432
36433     sysv4.2uw2*)
36434       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
36435       hardcode_direct=yes
36436       hardcode_minus_L=no
36437       hardcode_shlibpath_var=no
36438       hardcode_runpath_var=yes
36439       runpath_var=LD_RUN_PATH
36440       ;;
36441
36442    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
36443       no_undefined_flag='${wl}-z ${wl}text'
36444       if test "$GCC" = yes; then
36445         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36446       else
36447         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36448       fi
36449       runpath_var='LD_RUN_PATH'
36450       hardcode_shlibpath_var=no
36451       ;;
36452
36453     sysv5*)
36454       no_undefined_flag=' -z text'
36455       # $CC -shared without GNU ld will not create a library from C++
36456       # object files and a static libstdc++, better avoid it by now
36457       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
36458       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
36459                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
36460       hardcode_libdir_flag_spec=
36461       hardcode_shlibpath_var=no
36462       runpath_var='LD_RUN_PATH'
36463       ;;
36464
36465     uts4*)
36466       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36467       hardcode_libdir_flag_spec='-L$libdir'
36468       hardcode_shlibpath_var=no
36469       ;;
36470
36471     *)
36472       ld_shlibs=no
36473       ;;
36474     esac
36475   fi
36476
36477 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
36478 echo "${ECHO_T}$ld_shlibs" >&6; }
36479 test "$ld_shlibs" = no && can_build_shared=no
36480
36481 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
36482 if test "$GCC" = yes; then
36483   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
36484 fi
36485
36486 #
36487 # Do we need to explicitly link libc?
36488 #
36489 case "x$archive_cmds_need_lc" in
36490 x|xyes)
36491   # Assume -lc should be added
36492   archive_cmds_need_lc=yes
36493
36494   if test "$enable_shared" = yes && test "$GCC" = yes; then
36495     case $archive_cmds in
36496     *'~'*)
36497       # FIXME: we may have to deal with multi-command sequences.
36498       ;;
36499     '$CC '*)
36500       # Test whether the compiler implicitly links with -lc since on some
36501       # systems, -lgcc has to come before -lc. If gcc already passes -lc
36502       # to ld, don't add -lc before -lgcc.
36503       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
36504 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
36505       $rm conftest*
36506       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
36507
36508       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36509   (eval $ac_compile) 2>&5
36510   ac_status=$?
36511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36512   (exit $ac_status); } 2>conftest.err; then
36513         soname=conftest
36514         lib=conftest
36515         libobjs=conftest.$ac_objext
36516         deplibs=
36517         wl=$lt_prog_compiler_wl
36518         compiler_flags=-v
36519         linker_flags=-v
36520         verstring=
36521         output_objdir=.
36522         libname=conftest
36523         lt_save_allow_undefined_flag=$allow_undefined_flag
36524         allow_undefined_flag=
36525         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
36526   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
36527   ac_status=$?
36528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36529   (exit $ac_status); }
36530         then
36531           archive_cmds_need_lc=no
36532         else
36533           archive_cmds_need_lc=yes
36534         fi
36535         allow_undefined_flag=$lt_save_allow_undefined_flag
36536       else
36537         cat conftest.err 1>&5
36538       fi
36539       $rm conftest*
36540       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
36541 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
36542       ;;
36543     esac
36544   fi
36545   ;;
36546 esac
36547
36548 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
36549 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
36550 library_names_spec=
36551 libname_spec='lib$name'
36552 soname_spec=
36553 shrext_cmds=".so"
36554 postinstall_cmds=
36555 postuninstall_cmds=
36556 finish_cmds=
36557 finish_eval=
36558 shlibpath_var=
36559 shlibpath_overrides_runpath=unknown
36560 version_type=none
36561 dynamic_linker="$host_os ld.so"
36562 sys_lib_dlsearch_path_spec="/lib /usr/lib"
36563 if test "$GCC" = yes; then
36564   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
36565   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
36566     # if the path contains ";" then we assume it to be the separator
36567     # otherwise default to the standard path separator (i.e. ":") - it is
36568     # assumed that no part of a normal pathname contains ";" but that should
36569     # okay in the real world where ";" in dirpaths is itself problematic.
36570     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
36571   else
36572     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
36573   fi
36574 else
36575   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
36576 fi
36577 need_lib_prefix=unknown
36578 hardcode_into_libs=no
36579
36580 # when you set need_version to no, make sure it does not cause -set_version
36581 # flags to be left without arguments
36582 need_version=unknown
36583
36584 case $host_os in
36585 aix3*)
36586   version_type=linux
36587   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
36588   shlibpath_var=LIBPATH
36589
36590   # AIX 3 has no versioning support, so we append a major version to the name.
36591   soname_spec='${libname}${release}${shared_ext}$major'
36592   ;;
36593
36594 aix4* | aix5*)
36595   version_type=linux
36596   need_lib_prefix=no
36597   need_version=no
36598   hardcode_into_libs=yes
36599   if test "$host_cpu" = ia64; then
36600     # AIX 5 supports IA64
36601     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
36602     shlibpath_var=LD_LIBRARY_PATH
36603   else
36604     # With GCC up to 2.95.x, collect2 would create an import file
36605     # for dependence libraries.  The import file would start with
36606     # the line `#! .'.  This would cause the generated library to
36607     # depend on `.', always an invalid library.  This was fixed in
36608     # development snapshots of GCC prior to 3.0.
36609     case $host_os in
36610       aix4 | aix4.[01] | aix4.[01].*)
36611       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
36612            echo ' yes '
36613            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
36614         :
36615       else
36616         can_build_shared=no
36617       fi
36618       ;;
36619     esac
36620     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
36621     # soname into executable. Probably we can add versioning support to
36622     # collect2, so additional links can be useful in future.
36623     if test "$aix_use_runtimelinking" = yes; then
36624       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
36625       # instead of lib<name>.a to let people know that these are not
36626       # typical AIX shared libraries.
36627       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36628     else
36629       # We preserve .a as extension for shared libraries through AIX4.2
36630       # and later when we are not doing run time linking.
36631       library_names_spec='${libname}${release}.a $libname.a'
36632       soname_spec='${libname}${release}${shared_ext}$major'
36633     fi
36634     shlibpath_var=LIBPATH
36635   fi
36636   ;;
36637
36638 amigaos*)
36639   library_names_spec='$libname.ixlibrary $libname.a'
36640   # Create ${libname}_ixlibrary.a entries in /sys/libs.
36641   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'
36642   ;;
36643
36644 beos*)
36645   library_names_spec='${libname}${shared_ext}'
36646   dynamic_linker="$host_os ld.so"
36647   shlibpath_var=LIBRARY_PATH
36648   ;;
36649
36650 bsdi[45]*)
36651   version_type=linux
36652   need_version=no
36653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36654   soname_spec='${libname}${release}${shared_ext}$major'
36655   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
36656   shlibpath_var=LD_LIBRARY_PATH
36657   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
36658   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
36659   # the default ld.so.conf also contains /usr/contrib/lib and
36660   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
36661   # libtool to hard-code these into programs
36662   ;;
36663
36664 cygwin* | mingw* | pw32*)
36665   version_type=windows
36666   shrext_cmds=".dll"
36667   need_version=no
36668   need_lib_prefix=no
36669
36670   case $GCC,$host_os in
36671   yes,cygwin* | yes,mingw* | yes,pw32*)
36672     library_names_spec='$libname.dll.a'
36673     # DLL is installed to $(libdir)/../bin by postinstall_cmds
36674     postinstall_cmds='base_file=`basename \${file}`~
36675       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
36676       dldir=$destdir/`dirname \$dlpath`~
36677       test -d \$dldir || mkdir -p \$dldir~
36678       $install_prog $dir/$dlname \$dldir/$dlname~
36679       chmod a+x \$dldir/$dlname'
36680     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
36681       dlpath=$dir/\$dldll~
36682        $rm \$dlpath'
36683     shlibpath_overrides_runpath=yes
36684
36685     case $host_os in
36686     cygwin*)
36687       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
36688       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
36689       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
36690       ;;
36691     mingw*)
36692       # MinGW DLLs use traditional 'lib' prefix
36693       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
36694       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
36695       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
36696         # It is most probably a Windows format PATH printed by
36697         # mingw gcc, but we are running on Cygwin. Gcc prints its search
36698         # path with ; separators, and with drive letters. We can handle the
36699         # drive letters (cygwin fileutils understands them), so leave them,
36700         # especially as we might pass files found there to a mingw objdump,
36701         # which wouldn't understand a cygwinified path. Ahh.
36702         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
36703       else
36704         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
36705       fi
36706       ;;
36707     pw32*)
36708       # pw32 DLLs use 'pw' prefix rather than 'lib'
36709       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
36710       ;;
36711     esac
36712     ;;
36713
36714   *)
36715     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
36716     ;;
36717   esac
36718   dynamic_linker='Win32 ld.exe'
36719   # FIXME: first we should search . and the directory the executable is in
36720   shlibpath_var=PATH
36721   ;;
36722
36723 darwin* | rhapsody*)
36724   dynamic_linker="$host_os dyld"
36725   version_type=darwin
36726   need_lib_prefix=no
36727   need_version=no
36728   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
36729   soname_spec='${libname}${release}${major}$shared_ext'
36730   shlibpath_overrides_runpath=yes
36731   shlibpath_var=DYLD_LIBRARY_PATH
36732   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
36733   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
36734   if test "$GCC" = yes; then
36735     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
36736   else
36737     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
36738   fi
36739   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
36740   ;;
36741
36742 dgux*)
36743   version_type=linux
36744   need_lib_prefix=no
36745   need_version=no
36746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
36747   soname_spec='${libname}${release}${shared_ext}$major'
36748   shlibpath_var=LD_LIBRARY_PATH
36749   ;;
36750
36751 freebsd1*)
36752   dynamic_linker=no
36753   ;;
36754
36755 kfreebsd*-gnu)
36756   version_type=linux
36757   need_lib_prefix=no
36758   need_version=no
36759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
36760   soname_spec='${libname}${release}${shared_ext}$major'
36761   shlibpath_var=LD_LIBRARY_PATH
36762   shlibpath_overrides_runpath=no
36763   hardcode_into_libs=yes
36764   dynamic_linker='GNU ld.so'
36765   ;;
36766
36767 freebsd* | dragonfly*)
36768   # DragonFly does not have aout.  When/if they implement a new
36769   # versioning mechanism, adjust this.
36770   if test -x /usr/bin/objformat; then
36771     objformat=`/usr/bin/objformat`
36772   else
36773     case $host_os in
36774     freebsd[123]*) objformat=aout ;;
36775     *) objformat=elf ;;
36776     esac
36777   fi
36778   version_type=freebsd-$objformat
36779   case $version_type in
36780     freebsd-elf*)
36781       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
36782       need_version=no
36783       need_lib_prefix=no
36784       ;;
36785     freebsd-*)
36786       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
36787       need_version=yes
36788       ;;
36789   esac
36790   shlibpath_var=LD_LIBRARY_PATH
36791   case $host_os in
36792   freebsd2*)
36793     shlibpath_overrides_runpath=yes
36794     ;;
36795   freebsd3.[01]* | freebsdelf3.[01]*)
36796     shlibpath_overrides_runpath=yes
36797     hardcode_into_libs=yes
36798     ;;
36799   *) # from 3.2 on
36800     shlibpath_overrides_runpath=no
36801     hardcode_into_libs=yes
36802     ;;
36803   esac
36804   ;;
36805
36806 gnu*)
36807   version_type=linux
36808   need_lib_prefix=no
36809   need_version=no
36810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
36811   soname_spec='${libname}${release}${shared_ext}$major'
36812   shlibpath_var=LD_LIBRARY_PATH
36813   hardcode_into_libs=yes
36814   ;;
36815
36816 hpux9* | hpux10* | hpux11*)
36817   # Give a soname corresponding to the major version so that dld.sl refuses to
36818   # link against other versions.
36819   version_type=sunos
36820   need_lib_prefix=no
36821   need_version=no
36822   case $host_cpu in
36823   ia64*)
36824     shrext_cmds='.so'
36825     hardcode_into_libs=yes
36826     dynamic_linker="$host_os dld.so"
36827     shlibpath_var=LD_LIBRARY_PATH
36828     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
36829     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36830     soname_spec='${libname}${release}${shared_ext}$major'
36831     if test "X$HPUX_IA64_MODE" = X32; then
36832       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
36833     else
36834       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
36835     fi
36836     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
36837     ;;
36838    hppa*64*)
36839      shrext_cmds='.sl'
36840      hardcode_into_libs=yes
36841      dynamic_linker="$host_os dld.sl"
36842      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
36843      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
36844      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36845      soname_spec='${libname}${release}${shared_ext}$major'
36846      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
36847      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
36848      ;;
36849    *)
36850     shrext_cmds='.sl'
36851     dynamic_linker="$host_os dld.sl"
36852     shlibpath_var=SHLIB_PATH
36853     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
36854     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36855     soname_spec='${libname}${release}${shared_ext}$major'
36856     ;;
36857   esac
36858   # HP-UX runs *really* slowly unless shared libraries are mode 555.
36859   postinstall_cmds='chmod 555 $lib'
36860   ;;
36861
36862 irix5* | irix6* | nonstopux*)
36863   case $host_os in
36864     nonstopux*) version_type=nonstopux ;;
36865     *)
36866         if test "$lt_cv_prog_gnu_ld" = yes; then
36867                 version_type=linux
36868         else
36869                 version_type=irix
36870         fi ;;
36871   esac
36872   need_lib_prefix=no
36873   need_version=no
36874   soname_spec='${libname}${release}${shared_ext}$major'
36875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
36876   case $host_os in
36877   irix5* | nonstopux*)
36878     libsuff= shlibsuff=
36879     ;;
36880   *)
36881     case $LD in # libtool.m4 will add one of these switches to LD
36882     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
36883       libsuff= shlibsuff= libmagic=32-bit;;
36884     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
36885       libsuff=32 shlibsuff=N32 libmagic=N32;;
36886     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
36887       libsuff=64 shlibsuff=64 libmagic=64-bit;;
36888     *) libsuff= shlibsuff= libmagic=never-match;;
36889     esac
36890     ;;
36891   esac
36892   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
36893   shlibpath_overrides_runpath=no
36894   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
36895   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
36896   hardcode_into_libs=yes
36897   ;;
36898
36899 # No shared lib support for Linux oldld, aout, or coff.
36900 linux*oldld* | linux*aout* | linux*coff*)
36901   dynamic_linker=no
36902   ;;
36903
36904 # This must be Linux ELF.
36905 linux*)
36906   version_type=linux
36907   need_lib_prefix=no
36908   need_version=no
36909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36910   soname_spec='${libname}${release}${shared_ext}$major'
36911   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
36912   shlibpath_var=LD_LIBRARY_PATH
36913   shlibpath_overrides_runpath=no
36914   # This implies no fast_install, which is unacceptable.
36915   # Some rework will be needed to allow for fast_install
36916   # before this can be enabled.
36917   hardcode_into_libs=yes
36918
36919   # Append ld.so.conf contents to the search path
36920   if test -f /etc/ld.so.conf; then
36921     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
36922     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
36923   fi
36924
36925   # We used to test for /lib/ld.so.1 and disable shared libraries on
36926   # powerpc, because MkLinux only supported shared libraries with the
36927   # GNU dynamic linker.  Since this was broken with cross compilers,
36928   # most powerpc-linux boxes support dynamic linking these days and
36929   # people can always --disable-shared, the test was removed, and we
36930   # assume the GNU/Linux dynamic linker is in use.
36931   dynamic_linker='GNU/Linux ld.so'
36932   ;;
36933
36934 knetbsd*-gnu)
36935   version_type=linux
36936   need_lib_prefix=no
36937   need_version=no
36938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
36939   soname_spec='${libname}${release}${shared_ext}$major'
36940   shlibpath_var=LD_LIBRARY_PATH
36941   shlibpath_overrides_runpath=no
36942   hardcode_into_libs=yes
36943   dynamic_linker='GNU ld.so'
36944   ;;
36945
36946 netbsd*)
36947   version_type=sunos
36948   need_lib_prefix=no
36949   need_version=no
36950   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
36951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
36952     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
36953     dynamic_linker='NetBSD (a.out) ld.so'
36954   else
36955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
36956     soname_spec='${libname}${release}${shared_ext}$major'
36957     dynamic_linker='NetBSD ld.elf_so'
36958   fi
36959   shlibpath_var=LD_LIBRARY_PATH
36960   shlibpath_overrides_runpath=yes
36961   hardcode_into_libs=yes
36962   ;;
36963
36964 newsos6)
36965   version_type=linux
36966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36967   shlibpath_var=LD_LIBRARY_PATH
36968   shlibpath_overrides_runpath=yes
36969   ;;
36970
36971 nto-qnx*)
36972   version_type=linux
36973   need_lib_prefix=no
36974   need_version=no
36975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36976   soname_spec='${libname}${release}${shared_ext}$major'
36977   shlibpath_var=LD_LIBRARY_PATH
36978   shlibpath_overrides_runpath=yes
36979   ;;
36980
36981 openbsd*)
36982   version_type=sunos
36983   need_lib_prefix=no
36984   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
36985   case $host_os in
36986     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
36987     *)                         need_version=no  ;;
36988   esac
36989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
36990   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
36991   shlibpath_var=LD_LIBRARY_PATH
36992   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
36993     case $host_os in
36994       openbsd2.[89] | openbsd2.[89].*)
36995         shlibpath_overrides_runpath=no
36996         ;;
36997       *)
36998         shlibpath_overrides_runpath=yes
36999         ;;
37000       esac
37001   else
37002     shlibpath_overrides_runpath=yes
37003   fi
37004   ;;
37005
37006 os2*)
37007   libname_spec='$name'
37008   shrext_cmds=".dll"
37009   need_lib_prefix=no
37010   library_names_spec='$libname${shared_ext} $libname.a'
37011   dynamic_linker='OS/2 ld.exe'
37012   shlibpath_var=LIBPATH
37013   ;;
37014
37015 osf3* | osf4* | osf5*)
37016   version_type=osf
37017   need_lib_prefix=no
37018   need_version=no
37019   soname_spec='${libname}${release}${shared_ext}$major'
37020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37021   shlibpath_var=LD_LIBRARY_PATH
37022   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
37023   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
37024   ;;
37025
37026 sco3.2v5*)
37027   version_type=osf
37028   soname_spec='${libname}${release}${shared_ext}$major'
37029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37030   shlibpath_var=LD_LIBRARY_PATH
37031   ;;
37032
37033 solaris*)
37034   version_type=linux
37035   need_lib_prefix=no
37036   need_version=no
37037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37038   soname_spec='${libname}${release}${shared_ext}$major'
37039   shlibpath_var=LD_LIBRARY_PATH
37040   shlibpath_overrides_runpath=yes
37041   hardcode_into_libs=yes
37042   # ldd complains unless libraries are executable
37043   postinstall_cmds='chmod +x $lib'
37044   ;;
37045
37046 sunos4*)
37047   version_type=sunos
37048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
37049   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
37050   shlibpath_var=LD_LIBRARY_PATH
37051   shlibpath_overrides_runpath=yes
37052   if test "$with_gnu_ld" = yes; then
37053     need_lib_prefix=no
37054   fi
37055   need_version=yes
37056   ;;
37057
37058 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
37059   version_type=linux
37060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37061   soname_spec='${libname}${release}${shared_ext}$major'
37062   shlibpath_var=LD_LIBRARY_PATH
37063   case $host_vendor in
37064     sni)
37065       shlibpath_overrides_runpath=no
37066       need_lib_prefix=no
37067       export_dynamic_flag_spec='${wl}-Blargedynsym'
37068       runpath_var=LD_RUN_PATH
37069       ;;
37070     siemens)
37071       need_lib_prefix=no
37072       ;;
37073     motorola)
37074       need_lib_prefix=no
37075       need_version=no
37076       shlibpath_overrides_runpath=no
37077       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
37078       ;;
37079   esac
37080   ;;
37081
37082 sysv4*MP*)
37083   if test -d /usr/nec ;then
37084     version_type=linux
37085     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
37086     soname_spec='$libname${shared_ext}.$major'
37087     shlibpath_var=LD_LIBRARY_PATH
37088   fi
37089   ;;
37090
37091 uts4*)
37092   version_type=linux
37093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37094   soname_spec='${libname}${release}${shared_ext}$major'
37095   shlibpath_var=LD_LIBRARY_PATH
37096   ;;
37097
37098 *)
37099   dynamic_linker=no
37100   ;;
37101 esac
37102 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
37103 echo "${ECHO_T}$dynamic_linker" >&6; }
37104 test "$dynamic_linker" = no && can_build_shared=no
37105
37106 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
37107 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
37108 hardcode_action=
37109 if test -n "$hardcode_libdir_flag_spec" || \
37110    test -n "$runpath_var" || \
37111    test "X$hardcode_automatic" = "Xyes" ; then
37112
37113   # We can hardcode non-existant directories.
37114   if test "$hardcode_direct" != no &&
37115      # If the only mechanism to avoid hardcoding is shlibpath_var, we
37116      # have to relink, otherwise we might link with an installed library
37117      # when we should be linking with a yet-to-be-installed one
37118      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
37119      test "$hardcode_minus_L" != no; then
37120     # Linking always hardcodes the temporary library directory.
37121     hardcode_action=relink
37122   else
37123     # We can link without hardcoding, and we can hardcode nonexisting dirs.
37124     hardcode_action=immediate
37125   fi
37126 else
37127   # We cannot hardcode anything, or else we can only hardcode existing
37128   # directories.
37129   hardcode_action=unsupported
37130 fi
37131 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
37132 echo "${ECHO_T}$hardcode_action" >&6; }
37133
37134 if test "$hardcode_action" = relink; then
37135   # Fast installation is not supported
37136   enable_fast_install=no
37137 elif test "$shlibpath_overrides_runpath" = yes ||
37138      test "$enable_shared" = no; then
37139   # Fast installation is not necessary
37140   enable_fast_install=needless
37141 fi
37142
37143 striplib=
37144 old_striplib=
37145 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
37146 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
37147 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
37148   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
37149   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
37150   { echo "$as_me:$LINENO: result: yes" >&5
37151 echo "${ECHO_T}yes" >&6; }
37152 else
37153 # FIXME - insert some real tests, host_os isn't really good enough
37154   case $host_os in
37155    darwin*)
37156        if test -n "$STRIP" ; then
37157          striplib="$STRIP -x"
37158          { echo "$as_me:$LINENO: result: yes" >&5
37159 echo "${ECHO_T}yes" >&6; }
37160        else
37161   { echo "$as_me:$LINENO: result: no" >&5
37162 echo "${ECHO_T}no" >&6; }
37163 fi
37164        ;;
37165    *)
37166   { echo "$as_me:$LINENO: result: no" >&5
37167 echo "${ECHO_T}no" >&6; }
37168     ;;
37169   esac
37170 fi
37171
37172 if test "x$enable_dlopen" != xyes; then
37173   enable_dlopen=unknown
37174   enable_dlopen_self=unknown
37175   enable_dlopen_self_static=unknown
37176 else
37177   lt_cv_dlopen=no
37178   lt_cv_dlopen_libs=
37179
37180   case $host_os in
37181   beos*)
37182     lt_cv_dlopen="load_add_on"
37183     lt_cv_dlopen_libs=
37184     lt_cv_dlopen_self=yes
37185     ;;
37186
37187   mingw* | pw32*)
37188     lt_cv_dlopen="LoadLibrary"
37189     lt_cv_dlopen_libs=
37190    ;;
37191
37192   cygwin*)
37193     lt_cv_dlopen="dlopen"
37194     lt_cv_dlopen_libs=
37195    ;;
37196
37197   darwin*)
37198   # if libdl is installed we need to link against it
37199     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
37200 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
37201 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
37202   echo $ECHO_N "(cached) $ECHO_C" >&6
37203 else
37204   ac_check_lib_save_LIBS=$LIBS
37205 LIBS="-ldl  $LIBS"
37206 cat >conftest.$ac_ext <<_ACEOF
37207 /* confdefs.h.  */
37208 _ACEOF
37209 cat confdefs.h >>conftest.$ac_ext
37210 cat >>conftest.$ac_ext <<_ACEOF
37211 /* end confdefs.h.  */
37212
37213 /* Override any GCC internal prototype to avoid an error.
37214    Use char because int might match the return type of a GCC
37215    builtin and then its argument prototype would still apply.  */
37216 #ifdef __cplusplus
37217 extern "C"
37218 #endif
37219 char dlopen ();
37220 int
37221 main ()
37222 {
37223 return dlopen ();
37224   ;
37225   return 0;
37226 }
37227 _ACEOF
37228 rm -f conftest.$ac_objext conftest$ac_exeext
37229 if { (ac_try="$ac_link"
37230 case "(($ac_try" in
37231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37232   *) ac_try_echo=$ac_try;;
37233 esac
37234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37235   (eval "$ac_link") 2>conftest.er1
37236   ac_status=$?
37237   grep -v '^ *+' conftest.er1 >conftest.err
37238   rm -f conftest.er1
37239   cat conftest.err >&5
37240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37241   (exit $ac_status); } && {
37242          test -z "$ac_c_werror_flag" ||
37243          test ! -s conftest.err
37244        } && test -s conftest$ac_exeext &&
37245        $as_test_x conftest$ac_exeext; then
37246   ac_cv_lib_dl_dlopen=yes
37247 else
37248   echo "$as_me: failed program was:" >&5
37249 sed 's/^/| /' conftest.$ac_ext >&5
37250
37251         ac_cv_lib_dl_dlopen=no
37252 fi
37253
37254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37255       conftest$ac_exeext conftest.$ac_ext
37256 LIBS=$ac_check_lib_save_LIBS
37257 fi
37258 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
37259 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
37260 if test $ac_cv_lib_dl_dlopen = yes; then
37261   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
37262 else
37263
37264     lt_cv_dlopen="dyld"
37265     lt_cv_dlopen_libs=
37266     lt_cv_dlopen_self=yes
37267
37268 fi
37269
37270    ;;
37271
37272   *)
37273     { echo "$as_me:$LINENO: checking for shl_load" >&5
37274 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
37275 if test "${ac_cv_func_shl_load+set}" = set; then
37276   echo $ECHO_N "(cached) $ECHO_C" >&6
37277 else
37278   cat >conftest.$ac_ext <<_ACEOF
37279 /* confdefs.h.  */
37280 _ACEOF
37281 cat confdefs.h >>conftest.$ac_ext
37282 cat >>conftest.$ac_ext <<_ACEOF
37283 /* end confdefs.h.  */
37284 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
37285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37286 #define shl_load innocuous_shl_load
37287
37288 /* System header to define __stub macros and hopefully few prototypes,
37289     which can conflict with char shl_load (); below.
37290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37291     <limits.h> exists even on freestanding compilers.  */
37292
37293 #ifdef __STDC__
37294 # include <limits.h>
37295 #else
37296 # include <assert.h>
37297 #endif
37298
37299 #undef shl_load
37300
37301 /* Override any GCC internal prototype to avoid an error.
37302    Use char because int might match the return type of a GCC
37303    builtin and then its argument prototype would still apply.  */
37304 #ifdef __cplusplus
37305 extern "C"
37306 #endif
37307 char shl_load ();
37308 /* The GNU C library defines this for functions which it implements
37309     to always fail with ENOSYS.  Some functions are actually named
37310     something starting with __ and the normal name is an alias.  */
37311 #if defined __stub_shl_load || defined __stub___shl_load
37312 choke me
37313 #endif
37314
37315 int
37316 main ()
37317 {
37318 return shl_load ();
37319   ;
37320   return 0;
37321 }
37322 _ACEOF
37323 rm -f conftest.$ac_objext conftest$ac_exeext
37324 if { (ac_try="$ac_link"
37325 case "(($ac_try" in
37326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37327   *) ac_try_echo=$ac_try;;
37328 esac
37329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37330   (eval "$ac_link") 2>conftest.er1
37331   ac_status=$?
37332   grep -v '^ *+' conftest.er1 >conftest.err
37333   rm -f conftest.er1
37334   cat conftest.err >&5
37335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37336   (exit $ac_status); } && {
37337          test -z "$ac_c_werror_flag" ||
37338          test ! -s conftest.err
37339        } && test -s conftest$ac_exeext &&
37340        $as_test_x conftest$ac_exeext; then
37341   ac_cv_func_shl_load=yes
37342 else
37343   echo "$as_me: failed program was:" >&5
37344 sed 's/^/| /' conftest.$ac_ext >&5
37345
37346         ac_cv_func_shl_load=no
37347 fi
37348
37349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37350       conftest$ac_exeext conftest.$ac_ext
37351 fi
37352 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
37353 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
37354 if test $ac_cv_func_shl_load = yes; then
37355   lt_cv_dlopen="shl_load"
37356 else
37357   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
37358 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
37359 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
37360   echo $ECHO_N "(cached) $ECHO_C" >&6
37361 else
37362   ac_check_lib_save_LIBS=$LIBS
37363 LIBS="-ldld  $LIBS"
37364 cat >conftest.$ac_ext <<_ACEOF
37365 /* confdefs.h.  */
37366 _ACEOF
37367 cat confdefs.h >>conftest.$ac_ext
37368 cat >>conftest.$ac_ext <<_ACEOF
37369 /* end confdefs.h.  */
37370
37371 /* Override any GCC internal prototype to avoid an error.
37372    Use char because int might match the return type of a GCC
37373    builtin and then its argument prototype would still apply.  */
37374 #ifdef __cplusplus
37375 extern "C"
37376 #endif
37377 char shl_load ();
37378 int
37379 main ()
37380 {
37381 return shl_load ();
37382   ;
37383   return 0;
37384 }
37385 _ACEOF
37386 rm -f conftest.$ac_objext conftest$ac_exeext
37387 if { (ac_try="$ac_link"
37388 case "(($ac_try" in
37389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37390   *) ac_try_echo=$ac_try;;
37391 esac
37392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37393   (eval "$ac_link") 2>conftest.er1
37394   ac_status=$?
37395   grep -v '^ *+' conftest.er1 >conftest.err
37396   rm -f conftest.er1
37397   cat conftest.err >&5
37398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37399   (exit $ac_status); } && {
37400          test -z "$ac_c_werror_flag" ||
37401          test ! -s conftest.err
37402        } && test -s conftest$ac_exeext &&
37403        $as_test_x conftest$ac_exeext; then
37404   ac_cv_lib_dld_shl_load=yes
37405 else
37406   echo "$as_me: failed program was:" >&5
37407 sed 's/^/| /' conftest.$ac_ext >&5
37408
37409         ac_cv_lib_dld_shl_load=no
37410 fi
37411
37412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37413       conftest$ac_exeext conftest.$ac_ext
37414 LIBS=$ac_check_lib_save_LIBS
37415 fi
37416 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
37417 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
37418 if test $ac_cv_lib_dld_shl_load = yes; then
37419   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
37420 else
37421   { echo "$as_me:$LINENO: checking for dlopen" >&5
37422 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
37423 if test "${ac_cv_func_dlopen+set}" = set; then
37424   echo $ECHO_N "(cached) $ECHO_C" >&6
37425 else
37426   cat >conftest.$ac_ext <<_ACEOF
37427 /* confdefs.h.  */
37428 _ACEOF
37429 cat confdefs.h >>conftest.$ac_ext
37430 cat >>conftest.$ac_ext <<_ACEOF
37431 /* end confdefs.h.  */
37432 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
37433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37434 #define dlopen innocuous_dlopen
37435
37436 /* System header to define __stub macros and hopefully few prototypes,
37437     which can conflict with char dlopen (); below.
37438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37439     <limits.h> exists even on freestanding compilers.  */
37440
37441 #ifdef __STDC__
37442 # include <limits.h>
37443 #else
37444 # include <assert.h>
37445 #endif
37446
37447 #undef dlopen
37448
37449 /* Override any GCC internal prototype to avoid an error.
37450    Use char because int might match the return type of a GCC
37451    builtin and then its argument prototype would still apply.  */
37452 #ifdef __cplusplus
37453 extern "C"
37454 #endif
37455 char dlopen ();
37456 /* The GNU C library defines this for functions which it implements
37457     to always fail with ENOSYS.  Some functions are actually named
37458     something starting with __ and the normal name is an alias.  */
37459 #if defined __stub_dlopen || defined __stub___dlopen
37460 choke me
37461 #endif
37462
37463 int
37464 main ()
37465 {
37466 return dlopen ();
37467   ;
37468   return 0;
37469 }
37470 _ACEOF
37471 rm -f conftest.$ac_objext conftest$ac_exeext
37472 if { (ac_try="$ac_link"
37473 case "(($ac_try" in
37474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37475   *) ac_try_echo=$ac_try;;
37476 esac
37477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37478   (eval "$ac_link") 2>conftest.er1
37479   ac_status=$?
37480   grep -v '^ *+' conftest.er1 >conftest.err
37481   rm -f conftest.er1
37482   cat conftest.err >&5
37483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37484   (exit $ac_status); } && {
37485          test -z "$ac_c_werror_flag" ||
37486          test ! -s conftest.err
37487        } && test -s conftest$ac_exeext &&
37488        $as_test_x conftest$ac_exeext; then
37489   ac_cv_func_dlopen=yes
37490 else
37491   echo "$as_me: failed program was:" >&5
37492 sed 's/^/| /' conftest.$ac_ext >&5
37493
37494         ac_cv_func_dlopen=no
37495 fi
37496
37497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37498       conftest$ac_exeext conftest.$ac_ext
37499 fi
37500 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
37501 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
37502 if test $ac_cv_func_dlopen = yes; then
37503   lt_cv_dlopen="dlopen"
37504 else
37505   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
37506 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
37507 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
37508   echo $ECHO_N "(cached) $ECHO_C" >&6
37509 else
37510   ac_check_lib_save_LIBS=$LIBS
37511 LIBS="-ldl  $LIBS"
37512 cat >conftest.$ac_ext <<_ACEOF
37513 /* confdefs.h.  */
37514 _ACEOF
37515 cat confdefs.h >>conftest.$ac_ext
37516 cat >>conftest.$ac_ext <<_ACEOF
37517 /* end confdefs.h.  */
37518
37519 /* Override any GCC internal prototype to avoid an error.
37520    Use char because int might match the return type of a GCC
37521    builtin and then its argument prototype would still apply.  */
37522 #ifdef __cplusplus
37523 extern "C"
37524 #endif
37525 char dlopen ();
37526 int
37527 main ()
37528 {
37529 return dlopen ();
37530   ;
37531   return 0;
37532 }
37533 _ACEOF
37534 rm -f conftest.$ac_objext conftest$ac_exeext
37535 if { (ac_try="$ac_link"
37536 case "(($ac_try" in
37537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37538   *) ac_try_echo=$ac_try;;
37539 esac
37540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37541   (eval "$ac_link") 2>conftest.er1
37542   ac_status=$?
37543   grep -v '^ *+' conftest.er1 >conftest.err
37544   rm -f conftest.er1
37545   cat conftest.err >&5
37546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37547   (exit $ac_status); } && {
37548          test -z "$ac_c_werror_flag" ||
37549          test ! -s conftest.err
37550        } && test -s conftest$ac_exeext &&
37551        $as_test_x conftest$ac_exeext; then
37552   ac_cv_lib_dl_dlopen=yes
37553 else
37554   echo "$as_me: failed program was:" >&5
37555 sed 's/^/| /' conftest.$ac_ext >&5
37556
37557         ac_cv_lib_dl_dlopen=no
37558 fi
37559
37560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37561       conftest$ac_exeext conftest.$ac_ext
37562 LIBS=$ac_check_lib_save_LIBS
37563 fi
37564 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
37565 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
37566 if test $ac_cv_lib_dl_dlopen = yes; then
37567   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
37568 else
37569   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
37570 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
37571 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
37572   echo $ECHO_N "(cached) $ECHO_C" >&6
37573 else
37574   ac_check_lib_save_LIBS=$LIBS
37575 LIBS="-lsvld  $LIBS"
37576 cat >conftest.$ac_ext <<_ACEOF
37577 /* confdefs.h.  */
37578 _ACEOF
37579 cat confdefs.h >>conftest.$ac_ext
37580 cat >>conftest.$ac_ext <<_ACEOF
37581 /* end confdefs.h.  */
37582
37583 /* Override any GCC internal prototype to avoid an error.
37584    Use char because int might match the return type of a GCC
37585    builtin and then its argument prototype would still apply.  */
37586 #ifdef __cplusplus
37587 extern "C"
37588 #endif
37589 char dlopen ();
37590 int
37591 main ()
37592 {
37593 return dlopen ();
37594   ;
37595   return 0;
37596 }
37597 _ACEOF
37598 rm -f conftest.$ac_objext conftest$ac_exeext
37599 if { (ac_try="$ac_link"
37600 case "(($ac_try" in
37601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37602   *) ac_try_echo=$ac_try;;
37603 esac
37604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37605   (eval "$ac_link") 2>conftest.er1
37606   ac_status=$?
37607   grep -v '^ *+' conftest.er1 >conftest.err
37608   rm -f conftest.er1
37609   cat conftest.err >&5
37610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37611   (exit $ac_status); } && {
37612          test -z "$ac_c_werror_flag" ||
37613          test ! -s conftest.err
37614        } && test -s conftest$ac_exeext &&
37615        $as_test_x conftest$ac_exeext; then
37616   ac_cv_lib_svld_dlopen=yes
37617 else
37618   echo "$as_me: failed program was:" >&5
37619 sed 's/^/| /' conftest.$ac_ext >&5
37620
37621         ac_cv_lib_svld_dlopen=no
37622 fi
37623
37624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37625       conftest$ac_exeext conftest.$ac_ext
37626 LIBS=$ac_check_lib_save_LIBS
37627 fi
37628 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
37629 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
37630 if test $ac_cv_lib_svld_dlopen = yes; then
37631   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
37632 else
37633   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
37634 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
37635 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
37636   echo $ECHO_N "(cached) $ECHO_C" >&6
37637 else
37638   ac_check_lib_save_LIBS=$LIBS
37639 LIBS="-ldld  $LIBS"
37640 cat >conftest.$ac_ext <<_ACEOF
37641 /* confdefs.h.  */
37642 _ACEOF
37643 cat confdefs.h >>conftest.$ac_ext
37644 cat >>conftest.$ac_ext <<_ACEOF
37645 /* end confdefs.h.  */
37646
37647 /* Override any GCC internal prototype to avoid an error.
37648    Use char because int might match the return type of a GCC
37649    builtin and then its argument prototype would still apply.  */
37650 #ifdef __cplusplus
37651 extern "C"
37652 #endif
37653 char dld_link ();
37654 int
37655 main ()
37656 {
37657 return dld_link ();
37658   ;
37659   return 0;
37660 }
37661 _ACEOF
37662 rm -f conftest.$ac_objext conftest$ac_exeext
37663 if { (ac_try="$ac_link"
37664 case "(($ac_try" in
37665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37666   *) ac_try_echo=$ac_try;;
37667 esac
37668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37669   (eval "$ac_link") 2>conftest.er1
37670   ac_status=$?
37671   grep -v '^ *+' conftest.er1 >conftest.err
37672   rm -f conftest.er1
37673   cat conftest.err >&5
37674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37675   (exit $ac_status); } && {
37676          test -z "$ac_c_werror_flag" ||
37677          test ! -s conftest.err
37678        } && test -s conftest$ac_exeext &&
37679        $as_test_x conftest$ac_exeext; then
37680   ac_cv_lib_dld_dld_link=yes
37681 else
37682   echo "$as_me: failed program was:" >&5
37683 sed 's/^/| /' conftest.$ac_ext >&5
37684
37685         ac_cv_lib_dld_dld_link=no
37686 fi
37687
37688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37689       conftest$ac_exeext conftest.$ac_ext
37690 LIBS=$ac_check_lib_save_LIBS
37691 fi
37692 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
37693 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
37694 if test $ac_cv_lib_dld_dld_link = yes; then
37695   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
37696 fi
37697
37698
37699 fi
37700
37701
37702 fi
37703
37704
37705 fi
37706
37707
37708 fi
37709
37710
37711 fi
37712
37713     ;;
37714   esac
37715
37716   if test "x$lt_cv_dlopen" != xno; then
37717     enable_dlopen=yes
37718   else
37719     enable_dlopen=no
37720   fi
37721
37722   case $lt_cv_dlopen in
37723   dlopen)
37724     save_CPPFLAGS="$CPPFLAGS"
37725     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
37726
37727     save_LDFLAGS="$LDFLAGS"
37728     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
37729
37730     save_LIBS="$LIBS"
37731     LIBS="$lt_cv_dlopen_libs $LIBS"
37732
37733     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
37734 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
37735 if test "${lt_cv_dlopen_self+set}" = set; then
37736   echo $ECHO_N "(cached) $ECHO_C" >&6
37737 else
37738           if test "$cross_compiling" = yes; then :
37739   lt_cv_dlopen_self=cross
37740 else
37741   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
37742   lt_status=$lt_dlunknown
37743   cat > conftest.$ac_ext <<EOF
37744 #line 37744 "configure"
37745 #include "confdefs.h"
37746
37747 #if HAVE_DLFCN_H
37748 #include <dlfcn.h>
37749 #endif
37750
37751 #include <stdio.h>
37752
37753 #ifdef RTLD_GLOBAL
37754 #  define LT_DLGLOBAL           RTLD_GLOBAL
37755 #else
37756 #  ifdef DL_GLOBAL
37757 #    define LT_DLGLOBAL         DL_GLOBAL
37758 #  else
37759 #    define LT_DLGLOBAL         0
37760 #  endif
37761 #endif
37762
37763 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
37764    find out it does not work in some platform. */
37765 #ifndef LT_DLLAZY_OR_NOW
37766 #  ifdef RTLD_LAZY
37767 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
37768 #  else
37769 #    ifdef DL_LAZY
37770 #      define LT_DLLAZY_OR_NOW          DL_LAZY
37771 #    else
37772 #      ifdef RTLD_NOW
37773 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
37774 #      else
37775 #        ifdef DL_NOW
37776 #          define LT_DLLAZY_OR_NOW      DL_NOW
37777 #        else
37778 #          define LT_DLLAZY_OR_NOW      0
37779 #        endif
37780 #      endif
37781 #    endif
37782 #  endif
37783 #endif
37784
37785 #ifdef __cplusplus
37786 extern "C" void exit (int);
37787 #endif
37788
37789 void fnord() { int i=42;}
37790 int main ()
37791 {
37792   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
37793   int status = $lt_dlunknown;
37794
37795   if (self)
37796     {
37797       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
37798       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
37799       /* dlclose (self); */
37800     }
37801
37802     exit (status);
37803 }
37804 EOF
37805   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37806   (eval $ac_link) 2>&5
37807   ac_status=$?
37808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37809   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
37810     (./conftest; exit; ) >&5 2>/dev/null
37811     lt_status=$?
37812     case x$lt_status in
37813       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
37814       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
37815       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
37816     esac
37817   else :
37818     # compilation failed
37819     lt_cv_dlopen_self=no
37820   fi
37821 fi
37822 rm -fr conftest*
37823
37824
37825 fi
37826 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
37827 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
37828
37829     if test "x$lt_cv_dlopen_self" = xyes; then
37830       LDFLAGS="$LDFLAGS $link_static_flag"
37831       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
37832 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
37833 if test "${lt_cv_dlopen_self_static+set}" = set; then
37834   echo $ECHO_N "(cached) $ECHO_C" >&6
37835 else
37836           if test "$cross_compiling" = yes; then :
37837   lt_cv_dlopen_self_static=cross
37838 else
37839   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
37840   lt_status=$lt_dlunknown
37841   cat > conftest.$ac_ext <<EOF
37842 #line 37842 "configure"
37843 #include "confdefs.h"
37844
37845 #if HAVE_DLFCN_H
37846 #include <dlfcn.h>
37847 #endif
37848
37849 #include <stdio.h>
37850
37851 #ifdef RTLD_GLOBAL
37852 #  define LT_DLGLOBAL           RTLD_GLOBAL
37853 #else
37854 #  ifdef DL_GLOBAL
37855 #    define LT_DLGLOBAL         DL_GLOBAL
37856 #  else
37857 #    define LT_DLGLOBAL         0
37858 #  endif
37859 #endif
37860
37861 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
37862    find out it does not work in some platform. */
37863 #ifndef LT_DLLAZY_OR_NOW
37864 #  ifdef RTLD_LAZY
37865 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
37866 #  else
37867 #    ifdef DL_LAZY
37868 #      define LT_DLLAZY_OR_NOW          DL_LAZY
37869 #    else
37870 #      ifdef RTLD_NOW
37871 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
37872 #      else
37873 #        ifdef DL_NOW
37874 #          define LT_DLLAZY_OR_NOW      DL_NOW
37875 #        else
37876 #          define LT_DLLAZY_OR_NOW      0
37877 #        endif
37878 #      endif
37879 #    endif
37880 #  endif
37881 #endif
37882
37883 #ifdef __cplusplus
37884 extern "C" void exit (int);
37885 #endif
37886
37887 void fnord() { int i=42;}
37888 int main ()
37889 {
37890   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
37891   int status = $lt_dlunknown;
37892
37893   if (self)
37894     {
37895       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
37896       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
37897       /* dlclose (self); */
37898     }
37899
37900     exit (status);
37901 }
37902 EOF
37903   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37904   (eval $ac_link) 2>&5
37905   ac_status=$?
37906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37907   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
37908     (./conftest; exit; ) >&5 2>/dev/null
37909     lt_status=$?
37910     case x$lt_status in
37911       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
37912       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
37913       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
37914     esac
37915   else :
37916     # compilation failed
37917     lt_cv_dlopen_self_static=no
37918   fi
37919 fi
37920 rm -fr conftest*
37921
37922
37923 fi
37924 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
37925 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
37926     fi
37927
37928     CPPFLAGS="$save_CPPFLAGS"
37929     LDFLAGS="$save_LDFLAGS"
37930     LIBS="$save_LIBS"
37931     ;;
37932   esac
37933
37934   case $lt_cv_dlopen_self in
37935   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
37936   *) enable_dlopen_self=unknown ;;
37937   esac
37938
37939   case $lt_cv_dlopen_self_static in
37940   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
37941   *) enable_dlopen_self_static=unknown ;;
37942   esac
37943 fi
37944
37945
37946 # Report which librarie types wil actually be built
37947 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
37948 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
37949 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
37950 echo "${ECHO_T}$can_build_shared" >&6; }
37951
37952 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
37953 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
37954 test "$can_build_shared" = "no" && enable_shared=no
37955
37956 # On AIX, shared libraries and static libraries use the same namespace, and
37957 # are all built from PIC.
37958 case $host_os in
37959 aix3*)
37960   test "$enable_shared" = yes && enable_static=no
37961   if test -n "$RANLIB"; then
37962     archive_cmds="$archive_cmds~\$RANLIB \$lib"
37963     postinstall_cmds='$RANLIB $lib'
37964   fi
37965   ;;
37966
37967 aix4* | aix5*)
37968   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
37969     test "$enable_shared" = yes && enable_static=no
37970   fi
37971     ;;
37972 esac
37973 { echo "$as_me:$LINENO: result: $enable_shared" >&5
37974 echo "${ECHO_T}$enable_shared" >&6; }
37975
37976 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
37977 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
37978 # Make sure either enable_shared or enable_static is yes.
37979 test "$enable_shared" = yes || enable_static=yes
37980 { echo "$as_me:$LINENO: result: $enable_static" >&5
37981 echo "${ECHO_T}$enable_static" >&6; }
37982
37983 # The else clause should only fire when bootstrapping the
37984 # libtool distribution, otherwise you forgot to ship ltmain.sh
37985 # with your package, and you will get complaints that there are
37986 # no rules to generate ltmain.sh.
37987 if test -f "$ltmain"; then
37988   # See if we are running on zsh, and set the options which allow our commands through
37989   # without removal of \ escapes.
37990   if test -n "${ZSH_VERSION+set}" ; then
37991     setopt NO_GLOB_SUBST
37992   fi
37993   # Now quote all the things that may contain metacharacters while being
37994   # careful not to overquote the AC_SUBSTed values.  We take copies of the
37995   # variables and quote the copies for generation of the libtool script.
37996   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
37997     SED SHELL STRIP \
37998     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
37999     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
38000     deplibs_check_method reload_flag reload_cmds need_locks \
38001     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
38002     lt_cv_sys_global_symbol_to_c_name_address \
38003     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
38004     old_postinstall_cmds old_postuninstall_cmds \
38005     compiler \
38006     CC \
38007     LD \
38008     lt_prog_compiler_wl \
38009     lt_prog_compiler_pic \
38010     lt_prog_compiler_static \
38011     lt_prog_compiler_no_builtin_flag \
38012     export_dynamic_flag_spec \
38013     thread_safe_flag_spec \
38014     whole_archive_flag_spec \
38015     enable_shared_with_static_runtimes \
38016     old_archive_cmds \
38017     old_archive_from_new_cmds \
38018     predep_objects \
38019     postdep_objects \
38020     predeps \
38021     postdeps \
38022     compiler_lib_search_path \
38023     archive_cmds \
38024     archive_expsym_cmds \
38025     postinstall_cmds \
38026     postuninstall_cmds \
38027     old_archive_from_expsyms_cmds \
38028     allow_undefined_flag \
38029     no_undefined_flag \
38030     export_symbols_cmds \
38031     hardcode_libdir_flag_spec \
38032     hardcode_libdir_flag_spec_ld \
38033     hardcode_libdir_separator \
38034     hardcode_automatic \
38035     module_cmds \
38036     module_expsym_cmds \
38037     lt_cv_prog_compiler_c_o \
38038     exclude_expsyms \
38039     include_expsyms; do
38040
38041     case $var in
38042     old_archive_cmds | \
38043     old_archive_from_new_cmds | \
38044     archive_cmds | \
38045     archive_expsym_cmds | \
38046     module_cmds | \
38047     module_expsym_cmds | \
38048     old_archive_from_expsyms_cmds | \
38049     export_symbols_cmds | \
38050     extract_expsyms_cmds | reload_cmds | finish_cmds | \
38051     postinstall_cmds | postuninstall_cmds | \
38052     old_postinstall_cmds | old_postuninstall_cmds | \
38053     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
38054       # Double-quote double-evaled strings.
38055       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
38056       ;;
38057     *)
38058       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
38059       ;;
38060     esac
38061   done
38062
38063   case $lt_echo in
38064   *'\$0 --fallback-echo"')
38065     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
38066     ;;
38067   esac
38068
38069 cfgfile="${ofile}T"
38070   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
38071   $rm -f "$cfgfile"
38072   { echo "$as_me:$LINENO: creating $ofile" >&5
38073 echo "$as_me: creating $ofile" >&6;}
38074
38075   cat <<__EOF__ >> "$cfgfile"
38076 #! $SHELL
38077
38078 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38079 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
38080 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
38081 #
38082 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
38083 # Free Software Foundation, Inc.
38084 #
38085 # This file is part of GNU Libtool:
38086 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
38087 #
38088 # This program is free software; you can redistribute it and/or modify
38089 # it under the terms of the GNU General Public License as published by
38090 # the Free Software Foundation; either version 2 of the License, or
38091 # (at your option) any later version.
38092 #
38093 # This program is distributed in the hope that it will be useful, but
38094 # WITHOUT ANY WARRANTY; without even the implied warranty of
38095 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
38096 # General Public License for more details.
38097 #
38098 # You should have received a copy of the GNU General Public License
38099 # along with this program; if not, write to the Free Software
38100 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38101 #
38102 # As a special exception to the GNU General Public License, if you
38103 # distribute this file as part of a program that contains a
38104 # configuration script generated by Autoconf, you may include it under
38105 # the same distribution terms that you use for the rest of that program.
38106
38107 # A sed program that does not truncate output.
38108 SED=$lt_SED
38109
38110 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
38111 Xsed="$SED -e 1s/^X//"
38112
38113 # The HP-UX ksh and POSIX shell print the target directory to stdout
38114 # if CDPATH is set.
38115 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38116
38117 # The names of the tagged configurations supported by this script.
38118 available_tags=
38119
38120 # ### BEGIN LIBTOOL CONFIG
38121
38122 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38123
38124 # Shell to use when invoking shell scripts.
38125 SHELL=$lt_SHELL
38126
38127 # Whether or not to build shared libraries.
38128 build_libtool_libs=$enable_shared
38129
38130 # Whether or not to build static libraries.
38131 build_old_libs=$enable_static
38132
38133 # Whether or not to add -lc for building shared libraries.
38134 build_libtool_need_lc=$archive_cmds_need_lc
38135
38136 # Whether or not to disallow shared libs when runtime libs are static
38137 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38138
38139 # Whether or not to optimize for fast installation.
38140 fast_install=$enable_fast_install
38141
38142 # The host system.
38143 host_alias=$host_alias
38144 host=$host
38145 host_os=$host_os
38146
38147 # The build system.
38148 build_alias=$build_alias
38149 build=$build
38150 build_os=$build_os
38151
38152 # An echo program that does not interpret backslashes.
38153 echo=$lt_echo
38154
38155 # The archiver.
38156 AR=$lt_AR
38157 AR_FLAGS=$lt_AR_FLAGS
38158
38159 # A C compiler.
38160 LTCC=$lt_LTCC
38161
38162 # A language-specific compiler.
38163 CC=$lt_compiler
38164
38165 # Is the compiler the GNU C compiler?
38166 with_gcc=$GCC
38167
38168 # An ERE matcher.
38169 EGREP=$lt_EGREP
38170
38171 # The linker used to build libraries.
38172 LD=$lt_LD
38173
38174 # Whether we need hard or soft links.
38175 LN_S=$lt_LN_S
38176
38177 # A BSD-compatible nm program.
38178 NM=$lt_NM
38179
38180 # A symbol stripping program
38181 STRIP=$lt_STRIP
38182
38183 # Used to examine libraries when file_magic_cmd begins "file"
38184 MAGIC_CMD=$MAGIC_CMD
38185
38186 # Used on cygwin: DLL creation program.
38187 DLLTOOL="$DLLTOOL"
38188
38189 # Used on cygwin: object dumper.
38190 OBJDUMP="$OBJDUMP"
38191
38192 # Used on cygwin: assembler.
38193 AS="$AS"
38194
38195 # The name of the directory that contains temporary libtool files.
38196 objdir=$objdir
38197
38198 # How to create reloadable object files.
38199 reload_flag=$lt_reload_flag
38200 reload_cmds=$lt_reload_cmds
38201
38202 # How to pass a linker flag through the compiler.
38203 wl=$lt_lt_prog_compiler_wl
38204
38205 # Object file suffix (normally "o").
38206 objext="$ac_objext"
38207
38208 # Old archive suffix (normally "a").
38209 libext="$libext"
38210
38211 # Shared library suffix (normally ".so").
38212 shrext_cmds='$shrext_cmds'
38213
38214 # Executable file suffix (normally "").
38215 exeext="$exeext"
38216
38217 # Additional compiler flags for building library objects.
38218 pic_flag=$lt_lt_prog_compiler_pic
38219 pic_mode=$pic_mode
38220
38221 # What is the maximum length of a command?
38222 max_cmd_len=$lt_cv_sys_max_cmd_len
38223
38224 # Does compiler simultaneously support -c and -o options?
38225 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38226
38227 # Must we lock files when doing compilation?
38228 need_locks=$lt_need_locks
38229
38230 # Do we need the lib prefix for modules?
38231 need_lib_prefix=$need_lib_prefix
38232
38233 # Do we need a version for libraries?
38234 need_version=$need_version
38235
38236 # Whether dlopen is supported.
38237 dlopen_support=$enable_dlopen
38238
38239 # Whether dlopen of programs is supported.
38240 dlopen_self=$enable_dlopen_self
38241
38242 # Whether dlopen of statically linked programs is supported.
38243 dlopen_self_static=$enable_dlopen_self_static
38244
38245 # Compiler flag to prevent dynamic linking.
38246 link_static_flag=$lt_lt_prog_compiler_static
38247
38248 # Compiler flag to turn off builtin functions.
38249 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38250
38251 # Compiler flag to allow reflexive dlopens.
38252 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38253
38254 # Compiler flag to generate shared objects directly from archives.
38255 whole_archive_flag_spec=$lt_whole_archive_flag_spec
38256
38257 # Compiler flag to generate thread-safe objects.
38258 thread_safe_flag_spec=$lt_thread_safe_flag_spec
38259
38260 # Library versioning type.
38261 version_type=$version_type
38262
38263 # Format of library name prefix.
38264 libname_spec=$lt_libname_spec
38265
38266 # List of archive names.  First name is the real one, the rest are links.
38267 # The last name is the one that the linker finds with -lNAME.
38268 library_names_spec=$lt_library_names_spec
38269
38270 # The coded name of the library, if different from the real name.
38271 soname_spec=$lt_soname_spec
38272
38273 # Commands used to build and install an old-style archive.
38274 RANLIB=$lt_RANLIB
38275 old_archive_cmds=$lt_old_archive_cmds
38276 old_postinstall_cmds=$lt_old_postinstall_cmds
38277 old_postuninstall_cmds=$lt_old_postuninstall_cmds
38278
38279 # Create an old-style archive from a shared archive.
38280 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38281
38282 # Create a temporary old-style archive to link instead of a shared archive.
38283 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38284
38285 # Commands used to build and install a shared archive.
38286 archive_cmds=$lt_archive_cmds
38287 archive_expsym_cmds=$lt_archive_expsym_cmds
38288 postinstall_cmds=$lt_postinstall_cmds
38289 postuninstall_cmds=$lt_postuninstall_cmds
38290
38291 # Commands used to build a loadable module (assumed same as above if empty)
38292 module_cmds=$lt_module_cmds
38293 module_expsym_cmds=$lt_module_expsym_cmds
38294
38295 # Commands to strip libraries.
38296 old_striplib=$lt_old_striplib
38297 striplib=$lt_striplib
38298
38299 # Dependencies to place before the objects being linked to create a
38300 # shared library.
38301 predep_objects=$lt_predep_objects
38302
38303 # Dependencies to place after the objects being linked to create a
38304 # shared library.
38305 postdep_objects=$lt_postdep_objects
38306
38307 # Dependencies to place before the objects being linked to create a
38308 # shared library.
38309 predeps=$lt_predeps
38310
38311 # Dependencies to place after the objects being linked to create a
38312 # shared library.
38313 postdeps=$lt_postdeps
38314
38315 # The library search path used internally by the compiler when linking
38316 # a shared library.
38317 compiler_lib_search_path=$lt_compiler_lib_search_path
38318
38319 # Method to check whether dependent libraries are shared objects.
38320 deplibs_check_method=$lt_deplibs_check_method
38321
38322 # Command to use when deplibs_check_method == file_magic.
38323 file_magic_cmd=$lt_file_magic_cmd
38324
38325 # Flag that allows shared libraries with undefined symbols to be built.
38326 allow_undefined_flag=$lt_allow_undefined_flag
38327
38328 # Flag that forces no undefined symbols.
38329 no_undefined_flag=$lt_no_undefined_flag
38330
38331 # Commands used to finish a libtool library installation in a directory.
38332 finish_cmds=$lt_finish_cmds
38333
38334 # Same as above, but a single script fragment to be evaled but not shown.
38335 finish_eval=$lt_finish_eval
38336
38337 # Take the output of nm and produce a listing of raw symbols and C names.
38338 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38339
38340 # Transform the output of nm in a proper C declaration
38341 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38342
38343 # Transform the output of nm in a C name address pair
38344 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38345
38346 # This is the shared library runtime path variable.
38347 runpath_var=$runpath_var
38348
38349 # This is the shared library path variable.
38350 shlibpath_var=$shlibpath_var
38351
38352 # Is shlibpath searched before the hard-coded library search path?
38353 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38354
38355 # How to hardcode a shared library path into an executable.
38356 hardcode_action=$hardcode_action
38357
38358 # Whether we should hardcode library paths into libraries.
38359 hardcode_into_libs=$hardcode_into_libs
38360
38361 # Flag to hardcode \$libdir into a binary during linking.
38362 # This must work even if \$libdir does not exist.
38363 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38364
38365 # If ld is used when linking, flag to hardcode \$libdir into
38366 # a binary during linking. This must work even if \$libdir does
38367 # not exist.
38368 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
38369
38370 # Whether we need a single -rpath flag with a separated argument.
38371 hardcode_libdir_separator=$lt_hardcode_libdir_separator
38372
38373 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
38374 # resulting binary.
38375 hardcode_direct=$hardcode_direct
38376
38377 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
38378 # resulting binary.
38379 hardcode_minus_L=$hardcode_minus_L
38380
38381 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
38382 # the resulting binary.
38383 hardcode_shlibpath_var=$hardcode_shlibpath_var
38384
38385 # Set to yes if building a shared library automatically hardcodes DIR into the library
38386 # and all subsequent libraries and executables linked against it.
38387 hardcode_automatic=$hardcode_automatic
38388
38389 # Variables whose values should be saved in libtool wrapper scripts and
38390 # restored at relink time.
38391 variables_saved_for_relink="$variables_saved_for_relink"
38392
38393 # Whether libtool must link a program against all its dependency libraries.
38394 link_all_deplibs=$link_all_deplibs
38395
38396 # Compile-time system search path for libraries
38397 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38398
38399 # Run-time system search path for libraries
38400 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38401
38402 # Fix the shell variable \$srcfile for the compiler.
38403 fix_srcfile_path="$fix_srcfile_path"
38404
38405 # Set to yes if exported symbols are required.
38406 always_export_symbols=$always_export_symbols
38407
38408 # The commands to list exported symbols.
38409 export_symbols_cmds=$lt_export_symbols_cmds
38410
38411 # The commands to extract the exported symbol list from a shared archive.
38412 extract_expsyms_cmds=$lt_extract_expsyms_cmds
38413
38414 # Symbols that should not be listed in the preloaded symbols.
38415 exclude_expsyms=$lt_exclude_expsyms
38416
38417 # Symbols that must always be exported.
38418 include_expsyms=$lt_include_expsyms
38419
38420 # ### END LIBTOOL CONFIG
38421
38422 __EOF__
38423
38424
38425   case $host_os in
38426   aix3*)
38427     cat <<\EOF >> "$cfgfile"
38428
38429 # AIX sometimes has problems with the GCC collect2 program.  For some
38430 # reason, if we set the COLLECT_NAMES environment variable, the problems
38431 # vanish in a puff of smoke.
38432 if test "X${COLLECT_NAMES+set}" != Xset; then
38433   COLLECT_NAMES=
38434   export COLLECT_NAMES
38435 fi
38436 EOF
38437     ;;
38438   esac
38439
38440   # We use sed instead of cat because bash on DJGPP gets confused if
38441   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
38442   # text mode, it properly converts lines to CR/LF.  This bash problem
38443   # is reportedly fixed, but why not run on old versions too?
38444   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
38445
38446   mv -f "$cfgfile" "$ofile" || \
38447     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38448   chmod +x "$ofile"
38449
38450 else
38451   # If there is no Makefile yet, we rely on a make rule to execute
38452   # `config.status --recheck' to rerun these tests and create the
38453   # libtool script then.
38454   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
38455   if test -f "$ltmain_in"; then
38456     test -f Makefile && make "$ltmain"
38457   fi
38458 fi
38459
38460
38461 ac_ext=c
38462 ac_cpp='$CPP $CPPFLAGS'
38463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38466
38467 CC="$lt_save_CC"
38468
38469
38470 # Check whether --with-tags was given.
38471 if test "${with_tags+set}" = set; then
38472   withval=$with_tags; tagnames="$withval"
38473 fi
38474
38475
38476 if test -f "$ltmain" && test -n "$tagnames"; then
38477   if test ! -f "${ofile}"; then
38478
38479     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
38480 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
38481
38482
38483     cat <<AAW_EOF >>config.warnings
38484 output file \`$ofile' does not exist
38485 AAW_EOF
38486
38487
38488   fi
38489
38490   if test -z "$LTCC"; then
38491     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
38492     if test -z "$LTCC"; then
38493
38494     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
38495 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
38496
38497
38498     cat <<AAW_EOF >>config.warnings
38499 output file \`$ofile' does not look like a libtool script
38500 AAW_EOF
38501
38502
38503     else
38504
38505     { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
38506 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
38507
38508
38509     cat <<AAW_EOF >>config.warnings
38510 using \`LTCC=$LTCC', extracted from \`$ofile'
38511 AAW_EOF
38512
38513
38514     fi
38515   fi
38516
38517   # Extract list of available tagged configurations in $ofile.
38518   # Note that this assumes the entire list is on one line.
38519   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
38520
38521   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
38522   for tagname in $tagnames; do
38523     IFS="$lt_save_ifs"
38524     # Check whether tagname contains only valid characters
38525     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
38526     "") ;;
38527     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
38528 echo "$as_me: error: invalid tag name: $tagname" >&2;}
38529    { (exit 1); exit 1; }; }
38530         ;;
38531     esac
38532
38533     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
38534     then
38535       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
38536 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
38537    { (exit 1); exit 1; }; }
38538     fi
38539
38540     # Update the list of available tags.
38541     if test -n "$tagname"; then
38542       echo appending configuration tag \"$tagname\" to $ofile
38543
38544       case $tagname in
38545       CXX)
38546         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
38547             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
38548             (test "X$CXX" != "Xg++"))) ; then
38549           ac_ext=cpp
38550 ac_cpp='$CXXCPP $CPPFLAGS'
38551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38554
38555
38556
38557
38558 archive_cmds_need_lc_CXX=no
38559 allow_undefined_flag_CXX=
38560 always_export_symbols_CXX=no
38561 archive_expsym_cmds_CXX=
38562 export_dynamic_flag_spec_CXX=
38563 hardcode_direct_CXX=no
38564 hardcode_libdir_flag_spec_CXX=
38565 hardcode_libdir_flag_spec_ld_CXX=
38566 hardcode_libdir_separator_CXX=
38567 hardcode_minus_L_CXX=no
38568 hardcode_automatic_CXX=no
38569 module_cmds_CXX=
38570 module_expsym_cmds_CXX=
38571 link_all_deplibs_CXX=unknown
38572 old_archive_cmds_CXX=$old_archive_cmds
38573 no_undefined_flag_CXX=
38574 whole_archive_flag_spec_CXX=
38575 enable_shared_with_static_runtimes_CXX=no
38576
38577 # Dependencies to place before and after the object being linked:
38578 predep_objects_CXX=
38579 postdep_objects_CXX=
38580 predeps_CXX=
38581 postdeps_CXX=
38582 compiler_lib_search_path_CXX=
38583
38584 # Source file extension for C++ test sources.
38585 ac_ext=cpp
38586
38587 # Object file extension for compiled C++ test sources.
38588 objext=o
38589 objext_CXX=$objext
38590
38591 # Code to be used in simple compile tests
38592 lt_simple_compile_test_code="int some_variable = 0;\n"
38593
38594 # Code to be used in simple link tests
38595 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
38596
38597 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
38598
38599 # If no C compiler was specified, use CC.
38600 LTCC=${LTCC-"$CC"}
38601
38602 # Allow CC to be a program name with arguments.
38603 compiler=$CC
38604
38605
38606 # save warnings/boilerplate of simple test code
38607 ac_outfile=conftest.$ac_objext
38608 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
38609 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
38610 _lt_compiler_boilerplate=`cat conftest.err`
38611 $rm conftest*
38612
38613 ac_outfile=conftest.$ac_objext
38614 printf "$lt_simple_link_test_code" >conftest.$ac_ext
38615 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
38616 _lt_linker_boilerplate=`cat conftest.err`
38617 $rm conftest*
38618
38619
38620 # Allow CC to be a program name with arguments.
38621 lt_save_CC=$CC
38622 lt_save_LD=$LD
38623 lt_save_GCC=$GCC
38624 GCC=$GXX
38625 lt_save_with_gnu_ld=$with_gnu_ld
38626 lt_save_path_LD=$lt_cv_path_LD
38627 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
38628   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
38629 else
38630   unset lt_cv_prog_gnu_ld
38631 fi
38632 if test -n "${lt_cv_path_LDCXX+set}"; then
38633   lt_cv_path_LD=$lt_cv_path_LDCXX
38634 else
38635   unset lt_cv_path_LD
38636 fi
38637 test -z "${LDCXX+set}" || LD=$LDCXX
38638 CC=${CXX-"c++"}
38639 compiler=$CC
38640 compiler_CXX=$CC
38641 for cc_temp in $compiler""; do
38642   case $cc_temp in
38643     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
38644     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
38645     \-*) ;;
38646     *) break;;
38647   esac
38648 done
38649 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
38650
38651
38652 # We don't want -fno-exception wen compiling C++ code, so set the
38653 # no_builtin_flag separately
38654 if test "$GXX" = yes; then
38655   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
38656 else
38657   lt_prog_compiler_no_builtin_flag_CXX=
38658 fi
38659
38660 if test "$GXX" = yes; then
38661   # Set up default GNU C++ configuration
38662
38663
38664 # Check whether --with-gnu-ld was given.
38665 if test "${with_gnu_ld+set}" = set; then
38666   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
38667 else
38668   with_gnu_ld=no
38669 fi
38670
38671 ac_prog=ld
38672 if test "$GCC" = yes; then
38673   # Check if gcc -print-prog-name=ld gives a path.
38674   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
38675 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
38676   case $host in
38677   *-*-mingw*)
38678     # gcc leaves a trailing carriage return which upsets mingw
38679     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
38680   *)
38681     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
38682   esac
38683   case $ac_prog in
38684     # Accept absolute paths.
38685     [\\/]* | ?:[\\/]*)
38686       re_direlt='/[^/][^/]*/\.\./'
38687       # Canonicalize the pathname of ld
38688       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
38689       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
38690         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
38691       done
38692       test -z "$LD" && LD="$ac_prog"
38693       ;;
38694   "")
38695     # If it fails, then pretend we aren't using GCC.
38696     ac_prog=ld
38697     ;;
38698   *)
38699     # If it is relative, then search for the first ld in PATH.
38700     with_gnu_ld=unknown
38701     ;;
38702   esac
38703 elif test "$with_gnu_ld" = yes; then
38704   { echo "$as_me:$LINENO: checking for GNU ld" >&5
38705 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
38706 else
38707   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
38708 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
38709 fi
38710 if test "${lt_cv_path_LD+set}" = set; then
38711   echo $ECHO_N "(cached) $ECHO_C" >&6
38712 else
38713   if test -z "$LD"; then
38714   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
38715   for ac_dir in $PATH; do
38716     IFS="$lt_save_ifs"
38717     test -z "$ac_dir" && ac_dir=.
38718     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
38719       lt_cv_path_LD="$ac_dir/$ac_prog"
38720       # Check to see if the program is GNU ld.  I'd rather use --version,
38721       # but apparently some variants of GNU ld only accept -v.
38722       # Break only if it was the GNU/non-GNU ld that we prefer.
38723       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
38724       *GNU* | *'with BFD'*)
38725         test "$with_gnu_ld" != no && break
38726         ;;
38727       *)
38728         test "$with_gnu_ld" != yes && break
38729         ;;
38730       esac
38731     fi
38732   done
38733   IFS="$lt_save_ifs"
38734 else
38735   lt_cv_path_LD="$LD" # Let the user override the test with a path.
38736 fi
38737 fi
38738
38739 LD="$lt_cv_path_LD"
38740 if test -n "$LD"; then
38741   { echo "$as_me:$LINENO: result: $LD" >&5
38742 echo "${ECHO_T}$LD" >&6; }
38743 else
38744   { echo "$as_me:$LINENO: result: no" >&5
38745 echo "${ECHO_T}no" >&6; }
38746 fi
38747 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
38748 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
38749    { (exit 1); exit 1; }; }
38750 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
38751 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
38752 if test "${lt_cv_prog_gnu_ld+set}" = set; then
38753   echo $ECHO_N "(cached) $ECHO_C" >&6
38754 else
38755   # I'd rather use --version here, but apparently some GNU lds only accept -v.
38756 case `$LD -v 2>&1 </dev/null` in
38757 *GNU* | *'with BFD'*)
38758   lt_cv_prog_gnu_ld=yes
38759   ;;
38760 *)
38761   lt_cv_prog_gnu_ld=no
38762   ;;
38763 esac
38764 fi
38765 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
38766 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
38767 with_gnu_ld=$lt_cv_prog_gnu_ld
38768
38769
38770
38771   # Check if GNU C++ uses GNU ld as the underlying linker, since the
38772   # archiving commands below assume that GNU ld is being used.
38773   if test "$with_gnu_ld" = yes; then
38774     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
38775     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
38776
38777     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
38778     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
38779
38780     # If archive_cmds runs LD, not CC, wlarc should be empty
38781     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
38782     #     investigate it a little bit more. (MM)
38783     wlarc='${wl}'
38784
38785     # ancient GNU ld didn't support --whole-archive et. al.
38786     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
38787         grep 'no-whole-archive' > /dev/null; then
38788       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
38789     else
38790       whole_archive_flag_spec_CXX=
38791     fi
38792   else
38793     with_gnu_ld=no
38794     wlarc=
38795
38796     # A generic and very simple default shared library creation
38797     # command for GNU C++ for the case where it uses the native
38798     # linker, instead of GNU ld.  If possible, this setting should
38799     # overridden to take advantage of the native linker features on
38800     # the platform it is being used on.
38801     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
38802   fi
38803
38804   # Commands to make compiler produce verbose output that lists
38805   # what "hidden" libraries, object files and flags are used when
38806   # linking a shared library.
38807   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
38808
38809 else
38810   GXX=no
38811   with_gnu_ld=no
38812   wlarc=
38813 fi
38814
38815 # PORTME: fill in a description of your system's C++ link characteristics
38816 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
38817 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
38818 ld_shlibs_CXX=yes
38819 case $host_os in
38820   aix3*)
38821     # FIXME: insert proper C++ library support
38822     ld_shlibs_CXX=no
38823     ;;
38824   aix4* | aix5*)
38825     if test "$host_cpu" = ia64; then
38826       # On IA64, the linker does run time linking by default, so we don't
38827       # have to do anything special.
38828       aix_use_runtimelinking=no
38829       exp_sym_flag='-Bexport'
38830       no_entry_flag=""
38831     else
38832       aix_use_runtimelinking=no
38833
38834       # Test if we are trying to use run time linking or normal
38835       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
38836       # need to do runtime linking.
38837       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
38838         for ld_flag in $LDFLAGS; do
38839           case $ld_flag in
38840           *-brtl*)
38841             aix_use_runtimelinking=yes
38842             break
38843             ;;
38844           esac
38845         done
38846       esac
38847
38848       exp_sym_flag='-bexport'
38849       no_entry_flag='-bnoentry'
38850     fi
38851
38852     # When large executables or shared objects are built, AIX ld can
38853     # have problems creating the table of contents.  If linking a library
38854     # or program results in "error TOC overflow" add -mminimal-toc to
38855     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
38856     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
38857
38858     archive_cmds_CXX=''
38859     hardcode_direct_CXX=yes
38860     hardcode_libdir_separator_CXX=':'
38861     link_all_deplibs_CXX=yes
38862
38863     if test "$GXX" = yes; then
38864       case $host_os in aix4.[012]|aix4.[012].*)
38865       # We only want to do this on AIX 4.2 and lower, the check
38866       # below for broken collect2 doesn't work under 4.3+
38867         collect2name=`${CC} -print-prog-name=collect2`
38868         if test -f "$collect2name" && \
38869            strings "$collect2name" | grep resolve_lib_name >/dev/null
38870         then
38871           # We have reworked collect2
38872           hardcode_direct_CXX=yes
38873         else
38874           # We have old collect2
38875           hardcode_direct_CXX=unsupported
38876           # It fails to find uninstalled libraries when the uninstalled
38877           # path is not listed in the libpath.  Setting hardcode_minus_L
38878           # to unsupported forces relinking
38879           hardcode_minus_L_CXX=yes
38880           hardcode_libdir_flag_spec_CXX='-L$libdir'
38881           hardcode_libdir_separator_CXX=
38882         fi
38883       esac
38884       shared_flag='-shared'
38885       if test "$aix_use_runtimelinking" = yes; then
38886         shared_flag="$shared_flag "'${wl}-G'
38887       fi
38888     else
38889       # not using gcc
38890       if test "$host_cpu" = ia64; then
38891         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
38892         # chokes on -Wl,-G. The following line is correct:
38893         shared_flag='-G'
38894       else
38895         if test "$aix_use_runtimelinking" = yes; then
38896           shared_flag='${wl}-G'
38897         else
38898           shared_flag='${wl}-bM:SRE'
38899         fi
38900       fi
38901     fi
38902
38903     # It seems that -bexpall does not export symbols beginning with
38904     # underscore (_), so it is better to generate a list of symbols to export.
38905     always_export_symbols_CXX=yes
38906     if test "$aix_use_runtimelinking" = yes; then
38907       # Warning - without using the other runtime loading flags (-brtl),
38908       # -berok will link without error, but may produce a broken library.
38909       allow_undefined_flag_CXX='-berok'
38910       # Determine the default libpath from the value encoded in an empty executable.
38911       cat >conftest.$ac_ext <<_ACEOF
38912 /* confdefs.h.  */
38913 _ACEOF
38914 cat confdefs.h >>conftest.$ac_ext
38915 cat >>conftest.$ac_ext <<_ACEOF
38916 /* end confdefs.h.  */
38917
38918 int
38919 main ()
38920 {
38921
38922   ;
38923   return 0;
38924 }
38925 _ACEOF
38926 rm -f conftest.$ac_objext conftest$ac_exeext
38927 if { (ac_try="$ac_link"
38928 case "(($ac_try" in
38929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38930   *) ac_try_echo=$ac_try;;
38931 esac
38932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38933   (eval "$ac_link") 2>conftest.er1
38934   ac_status=$?
38935   grep -v '^ *+' conftest.er1 >conftest.err
38936   rm -f conftest.er1
38937   cat conftest.err >&5
38938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38939   (exit $ac_status); } && {
38940          test -z "$ac_cxx_werror_flag" ||
38941          test ! -s conftest.err
38942        } && test -s conftest$ac_exeext &&
38943        $as_test_x conftest$ac_exeext; then
38944
38945 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
38946 }'`
38947 # Check for a 64-bit object if we didn't find anything.
38948 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
38949 }'`; fi
38950 else
38951   echo "$as_me: failed program was:" >&5
38952 sed 's/^/| /' conftest.$ac_ext >&5
38953
38954
38955 fi
38956
38957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38958       conftest$ac_exeext conftest.$ac_ext
38959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
38960
38961       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
38962
38963       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
38964      else
38965       if test "$host_cpu" = ia64; then
38966         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
38967         allow_undefined_flag_CXX="-z nodefs"
38968         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
38969       else
38970         # Determine the default libpath from the value encoded in an empty executable.
38971         cat >conftest.$ac_ext <<_ACEOF
38972 /* confdefs.h.  */
38973 _ACEOF
38974 cat confdefs.h >>conftest.$ac_ext
38975 cat >>conftest.$ac_ext <<_ACEOF
38976 /* end confdefs.h.  */
38977
38978 int
38979 main ()
38980 {
38981
38982   ;
38983   return 0;
38984 }
38985 _ACEOF
38986 rm -f conftest.$ac_objext conftest$ac_exeext
38987 if { (ac_try="$ac_link"
38988 case "(($ac_try" in
38989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38990   *) ac_try_echo=$ac_try;;
38991 esac
38992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38993   (eval "$ac_link") 2>conftest.er1
38994   ac_status=$?
38995   grep -v '^ *+' conftest.er1 >conftest.err
38996   rm -f conftest.er1
38997   cat conftest.err >&5
38998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38999   (exit $ac_status); } && {
39000          test -z "$ac_cxx_werror_flag" ||
39001          test ! -s conftest.err
39002        } && test -s conftest$ac_exeext &&
39003        $as_test_x conftest$ac_exeext; then
39004
39005 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
39006 }'`
39007 # Check for a 64-bit object if we didn't find anything.
39008 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
39009 }'`; fi
39010 else
39011   echo "$as_me: failed program was:" >&5
39012 sed 's/^/| /' conftest.$ac_ext >&5
39013
39014
39015 fi
39016
39017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39018       conftest$ac_exeext conftest.$ac_ext
39019 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
39020
39021         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
39022         # Warning - without using the other run time loading flags,
39023         # -berok will link without error, but may produce a broken library.
39024         no_undefined_flag_CXX=' ${wl}-bernotok'
39025         allow_undefined_flag_CXX=' ${wl}-berok'
39026         # -bexpall does not export symbols beginning with underscore (_)
39027         always_export_symbols_CXX=yes
39028         # Exported symbols can be pulled into shared objects from archives
39029         whole_archive_flag_spec_CXX=' '
39030         archive_cmds_need_lc_CXX=yes
39031         # This is similar to how AIX traditionally builds its shared libraries.
39032         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
39033       fi
39034     fi
39035     ;;
39036   chorus*)
39037     case $cc_basename in
39038       *)
39039         # FIXME: insert proper C++ library support
39040         ld_shlibs_CXX=no
39041         ;;
39042     esac
39043     ;;
39044
39045
39046   cygwin* | mingw* | pw32*)
39047     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
39048     # as there is no search path for DLLs.
39049     hardcode_libdir_flag_spec_CXX='-L$libdir'
39050     allow_undefined_flag_CXX=unsupported
39051     always_export_symbols_CXX=no
39052     enable_shared_with_static_runtimes_CXX=yes
39053
39054     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
39055       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
39056       # If the export-symbols file already is a .def file (1st line
39057       # is EXPORTS), use it as is; otherwise, prepend...
39058       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
39059         cp $export_symbols $output_objdir/$soname.def;
39060       else
39061         echo EXPORTS > $output_objdir/$soname.def;
39062         cat $export_symbols >> $output_objdir/$soname.def;
39063       fi~
39064       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
39065     else
39066       ld_shlibs_CXX=no
39067     fi
39068   ;;
39069       darwin* | rhapsody*)
39070         case $host_os in
39071         rhapsody* | darwin1.[012])
39072          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
39073          ;;
39074        *) # Darwin 1.3 on
39075          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
39076            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
39077          else
39078            case ${MACOSX_DEPLOYMENT_TARGET} in
39079              10.[012])
39080                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
39081                ;;
39082              10.*)
39083                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
39084                ;;
39085            esac
39086          fi
39087          ;;
39088         esac
39089       archive_cmds_need_lc_CXX=no
39090       hardcode_direct_CXX=no
39091       hardcode_automatic_CXX=yes
39092       hardcode_shlibpath_var_CXX=unsupported
39093       whole_archive_flag_spec_CXX=''
39094       link_all_deplibs_CXX=yes
39095
39096     if test "$GXX" = yes ; then
39097       lt_int_apple_cc_single_mod=no
39098       output_verbose_link_cmd='echo'
39099       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
39100        lt_int_apple_cc_single_mod=yes
39101       fi
39102       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
39103        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
39104       else
39105           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
39106         fi
39107         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
39108         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
39109           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
39110             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
39111           else
39112             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
39113           fi
39114             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
39115       else
39116       case $cc_basename in
39117         xlc*)
39118          output_verbose_link_cmd='echo'
39119           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
39120           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
39121           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
39122           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
39123           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
39124           ;;
39125        *)
39126          ld_shlibs_CXX=no
39127           ;;
39128       esac
39129       fi
39130         ;;
39131
39132   dgux*)
39133     case $cc_basename in
39134       ec++*)
39135         # FIXME: insert proper C++ library support
39136         ld_shlibs_CXX=no
39137         ;;
39138       ghcx*)
39139         # Green Hills C++ Compiler
39140         # FIXME: insert proper C++ library support
39141         ld_shlibs_CXX=no
39142         ;;
39143       *)
39144         # FIXME: insert proper C++ library support
39145         ld_shlibs_CXX=no
39146         ;;
39147     esac
39148     ;;
39149   freebsd[12]*)
39150     # C++ shared libraries reported to be fairly broken before switch to ELF
39151     ld_shlibs_CXX=no
39152     ;;
39153   freebsd-elf*)
39154     archive_cmds_need_lc_CXX=no
39155     ;;
39156   freebsd* | kfreebsd*-gnu | dragonfly*)
39157     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
39158     # conventions
39159     ld_shlibs_CXX=yes
39160     ;;
39161   gnu*)
39162     ;;
39163   hpux9*)
39164     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
39165     hardcode_libdir_separator_CXX=:
39166     export_dynamic_flag_spec_CXX='${wl}-E'
39167     hardcode_direct_CXX=yes
39168     hardcode_minus_L_CXX=yes # Not in the search PATH,
39169                                 # but as the default
39170                                 # location of the library.
39171
39172     case $cc_basename in
39173     CC*)
39174       # FIXME: insert proper C++ library support
39175       ld_shlibs_CXX=no
39176       ;;
39177     aCC*)
39178       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
39179       # Commands to make compiler produce verbose output that lists
39180       # what "hidden" libraries, object files and flags are used when
39181       # linking a shared library.
39182       #
39183       # There doesn't appear to be a way to prevent this compiler from
39184       # explicitly linking system object files so we need to strip them
39185       # from the output so that they don't get included in the library
39186       # dependencies.
39187       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
39188       ;;
39189     *)
39190       if test "$GXX" = yes; then
39191         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
39192       else
39193         # FIXME: insert proper C++ library support
39194         ld_shlibs_CXX=no
39195       fi
39196       ;;
39197     esac
39198     ;;
39199   hpux10*|hpux11*)
39200     if test $with_gnu_ld = no; then
39201       case $host_cpu in
39202       hppa*64*)
39203         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
39204         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
39205         hardcode_libdir_separator_CXX=:
39206         ;;
39207       ia64*)
39208         hardcode_libdir_flag_spec_CXX='-L$libdir'
39209         ;;
39210       *)
39211         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
39212         hardcode_libdir_separator_CXX=:
39213         export_dynamic_flag_spec_CXX='${wl}-E'
39214         ;;
39215       esac
39216     fi
39217     case $host_cpu in
39218     hppa*64*)
39219       hardcode_direct_CXX=no
39220       hardcode_shlibpath_var_CXX=no
39221       ;;
39222     ia64*)
39223       hardcode_direct_CXX=no
39224       hardcode_shlibpath_var_CXX=no
39225       hardcode_minus_L_CXX=yes # Not in the search PATH,
39226                                               # but as the default
39227                                               # location of the library.
39228       ;;
39229     *)
39230       hardcode_direct_CXX=yes
39231       hardcode_minus_L_CXX=yes # Not in the search PATH,
39232                                               # but as the default
39233                                               # location of the library.
39234       ;;
39235     esac
39236
39237     case $cc_basename in
39238       CC*)
39239         # FIXME: insert proper C++ library support
39240         ld_shlibs_CXX=no
39241         ;;
39242       aCC*)
39243         case $host_cpu in
39244         hppa*64*|ia64*)
39245           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
39246           ;;
39247         *)
39248           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
39249           ;;
39250         esac
39251         # Commands to make compiler produce verbose output that lists
39252         # what "hidden" libraries, object files and flags are used when
39253         # linking a shared library.
39254         #
39255         # There doesn't appear to be a way to prevent this compiler from
39256         # explicitly linking system object files so we need to strip them
39257         # from the output so that they don't get included in the library
39258         # dependencies.
39259         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
39260         ;;
39261       *)
39262         if test "$GXX" = yes; then
39263           if test $with_gnu_ld = no; then
39264             case $host_cpu in
39265             ia64*|hppa*64*)
39266               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
39267               ;;
39268             *)
39269               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
39270               ;;
39271             esac
39272           fi
39273         else
39274           # FIXME: insert proper C++ library support
39275           ld_shlibs_CXX=no
39276         fi
39277         ;;
39278     esac
39279     ;;
39280   irix5* | irix6*)
39281     case $cc_basename in
39282       CC*)
39283         # SGI C++
39284         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
39285
39286         # Archives containing C++ object files must be created using
39287         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
39288         # necessary to make sure instantiated templates are included
39289         # in the archive.
39290         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
39291         ;;
39292       *)
39293         if test "$GXX" = yes; then
39294           if test "$with_gnu_ld" = no; then
39295             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
39296           else
39297             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
39298           fi
39299         fi
39300         link_all_deplibs_CXX=yes
39301         ;;
39302     esac
39303     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
39304     hardcode_libdir_separator_CXX=:
39305     ;;
39306   linux*)
39307     case $cc_basename in
39308       KCC*)
39309         # Kuck and Associates, Inc. (KAI) C++ Compiler
39310
39311         # KCC will only create a shared library if the output file
39312         # ends with ".so" (or ".sl" for HP-UX), so rename the library
39313         # to its proper name (with version) after linking.
39314         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
39315         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
39316         # Commands to make compiler produce verbose output that lists
39317         # what "hidden" libraries, object files and flags are used when
39318         # linking a shared library.
39319         #
39320         # There doesn't appear to be a way to prevent this compiler from
39321         # explicitly linking system object files so we need to strip them
39322         # from the output so that they don't get included in the library
39323         # dependencies.
39324         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
39325
39326         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
39327         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
39328
39329         # Archives containing C++ object files must be created using
39330         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
39331         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
39332         ;;
39333       icpc*)
39334         # Intel C++
39335         with_gnu_ld=yes
39336         # version 8.0 and above of icpc choke on multiply defined symbols
39337         # if we add $predep_objects and $postdep_objects, however 7.1 and
39338         # earlier do not add the objects themselves.
39339         case `$CC -V 2>&1` in
39340         *"Version 7."*)
39341           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
39342           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
39343           ;;
39344         *)  # Version 8.0 or newer
39345           tmp_idyn=
39346           case $host_cpu in
39347             ia64*) tmp_idyn=' -i_dynamic';;
39348           esac
39349           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
39350           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
39351           ;;
39352         esac
39353         archive_cmds_need_lc_CXX=no
39354         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
39355         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
39356         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
39357         ;;
39358       pgCC*)
39359         # Portland Group C++ compiler
39360         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
39361         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
39362
39363         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
39364         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
39365         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
39366         ;;
39367       cxx*)
39368         # Compaq C++
39369         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
39370         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
39371
39372         runpath_var=LD_RUN_PATH
39373         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
39374         hardcode_libdir_separator_CXX=:
39375
39376         # Commands to make compiler produce verbose output that lists
39377         # what "hidden" libraries, object files and flags are used when
39378         # linking a shared library.
39379         #
39380         # There doesn't appear to be a way to prevent this compiler from
39381         # explicitly linking system object files so we need to strip them
39382         # from the output so that they don't get included in the library
39383         # dependencies.
39384         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
39385         ;;
39386     esac
39387     ;;
39388   lynxos*)
39389     # FIXME: insert proper C++ library support
39390     ld_shlibs_CXX=no
39391     ;;
39392   m88k*)
39393     # FIXME: insert proper C++ library support
39394     ld_shlibs_CXX=no
39395     ;;
39396   mvs*)
39397     case $cc_basename in
39398       cxx*)
39399         # FIXME: insert proper C++ library support
39400         ld_shlibs_CXX=no
39401         ;;
39402       *)
39403         # FIXME: insert proper C++ library support
39404         ld_shlibs_CXX=no
39405         ;;
39406     esac
39407     ;;
39408   netbsd*)
39409     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
39410       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
39411       wlarc=
39412       hardcode_libdir_flag_spec_CXX='-R$libdir'
39413       hardcode_direct_CXX=yes
39414       hardcode_shlibpath_var_CXX=no
39415     fi
39416     # Workaround some broken pre-1.5 toolchains
39417     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
39418     ;;
39419   openbsd2*)
39420     # C++ shared libraries are fairly broken
39421     ld_shlibs_CXX=no
39422     ;;
39423   openbsd*)
39424     hardcode_direct_CXX=yes
39425     hardcode_shlibpath_var_CXX=no
39426     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
39427     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
39428     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
39429       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
39430       export_dynamic_flag_spec_CXX='${wl}-E'
39431       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
39432     fi
39433     output_verbose_link_cmd='echo'
39434     ;;
39435   osf3*)
39436     case $cc_basename in
39437       KCC*)
39438         # Kuck and Associates, Inc. (KAI) C++ Compiler
39439
39440         # KCC will only create a shared library if the output file
39441         # ends with ".so" (or ".sl" for HP-UX), so rename the library
39442         # to its proper name (with version) after linking.
39443         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
39444
39445         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
39446         hardcode_libdir_separator_CXX=:
39447
39448         # Archives containing C++ object files must be created using
39449         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
39450         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
39451
39452         ;;
39453       RCC*)
39454         # Rational C++ 2.4.1
39455         # FIXME: insert proper C++ library support
39456         ld_shlibs_CXX=no
39457         ;;
39458       cxx*)
39459         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
39460         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
39461
39462         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
39463         hardcode_libdir_separator_CXX=:
39464
39465         # Commands to make compiler produce verbose output that lists
39466         # what "hidden" libraries, object files and flags are used when
39467         # linking a shared library.
39468         #
39469         # There doesn't appear to be a way to prevent this compiler from
39470         # explicitly linking system object files so we need to strip them
39471         # from the output so that they don't get included in the library
39472         # dependencies.
39473         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
39474         ;;
39475       *)
39476         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
39477           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
39478           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
39479
39480           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
39481           hardcode_libdir_separator_CXX=:
39482
39483           # Commands to make compiler produce verbose output that lists
39484           # what "hidden" libraries, object files and flags are used when
39485           # linking a shared library.
39486           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
39487
39488         else
39489           # FIXME: insert proper C++ library support
39490           ld_shlibs_CXX=no
39491         fi
39492         ;;
39493     esac
39494     ;;
39495   osf4* | osf5*)
39496     case $cc_basename in
39497       KCC*)
39498         # Kuck and Associates, Inc. (KAI) C++ Compiler
39499
39500         # KCC will only create a shared library if the output file
39501         # ends with ".so" (or ".sl" for HP-UX), so rename the library
39502         # to its proper name (with version) after linking.
39503         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
39504
39505         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
39506         hardcode_libdir_separator_CXX=:
39507
39508         # Archives containing C++ object files must be created using
39509         # the KAI C++ compiler.
39510         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
39511         ;;
39512       RCC*)
39513         # Rational C++ 2.4.1
39514         # FIXME: insert proper C++ library support
39515         ld_shlibs_CXX=no
39516         ;;
39517       cxx*)
39518         allow_undefined_flag_CXX=' -expect_unresolved \*'
39519         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
39520         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
39521           echo "-hidden">> $lib.exp~
39522           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
39523           $rm $lib.exp'
39524
39525         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
39526         hardcode_libdir_separator_CXX=:
39527
39528         # Commands to make compiler produce verbose output that lists
39529         # what "hidden" libraries, object files and flags are used when
39530         # linking a shared library.
39531         #
39532         # There doesn't appear to be a way to prevent this compiler from
39533         # explicitly linking system object files so we need to strip them
39534         # from the output so that they don't get included in the library
39535         # dependencies.
39536         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
39537         ;;
39538       *)
39539         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
39540           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
39541          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
39542
39543           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
39544           hardcode_libdir_separator_CXX=:
39545
39546           # Commands to make compiler produce verbose output that lists
39547           # what "hidden" libraries, object files and flags are used when
39548           # linking a shared library.
39549           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
39550
39551         else
39552           # FIXME: insert proper C++ library support
39553           ld_shlibs_CXX=no
39554         fi
39555         ;;
39556     esac
39557     ;;
39558   psos*)
39559     # FIXME: insert proper C++ library support
39560     ld_shlibs_CXX=no
39561     ;;
39562   sco*)
39563     archive_cmds_need_lc_CXX=no
39564     case $cc_basename in
39565       CC*)
39566         # FIXME: insert proper C++ library support
39567         ld_shlibs_CXX=no
39568         ;;
39569       *)
39570         # FIXME: insert proper C++ library support
39571         ld_shlibs_CXX=no
39572         ;;
39573     esac
39574     ;;
39575   sunos4*)
39576     case $cc_basename in
39577       CC*)
39578         # Sun C++ 4.x
39579         # FIXME: insert proper C++ library support
39580         ld_shlibs_CXX=no
39581         ;;
39582       lcc*)
39583         # Lucid
39584         # FIXME: insert proper C++ library support
39585         ld_shlibs_CXX=no
39586         ;;
39587       *)
39588         # FIXME: insert proper C++ library support
39589         ld_shlibs_CXX=no
39590         ;;
39591     esac
39592     ;;
39593   solaris*)
39594     case $cc_basename in
39595       CC*)
39596         # Sun C++ 4.2, 5.x and Centerline C++
39597         archive_cmds_need_lc_CXX=yes
39598         no_undefined_flag_CXX=' -zdefs'
39599         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
39600         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
39601         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
39602
39603         hardcode_libdir_flag_spec_CXX='-R$libdir'
39604         hardcode_shlibpath_var_CXX=no
39605         case $host_os in
39606           solaris2.[0-5] | solaris2.[0-5].*) ;;
39607           *)
39608             # The C++ compiler is used as linker so we must use $wl
39609             # flag to pass the commands to the underlying system
39610             # linker. We must also pass each convience library through
39611             # to the system linker between allextract/defaultextract.
39612             # The C++ compiler will combine linker options so we
39613             # cannot just pass the convience library names through
39614             # without $wl.
39615             # Supported since Solaris 2.6 (maybe 2.5.1?)
39616             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
39617             ;;
39618         esac
39619         link_all_deplibs_CXX=yes
39620
39621         output_verbose_link_cmd='echo'
39622
39623         # Archives containing C++ object files must be created using
39624         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
39625         # necessary to make sure instantiated templates are included
39626         # in the archive.
39627         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
39628         ;;
39629       gcx*)
39630         # Green Hills C++ Compiler
39631         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
39632
39633         # The C++ compiler must be used to create the archive.
39634         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
39635         ;;
39636       *)
39637         # GNU C++ compiler with Solaris linker
39638         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
39639           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
39640           if $CC --version | grep -v '^2\.7' > /dev/null; then
39641             if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
39642               archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
39643               archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
39644                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
39645
39646               # Commands to make compiler produce verbose output that lists
39647               # what "hidden" libraries, object files and flags are used when
39648               # linking a shared library.
39649               output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
39650               lt_prog_compiler_static_CXX='-static'
39651             else
39652               archive_cmds_CXX='$CC ${wl}-G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
39653               archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
39654                 $CC ${wl}-G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
39655
39656               # Commands to make compiler produce verbose output that lists
39657               # what "hidden" libraries, object files and flags are used when
39658               # linking a shared library.
39659               output_verbose_link_cmd="$CC ${wl}-G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
39660               lt_prog_compiler_static_CXX='${wl}-Bstatic'
39661             fi
39662           else
39663             # g++ 2.7 appears to require `-G' NOT `-shared' on this
39664             # platform.
39665             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
39666             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
39667                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
39668
39669             # Commands to make compiler produce verbose output that lists
39670             # what "hidden" libraries, object files and flags are used when
39671             # linking a shared library.
39672             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
39673           fi
39674
39675           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
39676         fi
39677         ;;
39678     esac
39679     ;;
39680   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
39681     archive_cmds_need_lc_CXX=no
39682     ;;
39683   tandem*)
39684     case $cc_basename in
39685       NCC*)
39686         # NonStop-UX NCC 3.20
39687         # FIXME: insert proper C++ library support
39688         ld_shlibs_CXX=no
39689         ;;
39690       *)
39691         # FIXME: insert proper C++ library support
39692         ld_shlibs_CXX=no
39693         ;;
39694     esac
39695     ;;
39696   vxworks*)
39697     # FIXME: insert proper C++ library support
39698     ld_shlibs_CXX=no
39699     ;;
39700   *)
39701     # FIXME: insert proper C++ library support
39702     ld_shlibs_CXX=no
39703     ;;
39704 esac
39705 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
39706 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
39707 test "$ld_shlibs_CXX" = no && can_build_shared=no
39708
39709 GCC_CXX="$GXX"
39710 LD_CXX="$LD"
39711
39712 ## CAVEAT EMPTOR:
39713 ## There is no encapsulation within the following macros, do not change
39714 ## the running order or otherwise move them around unless you know exactly
39715 ## what you are doing...
39716
39717 cat > conftest.$ac_ext <<EOF
39718 class Foo
39719 {
39720 public:
39721   Foo (void) { a = 0; }
39722 private:
39723   int a;
39724 };
39725 EOF
39726
39727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39728   (eval $ac_compile) 2>&5
39729   ac_status=$?
39730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39731   (exit $ac_status); }; then
39732   # Parse the compiler output and extract the necessary
39733   # objects, libraries and library flags.
39734
39735   # Sentinel used to keep track of whether or not we are before
39736   # the conftest object file.
39737   pre_test_object_deps_done=no
39738
39739   # The `*' in the case matches for architectures that use `case' in
39740   # $output_verbose_cmd can trigger glob expansion during the loop
39741   # eval without this substitution.
39742   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
39743
39744   for p in `eval $output_verbose_link_cmd`; do
39745     case $p in
39746
39747     -L* | -R* | -l*)
39748        # Some compilers place space between "-{L,R}" and the path.
39749        # Remove the space.
39750        if test $p = "-L" \
39751           || test $p = "-R"; then
39752          prev=$p
39753          continue
39754        else
39755          prev=
39756        fi
39757
39758        if test "$pre_test_object_deps_done" = no; then
39759          case $p in
39760          -L* | -R*)
39761            # Internal compiler library paths should come after those
39762            # provided the user.  The postdeps already come after the
39763            # user supplied libs so there is no need to process them.
39764            if test -z "$compiler_lib_search_path_CXX"; then
39765              compiler_lib_search_path_CXX="${prev}${p}"
39766            else
39767              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
39768            fi
39769            ;;
39770          # The "-l" case would never come before the object being
39771          # linked, so don't bother handling this case.
39772          esac
39773        else
39774          if test -z "$postdeps_CXX"; then
39775            postdeps_CXX="${prev}${p}"
39776          else
39777            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
39778          fi
39779        fi
39780        ;;
39781
39782     *.$objext)
39783        # This assumes that the test object file only shows up
39784        # once in the compiler output.
39785        if test "$p" = "conftest.$objext"; then
39786          pre_test_object_deps_done=yes
39787          continue
39788        fi
39789
39790        if test "$pre_test_object_deps_done" = no; then
39791          if test -z "$predep_objects_CXX"; then
39792            predep_objects_CXX="$p"
39793          else
39794            predep_objects_CXX="$predep_objects_CXX $p"
39795          fi
39796        else
39797          if test -z "$postdep_objects_CXX"; then
39798            postdep_objects_CXX="$p"
39799          else
39800            postdep_objects_CXX="$postdep_objects_CXX $p"
39801          fi
39802        fi
39803        ;;
39804
39805     *) ;; # Ignore the rest.
39806
39807     esac
39808   done
39809
39810   # Clean up.
39811   rm -f a.out a.exe
39812 else
39813   echo "libtool.m4: error: problem compiling CXX test program"
39814 fi
39815
39816 $rm -f confest.$objext
39817
39818 # PORTME: override above test on systems where it is broken
39819 case $host_os in
39820 solaris*)
39821   case $cc_basename in
39822   CC*)
39823     # Adding this requires a known-good setup of shared libraries for
39824     # Sun compiler versions before 5.6, else PIC objects from an old
39825     # archive will be linked into the output, leading to subtle bugs.
39826     postdeps_CXX='-lCstd -lCrun'
39827     ;;
39828   esac
39829 esac
39830
39831
39832 case " $postdeps_CXX " in
39833 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
39834 esac
39835
39836 lt_prog_compiler_wl_CXX=
39837 lt_prog_compiler_pic_CXX=
39838 lt_prog_compiler_static_CXX=
39839
39840 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
39841 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
39842
39843   # C++ specific cases for pic, static, wl, etc.
39844   if test "$GXX" = yes; then
39845     lt_prog_compiler_wl_CXX='-Wl,'
39846     lt_prog_compiler_static_CXX='-static'
39847
39848     case $host_os in
39849     aix*)
39850       # All AIX code is PIC.
39851       if test "$host_cpu" = ia64; then
39852         # AIX 5 now supports IA64 processor
39853         lt_prog_compiler_static_CXX='-Bstatic'
39854       fi
39855       ;;
39856     amigaos*)
39857       # FIXME: we need at least 68020 code to build shared libraries, but
39858       # adding the `-m68020' flag to GCC prevents building anything better,
39859       # like `-m68040'.
39860       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
39861       ;;
39862     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
39863       # PIC is the default for these OSes.
39864       ;;
39865     mingw* | os2* | pw32*)
39866       # This hack is so that the source file can tell whether it is being
39867       # built for inclusion in a dll (and should export symbols for example).
39868       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
39869       ;;
39870     darwin* | rhapsody*)
39871       # PIC is the default on this platform
39872       # Common symbols not allowed in MH_DYLIB files
39873       lt_prog_compiler_pic_CXX='-fno-common'
39874       ;;
39875     *djgpp*)
39876       # DJGPP does not support shared libraries at all
39877       lt_prog_compiler_pic_CXX=
39878       ;;
39879     sysv4*MP*)
39880       if test -d /usr/nec; then
39881         lt_prog_compiler_pic_CXX=-Kconform_pic
39882       fi
39883       ;;
39884     hpux*)
39885       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
39886       # not for PA HP-UX.
39887       case $host_cpu in
39888       hppa*64*|ia64*)
39889         ;;
39890       *)
39891         lt_prog_compiler_pic_CXX='-fPIC'
39892         ;;
39893       esac
39894       ;;
39895     *)
39896       lt_prog_compiler_pic_CXX='-fPIC'
39897       ;;
39898     esac
39899   else
39900     case $host_os in
39901       aix4* | aix5*)
39902         # All AIX code is PIC.
39903         if test "$host_cpu" = ia64; then
39904           # AIX 5 now supports IA64 processor
39905           lt_prog_compiler_static_CXX='-Bstatic'
39906         else
39907           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
39908         fi
39909         ;;
39910       chorus*)
39911         case $cc_basename in
39912         cxch68*)
39913           # Green Hills C++ Compiler
39914           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
39915           ;;
39916         esac
39917         ;;
39918        darwin*)
39919          # PIC is the default on this platform
39920          # Common symbols not allowed in MH_DYLIB files
39921          case $cc_basename in
39922            xlc*)
39923            lt_prog_compiler_pic_CXX='-qnocommon'
39924            lt_prog_compiler_wl_CXX='-Wl,'
39925            ;;
39926          esac
39927        ;;
39928       dgux*)
39929         case $cc_basename in
39930           ec++*)
39931             lt_prog_compiler_pic_CXX='-KPIC'
39932             ;;
39933           ghcx*)
39934             # Green Hills C++ Compiler
39935             lt_prog_compiler_pic_CXX='-pic'
39936             ;;
39937           *)
39938             ;;
39939         esac
39940         ;;
39941       freebsd* | kfreebsd*-gnu | dragonfly*)
39942         # FreeBSD uses GNU C++
39943         ;;
39944       hpux9* | hpux10* | hpux11*)
39945         case $cc_basename in
39946           CC*)
39947             lt_prog_compiler_wl_CXX='-Wl,'
39948             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
39949             if test "$host_cpu" != ia64; then
39950               lt_prog_compiler_pic_CXX='+Z'
39951             fi
39952             ;;
39953           aCC*)
39954             lt_prog_compiler_wl_CXX='-Wl,'
39955             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
39956             case $host_cpu in
39957             hppa*64*|ia64*)
39958               # +Z the default
39959               ;;
39960             *)
39961               lt_prog_compiler_pic_CXX='+Z'
39962               ;;
39963             esac
39964             ;;
39965           *)
39966             ;;
39967         esac
39968         ;;
39969       irix5* | irix6* | nonstopux*)
39970         case $cc_basename in
39971           CC*)
39972             lt_prog_compiler_wl_CXX='-Wl,'
39973             lt_prog_compiler_static_CXX='-non_shared'
39974             # CC pic flag -KPIC is the default.
39975             ;;
39976           *)
39977             ;;
39978         esac
39979         ;;
39980       linux*)
39981         case $cc_basename in
39982           KCC*)
39983             # KAI C++ Compiler
39984             lt_prog_compiler_wl_CXX='--backend -Wl,'
39985             lt_prog_compiler_pic_CXX='-fPIC'
39986             ;;
39987           icpc* | ecpc*)
39988             # Intel C++
39989             lt_prog_compiler_wl_CXX='-Wl,'
39990             lt_prog_compiler_pic_CXX='-KPIC'
39991             lt_prog_compiler_static_CXX='-static'
39992             ;;
39993           pgCC*)
39994             # Portland Group C++ compiler.
39995             lt_prog_compiler_wl_CXX='-Wl,'
39996             lt_prog_compiler_pic_CXX='-fpic'
39997             lt_prog_compiler_static_CXX='-Bstatic'
39998             ;;
39999           cxx*)
40000             # Compaq C++
40001             # Make sure the PIC flag is empty.  It appears that all Alpha
40002             # Linux and Compaq Tru64 Unix objects are PIC.
40003             lt_prog_compiler_pic_CXX=
40004             lt_prog_compiler_static_CXX='-non_shared'
40005             ;;
40006           *)
40007             ;;
40008         esac
40009         ;;
40010       lynxos*)
40011         ;;
40012       m88k*)
40013         ;;
40014       mvs*)
40015         case $cc_basename in
40016           cxx*)
40017             lt_prog_compiler_pic_CXX='-W c,exportall'
40018             ;;
40019           *)
40020             ;;
40021         esac
40022         ;;
40023       netbsd*)
40024         ;;
40025       osf3* | osf4* | osf5*)
40026         case $cc_basename in
40027           KCC*)
40028             lt_prog_compiler_wl_CXX='--backend -Wl,'
40029             ;;
40030           RCC*)
40031             # Rational C++ 2.4.1
40032             lt_prog_compiler_pic_CXX='-pic'
40033             ;;
40034           cxx*)
40035             # Digital/Compaq C++
40036             lt_prog_compiler_wl_CXX='-Wl,'
40037             # Make sure the PIC flag is empty.  It appears that all Alpha
40038             # Linux and Compaq Tru64 Unix objects are PIC.
40039             lt_prog_compiler_pic_CXX=
40040             lt_prog_compiler_static_CXX='-non_shared'
40041             ;;
40042           *)
40043             ;;
40044         esac
40045         ;;
40046       psos*)
40047         ;;
40048       sco*)
40049         case $cc_basename in
40050           CC*)
40051             lt_prog_compiler_pic_CXX='-fPIC'
40052             ;;
40053           *)
40054             ;;
40055         esac
40056         ;;
40057       solaris*)
40058         case $cc_basename in
40059           CC*)
40060             # Sun C++ 4.2, 5.x and Centerline C++
40061             lt_prog_compiler_pic_CXX='-KPIC'
40062             lt_prog_compiler_static_CXX='-Bstatic'
40063             lt_prog_compiler_wl_CXX='-Qoption ld '
40064             ;;
40065           gcx*)
40066             # Green Hills C++ Compiler
40067             lt_prog_compiler_pic_CXX='-PIC'
40068             ;;
40069           *)
40070             if $CC -v --help 2>/dev/null | grep -- -static  > /dev/null 2> /dev/null; then
40071               lt_prog_compiler_static_CXX='-static'
40072             else
40073               # GCC with Sun linker
40074               lt_prog_compiler_pic_CXX='-KPIC'
40075               lt_prog_compiler_static_CXX='${wl}-Bstatic'
40076             fi
40077             ;;
40078         esac
40079         ;;
40080       sunos4*)
40081         case $cc_basename in
40082           CC*)
40083             # Sun C++ 4.x
40084             lt_prog_compiler_pic_CXX='-pic'
40085             lt_prog_compiler_static_CXX='-Bstatic'
40086             ;;
40087           lcc*)
40088             # Lucid
40089             lt_prog_compiler_pic_CXX='-pic'
40090             ;;
40091           *)
40092             ;;
40093         esac
40094         ;;
40095       tandem*)
40096         case $cc_basename in
40097           NCC*)
40098             # NonStop-UX NCC 3.20
40099             lt_prog_compiler_pic_CXX='-KPIC'
40100             ;;
40101           *)
40102             ;;
40103         esac
40104         ;;
40105       unixware*)
40106         ;;
40107       vxworks*)
40108         ;;
40109       *)
40110         lt_prog_compiler_can_build_shared_CXX=no
40111         ;;
40112     esac
40113   fi
40114
40115 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
40116 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
40117
40118 #
40119 # Check to make sure the PIC flag actually works.
40120 #
40121 if test -n "$lt_prog_compiler_pic_CXX"; then
40122
40123 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
40124 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
40125 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
40126   echo $ECHO_N "(cached) $ECHO_C" >&6
40127 else
40128   lt_prog_compiler_pic_works_CXX=no
40129   ac_outfile=conftest.$ac_objext
40130    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
40131    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
40132    # Insert the option either (1) after the last *FLAGS variable, or
40133    # (2) before a word containing "conftest.", or (3) at the end.
40134    # Note that $ac_compile itself does not contain backslashes and begins
40135    # with a dollar sign (not a hyphen), so the echo should work correctly.
40136    # The option is referenced via a variable to avoid confusing sed.
40137    lt_compile=`echo "$ac_compile" | $SED \
40138    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
40139    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
40140    -e 's:$: $lt_compiler_flag:'`
40141    (eval echo "\"\$as_me:40141: $lt_compile\"" >&5)
40142    (eval "$lt_compile" 2>conftest.err)
40143    ac_status=$?
40144    cat conftest.err >&5
40145    echo "$as_me:40145: \$? = $ac_status" >&5
40146    if (exit $ac_status) && test -s "$ac_outfile"; then
40147      # The compiler can only warn and ignore the option if not recognized
40148      # So say no if there are warnings other than the usual output.
40149      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
40150      $SED '/^$/d' conftest.err >conftest.er2
40151      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
40152        lt_prog_compiler_pic_works_CXX=yes
40153      fi
40154    fi
40155    $rm conftest*
40156
40157 fi
40158 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
40159 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
40160
40161 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
40162     case $lt_prog_compiler_pic_CXX in
40163      "" | " "*) ;;
40164      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
40165      esac
40166 else
40167     lt_prog_compiler_pic_CXX=
40168      lt_prog_compiler_can_build_shared_CXX=no
40169 fi
40170
40171 fi
40172 case $host_os in
40173   # For platforms which do not support PIC, -DPIC is meaningless:
40174   *djgpp*)
40175     lt_prog_compiler_pic_CXX=
40176     ;;
40177   *)
40178     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
40179     ;;
40180 esac
40181
40182 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
40183 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
40184 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
40185   echo $ECHO_N "(cached) $ECHO_C" >&6
40186 else
40187   lt_cv_prog_compiler_c_o_CXX=no
40188    $rm -r conftest 2>/dev/null
40189    mkdir conftest
40190    cd conftest
40191    mkdir out
40192    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
40193
40194    lt_compiler_flag="-o out/conftest2.$ac_objext"
40195    # Insert the option either (1) after the last *FLAGS variable, or
40196    # (2) before a word containing "conftest.", or (3) at the end.
40197    # Note that $ac_compile itself does not contain backslashes and begins
40198    # with a dollar sign (not a hyphen), so the echo should work correctly.
40199    lt_compile=`echo "$ac_compile" | $SED \
40200    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
40201    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
40202    -e 's:$: $lt_compiler_flag:'`
40203    (eval echo "\"\$as_me:40203: $lt_compile\"" >&5)
40204    (eval "$lt_compile" 2>out/conftest.err)
40205    ac_status=$?
40206    cat out/conftest.err >&5
40207    echo "$as_me:40207: \$? = $ac_status" >&5
40208    if (exit $ac_status) && test -s out/conftest2.$ac_objext
40209    then
40210      # The compiler can only warn and ignore the option if not recognized
40211      # So say no if there are warnings
40212      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
40213      $SED '/^$/d' out/conftest.err >out/conftest.er2
40214      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
40215        lt_cv_prog_compiler_c_o_CXX=yes
40216      fi
40217    fi
40218    chmod u+w . 2>&5
40219    $rm conftest*
40220    # SGI C++ compiler will create directory out/ii_files/ for
40221    # template instantiation
40222    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
40223    $rm out/* && rmdir out
40224    cd ..
40225    rmdir conftest
40226    $rm conftest*
40227
40228 fi
40229 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
40230 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
40231
40232
40233 hard_links="nottested"
40234 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
40235   # do not overwrite the value of need_locks provided by the user
40236   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
40237 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
40238   hard_links=yes
40239   $rm conftest*
40240   ln conftest.a conftest.b 2>/dev/null && hard_links=no
40241   touch conftest.a
40242   ln conftest.a conftest.b 2>&5 || hard_links=no
40243   ln conftest.a conftest.b 2>/dev/null && hard_links=no
40244   { echo "$as_me:$LINENO: result: $hard_links" >&5
40245 echo "${ECHO_T}$hard_links" >&6; }
40246   if test "$hard_links" = no; then
40247
40248     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
40249 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
40250
40251
40252     cat <<AAW_EOF >>config.warnings
40253 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
40254 AAW_EOF
40255
40256
40257     need_locks=warn
40258   fi
40259 else
40260   need_locks=no
40261 fi
40262
40263 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
40264 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
40265
40266   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
40267   case $host_os in
40268   aix4* | aix5*)
40269     # If we're using GNU nm, then we don't want the "-C" option.
40270     # -C means demangle to AIX nm, but means don't demangle with GNU nm
40271     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
40272       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
40273     else
40274       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
40275     fi
40276     ;;
40277   pw32*)
40278     export_symbols_cmds_CXX="$ltdll_cmds"
40279   ;;
40280   cygwin* | mingw*)
40281     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
40282   ;;
40283   *)
40284     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
40285   ;;
40286   esac
40287
40288 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
40289 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
40290 test "$ld_shlibs_CXX" = no && can_build_shared=no
40291
40292 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
40293 if test "$GCC" = yes; then
40294   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
40295 fi
40296
40297 #
40298 # Do we need to explicitly link libc?
40299 #
40300 case "x$archive_cmds_need_lc_CXX" in
40301 x|xyes)
40302   # Assume -lc should be added
40303   archive_cmds_need_lc_CXX=yes
40304
40305   if test "$enable_shared" = yes && test "$GCC" = yes; then
40306     case $archive_cmds_CXX in
40307     *'~'*)
40308       # FIXME: we may have to deal with multi-command sequences.
40309       ;;
40310     '$CC '*)
40311       # Test whether the compiler implicitly links with -lc since on some
40312       # systems, -lgcc has to come before -lc. If gcc already passes -lc
40313       # to ld, don't add -lc before -lgcc.
40314       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
40315 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
40316       $rm conftest*
40317       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
40318
40319       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40320   (eval $ac_compile) 2>&5
40321   ac_status=$?
40322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40323   (exit $ac_status); } 2>conftest.err; then
40324         soname=conftest
40325         lib=conftest
40326         libobjs=conftest.$ac_objext
40327         deplibs=
40328         wl=$lt_prog_compiler_wl_CXX
40329         compiler_flags=-v
40330         linker_flags=-v
40331         verstring=
40332         output_objdir=.
40333         libname=conftest
40334         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
40335         allow_undefined_flag_CXX=
40336         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
40337   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
40338   ac_status=$?
40339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40340   (exit $ac_status); }
40341         then
40342           archive_cmds_need_lc_CXX=no
40343         else
40344           archive_cmds_need_lc_CXX=yes
40345         fi
40346         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
40347       else
40348         cat conftest.err 1>&5
40349       fi
40350       $rm conftest*
40351       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
40352 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
40353       ;;
40354     esac
40355   fi
40356   ;;
40357 esac
40358
40359 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
40360 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
40361 library_names_spec=
40362 libname_spec='lib$name'
40363 soname_spec=
40364 shrext_cmds=".so"
40365 postinstall_cmds=
40366 postuninstall_cmds=
40367 finish_cmds=
40368 finish_eval=
40369 shlibpath_var=
40370 shlibpath_overrides_runpath=unknown
40371 version_type=none
40372 dynamic_linker="$host_os ld.so"
40373 sys_lib_dlsearch_path_spec="/lib /usr/lib"
40374 if test "$GCC" = yes; then
40375   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
40376   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
40377     # if the path contains ";" then we assume it to be the separator
40378     # otherwise default to the standard path separator (i.e. ":") - it is
40379     # assumed that no part of a normal pathname contains ";" but that should
40380     # okay in the real world where ";" in dirpaths is itself problematic.
40381     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
40382   else
40383     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
40384   fi
40385 else
40386   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
40387 fi
40388 need_lib_prefix=unknown
40389 hardcode_into_libs=no
40390
40391 # when you set need_version to no, make sure it does not cause -set_version
40392 # flags to be left without arguments
40393 need_version=unknown
40394
40395 case $host_os in
40396 aix3*)
40397   version_type=linux
40398   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
40399   shlibpath_var=LIBPATH
40400
40401   # AIX 3 has no versioning support, so we append a major version to the name.
40402   soname_spec='${libname}${release}${shared_ext}$major'
40403   ;;
40404
40405 aix4* | aix5*)
40406   version_type=linux
40407   need_lib_prefix=no
40408   need_version=no
40409   hardcode_into_libs=yes
40410   if test "$host_cpu" = ia64; then
40411     # AIX 5 supports IA64
40412     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
40413     shlibpath_var=LD_LIBRARY_PATH
40414   else
40415     # With GCC up to 2.95.x, collect2 would create an import file
40416     # for dependence libraries.  The import file would start with
40417     # the line `#! .'.  This would cause the generated library to
40418     # depend on `.', always an invalid library.  This was fixed in
40419     # development snapshots of GCC prior to 3.0.
40420     case $host_os in
40421       aix4 | aix4.[01] | aix4.[01].*)
40422       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
40423            echo ' yes '
40424            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
40425         :
40426       else
40427         can_build_shared=no
40428       fi
40429       ;;
40430     esac
40431     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
40432     # soname into executable. Probably we can add versioning support to
40433     # collect2, so additional links can be useful in future.
40434     if test "$aix_use_runtimelinking" = yes; then
40435       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
40436       # instead of lib<name>.a to let people know that these are not
40437       # typical AIX shared libraries.
40438       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40439     else
40440       # We preserve .a as extension for shared libraries through AIX4.2
40441       # and later when we are not doing run time linking.
40442       library_names_spec='${libname}${release}.a $libname.a'
40443       soname_spec='${libname}${release}${shared_ext}$major'
40444     fi
40445     shlibpath_var=LIBPATH
40446   fi
40447   ;;
40448
40449 amigaos*)
40450   library_names_spec='$libname.ixlibrary $libname.a'
40451   # Create ${libname}_ixlibrary.a entries in /sys/libs.
40452   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'
40453   ;;
40454
40455 beos*)
40456   library_names_spec='${libname}${shared_ext}'
40457   dynamic_linker="$host_os ld.so"
40458   shlibpath_var=LIBRARY_PATH
40459   ;;
40460
40461 bsdi[45]*)
40462   version_type=linux
40463   need_version=no
40464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40465   soname_spec='${libname}${release}${shared_ext}$major'
40466   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
40467   shlibpath_var=LD_LIBRARY_PATH
40468   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
40469   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
40470   # the default ld.so.conf also contains /usr/contrib/lib and
40471   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
40472   # libtool to hard-code these into programs
40473   ;;
40474
40475 cygwin* | mingw* | pw32*)
40476   version_type=windows
40477   shrext_cmds=".dll"
40478   need_version=no
40479   need_lib_prefix=no
40480
40481   case $GCC,$host_os in
40482   yes,cygwin* | yes,mingw* | yes,pw32*)
40483     library_names_spec='$libname.dll.a'
40484     # DLL is installed to $(libdir)/../bin by postinstall_cmds
40485     postinstall_cmds='base_file=`basename \${file}`~
40486       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
40487       dldir=$destdir/`dirname \$dlpath`~
40488       test -d \$dldir || mkdir -p \$dldir~
40489       $install_prog $dir/$dlname \$dldir/$dlname~
40490       chmod a+x \$dldir/$dlname'
40491     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
40492       dlpath=$dir/\$dldll~
40493        $rm \$dlpath'
40494     shlibpath_overrides_runpath=yes
40495
40496     case $host_os in
40497     cygwin*)
40498       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
40499       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
40500       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
40501       ;;
40502     mingw*)
40503       # MinGW DLLs use traditional 'lib' prefix
40504       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
40505       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
40506       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
40507         # It is most probably a Windows format PATH printed by
40508         # mingw gcc, but we are running on Cygwin. Gcc prints its search
40509         # path with ; separators, and with drive letters. We can handle the
40510         # drive letters (cygwin fileutils understands them), so leave them,
40511         # especially as we might pass files found there to a mingw objdump,
40512         # which wouldn't understand a cygwinified path. Ahh.
40513         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
40514       else
40515         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
40516       fi
40517       ;;
40518     pw32*)
40519       # pw32 DLLs use 'pw' prefix rather than 'lib'
40520       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
40521       ;;
40522     esac
40523     ;;
40524
40525   *)
40526     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
40527     ;;
40528   esac
40529   dynamic_linker='Win32 ld.exe'
40530   # FIXME: first we should search . and the directory the executable is in
40531   shlibpath_var=PATH
40532   ;;
40533
40534 darwin* | rhapsody*)
40535   dynamic_linker="$host_os dyld"
40536   version_type=darwin
40537   need_lib_prefix=no
40538   need_version=no
40539   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
40540   soname_spec='${libname}${release}${major}$shared_ext'
40541   shlibpath_overrides_runpath=yes
40542   shlibpath_var=DYLD_LIBRARY_PATH
40543   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
40544   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
40545   if test "$GCC" = yes; then
40546     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
40547   else
40548     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
40549   fi
40550   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
40551   ;;
40552
40553 dgux*)
40554   version_type=linux
40555   need_lib_prefix=no
40556   need_version=no
40557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
40558   soname_spec='${libname}${release}${shared_ext}$major'
40559   shlibpath_var=LD_LIBRARY_PATH
40560   ;;
40561
40562 freebsd1*)
40563   dynamic_linker=no
40564   ;;
40565
40566 kfreebsd*-gnu)
40567   version_type=linux
40568   need_lib_prefix=no
40569   need_version=no
40570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
40571   soname_spec='${libname}${release}${shared_ext}$major'
40572   shlibpath_var=LD_LIBRARY_PATH
40573   shlibpath_overrides_runpath=no
40574   hardcode_into_libs=yes
40575   dynamic_linker='GNU ld.so'
40576   ;;
40577
40578 freebsd* | dragonfly*)
40579   # DragonFly does not have aout.  When/if they implement a new
40580   # versioning mechanism, adjust this.
40581   if test -x /usr/bin/objformat; then
40582     objformat=`/usr/bin/objformat`
40583   else
40584     case $host_os in
40585     freebsd[123]*) objformat=aout ;;
40586     *) objformat=elf ;;
40587     esac
40588   fi
40589   version_type=freebsd-$objformat
40590   case $version_type in
40591     freebsd-elf*)
40592       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
40593       need_version=no
40594       need_lib_prefix=no
40595       ;;
40596     freebsd-*)
40597       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
40598       need_version=yes
40599       ;;
40600   esac
40601   shlibpath_var=LD_LIBRARY_PATH
40602   case $host_os in
40603   freebsd2*)
40604     shlibpath_overrides_runpath=yes
40605     ;;
40606   freebsd3.[01]* | freebsdelf3.[01]*)
40607     shlibpath_overrides_runpath=yes
40608     hardcode_into_libs=yes
40609     ;;
40610   *) # from 3.2 on
40611     shlibpath_overrides_runpath=no
40612     hardcode_into_libs=yes
40613     ;;
40614   esac
40615   ;;
40616
40617 gnu*)
40618   version_type=linux
40619   need_lib_prefix=no
40620   need_version=no
40621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
40622   soname_spec='${libname}${release}${shared_ext}$major'
40623   shlibpath_var=LD_LIBRARY_PATH
40624   hardcode_into_libs=yes
40625   ;;
40626
40627 hpux9* | hpux10* | hpux11*)
40628   # Give a soname corresponding to the major version so that dld.sl refuses to
40629   # link against other versions.
40630   version_type=sunos
40631   need_lib_prefix=no
40632   need_version=no
40633   case $host_cpu in
40634   ia64*)
40635     shrext_cmds='.so'
40636     hardcode_into_libs=yes
40637     dynamic_linker="$host_os dld.so"
40638     shlibpath_var=LD_LIBRARY_PATH
40639     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
40640     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40641     soname_spec='${libname}${release}${shared_ext}$major'
40642     if test "X$HPUX_IA64_MODE" = X32; then
40643       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
40644     else
40645       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
40646     fi
40647     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
40648     ;;
40649    hppa*64*)
40650      shrext_cmds='.sl'
40651      hardcode_into_libs=yes
40652      dynamic_linker="$host_os dld.sl"
40653      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
40654      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
40655      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40656      soname_spec='${libname}${release}${shared_ext}$major'
40657      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
40658      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
40659      ;;
40660    *)
40661     shrext_cmds='.sl'
40662     dynamic_linker="$host_os dld.sl"
40663     shlibpath_var=SHLIB_PATH
40664     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
40665     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40666     soname_spec='${libname}${release}${shared_ext}$major'
40667     ;;
40668   esac
40669   # HP-UX runs *really* slowly unless shared libraries are mode 555.
40670   postinstall_cmds='chmod 555 $lib'
40671   ;;
40672
40673 irix5* | irix6* | nonstopux*)
40674   case $host_os in
40675     nonstopux*) version_type=nonstopux ;;
40676     *)
40677         if test "$lt_cv_prog_gnu_ld" = yes; then
40678                 version_type=linux
40679         else
40680                 version_type=irix
40681         fi ;;
40682   esac
40683   need_lib_prefix=no
40684   need_version=no
40685   soname_spec='${libname}${release}${shared_ext}$major'
40686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
40687   case $host_os in
40688   irix5* | nonstopux*)
40689     libsuff= shlibsuff=
40690     ;;
40691   *)
40692     case $LD in # libtool.m4 will add one of these switches to LD
40693     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
40694       libsuff= shlibsuff= libmagic=32-bit;;
40695     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
40696       libsuff=32 shlibsuff=N32 libmagic=N32;;
40697     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
40698       libsuff=64 shlibsuff=64 libmagic=64-bit;;
40699     *) libsuff= shlibsuff= libmagic=never-match;;
40700     esac
40701     ;;
40702   esac
40703   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
40704   shlibpath_overrides_runpath=no
40705   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
40706   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
40707   hardcode_into_libs=yes
40708   ;;
40709
40710 # No shared lib support for Linux oldld, aout, or coff.
40711 linux*oldld* | linux*aout* | linux*coff*)
40712   dynamic_linker=no
40713   ;;
40714
40715 # This must be Linux ELF.
40716 linux*)
40717   version_type=linux
40718   need_lib_prefix=no
40719   need_version=no
40720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40721   soname_spec='${libname}${release}${shared_ext}$major'
40722   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
40723   shlibpath_var=LD_LIBRARY_PATH
40724   shlibpath_overrides_runpath=no
40725   # This implies no fast_install, which is unacceptable.
40726   # Some rework will be needed to allow for fast_install
40727   # before this can be enabled.
40728   hardcode_into_libs=yes
40729
40730   # Append ld.so.conf contents to the search path
40731   if test -f /etc/ld.so.conf; then
40732     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
40733     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
40734   fi
40735
40736   # We used to test for /lib/ld.so.1 and disable shared libraries on
40737   # powerpc, because MkLinux only supported shared libraries with the
40738   # GNU dynamic linker.  Since this was broken with cross compilers,
40739   # most powerpc-linux boxes support dynamic linking these days and
40740   # people can always --disable-shared, the test was removed, and we
40741   # assume the GNU/Linux dynamic linker is in use.
40742   dynamic_linker='GNU/Linux ld.so'
40743   ;;
40744
40745 knetbsd*-gnu)
40746   version_type=linux
40747   need_lib_prefix=no
40748   need_version=no
40749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
40750   soname_spec='${libname}${release}${shared_ext}$major'
40751   shlibpath_var=LD_LIBRARY_PATH
40752   shlibpath_overrides_runpath=no
40753   hardcode_into_libs=yes
40754   dynamic_linker='GNU ld.so'
40755   ;;
40756
40757 netbsd*)
40758   version_type=sunos
40759   need_lib_prefix=no
40760   need_version=no
40761   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
40762     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
40763     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
40764     dynamic_linker='NetBSD (a.out) ld.so'
40765   else
40766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
40767     soname_spec='${libname}${release}${shared_ext}$major'
40768     dynamic_linker='NetBSD ld.elf_so'
40769   fi
40770   shlibpath_var=LD_LIBRARY_PATH
40771   shlibpath_overrides_runpath=yes
40772   hardcode_into_libs=yes
40773   ;;
40774
40775 newsos6)
40776   version_type=linux
40777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40778   shlibpath_var=LD_LIBRARY_PATH
40779   shlibpath_overrides_runpath=yes
40780   ;;
40781
40782 nto-qnx*)
40783   version_type=linux
40784   need_lib_prefix=no
40785   need_version=no
40786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40787   soname_spec='${libname}${release}${shared_ext}$major'
40788   shlibpath_var=LD_LIBRARY_PATH
40789   shlibpath_overrides_runpath=yes
40790   ;;
40791
40792 openbsd*)
40793   version_type=sunos
40794   need_lib_prefix=no
40795   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
40796   case $host_os in
40797     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
40798     *)                         need_version=no  ;;
40799   esac
40800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
40801   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
40802   shlibpath_var=LD_LIBRARY_PATH
40803   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
40804     case $host_os in
40805       openbsd2.[89] | openbsd2.[89].*)
40806         shlibpath_overrides_runpath=no
40807         ;;
40808       *)
40809         shlibpath_overrides_runpath=yes
40810         ;;
40811       esac
40812   else
40813     shlibpath_overrides_runpath=yes
40814   fi
40815   ;;
40816
40817 os2*)
40818   libname_spec='$name'
40819   shrext_cmds=".dll"
40820   need_lib_prefix=no
40821   library_names_spec='$libname${shared_ext} $libname.a'
40822   dynamic_linker='OS/2 ld.exe'
40823   shlibpath_var=LIBPATH
40824   ;;
40825
40826 osf3* | osf4* | osf5*)
40827   version_type=osf
40828   need_lib_prefix=no
40829   need_version=no
40830   soname_spec='${libname}${release}${shared_ext}$major'
40831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40832   shlibpath_var=LD_LIBRARY_PATH
40833   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
40834   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
40835   ;;
40836
40837 sco3.2v5*)
40838   version_type=osf
40839   soname_spec='${libname}${release}${shared_ext}$major'
40840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40841   shlibpath_var=LD_LIBRARY_PATH
40842   ;;
40843
40844 solaris*)
40845   version_type=linux
40846   need_lib_prefix=no
40847   need_version=no
40848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40849   soname_spec='${libname}${release}${shared_ext}$major'
40850   shlibpath_var=LD_LIBRARY_PATH
40851   shlibpath_overrides_runpath=yes
40852   hardcode_into_libs=yes
40853   # ldd complains unless libraries are executable
40854   postinstall_cmds='chmod +x $lib'
40855   ;;
40856
40857 sunos4*)
40858   version_type=sunos
40859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
40860   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
40861   shlibpath_var=LD_LIBRARY_PATH
40862   shlibpath_overrides_runpath=yes
40863   if test "$with_gnu_ld" = yes; then
40864     need_lib_prefix=no
40865   fi
40866   need_version=yes
40867   ;;
40868
40869 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
40870   version_type=linux
40871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40872   soname_spec='${libname}${release}${shared_ext}$major'
40873   shlibpath_var=LD_LIBRARY_PATH
40874   case $host_vendor in
40875     sni)
40876       shlibpath_overrides_runpath=no
40877       need_lib_prefix=no
40878       export_dynamic_flag_spec='${wl}-Blargedynsym'
40879       runpath_var=LD_RUN_PATH
40880       ;;
40881     siemens)
40882       need_lib_prefix=no
40883       ;;
40884     motorola)
40885       need_lib_prefix=no
40886       need_version=no
40887       shlibpath_overrides_runpath=no
40888       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
40889       ;;
40890   esac
40891   ;;
40892
40893 sysv4*MP*)
40894   if test -d /usr/nec ;then
40895     version_type=linux
40896     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
40897     soname_spec='$libname${shared_ext}.$major'
40898     shlibpath_var=LD_LIBRARY_PATH
40899   fi
40900   ;;
40901
40902 uts4*)
40903   version_type=linux
40904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40905   soname_spec='${libname}${release}${shared_ext}$major'
40906   shlibpath_var=LD_LIBRARY_PATH
40907   ;;
40908
40909 *)
40910   dynamic_linker=no
40911   ;;
40912 esac
40913 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
40914 echo "${ECHO_T}$dynamic_linker" >&6; }
40915 test "$dynamic_linker" = no && can_build_shared=no
40916
40917 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
40918 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
40919 hardcode_action_CXX=
40920 if test -n "$hardcode_libdir_flag_spec_CXX" || \
40921    test -n "$runpath_var_CXX" || \
40922    test "X$hardcode_automatic_CXX" = "Xyes" ; then
40923
40924   # We can hardcode non-existant directories.
40925   if test "$hardcode_direct_CXX" != no &&
40926      # If the only mechanism to avoid hardcoding is shlibpath_var, we
40927      # have to relink, otherwise we might link with an installed library
40928      # when we should be linking with a yet-to-be-installed one
40929      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
40930      test "$hardcode_minus_L_CXX" != no; then
40931     # Linking always hardcodes the temporary library directory.
40932     hardcode_action_CXX=relink
40933   else
40934     # We can link without hardcoding, and we can hardcode nonexisting dirs.
40935     hardcode_action_CXX=immediate
40936   fi
40937 else
40938   # We cannot hardcode anything, or else we can only hardcode existing
40939   # directories.
40940   hardcode_action_CXX=unsupported
40941 fi
40942 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
40943 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
40944
40945 if test "$hardcode_action_CXX" = relink; then
40946   # Fast installation is not supported
40947   enable_fast_install=no
40948 elif test "$shlibpath_overrides_runpath" = yes ||
40949      test "$enable_shared" = no; then
40950   # Fast installation is not necessary
40951   enable_fast_install=needless
40952 fi
40953
40954 striplib=
40955 old_striplib=
40956 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
40957 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
40958 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
40959   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
40960   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
40961   { echo "$as_me:$LINENO: result: yes" >&5
40962 echo "${ECHO_T}yes" >&6; }
40963 else
40964 # FIXME - insert some real tests, host_os isn't really good enough
40965   case $host_os in
40966    darwin*)
40967        if test -n "$STRIP" ; then
40968          striplib="$STRIP -x"
40969          { echo "$as_me:$LINENO: result: yes" >&5
40970 echo "${ECHO_T}yes" >&6; }
40971        else
40972   { echo "$as_me:$LINENO: result: no" >&5
40973 echo "${ECHO_T}no" >&6; }
40974 fi
40975        ;;
40976    *)
40977   { echo "$as_me:$LINENO: result: no" >&5
40978 echo "${ECHO_T}no" >&6; }
40979     ;;
40980   esac
40981 fi
40982
40983 if test "x$enable_dlopen" != xyes; then
40984   enable_dlopen=unknown
40985   enable_dlopen_self=unknown
40986   enable_dlopen_self_static=unknown
40987 else
40988   lt_cv_dlopen=no
40989   lt_cv_dlopen_libs=
40990
40991   case $host_os in
40992   beos*)
40993     lt_cv_dlopen="load_add_on"
40994     lt_cv_dlopen_libs=
40995     lt_cv_dlopen_self=yes
40996     ;;
40997
40998   mingw* | pw32*)
40999     lt_cv_dlopen="LoadLibrary"
41000     lt_cv_dlopen_libs=
41001    ;;
41002
41003   cygwin*)
41004     lt_cv_dlopen="dlopen"
41005     lt_cv_dlopen_libs=
41006    ;;
41007
41008   darwin*)
41009   # if libdl is installed we need to link against it
41010     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41011 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
41012 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41013   echo $ECHO_N "(cached) $ECHO_C" >&6
41014 else
41015   ac_check_lib_save_LIBS=$LIBS
41016 LIBS="-ldl  $LIBS"
41017 cat >conftest.$ac_ext <<_ACEOF
41018 /* confdefs.h.  */
41019 _ACEOF
41020 cat confdefs.h >>conftest.$ac_ext
41021 cat >>conftest.$ac_ext <<_ACEOF
41022 /* end confdefs.h.  */
41023
41024 /* Override any GCC internal prototype to avoid an error.
41025    Use char because int might match the return type of a GCC
41026    builtin and then its argument prototype would still apply.  */
41027 #ifdef __cplusplus
41028 extern "C"
41029 #endif
41030 char dlopen ();
41031 int
41032 main ()
41033 {
41034 return dlopen ();
41035   ;
41036   return 0;
41037 }
41038 _ACEOF
41039 rm -f conftest.$ac_objext conftest$ac_exeext
41040 if { (ac_try="$ac_link"
41041 case "(($ac_try" in
41042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41043   *) ac_try_echo=$ac_try;;
41044 esac
41045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41046   (eval "$ac_link") 2>conftest.er1
41047   ac_status=$?
41048   grep -v '^ *+' conftest.er1 >conftest.err
41049   rm -f conftest.er1
41050   cat conftest.err >&5
41051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41052   (exit $ac_status); } && {
41053          test -z "$ac_cxx_werror_flag" ||
41054          test ! -s conftest.err
41055        } && test -s conftest$ac_exeext &&
41056        $as_test_x conftest$ac_exeext; then
41057   ac_cv_lib_dl_dlopen=yes
41058 else
41059   echo "$as_me: failed program was:" >&5
41060 sed 's/^/| /' conftest.$ac_ext >&5
41061
41062         ac_cv_lib_dl_dlopen=no
41063 fi
41064
41065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41066       conftest$ac_exeext conftest.$ac_ext
41067 LIBS=$ac_check_lib_save_LIBS
41068 fi
41069 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41070 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41071 if test $ac_cv_lib_dl_dlopen = yes; then
41072   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
41073 else
41074
41075     lt_cv_dlopen="dyld"
41076     lt_cv_dlopen_libs=
41077     lt_cv_dlopen_self=yes
41078
41079 fi
41080
41081    ;;
41082
41083   *)
41084     { echo "$as_me:$LINENO: checking for shl_load" >&5
41085 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
41086 if test "${ac_cv_func_shl_load+set}" = set; then
41087   echo $ECHO_N "(cached) $ECHO_C" >&6
41088 else
41089   cat >conftest.$ac_ext <<_ACEOF
41090 /* confdefs.h.  */
41091 _ACEOF
41092 cat confdefs.h >>conftest.$ac_ext
41093 cat >>conftest.$ac_ext <<_ACEOF
41094 /* end confdefs.h.  */
41095 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
41096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41097 #define shl_load innocuous_shl_load
41098
41099 /* System header to define __stub macros and hopefully few prototypes,
41100     which can conflict with char shl_load (); below.
41101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41102     <limits.h> exists even on freestanding compilers.  */
41103
41104 #ifdef __STDC__
41105 # include <limits.h>
41106 #else
41107 # include <assert.h>
41108 #endif
41109
41110 #undef shl_load
41111
41112 /* Override any GCC internal prototype to avoid an error.
41113    Use char because int might match the return type of a GCC
41114    builtin and then its argument prototype would still apply.  */
41115 #ifdef __cplusplus
41116 extern "C"
41117 #endif
41118 char shl_load ();
41119 /* The GNU C library defines this for functions which it implements
41120     to always fail with ENOSYS.  Some functions are actually named
41121     something starting with __ and the normal name is an alias.  */
41122 #if defined __stub_shl_load || defined __stub___shl_load
41123 choke me
41124 #endif
41125
41126 int
41127 main ()
41128 {
41129 return shl_load ();
41130   ;
41131   return 0;
41132 }
41133 _ACEOF
41134 rm -f conftest.$ac_objext conftest$ac_exeext
41135 if { (ac_try="$ac_link"
41136 case "(($ac_try" in
41137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41138   *) ac_try_echo=$ac_try;;
41139 esac
41140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41141   (eval "$ac_link") 2>conftest.er1
41142   ac_status=$?
41143   grep -v '^ *+' conftest.er1 >conftest.err
41144   rm -f conftest.er1
41145   cat conftest.err >&5
41146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41147   (exit $ac_status); } && {
41148          test -z "$ac_cxx_werror_flag" ||
41149          test ! -s conftest.err
41150        } && test -s conftest$ac_exeext &&
41151        $as_test_x conftest$ac_exeext; then
41152   ac_cv_func_shl_load=yes
41153 else
41154   echo "$as_me: failed program was:" >&5
41155 sed 's/^/| /' conftest.$ac_ext >&5
41156
41157         ac_cv_func_shl_load=no
41158 fi
41159
41160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41161       conftest$ac_exeext conftest.$ac_ext
41162 fi
41163 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
41164 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
41165 if test $ac_cv_func_shl_load = yes; then
41166   lt_cv_dlopen="shl_load"
41167 else
41168   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
41169 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
41170 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
41171   echo $ECHO_N "(cached) $ECHO_C" >&6
41172 else
41173   ac_check_lib_save_LIBS=$LIBS
41174 LIBS="-ldld  $LIBS"
41175 cat >conftest.$ac_ext <<_ACEOF
41176 /* confdefs.h.  */
41177 _ACEOF
41178 cat confdefs.h >>conftest.$ac_ext
41179 cat >>conftest.$ac_ext <<_ACEOF
41180 /* end confdefs.h.  */
41181
41182 /* Override any GCC internal prototype to avoid an error.
41183    Use char because int might match the return type of a GCC
41184    builtin and then its argument prototype would still apply.  */
41185 #ifdef __cplusplus
41186 extern "C"
41187 #endif
41188 char shl_load ();
41189 int
41190 main ()
41191 {
41192 return shl_load ();
41193   ;
41194   return 0;
41195 }
41196 _ACEOF
41197 rm -f conftest.$ac_objext conftest$ac_exeext
41198 if { (ac_try="$ac_link"
41199 case "(($ac_try" in
41200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41201   *) ac_try_echo=$ac_try;;
41202 esac
41203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41204   (eval "$ac_link") 2>conftest.er1
41205   ac_status=$?
41206   grep -v '^ *+' conftest.er1 >conftest.err
41207   rm -f conftest.er1
41208   cat conftest.err >&5
41209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41210   (exit $ac_status); } && {
41211          test -z "$ac_cxx_werror_flag" ||
41212          test ! -s conftest.err
41213        } && test -s conftest$ac_exeext &&
41214        $as_test_x conftest$ac_exeext; then
41215   ac_cv_lib_dld_shl_load=yes
41216 else
41217   echo "$as_me: failed program was:" >&5
41218 sed 's/^/| /' conftest.$ac_ext >&5
41219
41220         ac_cv_lib_dld_shl_load=no
41221 fi
41222
41223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41224       conftest$ac_exeext conftest.$ac_ext
41225 LIBS=$ac_check_lib_save_LIBS
41226 fi
41227 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
41228 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
41229 if test $ac_cv_lib_dld_shl_load = yes; then
41230   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
41231 else
41232   { echo "$as_me:$LINENO: checking for dlopen" >&5
41233 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
41234 if test "${ac_cv_func_dlopen+set}" = set; then
41235   echo $ECHO_N "(cached) $ECHO_C" >&6
41236 else
41237   cat >conftest.$ac_ext <<_ACEOF
41238 /* confdefs.h.  */
41239 _ACEOF
41240 cat confdefs.h >>conftest.$ac_ext
41241 cat >>conftest.$ac_ext <<_ACEOF
41242 /* end confdefs.h.  */
41243 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
41244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41245 #define dlopen innocuous_dlopen
41246
41247 /* System header to define __stub macros and hopefully few prototypes,
41248     which can conflict with char dlopen (); below.
41249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41250     <limits.h> exists even on freestanding compilers.  */
41251
41252 #ifdef __STDC__
41253 # include <limits.h>
41254 #else
41255 # include <assert.h>
41256 #endif
41257
41258 #undef dlopen
41259
41260 /* Override any GCC internal prototype to avoid an error.
41261    Use char because int might match the return type of a GCC
41262    builtin and then its argument prototype would still apply.  */
41263 #ifdef __cplusplus
41264 extern "C"
41265 #endif
41266 char dlopen ();
41267 /* The GNU C library defines this for functions which it implements
41268     to always fail with ENOSYS.  Some functions are actually named
41269     something starting with __ and the normal name is an alias.  */
41270 #if defined __stub_dlopen || defined __stub___dlopen
41271 choke me
41272 #endif
41273
41274 int
41275 main ()
41276 {
41277 return dlopen ();
41278   ;
41279   return 0;
41280 }
41281 _ACEOF
41282 rm -f conftest.$ac_objext conftest$ac_exeext
41283 if { (ac_try="$ac_link"
41284 case "(($ac_try" in
41285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41286   *) ac_try_echo=$ac_try;;
41287 esac
41288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41289   (eval "$ac_link") 2>conftest.er1
41290   ac_status=$?
41291   grep -v '^ *+' conftest.er1 >conftest.err
41292   rm -f conftest.er1
41293   cat conftest.err >&5
41294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41295   (exit $ac_status); } && {
41296          test -z "$ac_cxx_werror_flag" ||
41297          test ! -s conftest.err
41298        } && test -s conftest$ac_exeext &&
41299        $as_test_x conftest$ac_exeext; then
41300   ac_cv_func_dlopen=yes
41301 else
41302   echo "$as_me: failed program was:" >&5
41303 sed 's/^/| /' conftest.$ac_ext >&5
41304
41305         ac_cv_func_dlopen=no
41306 fi
41307
41308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41309       conftest$ac_exeext conftest.$ac_ext
41310 fi
41311 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
41312 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
41313 if test $ac_cv_func_dlopen = yes; then
41314   lt_cv_dlopen="dlopen"
41315 else
41316   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41317 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
41318 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41319   echo $ECHO_N "(cached) $ECHO_C" >&6
41320 else
41321   ac_check_lib_save_LIBS=$LIBS
41322 LIBS="-ldl  $LIBS"
41323 cat >conftest.$ac_ext <<_ACEOF
41324 /* confdefs.h.  */
41325 _ACEOF
41326 cat confdefs.h >>conftest.$ac_ext
41327 cat >>conftest.$ac_ext <<_ACEOF
41328 /* end confdefs.h.  */
41329
41330 /* Override any GCC internal prototype to avoid an error.
41331    Use char because int might match the return type of a GCC
41332    builtin and then its argument prototype would still apply.  */
41333 #ifdef __cplusplus
41334 extern "C"
41335 #endif
41336 char dlopen ();
41337 int
41338 main ()
41339 {
41340 return dlopen ();
41341   ;
41342   return 0;
41343 }
41344 _ACEOF
41345 rm -f conftest.$ac_objext conftest$ac_exeext
41346 if { (ac_try="$ac_link"
41347 case "(($ac_try" in
41348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41349   *) ac_try_echo=$ac_try;;
41350 esac
41351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41352   (eval "$ac_link") 2>conftest.er1
41353   ac_status=$?
41354   grep -v '^ *+' conftest.er1 >conftest.err
41355   rm -f conftest.er1
41356   cat conftest.err >&5
41357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41358   (exit $ac_status); } && {
41359          test -z "$ac_cxx_werror_flag" ||
41360          test ! -s conftest.err
41361        } && test -s conftest$ac_exeext &&
41362        $as_test_x conftest$ac_exeext; then
41363   ac_cv_lib_dl_dlopen=yes
41364 else
41365   echo "$as_me: failed program was:" >&5
41366 sed 's/^/| /' conftest.$ac_ext >&5
41367
41368         ac_cv_lib_dl_dlopen=no
41369 fi
41370
41371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41372       conftest$ac_exeext conftest.$ac_ext
41373 LIBS=$ac_check_lib_save_LIBS
41374 fi
41375 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41376 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41377 if test $ac_cv_lib_dl_dlopen = yes; then
41378   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
41379 else
41380   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
41381 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
41382 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
41383   echo $ECHO_N "(cached) $ECHO_C" >&6
41384 else
41385   ac_check_lib_save_LIBS=$LIBS
41386 LIBS="-lsvld  $LIBS"
41387 cat >conftest.$ac_ext <<_ACEOF
41388 /* confdefs.h.  */
41389 _ACEOF
41390 cat confdefs.h >>conftest.$ac_ext
41391 cat >>conftest.$ac_ext <<_ACEOF
41392 /* end confdefs.h.  */
41393
41394 /* Override any GCC internal prototype to avoid an error.
41395    Use char because int might match the return type of a GCC
41396    builtin and then its argument prototype would still apply.  */
41397 #ifdef __cplusplus
41398 extern "C"
41399 #endif
41400 char dlopen ();
41401 int
41402 main ()
41403 {
41404 return dlopen ();
41405   ;
41406   return 0;
41407 }
41408 _ACEOF
41409 rm -f conftest.$ac_objext conftest$ac_exeext
41410 if { (ac_try="$ac_link"
41411 case "(($ac_try" in
41412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41413   *) ac_try_echo=$ac_try;;
41414 esac
41415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41416   (eval "$ac_link") 2>conftest.er1
41417   ac_status=$?
41418   grep -v '^ *+' conftest.er1 >conftest.err
41419   rm -f conftest.er1
41420   cat conftest.err >&5
41421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41422   (exit $ac_status); } && {
41423          test -z "$ac_cxx_werror_flag" ||
41424          test ! -s conftest.err
41425        } && test -s conftest$ac_exeext &&
41426        $as_test_x conftest$ac_exeext; then
41427   ac_cv_lib_svld_dlopen=yes
41428 else
41429   echo "$as_me: failed program was:" >&5
41430 sed 's/^/| /' conftest.$ac_ext >&5
41431
41432         ac_cv_lib_svld_dlopen=no
41433 fi
41434
41435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41436       conftest$ac_exeext conftest.$ac_ext
41437 LIBS=$ac_check_lib_save_LIBS
41438 fi
41439 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
41440 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
41441 if test $ac_cv_lib_svld_dlopen = yes; then
41442   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
41443 else
41444   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
41445 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
41446 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
41447   echo $ECHO_N "(cached) $ECHO_C" >&6
41448 else
41449   ac_check_lib_save_LIBS=$LIBS
41450 LIBS="-ldld  $LIBS"
41451 cat >conftest.$ac_ext <<_ACEOF
41452 /* confdefs.h.  */
41453 _ACEOF
41454 cat confdefs.h >>conftest.$ac_ext
41455 cat >>conftest.$ac_ext <<_ACEOF
41456 /* end confdefs.h.  */
41457
41458 /* Override any GCC internal prototype to avoid an error.
41459    Use char because int might match the return type of a GCC
41460    builtin and then its argument prototype would still apply.  */
41461 #ifdef __cplusplus
41462 extern "C"
41463 #endif
41464 char dld_link ();
41465 int
41466 main ()
41467 {
41468 return dld_link ();
41469   ;
41470   return 0;
41471 }
41472 _ACEOF
41473 rm -f conftest.$ac_objext conftest$ac_exeext
41474 if { (ac_try="$ac_link"
41475 case "(($ac_try" in
41476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41477   *) ac_try_echo=$ac_try;;
41478 esac
41479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41480   (eval "$ac_link") 2>conftest.er1
41481   ac_status=$?
41482   grep -v '^ *+' conftest.er1 >conftest.err
41483   rm -f conftest.er1
41484   cat conftest.err >&5
41485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41486   (exit $ac_status); } && {
41487          test -z "$ac_cxx_werror_flag" ||
41488          test ! -s conftest.err
41489        } && test -s conftest$ac_exeext &&
41490        $as_test_x conftest$ac_exeext; then
41491   ac_cv_lib_dld_dld_link=yes
41492 else
41493   echo "$as_me: failed program was:" >&5
41494 sed 's/^/| /' conftest.$ac_ext >&5
41495
41496         ac_cv_lib_dld_dld_link=no
41497 fi
41498
41499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41500       conftest$ac_exeext conftest.$ac_ext
41501 LIBS=$ac_check_lib_save_LIBS
41502 fi
41503 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
41504 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
41505 if test $ac_cv_lib_dld_dld_link = yes; then
41506   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
41507 fi
41508
41509
41510 fi
41511
41512
41513 fi
41514
41515
41516 fi
41517
41518
41519 fi
41520
41521
41522 fi
41523
41524     ;;
41525   esac
41526
41527   if test "x$lt_cv_dlopen" != xno; then
41528     enable_dlopen=yes
41529   else
41530     enable_dlopen=no
41531   fi
41532
41533   case $lt_cv_dlopen in
41534   dlopen)
41535     save_CPPFLAGS="$CPPFLAGS"
41536     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
41537
41538     save_LDFLAGS="$LDFLAGS"
41539     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
41540
41541     save_LIBS="$LIBS"
41542     LIBS="$lt_cv_dlopen_libs $LIBS"
41543
41544     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
41545 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
41546 if test "${lt_cv_dlopen_self+set}" = set; then
41547   echo $ECHO_N "(cached) $ECHO_C" >&6
41548 else
41549           if test "$cross_compiling" = yes; then :
41550   lt_cv_dlopen_self=cross
41551 else
41552   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
41553   lt_status=$lt_dlunknown
41554   cat > conftest.$ac_ext <<EOF
41555 #line 41555 "configure"
41556 #include "confdefs.h"
41557
41558 #if HAVE_DLFCN_H
41559 #include <dlfcn.h>
41560 #endif
41561
41562 #include <stdio.h>
41563
41564 #ifdef RTLD_GLOBAL
41565 #  define LT_DLGLOBAL           RTLD_GLOBAL
41566 #else
41567 #  ifdef DL_GLOBAL
41568 #    define LT_DLGLOBAL         DL_GLOBAL
41569 #  else
41570 #    define LT_DLGLOBAL         0
41571 #  endif
41572 #endif
41573
41574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
41575    find out it does not work in some platform. */
41576 #ifndef LT_DLLAZY_OR_NOW
41577 #  ifdef RTLD_LAZY
41578 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
41579 #  else
41580 #    ifdef DL_LAZY
41581 #      define LT_DLLAZY_OR_NOW          DL_LAZY
41582 #    else
41583 #      ifdef RTLD_NOW
41584 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
41585 #      else
41586 #        ifdef DL_NOW
41587 #          define LT_DLLAZY_OR_NOW      DL_NOW
41588 #        else
41589 #          define LT_DLLAZY_OR_NOW      0
41590 #        endif
41591 #      endif
41592 #    endif
41593 #  endif
41594 #endif
41595
41596 #ifdef __cplusplus
41597 extern "C" void exit (int);
41598 #endif
41599
41600 void fnord() { int i=42;}
41601 int main ()
41602 {
41603   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
41604   int status = $lt_dlunknown;
41605
41606   if (self)
41607     {
41608       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
41609       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
41610       /* dlclose (self); */
41611     }
41612
41613     exit (status);
41614 }
41615 EOF
41616   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41617   (eval $ac_link) 2>&5
41618   ac_status=$?
41619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41620   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
41621     (./conftest; exit; ) >&5 2>/dev/null
41622     lt_status=$?
41623     case x$lt_status in
41624       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
41625       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
41626       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
41627     esac
41628   else :
41629     # compilation failed
41630     lt_cv_dlopen_self=no
41631   fi
41632 fi
41633 rm -fr conftest*
41634
41635
41636 fi
41637 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
41638 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
41639
41640     if test "x$lt_cv_dlopen_self" = xyes; then
41641       LDFLAGS="$LDFLAGS $link_static_flag"
41642       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
41643 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
41644 if test "${lt_cv_dlopen_self_static+set}" = set; then
41645   echo $ECHO_N "(cached) $ECHO_C" >&6
41646 else
41647           if test "$cross_compiling" = yes; then :
41648   lt_cv_dlopen_self_static=cross
41649 else
41650   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
41651   lt_status=$lt_dlunknown
41652   cat > conftest.$ac_ext <<EOF
41653 #line 41653 "configure"
41654 #include "confdefs.h"
41655
41656 #if HAVE_DLFCN_H
41657 #include <dlfcn.h>
41658 #endif
41659
41660 #include <stdio.h>
41661
41662 #ifdef RTLD_GLOBAL
41663 #  define LT_DLGLOBAL           RTLD_GLOBAL
41664 #else
41665 #  ifdef DL_GLOBAL
41666 #    define LT_DLGLOBAL         DL_GLOBAL
41667 #  else
41668 #    define LT_DLGLOBAL         0
41669 #  endif
41670 #endif
41671
41672 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
41673    find out it does not work in some platform. */
41674 #ifndef LT_DLLAZY_OR_NOW
41675 #  ifdef RTLD_LAZY
41676 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
41677 #  else
41678 #    ifdef DL_LAZY
41679 #      define LT_DLLAZY_OR_NOW          DL_LAZY
41680 #    else
41681 #      ifdef RTLD_NOW
41682 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
41683 #      else
41684 #        ifdef DL_NOW
41685 #          define LT_DLLAZY_OR_NOW      DL_NOW
41686 #        else
41687 #          define LT_DLLAZY_OR_NOW      0
41688 #        endif
41689 #      endif
41690 #    endif
41691 #  endif
41692 #endif
41693
41694 #ifdef __cplusplus
41695 extern "C" void exit (int);
41696 #endif
41697
41698 void fnord() { int i=42;}
41699 int main ()
41700 {
41701   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
41702   int status = $lt_dlunknown;
41703
41704   if (self)
41705     {
41706       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
41707       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
41708       /* dlclose (self); */
41709     }
41710
41711     exit (status);
41712 }
41713 EOF
41714   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41715   (eval $ac_link) 2>&5
41716   ac_status=$?
41717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41718   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
41719     (./conftest; exit; ) >&5 2>/dev/null
41720     lt_status=$?
41721     case x$lt_status in
41722       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
41723       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
41724       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
41725     esac
41726   else :
41727     # compilation failed
41728     lt_cv_dlopen_self_static=no
41729   fi
41730 fi
41731 rm -fr conftest*
41732
41733
41734 fi
41735 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
41736 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
41737     fi
41738
41739     CPPFLAGS="$save_CPPFLAGS"
41740     LDFLAGS="$save_LDFLAGS"
41741     LIBS="$save_LIBS"
41742     ;;
41743   esac
41744
41745   case $lt_cv_dlopen_self in
41746   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
41747   *) enable_dlopen_self=unknown ;;
41748   esac
41749
41750   case $lt_cv_dlopen_self_static in
41751   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
41752   *) enable_dlopen_self_static=unknown ;;
41753   esac
41754 fi
41755
41756
41757 # The else clause should only fire when bootstrapping the
41758 # libtool distribution, otherwise you forgot to ship ltmain.sh
41759 # with your package, and you will get complaints that there are
41760 # no rules to generate ltmain.sh.
41761 if test -f "$ltmain"; then
41762   # See if we are running on zsh, and set the options which allow our commands through
41763   # without removal of \ escapes.
41764   if test -n "${ZSH_VERSION+set}" ; then
41765     setopt NO_GLOB_SUBST
41766   fi
41767   # Now quote all the things that may contain metacharacters while being
41768   # careful not to overquote the AC_SUBSTed values.  We take copies of the
41769   # variables and quote the copies for generation of the libtool script.
41770   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
41771     SED SHELL STRIP \
41772     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
41773     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
41774     deplibs_check_method reload_flag reload_cmds need_locks \
41775     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
41776     lt_cv_sys_global_symbol_to_c_name_address \
41777     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
41778     old_postinstall_cmds old_postuninstall_cmds \
41779     compiler_CXX \
41780     CC_CXX \
41781     LD_CXX \
41782     lt_prog_compiler_wl_CXX \
41783     lt_prog_compiler_pic_CXX \
41784     lt_prog_compiler_static_CXX \
41785     lt_prog_compiler_no_builtin_flag_CXX \
41786     export_dynamic_flag_spec_CXX \
41787     thread_safe_flag_spec_CXX \
41788     whole_archive_flag_spec_CXX \
41789     enable_shared_with_static_runtimes_CXX \
41790     old_archive_cmds_CXX \
41791     old_archive_from_new_cmds_CXX \
41792     predep_objects_CXX \
41793     postdep_objects_CXX \
41794     predeps_CXX \
41795     postdeps_CXX \
41796     compiler_lib_search_path_CXX \
41797     archive_cmds_CXX \
41798     archive_expsym_cmds_CXX \
41799     postinstall_cmds_CXX \
41800     postuninstall_cmds_CXX \
41801     old_archive_from_expsyms_cmds_CXX \
41802     allow_undefined_flag_CXX \
41803     no_undefined_flag_CXX \
41804     export_symbols_cmds_CXX \
41805     hardcode_libdir_flag_spec_CXX \
41806     hardcode_libdir_flag_spec_ld_CXX \
41807     hardcode_libdir_separator_CXX \
41808     hardcode_automatic_CXX \
41809     module_cmds_CXX \
41810     module_expsym_cmds_CXX \
41811     lt_cv_prog_compiler_c_o_CXX \
41812     exclude_expsyms_CXX \
41813     include_expsyms_CXX; do
41814
41815     case $var in
41816     old_archive_cmds_CXX | \
41817     old_archive_from_new_cmds_CXX | \
41818     archive_cmds_CXX | \
41819     archive_expsym_cmds_CXX | \
41820     module_cmds_CXX | \
41821     module_expsym_cmds_CXX | \
41822     old_archive_from_expsyms_cmds_CXX | \
41823     export_symbols_cmds_CXX | \
41824     extract_expsyms_cmds | reload_cmds | finish_cmds | \
41825     postinstall_cmds | postuninstall_cmds | \
41826     old_postinstall_cmds | old_postuninstall_cmds | \
41827     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
41828       # Double-quote double-evaled strings.
41829       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
41830       ;;
41831     *)
41832       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
41833       ;;
41834     esac
41835   done
41836
41837   case $lt_echo in
41838   *'\$0 --fallback-echo"')
41839     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
41840     ;;
41841   esac
41842
41843 cfgfile="$ofile"
41844
41845   cat <<__EOF__ >> "$cfgfile"
41846 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
41847
41848 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
41849
41850 # Shell to use when invoking shell scripts.
41851 SHELL=$lt_SHELL
41852
41853 # Whether or not to build shared libraries.
41854 build_libtool_libs=$enable_shared
41855
41856 # Whether or not to build static libraries.
41857 build_old_libs=$enable_static
41858
41859 # Whether or not to add -lc for building shared libraries.
41860 build_libtool_need_lc=$archive_cmds_need_lc_CXX
41861
41862 # Whether or not to disallow shared libs when runtime libs are static
41863 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
41864
41865 # Whether or not to optimize for fast installation.
41866 fast_install=$enable_fast_install
41867
41868 # The host system.
41869 host_alias=$host_alias
41870 host=$host
41871 host_os=$host_os
41872
41873 # The build system.
41874 build_alias=$build_alias
41875 build=$build
41876 build_os=$build_os
41877
41878 # An echo program that does not interpret backslashes.
41879 echo=$lt_echo
41880
41881 # The archiver.
41882 AR=$lt_AR
41883 AR_FLAGS=$lt_AR_FLAGS
41884
41885 # A C compiler.
41886 LTCC=$lt_LTCC
41887
41888 # A language-specific compiler.
41889 CC=$lt_compiler_CXX
41890
41891 # Is the compiler the GNU C compiler?
41892 with_gcc=$GCC_CXX
41893
41894 # An ERE matcher.
41895 EGREP=$lt_EGREP
41896
41897 # The linker used to build libraries.
41898 LD=$lt_LD_CXX
41899
41900 # Whether we need hard or soft links.
41901 LN_S=$lt_LN_S
41902
41903 # A BSD-compatible nm program.
41904 NM=$lt_NM
41905
41906 # A symbol stripping program
41907 STRIP=$lt_STRIP
41908
41909 # Used to examine libraries when file_magic_cmd begins "file"
41910 MAGIC_CMD=$MAGIC_CMD
41911
41912 # Used on cygwin: DLL creation program.
41913 DLLTOOL="$DLLTOOL"
41914
41915 # Used on cygwin: object dumper.
41916 OBJDUMP="$OBJDUMP"
41917
41918 # Used on cygwin: assembler.
41919 AS="$AS"
41920
41921 # The name of the directory that contains temporary libtool files.
41922 objdir=$objdir
41923
41924 # How to create reloadable object files.
41925 reload_flag=$lt_reload_flag
41926 reload_cmds=$lt_reload_cmds
41927
41928 # How to pass a linker flag through the compiler.
41929 wl=$lt_lt_prog_compiler_wl_CXX
41930
41931 # Object file suffix (normally "o").
41932 objext="$ac_objext"
41933
41934 # Old archive suffix (normally "a").
41935 libext="$libext"
41936
41937 # Shared library suffix (normally ".so").
41938 shrext_cmds='$shrext_cmds'
41939
41940 # Executable file suffix (normally "").
41941 exeext="$exeext"
41942
41943 # Additional compiler flags for building library objects.
41944 pic_flag=$lt_lt_prog_compiler_pic_CXX
41945 pic_mode=$pic_mode
41946
41947 # What is the maximum length of a command?
41948 max_cmd_len=$lt_cv_sys_max_cmd_len
41949
41950 # Does compiler simultaneously support -c and -o options?
41951 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
41952
41953 # Must we lock files when doing compilation?
41954 need_locks=$lt_need_locks
41955
41956 # Do we need the lib prefix for modules?
41957 need_lib_prefix=$need_lib_prefix
41958
41959 # Do we need a version for libraries?
41960 need_version=$need_version
41961
41962 # Whether dlopen is supported.
41963 dlopen_support=$enable_dlopen
41964
41965 # Whether dlopen of programs is supported.
41966 dlopen_self=$enable_dlopen_self
41967
41968 # Whether dlopen of statically linked programs is supported.
41969 dlopen_self_static=$enable_dlopen_self_static
41970
41971 # Compiler flag to prevent dynamic linking.
41972 link_static_flag=$lt_lt_prog_compiler_static_CXX
41973
41974 # Compiler flag to turn off builtin functions.
41975 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
41976
41977 # Compiler flag to allow reflexive dlopens.
41978 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
41979
41980 # Compiler flag to generate shared objects directly from archives.
41981 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
41982
41983 # Compiler flag to generate thread-safe objects.
41984 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
41985
41986 # Library versioning type.
41987 version_type=$version_type
41988
41989 # Format of library name prefix.
41990 libname_spec=$lt_libname_spec
41991
41992 # List of archive names.  First name is the real one, the rest are links.
41993 # The last name is the one that the linker finds with -lNAME.
41994 library_names_spec=$lt_library_names_spec
41995
41996 # The coded name of the library, if different from the real name.
41997 soname_spec=$lt_soname_spec
41998
41999 # Commands used to build and install an old-style archive.
42000 RANLIB=$lt_RANLIB
42001 old_archive_cmds=$lt_old_archive_cmds_CXX
42002 old_postinstall_cmds=$lt_old_postinstall_cmds
42003 old_postuninstall_cmds=$lt_old_postuninstall_cmds
42004
42005 # Create an old-style archive from a shared archive.
42006 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
42007
42008 # Create a temporary old-style archive to link instead of a shared archive.
42009 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
42010
42011 # Commands used to build and install a shared archive.
42012 archive_cmds=$lt_archive_cmds_CXX
42013 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
42014 postinstall_cmds=$lt_postinstall_cmds
42015 postuninstall_cmds=$lt_postuninstall_cmds
42016
42017 # Commands used to build a loadable module (assumed same as above if empty)
42018 module_cmds=$lt_module_cmds_CXX
42019 module_expsym_cmds=$lt_module_expsym_cmds_CXX
42020
42021 # Commands to strip libraries.
42022 old_striplib=$lt_old_striplib
42023 striplib=$lt_striplib
42024
42025 # Dependencies to place before the objects being linked to create a
42026 # shared library.
42027 predep_objects=$lt_predep_objects_CXX
42028
42029 # Dependencies to place after the objects being linked to create a
42030 # shared library.
42031 postdep_objects=$lt_postdep_objects_CXX
42032
42033 # Dependencies to place before the objects being linked to create a
42034 # shared library.
42035 predeps=$lt_predeps_CXX
42036
42037 # Dependencies to place after the objects being linked to create a
42038 # shared library.
42039 postdeps=$lt_postdeps_CXX
42040
42041 # The library search path used internally by the compiler when linking
42042 # a shared library.
42043 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
42044
42045 # Method to check whether dependent libraries are shared objects.
42046 deplibs_check_method=$lt_deplibs_check_method
42047
42048 # Command to use when deplibs_check_method == file_magic.
42049 file_magic_cmd=$lt_file_magic_cmd
42050
42051 # Flag that allows shared libraries with undefined symbols to be built.
42052 allow_undefined_flag=$lt_allow_undefined_flag_CXX
42053
42054 # Flag that forces no undefined symbols.
42055 no_undefined_flag=$lt_no_undefined_flag_CXX
42056
42057 # Commands used to finish a libtool library installation in a directory.
42058 finish_cmds=$lt_finish_cmds
42059
42060 # Same as above, but a single script fragment to be evaled but not shown.
42061 finish_eval=$lt_finish_eval
42062
42063 # Take the output of nm and produce a listing of raw symbols and C names.
42064 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42065
42066 # Transform the output of nm in a proper C declaration
42067 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42068
42069 # Transform the output of nm in a C name address pair
42070 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42071
42072 # This is the shared library runtime path variable.
42073 runpath_var=$runpath_var
42074
42075 # This is the shared library path variable.
42076 shlibpath_var=$shlibpath_var
42077
42078 # Is shlibpath searched before the hard-coded library search path?
42079 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
42080
42081 # How to hardcode a shared library path into an executable.
42082 hardcode_action=$hardcode_action_CXX
42083
42084 # Whether we should hardcode library paths into libraries.
42085 hardcode_into_libs=$hardcode_into_libs
42086
42087 # Flag to hardcode \$libdir into a binary during linking.
42088 # This must work even if \$libdir does not exist.
42089 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
42090
42091 # If ld is used when linking, flag to hardcode \$libdir into
42092 # a binary during linking. This must work even if \$libdir does
42093 # not exist.
42094 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
42095
42096 # Whether we need a single -rpath flag with a separated argument.
42097 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
42098
42099 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
42100 # resulting binary.
42101 hardcode_direct=$hardcode_direct_CXX
42102
42103 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
42104 # resulting binary.
42105 hardcode_minus_L=$hardcode_minus_L_CXX
42106
42107 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
42108 # the resulting binary.
42109 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
42110
42111 # Set to yes if building a shared library automatically hardcodes DIR into the library
42112 # and all subsequent libraries and executables linked against it.
42113 hardcode_automatic=$hardcode_automatic_CXX
42114
42115 # Variables whose values should be saved in libtool wrapper scripts and
42116 # restored at relink time.
42117 variables_saved_for_relink="$variables_saved_for_relink"
42118
42119 # Whether libtool must link a program against all its dependency libraries.
42120 link_all_deplibs=$link_all_deplibs_CXX
42121
42122 # Compile-time system search path for libraries
42123 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
42124
42125 # Run-time system search path for libraries
42126 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
42127
42128 # Fix the shell variable \$srcfile for the compiler.
42129 fix_srcfile_path="$fix_srcfile_path_CXX"
42130
42131 # Set to yes if exported symbols are required.
42132 always_export_symbols=$always_export_symbols_CXX
42133
42134 # The commands to list exported symbols.
42135 export_symbols_cmds=$lt_export_symbols_cmds_CXX
42136
42137 # The commands to extract the exported symbol list from a shared archive.
42138 extract_expsyms_cmds=$lt_extract_expsyms_cmds
42139
42140 # Symbols that should not be listed in the preloaded symbols.
42141 exclude_expsyms=$lt_exclude_expsyms_CXX
42142
42143 # Symbols that must always be exported.
42144 include_expsyms=$lt_include_expsyms_CXX
42145
42146 # ### END LIBTOOL TAG CONFIG: $tagname
42147
42148 __EOF__
42149
42150
42151 else
42152   # If there is no Makefile yet, we rely on a make rule to execute
42153   # `config.status --recheck' to rerun these tests and create the
42154   # libtool script then.
42155   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
42156   if test -f "$ltmain_in"; then
42157     test -f Makefile && make "$ltmain"
42158   fi
42159 fi
42160
42161
42162 ac_ext=c
42163 ac_cpp='$CPP $CPPFLAGS'
42164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42167
42168 CC=$lt_save_CC
42169 LDCXX=$LD
42170 LD=$lt_save_LD
42171 GCC=$lt_save_GCC
42172 with_gnu_ldcxx=$with_gnu_ld
42173 with_gnu_ld=$lt_save_with_gnu_ld
42174 lt_cv_path_LDCXX=$lt_cv_path_LD
42175 lt_cv_path_LD=$lt_save_path_LD
42176 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
42177 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
42178
42179         else
42180           tagname=""
42181         fi
42182         ;;
42183
42184       F77)
42185         if test -n "$F77" && test "X$F77" != "Xno"; then
42186
42187 ac_ext=f
42188 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
42189 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42190 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
42191
42192
42193 archive_cmds_need_lc_F77=no
42194 allow_undefined_flag_F77=
42195 always_export_symbols_F77=no
42196 archive_expsym_cmds_F77=
42197 export_dynamic_flag_spec_F77=
42198 hardcode_direct_F77=no
42199 hardcode_libdir_flag_spec_F77=
42200 hardcode_libdir_flag_spec_ld_F77=
42201 hardcode_libdir_separator_F77=
42202 hardcode_minus_L_F77=no
42203 hardcode_automatic_F77=no
42204 module_cmds_F77=
42205 module_expsym_cmds_F77=
42206 link_all_deplibs_F77=unknown
42207 old_archive_cmds_F77=$old_archive_cmds
42208 no_undefined_flag_F77=
42209 whole_archive_flag_spec_F77=
42210 enable_shared_with_static_runtimes_F77=no
42211
42212 # Source file extension for f77 test sources.
42213 ac_ext=f
42214
42215 # Object file extension for compiled f77 test sources.
42216 objext=o
42217 objext_F77=$objext
42218
42219 # Code to be used in simple compile tests
42220 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
42221
42222 # Code to be used in simple link tests
42223 lt_simple_link_test_code="      program t\n      end\n"
42224
42225 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
42226
42227 # If no C compiler was specified, use CC.
42228 LTCC=${LTCC-"$CC"}
42229
42230 # Allow CC to be a program name with arguments.
42231 compiler=$CC
42232
42233
42234 # save warnings/boilerplate of simple test code
42235 ac_outfile=conftest.$ac_objext
42236 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
42237 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
42238 _lt_compiler_boilerplate=`cat conftest.err`
42239 $rm conftest*
42240
42241 ac_outfile=conftest.$ac_objext
42242 printf "$lt_simple_link_test_code" >conftest.$ac_ext
42243 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
42244 _lt_linker_boilerplate=`cat conftest.err`
42245 $rm conftest*
42246
42247
42248 # Allow CC to be a program name with arguments.
42249 lt_save_CC="$CC"
42250 CC=${F77-"f77"}
42251 compiler=$CC
42252 compiler_F77=$CC
42253 for cc_temp in $compiler""; do
42254   case $cc_temp in
42255     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
42256     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
42257     \-*) ;;
42258     *) break;;
42259   esac
42260 done
42261 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
42262
42263
42264 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
42265 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
42266 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
42267 echo "${ECHO_T}$can_build_shared" >&6; }
42268
42269 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
42270 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
42271 test "$can_build_shared" = "no" && enable_shared=no
42272
42273 # On AIX, shared libraries and static libraries use the same namespace, and
42274 # are all built from PIC.
42275 case $host_os in
42276 aix3*)
42277   test "$enable_shared" = yes && enable_static=no
42278   if test -n "$RANLIB"; then
42279     archive_cmds="$archive_cmds~\$RANLIB \$lib"
42280     postinstall_cmds='$RANLIB $lib'
42281   fi
42282   ;;
42283 aix4* | aix5*)
42284   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
42285     test "$enable_shared" = yes && enable_static=no
42286   fi
42287   ;;
42288 esac
42289 { echo "$as_me:$LINENO: result: $enable_shared" >&5
42290 echo "${ECHO_T}$enable_shared" >&6; }
42291
42292 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
42293 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
42294 # Make sure either enable_shared or enable_static is yes.
42295 test "$enable_shared" = yes || enable_static=yes
42296 { echo "$as_me:$LINENO: result: $enable_static" >&5
42297 echo "${ECHO_T}$enable_static" >&6; }
42298
42299 test "$ld_shlibs_F77" = no && can_build_shared=no
42300
42301 GCC_F77="$G77"
42302 LD_F77="$LD"
42303
42304 lt_prog_compiler_wl_F77=
42305 lt_prog_compiler_pic_F77=
42306 lt_prog_compiler_static_F77=
42307
42308 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
42309 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
42310
42311   if test "$GCC" = yes; then
42312     lt_prog_compiler_wl_F77='-Wl,'
42313     lt_prog_compiler_static_F77='-static'
42314
42315     case $host_os in
42316       aix*)
42317       # All AIX code is PIC.
42318       if test "$host_cpu" = ia64; then
42319         # AIX 5 now supports IA64 processor
42320         lt_prog_compiler_static_F77='-Bstatic'
42321       fi
42322       ;;
42323
42324     amigaos*)
42325       # FIXME: we need at least 68020 code to build shared libraries, but
42326       # adding the `-m68020' flag to GCC prevents building anything better,
42327       # like `-m68040'.
42328       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
42329       ;;
42330
42331     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
42332       # PIC is the default for these OSes.
42333       ;;
42334
42335     mingw* | pw32* | os2*)
42336       # This hack is so that the source file can tell whether it is being
42337       # built for inclusion in a dll (and should export symbols for example).
42338       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
42339       ;;
42340
42341     darwin* | rhapsody*)
42342       # PIC is the default on this platform
42343       # Common symbols not allowed in MH_DYLIB files
42344       lt_prog_compiler_pic_F77='-fno-common'
42345       ;;
42346
42347     msdosdjgpp*)
42348       # Just because we use GCC doesn't mean we suddenly get shared libraries
42349       # on systems that don't support them.
42350       lt_prog_compiler_can_build_shared_F77=no
42351       enable_shared=no
42352       ;;
42353
42354     sysv4*MP*)
42355       if test -d /usr/nec; then
42356         lt_prog_compiler_pic_F77=-Kconform_pic
42357       fi
42358       ;;
42359
42360     hpux*)
42361       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
42362       # not for PA HP-UX.
42363       case $host_cpu in
42364       hppa*64*|ia64*)
42365         # +Z the default
42366         ;;
42367       *)
42368         lt_prog_compiler_pic_F77='-fPIC'
42369         ;;
42370       esac
42371       ;;
42372
42373     *)
42374       lt_prog_compiler_pic_F77='-fPIC'
42375       ;;
42376     esac
42377   else
42378     # PORTME Check for flag to pass linker flags through the system compiler.
42379     case $host_os in
42380     aix*)
42381       lt_prog_compiler_wl_F77='-Wl,'
42382       if test "$host_cpu" = ia64; then
42383         # AIX 5 now supports IA64 processor
42384         lt_prog_compiler_static_F77='-Bstatic'
42385       else
42386         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
42387       fi
42388       ;;
42389       darwin*)
42390         # PIC is the default on this platform
42391         # Common symbols not allowed in MH_DYLIB files
42392        case $cc_basename in
42393          xlc*)
42394          lt_prog_compiler_pic_F77='-qnocommon'
42395          lt_prog_compiler_wl_F77='-Wl,'
42396          ;;
42397        esac
42398        ;;
42399
42400     mingw* | pw32* | os2*)
42401       # This hack is so that the source file can tell whether it is being
42402       # built for inclusion in a dll (and should export symbols for example).
42403       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
42404       ;;
42405
42406     hpux9* | hpux10* | hpux11*)
42407       lt_prog_compiler_wl_F77='-Wl,'
42408       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
42409       # not for PA HP-UX.
42410       case $host_cpu in
42411       hppa*64*|ia64*)
42412         # +Z the default
42413         ;;
42414       *)
42415         lt_prog_compiler_pic_F77='+Z'
42416         ;;
42417       esac
42418       # Is there a better lt_prog_compiler_static that works with the bundled CC?
42419       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
42420       ;;
42421
42422     irix5* | irix6* | nonstopux*)
42423       lt_prog_compiler_wl_F77='-Wl,'
42424       # PIC (with -KPIC) is the default.
42425       lt_prog_compiler_static_F77='-non_shared'
42426       ;;
42427
42428     newsos6)
42429       lt_prog_compiler_pic_F77='-KPIC'
42430       lt_prog_compiler_static_F77='-Bstatic'
42431       ;;
42432
42433     linux*)
42434       case $cc_basename in
42435       icc* | ecc*)
42436         lt_prog_compiler_wl_F77='-Wl,'
42437         lt_prog_compiler_pic_F77='-KPIC'
42438         lt_prog_compiler_static_F77='-static'
42439         ;;
42440       pgcc* | pgf77* | pgf90* | pgf95*)
42441         # Portland Group compilers (*not* the Pentium gcc compiler,
42442         # which looks to be a dead project)
42443         lt_prog_compiler_wl_F77='-Wl,'
42444         lt_prog_compiler_pic_F77='-fpic'
42445         lt_prog_compiler_static_F77='-Bstatic'
42446         ;;
42447       ccc*)
42448         lt_prog_compiler_wl_F77='-Wl,'
42449         # All Alpha code is PIC.
42450         lt_prog_compiler_static_F77='-non_shared'
42451         ;;
42452       esac
42453       ;;
42454
42455     osf3* | osf4* | osf5*)
42456       lt_prog_compiler_wl_F77='-Wl,'
42457       # All OSF/1 code is PIC.
42458       lt_prog_compiler_static_F77='-non_shared'
42459       ;;
42460
42461     sco3.2v5*)
42462       lt_prog_compiler_pic_F77='-Kpic'
42463       lt_prog_compiler_static_F77='-dn'
42464       ;;
42465
42466     solaris*)
42467       lt_prog_compiler_pic_F77='-KPIC'
42468       lt_prog_compiler_static_F77='-Bstatic'
42469       case $cc_basename in
42470       f77* | f90* | f95*)
42471         lt_prog_compiler_wl_F77='-Qoption ld ';;
42472       *)
42473         lt_prog_compiler_wl_F77='-Wl,';;
42474       esac
42475       ;;
42476
42477     sunos4*)
42478       lt_prog_compiler_wl_F77='-Qoption ld '
42479       lt_prog_compiler_pic_F77='-PIC'
42480       lt_prog_compiler_static_F77='-Bstatic'
42481       ;;
42482
42483     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
42484       lt_prog_compiler_wl_F77='-Wl,'
42485       lt_prog_compiler_pic_F77='-KPIC'
42486       lt_prog_compiler_static_F77='-Bstatic'
42487       ;;
42488
42489     sysv4*MP*)
42490       if test -d /usr/nec ;then
42491         lt_prog_compiler_pic_F77='-Kconform_pic'
42492         lt_prog_compiler_static_F77='-Bstatic'
42493       fi
42494       ;;
42495
42496     unicos*)
42497       lt_prog_compiler_wl_F77='-Wl,'
42498       lt_prog_compiler_can_build_shared_F77=no
42499       ;;
42500
42501     uts4*)
42502       lt_prog_compiler_pic_F77='-pic'
42503       lt_prog_compiler_static_F77='-Bstatic'
42504       ;;
42505
42506     *)
42507       lt_prog_compiler_can_build_shared_F77=no
42508       ;;
42509     esac
42510   fi
42511
42512 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
42513 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
42514
42515 #
42516 # Check to make sure the PIC flag actually works.
42517 #
42518 if test -n "$lt_prog_compiler_pic_F77"; then
42519
42520 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
42521 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
42522 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
42523   echo $ECHO_N "(cached) $ECHO_C" >&6
42524 else
42525   lt_prog_compiler_pic_works_F77=no
42526   ac_outfile=conftest.$ac_objext
42527    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
42528    lt_compiler_flag="$lt_prog_compiler_pic_F77"
42529    # Insert the option either (1) after the last *FLAGS variable, or
42530    # (2) before a word containing "conftest.", or (3) at the end.
42531    # Note that $ac_compile itself does not contain backslashes and begins
42532    # with a dollar sign (not a hyphen), so the echo should work correctly.
42533    # The option is referenced via a variable to avoid confusing sed.
42534    lt_compile=`echo "$ac_compile" | $SED \
42535    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
42536    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
42537    -e 's:$: $lt_compiler_flag:'`
42538    (eval echo "\"\$as_me:42538: $lt_compile\"" >&5)
42539    (eval "$lt_compile" 2>conftest.err)
42540    ac_status=$?
42541    cat conftest.err >&5
42542    echo "$as_me:42542: \$? = $ac_status" >&5
42543    if (exit $ac_status) && test -s "$ac_outfile"; then
42544      # The compiler can only warn and ignore the option if not recognized
42545      # So say no if there are warnings other than the usual output.
42546      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
42547      $SED '/^$/d' conftest.err >conftest.er2
42548      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
42549        lt_prog_compiler_pic_works_F77=yes
42550      fi
42551    fi
42552    $rm conftest*
42553
42554 fi
42555 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
42556 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
42557
42558 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
42559     case $lt_prog_compiler_pic_F77 in
42560      "" | " "*) ;;
42561      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
42562      esac
42563 else
42564     lt_prog_compiler_pic_F77=
42565      lt_prog_compiler_can_build_shared_F77=no
42566 fi
42567
42568 fi
42569 case $host_os in
42570   # For platforms which do not support PIC, -DPIC is meaningless:
42571   *djgpp*)
42572     lt_prog_compiler_pic_F77=
42573     ;;
42574   *)
42575     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
42576     ;;
42577 esac
42578
42579 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
42580 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
42581 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
42582   echo $ECHO_N "(cached) $ECHO_C" >&6
42583 else
42584   lt_cv_prog_compiler_c_o_F77=no
42585    $rm -r conftest 2>/dev/null
42586    mkdir conftest
42587    cd conftest
42588    mkdir out
42589    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
42590
42591    lt_compiler_flag="-o out/conftest2.$ac_objext"
42592    # Insert the option either (1) after the last *FLAGS variable, or
42593    # (2) before a word containing "conftest.", or (3) at the end.
42594    # Note that $ac_compile itself does not contain backslashes and begins
42595    # with a dollar sign (not a hyphen), so the echo should work correctly.
42596    lt_compile=`echo "$ac_compile" | $SED \
42597    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
42598    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
42599    -e 's:$: $lt_compiler_flag:'`
42600    (eval echo "\"\$as_me:42600: $lt_compile\"" >&5)
42601    (eval "$lt_compile" 2>out/conftest.err)
42602    ac_status=$?
42603    cat out/conftest.err >&5
42604    echo "$as_me:42604: \$? = $ac_status" >&5
42605    if (exit $ac_status) && test -s out/conftest2.$ac_objext
42606    then
42607      # The compiler can only warn and ignore the option if not recognized
42608      # So say no if there are warnings
42609      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
42610      $SED '/^$/d' out/conftest.err >out/conftest.er2
42611      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
42612        lt_cv_prog_compiler_c_o_F77=yes
42613      fi
42614    fi
42615    chmod u+w . 2>&5
42616    $rm conftest*
42617    # SGI C++ compiler will create directory out/ii_files/ for
42618    # template instantiation
42619    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
42620    $rm out/* && rmdir out
42621    cd ..
42622    rmdir conftest
42623    $rm conftest*
42624
42625 fi
42626 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
42627 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
42628
42629
42630 hard_links="nottested"
42631 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
42632   # do not overwrite the value of need_locks provided by the user
42633   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
42634 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
42635   hard_links=yes
42636   $rm conftest*
42637   ln conftest.a conftest.b 2>/dev/null && hard_links=no
42638   touch conftest.a
42639   ln conftest.a conftest.b 2>&5 || hard_links=no
42640   ln conftest.a conftest.b 2>/dev/null && hard_links=no
42641   { echo "$as_me:$LINENO: result: $hard_links" >&5
42642 echo "${ECHO_T}$hard_links" >&6; }
42643   if test "$hard_links" = no; then
42644
42645     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
42646 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
42647
42648
42649     cat <<AAW_EOF >>config.warnings
42650 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
42651 AAW_EOF
42652
42653
42654     need_locks=warn
42655   fi
42656 else
42657   need_locks=no
42658 fi
42659
42660 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
42661 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
42662
42663   runpath_var=
42664   allow_undefined_flag_F77=
42665   enable_shared_with_static_runtimes_F77=no
42666   archive_cmds_F77=
42667   archive_expsym_cmds_F77=
42668   old_archive_From_new_cmds_F77=
42669   old_archive_from_expsyms_cmds_F77=
42670   export_dynamic_flag_spec_F77=
42671   whole_archive_flag_spec_F77=
42672   thread_safe_flag_spec_F77=
42673   hardcode_libdir_flag_spec_F77=
42674   hardcode_libdir_flag_spec_ld_F77=
42675   hardcode_libdir_separator_F77=
42676   hardcode_direct_F77=no
42677   hardcode_minus_L_F77=no
42678   hardcode_shlibpath_var_F77=unsupported
42679   link_all_deplibs_F77=unknown
42680   hardcode_automatic_F77=no
42681   module_cmds_F77=
42682   module_expsym_cmds_F77=
42683   always_export_symbols_F77=no
42684   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
42685   # include_expsyms should be a list of space-separated symbols to be *always*
42686   # included in the symbol list
42687   include_expsyms_F77=
42688   # exclude_expsyms can be an extended regexp of symbols to exclude
42689   # it will be wrapped by ` (' and `)$', so one must not match beginning or
42690   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
42691   # as well as any symbol that contains `d'.
42692   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
42693   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
42694   # platforms (ab)use it in PIC code, but their linkers get confused if
42695   # the symbol is explicitly referenced.  Since portable code cannot
42696   # rely on this symbol name, it's probably fine to never include it in
42697   # preloaded symbol tables.
42698   extract_expsyms_cmds=
42699   # Just being paranoid about ensuring that cc_basename is set.
42700   for cc_temp in $compiler""; do
42701   case $cc_temp in
42702     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
42703     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
42704     \-*) ;;
42705     *) break;;
42706   esac
42707 done
42708 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
42709
42710   case $host_os in
42711   cygwin* | mingw* | pw32*)
42712     # FIXME: the MSVC++ port hasn't been tested in a loooong time
42713     # When not using gcc, we currently assume that we are using
42714     # Microsoft Visual C++.
42715     if test "$GCC" != yes; then
42716       with_gnu_ld=no
42717     fi
42718     ;;
42719   openbsd*)
42720     with_gnu_ld=no
42721     ;;
42722   esac
42723
42724   ld_shlibs_F77=yes
42725   if test "$with_gnu_ld" = yes; then
42726     # If archive_cmds runs LD, not CC, wlarc should be empty
42727     wlarc='${wl}'
42728
42729     # Set some defaults for GNU ld with shared library support. These
42730     # are reset later if shared libraries are not supported. Putting them
42731     # here allows them to be overridden if necessary.
42732     runpath_var=LD_RUN_PATH
42733     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
42734     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
42735     # ancient GNU ld didn't support --whole-archive et. al.
42736     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
42737         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
42738       else
42739         whole_archive_flag_spec_F77=
42740     fi
42741     supports_anon_versioning=no
42742     case `$LD -v 2>/dev/null` in
42743       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
42744       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
42745       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
42746       *\ 2.11.*) ;; # other 2.11 versions
42747       *) supports_anon_versioning=yes ;;
42748     esac
42749
42750     # See if GNU ld supports shared libraries.
42751     case $host_os in
42752     aix3* | aix4* | aix5*)
42753       # On AIX/PPC, the GNU linker is very broken
42754       if test "$host_cpu" != ia64; then
42755         ld_shlibs_F77=no
42756         cat <<EOF 1>&2
42757
42758 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
42759 *** to be unable to reliably create shared libraries on AIX.
42760 *** Therefore, libtool is disabling shared libraries support.  If you
42761 *** really care for shared libraries, you may want to modify your PATH
42762 *** so that a non-GNU linker is found, and then restart.
42763
42764 EOF
42765       fi
42766       ;;
42767
42768     amigaos*)
42769       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
42770       hardcode_libdir_flag_spec_F77='-L$libdir'
42771       hardcode_minus_L_F77=yes
42772
42773       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
42774       # that the semantics of dynamic libraries on AmigaOS, at least up
42775       # to version 4, is to share data among multiple programs linked
42776       # with the same dynamic library.  Since this doesn't match the
42777       # behavior of shared libraries on other platforms, we can't use
42778       # them.
42779       ld_shlibs_F77=no
42780       ;;
42781
42782     beos*)
42783       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
42784         allow_undefined_flag_F77=unsupported
42785         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
42786         # support --undefined.  This deserves some investigation.  FIXME
42787         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
42788       else
42789         ld_shlibs_F77=no
42790       fi
42791       ;;
42792
42793     cygwin* | mingw* | pw32*)
42794       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
42795       # as there is no search path for DLLs.
42796       hardcode_libdir_flag_spec_F77='-L$libdir'
42797       allow_undefined_flag_F77=unsupported
42798       always_export_symbols_F77=no
42799       enable_shared_with_static_runtimes_F77=yes
42800       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
42801
42802       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
42803         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
42804         # If the export-symbols file already is a .def file (1st line
42805         # is EXPORTS), use it as is; otherwise, prepend...
42806         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
42807           cp $export_symbols $output_objdir/$soname.def;
42808         else
42809           echo EXPORTS > $output_objdir/$soname.def;
42810           cat $export_symbols >> $output_objdir/$soname.def;
42811         fi~
42812         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
42813       else
42814         ld_shlibs_F77=no
42815       fi
42816       ;;
42817
42818     linux*)
42819       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
42820         tmp_addflag=
42821         case $cc_basename,$host_cpu in
42822         pgcc*)                          # Portland Group C compiler
42823           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
42824           tmp_addflag=' $pic_flag'
42825           ;;
42826         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
42827           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
42828           tmp_addflag=' $pic_flag -Mnomain' ;;
42829         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
42830           tmp_addflag=' -i_dynamic' ;;
42831         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
42832           tmp_addflag=' -i_dynamic -nofor_main' ;;
42833         ifc* | ifort*)                  # Intel Fortran compiler
42834           tmp_addflag=' -nofor_main' ;;
42835         esac
42836         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
42837
42838         if test $supports_anon_versioning = yes; then
42839           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
42840   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
42841   $echo "local: *; };" >> $output_objdir/$libname.ver~
42842           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
42843         fi
42844       else
42845         ld_shlibs_F77=no
42846       fi
42847       ;;
42848
42849     netbsd*)
42850       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
42851         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
42852         wlarc=
42853       else
42854         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
42855         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
42856       fi
42857       ;;
42858
42859     solaris* | sysv5*)
42860       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
42861         ld_shlibs_F77=no
42862         cat <<EOF 1>&2
42863
42864 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
42865 *** create shared libraries on Solaris systems.  Therefore, libtool
42866 *** is disabling shared libraries support.  We urge you to upgrade GNU
42867 *** binutils to release 2.9.1 or newer.  Another option is to modify
42868 *** your PATH or compiler configuration so that the native linker is
42869 *** used, and then restart.
42870
42871 EOF
42872       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
42873         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
42874         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
42875       else
42876         ld_shlibs_F77=no
42877       fi
42878       ;;
42879
42880     sunos4*)
42881       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
42882       wlarc=
42883       hardcode_direct_F77=yes
42884       hardcode_shlibpath_var_F77=no
42885       ;;
42886
42887     *)
42888       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
42889         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
42890         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
42891       else
42892         ld_shlibs_F77=no
42893       fi
42894       ;;
42895     esac
42896
42897     if test "$ld_shlibs_F77" = no; then
42898       runpath_var=
42899       hardcode_libdir_flag_spec_F77=
42900       export_dynamic_flag_spec_F77=
42901       whole_archive_flag_spec_F77=
42902     fi
42903   else
42904     # PORTME fill in a description of your system's linker (not GNU ld)
42905     case $host_os in
42906     aix3*)
42907       allow_undefined_flag_F77=unsupported
42908       always_export_symbols_F77=yes
42909       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
42910       # Note: this linker hardcodes the directories in LIBPATH if there
42911       # are no directories specified by -L.
42912       hardcode_minus_L_F77=yes
42913       if test "$GCC" = yes && test -z "$link_static_flag"; then
42914         # Neither direct hardcoding nor static linking is supported with a
42915         # broken collect2.
42916         hardcode_direct_F77=unsupported
42917       fi
42918       ;;
42919
42920     aix4* | aix5*)
42921       if test "$host_cpu" = ia64; then
42922         # On IA64, the linker does run time linking by default, so we don't
42923         # have to do anything special.
42924         aix_use_runtimelinking=no
42925         exp_sym_flag='-Bexport'
42926         no_entry_flag=""
42927       else
42928         # If we're using GNU nm, then we don't want the "-C" option.
42929         # -C means demangle to AIX nm, but means don't demangle with GNU nm
42930         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
42931           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
42932         else
42933           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
42934         fi
42935         aix_use_runtimelinking=no
42936
42937         # Test if we are trying to use run time linking or normal
42938         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
42939         # need to do runtime linking.
42940         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
42941           for ld_flag in $LDFLAGS; do
42942           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
42943             aix_use_runtimelinking=yes
42944             break
42945           fi
42946           done
42947         esac
42948
42949         exp_sym_flag='-bexport'
42950         no_entry_flag='-bnoentry'
42951       fi
42952
42953       # When large executables or shared objects are built, AIX ld can
42954       # have problems creating the table of contents.  If linking a library
42955       # or program results in "error TOC overflow" add -mminimal-toc to
42956       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
42957       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
42958
42959       archive_cmds_F77=''
42960       hardcode_direct_F77=yes
42961       hardcode_libdir_separator_F77=':'
42962       link_all_deplibs_F77=yes
42963
42964       if test "$GCC" = yes; then
42965         case $host_os in aix4.[012]|aix4.[012].*)
42966         # We only want to do this on AIX 4.2 and lower, the check
42967         # below for broken collect2 doesn't work under 4.3+
42968           collect2name=`${CC} -print-prog-name=collect2`
42969           if test -f "$collect2name" && \
42970            strings "$collect2name" | grep resolve_lib_name >/dev/null
42971           then
42972           # We have reworked collect2
42973           hardcode_direct_F77=yes
42974           else
42975           # We have old collect2
42976           hardcode_direct_F77=unsupported
42977           # It fails to find uninstalled libraries when the uninstalled
42978           # path is not listed in the libpath.  Setting hardcode_minus_L
42979           # to unsupported forces relinking
42980           hardcode_minus_L_F77=yes
42981           hardcode_libdir_flag_spec_F77='-L$libdir'
42982           hardcode_libdir_separator_F77=
42983           fi
42984         esac
42985         shared_flag='-shared'
42986         if test "$aix_use_runtimelinking" = yes; then
42987           shared_flag="$shared_flag "'${wl}-G'
42988         fi
42989       else
42990         # not using gcc
42991         if test "$host_cpu" = ia64; then
42992         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
42993         # chokes on -Wl,-G. The following line is correct:
42994           shared_flag='-G'
42995         else
42996         if test "$aix_use_runtimelinking" = yes; then
42997             shared_flag='${wl}-G'
42998           else
42999             shared_flag='${wl}-bM:SRE'
43000         fi
43001         fi
43002       fi
43003
43004       # It seems that -bexpall does not export symbols beginning with
43005       # underscore (_), so it is better to generate a list of symbols to export.
43006       always_export_symbols_F77=yes
43007       if test "$aix_use_runtimelinking" = yes; then
43008         # Warning - without using the other runtime loading flags (-brtl),
43009         # -berok will link without error, but may produce a broken library.
43010         allow_undefined_flag_F77='-berok'
43011        # Determine the default libpath from the value encoded in an empty executable.
43012        cat >conftest.$ac_ext <<_ACEOF
43013       program main
43014
43015       end
43016 _ACEOF
43017 rm -f conftest.$ac_objext conftest$ac_exeext
43018 if { (ac_try="$ac_link"
43019 case "(($ac_try" in
43020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43021   *) ac_try_echo=$ac_try;;
43022 esac
43023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43024   (eval "$ac_link") 2>conftest.er1
43025   ac_status=$?
43026   grep -v '^ *+' conftest.er1 >conftest.err
43027   rm -f conftest.er1
43028   cat conftest.err >&5
43029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43030   (exit $ac_status); } && {
43031          test -z "$ac_f77_werror_flag" ||
43032          test ! -s conftest.err
43033        } && test -s conftest$ac_exeext &&
43034        $as_test_x conftest$ac_exeext; then
43035
43036 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
43037 }'`
43038 # Check for a 64-bit object if we didn't find anything.
43039 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
43040 }'`; fi
43041 else
43042   echo "$as_me: failed program was:" >&5
43043 sed 's/^/| /' conftest.$ac_ext >&5
43044
43045
43046 fi
43047
43048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43049       conftest$ac_exeext conftest.$ac_ext
43050 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
43051
43052        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
43053         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
43054        else
43055         if test "$host_cpu" = ia64; then
43056           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
43057           allow_undefined_flag_F77="-z nodefs"
43058           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
43059         else
43060          # Determine the default libpath from the value encoded in an empty executable.
43061          cat >conftest.$ac_ext <<_ACEOF
43062       program main
43063
43064       end
43065 _ACEOF
43066 rm -f conftest.$ac_objext conftest$ac_exeext
43067 if { (ac_try="$ac_link"
43068 case "(($ac_try" in
43069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43070   *) ac_try_echo=$ac_try;;
43071 esac
43072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43073   (eval "$ac_link") 2>conftest.er1
43074   ac_status=$?
43075   grep -v '^ *+' conftest.er1 >conftest.err
43076   rm -f conftest.er1
43077   cat conftest.err >&5
43078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43079   (exit $ac_status); } && {
43080          test -z "$ac_f77_werror_flag" ||
43081          test ! -s conftest.err
43082        } && test -s conftest$ac_exeext &&
43083        $as_test_x conftest$ac_exeext; then
43084
43085 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
43086 }'`
43087 # Check for a 64-bit object if we didn't find anything.
43088 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
43089 }'`; fi
43090 else
43091   echo "$as_me: failed program was:" >&5
43092 sed 's/^/| /' conftest.$ac_ext >&5
43093
43094
43095 fi
43096
43097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43098       conftest$ac_exeext conftest.$ac_ext
43099 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
43100
43101          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
43102           # Warning - without using the other run time loading flags,
43103           # -berok will link without error, but may produce a broken library.
43104           no_undefined_flag_F77=' ${wl}-bernotok'
43105           allow_undefined_flag_F77=' ${wl}-berok'
43106           # -bexpall does not export symbols beginning with underscore (_)
43107           always_export_symbols_F77=yes
43108           # Exported symbols can be pulled into shared objects from archives
43109           whole_archive_flag_spec_F77=' '
43110           archive_cmds_need_lc_F77=yes
43111           # This is similar to how AIX traditionally builds its shared libraries.
43112           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
43113         fi
43114       fi
43115       ;;
43116
43117     amigaos*)
43118       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
43119       hardcode_libdir_flag_spec_F77='-L$libdir'
43120       hardcode_minus_L_F77=yes
43121       # see comment about different semantics on the GNU ld section
43122       ld_shlibs_F77=no
43123       ;;
43124
43125     bsdi[45]*)
43126       export_dynamic_flag_spec_F77=-rdynamic
43127       ;;
43128
43129     cygwin* | mingw* | pw32*)
43130       # When not using gcc, we currently assume that we are using
43131       # Microsoft Visual C++.
43132       # hardcode_libdir_flag_spec is actually meaningless, as there is
43133       # no search path for DLLs.
43134       hardcode_libdir_flag_spec_F77=' '
43135       allow_undefined_flag_F77=unsupported
43136       # Tell ltmain to make .lib files, not .a files.
43137       libext=lib
43138       # Tell ltmain to make .dll files, not .so files.
43139       shrext_cmds=".dll"
43140       # FIXME: Setting linknames here is a bad hack.
43141       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
43142       # The linker will automatically build a .lib file if we build a DLL.
43143       old_archive_From_new_cmds_F77='true'
43144       # FIXME: Should let the user specify the lib program.
43145       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
43146       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
43147       enable_shared_with_static_runtimes_F77=yes
43148       ;;
43149
43150     darwin* | rhapsody*)
43151       case $host_os in
43152         rhapsody* | darwin1.[012])
43153          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
43154          ;;
43155        *) # Darwin 1.3 on
43156          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
43157            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
43158          else
43159            case ${MACOSX_DEPLOYMENT_TARGET} in
43160              10.[012])
43161                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
43162                ;;
43163              10.*)
43164                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
43165                ;;
43166            esac
43167          fi
43168          ;;
43169       esac
43170       archive_cmds_need_lc_F77=no
43171       hardcode_direct_F77=no
43172       hardcode_automatic_F77=yes
43173       hardcode_shlibpath_var_F77=unsupported
43174       whole_archive_flag_spec_F77=''
43175       link_all_deplibs_F77=yes
43176     if test "$GCC" = yes ; then
43177         output_verbose_link_cmd='echo'
43178         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
43179       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
43180       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
43181       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
43182       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
43183     else
43184       case $cc_basename in
43185         xlc*)
43186          output_verbose_link_cmd='echo'
43187          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
43188          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
43189           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
43190          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
43191           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
43192           ;;
43193        *)
43194          ld_shlibs_F77=no
43195           ;;
43196       esac
43197     fi
43198       ;;
43199
43200     dgux*)
43201       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43202       hardcode_libdir_flag_spec_F77='-L$libdir'
43203       hardcode_shlibpath_var_F77=no
43204       ;;
43205
43206     freebsd1*)
43207       ld_shlibs_F77=no
43208       ;;
43209
43210     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
43211     # support.  Future versions do this automatically, but an explicit c++rt0.o
43212     # does not break anything, and helps significantly (at the cost of a little
43213     # extra space).
43214     freebsd2.2*)
43215       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
43216       hardcode_libdir_flag_spec_F77='-R$libdir'
43217       hardcode_direct_F77=yes
43218       hardcode_shlibpath_var_F77=no
43219       ;;
43220
43221     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
43222     freebsd2*)
43223       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
43224       hardcode_direct_F77=yes
43225       hardcode_minus_L_F77=yes
43226       hardcode_shlibpath_var_F77=no
43227       ;;
43228
43229     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
43230     freebsd* | kfreebsd*-gnu | dragonfly*)
43231       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
43232       hardcode_libdir_flag_spec_F77='-R$libdir'
43233       hardcode_direct_F77=yes
43234       hardcode_shlibpath_var_F77=no
43235       ;;
43236
43237     hpux9*)
43238       if test "$GCC" = yes; then
43239         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
43240       else
43241         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
43242       fi
43243       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
43244       hardcode_libdir_separator_F77=:
43245       hardcode_direct_F77=yes
43246
43247       # hardcode_minus_L: Not really in the search PATH,
43248       # but as the default location of the library.
43249       hardcode_minus_L_F77=yes
43250       export_dynamic_flag_spec_F77='${wl}-E'
43251       ;;
43252
43253     hpux10* | hpux11*)
43254       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
43255         case $host_cpu in
43256         hppa*64*|ia64*)
43257           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43258           ;;
43259         *)
43260           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
43261           ;;
43262         esac
43263       else
43264         case $host_cpu in
43265         hppa*64*|ia64*)
43266           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
43267           ;;
43268         *)
43269           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
43270           ;;
43271         esac
43272       fi
43273       if test "$with_gnu_ld" = no; then
43274         case $host_cpu in
43275         hppa*64*)
43276           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
43277           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
43278           hardcode_libdir_separator_F77=:
43279           hardcode_direct_F77=no
43280           hardcode_shlibpath_var_F77=no
43281           ;;
43282         ia64*)
43283           hardcode_libdir_flag_spec_F77='-L$libdir'
43284           hardcode_direct_F77=no
43285           hardcode_shlibpath_var_F77=no
43286
43287           # hardcode_minus_L: Not really in the search PATH,
43288           # but as the default location of the library.
43289           hardcode_minus_L_F77=yes
43290           ;;
43291         *)
43292           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
43293           hardcode_libdir_separator_F77=:
43294           hardcode_direct_F77=yes
43295           export_dynamic_flag_spec_F77='${wl}-E'
43296
43297           # hardcode_minus_L: Not really in the search PATH,
43298           # but as the default location of the library.
43299           hardcode_minus_L_F77=yes
43300           ;;
43301         esac
43302       fi
43303       ;;
43304
43305     irix5* | irix6* | nonstopux*)
43306       if test "$GCC" = yes; then
43307         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
43308       else
43309         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
43310         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
43311       fi
43312       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
43313       hardcode_libdir_separator_F77=:
43314       link_all_deplibs_F77=yes
43315       ;;
43316
43317     netbsd*)
43318       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
43319         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
43320       else
43321         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
43322       fi
43323       hardcode_libdir_flag_spec_F77='-R$libdir'
43324       hardcode_direct_F77=yes
43325       hardcode_shlibpath_var_F77=no
43326       ;;
43327
43328     newsos6)
43329       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43330       hardcode_direct_F77=yes
43331       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
43332       hardcode_libdir_separator_F77=:
43333       hardcode_shlibpath_var_F77=no
43334       ;;
43335
43336     openbsd*)
43337       hardcode_direct_F77=yes
43338       hardcode_shlibpath_var_F77=no
43339       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
43340         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
43341         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
43342         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
43343         export_dynamic_flag_spec_F77='${wl}-E'
43344       else
43345        case $host_os in
43346          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
43347            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
43348            hardcode_libdir_flag_spec_F77='-R$libdir'
43349            ;;
43350          *)
43351            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
43352            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
43353            ;;
43354        esac
43355       fi
43356       ;;
43357
43358     os2*)
43359       hardcode_libdir_flag_spec_F77='-L$libdir'
43360       hardcode_minus_L_F77=yes
43361       allow_undefined_flag_F77=unsupported
43362       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
43363       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
43364       ;;
43365
43366     osf3*)
43367       if test "$GCC" = yes; then
43368         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
43369         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
43370       else
43371         allow_undefined_flag_F77=' -expect_unresolved \*'
43372         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
43373       fi
43374       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
43375       hardcode_libdir_separator_F77=:
43376       ;;
43377
43378     osf4* | osf5*)      # as osf3* with the addition of -msym flag
43379       if test "$GCC" = yes; then
43380         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
43381         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
43382         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
43383       else
43384         allow_undefined_flag_F77=' -expect_unresolved \*'
43385         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
43386         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
43387         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
43388
43389         # Both c and cxx compiler support -rpath directly
43390         hardcode_libdir_flag_spec_F77='-rpath $libdir'
43391       fi
43392       hardcode_libdir_separator_F77=:
43393       ;;
43394
43395     sco3.2v5*)
43396       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43397       hardcode_shlibpath_var_F77=no
43398       export_dynamic_flag_spec_F77='${wl}-Bexport'
43399       runpath_var=LD_RUN_PATH
43400       hardcode_runpath_var=yes
43401       ;;
43402
43403     solaris*)
43404       no_undefined_flag_F77=' -z text'
43405       if test "x$archive_cmds" = "x"; then
43406         if test "$GCC" = yes; then
43407           wlarc='${wl}'
43408           if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
43409             archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43410             archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
43411             $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
43412           else
43413             archive_cmds_F77='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43414             archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
43415             $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
43416           fi
43417         else
43418           wlarc=''
43419           lt_prog_compiler_static_F77='-static'
43420           archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
43421           archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
43422           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
43423           lt_prog_compiler_static_F77='-static'
43424         fi
43425       fi
43426       hardcode_libdir_flag_spec_F77='-R$libdir'
43427       hardcode_shlibpath_var_F77=no
43428       case $host_os in
43429       solaris2.[0-5] | solaris2.[0-5].*) ;;
43430       *)
43431         # The compiler driver will combine linker options so we
43432         # cannot just pass the convience library names through
43433         # without $wl, iff we do not link with $LD.
43434         # Luckily, gcc supports the same syntax we need for Sun Studio.
43435         # Supported since Solaris 2.6 (maybe 2.5.1?)
43436         case $wlarc in
43437         '')
43438           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
43439         *)
43440           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
43441         esac ;;
43442       esac
43443       link_all_deplibs_F77=yes
43444       ;;
43445
43446     sunos4*)
43447       if test "x$host_vendor" = xsequent; then
43448         # Use $CC to link under sequent, because it throws in some extra .o
43449         # files that make .init and .fini sections work.
43450         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
43451       else
43452         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
43453       fi
43454       hardcode_libdir_flag_spec_F77='-L$libdir'
43455       hardcode_direct_F77=yes
43456       hardcode_minus_L_F77=yes
43457       hardcode_shlibpath_var_F77=no
43458       ;;
43459
43460     sysv4)
43461       case $host_vendor in
43462         sni)
43463           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43464           hardcode_direct_F77=yes # is this really true???
43465         ;;
43466         siemens)
43467           ## LD is ld it makes a PLAMLIB
43468           ## CC just makes a GrossModule.
43469           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
43470           reload_cmds_F77='$CC -r -o $output$reload_objs'
43471           hardcode_direct_F77=no
43472         ;;
43473         motorola)
43474           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43475           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
43476         ;;
43477       esac
43478       runpath_var='LD_RUN_PATH'
43479       hardcode_shlibpath_var_F77=no
43480       ;;
43481
43482     sysv4.3*)
43483       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43484       hardcode_shlibpath_var_F77=no
43485       export_dynamic_flag_spec_F77='-Bexport'
43486       ;;
43487
43488     sysv4*MP*)
43489       if test -d /usr/nec; then
43490         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43491         hardcode_shlibpath_var_F77=no
43492         runpath_var=LD_RUN_PATH
43493         hardcode_runpath_var=yes
43494         ld_shlibs_F77=yes
43495       fi
43496       ;;
43497
43498     sysv4.2uw2*)
43499       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
43500       hardcode_direct_F77=yes
43501       hardcode_minus_L_F77=no
43502       hardcode_shlibpath_var_F77=no
43503       hardcode_runpath_var=yes
43504       runpath_var=LD_RUN_PATH
43505       ;;
43506
43507    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
43508       no_undefined_flag_F77='${wl}-z ${wl}text'
43509       if test "$GCC" = yes; then
43510         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43511       else
43512         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43513       fi
43514       runpath_var='LD_RUN_PATH'
43515       hardcode_shlibpath_var_F77=no
43516       ;;
43517
43518     sysv5*)
43519       no_undefined_flag_F77=' -z text'
43520       # $CC -shared without GNU ld will not create a library from C++
43521       # object files and a static libstdc++, better avoid it by now
43522       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
43523       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
43524                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
43525       hardcode_libdir_flag_spec_F77=
43526       hardcode_shlibpath_var_F77=no
43527       runpath_var='LD_RUN_PATH'
43528       ;;
43529
43530     uts4*)
43531       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43532       hardcode_libdir_flag_spec_F77='-L$libdir'
43533       hardcode_shlibpath_var_F77=no
43534       ;;
43535
43536     *)
43537       ld_shlibs_F77=no
43538       ;;
43539     esac
43540   fi
43541
43542 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
43543 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
43544 test "$ld_shlibs_F77" = no && can_build_shared=no
43545
43546 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
43547 if test "$GCC" = yes; then
43548   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
43549 fi
43550
43551 #
43552 # Do we need to explicitly link libc?
43553 #
43554 case "x$archive_cmds_need_lc_F77" in
43555 x|xyes)
43556   # Assume -lc should be added
43557   archive_cmds_need_lc_F77=yes
43558
43559   if test "$enable_shared" = yes && test "$GCC" = yes; then
43560     case $archive_cmds_F77 in
43561     *'~'*)
43562       # FIXME: we may have to deal with multi-command sequences.
43563       ;;
43564     '$CC '*)
43565       # Test whether the compiler implicitly links with -lc since on some
43566       # systems, -lgcc has to come before -lc. If gcc already passes -lc
43567       # to ld, don't add -lc before -lgcc.
43568       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
43569 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
43570       $rm conftest*
43571       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
43572
43573       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43574   (eval $ac_compile) 2>&5
43575   ac_status=$?
43576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43577   (exit $ac_status); } 2>conftest.err; then
43578         soname=conftest
43579         lib=conftest
43580         libobjs=conftest.$ac_objext
43581         deplibs=
43582         wl=$lt_prog_compiler_wl_F77
43583         compiler_flags=-v
43584         linker_flags=-v
43585         verstring=
43586         output_objdir=.
43587         libname=conftest
43588         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
43589         allow_undefined_flag_F77=
43590         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
43591   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
43592   ac_status=$?
43593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43594   (exit $ac_status); }
43595         then
43596           archive_cmds_need_lc_F77=no
43597         else
43598           archive_cmds_need_lc_F77=yes
43599         fi
43600         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
43601       else
43602         cat conftest.err 1>&5
43603       fi
43604       $rm conftest*
43605       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
43606 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
43607       ;;
43608     esac
43609   fi
43610   ;;
43611 esac
43612
43613 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
43614 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
43615 library_names_spec=
43616 libname_spec='lib$name'
43617 soname_spec=
43618 shrext_cmds=".so"
43619 postinstall_cmds=
43620 postuninstall_cmds=
43621 finish_cmds=
43622 finish_eval=
43623 shlibpath_var=
43624 shlibpath_overrides_runpath=unknown
43625 version_type=none
43626 dynamic_linker="$host_os ld.so"
43627 sys_lib_dlsearch_path_spec="/lib /usr/lib"
43628 if test "$GCC" = yes; then
43629   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
43630   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
43631     # if the path contains ";" then we assume it to be the separator
43632     # otherwise default to the standard path separator (i.e. ":") - it is
43633     # assumed that no part of a normal pathname contains ";" but that should
43634     # okay in the real world where ";" in dirpaths is itself problematic.
43635     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
43636   else
43637     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
43638   fi
43639 else
43640   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
43641 fi
43642 need_lib_prefix=unknown
43643 hardcode_into_libs=no
43644
43645 # when you set need_version to no, make sure it does not cause -set_version
43646 # flags to be left without arguments
43647 need_version=unknown
43648
43649 case $host_os in
43650 aix3*)
43651   version_type=linux
43652   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
43653   shlibpath_var=LIBPATH
43654
43655   # AIX 3 has no versioning support, so we append a major version to the name.
43656   soname_spec='${libname}${release}${shared_ext}$major'
43657   ;;
43658
43659 aix4* | aix5*)
43660   version_type=linux
43661   need_lib_prefix=no
43662   need_version=no
43663   hardcode_into_libs=yes
43664   if test "$host_cpu" = ia64; then
43665     # AIX 5 supports IA64
43666     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
43667     shlibpath_var=LD_LIBRARY_PATH
43668   else
43669     # With GCC up to 2.95.x, collect2 would create an import file
43670     # for dependence libraries.  The import file would start with
43671     # the line `#! .'.  This would cause the generated library to
43672     # depend on `.', always an invalid library.  This was fixed in
43673     # development snapshots of GCC prior to 3.0.
43674     case $host_os in
43675       aix4 | aix4.[01] | aix4.[01].*)
43676       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
43677            echo ' yes '
43678            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
43679         :
43680       else
43681         can_build_shared=no
43682       fi
43683       ;;
43684     esac
43685     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
43686     # soname into executable. Probably we can add versioning support to
43687     # collect2, so additional links can be useful in future.
43688     if test "$aix_use_runtimelinking" = yes; then
43689       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
43690       # instead of lib<name>.a to let people know that these are not
43691       # typical AIX shared libraries.
43692       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43693     else
43694       # We preserve .a as extension for shared libraries through AIX4.2
43695       # and later when we are not doing run time linking.
43696       library_names_spec='${libname}${release}.a $libname.a'
43697       soname_spec='${libname}${release}${shared_ext}$major'
43698     fi
43699     shlibpath_var=LIBPATH
43700   fi
43701   ;;
43702
43703 amigaos*)
43704   library_names_spec='$libname.ixlibrary $libname.a'
43705   # Create ${libname}_ixlibrary.a entries in /sys/libs.
43706   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'
43707   ;;
43708
43709 beos*)
43710   library_names_spec='${libname}${shared_ext}'
43711   dynamic_linker="$host_os ld.so"
43712   shlibpath_var=LIBRARY_PATH
43713   ;;
43714
43715 bsdi[45]*)
43716   version_type=linux
43717   need_version=no
43718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43719   soname_spec='${libname}${release}${shared_ext}$major'
43720   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
43721   shlibpath_var=LD_LIBRARY_PATH
43722   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
43723   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
43724   # the default ld.so.conf also contains /usr/contrib/lib and
43725   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
43726   # libtool to hard-code these into programs
43727   ;;
43728
43729 cygwin* | mingw* | pw32*)
43730   version_type=windows
43731   shrext_cmds=".dll"
43732   need_version=no
43733   need_lib_prefix=no
43734
43735   case $GCC,$host_os in
43736   yes,cygwin* | yes,mingw* | yes,pw32*)
43737     library_names_spec='$libname.dll.a'
43738     # DLL is installed to $(libdir)/../bin by postinstall_cmds
43739     postinstall_cmds='base_file=`basename \${file}`~
43740       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
43741       dldir=$destdir/`dirname \$dlpath`~
43742       test -d \$dldir || mkdir -p \$dldir~
43743       $install_prog $dir/$dlname \$dldir/$dlname~
43744       chmod a+x \$dldir/$dlname'
43745     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
43746       dlpath=$dir/\$dldll~
43747        $rm \$dlpath'
43748     shlibpath_overrides_runpath=yes
43749
43750     case $host_os in
43751     cygwin*)
43752       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
43753       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43754       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
43755       ;;
43756     mingw*)
43757       # MinGW DLLs use traditional 'lib' prefix
43758       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43759       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
43760       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
43761         # It is most probably a Windows format PATH printed by
43762         # mingw gcc, but we are running on Cygwin. Gcc prints its search
43763         # path with ; separators, and with drive letters. We can handle the
43764         # drive letters (cygwin fileutils understands them), so leave them,
43765         # especially as we might pass files found there to a mingw objdump,
43766         # which wouldn't understand a cygwinified path. Ahh.
43767         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
43768       else
43769         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
43770       fi
43771       ;;
43772     pw32*)
43773       # pw32 DLLs use 'pw' prefix rather than 'lib'
43774       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43775       ;;
43776     esac
43777     ;;
43778
43779   *)
43780     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
43781     ;;
43782   esac
43783   dynamic_linker='Win32 ld.exe'
43784   # FIXME: first we should search . and the directory the executable is in
43785   shlibpath_var=PATH
43786   ;;
43787
43788 darwin* | rhapsody*)
43789   dynamic_linker="$host_os dyld"
43790   version_type=darwin
43791   need_lib_prefix=no
43792   need_version=no
43793   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
43794   soname_spec='${libname}${release}${major}$shared_ext'
43795   shlibpath_overrides_runpath=yes
43796   shlibpath_var=DYLD_LIBRARY_PATH
43797   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
43798   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
43799   if test "$GCC" = yes; then
43800     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
43801   else
43802     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
43803   fi
43804   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
43805   ;;
43806
43807 dgux*)
43808   version_type=linux
43809   need_lib_prefix=no
43810   need_version=no
43811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
43812   soname_spec='${libname}${release}${shared_ext}$major'
43813   shlibpath_var=LD_LIBRARY_PATH
43814   ;;
43815
43816 freebsd1*)
43817   dynamic_linker=no
43818   ;;
43819
43820 kfreebsd*-gnu)
43821   version_type=linux
43822   need_lib_prefix=no
43823   need_version=no
43824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
43825   soname_spec='${libname}${release}${shared_ext}$major'
43826   shlibpath_var=LD_LIBRARY_PATH
43827   shlibpath_overrides_runpath=no
43828   hardcode_into_libs=yes
43829   dynamic_linker='GNU ld.so'
43830   ;;
43831
43832 freebsd* | dragonfly*)
43833   # DragonFly does not have aout.  When/if they implement a new
43834   # versioning mechanism, adjust this.
43835   if test -x /usr/bin/objformat; then
43836     objformat=`/usr/bin/objformat`
43837   else
43838     case $host_os in
43839     freebsd[123]*) objformat=aout ;;
43840     *) objformat=elf ;;
43841     esac
43842   fi
43843   version_type=freebsd-$objformat
43844   case $version_type in
43845     freebsd-elf*)
43846       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
43847       need_version=no
43848       need_lib_prefix=no
43849       ;;
43850     freebsd-*)
43851       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
43852       need_version=yes
43853       ;;
43854   esac
43855   shlibpath_var=LD_LIBRARY_PATH
43856   case $host_os in
43857   freebsd2*)
43858     shlibpath_overrides_runpath=yes
43859     ;;
43860   freebsd3.[01]* | freebsdelf3.[01]*)
43861     shlibpath_overrides_runpath=yes
43862     hardcode_into_libs=yes
43863     ;;
43864   *) # from 3.2 on
43865     shlibpath_overrides_runpath=no
43866     hardcode_into_libs=yes
43867     ;;
43868   esac
43869   ;;
43870
43871 gnu*)
43872   version_type=linux
43873   need_lib_prefix=no
43874   need_version=no
43875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
43876   soname_spec='${libname}${release}${shared_ext}$major'
43877   shlibpath_var=LD_LIBRARY_PATH
43878   hardcode_into_libs=yes
43879   ;;
43880
43881 hpux9* | hpux10* | hpux11*)
43882   # Give a soname corresponding to the major version so that dld.sl refuses to
43883   # link against other versions.
43884   version_type=sunos
43885   need_lib_prefix=no
43886   need_version=no
43887   case $host_cpu in
43888   ia64*)
43889     shrext_cmds='.so'
43890     hardcode_into_libs=yes
43891     dynamic_linker="$host_os dld.so"
43892     shlibpath_var=LD_LIBRARY_PATH
43893     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
43894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43895     soname_spec='${libname}${release}${shared_ext}$major'
43896     if test "X$HPUX_IA64_MODE" = X32; then
43897       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
43898     else
43899       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
43900     fi
43901     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
43902     ;;
43903    hppa*64*)
43904      shrext_cmds='.sl'
43905      hardcode_into_libs=yes
43906      dynamic_linker="$host_os dld.sl"
43907      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
43908      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
43909      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43910      soname_spec='${libname}${release}${shared_ext}$major'
43911      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
43912      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
43913      ;;
43914    *)
43915     shrext_cmds='.sl'
43916     dynamic_linker="$host_os dld.sl"
43917     shlibpath_var=SHLIB_PATH
43918     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
43919     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43920     soname_spec='${libname}${release}${shared_ext}$major'
43921     ;;
43922   esac
43923   # HP-UX runs *really* slowly unless shared libraries are mode 555.
43924   postinstall_cmds='chmod 555 $lib'
43925   ;;
43926
43927 irix5* | irix6* | nonstopux*)
43928   case $host_os in
43929     nonstopux*) version_type=nonstopux ;;
43930     *)
43931         if test "$lt_cv_prog_gnu_ld" = yes; then
43932                 version_type=linux
43933         else
43934                 version_type=irix
43935         fi ;;
43936   esac
43937   need_lib_prefix=no
43938   need_version=no
43939   soname_spec='${libname}${release}${shared_ext}$major'
43940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
43941   case $host_os in
43942   irix5* | nonstopux*)
43943     libsuff= shlibsuff=
43944     ;;
43945   *)
43946     case $LD in # libtool.m4 will add one of these switches to LD
43947     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
43948       libsuff= shlibsuff= libmagic=32-bit;;
43949     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
43950       libsuff=32 shlibsuff=N32 libmagic=N32;;
43951     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
43952       libsuff=64 shlibsuff=64 libmagic=64-bit;;
43953     *) libsuff= shlibsuff= libmagic=never-match;;
43954     esac
43955     ;;
43956   esac
43957   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
43958   shlibpath_overrides_runpath=no
43959   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
43960   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
43961   hardcode_into_libs=yes
43962   ;;
43963
43964 # No shared lib support for Linux oldld, aout, or coff.
43965 linux*oldld* | linux*aout* | linux*coff*)
43966   dynamic_linker=no
43967   ;;
43968
43969 # This must be Linux ELF.
43970 linux*)
43971   version_type=linux
43972   need_lib_prefix=no
43973   need_version=no
43974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43975   soname_spec='${libname}${release}${shared_ext}$major'
43976   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
43977   shlibpath_var=LD_LIBRARY_PATH
43978   shlibpath_overrides_runpath=no
43979   # This implies no fast_install, which is unacceptable.
43980   # Some rework will be needed to allow for fast_install
43981   # before this can be enabled.
43982   hardcode_into_libs=yes
43983
43984   # Append ld.so.conf contents to the search path
43985   if test -f /etc/ld.so.conf; then
43986     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
43987     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
43988   fi
43989
43990   # We used to test for /lib/ld.so.1 and disable shared libraries on
43991   # powerpc, because MkLinux only supported shared libraries with the
43992   # GNU dynamic linker.  Since this was broken with cross compilers,
43993   # most powerpc-linux boxes support dynamic linking these days and
43994   # people can always --disable-shared, the test was removed, and we
43995   # assume the GNU/Linux dynamic linker is in use.
43996   dynamic_linker='GNU/Linux ld.so'
43997   ;;
43998
43999 knetbsd*-gnu)
44000   version_type=linux
44001   need_lib_prefix=no
44002   need_version=no
44003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
44004   soname_spec='${libname}${release}${shared_ext}$major'
44005   shlibpath_var=LD_LIBRARY_PATH
44006   shlibpath_overrides_runpath=no
44007   hardcode_into_libs=yes
44008   dynamic_linker='GNU ld.so'
44009   ;;
44010
44011 netbsd*)
44012   version_type=sunos
44013   need_lib_prefix=no
44014   need_version=no
44015   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
44016     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
44017     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
44018     dynamic_linker='NetBSD (a.out) ld.so'
44019   else
44020     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
44021     soname_spec='${libname}${release}${shared_ext}$major'
44022     dynamic_linker='NetBSD ld.elf_so'
44023   fi
44024   shlibpath_var=LD_LIBRARY_PATH
44025   shlibpath_overrides_runpath=yes
44026   hardcode_into_libs=yes
44027   ;;
44028
44029 newsos6)
44030   version_type=linux
44031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44032   shlibpath_var=LD_LIBRARY_PATH
44033   shlibpath_overrides_runpath=yes
44034   ;;
44035
44036 nto-qnx*)
44037   version_type=linux
44038   need_lib_prefix=no
44039   need_version=no
44040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44041   soname_spec='${libname}${release}${shared_ext}$major'
44042   shlibpath_var=LD_LIBRARY_PATH
44043   shlibpath_overrides_runpath=yes
44044   ;;
44045
44046 openbsd*)
44047   version_type=sunos
44048   need_lib_prefix=no
44049   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
44050   case $host_os in
44051     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
44052     *)                         need_version=no  ;;
44053   esac
44054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
44055   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
44056   shlibpath_var=LD_LIBRARY_PATH
44057   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
44058     case $host_os in
44059       openbsd2.[89] | openbsd2.[89].*)
44060         shlibpath_overrides_runpath=no
44061         ;;
44062       *)
44063         shlibpath_overrides_runpath=yes
44064         ;;
44065       esac
44066   else
44067     shlibpath_overrides_runpath=yes
44068   fi
44069   ;;
44070
44071 os2*)
44072   libname_spec='$name'
44073   shrext_cmds=".dll"
44074   need_lib_prefix=no
44075   library_names_spec='$libname${shared_ext} $libname.a'
44076   dynamic_linker='OS/2 ld.exe'
44077   shlibpath_var=LIBPATH
44078   ;;
44079
44080 osf3* | osf4* | osf5*)
44081   version_type=osf
44082   need_lib_prefix=no
44083   need_version=no
44084   soname_spec='${libname}${release}${shared_ext}$major'
44085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44086   shlibpath_var=LD_LIBRARY_PATH
44087   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
44088   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
44089   ;;
44090
44091 sco3.2v5*)
44092   version_type=osf
44093   soname_spec='${libname}${release}${shared_ext}$major'
44094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44095   shlibpath_var=LD_LIBRARY_PATH
44096   ;;
44097
44098 solaris*)
44099   version_type=linux
44100   need_lib_prefix=no
44101   need_version=no
44102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44103   soname_spec='${libname}${release}${shared_ext}$major'
44104   shlibpath_var=LD_LIBRARY_PATH
44105   shlibpath_overrides_runpath=yes
44106   hardcode_into_libs=yes
44107   # ldd complains unless libraries are executable
44108   postinstall_cmds='chmod +x $lib'
44109   ;;
44110
44111 sunos4*)
44112   version_type=sunos
44113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
44114   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
44115   shlibpath_var=LD_LIBRARY_PATH
44116   shlibpath_overrides_runpath=yes
44117   if test "$with_gnu_ld" = yes; then
44118     need_lib_prefix=no
44119   fi
44120   need_version=yes
44121   ;;
44122
44123 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
44124   version_type=linux
44125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44126   soname_spec='${libname}${release}${shared_ext}$major'
44127   shlibpath_var=LD_LIBRARY_PATH
44128   case $host_vendor in
44129     sni)
44130       shlibpath_overrides_runpath=no
44131       need_lib_prefix=no
44132       export_dynamic_flag_spec='${wl}-Blargedynsym'
44133       runpath_var=LD_RUN_PATH
44134       ;;
44135     siemens)
44136       need_lib_prefix=no
44137       ;;
44138     motorola)
44139       need_lib_prefix=no
44140       need_version=no
44141       shlibpath_overrides_runpath=no
44142       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
44143       ;;
44144   esac
44145   ;;
44146
44147 sysv4*MP*)
44148   if test -d /usr/nec ;then
44149     version_type=linux
44150     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
44151     soname_spec='$libname${shared_ext}.$major'
44152     shlibpath_var=LD_LIBRARY_PATH
44153   fi
44154   ;;
44155
44156 uts4*)
44157   version_type=linux
44158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44159   soname_spec='${libname}${release}${shared_ext}$major'
44160   shlibpath_var=LD_LIBRARY_PATH
44161   ;;
44162
44163 *)
44164   dynamic_linker=no
44165   ;;
44166 esac
44167 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
44168 echo "${ECHO_T}$dynamic_linker" >&6; }
44169 test "$dynamic_linker" = no && can_build_shared=no
44170
44171 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
44172 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
44173 hardcode_action_F77=
44174 if test -n "$hardcode_libdir_flag_spec_F77" || \
44175    test -n "$runpath_var_F77" || \
44176    test "X$hardcode_automatic_F77" = "Xyes" ; then
44177
44178   # We can hardcode non-existant directories.
44179   if test "$hardcode_direct_F77" != no &&
44180      # If the only mechanism to avoid hardcoding is shlibpath_var, we
44181      # have to relink, otherwise we might link with an installed library
44182      # when we should be linking with a yet-to-be-installed one
44183      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
44184      test "$hardcode_minus_L_F77" != no; then
44185     # Linking always hardcodes the temporary library directory.
44186     hardcode_action_F77=relink
44187   else
44188     # We can link without hardcoding, and we can hardcode nonexisting dirs.
44189     hardcode_action_F77=immediate
44190   fi
44191 else
44192   # We cannot hardcode anything, or else we can only hardcode existing
44193   # directories.
44194   hardcode_action_F77=unsupported
44195 fi
44196 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
44197 echo "${ECHO_T}$hardcode_action_F77" >&6; }
44198
44199 if test "$hardcode_action_F77" = relink; then
44200   # Fast installation is not supported
44201   enable_fast_install=no
44202 elif test "$shlibpath_overrides_runpath" = yes ||
44203      test "$enable_shared" = no; then
44204   # Fast installation is not necessary
44205   enable_fast_install=needless
44206 fi
44207
44208 striplib=
44209 old_striplib=
44210 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
44211 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
44212 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
44213   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
44214   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
44215   { echo "$as_me:$LINENO: result: yes" >&5
44216 echo "${ECHO_T}yes" >&6; }
44217 else
44218 # FIXME - insert some real tests, host_os isn't really good enough
44219   case $host_os in
44220    darwin*)
44221        if test -n "$STRIP" ; then
44222          striplib="$STRIP -x"
44223          { echo "$as_me:$LINENO: result: yes" >&5
44224 echo "${ECHO_T}yes" >&6; }
44225        else
44226   { echo "$as_me:$LINENO: result: no" >&5
44227 echo "${ECHO_T}no" >&6; }
44228 fi
44229        ;;
44230    *)
44231   { echo "$as_me:$LINENO: result: no" >&5
44232 echo "${ECHO_T}no" >&6; }
44233     ;;
44234   esac
44235 fi
44236
44237
44238
44239 # The else clause should only fire when bootstrapping the
44240 # libtool distribution, otherwise you forgot to ship ltmain.sh
44241 # with your package, and you will get complaints that there are
44242 # no rules to generate ltmain.sh.
44243 if test -f "$ltmain"; then
44244   # See if we are running on zsh, and set the options which allow our commands through
44245   # without removal of \ escapes.
44246   if test -n "${ZSH_VERSION+set}" ; then
44247     setopt NO_GLOB_SUBST
44248   fi
44249   # Now quote all the things that may contain metacharacters while being
44250   # careful not to overquote the AC_SUBSTed values.  We take copies of the
44251   # variables and quote the copies for generation of the libtool script.
44252   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
44253     SED SHELL STRIP \
44254     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
44255     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
44256     deplibs_check_method reload_flag reload_cmds need_locks \
44257     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
44258     lt_cv_sys_global_symbol_to_c_name_address \
44259     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
44260     old_postinstall_cmds old_postuninstall_cmds \
44261     compiler_F77 \
44262     CC_F77 \
44263     LD_F77 \
44264     lt_prog_compiler_wl_F77 \
44265     lt_prog_compiler_pic_F77 \
44266     lt_prog_compiler_static_F77 \
44267     lt_prog_compiler_no_builtin_flag_F77 \
44268     export_dynamic_flag_spec_F77 \
44269     thread_safe_flag_spec_F77 \
44270     whole_archive_flag_spec_F77 \
44271     enable_shared_with_static_runtimes_F77 \
44272     old_archive_cmds_F77 \
44273     old_archive_from_new_cmds_F77 \
44274     predep_objects_F77 \
44275     postdep_objects_F77 \
44276     predeps_F77 \
44277     postdeps_F77 \
44278     compiler_lib_search_path_F77 \
44279     archive_cmds_F77 \
44280     archive_expsym_cmds_F77 \
44281     postinstall_cmds_F77 \
44282     postuninstall_cmds_F77 \
44283     old_archive_from_expsyms_cmds_F77 \
44284     allow_undefined_flag_F77 \
44285     no_undefined_flag_F77 \
44286     export_symbols_cmds_F77 \
44287     hardcode_libdir_flag_spec_F77 \
44288     hardcode_libdir_flag_spec_ld_F77 \
44289     hardcode_libdir_separator_F77 \
44290     hardcode_automatic_F77 \
44291     module_cmds_F77 \
44292     module_expsym_cmds_F77 \
44293     lt_cv_prog_compiler_c_o_F77 \
44294     exclude_expsyms_F77 \
44295     include_expsyms_F77; do
44296
44297     case $var in
44298     old_archive_cmds_F77 | \
44299     old_archive_from_new_cmds_F77 | \
44300     archive_cmds_F77 | \
44301     archive_expsym_cmds_F77 | \
44302     module_cmds_F77 | \
44303     module_expsym_cmds_F77 | \
44304     old_archive_from_expsyms_cmds_F77 | \
44305     export_symbols_cmds_F77 | \
44306     extract_expsyms_cmds | reload_cmds | finish_cmds | \
44307     postinstall_cmds | postuninstall_cmds | \
44308     old_postinstall_cmds | old_postuninstall_cmds | \
44309     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
44310       # Double-quote double-evaled strings.
44311       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
44312       ;;
44313     *)
44314       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
44315       ;;
44316     esac
44317   done
44318
44319   case $lt_echo in
44320   *'\$0 --fallback-echo"')
44321     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
44322     ;;
44323   esac
44324
44325 cfgfile="$ofile"
44326
44327   cat <<__EOF__ >> "$cfgfile"
44328 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
44329
44330 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
44331
44332 # Shell to use when invoking shell scripts.
44333 SHELL=$lt_SHELL
44334
44335 # Whether or not to build shared libraries.
44336 build_libtool_libs=$enable_shared
44337
44338 # Whether or not to build static libraries.
44339 build_old_libs=$enable_static
44340
44341 # Whether or not to add -lc for building shared libraries.
44342 build_libtool_need_lc=$archive_cmds_need_lc_F77
44343
44344 # Whether or not to disallow shared libs when runtime libs are static
44345 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
44346
44347 # Whether or not to optimize for fast installation.
44348 fast_install=$enable_fast_install
44349
44350 # The host system.
44351 host_alias=$host_alias
44352 host=$host
44353 host_os=$host_os
44354
44355 # The build system.
44356 build_alias=$build_alias
44357 build=$build
44358 build_os=$build_os
44359
44360 # An echo program that does not interpret backslashes.
44361 echo=$lt_echo
44362
44363 # The archiver.
44364 AR=$lt_AR
44365 AR_FLAGS=$lt_AR_FLAGS
44366
44367 # A C compiler.
44368 LTCC=$lt_LTCC
44369
44370 # A language-specific compiler.
44371 CC=$lt_compiler_F77
44372
44373 # Is the compiler the GNU C compiler?
44374 with_gcc=$GCC_F77
44375
44376 # An ERE matcher.
44377 EGREP=$lt_EGREP
44378
44379 # The linker used to build libraries.
44380 LD=$lt_LD_F77
44381
44382 # Whether we need hard or soft links.
44383 LN_S=$lt_LN_S
44384
44385 # A BSD-compatible nm program.
44386 NM=$lt_NM
44387
44388 # A symbol stripping program
44389 STRIP=$lt_STRIP
44390
44391 # Used to examine libraries when file_magic_cmd begins "file"
44392 MAGIC_CMD=$MAGIC_CMD
44393
44394 # Used on cygwin: DLL creation program.
44395 DLLTOOL="$DLLTOOL"
44396
44397 # Used on cygwin: object dumper.
44398 OBJDUMP="$OBJDUMP"
44399
44400 # Used on cygwin: assembler.
44401 AS="$AS"
44402
44403 # The name of the directory that contains temporary libtool files.
44404 objdir=$objdir
44405
44406 # How to create reloadable object files.
44407 reload_flag=$lt_reload_flag
44408 reload_cmds=$lt_reload_cmds
44409
44410 # How to pass a linker flag through the compiler.
44411 wl=$lt_lt_prog_compiler_wl_F77
44412
44413 # Object file suffix (normally "o").
44414 objext="$ac_objext"
44415
44416 # Old archive suffix (normally "a").
44417 libext="$libext"
44418
44419 # Shared library suffix (normally ".so").
44420 shrext_cmds='$shrext_cmds'
44421
44422 # Executable file suffix (normally "").
44423 exeext="$exeext"
44424
44425 # Additional compiler flags for building library objects.
44426 pic_flag=$lt_lt_prog_compiler_pic_F77
44427 pic_mode=$pic_mode
44428
44429 # What is the maximum length of a command?
44430 max_cmd_len=$lt_cv_sys_max_cmd_len
44431
44432 # Does compiler simultaneously support -c and -o options?
44433 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
44434
44435 # Must we lock files when doing compilation?
44436 need_locks=$lt_need_locks
44437
44438 # Do we need the lib prefix for modules?
44439 need_lib_prefix=$need_lib_prefix
44440
44441 # Do we need a version for libraries?
44442 need_version=$need_version
44443
44444 # Whether dlopen is supported.
44445 dlopen_support=$enable_dlopen
44446
44447 # Whether dlopen of programs is supported.
44448 dlopen_self=$enable_dlopen_self
44449
44450 # Whether dlopen of statically linked programs is supported.
44451 dlopen_self_static=$enable_dlopen_self_static
44452
44453 # Compiler flag to prevent dynamic linking.
44454 link_static_flag=$lt_lt_prog_compiler_static_F77
44455
44456 # Compiler flag to turn off builtin functions.
44457 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
44458
44459 # Compiler flag to allow reflexive dlopens.
44460 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
44461
44462 # Compiler flag to generate shared objects directly from archives.
44463 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
44464
44465 # Compiler flag to generate thread-safe objects.
44466 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
44467
44468 # Library versioning type.
44469 version_type=$version_type
44470
44471 # Format of library name prefix.
44472 libname_spec=$lt_libname_spec
44473
44474 # List of archive names.  First name is the real one, the rest are links.
44475 # The last name is the one that the linker finds with -lNAME.
44476 library_names_spec=$lt_library_names_spec
44477
44478 # The coded name of the library, if different from the real name.
44479 soname_spec=$lt_soname_spec
44480
44481 # Commands used to build and install an old-style archive.
44482 RANLIB=$lt_RANLIB
44483 old_archive_cmds=$lt_old_archive_cmds_F77
44484 old_postinstall_cmds=$lt_old_postinstall_cmds
44485 old_postuninstall_cmds=$lt_old_postuninstall_cmds
44486
44487 # Create an old-style archive from a shared archive.
44488 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
44489
44490 # Create a temporary old-style archive to link instead of a shared archive.
44491 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
44492
44493 # Commands used to build and install a shared archive.
44494 archive_cmds=$lt_archive_cmds_F77
44495 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
44496 postinstall_cmds=$lt_postinstall_cmds
44497 postuninstall_cmds=$lt_postuninstall_cmds
44498
44499 # Commands used to build a loadable module (assumed same as above if empty)
44500 module_cmds=$lt_module_cmds_F77
44501 module_expsym_cmds=$lt_module_expsym_cmds_F77
44502
44503 # Commands to strip libraries.
44504 old_striplib=$lt_old_striplib
44505 striplib=$lt_striplib
44506
44507 # Dependencies to place before the objects being linked to create a
44508 # shared library.
44509 predep_objects=$lt_predep_objects_F77
44510
44511 # Dependencies to place after the objects being linked to create a
44512 # shared library.
44513 postdep_objects=$lt_postdep_objects_F77
44514
44515 # Dependencies to place before the objects being linked to create a
44516 # shared library.
44517 predeps=$lt_predeps_F77
44518
44519 # Dependencies to place after the objects being linked to create a
44520 # shared library.
44521 postdeps=$lt_postdeps_F77
44522
44523 # The library search path used internally by the compiler when linking
44524 # a shared library.
44525 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
44526
44527 # Method to check whether dependent libraries are shared objects.
44528 deplibs_check_method=$lt_deplibs_check_method
44529
44530 # Command to use when deplibs_check_method == file_magic.
44531 file_magic_cmd=$lt_file_magic_cmd
44532
44533 # Flag that allows shared libraries with undefined symbols to be built.
44534 allow_undefined_flag=$lt_allow_undefined_flag_F77
44535
44536 # Flag that forces no undefined symbols.
44537 no_undefined_flag=$lt_no_undefined_flag_F77
44538
44539 # Commands used to finish a libtool library installation in a directory.
44540 finish_cmds=$lt_finish_cmds
44541
44542 # Same as above, but a single script fragment to be evaled but not shown.
44543 finish_eval=$lt_finish_eval
44544
44545 # Take the output of nm and produce a listing of raw symbols and C names.
44546 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
44547
44548 # Transform the output of nm in a proper C declaration
44549 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
44550
44551 # Transform the output of nm in a C name address pair
44552 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
44553
44554 # This is the shared library runtime path variable.
44555 runpath_var=$runpath_var
44556
44557 # This is the shared library path variable.
44558 shlibpath_var=$shlibpath_var
44559
44560 # Is shlibpath searched before the hard-coded library search path?
44561 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
44562
44563 # How to hardcode a shared library path into an executable.
44564 hardcode_action=$hardcode_action_F77
44565
44566 # Whether we should hardcode library paths into libraries.
44567 hardcode_into_libs=$hardcode_into_libs
44568
44569 # Flag to hardcode \$libdir into a binary during linking.
44570 # This must work even if \$libdir does not exist.
44571 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
44572
44573 # If ld is used when linking, flag to hardcode \$libdir into
44574 # a binary during linking. This must work even if \$libdir does
44575 # not exist.
44576 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
44577
44578 # Whether we need a single -rpath flag with a separated argument.
44579 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
44580
44581 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
44582 # resulting binary.
44583 hardcode_direct=$hardcode_direct_F77
44584
44585 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
44586 # resulting binary.
44587 hardcode_minus_L=$hardcode_minus_L_F77
44588
44589 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
44590 # the resulting binary.
44591 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
44592
44593 # Set to yes if building a shared library automatically hardcodes DIR into the library
44594 # and all subsequent libraries and executables linked against it.
44595 hardcode_automatic=$hardcode_automatic_F77
44596
44597 # Variables whose values should be saved in libtool wrapper scripts and
44598 # restored at relink time.
44599 variables_saved_for_relink="$variables_saved_for_relink"
44600
44601 # Whether libtool must link a program against all its dependency libraries.
44602 link_all_deplibs=$link_all_deplibs_F77
44603
44604 # Compile-time system search path for libraries
44605 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
44606
44607 # Run-time system search path for libraries
44608 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
44609
44610 # Fix the shell variable \$srcfile for the compiler.
44611 fix_srcfile_path="$fix_srcfile_path_F77"
44612
44613 # Set to yes if exported symbols are required.
44614 always_export_symbols=$always_export_symbols_F77
44615
44616 # The commands to list exported symbols.
44617 export_symbols_cmds=$lt_export_symbols_cmds_F77
44618
44619 # The commands to extract the exported symbol list from a shared archive.
44620 extract_expsyms_cmds=$lt_extract_expsyms_cmds
44621
44622 # Symbols that should not be listed in the preloaded symbols.
44623 exclude_expsyms=$lt_exclude_expsyms_F77
44624
44625 # Symbols that must always be exported.
44626 include_expsyms=$lt_include_expsyms_F77
44627
44628 # ### END LIBTOOL TAG CONFIG: $tagname
44629
44630 __EOF__
44631
44632
44633 else
44634   # If there is no Makefile yet, we rely on a make rule to execute
44635   # `config.status --recheck' to rerun these tests and create the
44636   # libtool script then.
44637   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
44638   if test -f "$ltmain_in"; then
44639     test -f Makefile && make "$ltmain"
44640   fi
44641 fi
44642
44643
44644 ac_ext=c
44645 ac_cpp='$CPP $CPPFLAGS'
44646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44649
44650 CC="$lt_save_CC"
44651
44652         else
44653           tagname=""
44654         fi
44655         ;;
44656
44657       GCJ)
44658         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
44659
44660
44661 # Source file extension for Java test sources.
44662 ac_ext=java
44663
44664 # Object file extension for compiled Java test sources.
44665 objext=o
44666 objext_GCJ=$objext
44667
44668 # Code to be used in simple compile tests
44669 lt_simple_compile_test_code="class foo {}\n"
44670
44671 # Code to be used in simple link tests
44672 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
44673
44674 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
44675
44676 # If no C compiler was specified, use CC.
44677 LTCC=${LTCC-"$CC"}
44678
44679 # Allow CC to be a program name with arguments.
44680 compiler=$CC
44681
44682
44683 # save warnings/boilerplate of simple test code
44684 ac_outfile=conftest.$ac_objext
44685 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
44686 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
44687 _lt_compiler_boilerplate=`cat conftest.err`
44688 $rm conftest*
44689
44690 ac_outfile=conftest.$ac_objext
44691 printf "$lt_simple_link_test_code" >conftest.$ac_ext
44692 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
44693 _lt_linker_boilerplate=`cat conftest.err`
44694 $rm conftest*
44695
44696
44697 # Allow CC to be a program name with arguments.
44698 lt_save_CC="$CC"
44699 CC=${GCJ-"gcj"}
44700 compiler=$CC
44701 compiler_GCJ=$CC
44702 for cc_temp in $compiler""; do
44703   case $cc_temp in
44704     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
44705     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
44706     \-*) ;;
44707     *) break;;
44708   esac
44709 done
44710 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
44711
44712
44713 # GCJ did not exist at the time GCC didn't implicitly link libc in.
44714 archive_cmds_need_lc_GCJ=no
44715
44716 old_archive_cmds_GCJ=$old_archive_cmds
44717
44718 ## CAVEAT EMPTOR:
44719 ## There is no encapsulation within the following macros, do not change
44720 ## the running order or otherwise move them around unless you know exactly
44721 ## what you are doing...
44722
44723 lt_prog_compiler_no_builtin_flag_GCJ=
44724
44725 if test "$GCC" = yes; then
44726   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
44727
44728
44729 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
44730 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
44731 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
44732   echo $ECHO_N "(cached) $ECHO_C" >&6
44733 else
44734   lt_cv_prog_compiler_rtti_exceptions=no
44735   ac_outfile=conftest.$ac_objext
44736    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
44737    lt_compiler_flag="-fno-rtti -fno-exceptions"
44738    # Insert the option either (1) after the last *FLAGS variable, or
44739    # (2) before a word containing "conftest.", or (3) at the end.
44740    # Note that $ac_compile itself does not contain backslashes and begins
44741    # with a dollar sign (not a hyphen), so the echo should work correctly.
44742    # The option is referenced via a variable to avoid confusing sed.
44743    lt_compile=`echo "$ac_compile" | $SED \
44744    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
44745    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
44746    -e 's:$: $lt_compiler_flag:'`
44747    (eval echo "\"\$as_me:44747: $lt_compile\"" >&5)
44748    (eval "$lt_compile" 2>conftest.err)
44749    ac_status=$?
44750    cat conftest.err >&5
44751    echo "$as_me:44751: \$? = $ac_status" >&5
44752    if (exit $ac_status) && test -s "$ac_outfile"; then
44753      # The compiler can only warn and ignore the option if not recognized
44754      # So say no if there are warnings other than the usual output.
44755      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
44756      $SED '/^$/d' conftest.err >conftest.er2
44757      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
44758        lt_cv_prog_compiler_rtti_exceptions=yes
44759      fi
44760    fi
44761    $rm conftest*
44762
44763 fi
44764 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
44765 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
44766
44767 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
44768     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
44769 else
44770     :
44771 fi
44772
44773 fi
44774
44775 lt_prog_compiler_wl_GCJ=
44776 lt_prog_compiler_pic_GCJ=
44777 lt_prog_compiler_static_GCJ=
44778
44779 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
44780 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
44781
44782   if test "$GCC" = yes; then
44783     lt_prog_compiler_wl_GCJ='-Wl,'
44784     lt_prog_compiler_static_GCJ='-static'
44785
44786     case $host_os in
44787       aix*)
44788       # All AIX code is PIC.
44789       if test "$host_cpu" = ia64; then
44790         # AIX 5 now supports IA64 processor
44791         lt_prog_compiler_static_GCJ='-Bstatic'
44792       fi
44793       ;;
44794
44795     amigaos*)
44796       # FIXME: we need at least 68020 code to build shared libraries, but
44797       # adding the `-m68020' flag to GCC prevents building anything better,
44798       # like `-m68040'.
44799       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
44800       ;;
44801
44802     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
44803       # PIC is the default for these OSes.
44804       ;;
44805
44806     mingw* | pw32* | os2*)
44807       # This hack is so that the source file can tell whether it is being
44808       # built for inclusion in a dll (and should export symbols for example).
44809       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
44810       ;;
44811
44812     darwin* | rhapsody*)
44813       # PIC is the default on this platform
44814       # Common symbols not allowed in MH_DYLIB files
44815       lt_prog_compiler_pic_GCJ='-fno-common'
44816       ;;
44817
44818     msdosdjgpp*)
44819       # Just because we use GCC doesn't mean we suddenly get shared libraries
44820       # on systems that don't support them.
44821       lt_prog_compiler_can_build_shared_GCJ=no
44822       enable_shared=no
44823       ;;
44824
44825     sysv4*MP*)
44826       if test -d /usr/nec; then
44827         lt_prog_compiler_pic_GCJ=-Kconform_pic
44828       fi
44829       ;;
44830
44831     hpux*)
44832       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
44833       # not for PA HP-UX.
44834       case $host_cpu in
44835       hppa*64*|ia64*)
44836         # +Z the default
44837         ;;
44838       *)
44839         lt_prog_compiler_pic_GCJ='-fPIC'
44840         ;;
44841       esac
44842       ;;
44843
44844     *)
44845       lt_prog_compiler_pic_GCJ='-fPIC'
44846       ;;
44847     esac
44848   else
44849     # PORTME Check for flag to pass linker flags through the system compiler.
44850     case $host_os in
44851     aix*)
44852       lt_prog_compiler_wl_GCJ='-Wl,'
44853       if test "$host_cpu" = ia64; then
44854         # AIX 5 now supports IA64 processor
44855         lt_prog_compiler_static_GCJ='-Bstatic'
44856       else
44857         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
44858       fi
44859       ;;
44860       darwin*)
44861         # PIC is the default on this platform
44862         # Common symbols not allowed in MH_DYLIB files
44863        case $cc_basename in
44864          xlc*)
44865          lt_prog_compiler_pic_GCJ='-qnocommon'
44866          lt_prog_compiler_wl_GCJ='-Wl,'
44867          ;;
44868        esac
44869        ;;
44870
44871     mingw* | pw32* | os2*)
44872       # This hack is so that the source file can tell whether it is being
44873       # built for inclusion in a dll (and should export symbols for example).
44874       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
44875       ;;
44876
44877     hpux9* | hpux10* | hpux11*)
44878       lt_prog_compiler_wl_GCJ='-Wl,'
44879       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
44880       # not for PA HP-UX.
44881       case $host_cpu in
44882       hppa*64*|ia64*)
44883         # +Z the default
44884         ;;
44885       *)
44886         lt_prog_compiler_pic_GCJ='+Z'
44887         ;;
44888       esac
44889       # Is there a better lt_prog_compiler_static that works with the bundled CC?
44890       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
44891       ;;
44892
44893     irix5* | irix6* | nonstopux*)
44894       lt_prog_compiler_wl_GCJ='-Wl,'
44895       # PIC (with -KPIC) is the default.
44896       lt_prog_compiler_static_GCJ='-non_shared'
44897       ;;
44898
44899     newsos6)
44900       lt_prog_compiler_pic_GCJ='-KPIC'
44901       lt_prog_compiler_static_GCJ='-Bstatic'
44902       ;;
44903
44904     linux*)
44905       case $cc_basename in
44906       icc* | ecc*)
44907         lt_prog_compiler_wl_GCJ='-Wl,'
44908         lt_prog_compiler_pic_GCJ='-KPIC'
44909         lt_prog_compiler_static_GCJ='-static'
44910         ;;
44911       pgcc* | pgf77* | pgf90* | pgf95*)
44912         # Portland Group compilers (*not* the Pentium gcc compiler,
44913         # which looks to be a dead project)
44914         lt_prog_compiler_wl_GCJ='-Wl,'
44915         lt_prog_compiler_pic_GCJ='-fpic'
44916         lt_prog_compiler_static_GCJ='-Bstatic'
44917         ;;
44918       ccc*)
44919         lt_prog_compiler_wl_GCJ='-Wl,'
44920         # All Alpha code is PIC.
44921         lt_prog_compiler_static_GCJ='-non_shared'
44922         ;;
44923       esac
44924       ;;
44925
44926     osf3* | osf4* | osf5*)
44927       lt_prog_compiler_wl_GCJ='-Wl,'
44928       # All OSF/1 code is PIC.
44929       lt_prog_compiler_static_GCJ='-non_shared'
44930       ;;
44931
44932     sco3.2v5*)
44933       lt_prog_compiler_pic_GCJ='-Kpic'
44934       lt_prog_compiler_static_GCJ='-dn'
44935       ;;
44936
44937     solaris*)
44938       lt_prog_compiler_pic_GCJ='-KPIC'
44939       lt_prog_compiler_static_GCJ='-Bstatic'
44940       case $cc_basename in
44941       f77* | f90* | f95*)
44942         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
44943       *)
44944         lt_prog_compiler_wl_GCJ='-Wl,';;
44945       esac
44946       ;;
44947
44948     sunos4*)
44949       lt_prog_compiler_wl_GCJ='-Qoption ld '
44950       lt_prog_compiler_pic_GCJ='-PIC'
44951       lt_prog_compiler_static_GCJ='-Bstatic'
44952       ;;
44953
44954     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
44955       lt_prog_compiler_wl_GCJ='-Wl,'
44956       lt_prog_compiler_pic_GCJ='-KPIC'
44957       lt_prog_compiler_static_GCJ='-Bstatic'
44958       ;;
44959
44960     sysv4*MP*)
44961       if test -d /usr/nec ;then
44962         lt_prog_compiler_pic_GCJ='-Kconform_pic'
44963         lt_prog_compiler_static_GCJ='-Bstatic'
44964       fi
44965       ;;
44966
44967     unicos*)
44968       lt_prog_compiler_wl_GCJ='-Wl,'
44969       lt_prog_compiler_can_build_shared_GCJ=no
44970       ;;
44971
44972     uts4*)
44973       lt_prog_compiler_pic_GCJ='-pic'
44974       lt_prog_compiler_static_GCJ='-Bstatic'
44975       ;;
44976
44977     *)
44978       lt_prog_compiler_can_build_shared_GCJ=no
44979       ;;
44980     esac
44981   fi
44982
44983 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
44984 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
44985
44986 #
44987 # Check to make sure the PIC flag actually works.
44988 #
44989 if test -n "$lt_prog_compiler_pic_GCJ"; then
44990
44991 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
44992 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
44993 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
44994   echo $ECHO_N "(cached) $ECHO_C" >&6
44995 else
44996   lt_prog_compiler_pic_works_GCJ=no
44997   ac_outfile=conftest.$ac_objext
44998    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
44999    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
45000    # Insert the option either (1) after the last *FLAGS variable, or
45001    # (2) before a word containing "conftest.", or (3) at the end.
45002    # Note that $ac_compile itself does not contain backslashes and begins
45003    # with a dollar sign (not a hyphen), so the echo should work correctly.
45004    # The option is referenced via a variable to avoid confusing sed.
45005    lt_compile=`echo "$ac_compile" | $SED \
45006    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
45007    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
45008    -e 's:$: $lt_compiler_flag:'`
45009    (eval echo "\"\$as_me:45009: $lt_compile\"" >&5)
45010    (eval "$lt_compile" 2>conftest.err)
45011    ac_status=$?
45012    cat conftest.err >&5
45013    echo "$as_me:45013: \$? = $ac_status" >&5
45014    if (exit $ac_status) && test -s "$ac_outfile"; then
45015      # The compiler can only warn and ignore the option if not recognized
45016      # So say no if there are warnings other than the usual output.
45017      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
45018      $SED '/^$/d' conftest.err >conftest.er2
45019      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
45020        lt_prog_compiler_pic_works_GCJ=yes
45021      fi
45022    fi
45023    $rm conftest*
45024
45025 fi
45026 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
45027 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
45028
45029 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
45030     case $lt_prog_compiler_pic_GCJ in
45031      "" | " "*) ;;
45032      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
45033      esac
45034 else
45035     lt_prog_compiler_pic_GCJ=
45036      lt_prog_compiler_can_build_shared_GCJ=no
45037 fi
45038
45039 fi
45040 case $host_os in
45041   # For platforms which do not support PIC, -DPIC is meaningless:
45042   *djgpp*)
45043     lt_prog_compiler_pic_GCJ=
45044     ;;
45045   *)
45046     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
45047     ;;
45048 esac
45049
45050 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
45051 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
45052 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
45053   echo $ECHO_N "(cached) $ECHO_C" >&6
45054 else
45055   lt_cv_prog_compiler_c_o_GCJ=no
45056    $rm -r conftest 2>/dev/null
45057    mkdir conftest
45058    cd conftest
45059    mkdir out
45060    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
45061
45062    lt_compiler_flag="-o out/conftest2.$ac_objext"
45063    # Insert the option either (1) after the last *FLAGS variable, or
45064    # (2) before a word containing "conftest.", or (3) at the end.
45065    # Note that $ac_compile itself does not contain backslashes and begins
45066    # with a dollar sign (not a hyphen), so the echo should work correctly.
45067    lt_compile=`echo "$ac_compile" | $SED \
45068    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
45069    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
45070    -e 's:$: $lt_compiler_flag:'`
45071    (eval echo "\"\$as_me:45071: $lt_compile\"" >&5)
45072    (eval "$lt_compile" 2>out/conftest.err)
45073    ac_status=$?
45074    cat out/conftest.err >&5
45075    echo "$as_me:45075: \$? = $ac_status" >&5
45076    if (exit $ac_status) && test -s out/conftest2.$ac_objext
45077    then
45078      # The compiler can only warn and ignore the option if not recognized
45079      # So say no if there are warnings
45080      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
45081      $SED '/^$/d' out/conftest.err >out/conftest.er2
45082      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
45083        lt_cv_prog_compiler_c_o_GCJ=yes
45084      fi
45085    fi
45086    chmod u+w . 2>&5
45087    $rm conftest*
45088    # SGI C++ compiler will create directory out/ii_files/ for
45089    # template instantiation
45090    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
45091    $rm out/* && rmdir out
45092    cd ..
45093    rmdir conftest
45094    $rm conftest*
45095
45096 fi
45097 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
45098 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
45099
45100
45101 hard_links="nottested"
45102 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
45103   # do not overwrite the value of need_locks provided by the user
45104   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
45105 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
45106   hard_links=yes
45107   $rm conftest*
45108   ln conftest.a conftest.b 2>/dev/null && hard_links=no
45109   touch conftest.a
45110   ln conftest.a conftest.b 2>&5 || hard_links=no
45111   ln conftest.a conftest.b 2>/dev/null && hard_links=no
45112   { echo "$as_me:$LINENO: result: $hard_links" >&5
45113 echo "${ECHO_T}$hard_links" >&6; }
45114   if test "$hard_links" = no; then
45115
45116     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
45117 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
45118
45119
45120     cat <<AAW_EOF >>config.warnings
45121 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
45122 AAW_EOF
45123
45124
45125     need_locks=warn
45126   fi
45127 else
45128   need_locks=no
45129 fi
45130
45131 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
45132 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
45133
45134   runpath_var=
45135   allow_undefined_flag_GCJ=
45136   enable_shared_with_static_runtimes_GCJ=no
45137   archive_cmds_GCJ=
45138   archive_expsym_cmds_GCJ=
45139   old_archive_From_new_cmds_GCJ=
45140   old_archive_from_expsyms_cmds_GCJ=
45141   export_dynamic_flag_spec_GCJ=
45142   whole_archive_flag_spec_GCJ=
45143   thread_safe_flag_spec_GCJ=
45144   hardcode_libdir_flag_spec_GCJ=
45145   hardcode_libdir_flag_spec_ld_GCJ=
45146   hardcode_libdir_separator_GCJ=
45147   hardcode_direct_GCJ=no
45148   hardcode_minus_L_GCJ=no
45149   hardcode_shlibpath_var_GCJ=unsupported
45150   link_all_deplibs_GCJ=unknown
45151   hardcode_automatic_GCJ=no
45152   module_cmds_GCJ=
45153   module_expsym_cmds_GCJ=
45154   always_export_symbols_GCJ=no
45155   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
45156   # include_expsyms should be a list of space-separated symbols to be *always*
45157   # included in the symbol list
45158   include_expsyms_GCJ=
45159   # exclude_expsyms can be an extended regexp of symbols to exclude
45160   # it will be wrapped by ` (' and `)$', so one must not match beginning or
45161   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
45162   # as well as any symbol that contains `d'.
45163   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
45164   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
45165   # platforms (ab)use it in PIC code, but their linkers get confused if
45166   # the symbol is explicitly referenced.  Since portable code cannot
45167   # rely on this symbol name, it's probably fine to never include it in
45168   # preloaded symbol tables.
45169   extract_expsyms_cmds=
45170   # Just being paranoid about ensuring that cc_basename is set.
45171   for cc_temp in $compiler""; do
45172   case $cc_temp in
45173     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
45174     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
45175     \-*) ;;
45176     *) break;;
45177   esac
45178 done
45179 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
45180
45181   case $host_os in
45182   cygwin* | mingw* | pw32*)
45183     # FIXME: the MSVC++ port hasn't been tested in a loooong time
45184     # When not using gcc, we currently assume that we are using
45185     # Microsoft Visual C++.
45186     if test "$GCC" != yes; then
45187       with_gnu_ld=no
45188     fi
45189     ;;
45190   openbsd*)
45191     with_gnu_ld=no
45192     ;;
45193   esac
45194
45195   ld_shlibs_GCJ=yes
45196   if test "$with_gnu_ld" = yes; then
45197     # If archive_cmds runs LD, not CC, wlarc should be empty
45198     wlarc='${wl}'
45199
45200     # Set some defaults for GNU ld with shared library support. These
45201     # are reset later if shared libraries are not supported. Putting them
45202     # here allows them to be overridden if necessary.
45203     runpath_var=LD_RUN_PATH
45204     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
45205     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
45206     # ancient GNU ld didn't support --whole-archive et. al.
45207     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
45208         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
45209       else
45210         whole_archive_flag_spec_GCJ=
45211     fi
45212     supports_anon_versioning=no
45213     case `$LD -v 2>/dev/null` in
45214       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
45215       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
45216       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
45217       *\ 2.11.*) ;; # other 2.11 versions
45218       *) supports_anon_versioning=yes ;;
45219     esac
45220
45221     # See if GNU ld supports shared libraries.
45222     case $host_os in
45223     aix3* | aix4* | aix5*)
45224       # On AIX/PPC, the GNU linker is very broken
45225       if test "$host_cpu" != ia64; then
45226         ld_shlibs_GCJ=no
45227         cat <<EOF 1>&2
45228
45229 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
45230 *** to be unable to reliably create shared libraries on AIX.
45231 *** Therefore, libtool is disabling shared libraries support.  If you
45232 *** really care for shared libraries, you may want to modify your PATH
45233 *** so that a non-GNU linker is found, and then restart.
45234
45235 EOF
45236       fi
45237       ;;
45238
45239     amigaos*)
45240       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
45241       hardcode_libdir_flag_spec_GCJ='-L$libdir'
45242       hardcode_minus_L_GCJ=yes
45243
45244       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
45245       # that the semantics of dynamic libraries on AmigaOS, at least up
45246       # to version 4, is to share data among multiple programs linked
45247       # with the same dynamic library.  Since this doesn't match the
45248       # behavior of shared libraries on other platforms, we can't use
45249       # them.
45250       ld_shlibs_GCJ=no
45251       ;;
45252
45253     beos*)
45254       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45255         allow_undefined_flag_GCJ=unsupported
45256         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
45257         # support --undefined.  This deserves some investigation.  FIXME
45258         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45259       else
45260         ld_shlibs_GCJ=no
45261       fi
45262       ;;
45263
45264     cygwin* | mingw* | pw32*)
45265       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
45266       # as there is no search path for DLLs.
45267       hardcode_libdir_flag_spec_GCJ='-L$libdir'
45268       allow_undefined_flag_GCJ=unsupported
45269       always_export_symbols_GCJ=no
45270       enable_shared_with_static_runtimes_GCJ=yes
45271       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
45272
45273       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
45274         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
45275         # If the export-symbols file already is a .def file (1st line
45276         # is EXPORTS), use it as is; otherwise, prepend...
45277         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
45278           cp $export_symbols $output_objdir/$soname.def;
45279         else
45280           echo EXPORTS > $output_objdir/$soname.def;
45281           cat $export_symbols >> $output_objdir/$soname.def;
45282         fi~
45283         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
45284       else
45285         ld_shlibs_GCJ=no
45286       fi
45287       ;;
45288
45289     linux*)
45290       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45291         tmp_addflag=
45292         case $cc_basename,$host_cpu in
45293         pgcc*)                          # Portland Group C compiler
45294           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
45295           tmp_addflag=' $pic_flag'
45296           ;;
45297         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
45298           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
45299           tmp_addflag=' $pic_flag -Mnomain' ;;
45300         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
45301           tmp_addflag=' -i_dynamic' ;;
45302         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
45303           tmp_addflag=' -i_dynamic -nofor_main' ;;
45304         ifc* | ifort*)                  # Intel Fortran compiler
45305           tmp_addflag=' -nofor_main' ;;
45306         esac
45307         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45308
45309         if test $supports_anon_versioning = yes; then
45310           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
45311   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
45312   $echo "local: *; };" >> $output_objdir/$libname.ver~
45313           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
45314         fi
45315       else
45316         ld_shlibs_GCJ=no
45317       fi
45318       ;;
45319
45320     netbsd*)
45321       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
45322         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
45323         wlarc=
45324       else
45325         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45326         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45327       fi
45328       ;;
45329
45330     solaris* | sysv5*)
45331       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
45332         ld_shlibs_GCJ=no
45333         cat <<EOF 1>&2
45334
45335 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
45336 *** create shared libraries on Solaris systems.  Therefore, libtool
45337 *** is disabling shared libraries support.  We urge you to upgrade GNU
45338 *** binutils to release 2.9.1 or newer.  Another option is to modify
45339 *** your PATH or compiler configuration so that the native linker is
45340 *** used, and then restart.
45341
45342 EOF
45343       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45344         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45345         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45346       else
45347         ld_shlibs_GCJ=no
45348       fi
45349       ;;
45350
45351     sunos4*)
45352       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45353       wlarc=
45354       hardcode_direct_GCJ=yes
45355       hardcode_shlibpath_var_GCJ=no
45356       ;;
45357
45358     *)
45359       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45360         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45361         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45362       else
45363         ld_shlibs_GCJ=no
45364       fi
45365       ;;
45366     esac
45367
45368     if test "$ld_shlibs_GCJ" = no; then
45369       runpath_var=
45370       hardcode_libdir_flag_spec_GCJ=
45371       export_dynamic_flag_spec_GCJ=
45372       whole_archive_flag_spec_GCJ=
45373     fi
45374   else
45375     # PORTME fill in a description of your system's linker (not GNU ld)
45376     case $host_os in
45377     aix3*)
45378       allow_undefined_flag_GCJ=unsupported
45379       always_export_symbols_GCJ=yes
45380       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
45381       # Note: this linker hardcodes the directories in LIBPATH if there
45382       # are no directories specified by -L.
45383       hardcode_minus_L_GCJ=yes
45384       if test "$GCC" = yes && test -z "$link_static_flag"; then
45385         # Neither direct hardcoding nor static linking is supported with a
45386         # broken collect2.
45387         hardcode_direct_GCJ=unsupported
45388       fi
45389       ;;
45390
45391     aix4* | aix5*)
45392       if test "$host_cpu" = ia64; then
45393         # On IA64, the linker does run time linking by default, so we don't
45394         # have to do anything special.
45395         aix_use_runtimelinking=no
45396         exp_sym_flag='-Bexport'
45397         no_entry_flag=""
45398       else
45399         # If we're using GNU nm, then we don't want the "-C" option.
45400         # -C means demangle to AIX nm, but means don't demangle with GNU nm
45401         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
45402           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
45403         else
45404           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
45405         fi
45406         aix_use_runtimelinking=no
45407
45408         # Test if we are trying to use run time linking or normal
45409         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
45410         # need to do runtime linking.
45411         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
45412           for ld_flag in $LDFLAGS; do
45413           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
45414             aix_use_runtimelinking=yes
45415             break
45416           fi
45417           done
45418         esac
45419
45420         exp_sym_flag='-bexport'
45421         no_entry_flag='-bnoentry'
45422       fi
45423
45424       # When large executables or shared objects are built, AIX ld can
45425       # have problems creating the table of contents.  If linking a library
45426       # or program results in "error TOC overflow" add -mminimal-toc to
45427       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
45428       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
45429
45430       archive_cmds_GCJ=''
45431       hardcode_direct_GCJ=yes
45432       hardcode_libdir_separator_GCJ=':'
45433       link_all_deplibs_GCJ=yes
45434
45435       if test "$GCC" = yes; then
45436         case $host_os in aix4.[012]|aix4.[012].*)
45437         # We only want to do this on AIX 4.2 and lower, the check
45438         # below for broken collect2 doesn't work under 4.3+
45439           collect2name=`${CC} -print-prog-name=collect2`
45440           if test -f "$collect2name" && \
45441            strings "$collect2name" | grep resolve_lib_name >/dev/null
45442           then
45443           # We have reworked collect2
45444           hardcode_direct_GCJ=yes
45445           else
45446           # We have old collect2
45447           hardcode_direct_GCJ=unsupported
45448           # It fails to find uninstalled libraries when the uninstalled
45449           # path is not listed in the libpath.  Setting hardcode_minus_L
45450           # to unsupported forces relinking
45451           hardcode_minus_L_GCJ=yes
45452           hardcode_libdir_flag_spec_GCJ='-L$libdir'
45453           hardcode_libdir_separator_GCJ=
45454           fi
45455         esac
45456         shared_flag='-shared'
45457         if test "$aix_use_runtimelinking" = yes; then
45458           shared_flag="$shared_flag "'${wl}-G'
45459         fi
45460       else
45461         # not using gcc
45462         if test "$host_cpu" = ia64; then
45463         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
45464         # chokes on -Wl,-G. The following line is correct:
45465           shared_flag='-G'
45466         else
45467         if test "$aix_use_runtimelinking" = yes; then
45468             shared_flag='${wl}-G'
45469           else
45470             shared_flag='${wl}-bM:SRE'
45471         fi
45472         fi
45473       fi
45474
45475       # It seems that -bexpall does not export symbols beginning with
45476       # underscore (_), so it is better to generate a list of symbols to export.
45477       always_export_symbols_GCJ=yes
45478       if test "$aix_use_runtimelinking" = yes; then
45479         # Warning - without using the other runtime loading flags (-brtl),
45480         # -berok will link without error, but may produce a broken library.
45481         allow_undefined_flag_GCJ='-berok'
45482        # Determine the default libpath from the value encoded in an empty executable.
45483        cat >conftest.$ac_ext <<_ACEOF
45484 /* confdefs.h.  */
45485 _ACEOF
45486 cat confdefs.h >>conftest.$ac_ext
45487 cat >>conftest.$ac_ext <<_ACEOF
45488 /* end confdefs.h.  */
45489
45490 int
45491 main ()
45492 {
45493
45494   ;
45495   return 0;
45496 }
45497 _ACEOF
45498 rm -f conftest.$ac_objext conftest$ac_exeext
45499 if { (ac_try="$ac_link"
45500 case "(($ac_try" in
45501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45502   *) ac_try_echo=$ac_try;;
45503 esac
45504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45505   (eval "$ac_link") 2>conftest.er1
45506   ac_status=$?
45507   grep -v '^ *+' conftest.er1 >conftest.err
45508   rm -f conftest.er1
45509   cat conftest.err >&5
45510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45511   (exit $ac_status); } && {
45512          test -z "$ac_c_werror_flag" ||
45513          test ! -s conftest.err
45514        } && test -s conftest$ac_exeext &&
45515        $as_test_x conftest$ac_exeext; then
45516
45517 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
45518 }'`
45519 # Check for a 64-bit object if we didn't find anything.
45520 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
45521 }'`; fi
45522 else
45523   echo "$as_me: failed program was:" >&5
45524 sed 's/^/| /' conftest.$ac_ext >&5
45525
45526
45527 fi
45528
45529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45530       conftest$ac_exeext conftest.$ac_ext
45531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
45532
45533        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
45534         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
45535        else
45536         if test "$host_cpu" = ia64; then
45537           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
45538           allow_undefined_flag_GCJ="-z nodefs"
45539           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
45540         else
45541          # Determine the default libpath from the value encoded in an empty executable.
45542          cat >conftest.$ac_ext <<_ACEOF
45543 /* confdefs.h.  */
45544 _ACEOF
45545 cat confdefs.h >>conftest.$ac_ext
45546 cat >>conftest.$ac_ext <<_ACEOF
45547 /* end confdefs.h.  */
45548
45549 int
45550 main ()
45551 {
45552
45553   ;
45554   return 0;
45555 }
45556 _ACEOF
45557 rm -f conftest.$ac_objext conftest$ac_exeext
45558 if { (ac_try="$ac_link"
45559 case "(($ac_try" in
45560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45561   *) ac_try_echo=$ac_try;;
45562 esac
45563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45564   (eval "$ac_link") 2>conftest.er1
45565   ac_status=$?
45566   grep -v '^ *+' conftest.er1 >conftest.err
45567   rm -f conftest.er1
45568   cat conftest.err >&5
45569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45570   (exit $ac_status); } && {
45571          test -z "$ac_c_werror_flag" ||
45572          test ! -s conftest.err
45573        } && test -s conftest$ac_exeext &&
45574        $as_test_x conftest$ac_exeext; then
45575
45576 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
45577 }'`
45578 # Check for a 64-bit object if we didn't find anything.
45579 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
45580 }'`; fi
45581 else
45582   echo "$as_me: failed program was:" >&5
45583 sed 's/^/| /' conftest.$ac_ext >&5
45584
45585
45586 fi
45587
45588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45589       conftest$ac_exeext conftest.$ac_ext
45590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
45591
45592          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
45593           # Warning - without using the other run time loading flags,
45594           # -berok will link without error, but may produce a broken library.
45595           no_undefined_flag_GCJ=' ${wl}-bernotok'
45596           allow_undefined_flag_GCJ=' ${wl}-berok'
45597           # -bexpall does not export symbols beginning with underscore (_)
45598           always_export_symbols_GCJ=yes
45599           # Exported symbols can be pulled into shared objects from archives
45600           whole_archive_flag_spec_GCJ=' '
45601           archive_cmds_need_lc_GCJ=yes
45602           # This is similar to how AIX traditionally builds its shared libraries.
45603           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
45604         fi
45605       fi
45606       ;;
45607
45608     amigaos*)
45609       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
45610       hardcode_libdir_flag_spec_GCJ='-L$libdir'
45611       hardcode_minus_L_GCJ=yes
45612       # see comment about different semantics on the GNU ld section
45613       ld_shlibs_GCJ=no
45614       ;;
45615
45616     bsdi[45]*)
45617       export_dynamic_flag_spec_GCJ=-rdynamic
45618       ;;
45619
45620     cygwin* | mingw* | pw32*)
45621       # When not using gcc, we currently assume that we are using
45622       # Microsoft Visual C++.
45623       # hardcode_libdir_flag_spec is actually meaningless, as there is
45624       # no search path for DLLs.
45625       hardcode_libdir_flag_spec_GCJ=' '
45626       allow_undefined_flag_GCJ=unsupported
45627       # Tell ltmain to make .lib files, not .a files.
45628       libext=lib
45629       # Tell ltmain to make .dll files, not .so files.
45630       shrext_cmds=".dll"
45631       # FIXME: Setting linknames here is a bad hack.
45632       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
45633       # The linker will automatically build a .lib file if we build a DLL.
45634       old_archive_From_new_cmds_GCJ='true'
45635       # FIXME: Should let the user specify the lib program.
45636       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
45637       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
45638       enable_shared_with_static_runtimes_GCJ=yes
45639       ;;
45640
45641     darwin* | rhapsody*)
45642       case $host_os in
45643         rhapsody* | darwin1.[012])
45644          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
45645          ;;
45646        *) # Darwin 1.3 on
45647          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
45648            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
45649          else
45650            case ${MACOSX_DEPLOYMENT_TARGET} in
45651              10.[012])
45652                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
45653                ;;
45654              10.*)
45655                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
45656                ;;
45657            esac
45658          fi
45659          ;;
45660       esac
45661       archive_cmds_need_lc_GCJ=no
45662       hardcode_direct_GCJ=no
45663       hardcode_automatic_GCJ=yes
45664       hardcode_shlibpath_var_GCJ=unsupported
45665       whole_archive_flag_spec_GCJ=''
45666       link_all_deplibs_GCJ=yes
45667     if test "$GCC" = yes ; then
45668         output_verbose_link_cmd='echo'
45669         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
45670       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
45671       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
45672       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
45673       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
45674     else
45675       case $cc_basename in
45676         xlc*)
45677          output_verbose_link_cmd='echo'
45678          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
45679          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
45680           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
45681          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
45682           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
45683           ;;
45684        *)
45685          ld_shlibs_GCJ=no
45686           ;;
45687       esac
45688     fi
45689       ;;
45690
45691     dgux*)
45692       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45693       hardcode_libdir_flag_spec_GCJ='-L$libdir'
45694       hardcode_shlibpath_var_GCJ=no
45695       ;;
45696
45697     freebsd1*)
45698       ld_shlibs_GCJ=no
45699       ;;
45700
45701     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
45702     # support.  Future versions do this automatically, but an explicit c++rt0.o
45703     # does not break anything, and helps significantly (at the cost of a little
45704     # extra space).
45705     freebsd2.2*)
45706       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
45707       hardcode_libdir_flag_spec_GCJ='-R$libdir'
45708       hardcode_direct_GCJ=yes
45709       hardcode_shlibpath_var_GCJ=no
45710       ;;
45711
45712     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
45713     freebsd2*)
45714       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45715       hardcode_direct_GCJ=yes
45716       hardcode_minus_L_GCJ=yes
45717       hardcode_shlibpath_var_GCJ=no
45718       ;;
45719
45720     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
45721     freebsd* | kfreebsd*-gnu | dragonfly*)
45722       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
45723       hardcode_libdir_flag_spec_GCJ='-R$libdir'
45724       hardcode_direct_GCJ=yes
45725       hardcode_shlibpath_var_GCJ=no
45726       ;;
45727
45728     hpux9*)
45729       if test "$GCC" = yes; then
45730         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
45731       else
45732         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
45733       fi
45734       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
45735       hardcode_libdir_separator_GCJ=:
45736       hardcode_direct_GCJ=yes
45737
45738       # hardcode_minus_L: Not really in the search PATH,
45739       # but as the default location of the library.
45740       hardcode_minus_L_GCJ=yes
45741       export_dynamic_flag_spec_GCJ='${wl}-E'
45742       ;;
45743
45744     hpux10* | hpux11*)
45745       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
45746         case $host_cpu in
45747         hppa*64*|ia64*)
45748           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45749           ;;
45750         *)
45751           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
45752           ;;
45753         esac
45754       else
45755         case $host_cpu in
45756         hppa*64*|ia64*)
45757           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
45758           ;;
45759         *)
45760           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
45761           ;;
45762         esac
45763       fi
45764       if test "$with_gnu_ld" = no; then
45765         case $host_cpu in
45766         hppa*64*)
45767           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
45768           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
45769           hardcode_libdir_separator_GCJ=:
45770           hardcode_direct_GCJ=no
45771           hardcode_shlibpath_var_GCJ=no
45772           ;;
45773         ia64*)
45774           hardcode_libdir_flag_spec_GCJ='-L$libdir'
45775           hardcode_direct_GCJ=no
45776           hardcode_shlibpath_var_GCJ=no
45777
45778           # hardcode_minus_L: Not really in the search PATH,
45779           # but as the default location of the library.
45780           hardcode_minus_L_GCJ=yes
45781           ;;
45782         *)
45783           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
45784           hardcode_libdir_separator_GCJ=:
45785           hardcode_direct_GCJ=yes
45786           export_dynamic_flag_spec_GCJ='${wl}-E'
45787
45788           # hardcode_minus_L: Not really in the search PATH,
45789           # but as the default location of the library.
45790           hardcode_minus_L_GCJ=yes
45791           ;;
45792         esac
45793       fi
45794       ;;
45795
45796     irix5* | irix6* | nonstopux*)
45797       if test "$GCC" = yes; then
45798         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
45799       else
45800         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
45801         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
45802       fi
45803       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
45804       hardcode_libdir_separator_GCJ=:
45805       link_all_deplibs_GCJ=yes
45806       ;;
45807
45808     netbsd*)
45809       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
45810         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
45811       else
45812         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
45813       fi
45814       hardcode_libdir_flag_spec_GCJ='-R$libdir'
45815       hardcode_direct_GCJ=yes
45816       hardcode_shlibpath_var_GCJ=no
45817       ;;
45818
45819     newsos6)
45820       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45821       hardcode_direct_GCJ=yes
45822       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
45823       hardcode_libdir_separator_GCJ=:
45824       hardcode_shlibpath_var_GCJ=no
45825       ;;
45826
45827     openbsd*)
45828       hardcode_direct_GCJ=yes
45829       hardcode_shlibpath_var_GCJ=no
45830       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
45831         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
45832         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
45833         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
45834         export_dynamic_flag_spec_GCJ='${wl}-E'
45835       else
45836        case $host_os in
45837          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
45838            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45839            hardcode_libdir_flag_spec_GCJ='-R$libdir'
45840            ;;
45841          *)
45842            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
45843            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
45844            ;;
45845        esac
45846       fi
45847       ;;
45848
45849     os2*)
45850       hardcode_libdir_flag_spec_GCJ='-L$libdir'
45851       hardcode_minus_L_GCJ=yes
45852       allow_undefined_flag_GCJ=unsupported
45853       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
45854       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
45855       ;;
45856
45857     osf3*)
45858       if test "$GCC" = yes; then
45859         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
45860         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
45861       else
45862         allow_undefined_flag_GCJ=' -expect_unresolved \*'
45863         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
45864       fi
45865       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
45866       hardcode_libdir_separator_GCJ=:
45867       ;;
45868
45869     osf4* | osf5*)      # as osf3* with the addition of -msym flag
45870       if test "$GCC" = yes; then
45871         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
45872         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
45873         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
45874       else
45875         allow_undefined_flag_GCJ=' -expect_unresolved \*'
45876         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
45877         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
45878         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
45879
45880         # Both c and cxx compiler support -rpath directly
45881         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
45882       fi
45883       hardcode_libdir_separator_GCJ=:
45884       ;;
45885
45886     sco3.2v5*)
45887       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45888       hardcode_shlibpath_var_GCJ=no
45889       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
45890       runpath_var=LD_RUN_PATH
45891       hardcode_runpath_var=yes
45892       ;;
45893
45894     solaris*)
45895       no_undefined_flag_GCJ=' -z text'
45896       if test "x$archive_cmds" = "x"; then
45897         if test "$GCC" = yes; then
45898           wlarc='${wl}'
45899           if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
45900             archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45901             archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45902             $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
45903           else
45904             archive_cmds_GCJ='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45905             archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45906             $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
45907           fi
45908         else
45909           wlarc=''
45910           lt_prog_compiler_static_GCJ='-static'
45911           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
45912           archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45913           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
45914           lt_prog_compiler_static_GCJ='-static'
45915         fi
45916       fi
45917       hardcode_libdir_flag_spec_GCJ='-R$libdir'
45918       hardcode_shlibpath_var_GCJ=no
45919       case $host_os in
45920       solaris2.[0-5] | solaris2.[0-5].*) ;;
45921       *)
45922         # The compiler driver will combine linker options so we
45923         # cannot just pass the convience library names through
45924         # without $wl, iff we do not link with $LD.
45925         # Luckily, gcc supports the same syntax we need for Sun Studio.
45926         # Supported since Solaris 2.6 (maybe 2.5.1?)
45927         case $wlarc in
45928         '')
45929           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
45930         *)
45931           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
45932         esac ;;
45933       esac
45934       link_all_deplibs_GCJ=yes
45935       ;;
45936
45937     sunos4*)
45938       if test "x$host_vendor" = xsequent; then
45939         # Use $CC to link under sequent, because it throws in some extra .o
45940         # files that make .init and .fini sections work.
45941         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
45942       else
45943         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
45944       fi
45945       hardcode_libdir_flag_spec_GCJ='-L$libdir'
45946       hardcode_direct_GCJ=yes
45947       hardcode_minus_L_GCJ=yes
45948       hardcode_shlibpath_var_GCJ=no
45949       ;;
45950
45951     sysv4)
45952       case $host_vendor in
45953         sni)
45954           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45955           hardcode_direct_GCJ=yes # is this really true???
45956         ;;
45957         siemens)
45958           ## LD is ld it makes a PLAMLIB
45959           ## CC just makes a GrossModule.
45960           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
45961           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
45962           hardcode_direct_GCJ=no
45963         ;;
45964         motorola)
45965           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45966           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
45967         ;;
45968       esac
45969       runpath_var='LD_RUN_PATH'
45970       hardcode_shlibpath_var_GCJ=no
45971       ;;
45972
45973     sysv4.3*)
45974       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45975       hardcode_shlibpath_var_GCJ=no
45976       export_dynamic_flag_spec_GCJ='-Bexport'
45977       ;;
45978
45979     sysv4*MP*)
45980       if test -d /usr/nec; then
45981         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45982         hardcode_shlibpath_var_GCJ=no
45983         runpath_var=LD_RUN_PATH
45984         hardcode_runpath_var=yes
45985         ld_shlibs_GCJ=yes
45986       fi
45987       ;;
45988
45989     sysv4.2uw2*)
45990       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
45991       hardcode_direct_GCJ=yes
45992       hardcode_minus_L_GCJ=no
45993       hardcode_shlibpath_var_GCJ=no
45994       hardcode_runpath_var=yes
45995       runpath_var=LD_RUN_PATH
45996       ;;
45997
45998    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
45999       no_undefined_flag_GCJ='${wl}-z ${wl}text'
46000       if test "$GCC" = yes; then
46001         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
46002       else
46003         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
46004       fi
46005       runpath_var='LD_RUN_PATH'
46006       hardcode_shlibpath_var_GCJ=no
46007       ;;
46008
46009     sysv5*)
46010       no_undefined_flag_GCJ=' -z text'
46011       # $CC -shared without GNU ld will not create a library from C++
46012       # object files and a static libstdc++, better avoid it by now
46013       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
46014       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
46015                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
46016       hardcode_libdir_flag_spec_GCJ=
46017       hardcode_shlibpath_var_GCJ=no
46018       runpath_var='LD_RUN_PATH'
46019       ;;
46020
46021     uts4*)
46022       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
46023       hardcode_libdir_flag_spec_GCJ='-L$libdir'
46024       hardcode_shlibpath_var_GCJ=no
46025       ;;
46026
46027     *)
46028       ld_shlibs_GCJ=no
46029       ;;
46030     esac
46031   fi
46032
46033 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
46034 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
46035 test "$ld_shlibs_GCJ" = no && can_build_shared=no
46036
46037 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
46038 if test "$GCC" = yes; then
46039   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
46040 fi
46041
46042 #
46043 # Do we need to explicitly link libc?
46044 #
46045 case "x$archive_cmds_need_lc_GCJ" in
46046 x|xyes)
46047   # Assume -lc should be added
46048   archive_cmds_need_lc_GCJ=yes
46049
46050   if test "$enable_shared" = yes && test "$GCC" = yes; then
46051     case $archive_cmds_GCJ in
46052     *'~'*)
46053       # FIXME: we may have to deal with multi-command sequences.
46054       ;;
46055     '$CC '*)
46056       # Test whether the compiler implicitly links with -lc since on some
46057       # systems, -lgcc has to come before -lc. If gcc already passes -lc
46058       # to ld, don't add -lc before -lgcc.
46059       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
46060 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
46061       $rm conftest*
46062       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
46063
46064       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46065   (eval $ac_compile) 2>&5
46066   ac_status=$?
46067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46068   (exit $ac_status); } 2>conftest.err; then
46069         soname=conftest
46070         lib=conftest
46071         libobjs=conftest.$ac_objext
46072         deplibs=
46073         wl=$lt_prog_compiler_wl_GCJ
46074         compiler_flags=-v
46075         linker_flags=-v
46076         verstring=
46077         output_objdir=.
46078         libname=conftest
46079         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
46080         allow_undefined_flag_GCJ=
46081         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
46082   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
46083   ac_status=$?
46084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46085   (exit $ac_status); }
46086         then
46087           archive_cmds_need_lc_GCJ=no
46088         else
46089           archive_cmds_need_lc_GCJ=yes
46090         fi
46091         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
46092       else
46093         cat conftest.err 1>&5
46094       fi
46095       $rm conftest*
46096       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
46097 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
46098       ;;
46099     esac
46100   fi
46101   ;;
46102 esac
46103
46104 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
46105 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
46106 library_names_spec=
46107 libname_spec='lib$name'
46108 soname_spec=
46109 shrext_cmds=".so"
46110 postinstall_cmds=
46111 postuninstall_cmds=
46112 finish_cmds=
46113 finish_eval=
46114 shlibpath_var=
46115 shlibpath_overrides_runpath=unknown
46116 version_type=none
46117 dynamic_linker="$host_os ld.so"
46118 sys_lib_dlsearch_path_spec="/lib /usr/lib"
46119 if test "$GCC" = yes; then
46120   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
46121   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
46122     # if the path contains ";" then we assume it to be the separator
46123     # otherwise default to the standard path separator (i.e. ":") - it is
46124     # assumed that no part of a normal pathname contains ";" but that should
46125     # okay in the real world where ";" in dirpaths is itself problematic.
46126     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
46127   else
46128     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
46129   fi
46130 else
46131   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
46132 fi
46133 need_lib_prefix=unknown
46134 hardcode_into_libs=no
46135
46136 # when you set need_version to no, make sure it does not cause -set_version
46137 # flags to be left without arguments
46138 need_version=unknown
46139
46140 case $host_os in
46141 aix3*)
46142   version_type=linux
46143   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
46144   shlibpath_var=LIBPATH
46145
46146   # AIX 3 has no versioning support, so we append a major version to the name.
46147   soname_spec='${libname}${release}${shared_ext}$major'
46148   ;;
46149
46150 aix4* | aix5*)
46151   version_type=linux
46152   need_lib_prefix=no
46153   need_version=no
46154   hardcode_into_libs=yes
46155   if test "$host_cpu" = ia64; then
46156     # AIX 5 supports IA64
46157     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
46158     shlibpath_var=LD_LIBRARY_PATH
46159   else
46160     # With GCC up to 2.95.x, collect2 would create an import file
46161     # for dependence libraries.  The import file would start with
46162     # the line `#! .'.  This would cause the generated library to
46163     # depend on `.', always an invalid library.  This was fixed in
46164     # development snapshots of GCC prior to 3.0.
46165     case $host_os in
46166       aix4 | aix4.[01] | aix4.[01].*)
46167       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
46168            echo ' yes '
46169            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
46170         :
46171       else
46172         can_build_shared=no
46173       fi
46174       ;;
46175     esac
46176     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
46177     # soname into executable. Probably we can add versioning support to
46178     # collect2, so additional links can be useful in future.
46179     if test "$aix_use_runtimelinking" = yes; then
46180       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
46181       # instead of lib<name>.a to let people know that these are not
46182       # typical AIX shared libraries.
46183       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46184     else
46185       # We preserve .a as extension for shared libraries through AIX4.2
46186       # and later when we are not doing run time linking.
46187       library_names_spec='${libname}${release}.a $libname.a'
46188       soname_spec='${libname}${release}${shared_ext}$major'
46189     fi
46190     shlibpath_var=LIBPATH
46191   fi
46192   ;;
46193
46194 amigaos*)
46195   library_names_spec='$libname.ixlibrary $libname.a'
46196   # Create ${libname}_ixlibrary.a entries in /sys/libs.
46197   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'
46198   ;;
46199
46200 beos*)
46201   library_names_spec='${libname}${shared_ext}'
46202   dynamic_linker="$host_os ld.so"
46203   shlibpath_var=LIBRARY_PATH
46204   ;;
46205
46206 bsdi[45]*)
46207   version_type=linux
46208   need_version=no
46209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46210   soname_spec='${libname}${release}${shared_ext}$major'
46211   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
46212   shlibpath_var=LD_LIBRARY_PATH
46213   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
46214   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
46215   # the default ld.so.conf also contains /usr/contrib/lib and
46216   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
46217   # libtool to hard-code these into programs
46218   ;;
46219
46220 cygwin* | mingw* | pw32*)
46221   version_type=windows
46222   shrext_cmds=".dll"
46223   need_version=no
46224   need_lib_prefix=no
46225
46226   case $GCC,$host_os in
46227   yes,cygwin* | yes,mingw* | yes,pw32*)
46228     library_names_spec='$libname.dll.a'
46229     # DLL is installed to $(libdir)/../bin by postinstall_cmds
46230     postinstall_cmds='base_file=`basename \${file}`~
46231       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
46232       dldir=$destdir/`dirname \$dlpath`~
46233       test -d \$dldir || mkdir -p \$dldir~
46234       $install_prog $dir/$dlname \$dldir/$dlname~
46235       chmod a+x \$dldir/$dlname'
46236     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
46237       dlpath=$dir/\$dldll~
46238        $rm \$dlpath'
46239     shlibpath_overrides_runpath=yes
46240
46241     case $host_os in
46242     cygwin*)
46243       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
46244       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46245       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
46246       ;;
46247     mingw*)
46248       # MinGW DLLs use traditional 'lib' prefix
46249       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46250       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
46251       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
46252         # It is most probably a Windows format PATH printed by
46253         # mingw gcc, but we are running on Cygwin. Gcc prints its search
46254         # path with ; separators, and with drive letters. We can handle the
46255         # drive letters (cygwin fileutils understands them), so leave them,
46256         # especially as we might pass files found there to a mingw objdump,
46257         # which wouldn't understand a cygwinified path. Ahh.
46258         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
46259       else
46260         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
46261       fi
46262       ;;
46263     pw32*)
46264       # pw32 DLLs use 'pw' prefix rather than 'lib'
46265       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46266       ;;
46267     esac
46268     ;;
46269
46270   *)
46271     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
46272     ;;
46273   esac
46274   dynamic_linker='Win32 ld.exe'
46275   # FIXME: first we should search . and the directory the executable is in
46276   shlibpath_var=PATH
46277   ;;
46278
46279 darwin* | rhapsody*)
46280   dynamic_linker="$host_os dyld"
46281   version_type=darwin
46282   need_lib_prefix=no
46283   need_version=no
46284   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
46285   soname_spec='${libname}${release}${major}$shared_ext'
46286   shlibpath_overrides_runpath=yes
46287   shlibpath_var=DYLD_LIBRARY_PATH
46288   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
46289   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
46290   if test "$GCC" = yes; then
46291     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
46292   else
46293     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
46294   fi
46295   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
46296   ;;
46297
46298 dgux*)
46299   version_type=linux
46300   need_lib_prefix=no
46301   need_version=no
46302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
46303   soname_spec='${libname}${release}${shared_ext}$major'
46304   shlibpath_var=LD_LIBRARY_PATH
46305   ;;
46306
46307 freebsd1*)
46308   dynamic_linker=no
46309   ;;
46310
46311 kfreebsd*-gnu)
46312   version_type=linux
46313   need_lib_prefix=no
46314   need_version=no
46315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46316   soname_spec='${libname}${release}${shared_ext}$major'
46317   shlibpath_var=LD_LIBRARY_PATH
46318   shlibpath_overrides_runpath=no
46319   hardcode_into_libs=yes
46320   dynamic_linker='GNU ld.so'
46321   ;;
46322
46323 freebsd* | dragonfly*)
46324   # DragonFly does not have aout.  When/if they implement a new
46325   # versioning mechanism, adjust this.
46326   if test -x /usr/bin/objformat; then
46327     objformat=`/usr/bin/objformat`
46328   else
46329     case $host_os in
46330     freebsd[123]*) objformat=aout ;;
46331     *) objformat=elf ;;
46332     esac
46333   fi
46334   version_type=freebsd-$objformat
46335   case $version_type in
46336     freebsd-elf*)
46337       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
46338       need_version=no
46339       need_lib_prefix=no
46340       ;;
46341     freebsd-*)
46342       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
46343       need_version=yes
46344       ;;
46345   esac
46346   shlibpath_var=LD_LIBRARY_PATH
46347   case $host_os in
46348   freebsd2*)
46349     shlibpath_overrides_runpath=yes
46350     ;;
46351   freebsd3.[01]* | freebsdelf3.[01]*)
46352     shlibpath_overrides_runpath=yes
46353     hardcode_into_libs=yes
46354     ;;
46355   *) # from 3.2 on
46356     shlibpath_overrides_runpath=no
46357     hardcode_into_libs=yes
46358     ;;
46359   esac
46360   ;;
46361
46362 gnu*)
46363   version_type=linux
46364   need_lib_prefix=no
46365   need_version=no
46366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
46367   soname_spec='${libname}${release}${shared_ext}$major'
46368   shlibpath_var=LD_LIBRARY_PATH
46369   hardcode_into_libs=yes
46370   ;;
46371
46372 hpux9* | hpux10* | hpux11*)
46373   # Give a soname corresponding to the major version so that dld.sl refuses to
46374   # link against other versions.
46375   version_type=sunos
46376   need_lib_prefix=no
46377   need_version=no
46378   case $host_cpu in
46379   ia64*)
46380     shrext_cmds='.so'
46381     hardcode_into_libs=yes
46382     dynamic_linker="$host_os dld.so"
46383     shlibpath_var=LD_LIBRARY_PATH
46384     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
46385     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46386     soname_spec='${libname}${release}${shared_ext}$major'
46387     if test "X$HPUX_IA64_MODE" = X32; then
46388       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
46389     else
46390       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
46391     fi
46392     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
46393     ;;
46394    hppa*64*)
46395      shrext_cmds='.sl'
46396      hardcode_into_libs=yes
46397      dynamic_linker="$host_os dld.sl"
46398      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
46399      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
46400      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46401      soname_spec='${libname}${release}${shared_ext}$major'
46402      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
46403      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
46404      ;;
46405    *)
46406     shrext_cmds='.sl'
46407     dynamic_linker="$host_os dld.sl"
46408     shlibpath_var=SHLIB_PATH
46409     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
46410     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46411     soname_spec='${libname}${release}${shared_ext}$major'
46412     ;;
46413   esac
46414   # HP-UX runs *really* slowly unless shared libraries are mode 555.
46415   postinstall_cmds='chmod 555 $lib'
46416   ;;
46417
46418 irix5* | irix6* | nonstopux*)
46419   case $host_os in
46420     nonstopux*) version_type=nonstopux ;;
46421     *)
46422         if test "$lt_cv_prog_gnu_ld" = yes; then
46423                 version_type=linux
46424         else
46425                 version_type=irix
46426         fi ;;
46427   esac
46428   need_lib_prefix=no
46429   need_version=no
46430   soname_spec='${libname}${release}${shared_ext}$major'
46431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
46432   case $host_os in
46433   irix5* | nonstopux*)
46434     libsuff= shlibsuff=
46435     ;;
46436   *)
46437     case $LD in # libtool.m4 will add one of these switches to LD
46438     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
46439       libsuff= shlibsuff= libmagic=32-bit;;
46440     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
46441       libsuff=32 shlibsuff=N32 libmagic=N32;;
46442     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
46443       libsuff=64 shlibsuff=64 libmagic=64-bit;;
46444     *) libsuff= shlibsuff= libmagic=never-match;;
46445     esac
46446     ;;
46447   esac
46448   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
46449   shlibpath_overrides_runpath=no
46450   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
46451   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
46452   hardcode_into_libs=yes
46453   ;;
46454
46455 # No shared lib support for Linux oldld, aout, or coff.
46456 linux*oldld* | linux*aout* | linux*coff*)
46457   dynamic_linker=no
46458   ;;
46459
46460 # This must be Linux ELF.
46461 linux*)
46462   version_type=linux
46463   need_lib_prefix=no
46464   need_version=no
46465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46466   soname_spec='${libname}${release}${shared_ext}$major'
46467   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
46468   shlibpath_var=LD_LIBRARY_PATH
46469   shlibpath_overrides_runpath=no
46470   # This implies no fast_install, which is unacceptable.
46471   # Some rework will be needed to allow for fast_install
46472   # before this can be enabled.
46473   hardcode_into_libs=yes
46474
46475   # Append ld.so.conf contents to the search path
46476   if test -f /etc/ld.so.conf; then
46477     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
46478     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
46479   fi
46480
46481   # We used to test for /lib/ld.so.1 and disable shared libraries on
46482   # powerpc, because MkLinux only supported shared libraries with the
46483   # GNU dynamic linker.  Since this was broken with cross compilers,
46484   # most powerpc-linux boxes support dynamic linking these days and
46485   # people can always --disable-shared, the test was removed, and we
46486   # assume the GNU/Linux dynamic linker is in use.
46487   dynamic_linker='GNU/Linux ld.so'
46488   ;;
46489
46490 knetbsd*-gnu)
46491   version_type=linux
46492   need_lib_prefix=no
46493   need_version=no
46494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46495   soname_spec='${libname}${release}${shared_ext}$major'
46496   shlibpath_var=LD_LIBRARY_PATH
46497   shlibpath_overrides_runpath=no
46498   hardcode_into_libs=yes
46499   dynamic_linker='GNU ld.so'
46500   ;;
46501
46502 netbsd*)
46503   version_type=sunos
46504   need_lib_prefix=no
46505   need_version=no
46506   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
46507     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46508     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
46509     dynamic_linker='NetBSD (a.out) ld.so'
46510   else
46511     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46512     soname_spec='${libname}${release}${shared_ext}$major'
46513     dynamic_linker='NetBSD ld.elf_so'
46514   fi
46515   shlibpath_var=LD_LIBRARY_PATH
46516   shlibpath_overrides_runpath=yes
46517   hardcode_into_libs=yes
46518   ;;
46519
46520 newsos6)
46521   version_type=linux
46522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46523   shlibpath_var=LD_LIBRARY_PATH
46524   shlibpath_overrides_runpath=yes
46525   ;;
46526
46527 nto-qnx*)
46528   version_type=linux
46529   need_lib_prefix=no
46530   need_version=no
46531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46532   soname_spec='${libname}${release}${shared_ext}$major'
46533   shlibpath_var=LD_LIBRARY_PATH
46534   shlibpath_overrides_runpath=yes
46535   ;;
46536
46537 openbsd*)
46538   version_type=sunos
46539   need_lib_prefix=no
46540   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
46541   case $host_os in
46542     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
46543     *)                         need_version=no  ;;
46544   esac
46545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46546   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
46547   shlibpath_var=LD_LIBRARY_PATH
46548   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
46549     case $host_os in
46550       openbsd2.[89] | openbsd2.[89].*)
46551         shlibpath_overrides_runpath=no
46552         ;;
46553       *)
46554         shlibpath_overrides_runpath=yes
46555         ;;
46556       esac
46557   else
46558     shlibpath_overrides_runpath=yes
46559   fi
46560   ;;
46561
46562 os2*)
46563   libname_spec='$name'
46564   shrext_cmds=".dll"
46565   need_lib_prefix=no
46566   library_names_spec='$libname${shared_ext} $libname.a'
46567   dynamic_linker='OS/2 ld.exe'
46568   shlibpath_var=LIBPATH
46569   ;;
46570
46571 osf3* | osf4* | osf5*)
46572   version_type=osf
46573   need_lib_prefix=no
46574   need_version=no
46575   soname_spec='${libname}${release}${shared_ext}$major'
46576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46577   shlibpath_var=LD_LIBRARY_PATH
46578   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
46579   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
46580   ;;
46581
46582 sco3.2v5*)
46583   version_type=osf
46584   soname_spec='${libname}${release}${shared_ext}$major'
46585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46586   shlibpath_var=LD_LIBRARY_PATH
46587   ;;
46588
46589 solaris*)
46590   version_type=linux
46591   need_lib_prefix=no
46592   need_version=no
46593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46594   soname_spec='${libname}${release}${shared_ext}$major'
46595   shlibpath_var=LD_LIBRARY_PATH
46596   shlibpath_overrides_runpath=yes
46597   hardcode_into_libs=yes
46598   # ldd complains unless libraries are executable
46599   postinstall_cmds='chmod +x $lib'
46600   ;;
46601
46602 sunos4*)
46603   version_type=sunos
46604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46605   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
46606   shlibpath_var=LD_LIBRARY_PATH
46607   shlibpath_overrides_runpath=yes
46608   if test "$with_gnu_ld" = yes; then
46609     need_lib_prefix=no
46610   fi
46611   need_version=yes
46612   ;;
46613
46614 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
46615   version_type=linux
46616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46617   soname_spec='${libname}${release}${shared_ext}$major'
46618   shlibpath_var=LD_LIBRARY_PATH
46619   case $host_vendor in
46620     sni)
46621       shlibpath_overrides_runpath=no
46622       need_lib_prefix=no
46623       export_dynamic_flag_spec='${wl}-Blargedynsym'
46624       runpath_var=LD_RUN_PATH
46625       ;;
46626     siemens)
46627       need_lib_prefix=no
46628       ;;
46629     motorola)
46630       need_lib_prefix=no
46631       need_version=no
46632       shlibpath_overrides_runpath=no
46633       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
46634       ;;
46635   esac
46636   ;;
46637
46638 sysv4*MP*)
46639   if test -d /usr/nec ;then
46640     version_type=linux
46641     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
46642     soname_spec='$libname${shared_ext}.$major'
46643     shlibpath_var=LD_LIBRARY_PATH
46644   fi
46645   ;;
46646
46647 uts4*)
46648   version_type=linux
46649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46650   soname_spec='${libname}${release}${shared_ext}$major'
46651   shlibpath_var=LD_LIBRARY_PATH
46652   ;;
46653
46654 *)
46655   dynamic_linker=no
46656   ;;
46657 esac
46658 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
46659 echo "${ECHO_T}$dynamic_linker" >&6; }
46660 test "$dynamic_linker" = no && can_build_shared=no
46661
46662 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
46663 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
46664 hardcode_action_GCJ=
46665 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
46666    test -n "$runpath_var_GCJ" || \
46667    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
46668
46669   # We can hardcode non-existant directories.
46670   if test "$hardcode_direct_GCJ" != no &&
46671      # If the only mechanism to avoid hardcoding is shlibpath_var, we
46672      # have to relink, otherwise we might link with an installed library
46673      # when we should be linking with a yet-to-be-installed one
46674      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
46675      test "$hardcode_minus_L_GCJ" != no; then
46676     # Linking always hardcodes the temporary library directory.
46677     hardcode_action_GCJ=relink
46678   else
46679     # We can link without hardcoding, and we can hardcode nonexisting dirs.
46680     hardcode_action_GCJ=immediate
46681   fi
46682 else
46683   # We cannot hardcode anything, or else we can only hardcode existing
46684   # directories.
46685   hardcode_action_GCJ=unsupported
46686 fi
46687 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
46688 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
46689
46690 if test "$hardcode_action_GCJ" = relink; then
46691   # Fast installation is not supported
46692   enable_fast_install=no
46693 elif test "$shlibpath_overrides_runpath" = yes ||
46694      test "$enable_shared" = no; then
46695   # Fast installation is not necessary
46696   enable_fast_install=needless
46697 fi
46698
46699 striplib=
46700 old_striplib=
46701 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
46702 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
46703 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
46704   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
46705   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
46706   { echo "$as_me:$LINENO: result: yes" >&5
46707 echo "${ECHO_T}yes" >&6; }
46708 else
46709 # FIXME - insert some real tests, host_os isn't really good enough
46710   case $host_os in
46711    darwin*)
46712        if test -n "$STRIP" ; then
46713          striplib="$STRIP -x"
46714          { echo "$as_me:$LINENO: result: yes" >&5
46715 echo "${ECHO_T}yes" >&6; }
46716        else
46717   { echo "$as_me:$LINENO: result: no" >&5
46718 echo "${ECHO_T}no" >&6; }
46719 fi
46720        ;;
46721    *)
46722   { echo "$as_me:$LINENO: result: no" >&5
46723 echo "${ECHO_T}no" >&6; }
46724     ;;
46725   esac
46726 fi
46727
46728 if test "x$enable_dlopen" != xyes; then
46729   enable_dlopen=unknown
46730   enable_dlopen_self=unknown
46731   enable_dlopen_self_static=unknown
46732 else
46733   lt_cv_dlopen=no
46734   lt_cv_dlopen_libs=
46735
46736   case $host_os in
46737   beos*)
46738     lt_cv_dlopen="load_add_on"
46739     lt_cv_dlopen_libs=
46740     lt_cv_dlopen_self=yes
46741     ;;
46742
46743   mingw* | pw32*)
46744     lt_cv_dlopen="LoadLibrary"
46745     lt_cv_dlopen_libs=
46746    ;;
46747
46748   cygwin*)
46749     lt_cv_dlopen="dlopen"
46750     lt_cv_dlopen_libs=
46751    ;;
46752
46753   darwin*)
46754   # if libdl is installed we need to link against it
46755     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
46756 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
46757 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
46758   echo $ECHO_N "(cached) $ECHO_C" >&6
46759 else
46760   ac_check_lib_save_LIBS=$LIBS
46761 LIBS="-ldl  $LIBS"
46762 cat >conftest.$ac_ext <<_ACEOF
46763 /* confdefs.h.  */
46764 _ACEOF
46765 cat confdefs.h >>conftest.$ac_ext
46766 cat >>conftest.$ac_ext <<_ACEOF
46767 /* end confdefs.h.  */
46768
46769 /* Override any GCC internal prototype to avoid an error.
46770    Use char because int might match the return type of a GCC
46771    builtin and then its argument prototype would still apply.  */
46772 #ifdef __cplusplus
46773 extern "C"
46774 #endif
46775 char dlopen ();
46776 int
46777 main ()
46778 {
46779 return dlopen ();
46780   ;
46781   return 0;
46782 }
46783 _ACEOF
46784 rm -f conftest.$ac_objext conftest$ac_exeext
46785 if { (ac_try="$ac_link"
46786 case "(($ac_try" in
46787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46788   *) ac_try_echo=$ac_try;;
46789 esac
46790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46791   (eval "$ac_link") 2>conftest.er1
46792   ac_status=$?
46793   grep -v '^ *+' conftest.er1 >conftest.err
46794   rm -f conftest.er1
46795   cat conftest.err >&5
46796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46797   (exit $ac_status); } && {
46798          test -z "$ac_c_werror_flag" ||
46799          test ! -s conftest.err
46800        } && test -s conftest$ac_exeext &&
46801        $as_test_x conftest$ac_exeext; then
46802   ac_cv_lib_dl_dlopen=yes
46803 else
46804   echo "$as_me: failed program was:" >&5
46805 sed 's/^/| /' conftest.$ac_ext >&5
46806
46807         ac_cv_lib_dl_dlopen=no
46808 fi
46809
46810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46811       conftest$ac_exeext conftest.$ac_ext
46812 LIBS=$ac_check_lib_save_LIBS
46813 fi
46814 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
46815 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
46816 if test $ac_cv_lib_dl_dlopen = yes; then
46817   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
46818 else
46819
46820     lt_cv_dlopen="dyld"
46821     lt_cv_dlopen_libs=
46822     lt_cv_dlopen_self=yes
46823
46824 fi
46825
46826    ;;
46827
46828   *)
46829     { echo "$as_me:$LINENO: checking for shl_load" >&5
46830 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
46831 if test "${ac_cv_func_shl_load+set}" = set; then
46832   echo $ECHO_N "(cached) $ECHO_C" >&6
46833 else
46834   cat >conftest.$ac_ext <<_ACEOF
46835 /* confdefs.h.  */
46836 _ACEOF
46837 cat confdefs.h >>conftest.$ac_ext
46838 cat >>conftest.$ac_ext <<_ACEOF
46839 /* end confdefs.h.  */
46840 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
46841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46842 #define shl_load innocuous_shl_load
46843
46844 /* System header to define __stub macros and hopefully few prototypes,
46845     which can conflict with char shl_load (); below.
46846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46847     <limits.h> exists even on freestanding compilers.  */
46848
46849 #ifdef __STDC__
46850 # include <limits.h>
46851 #else
46852 # include <assert.h>
46853 #endif
46854
46855 #undef shl_load
46856
46857 /* Override any GCC internal prototype to avoid an error.
46858    Use char because int might match the return type of a GCC
46859    builtin and then its argument prototype would still apply.  */
46860 #ifdef __cplusplus
46861 extern "C"
46862 #endif
46863 char shl_load ();
46864 /* The GNU C library defines this for functions which it implements
46865     to always fail with ENOSYS.  Some functions are actually named
46866     something starting with __ and the normal name is an alias.  */
46867 #if defined __stub_shl_load || defined __stub___shl_load
46868 choke me
46869 #endif
46870
46871 int
46872 main ()
46873 {
46874 return shl_load ();
46875   ;
46876   return 0;
46877 }
46878 _ACEOF
46879 rm -f conftest.$ac_objext conftest$ac_exeext
46880 if { (ac_try="$ac_link"
46881 case "(($ac_try" in
46882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46883   *) ac_try_echo=$ac_try;;
46884 esac
46885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46886   (eval "$ac_link") 2>conftest.er1
46887   ac_status=$?
46888   grep -v '^ *+' conftest.er1 >conftest.err
46889   rm -f conftest.er1
46890   cat conftest.err >&5
46891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46892   (exit $ac_status); } && {
46893          test -z "$ac_c_werror_flag" ||
46894          test ! -s conftest.err
46895        } && test -s conftest$ac_exeext &&
46896        $as_test_x conftest$ac_exeext; then
46897   ac_cv_func_shl_load=yes
46898 else
46899   echo "$as_me: failed program was:" >&5
46900 sed 's/^/| /' conftest.$ac_ext >&5
46901
46902         ac_cv_func_shl_load=no
46903 fi
46904
46905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46906       conftest$ac_exeext conftest.$ac_ext
46907 fi
46908 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
46909 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
46910 if test $ac_cv_func_shl_load = yes; then
46911   lt_cv_dlopen="shl_load"
46912 else
46913   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
46914 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
46915 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
46916   echo $ECHO_N "(cached) $ECHO_C" >&6
46917 else
46918   ac_check_lib_save_LIBS=$LIBS
46919 LIBS="-ldld  $LIBS"
46920 cat >conftest.$ac_ext <<_ACEOF
46921 /* confdefs.h.  */
46922 _ACEOF
46923 cat confdefs.h >>conftest.$ac_ext
46924 cat >>conftest.$ac_ext <<_ACEOF
46925 /* end confdefs.h.  */
46926
46927 /* Override any GCC internal prototype to avoid an error.
46928    Use char because int might match the return type of a GCC
46929    builtin and then its argument prototype would still apply.  */
46930 #ifdef __cplusplus
46931 extern "C"
46932 #endif
46933 char shl_load ();
46934 int
46935 main ()
46936 {
46937 return shl_load ();
46938   ;
46939   return 0;
46940 }
46941 _ACEOF
46942 rm -f conftest.$ac_objext conftest$ac_exeext
46943 if { (ac_try="$ac_link"
46944 case "(($ac_try" in
46945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46946   *) ac_try_echo=$ac_try;;
46947 esac
46948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46949   (eval "$ac_link") 2>conftest.er1
46950   ac_status=$?
46951   grep -v '^ *+' conftest.er1 >conftest.err
46952   rm -f conftest.er1
46953   cat conftest.err >&5
46954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46955   (exit $ac_status); } && {
46956          test -z "$ac_c_werror_flag" ||
46957          test ! -s conftest.err
46958        } && test -s conftest$ac_exeext &&
46959        $as_test_x conftest$ac_exeext; then
46960   ac_cv_lib_dld_shl_load=yes
46961 else
46962   echo "$as_me: failed program was:" >&5
46963 sed 's/^/| /' conftest.$ac_ext >&5
46964
46965         ac_cv_lib_dld_shl_load=no
46966 fi
46967
46968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46969       conftest$ac_exeext conftest.$ac_ext
46970 LIBS=$ac_check_lib_save_LIBS
46971 fi
46972 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
46973 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
46974 if test $ac_cv_lib_dld_shl_load = yes; then
46975   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
46976 else
46977   { echo "$as_me:$LINENO: checking for dlopen" >&5
46978 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
46979 if test "${ac_cv_func_dlopen+set}" = set; then
46980   echo $ECHO_N "(cached) $ECHO_C" >&6
46981 else
46982   cat >conftest.$ac_ext <<_ACEOF
46983 /* confdefs.h.  */
46984 _ACEOF
46985 cat confdefs.h >>conftest.$ac_ext
46986 cat >>conftest.$ac_ext <<_ACEOF
46987 /* end confdefs.h.  */
46988 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
46989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46990 #define dlopen innocuous_dlopen
46991
46992 /* System header to define __stub macros and hopefully few prototypes,
46993     which can conflict with char dlopen (); below.
46994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46995     <limits.h> exists even on freestanding compilers.  */
46996
46997 #ifdef __STDC__
46998 # include <limits.h>
46999 #else
47000 # include <assert.h>
47001 #endif
47002
47003 #undef dlopen
47004
47005 /* Override any GCC internal prototype to avoid an error.
47006    Use char because int might match the return type of a GCC
47007    builtin and then its argument prototype would still apply.  */
47008 #ifdef __cplusplus
47009 extern "C"
47010 #endif
47011 char dlopen ();
47012 /* The GNU C library defines this for functions which it implements
47013     to always fail with ENOSYS.  Some functions are actually named
47014     something starting with __ and the normal name is an alias.  */
47015 #if defined __stub_dlopen || defined __stub___dlopen
47016 choke me
47017 #endif
47018
47019 int
47020 main ()
47021 {
47022 return dlopen ();
47023   ;
47024   return 0;
47025 }
47026 _ACEOF
47027 rm -f conftest.$ac_objext conftest$ac_exeext
47028 if { (ac_try="$ac_link"
47029 case "(($ac_try" in
47030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47031   *) ac_try_echo=$ac_try;;
47032 esac
47033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47034   (eval "$ac_link") 2>conftest.er1
47035   ac_status=$?
47036   grep -v '^ *+' conftest.er1 >conftest.err
47037   rm -f conftest.er1
47038   cat conftest.err >&5
47039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47040   (exit $ac_status); } && {
47041          test -z "$ac_c_werror_flag" ||
47042          test ! -s conftest.err
47043        } && test -s conftest$ac_exeext &&
47044        $as_test_x conftest$ac_exeext; then
47045   ac_cv_func_dlopen=yes
47046 else
47047   echo "$as_me: failed program was:" >&5
47048 sed 's/^/| /' conftest.$ac_ext >&5
47049
47050         ac_cv_func_dlopen=no
47051 fi
47052
47053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47054       conftest$ac_exeext conftest.$ac_ext
47055 fi
47056 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
47057 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
47058 if test $ac_cv_func_dlopen = yes; then
47059   lt_cv_dlopen="dlopen"
47060 else
47061   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
47062 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
47063 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
47064   echo $ECHO_N "(cached) $ECHO_C" >&6
47065 else
47066   ac_check_lib_save_LIBS=$LIBS
47067 LIBS="-ldl  $LIBS"
47068 cat >conftest.$ac_ext <<_ACEOF
47069 /* confdefs.h.  */
47070 _ACEOF
47071 cat confdefs.h >>conftest.$ac_ext
47072 cat >>conftest.$ac_ext <<_ACEOF
47073 /* end confdefs.h.  */
47074
47075 /* Override any GCC internal prototype to avoid an error.
47076    Use char because int might match the return type of a GCC
47077    builtin and then its argument prototype would still apply.  */
47078 #ifdef __cplusplus
47079 extern "C"
47080 #endif
47081 char dlopen ();
47082 int
47083 main ()
47084 {
47085 return dlopen ();
47086   ;
47087   return 0;
47088 }
47089 _ACEOF
47090 rm -f conftest.$ac_objext conftest$ac_exeext
47091 if { (ac_try="$ac_link"
47092 case "(($ac_try" in
47093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47094   *) ac_try_echo=$ac_try;;
47095 esac
47096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47097   (eval "$ac_link") 2>conftest.er1
47098   ac_status=$?
47099   grep -v '^ *+' conftest.er1 >conftest.err
47100   rm -f conftest.er1
47101   cat conftest.err >&5
47102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47103   (exit $ac_status); } && {
47104          test -z "$ac_c_werror_flag" ||
47105          test ! -s conftest.err
47106        } && test -s conftest$ac_exeext &&
47107        $as_test_x conftest$ac_exeext; then
47108   ac_cv_lib_dl_dlopen=yes
47109 else
47110   echo "$as_me: failed program was:" >&5
47111 sed 's/^/| /' conftest.$ac_ext >&5
47112
47113         ac_cv_lib_dl_dlopen=no
47114 fi
47115
47116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47117       conftest$ac_exeext conftest.$ac_ext
47118 LIBS=$ac_check_lib_save_LIBS
47119 fi
47120 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
47121 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
47122 if test $ac_cv_lib_dl_dlopen = yes; then
47123   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
47124 else
47125   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
47126 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
47127 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
47128   echo $ECHO_N "(cached) $ECHO_C" >&6
47129 else
47130   ac_check_lib_save_LIBS=$LIBS
47131 LIBS="-lsvld  $LIBS"
47132 cat >conftest.$ac_ext <<_ACEOF
47133 /* confdefs.h.  */
47134 _ACEOF
47135 cat confdefs.h >>conftest.$ac_ext
47136 cat >>conftest.$ac_ext <<_ACEOF
47137 /* end confdefs.h.  */
47138
47139 /* Override any GCC internal prototype to avoid an error.
47140    Use char because int might match the return type of a GCC
47141    builtin and then its argument prototype would still apply.  */
47142 #ifdef __cplusplus
47143 extern "C"
47144 #endif
47145 char dlopen ();
47146 int
47147 main ()
47148 {
47149 return dlopen ();
47150   ;
47151   return 0;
47152 }
47153 _ACEOF
47154 rm -f conftest.$ac_objext conftest$ac_exeext
47155 if { (ac_try="$ac_link"
47156 case "(($ac_try" in
47157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47158   *) ac_try_echo=$ac_try;;
47159 esac
47160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47161   (eval "$ac_link") 2>conftest.er1
47162   ac_status=$?
47163   grep -v '^ *+' conftest.er1 >conftest.err
47164   rm -f conftest.er1
47165   cat conftest.err >&5
47166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47167   (exit $ac_status); } && {
47168          test -z "$ac_c_werror_flag" ||
47169          test ! -s conftest.err
47170        } && test -s conftest$ac_exeext &&
47171        $as_test_x conftest$ac_exeext; then
47172   ac_cv_lib_svld_dlopen=yes
47173 else
47174   echo "$as_me: failed program was:" >&5
47175 sed 's/^/| /' conftest.$ac_ext >&5
47176
47177         ac_cv_lib_svld_dlopen=no
47178 fi
47179
47180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47181       conftest$ac_exeext conftest.$ac_ext
47182 LIBS=$ac_check_lib_save_LIBS
47183 fi
47184 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
47185 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
47186 if test $ac_cv_lib_svld_dlopen = yes; then
47187   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
47188 else
47189   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
47190 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
47191 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
47192   echo $ECHO_N "(cached) $ECHO_C" >&6
47193 else
47194   ac_check_lib_save_LIBS=$LIBS
47195 LIBS="-ldld  $LIBS"
47196 cat >conftest.$ac_ext <<_ACEOF
47197 /* confdefs.h.  */
47198 _ACEOF
47199 cat confdefs.h >>conftest.$ac_ext
47200 cat >>conftest.$ac_ext <<_ACEOF
47201 /* end confdefs.h.  */
47202
47203 /* Override any GCC internal prototype to avoid an error.
47204    Use char because int might match the return type of a GCC
47205    builtin and then its argument prototype would still apply.  */
47206 #ifdef __cplusplus
47207 extern "C"
47208 #endif
47209 char dld_link ();
47210 int
47211 main ()
47212 {
47213 return dld_link ();
47214   ;
47215   return 0;
47216 }
47217 _ACEOF
47218 rm -f conftest.$ac_objext conftest$ac_exeext
47219 if { (ac_try="$ac_link"
47220 case "(($ac_try" in
47221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47222   *) ac_try_echo=$ac_try;;
47223 esac
47224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47225   (eval "$ac_link") 2>conftest.er1
47226   ac_status=$?
47227   grep -v '^ *+' conftest.er1 >conftest.err
47228   rm -f conftest.er1
47229   cat conftest.err >&5
47230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47231   (exit $ac_status); } && {
47232          test -z "$ac_c_werror_flag" ||
47233          test ! -s conftest.err
47234        } && test -s conftest$ac_exeext &&
47235        $as_test_x conftest$ac_exeext; then
47236   ac_cv_lib_dld_dld_link=yes
47237 else
47238   echo "$as_me: failed program was:" >&5
47239 sed 's/^/| /' conftest.$ac_ext >&5
47240
47241         ac_cv_lib_dld_dld_link=no
47242 fi
47243
47244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47245       conftest$ac_exeext conftest.$ac_ext
47246 LIBS=$ac_check_lib_save_LIBS
47247 fi
47248 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
47249 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
47250 if test $ac_cv_lib_dld_dld_link = yes; then
47251   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
47252 fi
47253
47254
47255 fi
47256
47257
47258 fi
47259
47260
47261 fi
47262
47263
47264 fi
47265
47266
47267 fi
47268
47269     ;;
47270   esac
47271
47272   if test "x$lt_cv_dlopen" != xno; then
47273     enable_dlopen=yes
47274   else
47275     enable_dlopen=no
47276   fi
47277
47278   case $lt_cv_dlopen in
47279   dlopen)
47280     save_CPPFLAGS="$CPPFLAGS"
47281     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
47282
47283     save_LDFLAGS="$LDFLAGS"
47284     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
47285
47286     save_LIBS="$LIBS"
47287     LIBS="$lt_cv_dlopen_libs $LIBS"
47288
47289     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
47290 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
47291 if test "${lt_cv_dlopen_self+set}" = set; then
47292   echo $ECHO_N "(cached) $ECHO_C" >&6
47293 else
47294           if test "$cross_compiling" = yes; then :
47295   lt_cv_dlopen_self=cross
47296 else
47297   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
47298   lt_status=$lt_dlunknown
47299   cat > conftest.$ac_ext <<EOF
47300 #line 47300 "configure"
47301 #include "confdefs.h"
47302
47303 #if HAVE_DLFCN_H
47304 #include <dlfcn.h>
47305 #endif
47306
47307 #include <stdio.h>
47308
47309 #ifdef RTLD_GLOBAL
47310 #  define LT_DLGLOBAL           RTLD_GLOBAL
47311 #else
47312 #  ifdef DL_GLOBAL
47313 #    define LT_DLGLOBAL         DL_GLOBAL
47314 #  else
47315 #    define LT_DLGLOBAL         0
47316 #  endif
47317 #endif
47318
47319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
47320    find out it does not work in some platform. */
47321 #ifndef LT_DLLAZY_OR_NOW
47322 #  ifdef RTLD_LAZY
47323 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
47324 #  else
47325 #    ifdef DL_LAZY
47326 #      define LT_DLLAZY_OR_NOW          DL_LAZY
47327 #    else
47328 #      ifdef RTLD_NOW
47329 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
47330 #      else
47331 #        ifdef DL_NOW
47332 #          define LT_DLLAZY_OR_NOW      DL_NOW
47333 #        else
47334 #          define LT_DLLAZY_OR_NOW      0
47335 #        endif
47336 #      endif
47337 #    endif
47338 #  endif
47339 #endif
47340
47341 #ifdef __cplusplus
47342 extern "C" void exit (int);
47343 #endif
47344
47345 void fnord() { int i=42;}
47346 int main ()
47347 {
47348   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
47349   int status = $lt_dlunknown;
47350
47351   if (self)
47352     {
47353       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
47354       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
47355       /* dlclose (self); */
47356     }
47357
47358     exit (status);
47359 }
47360 EOF
47361   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47362   (eval $ac_link) 2>&5
47363   ac_status=$?
47364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47365   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
47366     (./conftest; exit; ) >&5 2>/dev/null
47367     lt_status=$?
47368     case x$lt_status in
47369       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
47370       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
47371       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
47372     esac
47373   else :
47374     # compilation failed
47375     lt_cv_dlopen_self=no
47376   fi
47377 fi
47378 rm -fr conftest*
47379
47380
47381 fi
47382 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
47383 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
47384
47385     if test "x$lt_cv_dlopen_self" = xyes; then
47386       LDFLAGS="$LDFLAGS $link_static_flag"
47387       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
47388 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
47389 if test "${lt_cv_dlopen_self_static+set}" = set; then
47390   echo $ECHO_N "(cached) $ECHO_C" >&6
47391 else
47392           if test "$cross_compiling" = yes; then :
47393   lt_cv_dlopen_self_static=cross
47394 else
47395   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
47396   lt_status=$lt_dlunknown
47397   cat > conftest.$ac_ext <<EOF
47398 #line 47398 "configure"
47399 #include "confdefs.h"
47400
47401 #if HAVE_DLFCN_H
47402 #include <dlfcn.h>
47403 #endif
47404
47405 #include <stdio.h>
47406
47407 #ifdef RTLD_GLOBAL
47408 #  define LT_DLGLOBAL           RTLD_GLOBAL
47409 #else
47410 #  ifdef DL_GLOBAL
47411 #    define LT_DLGLOBAL         DL_GLOBAL
47412 #  else
47413 #    define LT_DLGLOBAL         0
47414 #  endif
47415 #endif
47416
47417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
47418    find out it does not work in some platform. */
47419 #ifndef LT_DLLAZY_OR_NOW
47420 #  ifdef RTLD_LAZY
47421 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
47422 #  else
47423 #    ifdef DL_LAZY
47424 #      define LT_DLLAZY_OR_NOW          DL_LAZY
47425 #    else
47426 #      ifdef RTLD_NOW
47427 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
47428 #      else
47429 #        ifdef DL_NOW
47430 #          define LT_DLLAZY_OR_NOW      DL_NOW
47431 #        else
47432 #          define LT_DLLAZY_OR_NOW      0
47433 #        endif
47434 #      endif
47435 #    endif
47436 #  endif
47437 #endif
47438
47439 #ifdef __cplusplus
47440 extern "C" void exit (int);
47441 #endif
47442
47443 void fnord() { int i=42;}
47444 int main ()
47445 {
47446   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
47447   int status = $lt_dlunknown;
47448
47449   if (self)
47450     {
47451       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
47452       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
47453       /* dlclose (self); */
47454     }
47455
47456     exit (status);
47457 }
47458 EOF
47459   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47460   (eval $ac_link) 2>&5
47461   ac_status=$?
47462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47463   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
47464     (./conftest; exit; ) >&5 2>/dev/null
47465     lt_status=$?
47466     case x$lt_status in
47467       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
47468       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
47469       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
47470     esac
47471   else :
47472     # compilation failed
47473     lt_cv_dlopen_self_static=no
47474   fi
47475 fi
47476 rm -fr conftest*
47477
47478
47479 fi
47480 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
47481 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
47482     fi
47483
47484     CPPFLAGS="$save_CPPFLAGS"
47485     LDFLAGS="$save_LDFLAGS"
47486     LIBS="$save_LIBS"
47487     ;;
47488   esac
47489
47490   case $lt_cv_dlopen_self in
47491   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
47492   *) enable_dlopen_self=unknown ;;
47493   esac
47494
47495   case $lt_cv_dlopen_self_static in
47496   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
47497   *) enable_dlopen_self_static=unknown ;;
47498   esac
47499 fi
47500
47501
47502 # The else clause should only fire when bootstrapping the
47503 # libtool distribution, otherwise you forgot to ship ltmain.sh
47504 # with your package, and you will get complaints that there are
47505 # no rules to generate ltmain.sh.
47506 if test -f "$ltmain"; then
47507   # See if we are running on zsh, and set the options which allow our commands through
47508   # without removal of \ escapes.
47509   if test -n "${ZSH_VERSION+set}" ; then
47510     setopt NO_GLOB_SUBST
47511   fi
47512   # Now quote all the things that may contain metacharacters while being
47513   # careful not to overquote the AC_SUBSTed values.  We take copies of the
47514   # variables and quote the copies for generation of the libtool script.
47515   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
47516     SED SHELL STRIP \
47517     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
47518     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
47519     deplibs_check_method reload_flag reload_cmds need_locks \
47520     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
47521     lt_cv_sys_global_symbol_to_c_name_address \
47522     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
47523     old_postinstall_cmds old_postuninstall_cmds \
47524     compiler_GCJ \
47525     CC_GCJ \
47526     LD_GCJ \
47527     lt_prog_compiler_wl_GCJ \
47528     lt_prog_compiler_pic_GCJ \
47529     lt_prog_compiler_static_GCJ \
47530     lt_prog_compiler_no_builtin_flag_GCJ \
47531     export_dynamic_flag_spec_GCJ \
47532     thread_safe_flag_spec_GCJ \
47533     whole_archive_flag_spec_GCJ \
47534     enable_shared_with_static_runtimes_GCJ \
47535     old_archive_cmds_GCJ \
47536     old_archive_from_new_cmds_GCJ \
47537     predep_objects_GCJ \
47538     postdep_objects_GCJ \
47539     predeps_GCJ \
47540     postdeps_GCJ \
47541     compiler_lib_search_path_GCJ \
47542     archive_cmds_GCJ \
47543     archive_expsym_cmds_GCJ \
47544     postinstall_cmds_GCJ \
47545     postuninstall_cmds_GCJ \
47546     old_archive_from_expsyms_cmds_GCJ \
47547     allow_undefined_flag_GCJ \
47548     no_undefined_flag_GCJ \
47549     export_symbols_cmds_GCJ \
47550     hardcode_libdir_flag_spec_GCJ \
47551     hardcode_libdir_flag_spec_ld_GCJ \
47552     hardcode_libdir_separator_GCJ \
47553     hardcode_automatic_GCJ \
47554     module_cmds_GCJ \
47555     module_expsym_cmds_GCJ \
47556     lt_cv_prog_compiler_c_o_GCJ \
47557     exclude_expsyms_GCJ \
47558     include_expsyms_GCJ; do
47559
47560     case $var in
47561     old_archive_cmds_GCJ | \
47562     old_archive_from_new_cmds_GCJ | \
47563     archive_cmds_GCJ | \
47564     archive_expsym_cmds_GCJ | \
47565     module_cmds_GCJ | \
47566     module_expsym_cmds_GCJ | \
47567     old_archive_from_expsyms_cmds_GCJ | \
47568     export_symbols_cmds_GCJ | \
47569     extract_expsyms_cmds | reload_cmds | finish_cmds | \
47570     postinstall_cmds | postuninstall_cmds | \
47571     old_postinstall_cmds | old_postuninstall_cmds | \
47572     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
47573       # Double-quote double-evaled strings.
47574       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
47575       ;;
47576     *)
47577       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
47578       ;;
47579     esac
47580   done
47581
47582   case $lt_echo in
47583   *'\$0 --fallback-echo"')
47584     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
47585     ;;
47586   esac
47587
47588 cfgfile="$ofile"
47589
47590   cat <<__EOF__ >> "$cfgfile"
47591 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
47592
47593 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
47594
47595 # Shell to use when invoking shell scripts.
47596 SHELL=$lt_SHELL
47597
47598 # Whether or not to build shared libraries.
47599 build_libtool_libs=$enable_shared
47600
47601 # Whether or not to build static libraries.
47602 build_old_libs=$enable_static
47603
47604 # Whether or not to add -lc for building shared libraries.
47605 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
47606
47607 # Whether or not to disallow shared libs when runtime libs are static
47608 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
47609
47610 # Whether or not to optimize for fast installation.
47611 fast_install=$enable_fast_install
47612
47613 # The host system.
47614 host_alias=$host_alias
47615 host=$host
47616 host_os=$host_os
47617
47618 # The build system.
47619 build_alias=$build_alias
47620 build=$build
47621 build_os=$build_os
47622
47623 # An echo program that does not interpret backslashes.
47624 echo=$lt_echo
47625
47626 # The archiver.
47627 AR=$lt_AR
47628 AR_FLAGS=$lt_AR_FLAGS
47629
47630 # A C compiler.
47631 LTCC=$lt_LTCC
47632
47633 # A language-specific compiler.
47634 CC=$lt_compiler_GCJ
47635
47636 # Is the compiler the GNU C compiler?
47637 with_gcc=$GCC_GCJ
47638
47639 # An ERE matcher.
47640 EGREP=$lt_EGREP
47641
47642 # The linker used to build libraries.
47643 LD=$lt_LD_GCJ
47644
47645 # Whether we need hard or soft links.
47646 LN_S=$lt_LN_S
47647
47648 # A BSD-compatible nm program.
47649 NM=$lt_NM
47650
47651 # A symbol stripping program
47652 STRIP=$lt_STRIP
47653
47654 # Used to examine libraries when file_magic_cmd begins "file"
47655 MAGIC_CMD=$MAGIC_CMD
47656
47657 # Used on cygwin: DLL creation program.
47658 DLLTOOL="$DLLTOOL"
47659
47660 # Used on cygwin: object dumper.
47661 OBJDUMP="$OBJDUMP"
47662
47663 # Used on cygwin: assembler.
47664 AS="$AS"
47665
47666 # The name of the directory that contains temporary libtool files.
47667 objdir=$objdir
47668
47669 # How to create reloadable object files.
47670 reload_flag=$lt_reload_flag
47671 reload_cmds=$lt_reload_cmds
47672
47673 # How to pass a linker flag through the compiler.
47674 wl=$lt_lt_prog_compiler_wl_GCJ
47675
47676 # Object file suffix (normally "o").
47677 objext="$ac_objext"
47678
47679 # Old archive suffix (normally "a").
47680 libext="$libext"
47681
47682 # Shared library suffix (normally ".so").
47683 shrext_cmds='$shrext_cmds'
47684
47685 # Executable file suffix (normally "").
47686 exeext="$exeext"
47687
47688 # Additional compiler flags for building library objects.
47689 pic_flag=$lt_lt_prog_compiler_pic_GCJ
47690 pic_mode=$pic_mode
47691
47692 # What is the maximum length of a command?
47693 max_cmd_len=$lt_cv_sys_max_cmd_len
47694
47695 # Does compiler simultaneously support -c and -o options?
47696 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
47697
47698 # Must we lock files when doing compilation?
47699 need_locks=$lt_need_locks
47700
47701 # Do we need the lib prefix for modules?
47702 need_lib_prefix=$need_lib_prefix
47703
47704 # Do we need a version for libraries?
47705 need_version=$need_version
47706
47707 # Whether dlopen is supported.
47708 dlopen_support=$enable_dlopen
47709
47710 # Whether dlopen of programs is supported.
47711 dlopen_self=$enable_dlopen_self
47712
47713 # Whether dlopen of statically linked programs is supported.
47714 dlopen_self_static=$enable_dlopen_self_static
47715
47716 # Compiler flag to prevent dynamic linking.
47717 link_static_flag=$lt_lt_prog_compiler_static_GCJ
47718
47719 # Compiler flag to turn off builtin functions.
47720 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
47721
47722 # Compiler flag to allow reflexive dlopens.
47723 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
47724
47725 # Compiler flag to generate shared objects directly from archives.
47726 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
47727
47728 # Compiler flag to generate thread-safe objects.
47729 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
47730
47731 # Library versioning type.
47732 version_type=$version_type
47733
47734 # Format of library name prefix.
47735 libname_spec=$lt_libname_spec
47736
47737 # List of archive names.  First name is the real one, the rest are links.
47738 # The last name is the one that the linker finds with -lNAME.
47739 library_names_spec=$lt_library_names_spec
47740
47741 # The coded name of the library, if different from the real name.
47742 soname_spec=$lt_soname_spec
47743
47744 # Commands used to build and install an old-style archive.
47745 RANLIB=$lt_RANLIB
47746 old_archive_cmds=$lt_old_archive_cmds_GCJ
47747 old_postinstall_cmds=$lt_old_postinstall_cmds
47748 old_postuninstall_cmds=$lt_old_postuninstall_cmds
47749
47750 # Create an old-style archive from a shared archive.
47751 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
47752
47753 # Create a temporary old-style archive to link instead of a shared archive.
47754 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
47755
47756 # Commands used to build and install a shared archive.
47757 archive_cmds=$lt_archive_cmds_GCJ
47758 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
47759 postinstall_cmds=$lt_postinstall_cmds
47760 postuninstall_cmds=$lt_postuninstall_cmds
47761
47762 # Commands used to build a loadable module (assumed same as above if empty)
47763 module_cmds=$lt_module_cmds_GCJ
47764 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
47765
47766 # Commands to strip libraries.
47767 old_striplib=$lt_old_striplib
47768 striplib=$lt_striplib
47769
47770 # Dependencies to place before the objects being linked to create a
47771 # shared library.
47772 predep_objects=$lt_predep_objects_GCJ
47773
47774 # Dependencies to place after the objects being linked to create a
47775 # shared library.
47776 postdep_objects=$lt_postdep_objects_GCJ
47777
47778 # Dependencies to place before the objects being linked to create a
47779 # shared library.
47780 predeps=$lt_predeps_GCJ
47781
47782 # Dependencies to place after the objects being linked to create a
47783 # shared library.
47784 postdeps=$lt_postdeps_GCJ
47785
47786 # The library search path used internally by the compiler when linking
47787 # a shared library.
47788 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
47789
47790 # Method to check whether dependent libraries are shared objects.
47791 deplibs_check_method=$lt_deplibs_check_method
47792
47793 # Command to use when deplibs_check_method == file_magic.
47794 file_magic_cmd=$lt_file_magic_cmd
47795
47796 # Flag that allows shared libraries with undefined symbols to be built.
47797 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
47798
47799 # Flag that forces no undefined symbols.
47800 no_undefined_flag=$lt_no_undefined_flag_GCJ
47801
47802 # Commands used to finish a libtool library installation in a directory.
47803 finish_cmds=$lt_finish_cmds
47804
47805 # Same as above, but a single script fragment to be evaled but not shown.
47806 finish_eval=$lt_finish_eval
47807
47808 # Take the output of nm and produce a listing of raw symbols and C names.
47809 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47810
47811 # Transform the output of nm in a proper C declaration
47812 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47813
47814 # Transform the output of nm in a C name address pair
47815 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47816
47817 # This is the shared library runtime path variable.
47818 runpath_var=$runpath_var
47819
47820 # This is the shared library path variable.
47821 shlibpath_var=$shlibpath_var
47822
47823 # Is shlibpath searched before the hard-coded library search path?
47824 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47825
47826 # How to hardcode a shared library path into an executable.
47827 hardcode_action=$hardcode_action_GCJ
47828
47829 # Whether we should hardcode library paths into libraries.
47830 hardcode_into_libs=$hardcode_into_libs
47831
47832 # Flag to hardcode \$libdir into a binary during linking.
47833 # This must work even if \$libdir does not exist.
47834 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
47835
47836 # If ld is used when linking, flag to hardcode \$libdir into
47837 # a binary during linking. This must work even if \$libdir does
47838 # not exist.
47839 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
47840
47841 # Whether we need a single -rpath flag with a separated argument.
47842 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
47843
47844 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
47845 # resulting binary.
47846 hardcode_direct=$hardcode_direct_GCJ
47847
47848 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
47849 # resulting binary.
47850 hardcode_minus_L=$hardcode_minus_L_GCJ
47851
47852 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
47853 # the resulting binary.
47854 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
47855
47856 # Set to yes if building a shared library automatically hardcodes DIR into the library
47857 # and all subsequent libraries and executables linked against it.
47858 hardcode_automatic=$hardcode_automatic_GCJ
47859
47860 # Variables whose values should be saved in libtool wrapper scripts and
47861 # restored at relink time.
47862 variables_saved_for_relink="$variables_saved_for_relink"
47863
47864 # Whether libtool must link a program against all its dependency libraries.
47865 link_all_deplibs=$link_all_deplibs_GCJ
47866
47867 # Compile-time system search path for libraries
47868 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47869
47870 # Run-time system search path for libraries
47871 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47872
47873 # Fix the shell variable \$srcfile for the compiler.
47874 fix_srcfile_path="$fix_srcfile_path_GCJ"
47875
47876 # Set to yes if exported symbols are required.
47877 always_export_symbols=$always_export_symbols_GCJ
47878
47879 # The commands to list exported symbols.
47880 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
47881
47882 # The commands to extract the exported symbol list from a shared archive.
47883 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47884
47885 # Symbols that should not be listed in the preloaded symbols.
47886 exclude_expsyms=$lt_exclude_expsyms_GCJ
47887
47888 # Symbols that must always be exported.
47889 include_expsyms=$lt_include_expsyms_GCJ
47890
47891 # ### END LIBTOOL TAG CONFIG: $tagname
47892
47893 __EOF__
47894
47895
47896 else
47897   # If there is no Makefile yet, we rely on a make rule to execute
47898   # `config.status --recheck' to rerun these tests and create the
47899   # libtool script then.
47900   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
47901   if test -f "$ltmain_in"; then
47902     test -f Makefile && make "$ltmain"
47903   fi
47904 fi
47905
47906
47907 ac_ext=c
47908 ac_cpp='$CPP $CPPFLAGS'
47909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47912
47913 CC="$lt_save_CC"
47914
47915         else
47916           tagname=""
47917         fi
47918         ;;
47919
47920       RC)
47921
47922
47923 # Source file extension for RC test sources.
47924 ac_ext=rc
47925
47926 # Object file extension for compiled RC test sources.
47927 objext=o
47928 objext_RC=$objext
47929
47930 # Code to be used in simple compile tests
47931 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
47932
47933 # Code to be used in simple link tests
47934 lt_simple_link_test_code="$lt_simple_compile_test_code"
47935
47936 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
47937
47938 # If no C compiler was specified, use CC.
47939 LTCC=${LTCC-"$CC"}
47940
47941 # Allow CC to be a program name with arguments.
47942 compiler=$CC
47943
47944
47945 # save warnings/boilerplate of simple test code
47946 ac_outfile=conftest.$ac_objext
47947 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
47948 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
47949 _lt_compiler_boilerplate=`cat conftest.err`
47950 $rm conftest*
47951
47952 ac_outfile=conftest.$ac_objext
47953 printf "$lt_simple_link_test_code" >conftest.$ac_ext
47954 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
47955 _lt_linker_boilerplate=`cat conftest.err`
47956 $rm conftest*
47957
47958
47959 # Allow CC to be a program name with arguments.
47960 lt_save_CC="$CC"
47961 CC=${RC-"windres"}
47962 compiler=$CC
47963 compiler_RC=$CC
47964 for cc_temp in $compiler""; do
47965   case $cc_temp in
47966     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
47967     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
47968     \-*) ;;
47969     *) break;;
47970   esac
47971 done
47972 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
47973
47974 lt_cv_prog_compiler_c_o_RC=yes
47975
47976 # The else clause should only fire when bootstrapping the
47977 # libtool distribution, otherwise you forgot to ship ltmain.sh
47978 # with your package, and you will get complaints that there are
47979 # no rules to generate ltmain.sh.
47980 if test -f "$ltmain"; then
47981   # See if we are running on zsh, and set the options which allow our commands through
47982   # without removal of \ escapes.
47983   if test -n "${ZSH_VERSION+set}" ; then
47984     setopt NO_GLOB_SUBST
47985   fi
47986   # Now quote all the things that may contain metacharacters while being
47987   # careful not to overquote the AC_SUBSTed values.  We take copies of the
47988   # variables and quote the copies for generation of the libtool script.
47989   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
47990     SED SHELL STRIP \
47991     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
47992     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
47993     deplibs_check_method reload_flag reload_cmds need_locks \
47994     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
47995     lt_cv_sys_global_symbol_to_c_name_address \
47996     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
47997     old_postinstall_cmds old_postuninstall_cmds \
47998     compiler_RC \
47999     CC_RC \
48000     LD_RC \
48001     lt_prog_compiler_wl_RC \
48002     lt_prog_compiler_pic_RC \
48003     lt_prog_compiler_static_RC \
48004     lt_prog_compiler_no_builtin_flag_RC \
48005     export_dynamic_flag_spec_RC \
48006     thread_safe_flag_spec_RC \
48007     whole_archive_flag_spec_RC \
48008     enable_shared_with_static_runtimes_RC \
48009     old_archive_cmds_RC \
48010     old_archive_from_new_cmds_RC \
48011     predep_objects_RC \
48012     postdep_objects_RC \
48013     predeps_RC \
48014     postdeps_RC \
48015     compiler_lib_search_path_RC \
48016     archive_cmds_RC \
48017     archive_expsym_cmds_RC \
48018     postinstall_cmds_RC \
48019     postuninstall_cmds_RC \
48020     old_archive_from_expsyms_cmds_RC \
48021     allow_undefined_flag_RC \
48022     no_undefined_flag_RC \
48023     export_symbols_cmds_RC \
48024     hardcode_libdir_flag_spec_RC \
48025     hardcode_libdir_flag_spec_ld_RC \
48026     hardcode_libdir_separator_RC \
48027     hardcode_automatic_RC \
48028     module_cmds_RC \
48029     module_expsym_cmds_RC \
48030     lt_cv_prog_compiler_c_o_RC \
48031     exclude_expsyms_RC \
48032     include_expsyms_RC; do
48033
48034     case $var in
48035     old_archive_cmds_RC | \
48036     old_archive_from_new_cmds_RC | \
48037     archive_cmds_RC | \
48038     archive_expsym_cmds_RC | \
48039     module_cmds_RC | \
48040     module_expsym_cmds_RC | \
48041     old_archive_from_expsyms_cmds_RC | \
48042     export_symbols_cmds_RC | \
48043     extract_expsyms_cmds | reload_cmds | finish_cmds | \
48044     postinstall_cmds | postuninstall_cmds | \
48045     old_postinstall_cmds | old_postuninstall_cmds | \
48046     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
48047       # Double-quote double-evaled strings.
48048       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
48049       ;;
48050     *)
48051       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
48052       ;;
48053     esac
48054   done
48055
48056   case $lt_echo in
48057   *'\$0 --fallback-echo"')
48058     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
48059     ;;
48060   esac
48061
48062 cfgfile="$ofile"
48063
48064   cat <<__EOF__ >> "$cfgfile"
48065 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
48066
48067 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
48068
48069 # Shell to use when invoking shell scripts.
48070 SHELL=$lt_SHELL
48071
48072 # Whether or not to build shared libraries.
48073 build_libtool_libs=$enable_shared
48074
48075 # Whether or not to build static libraries.
48076 build_old_libs=$enable_static
48077
48078 # Whether or not to add -lc for building shared libraries.
48079 build_libtool_need_lc=$archive_cmds_need_lc_RC
48080
48081 # Whether or not to disallow shared libs when runtime libs are static
48082 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
48083
48084 # Whether or not to optimize for fast installation.
48085 fast_install=$enable_fast_install
48086
48087 # The host system.
48088 host_alias=$host_alias
48089 host=$host
48090 host_os=$host_os
48091
48092 # The build system.
48093 build_alias=$build_alias
48094 build=$build
48095 build_os=$build_os
48096
48097 # An echo program that does not interpret backslashes.
48098 echo=$lt_echo
48099
48100 # The archiver.
48101 AR=$lt_AR
48102 AR_FLAGS=$lt_AR_FLAGS
48103
48104 # A C compiler.
48105 LTCC=$lt_LTCC
48106
48107 # A language-specific compiler.
48108 CC=$lt_compiler_RC
48109
48110 # Is the compiler the GNU C compiler?
48111 with_gcc=$GCC_RC
48112
48113 # An ERE matcher.
48114 EGREP=$lt_EGREP
48115
48116 # The linker used to build libraries.
48117 LD=$lt_LD_RC
48118
48119 # Whether we need hard or soft links.
48120 LN_S=$lt_LN_S
48121
48122 # A BSD-compatible nm program.
48123 NM=$lt_NM
48124
48125 # A symbol stripping program
48126 STRIP=$lt_STRIP
48127
48128 # Used to examine libraries when file_magic_cmd begins "file"
48129 MAGIC_CMD=$MAGIC_CMD
48130
48131 # Used on cygwin: DLL creation program.
48132 DLLTOOL="$DLLTOOL"
48133
48134 # Used on cygwin: object dumper.
48135 OBJDUMP="$OBJDUMP"
48136
48137 # Used on cygwin: assembler.
48138 AS="$AS"
48139
48140 # The name of the directory that contains temporary libtool files.
48141 objdir=$objdir
48142
48143 # How to create reloadable object files.
48144 reload_flag=$lt_reload_flag
48145 reload_cmds=$lt_reload_cmds
48146
48147 # How to pass a linker flag through the compiler.
48148 wl=$lt_lt_prog_compiler_wl_RC
48149
48150 # Object file suffix (normally "o").
48151 objext="$ac_objext"
48152
48153 # Old archive suffix (normally "a").
48154 libext="$libext"
48155
48156 # Shared library suffix (normally ".so").
48157 shrext_cmds='$shrext_cmds'
48158
48159 # Executable file suffix (normally "").
48160 exeext="$exeext"
48161
48162 # Additional compiler flags for building library objects.
48163 pic_flag=$lt_lt_prog_compiler_pic_RC
48164 pic_mode=$pic_mode
48165
48166 # What is the maximum length of a command?
48167 max_cmd_len=$lt_cv_sys_max_cmd_len
48168
48169 # Does compiler simultaneously support -c and -o options?
48170 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
48171
48172 # Must we lock files when doing compilation?
48173 need_locks=$lt_need_locks
48174
48175 # Do we need the lib prefix for modules?
48176 need_lib_prefix=$need_lib_prefix
48177
48178 # Do we need a version for libraries?
48179 need_version=$need_version
48180
48181 # Whether dlopen is supported.
48182 dlopen_support=$enable_dlopen
48183
48184 # Whether dlopen of programs is supported.
48185 dlopen_self=$enable_dlopen_self
48186
48187 # Whether dlopen of statically linked programs is supported.
48188 dlopen_self_static=$enable_dlopen_self_static
48189
48190 # Compiler flag to prevent dynamic linking.
48191 link_static_flag=$lt_lt_prog_compiler_static_RC
48192
48193 # Compiler flag to turn off builtin functions.
48194 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
48195
48196 # Compiler flag to allow reflexive dlopens.
48197 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
48198
48199 # Compiler flag to generate shared objects directly from archives.
48200 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
48201
48202 # Compiler flag to generate thread-safe objects.
48203 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
48204
48205 # Library versioning type.
48206 version_type=$version_type
48207
48208 # Format of library name prefix.
48209 libname_spec=$lt_libname_spec
48210
48211 # List of archive names.  First name is the real one, the rest are links.
48212 # The last name is the one that the linker finds with -lNAME.
48213 library_names_spec=$lt_library_names_spec
48214
48215 # The coded name of the library, if different from the real name.
48216 soname_spec=$lt_soname_spec
48217
48218 # Commands used to build and install an old-style archive.
48219 RANLIB=$lt_RANLIB
48220 old_archive_cmds=$lt_old_archive_cmds_RC
48221 old_postinstall_cmds=$lt_old_postinstall_cmds
48222 old_postuninstall_cmds=$lt_old_postuninstall_cmds
48223
48224 # Create an old-style archive from a shared archive.
48225 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
48226
48227 # Create a temporary old-style archive to link instead of a shared archive.
48228 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
48229
48230 # Commands used to build and install a shared archive.
48231 archive_cmds=$lt_archive_cmds_RC
48232 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
48233 postinstall_cmds=$lt_postinstall_cmds
48234 postuninstall_cmds=$lt_postuninstall_cmds
48235
48236 # Commands used to build a loadable module (assumed same as above if empty)
48237 module_cmds=$lt_module_cmds_RC
48238 module_expsym_cmds=$lt_module_expsym_cmds_RC
48239
48240 # Commands to strip libraries.
48241 old_striplib=$lt_old_striplib
48242 striplib=$lt_striplib
48243
48244 # Dependencies to place before the objects being linked to create a
48245 # shared library.
48246 predep_objects=$lt_predep_objects_RC
48247
48248 # Dependencies to place after the objects being linked to create a
48249 # shared library.
48250 postdep_objects=$lt_postdep_objects_RC
48251
48252 # Dependencies to place before the objects being linked to create a
48253 # shared library.
48254 predeps=$lt_predeps_RC
48255
48256 # Dependencies to place after the objects being linked to create a
48257 # shared library.
48258 postdeps=$lt_postdeps_RC
48259
48260 # The library search path used internally by the compiler when linking
48261 # a shared library.
48262 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
48263
48264 # Method to check whether dependent libraries are shared objects.
48265 deplibs_check_method=$lt_deplibs_check_method
48266
48267 # Command to use when deplibs_check_method == file_magic.
48268 file_magic_cmd=$lt_file_magic_cmd
48269
48270 # Flag that allows shared libraries with undefined symbols to be built.
48271 allow_undefined_flag=$lt_allow_undefined_flag_RC
48272
48273 # Flag that forces no undefined symbols.
48274 no_undefined_flag=$lt_no_undefined_flag_RC
48275
48276 # Commands used to finish a libtool library installation in a directory.
48277 finish_cmds=$lt_finish_cmds
48278
48279 # Same as above, but a single script fragment to be evaled but not shown.
48280 finish_eval=$lt_finish_eval
48281
48282 # Take the output of nm and produce a listing of raw symbols and C names.
48283 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
48284
48285 # Transform the output of nm in a proper C declaration
48286 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
48287
48288 # Transform the output of nm in a C name address pair
48289 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
48290
48291 # This is the shared library runtime path variable.
48292 runpath_var=$runpath_var
48293
48294 # This is the shared library path variable.
48295 shlibpath_var=$shlibpath_var
48296
48297 # Is shlibpath searched before the hard-coded library search path?
48298 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
48299
48300 # How to hardcode a shared library path into an executable.
48301 hardcode_action=$hardcode_action_RC
48302
48303 # Whether we should hardcode library paths into libraries.
48304 hardcode_into_libs=$hardcode_into_libs
48305
48306 # Flag to hardcode \$libdir into a binary during linking.
48307 # This must work even if \$libdir does not exist.
48308 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
48309
48310 # If ld is used when linking, flag to hardcode \$libdir into
48311 # a binary during linking. This must work even if \$libdir does
48312 # not exist.
48313 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
48314
48315 # Whether we need a single -rpath flag with a separated argument.
48316 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
48317
48318 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
48319 # resulting binary.
48320 hardcode_direct=$hardcode_direct_RC
48321
48322 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
48323 # resulting binary.
48324 hardcode_minus_L=$hardcode_minus_L_RC
48325
48326 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
48327 # the resulting binary.
48328 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
48329
48330 # Set to yes if building a shared library automatically hardcodes DIR into the library
48331 # and all subsequent libraries and executables linked against it.
48332 hardcode_automatic=$hardcode_automatic_RC
48333
48334 # Variables whose values should be saved in libtool wrapper scripts and
48335 # restored at relink time.
48336 variables_saved_for_relink="$variables_saved_for_relink"
48337
48338 # Whether libtool must link a program against all its dependency libraries.
48339 link_all_deplibs=$link_all_deplibs_RC
48340
48341 # Compile-time system search path for libraries
48342 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
48343
48344 # Run-time system search path for libraries
48345 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
48346
48347 # Fix the shell variable \$srcfile for the compiler.
48348 fix_srcfile_path="$fix_srcfile_path_RC"
48349
48350 # Set to yes if exported symbols are required.
48351 always_export_symbols=$always_export_symbols_RC
48352
48353 # The commands to list exported symbols.
48354 export_symbols_cmds=$lt_export_symbols_cmds_RC
48355
48356 # The commands to extract the exported symbol list from a shared archive.
48357 extract_expsyms_cmds=$lt_extract_expsyms_cmds
48358
48359 # Symbols that should not be listed in the preloaded symbols.
48360 exclude_expsyms=$lt_exclude_expsyms_RC
48361
48362 # Symbols that must always be exported.
48363 include_expsyms=$lt_include_expsyms_RC
48364
48365 # ### END LIBTOOL TAG CONFIG: $tagname
48366
48367 __EOF__
48368
48369
48370 else
48371   # If there is no Makefile yet, we rely on a make rule to execute
48372   # `config.status --recheck' to rerun these tests and create the
48373   # libtool script then.
48374   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
48375   if test -f "$ltmain_in"; then
48376     test -f Makefile && make "$ltmain"
48377   fi
48378 fi
48379
48380
48381 ac_ext=c
48382 ac_cpp='$CPP $CPPFLAGS'
48383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48386
48387 CC="$lt_save_CC"
48388
48389         ;;
48390
48391       *)
48392         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
48393 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
48394    { (exit 1); exit 1; }; }
48395         ;;
48396       esac
48397
48398       # Append the new tag name to the list of available tags.
48399       if test -n "$tagname" ; then
48400       available_tags="$available_tags $tagname"
48401     fi
48402     fi
48403   done
48404   IFS="$lt_save_ifs"
48405
48406   # Now substitute the updated list of available tags.
48407   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
48408     mv "${ofile}T" "$ofile"
48409     chmod +x "$ofile"
48410   else
48411     rm -f "${ofile}T"
48412     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
48413 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
48414    { (exit 1); exit 1; }; }
48415   fi
48416 fi
48417
48418
48419
48420 # This can be used to rebuild libtool when needed
48421 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
48422
48423 # Always use our own libtool.
48424 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
48425
48426 # Prevent multiple expansion
48427
48428
48429
48430
48431
48432
48433
48434
48435
48436
48437
48438
48439
48440
48441
48442
48443
48444
48445
48446
48447
48448
48449     # Check whether --enable-static-binary was given.
48450 if test "${enable_static_binary+set}" = set; then
48451   enableval=$enable_static_binary;
48452             case "$withval" in
48453             "" | y | ye | yes)
48454                 AMANDA_STATIC_LDFLAGS=-static
48455                 if test x"$enable_static" = x"no"; then
48456                         { { echo "$as_me:$LINENO: error: *** --enable-static-binary is incompatible with --disable-static" >&5
48457 echo "$as_me: error: *** --enable-static-binary is incompatible with --disable-static" >&2;}
48458    { (exit 1); exit 1; }; }
48459                 fi
48460                 ;;
48461             *n | no)
48462                 AMANDA_STATIC_LDFLAGS=
48463                 ;;
48464             esac
48465
48466 fi
48467
48468
48469
48470
48471 #
48472 # headers
48473 #
48474 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
48475 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
48476 if test "${ac_cv_header_stdc+set}" = set; then
48477   echo $ECHO_N "(cached) $ECHO_C" >&6
48478 else
48479   cat >conftest.$ac_ext <<_ACEOF
48480 /* confdefs.h.  */
48481 _ACEOF
48482 cat confdefs.h >>conftest.$ac_ext
48483 cat >>conftest.$ac_ext <<_ACEOF
48484 /* end confdefs.h.  */
48485 #include <stdlib.h>
48486 #include <stdarg.h>
48487 #include <string.h>
48488 #include <float.h>
48489
48490 int
48491 main ()
48492 {
48493
48494   ;
48495   return 0;
48496 }
48497 _ACEOF
48498 rm -f conftest.$ac_objext
48499 if { (ac_try="$ac_compile"
48500 case "(($ac_try" in
48501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48502   *) ac_try_echo=$ac_try;;
48503 esac
48504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48505   (eval "$ac_compile") 2>conftest.er1
48506   ac_status=$?
48507   grep -v '^ *+' conftest.er1 >conftest.err
48508   rm -f conftest.er1
48509   cat conftest.err >&5
48510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48511   (exit $ac_status); } && {
48512          test -z "$ac_c_werror_flag" ||
48513          test ! -s conftest.err
48514        } && test -s conftest.$ac_objext; then
48515   ac_cv_header_stdc=yes
48516 else
48517   echo "$as_me: failed program was:" >&5
48518 sed 's/^/| /' conftest.$ac_ext >&5
48519
48520         ac_cv_header_stdc=no
48521 fi
48522
48523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48524
48525 if test $ac_cv_header_stdc = yes; then
48526   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
48527   cat >conftest.$ac_ext <<_ACEOF
48528 /* confdefs.h.  */
48529 _ACEOF
48530 cat confdefs.h >>conftest.$ac_ext
48531 cat >>conftest.$ac_ext <<_ACEOF
48532 /* end confdefs.h.  */
48533 #include <string.h>
48534
48535 _ACEOF
48536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48537   $EGREP "memchr" >/dev/null 2>&1; then
48538   :
48539 else
48540   ac_cv_header_stdc=no
48541 fi
48542 rm -f conftest*
48543
48544 fi
48545
48546 if test $ac_cv_header_stdc = yes; then
48547   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
48548   cat >conftest.$ac_ext <<_ACEOF
48549 /* confdefs.h.  */
48550 _ACEOF
48551 cat confdefs.h >>conftest.$ac_ext
48552 cat >>conftest.$ac_ext <<_ACEOF
48553 /* end confdefs.h.  */
48554 #include <stdlib.h>
48555
48556 _ACEOF
48557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48558   $EGREP "free" >/dev/null 2>&1; then
48559   :
48560 else
48561   ac_cv_header_stdc=no
48562 fi
48563 rm -f conftest*
48564
48565 fi
48566
48567 if test $ac_cv_header_stdc = yes; then
48568   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
48569   if test "$cross_compiling" = yes; then
48570   :
48571 else
48572   cat >conftest.$ac_ext <<_ACEOF
48573 /* confdefs.h.  */
48574 _ACEOF
48575 cat confdefs.h >>conftest.$ac_ext
48576 cat >>conftest.$ac_ext <<_ACEOF
48577 /* end confdefs.h.  */
48578 #include <ctype.h>
48579 #include <stdlib.h>
48580 #if ((' ' & 0x0FF) == 0x020)
48581 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
48582 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
48583 #else
48584 # define ISLOWER(c) \
48585                    (('a' <= (c) && (c) <= 'i') \
48586                      || ('j' <= (c) && (c) <= 'r') \
48587                      || ('s' <= (c) && (c) <= 'z'))
48588 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
48589 #endif
48590
48591 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
48592 int
48593 main ()
48594 {
48595   int i;
48596   for (i = 0; i < 256; i++)
48597     if (XOR (islower (i), ISLOWER (i))
48598         || toupper (i) != TOUPPER (i))
48599       return 2;
48600   return 0;
48601 }
48602 _ACEOF
48603 rm -f conftest$ac_exeext
48604 if { (ac_try="$ac_link"
48605 case "(($ac_try" in
48606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48607   *) ac_try_echo=$ac_try;;
48608 esac
48609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48610   (eval "$ac_link") 2>&5
48611   ac_status=$?
48612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48614   { (case "(($ac_try" in
48615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48616   *) ac_try_echo=$ac_try;;
48617 esac
48618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48619   (eval "$ac_try") 2>&5
48620   ac_status=$?
48621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48622   (exit $ac_status); }; }; then
48623   :
48624 else
48625   echo "$as_me: program exited with status $ac_status" >&5
48626 echo "$as_me: failed program was:" >&5
48627 sed 's/^/| /' conftest.$ac_ext >&5
48628
48629 ( exit $ac_status )
48630 ac_cv_header_stdc=no
48631 fi
48632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48633 fi
48634
48635
48636 fi
48637 fi
48638 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
48639 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
48640 if test $ac_cv_header_stdc = yes; then
48641
48642 cat >>confdefs.h <<\_ACEOF
48643 #define STDC_HEADERS 1
48644 _ACEOF
48645
48646 fi
48647
48648 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
48649 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
48650 if test "${ac_cv_header_time+set}" = set; then
48651   echo $ECHO_N "(cached) $ECHO_C" >&6
48652 else
48653   cat >conftest.$ac_ext <<_ACEOF
48654 /* confdefs.h.  */
48655 _ACEOF
48656 cat confdefs.h >>conftest.$ac_ext
48657 cat >>conftest.$ac_ext <<_ACEOF
48658 /* end confdefs.h.  */
48659 #include <sys/types.h>
48660 #include <sys/time.h>
48661 #include <time.h>
48662
48663 int
48664 main ()
48665 {
48666 if ((struct tm *) 0)
48667 return 0;
48668   ;
48669   return 0;
48670 }
48671 _ACEOF
48672 rm -f conftest.$ac_objext
48673 if { (ac_try="$ac_compile"
48674 case "(($ac_try" in
48675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48676   *) ac_try_echo=$ac_try;;
48677 esac
48678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48679   (eval "$ac_compile") 2>conftest.er1
48680   ac_status=$?
48681   grep -v '^ *+' conftest.er1 >conftest.err
48682   rm -f conftest.er1
48683   cat conftest.err >&5
48684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48685   (exit $ac_status); } && {
48686          test -z "$ac_c_werror_flag" ||
48687          test ! -s conftest.err
48688        } && test -s conftest.$ac_objext; then
48689   ac_cv_header_time=yes
48690 else
48691   echo "$as_me: failed program was:" >&5
48692 sed 's/^/| /' conftest.$ac_ext >&5
48693
48694         ac_cv_header_time=no
48695 fi
48696
48697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48698 fi
48699 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
48700 echo "${ECHO_T}$ac_cv_header_time" >&6; }
48701 if test $ac_cv_header_time = yes; then
48702
48703 cat >>confdefs.h <<\_ACEOF
48704 #define TIME_WITH_SYS_TIME 1
48705 _ACEOF
48706
48707 fi
48708
48709
48710
48711
48712
48713
48714
48715
48716
48717
48718
48719
48720
48721
48722
48723
48724
48725
48726
48727
48728
48729
48730
48731
48732
48733
48734 for ac_header in arpa/inet.h \
48735         grp.h \
48736         libc.h \
48737         libgen.h \
48738         limits.h \
48739         math.h \
48740         netdb.h \
48741         netinet/in.h \
48742         stdarg.h \
48743         stdlib.h \
48744         string.h \
48745         strings.h \
48746         sys/file.h \
48747         sys/ioctl.h \
48748         sys/ipc.h \
48749         sys/mntent.h \
48750         sys/param.h \
48751         sys/select.h \
48752         sys/stat.h \
48753         sys/shm.h \
48754         sys/time.h \
48755         sys/types.h \
48756         sys/uio.h \
48757         syslog.h \
48758         unistd.h \
48759
48760 do
48761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48763   { echo "$as_me:$LINENO: checking for $ac_header" >&5
48764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48766   echo $ECHO_N "(cached) $ECHO_C" >&6
48767 fi
48768 ac_res=`eval echo '${'$as_ac_Header'}'`
48769                { echo "$as_me:$LINENO: result: $ac_res" >&5
48770 echo "${ECHO_T}$ac_res" >&6; }
48771 else
48772   # Is the header compilable?
48773 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
48774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
48775 cat >conftest.$ac_ext <<_ACEOF
48776 /* confdefs.h.  */
48777 _ACEOF
48778 cat confdefs.h >>conftest.$ac_ext
48779 cat >>conftest.$ac_ext <<_ACEOF
48780 /* end confdefs.h.  */
48781 $ac_includes_default
48782 #include <$ac_header>
48783 _ACEOF
48784 rm -f conftest.$ac_objext
48785 if { (ac_try="$ac_compile"
48786 case "(($ac_try" in
48787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48788   *) ac_try_echo=$ac_try;;
48789 esac
48790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48791   (eval "$ac_compile") 2>conftest.er1
48792   ac_status=$?
48793   grep -v '^ *+' conftest.er1 >conftest.err
48794   rm -f conftest.er1
48795   cat conftest.err >&5
48796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48797   (exit $ac_status); } && {
48798          test -z "$ac_c_werror_flag" ||
48799          test ! -s conftest.err
48800        } && test -s conftest.$ac_objext; then
48801   ac_header_compiler=yes
48802 else
48803   echo "$as_me: failed program was:" >&5
48804 sed 's/^/| /' conftest.$ac_ext >&5
48805
48806         ac_header_compiler=no
48807 fi
48808
48809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48811 echo "${ECHO_T}$ac_header_compiler" >&6; }
48812
48813 # Is the header present?
48814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
48815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
48816 cat >conftest.$ac_ext <<_ACEOF
48817 /* confdefs.h.  */
48818 _ACEOF
48819 cat confdefs.h >>conftest.$ac_ext
48820 cat >>conftest.$ac_ext <<_ACEOF
48821 /* end confdefs.h.  */
48822 #include <$ac_header>
48823 _ACEOF
48824 if { (ac_try="$ac_cpp conftest.$ac_ext"
48825 case "(($ac_try" in
48826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48827   *) ac_try_echo=$ac_try;;
48828 esac
48829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48830   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48831   ac_status=$?
48832   grep -v '^ *+' conftest.er1 >conftest.err
48833   rm -f conftest.er1
48834   cat conftest.err >&5
48835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48836   (exit $ac_status); } >/dev/null && {
48837          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48838          test ! -s conftest.err
48839        }; then
48840   ac_header_preproc=yes
48841 else
48842   echo "$as_me: failed program was:" >&5
48843 sed 's/^/| /' conftest.$ac_ext >&5
48844
48845   ac_header_preproc=no
48846 fi
48847
48848 rm -f conftest.err conftest.$ac_ext
48849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48850 echo "${ECHO_T}$ac_header_preproc" >&6; }
48851
48852 # So?  What about this header?
48853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48854   yes:no: )
48855     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48859     ac_header_preproc=yes
48860     ;;
48861   no:yes:* )
48862     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48864     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
48865 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
48866     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48868     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
48869 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
48870     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48872     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48874
48875     ;;
48876 esac
48877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
48878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48880   echo $ECHO_N "(cached) $ECHO_C" >&6
48881 else
48882   eval "$as_ac_Header=\$ac_header_preproc"
48883 fi
48884 ac_res=`eval echo '${'$as_ac_Header'}'`
48885                { echo "$as_me:$LINENO: result: $ac_res" >&5
48886 echo "${ECHO_T}$ac_res" >&6; }
48887
48888 fi
48889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48890   cat >>confdefs.h <<_ACEOF
48891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48892 _ACEOF
48893
48894 fi
48895
48896 done
48897
48898
48899 #
48900 # Types
48901 #
48902 { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
48903 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
48904     if test "${ac_cv_has_sockaddr_storage+set}" = set; then
48905   echo $ECHO_N "(cached) $ECHO_C" >&6
48906 else
48907   cat >conftest.$ac_ext <<_ACEOF
48908 /* confdefs.h.  */
48909 _ACEOF
48910 cat confdefs.h >>conftest.$ac_ext
48911 cat >>conftest.$ac_ext <<_ACEOF
48912 /* end confdefs.h.  */
48913
48914 #       include <sys/types.h>
48915 #       include <sys/socket.h>
48916 int
48917 main ()
48918 {
48919 u_int i = sizeof (struct sockaddr_storage)
48920   ;
48921   return 0;
48922 }
48923 _ACEOF
48924 rm -f conftest.$ac_objext
48925 if { (ac_try="$ac_compile"
48926 case "(($ac_try" in
48927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48928   *) ac_try_echo=$ac_try;;
48929 esac
48930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48931   (eval "$ac_compile") 2>conftest.er1
48932   ac_status=$?
48933   grep -v '^ *+' conftest.er1 >conftest.err
48934   rm -f conftest.er1
48935   cat conftest.err >&5
48936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48937   (exit $ac_status); } && {
48938          test -z "$ac_c_werror_flag" ||
48939          test ! -s conftest.err
48940        } && test -s conftest.$ac_objext; then
48941   ac_cv_has_sockaddr_storage=yes
48942 else
48943   echo "$as_me: failed program was:" >&5
48944 sed 's/^/| /' conftest.$ac_ext >&5
48945
48946         ac_cv_has_sockaddr_storage=no
48947 fi
48948
48949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48950 fi
48951
48952     { echo "$as_me:$LINENO: result: $ac_cv_has_sockaddr_storage" >&5
48953 echo "${ECHO_T}$ac_cv_has_sockaddr_storage" >&6; }
48954     if test $ac_cv_has_sockaddr_storage = yes ; then
48955
48956 cat >>confdefs.h <<\_ACEOF
48957 #define HAVE_SOCKADDR_STORAGE 1
48958 _ACEOF
48959
48960     fi
48961 { echo "$as_me:$LINENO: checking for int" >&5
48962 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
48963 if test "${ac_cv_type_int+set}" = set; then
48964   echo $ECHO_N "(cached) $ECHO_C" >&6
48965 else
48966   cat >conftest.$ac_ext <<_ACEOF
48967 /* confdefs.h.  */
48968 _ACEOF
48969 cat confdefs.h >>conftest.$ac_ext
48970 cat >>conftest.$ac_ext <<_ACEOF
48971 /* end confdefs.h.  */
48972 $ac_includes_default
48973 typedef int ac__type_new_;
48974 int
48975 main ()
48976 {
48977 if ((ac__type_new_ *) 0)
48978   return 0;
48979 if (sizeof (ac__type_new_))
48980   return 0;
48981   ;
48982   return 0;
48983 }
48984 _ACEOF
48985 rm -f conftest.$ac_objext
48986 if { (ac_try="$ac_compile"
48987 case "(($ac_try" in
48988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48989   *) ac_try_echo=$ac_try;;
48990 esac
48991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48992   (eval "$ac_compile") 2>conftest.er1
48993   ac_status=$?
48994   grep -v '^ *+' conftest.er1 >conftest.err
48995   rm -f conftest.er1
48996   cat conftest.err >&5
48997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48998   (exit $ac_status); } && {
48999          test -z "$ac_c_werror_flag" ||
49000          test ! -s conftest.err
49001        } && test -s conftest.$ac_objext; then
49002   ac_cv_type_int=yes
49003 else
49004   echo "$as_me: failed program was:" >&5
49005 sed 's/^/| /' conftest.$ac_ext >&5
49006
49007         ac_cv_type_int=no
49008 fi
49009
49010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49011 fi
49012 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
49013 echo "${ECHO_T}$ac_cv_type_int" >&6; }
49014
49015 # The cast to long int works around a bug in the HP C Compiler
49016 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49017 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49018 # This bug is HP SR number 8606223364.
49019 { echo "$as_me:$LINENO: checking size of int" >&5
49020 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
49021 if test "${ac_cv_sizeof_int+set}" = set; then
49022   echo $ECHO_N "(cached) $ECHO_C" >&6
49023 else
49024   if test "$cross_compiling" = yes; then
49025   # Depending upon the size, compute the lo and hi bounds.
49026 cat >conftest.$ac_ext <<_ACEOF
49027 /* confdefs.h.  */
49028 _ACEOF
49029 cat confdefs.h >>conftest.$ac_ext
49030 cat >>conftest.$ac_ext <<_ACEOF
49031 /* end confdefs.h.  */
49032 $ac_includes_default
49033    typedef int ac__type_sizeof_;
49034 int
49035 main ()
49036 {
49037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
49038 test_array [0] = 0
49039
49040   ;
49041   return 0;
49042 }
49043 _ACEOF
49044 rm -f conftest.$ac_objext
49045 if { (ac_try="$ac_compile"
49046 case "(($ac_try" in
49047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49048   *) ac_try_echo=$ac_try;;
49049 esac
49050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49051   (eval "$ac_compile") 2>conftest.er1
49052   ac_status=$?
49053   grep -v '^ *+' conftest.er1 >conftest.err
49054   rm -f conftest.er1
49055   cat conftest.err >&5
49056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49057   (exit $ac_status); } && {
49058          test -z "$ac_c_werror_flag" ||
49059          test ! -s conftest.err
49060        } && test -s conftest.$ac_objext; then
49061   ac_lo=0 ac_mid=0
49062   while :; do
49063     cat >conftest.$ac_ext <<_ACEOF
49064 /* confdefs.h.  */
49065 _ACEOF
49066 cat confdefs.h >>conftest.$ac_ext
49067 cat >>conftest.$ac_ext <<_ACEOF
49068 /* end confdefs.h.  */
49069 $ac_includes_default
49070    typedef int ac__type_sizeof_;
49071 int
49072 main ()
49073 {
49074 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
49075 test_array [0] = 0
49076
49077   ;
49078   return 0;
49079 }
49080 _ACEOF
49081 rm -f conftest.$ac_objext
49082 if { (ac_try="$ac_compile"
49083 case "(($ac_try" in
49084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49085   *) ac_try_echo=$ac_try;;
49086 esac
49087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49088   (eval "$ac_compile") 2>conftest.er1
49089   ac_status=$?
49090   grep -v '^ *+' conftest.er1 >conftest.err
49091   rm -f conftest.er1
49092   cat conftest.err >&5
49093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49094   (exit $ac_status); } && {
49095          test -z "$ac_c_werror_flag" ||
49096          test ! -s conftest.err
49097        } && test -s conftest.$ac_objext; then
49098   ac_hi=$ac_mid; break
49099 else
49100   echo "$as_me: failed program was:" >&5
49101 sed 's/^/| /' conftest.$ac_ext >&5
49102
49103         ac_lo=`expr $ac_mid + 1`
49104                         if test $ac_lo -le $ac_mid; then
49105                           ac_lo= ac_hi=
49106                           break
49107                         fi
49108                         ac_mid=`expr 2 '*' $ac_mid + 1`
49109 fi
49110
49111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49112   done
49113 else
49114   echo "$as_me: failed program was:" >&5
49115 sed 's/^/| /' conftest.$ac_ext >&5
49116
49117         cat >conftest.$ac_ext <<_ACEOF
49118 /* confdefs.h.  */
49119 _ACEOF
49120 cat confdefs.h >>conftest.$ac_ext
49121 cat >>conftest.$ac_ext <<_ACEOF
49122 /* end confdefs.h.  */
49123 $ac_includes_default
49124    typedef int ac__type_sizeof_;
49125 int
49126 main ()
49127 {
49128 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
49129 test_array [0] = 0
49130
49131   ;
49132   return 0;
49133 }
49134 _ACEOF
49135 rm -f conftest.$ac_objext
49136 if { (ac_try="$ac_compile"
49137 case "(($ac_try" in
49138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49139   *) ac_try_echo=$ac_try;;
49140 esac
49141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49142   (eval "$ac_compile") 2>conftest.er1
49143   ac_status=$?
49144   grep -v '^ *+' conftest.er1 >conftest.err
49145   rm -f conftest.er1
49146   cat conftest.err >&5
49147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49148   (exit $ac_status); } && {
49149          test -z "$ac_c_werror_flag" ||
49150          test ! -s conftest.err
49151        } && test -s conftest.$ac_objext; then
49152   ac_hi=-1 ac_mid=-1
49153   while :; do
49154     cat >conftest.$ac_ext <<_ACEOF
49155 /* confdefs.h.  */
49156 _ACEOF
49157 cat confdefs.h >>conftest.$ac_ext
49158 cat >>conftest.$ac_ext <<_ACEOF
49159 /* end confdefs.h.  */
49160 $ac_includes_default
49161    typedef int ac__type_sizeof_;
49162 int
49163 main ()
49164 {
49165 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
49166 test_array [0] = 0
49167
49168   ;
49169   return 0;
49170 }
49171 _ACEOF
49172 rm -f conftest.$ac_objext
49173 if { (ac_try="$ac_compile"
49174 case "(($ac_try" in
49175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49176   *) ac_try_echo=$ac_try;;
49177 esac
49178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49179   (eval "$ac_compile") 2>conftest.er1
49180   ac_status=$?
49181   grep -v '^ *+' conftest.er1 >conftest.err
49182   rm -f conftest.er1
49183   cat conftest.err >&5
49184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49185   (exit $ac_status); } && {
49186          test -z "$ac_c_werror_flag" ||
49187          test ! -s conftest.err
49188        } && test -s conftest.$ac_objext; then
49189   ac_lo=$ac_mid; break
49190 else
49191   echo "$as_me: failed program was:" >&5
49192 sed 's/^/| /' conftest.$ac_ext >&5
49193
49194         ac_hi=`expr '(' $ac_mid ')' - 1`
49195                         if test $ac_mid -le $ac_hi; then
49196                           ac_lo= ac_hi=
49197                           break
49198                         fi
49199                         ac_mid=`expr 2 '*' $ac_mid`
49200 fi
49201
49202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49203   done
49204 else
49205   echo "$as_me: failed program was:" >&5
49206 sed 's/^/| /' conftest.$ac_ext >&5
49207
49208         ac_lo= ac_hi=
49209 fi
49210
49211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49212 fi
49213
49214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49215 # Binary search between lo and hi bounds.
49216 while test "x$ac_lo" != "x$ac_hi"; do
49217   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49218   cat >conftest.$ac_ext <<_ACEOF
49219 /* confdefs.h.  */
49220 _ACEOF
49221 cat confdefs.h >>conftest.$ac_ext
49222 cat >>conftest.$ac_ext <<_ACEOF
49223 /* end confdefs.h.  */
49224 $ac_includes_default
49225    typedef int ac__type_sizeof_;
49226 int
49227 main ()
49228 {
49229 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
49230 test_array [0] = 0
49231
49232   ;
49233   return 0;
49234 }
49235 _ACEOF
49236 rm -f conftest.$ac_objext
49237 if { (ac_try="$ac_compile"
49238 case "(($ac_try" in
49239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49240   *) ac_try_echo=$ac_try;;
49241 esac
49242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49243   (eval "$ac_compile") 2>conftest.er1
49244   ac_status=$?
49245   grep -v '^ *+' conftest.er1 >conftest.err
49246   rm -f conftest.er1
49247   cat conftest.err >&5
49248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49249   (exit $ac_status); } && {
49250          test -z "$ac_c_werror_flag" ||
49251          test ! -s conftest.err
49252        } && test -s conftest.$ac_objext; then
49253   ac_hi=$ac_mid
49254 else
49255   echo "$as_me: failed program was:" >&5
49256 sed 's/^/| /' conftest.$ac_ext >&5
49257
49258         ac_lo=`expr '(' $ac_mid ')' + 1`
49259 fi
49260
49261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49262 done
49263 case $ac_lo in
49264 ?*) ac_cv_sizeof_int=$ac_lo;;
49265 '') if test "$ac_cv_type_int" = yes; then
49266      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
49267 See \`config.log' for more details." >&5
49268 echo "$as_me: error: cannot compute sizeof (int)
49269 See \`config.log' for more details." >&2;}
49270    { (exit 77); exit 77; }; }
49271    else
49272      ac_cv_sizeof_int=0
49273    fi ;;
49274 esac
49275 else
49276   cat >conftest.$ac_ext <<_ACEOF
49277 /* confdefs.h.  */
49278 _ACEOF
49279 cat confdefs.h >>conftest.$ac_ext
49280 cat >>conftest.$ac_ext <<_ACEOF
49281 /* end confdefs.h.  */
49282 $ac_includes_default
49283    typedef int ac__type_sizeof_;
49284 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
49285 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
49286 #include <stdio.h>
49287 #include <stdlib.h>
49288 int
49289 main ()
49290 {
49291
49292   FILE *f = fopen ("conftest.val", "w");
49293   if (! f)
49294     return 1;
49295   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
49296     {
49297       long int i = longval ();
49298       if (i != ((long int) (sizeof (ac__type_sizeof_))))
49299         return 1;
49300       fprintf (f, "%ld\n", i);
49301     }
49302   else
49303     {
49304       unsigned long int i = ulongval ();
49305       if (i != ((long int) (sizeof (ac__type_sizeof_))))
49306         return 1;
49307       fprintf (f, "%lu\n", i);
49308     }
49309   return ferror (f) || fclose (f) != 0;
49310
49311   ;
49312   return 0;
49313 }
49314 _ACEOF
49315 rm -f conftest$ac_exeext
49316 if { (ac_try="$ac_link"
49317 case "(($ac_try" in
49318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49319   *) ac_try_echo=$ac_try;;
49320 esac
49321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49322   (eval "$ac_link") 2>&5
49323   ac_status=$?
49324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49325   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49326   { (case "(($ac_try" in
49327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49328   *) ac_try_echo=$ac_try;;
49329 esac
49330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49331   (eval "$ac_try") 2>&5
49332   ac_status=$?
49333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49334   (exit $ac_status); }; }; then
49335   ac_cv_sizeof_int=`cat conftest.val`
49336 else
49337   echo "$as_me: program exited with status $ac_status" >&5
49338 echo "$as_me: failed program was:" >&5
49339 sed 's/^/| /' conftest.$ac_ext >&5
49340
49341 ( exit $ac_status )
49342 if test "$ac_cv_type_int" = yes; then
49343      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
49344 See \`config.log' for more details." >&5
49345 echo "$as_me: error: cannot compute sizeof (int)
49346 See \`config.log' for more details." >&2;}
49347    { (exit 77); exit 77; }; }
49348    else
49349      ac_cv_sizeof_int=0
49350    fi
49351 fi
49352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49353 fi
49354 rm -f conftest.val
49355 fi
49356 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
49357 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
49358
49359
49360
49361 cat >>confdefs.h <<_ACEOF
49362 #define SIZEOF_INT $ac_cv_sizeof_int
49363 _ACEOF
49364
49365
49366 { echo "$as_me:$LINENO: checking for long" >&5
49367 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
49368 if test "${ac_cv_type_long+set}" = set; then
49369   echo $ECHO_N "(cached) $ECHO_C" >&6
49370 else
49371   cat >conftest.$ac_ext <<_ACEOF
49372 /* confdefs.h.  */
49373 _ACEOF
49374 cat confdefs.h >>conftest.$ac_ext
49375 cat >>conftest.$ac_ext <<_ACEOF
49376 /* end confdefs.h.  */
49377 $ac_includes_default
49378 typedef long ac__type_new_;
49379 int
49380 main ()
49381 {
49382 if ((ac__type_new_ *) 0)
49383   return 0;
49384 if (sizeof (ac__type_new_))
49385   return 0;
49386   ;
49387   return 0;
49388 }
49389 _ACEOF
49390 rm -f conftest.$ac_objext
49391 if { (ac_try="$ac_compile"
49392 case "(($ac_try" in
49393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49394   *) ac_try_echo=$ac_try;;
49395 esac
49396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49397   (eval "$ac_compile") 2>conftest.er1
49398   ac_status=$?
49399   grep -v '^ *+' conftest.er1 >conftest.err
49400   rm -f conftest.er1
49401   cat conftest.err >&5
49402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49403   (exit $ac_status); } && {
49404          test -z "$ac_c_werror_flag" ||
49405          test ! -s conftest.err
49406        } && test -s conftest.$ac_objext; then
49407   ac_cv_type_long=yes
49408 else
49409   echo "$as_me: failed program was:" >&5
49410 sed 's/^/| /' conftest.$ac_ext >&5
49411
49412         ac_cv_type_long=no
49413 fi
49414
49415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49416 fi
49417 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
49418 echo "${ECHO_T}$ac_cv_type_long" >&6; }
49419
49420 # The cast to long int works around a bug in the HP C Compiler
49421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49423 # This bug is HP SR number 8606223364.
49424 { echo "$as_me:$LINENO: checking size of long" >&5
49425 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
49426 if test "${ac_cv_sizeof_long+set}" = set; then
49427   echo $ECHO_N "(cached) $ECHO_C" >&6
49428 else
49429   if test "$cross_compiling" = yes; then
49430   # Depending upon the size, compute the lo and hi bounds.
49431 cat >conftest.$ac_ext <<_ACEOF
49432 /* confdefs.h.  */
49433 _ACEOF
49434 cat confdefs.h >>conftest.$ac_ext
49435 cat >>conftest.$ac_ext <<_ACEOF
49436 /* end confdefs.h.  */
49437 $ac_includes_default
49438    typedef long ac__type_sizeof_;
49439 int
49440 main ()
49441 {
49442 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
49443 test_array [0] = 0
49444
49445   ;
49446   return 0;
49447 }
49448 _ACEOF
49449 rm -f conftest.$ac_objext
49450 if { (ac_try="$ac_compile"
49451 case "(($ac_try" in
49452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49453   *) ac_try_echo=$ac_try;;
49454 esac
49455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49456   (eval "$ac_compile") 2>conftest.er1
49457   ac_status=$?
49458   grep -v '^ *+' conftest.er1 >conftest.err
49459   rm -f conftest.er1
49460   cat conftest.err >&5
49461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49462   (exit $ac_status); } && {
49463          test -z "$ac_c_werror_flag" ||
49464          test ! -s conftest.err
49465        } && test -s conftest.$ac_objext; then
49466   ac_lo=0 ac_mid=0
49467   while :; do
49468     cat >conftest.$ac_ext <<_ACEOF
49469 /* confdefs.h.  */
49470 _ACEOF
49471 cat confdefs.h >>conftest.$ac_ext
49472 cat >>conftest.$ac_ext <<_ACEOF
49473 /* end confdefs.h.  */
49474 $ac_includes_default
49475    typedef long ac__type_sizeof_;
49476 int
49477 main ()
49478 {
49479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
49480 test_array [0] = 0
49481
49482   ;
49483   return 0;
49484 }
49485 _ACEOF
49486 rm -f conftest.$ac_objext
49487 if { (ac_try="$ac_compile"
49488 case "(($ac_try" in
49489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49490   *) ac_try_echo=$ac_try;;
49491 esac
49492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49493   (eval "$ac_compile") 2>conftest.er1
49494   ac_status=$?
49495   grep -v '^ *+' conftest.er1 >conftest.err
49496   rm -f conftest.er1
49497   cat conftest.err >&5
49498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49499   (exit $ac_status); } && {
49500          test -z "$ac_c_werror_flag" ||
49501          test ! -s conftest.err
49502        } && test -s conftest.$ac_objext; then
49503   ac_hi=$ac_mid; break
49504 else
49505   echo "$as_me: failed program was:" >&5
49506 sed 's/^/| /' conftest.$ac_ext >&5
49507
49508         ac_lo=`expr $ac_mid + 1`
49509                         if test $ac_lo -le $ac_mid; then
49510                           ac_lo= ac_hi=
49511                           break
49512                         fi
49513                         ac_mid=`expr 2 '*' $ac_mid + 1`
49514 fi
49515
49516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49517   done
49518 else
49519   echo "$as_me: failed program was:" >&5
49520 sed 's/^/| /' conftest.$ac_ext >&5
49521
49522         cat >conftest.$ac_ext <<_ACEOF
49523 /* confdefs.h.  */
49524 _ACEOF
49525 cat confdefs.h >>conftest.$ac_ext
49526 cat >>conftest.$ac_ext <<_ACEOF
49527 /* end confdefs.h.  */
49528 $ac_includes_default
49529    typedef long ac__type_sizeof_;
49530 int
49531 main ()
49532 {
49533 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
49534 test_array [0] = 0
49535
49536   ;
49537   return 0;
49538 }
49539 _ACEOF
49540 rm -f conftest.$ac_objext
49541 if { (ac_try="$ac_compile"
49542 case "(($ac_try" in
49543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49544   *) ac_try_echo=$ac_try;;
49545 esac
49546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49547   (eval "$ac_compile") 2>conftest.er1
49548   ac_status=$?
49549   grep -v '^ *+' conftest.er1 >conftest.err
49550   rm -f conftest.er1
49551   cat conftest.err >&5
49552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49553   (exit $ac_status); } && {
49554          test -z "$ac_c_werror_flag" ||
49555          test ! -s conftest.err
49556        } && test -s conftest.$ac_objext; then
49557   ac_hi=-1 ac_mid=-1
49558   while :; do
49559     cat >conftest.$ac_ext <<_ACEOF
49560 /* confdefs.h.  */
49561 _ACEOF
49562 cat confdefs.h >>conftest.$ac_ext
49563 cat >>conftest.$ac_ext <<_ACEOF
49564 /* end confdefs.h.  */
49565 $ac_includes_default
49566    typedef long ac__type_sizeof_;
49567 int
49568 main ()
49569 {
49570 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
49571 test_array [0] = 0
49572
49573   ;
49574   return 0;
49575 }
49576 _ACEOF
49577 rm -f conftest.$ac_objext
49578 if { (ac_try="$ac_compile"
49579 case "(($ac_try" in
49580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49581   *) ac_try_echo=$ac_try;;
49582 esac
49583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49584   (eval "$ac_compile") 2>conftest.er1
49585   ac_status=$?
49586   grep -v '^ *+' conftest.er1 >conftest.err
49587   rm -f conftest.er1
49588   cat conftest.err >&5
49589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49590   (exit $ac_status); } && {
49591          test -z "$ac_c_werror_flag" ||
49592          test ! -s conftest.err
49593        } && test -s conftest.$ac_objext; then
49594   ac_lo=$ac_mid; break
49595 else
49596   echo "$as_me: failed program was:" >&5
49597 sed 's/^/| /' conftest.$ac_ext >&5
49598
49599         ac_hi=`expr '(' $ac_mid ')' - 1`
49600                         if test $ac_mid -le $ac_hi; then
49601                           ac_lo= ac_hi=
49602                           break
49603                         fi
49604                         ac_mid=`expr 2 '*' $ac_mid`
49605 fi
49606
49607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49608   done
49609 else
49610   echo "$as_me: failed program was:" >&5
49611 sed 's/^/| /' conftest.$ac_ext >&5
49612
49613         ac_lo= ac_hi=
49614 fi
49615
49616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49617 fi
49618
49619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49620 # Binary search between lo and hi bounds.
49621 while test "x$ac_lo" != "x$ac_hi"; do
49622   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49623   cat >conftest.$ac_ext <<_ACEOF
49624 /* confdefs.h.  */
49625 _ACEOF
49626 cat confdefs.h >>conftest.$ac_ext
49627 cat >>conftest.$ac_ext <<_ACEOF
49628 /* end confdefs.h.  */
49629 $ac_includes_default
49630    typedef long ac__type_sizeof_;
49631 int
49632 main ()
49633 {
49634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
49635 test_array [0] = 0
49636
49637   ;
49638   return 0;
49639 }
49640 _ACEOF
49641 rm -f conftest.$ac_objext
49642 if { (ac_try="$ac_compile"
49643 case "(($ac_try" in
49644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49645   *) ac_try_echo=$ac_try;;
49646 esac
49647 eval "echo \"\$as_me:$LINENO: $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   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_hi=$ac_mid
49659 else
49660   echo "$as_me: failed program was:" >&5
49661 sed 's/^/| /' conftest.$ac_ext >&5
49662
49663         ac_lo=`expr '(' $ac_mid ')' + 1`
49664 fi
49665
49666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49667 done
49668 case $ac_lo in
49669 ?*) ac_cv_sizeof_long=$ac_lo;;
49670 '') if test "$ac_cv_type_long" = yes; then
49671      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
49672 See \`config.log' for more details." >&5
49673 echo "$as_me: error: cannot compute sizeof (long)
49674 See \`config.log' for more details." >&2;}
49675    { (exit 77); exit 77; }; }
49676    else
49677      ac_cv_sizeof_long=0
49678    fi ;;
49679 esac
49680 else
49681   cat >conftest.$ac_ext <<_ACEOF
49682 /* confdefs.h.  */
49683 _ACEOF
49684 cat confdefs.h >>conftest.$ac_ext
49685 cat >>conftest.$ac_ext <<_ACEOF
49686 /* end confdefs.h.  */
49687 $ac_includes_default
49688    typedef long ac__type_sizeof_;
49689 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
49690 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
49691 #include <stdio.h>
49692 #include <stdlib.h>
49693 int
49694 main ()
49695 {
49696
49697   FILE *f = fopen ("conftest.val", "w");
49698   if (! f)
49699     return 1;
49700   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
49701     {
49702       long int i = longval ();
49703       if (i != ((long int) (sizeof (ac__type_sizeof_))))
49704         return 1;
49705       fprintf (f, "%ld\n", i);
49706     }
49707   else
49708     {
49709       unsigned long int i = ulongval ();
49710       if (i != ((long int) (sizeof (ac__type_sizeof_))))
49711         return 1;
49712       fprintf (f, "%lu\n", i);
49713     }
49714   return ferror (f) || fclose (f) != 0;
49715
49716   ;
49717   return 0;
49718 }
49719 _ACEOF
49720 rm -f conftest$ac_exeext
49721 if { (ac_try="$ac_link"
49722 case "(($ac_try" in
49723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49724   *) ac_try_echo=$ac_try;;
49725 esac
49726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49727   (eval "$ac_link") 2>&5
49728   ac_status=$?
49729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49731   { (case "(($ac_try" in
49732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49733   *) ac_try_echo=$ac_try;;
49734 esac
49735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49736   (eval "$ac_try") 2>&5
49737   ac_status=$?
49738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49739   (exit $ac_status); }; }; then
49740   ac_cv_sizeof_long=`cat conftest.val`
49741 else
49742   echo "$as_me: program exited with status $ac_status" >&5
49743 echo "$as_me: failed program was:" >&5
49744 sed 's/^/| /' conftest.$ac_ext >&5
49745
49746 ( exit $ac_status )
49747 if test "$ac_cv_type_long" = yes; then
49748      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
49749 See \`config.log' for more details." >&5
49750 echo "$as_me: error: cannot compute sizeof (long)
49751 See \`config.log' for more details." >&2;}
49752    { (exit 77); exit 77; }; }
49753    else
49754      ac_cv_sizeof_long=0
49755    fi
49756 fi
49757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49758 fi
49759 rm -f conftest.val
49760 fi
49761 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
49762 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
49763
49764
49765
49766 cat >>confdefs.h <<_ACEOF
49767 #define SIZEOF_LONG $ac_cv_sizeof_long
49768 _ACEOF
49769
49770
49771 { echo "$as_me:$LINENO: checking for long long" >&5
49772 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
49773 if test "${ac_cv_type_long_long+set}" = set; then
49774   echo $ECHO_N "(cached) $ECHO_C" >&6
49775 else
49776   cat >conftest.$ac_ext <<_ACEOF
49777 /* confdefs.h.  */
49778 _ACEOF
49779 cat confdefs.h >>conftest.$ac_ext
49780 cat >>conftest.$ac_ext <<_ACEOF
49781 /* end confdefs.h.  */
49782 $ac_includes_default
49783 typedef long long ac__type_new_;
49784 int
49785 main ()
49786 {
49787 if ((ac__type_new_ *) 0)
49788   return 0;
49789 if (sizeof (ac__type_new_))
49790   return 0;
49791   ;
49792   return 0;
49793 }
49794 _ACEOF
49795 rm -f conftest.$ac_objext
49796 if { (ac_try="$ac_compile"
49797 case "(($ac_try" in
49798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49799   *) ac_try_echo=$ac_try;;
49800 esac
49801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49802   (eval "$ac_compile") 2>conftest.er1
49803   ac_status=$?
49804   grep -v '^ *+' conftest.er1 >conftest.err
49805   rm -f conftest.er1
49806   cat conftest.err >&5
49807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49808   (exit $ac_status); } && {
49809          test -z "$ac_c_werror_flag" ||
49810          test ! -s conftest.err
49811        } && test -s conftest.$ac_objext; then
49812   ac_cv_type_long_long=yes
49813 else
49814   echo "$as_me: failed program was:" >&5
49815 sed 's/^/| /' conftest.$ac_ext >&5
49816
49817         ac_cv_type_long_long=no
49818 fi
49819
49820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49821 fi
49822 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
49823 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
49824
49825 # The cast to long int works around a bug in the HP C Compiler
49826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49828 # This bug is HP SR number 8606223364.
49829 { echo "$as_me:$LINENO: checking size of long long" >&5
49830 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
49831 if test "${ac_cv_sizeof_long_long+set}" = set; then
49832   echo $ECHO_N "(cached) $ECHO_C" >&6
49833 else
49834   if test "$cross_compiling" = yes; then
49835   # Depending upon the size, compute the lo and hi bounds.
49836 cat >conftest.$ac_ext <<_ACEOF
49837 /* confdefs.h.  */
49838 _ACEOF
49839 cat confdefs.h >>conftest.$ac_ext
49840 cat >>conftest.$ac_ext <<_ACEOF
49841 /* end confdefs.h.  */
49842 $ac_includes_default
49843    typedef long long ac__type_sizeof_;
49844 int
49845 main ()
49846 {
49847 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
49848 test_array [0] = 0
49849
49850   ;
49851   return 0;
49852 }
49853 _ACEOF
49854 rm -f conftest.$ac_objext
49855 if { (ac_try="$ac_compile"
49856 case "(($ac_try" in
49857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49858   *) ac_try_echo=$ac_try;;
49859 esac
49860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49861   (eval "$ac_compile") 2>conftest.er1
49862   ac_status=$?
49863   grep -v '^ *+' conftest.er1 >conftest.err
49864   rm -f conftest.er1
49865   cat conftest.err >&5
49866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49867   (exit $ac_status); } && {
49868          test -z "$ac_c_werror_flag" ||
49869          test ! -s conftest.err
49870        } && test -s conftest.$ac_objext; then
49871   ac_lo=0 ac_mid=0
49872   while :; do
49873     cat >conftest.$ac_ext <<_ACEOF
49874 /* confdefs.h.  */
49875 _ACEOF
49876 cat confdefs.h >>conftest.$ac_ext
49877 cat >>conftest.$ac_ext <<_ACEOF
49878 /* end confdefs.h.  */
49879 $ac_includes_default
49880    typedef long long ac__type_sizeof_;
49881 int
49882 main ()
49883 {
49884 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
49885 test_array [0] = 0
49886
49887   ;
49888   return 0;
49889 }
49890 _ACEOF
49891 rm -f conftest.$ac_objext
49892 if { (ac_try="$ac_compile"
49893 case "(($ac_try" in
49894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49895   *) ac_try_echo=$ac_try;;
49896 esac
49897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49898   (eval "$ac_compile") 2>conftest.er1
49899   ac_status=$?
49900   grep -v '^ *+' conftest.er1 >conftest.err
49901   rm -f conftest.er1
49902   cat conftest.err >&5
49903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49904   (exit $ac_status); } && {
49905          test -z "$ac_c_werror_flag" ||
49906          test ! -s conftest.err
49907        } && test -s conftest.$ac_objext; then
49908   ac_hi=$ac_mid; break
49909 else
49910   echo "$as_me: failed program was:" >&5
49911 sed 's/^/| /' conftest.$ac_ext >&5
49912
49913         ac_lo=`expr $ac_mid + 1`
49914                         if test $ac_lo -le $ac_mid; then
49915                           ac_lo= ac_hi=
49916                           break
49917                         fi
49918                         ac_mid=`expr 2 '*' $ac_mid + 1`
49919 fi
49920
49921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49922   done
49923 else
49924   echo "$as_me: failed program was:" >&5
49925 sed 's/^/| /' conftest.$ac_ext >&5
49926
49927         cat >conftest.$ac_ext <<_ACEOF
49928 /* confdefs.h.  */
49929 _ACEOF
49930 cat confdefs.h >>conftest.$ac_ext
49931 cat >>conftest.$ac_ext <<_ACEOF
49932 /* end confdefs.h.  */
49933 $ac_includes_default
49934    typedef long long ac__type_sizeof_;
49935 int
49936 main ()
49937 {
49938 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
49939 test_array [0] = 0
49940
49941   ;
49942   return 0;
49943 }
49944 _ACEOF
49945 rm -f conftest.$ac_objext
49946 if { (ac_try="$ac_compile"
49947 case "(($ac_try" in
49948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49949   *) ac_try_echo=$ac_try;;
49950 esac
49951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49952   (eval "$ac_compile") 2>conftest.er1
49953   ac_status=$?
49954   grep -v '^ *+' conftest.er1 >conftest.err
49955   rm -f conftest.er1
49956   cat conftest.err >&5
49957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49958   (exit $ac_status); } && {
49959          test -z "$ac_c_werror_flag" ||
49960          test ! -s conftest.err
49961        } && test -s conftest.$ac_objext; then
49962   ac_hi=-1 ac_mid=-1
49963   while :; do
49964     cat >conftest.$ac_ext <<_ACEOF
49965 /* confdefs.h.  */
49966 _ACEOF
49967 cat confdefs.h >>conftest.$ac_ext
49968 cat >>conftest.$ac_ext <<_ACEOF
49969 /* end confdefs.h.  */
49970 $ac_includes_default
49971    typedef long long ac__type_sizeof_;
49972 int
49973 main ()
49974 {
49975 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
49976 test_array [0] = 0
49977
49978   ;
49979   return 0;
49980 }
49981 _ACEOF
49982 rm -f conftest.$ac_objext
49983 if { (ac_try="$ac_compile"
49984 case "(($ac_try" in
49985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49986   *) ac_try_echo=$ac_try;;
49987 esac
49988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49989   (eval "$ac_compile") 2>conftest.er1
49990   ac_status=$?
49991   grep -v '^ *+' conftest.er1 >conftest.err
49992   rm -f conftest.er1
49993   cat conftest.err >&5
49994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49995   (exit $ac_status); } && {
49996          test -z "$ac_c_werror_flag" ||
49997          test ! -s conftest.err
49998        } && test -s conftest.$ac_objext; then
49999   ac_lo=$ac_mid; break
50000 else
50001   echo "$as_me: failed program was:" >&5
50002 sed 's/^/| /' conftest.$ac_ext >&5
50003
50004         ac_hi=`expr '(' $ac_mid ')' - 1`
50005                         if test $ac_mid -le $ac_hi; then
50006                           ac_lo= ac_hi=
50007                           break
50008                         fi
50009                         ac_mid=`expr 2 '*' $ac_mid`
50010 fi
50011
50012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50013   done
50014 else
50015   echo "$as_me: failed program was:" >&5
50016 sed 's/^/| /' conftest.$ac_ext >&5
50017
50018         ac_lo= ac_hi=
50019 fi
50020
50021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50022 fi
50023
50024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50025 # Binary search between lo and hi bounds.
50026 while test "x$ac_lo" != "x$ac_hi"; do
50027   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50028   cat >conftest.$ac_ext <<_ACEOF
50029 /* confdefs.h.  */
50030 _ACEOF
50031 cat confdefs.h >>conftest.$ac_ext
50032 cat >>conftest.$ac_ext <<_ACEOF
50033 /* end confdefs.h.  */
50034 $ac_includes_default
50035    typedef long long ac__type_sizeof_;
50036 int
50037 main ()
50038 {
50039 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
50040 test_array [0] = 0
50041
50042   ;
50043   return 0;
50044 }
50045 _ACEOF
50046 rm -f conftest.$ac_objext
50047 if { (ac_try="$ac_compile"
50048 case "(($ac_try" in
50049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50050   *) ac_try_echo=$ac_try;;
50051 esac
50052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50053   (eval "$ac_compile") 2>conftest.er1
50054   ac_status=$?
50055   grep -v '^ *+' conftest.er1 >conftest.err
50056   rm -f conftest.er1
50057   cat conftest.err >&5
50058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50059   (exit $ac_status); } && {
50060          test -z "$ac_c_werror_flag" ||
50061          test ! -s conftest.err
50062        } && test -s conftest.$ac_objext; then
50063   ac_hi=$ac_mid
50064 else
50065   echo "$as_me: failed program was:" >&5
50066 sed 's/^/| /' conftest.$ac_ext >&5
50067
50068         ac_lo=`expr '(' $ac_mid ')' + 1`
50069 fi
50070
50071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50072 done
50073 case $ac_lo in
50074 ?*) ac_cv_sizeof_long_long=$ac_lo;;
50075 '') if test "$ac_cv_type_long_long" = yes; then
50076      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
50077 See \`config.log' for more details." >&5
50078 echo "$as_me: error: cannot compute sizeof (long long)
50079 See \`config.log' for more details." >&2;}
50080    { (exit 77); exit 77; }; }
50081    else
50082      ac_cv_sizeof_long_long=0
50083    fi ;;
50084 esac
50085 else
50086   cat >conftest.$ac_ext <<_ACEOF
50087 /* confdefs.h.  */
50088 _ACEOF
50089 cat confdefs.h >>conftest.$ac_ext
50090 cat >>conftest.$ac_ext <<_ACEOF
50091 /* end confdefs.h.  */
50092 $ac_includes_default
50093    typedef long long ac__type_sizeof_;
50094 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
50095 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
50096 #include <stdio.h>
50097 #include <stdlib.h>
50098 int
50099 main ()
50100 {
50101
50102   FILE *f = fopen ("conftest.val", "w");
50103   if (! f)
50104     return 1;
50105   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
50106     {
50107       long int i = longval ();
50108       if (i != ((long int) (sizeof (ac__type_sizeof_))))
50109         return 1;
50110       fprintf (f, "%ld\n", i);
50111     }
50112   else
50113     {
50114       unsigned long int i = ulongval ();
50115       if (i != ((long int) (sizeof (ac__type_sizeof_))))
50116         return 1;
50117       fprintf (f, "%lu\n", i);
50118     }
50119   return ferror (f) || fclose (f) != 0;
50120
50121   ;
50122   return 0;
50123 }
50124 _ACEOF
50125 rm -f conftest$ac_exeext
50126 if { (ac_try="$ac_link"
50127 case "(($ac_try" in
50128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50129   *) ac_try_echo=$ac_try;;
50130 esac
50131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50132   (eval "$ac_link") 2>&5
50133   ac_status=$?
50134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50135   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50136   { (case "(($ac_try" in
50137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50138   *) ac_try_echo=$ac_try;;
50139 esac
50140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50141   (eval "$ac_try") 2>&5
50142   ac_status=$?
50143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50144   (exit $ac_status); }; }; then
50145   ac_cv_sizeof_long_long=`cat conftest.val`
50146 else
50147   echo "$as_me: program exited with status $ac_status" >&5
50148 echo "$as_me: failed program was:" >&5
50149 sed 's/^/| /' conftest.$ac_ext >&5
50150
50151 ( exit $ac_status )
50152 if test "$ac_cv_type_long_long" = yes; then
50153      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
50154 See \`config.log' for more details." >&5
50155 echo "$as_me: error: cannot compute sizeof (long long)
50156 See \`config.log' for more details." >&2;}
50157    { (exit 77); exit 77; }; }
50158    else
50159      ac_cv_sizeof_long_long=0
50160    fi
50161 fi
50162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50163 fi
50164 rm -f conftest.val
50165 fi
50166 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
50167 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
50168
50169
50170
50171 cat >>confdefs.h <<_ACEOF
50172 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
50173 _ACEOF
50174
50175
50176 { echo "$as_me:$LINENO: checking for intmax_t" >&5
50177 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
50178 if test "${ac_cv_type_intmax_t+set}" = set; then
50179   echo $ECHO_N "(cached) $ECHO_C" >&6
50180 else
50181   cat >conftest.$ac_ext <<_ACEOF
50182 /* confdefs.h.  */
50183 _ACEOF
50184 cat confdefs.h >>conftest.$ac_ext
50185 cat >>conftest.$ac_ext <<_ACEOF
50186 /* end confdefs.h.  */
50187 $ac_includes_default
50188 typedef intmax_t ac__type_new_;
50189 int
50190 main ()
50191 {
50192 if ((ac__type_new_ *) 0)
50193   return 0;
50194 if (sizeof (ac__type_new_))
50195   return 0;
50196   ;
50197   return 0;
50198 }
50199 _ACEOF
50200 rm -f conftest.$ac_objext
50201 if { (ac_try="$ac_compile"
50202 case "(($ac_try" in
50203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50204   *) ac_try_echo=$ac_try;;
50205 esac
50206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50207   (eval "$ac_compile") 2>conftest.er1
50208   ac_status=$?
50209   grep -v '^ *+' conftest.er1 >conftest.err
50210   rm -f conftest.er1
50211   cat conftest.err >&5
50212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50213   (exit $ac_status); } && {
50214          test -z "$ac_c_werror_flag" ||
50215          test ! -s conftest.err
50216        } && test -s conftest.$ac_objext; then
50217   ac_cv_type_intmax_t=yes
50218 else
50219   echo "$as_me: failed program was:" >&5
50220 sed 's/^/| /' conftest.$ac_ext >&5
50221
50222         ac_cv_type_intmax_t=no
50223 fi
50224
50225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50226 fi
50227 { echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
50228 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
50229
50230 # The cast to long int works around a bug in the HP C Compiler
50231 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50232 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50233 # This bug is HP SR number 8606223364.
50234 { echo "$as_me:$LINENO: checking size of intmax_t" >&5
50235 echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6; }
50236 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
50237   echo $ECHO_N "(cached) $ECHO_C" >&6
50238 else
50239   if test "$cross_compiling" = yes; then
50240   # Depending upon the size, compute the lo and hi bounds.
50241 cat >conftest.$ac_ext <<_ACEOF
50242 /* confdefs.h.  */
50243 _ACEOF
50244 cat confdefs.h >>conftest.$ac_ext
50245 cat >>conftest.$ac_ext <<_ACEOF
50246 /* end confdefs.h.  */
50247 $ac_includes_default
50248    typedef intmax_t ac__type_sizeof_;
50249 int
50250 main ()
50251 {
50252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
50253 test_array [0] = 0
50254
50255   ;
50256   return 0;
50257 }
50258 _ACEOF
50259 rm -f conftest.$ac_objext
50260 if { (ac_try="$ac_compile"
50261 case "(($ac_try" in
50262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50263   *) ac_try_echo=$ac_try;;
50264 esac
50265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50266   (eval "$ac_compile") 2>conftest.er1
50267   ac_status=$?
50268   grep -v '^ *+' conftest.er1 >conftest.err
50269   rm -f conftest.er1
50270   cat conftest.err >&5
50271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50272   (exit $ac_status); } && {
50273          test -z "$ac_c_werror_flag" ||
50274          test ! -s conftest.err
50275        } && test -s conftest.$ac_objext; then
50276   ac_lo=0 ac_mid=0
50277   while :; do
50278     cat >conftest.$ac_ext <<_ACEOF
50279 /* confdefs.h.  */
50280 _ACEOF
50281 cat confdefs.h >>conftest.$ac_ext
50282 cat >>conftest.$ac_ext <<_ACEOF
50283 /* end confdefs.h.  */
50284 $ac_includes_default
50285    typedef intmax_t ac__type_sizeof_;
50286 int
50287 main ()
50288 {
50289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
50290 test_array [0] = 0
50291
50292   ;
50293   return 0;
50294 }
50295 _ACEOF
50296 rm -f conftest.$ac_objext
50297 if { (ac_try="$ac_compile"
50298 case "(($ac_try" in
50299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50300   *) ac_try_echo=$ac_try;;
50301 esac
50302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50303   (eval "$ac_compile") 2>conftest.er1
50304   ac_status=$?
50305   grep -v '^ *+' conftest.er1 >conftest.err
50306   rm -f conftest.er1
50307   cat conftest.err >&5
50308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50309   (exit $ac_status); } && {
50310          test -z "$ac_c_werror_flag" ||
50311          test ! -s conftest.err
50312        } && test -s conftest.$ac_objext; then
50313   ac_hi=$ac_mid; break
50314 else
50315   echo "$as_me: failed program was:" >&5
50316 sed 's/^/| /' conftest.$ac_ext >&5
50317
50318         ac_lo=`expr $ac_mid + 1`
50319                         if test $ac_lo -le $ac_mid; then
50320                           ac_lo= ac_hi=
50321                           break
50322                         fi
50323                         ac_mid=`expr 2 '*' $ac_mid + 1`
50324 fi
50325
50326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50327   done
50328 else
50329   echo "$as_me: failed program was:" >&5
50330 sed 's/^/| /' conftest.$ac_ext >&5
50331
50332         cat >conftest.$ac_ext <<_ACEOF
50333 /* confdefs.h.  */
50334 _ACEOF
50335 cat confdefs.h >>conftest.$ac_ext
50336 cat >>conftest.$ac_ext <<_ACEOF
50337 /* end confdefs.h.  */
50338 $ac_includes_default
50339    typedef intmax_t ac__type_sizeof_;
50340 int
50341 main ()
50342 {
50343 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
50344 test_array [0] = 0
50345
50346   ;
50347   return 0;
50348 }
50349 _ACEOF
50350 rm -f conftest.$ac_objext
50351 if { (ac_try="$ac_compile"
50352 case "(($ac_try" in
50353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50354   *) ac_try_echo=$ac_try;;
50355 esac
50356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50357   (eval "$ac_compile") 2>conftest.er1
50358   ac_status=$?
50359   grep -v '^ *+' conftest.er1 >conftest.err
50360   rm -f conftest.er1
50361   cat conftest.err >&5
50362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50363   (exit $ac_status); } && {
50364          test -z "$ac_c_werror_flag" ||
50365          test ! -s conftest.err
50366        } && test -s conftest.$ac_objext; then
50367   ac_hi=-1 ac_mid=-1
50368   while :; do
50369     cat >conftest.$ac_ext <<_ACEOF
50370 /* confdefs.h.  */
50371 _ACEOF
50372 cat confdefs.h >>conftest.$ac_ext
50373 cat >>conftest.$ac_ext <<_ACEOF
50374 /* end confdefs.h.  */
50375 $ac_includes_default
50376    typedef intmax_t ac__type_sizeof_;
50377 int
50378 main ()
50379 {
50380 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
50381 test_array [0] = 0
50382
50383   ;
50384   return 0;
50385 }
50386 _ACEOF
50387 rm -f conftest.$ac_objext
50388 if { (ac_try="$ac_compile"
50389 case "(($ac_try" in
50390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50391   *) ac_try_echo=$ac_try;;
50392 esac
50393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50394   (eval "$ac_compile") 2>conftest.er1
50395   ac_status=$?
50396   grep -v '^ *+' conftest.er1 >conftest.err
50397   rm -f conftest.er1
50398   cat conftest.err >&5
50399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50400   (exit $ac_status); } && {
50401          test -z "$ac_c_werror_flag" ||
50402          test ! -s conftest.err
50403        } && test -s conftest.$ac_objext; then
50404   ac_lo=$ac_mid; break
50405 else
50406   echo "$as_me: failed program was:" >&5
50407 sed 's/^/| /' conftest.$ac_ext >&5
50408
50409         ac_hi=`expr '(' $ac_mid ')' - 1`
50410                         if test $ac_mid -le $ac_hi; then
50411                           ac_lo= ac_hi=
50412                           break
50413                         fi
50414                         ac_mid=`expr 2 '*' $ac_mid`
50415 fi
50416
50417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50418   done
50419 else
50420   echo "$as_me: failed program was:" >&5
50421 sed 's/^/| /' conftest.$ac_ext >&5
50422
50423         ac_lo= ac_hi=
50424 fi
50425
50426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50427 fi
50428
50429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50430 # Binary search between lo and hi bounds.
50431 while test "x$ac_lo" != "x$ac_hi"; do
50432   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50433   cat >conftest.$ac_ext <<_ACEOF
50434 /* confdefs.h.  */
50435 _ACEOF
50436 cat confdefs.h >>conftest.$ac_ext
50437 cat >>conftest.$ac_ext <<_ACEOF
50438 /* end confdefs.h.  */
50439 $ac_includes_default
50440    typedef intmax_t ac__type_sizeof_;
50441 int
50442 main ()
50443 {
50444 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
50445 test_array [0] = 0
50446
50447   ;
50448   return 0;
50449 }
50450 _ACEOF
50451 rm -f conftest.$ac_objext
50452 if { (ac_try="$ac_compile"
50453 case "(($ac_try" in
50454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50455   *) ac_try_echo=$ac_try;;
50456 esac
50457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50458   (eval "$ac_compile") 2>conftest.er1
50459   ac_status=$?
50460   grep -v '^ *+' conftest.er1 >conftest.err
50461   rm -f conftest.er1
50462   cat conftest.err >&5
50463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50464   (exit $ac_status); } && {
50465          test -z "$ac_c_werror_flag" ||
50466          test ! -s conftest.err
50467        } && test -s conftest.$ac_objext; then
50468   ac_hi=$ac_mid
50469 else
50470   echo "$as_me: failed program was:" >&5
50471 sed 's/^/| /' conftest.$ac_ext >&5
50472
50473         ac_lo=`expr '(' $ac_mid ')' + 1`
50474 fi
50475
50476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50477 done
50478 case $ac_lo in
50479 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
50480 '') if test "$ac_cv_type_intmax_t" = yes; then
50481      { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
50482 See \`config.log' for more details." >&5
50483 echo "$as_me: error: cannot compute sizeof (intmax_t)
50484 See \`config.log' for more details." >&2;}
50485    { (exit 77); exit 77; }; }
50486    else
50487      ac_cv_sizeof_intmax_t=0
50488    fi ;;
50489 esac
50490 else
50491   cat >conftest.$ac_ext <<_ACEOF
50492 /* confdefs.h.  */
50493 _ACEOF
50494 cat confdefs.h >>conftest.$ac_ext
50495 cat >>conftest.$ac_ext <<_ACEOF
50496 /* end confdefs.h.  */
50497 $ac_includes_default
50498    typedef intmax_t ac__type_sizeof_;
50499 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
50500 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
50501 #include <stdio.h>
50502 #include <stdlib.h>
50503 int
50504 main ()
50505 {
50506
50507   FILE *f = fopen ("conftest.val", "w");
50508   if (! f)
50509     return 1;
50510   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
50511     {
50512       long int i = longval ();
50513       if (i != ((long int) (sizeof (ac__type_sizeof_))))
50514         return 1;
50515       fprintf (f, "%ld\n", i);
50516     }
50517   else
50518     {
50519       unsigned long int i = ulongval ();
50520       if (i != ((long int) (sizeof (ac__type_sizeof_))))
50521         return 1;
50522       fprintf (f, "%lu\n", i);
50523     }
50524   return ferror (f) || fclose (f) != 0;
50525
50526   ;
50527   return 0;
50528 }
50529 _ACEOF
50530 rm -f conftest$ac_exeext
50531 if { (ac_try="$ac_link"
50532 case "(($ac_try" in
50533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50534   *) ac_try_echo=$ac_try;;
50535 esac
50536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50537   (eval "$ac_link") 2>&5
50538   ac_status=$?
50539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50540   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50541   { (case "(($ac_try" in
50542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50543   *) ac_try_echo=$ac_try;;
50544 esac
50545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50546   (eval "$ac_try") 2>&5
50547   ac_status=$?
50548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50549   (exit $ac_status); }; }; then
50550   ac_cv_sizeof_intmax_t=`cat conftest.val`
50551 else
50552   echo "$as_me: program exited with status $ac_status" >&5
50553 echo "$as_me: failed program was:" >&5
50554 sed 's/^/| /' conftest.$ac_ext >&5
50555
50556 ( exit $ac_status )
50557 if test "$ac_cv_type_intmax_t" = yes; then
50558      { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
50559 See \`config.log' for more details." >&5
50560 echo "$as_me: error: cannot compute sizeof (intmax_t)
50561 See \`config.log' for more details." >&2;}
50562    { (exit 77); exit 77; }; }
50563    else
50564      ac_cv_sizeof_intmax_t=0
50565    fi
50566 fi
50567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50568 fi
50569 rm -f conftest.val
50570 fi
50571 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
50572 echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6; }
50573
50574
50575
50576 cat >>confdefs.h <<_ACEOF
50577 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
50578 _ACEOF
50579
50580
50581 { echo "$as_me:$LINENO: checking for off_t" >&5
50582 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
50583 if test "${ac_cv_type_off_t+set}" = set; then
50584   echo $ECHO_N "(cached) $ECHO_C" >&6
50585 else
50586   cat >conftest.$ac_ext <<_ACEOF
50587 /* confdefs.h.  */
50588 _ACEOF
50589 cat confdefs.h >>conftest.$ac_ext
50590 cat >>conftest.$ac_ext <<_ACEOF
50591 /* end confdefs.h.  */
50592 $ac_includes_default
50593 typedef off_t ac__type_new_;
50594 int
50595 main ()
50596 {
50597 if ((ac__type_new_ *) 0)
50598   return 0;
50599 if (sizeof (ac__type_new_))
50600   return 0;
50601   ;
50602   return 0;
50603 }
50604 _ACEOF
50605 rm -f conftest.$ac_objext
50606 if { (ac_try="$ac_compile"
50607 case "(($ac_try" in
50608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50609   *) ac_try_echo=$ac_try;;
50610 esac
50611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50612   (eval "$ac_compile") 2>conftest.er1
50613   ac_status=$?
50614   grep -v '^ *+' conftest.er1 >conftest.err
50615   rm -f conftest.er1
50616   cat conftest.err >&5
50617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50618   (exit $ac_status); } && {
50619          test -z "$ac_c_werror_flag" ||
50620          test ! -s conftest.err
50621        } && test -s conftest.$ac_objext; then
50622   ac_cv_type_off_t=yes
50623 else
50624   echo "$as_me: failed program was:" >&5
50625 sed 's/^/| /' conftest.$ac_ext >&5
50626
50627         ac_cv_type_off_t=no
50628 fi
50629
50630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50631 fi
50632 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
50633 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
50634
50635 # The cast to long int works around a bug in the HP C Compiler
50636 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50637 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50638 # This bug is HP SR number 8606223364.
50639 { echo "$as_me:$LINENO: checking size of off_t" >&5
50640 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
50641 if test "${ac_cv_sizeof_off_t+set}" = set; then
50642   echo $ECHO_N "(cached) $ECHO_C" >&6
50643 else
50644   if test "$cross_compiling" = yes; then
50645   # Depending upon the size, compute the lo and hi bounds.
50646 cat >conftest.$ac_ext <<_ACEOF
50647 /* confdefs.h.  */
50648 _ACEOF
50649 cat confdefs.h >>conftest.$ac_ext
50650 cat >>conftest.$ac_ext <<_ACEOF
50651 /* end confdefs.h.  */
50652 $ac_includes_default
50653    typedef off_t ac__type_sizeof_;
50654 int
50655 main ()
50656 {
50657 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
50658 test_array [0] = 0
50659
50660   ;
50661   return 0;
50662 }
50663 _ACEOF
50664 rm -f conftest.$ac_objext
50665 if { (ac_try="$ac_compile"
50666 case "(($ac_try" in
50667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50668   *) ac_try_echo=$ac_try;;
50669 esac
50670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50671   (eval "$ac_compile") 2>conftest.er1
50672   ac_status=$?
50673   grep -v '^ *+' conftest.er1 >conftest.err
50674   rm -f conftest.er1
50675   cat conftest.err >&5
50676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50677   (exit $ac_status); } && {
50678          test -z "$ac_c_werror_flag" ||
50679          test ! -s conftest.err
50680        } && test -s conftest.$ac_objext; then
50681   ac_lo=0 ac_mid=0
50682   while :; do
50683     cat >conftest.$ac_ext <<_ACEOF
50684 /* confdefs.h.  */
50685 _ACEOF
50686 cat confdefs.h >>conftest.$ac_ext
50687 cat >>conftest.$ac_ext <<_ACEOF
50688 /* end confdefs.h.  */
50689 $ac_includes_default
50690    typedef off_t ac__type_sizeof_;
50691 int
50692 main ()
50693 {
50694 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
50695 test_array [0] = 0
50696
50697   ;
50698   return 0;
50699 }
50700 _ACEOF
50701 rm -f conftest.$ac_objext
50702 if { (ac_try="$ac_compile"
50703 case "(($ac_try" in
50704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50705   *) ac_try_echo=$ac_try;;
50706 esac
50707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50708   (eval "$ac_compile") 2>conftest.er1
50709   ac_status=$?
50710   grep -v '^ *+' conftest.er1 >conftest.err
50711   rm -f conftest.er1
50712   cat conftest.err >&5
50713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50714   (exit $ac_status); } && {
50715          test -z "$ac_c_werror_flag" ||
50716          test ! -s conftest.err
50717        } && test -s conftest.$ac_objext; then
50718   ac_hi=$ac_mid; break
50719 else
50720   echo "$as_me: failed program was:" >&5
50721 sed 's/^/| /' conftest.$ac_ext >&5
50722
50723         ac_lo=`expr $ac_mid + 1`
50724                         if test $ac_lo -le $ac_mid; then
50725                           ac_lo= ac_hi=
50726                           break
50727                         fi
50728                         ac_mid=`expr 2 '*' $ac_mid + 1`
50729 fi
50730
50731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50732   done
50733 else
50734   echo "$as_me: failed program was:" >&5
50735 sed 's/^/| /' conftest.$ac_ext >&5
50736
50737         cat >conftest.$ac_ext <<_ACEOF
50738 /* confdefs.h.  */
50739 _ACEOF
50740 cat confdefs.h >>conftest.$ac_ext
50741 cat >>conftest.$ac_ext <<_ACEOF
50742 /* end confdefs.h.  */
50743 $ac_includes_default
50744    typedef off_t ac__type_sizeof_;
50745 int
50746 main ()
50747 {
50748 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
50749 test_array [0] = 0
50750
50751   ;
50752   return 0;
50753 }
50754 _ACEOF
50755 rm -f conftest.$ac_objext
50756 if { (ac_try="$ac_compile"
50757 case "(($ac_try" in
50758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50759   *) ac_try_echo=$ac_try;;
50760 esac
50761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50762   (eval "$ac_compile") 2>conftest.er1
50763   ac_status=$?
50764   grep -v '^ *+' conftest.er1 >conftest.err
50765   rm -f conftest.er1
50766   cat conftest.err >&5
50767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50768   (exit $ac_status); } && {
50769          test -z "$ac_c_werror_flag" ||
50770          test ! -s conftest.err
50771        } && test -s conftest.$ac_objext; then
50772   ac_hi=-1 ac_mid=-1
50773   while :; do
50774     cat >conftest.$ac_ext <<_ACEOF
50775 /* confdefs.h.  */
50776 _ACEOF
50777 cat confdefs.h >>conftest.$ac_ext
50778 cat >>conftest.$ac_ext <<_ACEOF
50779 /* end confdefs.h.  */
50780 $ac_includes_default
50781    typedef off_t ac__type_sizeof_;
50782 int
50783 main ()
50784 {
50785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
50786 test_array [0] = 0
50787
50788   ;
50789   return 0;
50790 }
50791 _ACEOF
50792 rm -f conftest.$ac_objext
50793 if { (ac_try="$ac_compile"
50794 case "(($ac_try" in
50795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50796   *) ac_try_echo=$ac_try;;
50797 esac
50798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50799   (eval "$ac_compile") 2>conftest.er1
50800   ac_status=$?
50801   grep -v '^ *+' conftest.er1 >conftest.err
50802   rm -f conftest.er1
50803   cat conftest.err >&5
50804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50805   (exit $ac_status); } && {
50806          test -z "$ac_c_werror_flag" ||
50807          test ! -s conftest.err
50808        } && test -s conftest.$ac_objext; then
50809   ac_lo=$ac_mid; break
50810 else
50811   echo "$as_me: failed program was:" >&5
50812 sed 's/^/| /' conftest.$ac_ext >&5
50813
50814         ac_hi=`expr '(' $ac_mid ')' - 1`
50815                         if test $ac_mid -le $ac_hi; then
50816                           ac_lo= ac_hi=
50817                           break
50818                         fi
50819                         ac_mid=`expr 2 '*' $ac_mid`
50820 fi
50821
50822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50823   done
50824 else
50825   echo "$as_me: failed program was:" >&5
50826 sed 's/^/| /' conftest.$ac_ext >&5
50827
50828         ac_lo= ac_hi=
50829 fi
50830
50831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50832 fi
50833
50834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50835 # Binary search between lo and hi bounds.
50836 while test "x$ac_lo" != "x$ac_hi"; do
50837   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50838   cat >conftest.$ac_ext <<_ACEOF
50839 /* confdefs.h.  */
50840 _ACEOF
50841 cat confdefs.h >>conftest.$ac_ext
50842 cat >>conftest.$ac_ext <<_ACEOF
50843 /* end confdefs.h.  */
50844 $ac_includes_default
50845    typedef off_t ac__type_sizeof_;
50846 int
50847 main ()
50848 {
50849 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
50850 test_array [0] = 0
50851
50852   ;
50853   return 0;
50854 }
50855 _ACEOF
50856 rm -f conftest.$ac_objext
50857 if { (ac_try="$ac_compile"
50858 case "(($ac_try" in
50859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50860   *) ac_try_echo=$ac_try;;
50861 esac
50862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50863   (eval "$ac_compile") 2>conftest.er1
50864   ac_status=$?
50865   grep -v '^ *+' conftest.er1 >conftest.err
50866   rm -f conftest.er1
50867   cat conftest.err >&5
50868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50869   (exit $ac_status); } && {
50870          test -z "$ac_c_werror_flag" ||
50871          test ! -s conftest.err
50872        } && test -s conftest.$ac_objext; then
50873   ac_hi=$ac_mid
50874 else
50875   echo "$as_me: failed program was:" >&5
50876 sed 's/^/| /' conftest.$ac_ext >&5
50877
50878         ac_lo=`expr '(' $ac_mid ')' + 1`
50879 fi
50880
50881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50882 done
50883 case $ac_lo in
50884 ?*) ac_cv_sizeof_off_t=$ac_lo;;
50885 '') if test "$ac_cv_type_off_t" = yes; then
50886      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
50887 See \`config.log' for more details." >&5
50888 echo "$as_me: error: cannot compute sizeof (off_t)
50889 See \`config.log' for more details." >&2;}
50890    { (exit 77); exit 77; }; }
50891    else
50892      ac_cv_sizeof_off_t=0
50893    fi ;;
50894 esac
50895 else
50896   cat >conftest.$ac_ext <<_ACEOF
50897 /* confdefs.h.  */
50898 _ACEOF
50899 cat confdefs.h >>conftest.$ac_ext
50900 cat >>conftest.$ac_ext <<_ACEOF
50901 /* end confdefs.h.  */
50902 $ac_includes_default
50903    typedef off_t ac__type_sizeof_;
50904 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
50905 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
50906 #include <stdio.h>
50907 #include <stdlib.h>
50908 int
50909 main ()
50910 {
50911
50912   FILE *f = fopen ("conftest.val", "w");
50913   if (! f)
50914     return 1;
50915   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
50916     {
50917       long int i = longval ();
50918       if (i != ((long int) (sizeof (ac__type_sizeof_))))
50919         return 1;
50920       fprintf (f, "%ld\n", i);
50921     }
50922   else
50923     {
50924       unsigned long int i = ulongval ();
50925       if (i != ((long int) (sizeof (ac__type_sizeof_))))
50926         return 1;
50927       fprintf (f, "%lu\n", i);
50928     }
50929   return ferror (f) || fclose (f) != 0;
50930
50931   ;
50932   return 0;
50933 }
50934 _ACEOF
50935 rm -f conftest$ac_exeext
50936 if { (ac_try="$ac_link"
50937 case "(($ac_try" in
50938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50939   *) ac_try_echo=$ac_try;;
50940 esac
50941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50942   (eval "$ac_link") 2>&5
50943   ac_status=$?
50944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50945   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50946   { (case "(($ac_try" in
50947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50948   *) ac_try_echo=$ac_try;;
50949 esac
50950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50951   (eval "$ac_try") 2>&5
50952   ac_status=$?
50953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50954   (exit $ac_status); }; }; then
50955   ac_cv_sizeof_off_t=`cat conftest.val`
50956 else
50957   echo "$as_me: program exited with status $ac_status" >&5
50958 echo "$as_me: failed program was:" >&5
50959 sed 's/^/| /' conftest.$ac_ext >&5
50960
50961 ( exit $ac_status )
50962 if test "$ac_cv_type_off_t" = yes; then
50963      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
50964 See \`config.log' for more details." >&5
50965 echo "$as_me: error: cannot compute sizeof (off_t)
50966 See \`config.log' for more details." >&2;}
50967    { (exit 77); exit 77; }; }
50968    else
50969      ac_cv_sizeof_off_t=0
50970    fi
50971 fi
50972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50973 fi
50974 rm -f conftest.val
50975 fi
50976 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
50977 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
50978
50979
50980
50981 cat >>confdefs.h <<_ACEOF
50982 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
50983 _ACEOF
50984
50985
50986 { echo "$as_me:$LINENO: checking for size_t" >&5
50987 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
50988 if test "${ac_cv_type_size_t+set}" = set; then
50989   echo $ECHO_N "(cached) $ECHO_C" >&6
50990 else
50991   cat >conftest.$ac_ext <<_ACEOF
50992 /* confdefs.h.  */
50993 _ACEOF
50994 cat confdefs.h >>conftest.$ac_ext
50995 cat >>conftest.$ac_ext <<_ACEOF
50996 /* end confdefs.h.  */
50997 $ac_includes_default
50998 typedef size_t ac__type_new_;
50999 int
51000 main ()
51001 {
51002 if ((ac__type_new_ *) 0)
51003   return 0;
51004 if (sizeof (ac__type_new_))
51005   return 0;
51006   ;
51007   return 0;
51008 }
51009 _ACEOF
51010 rm -f conftest.$ac_objext
51011 if { (ac_try="$ac_compile"
51012 case "(($ac_try" in
51013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51014   *) ac_try_echo=$ac_try;;
51015 esac
51016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51017   (eval "$ac_compile") 2>conftest.er1
51018   ac_status=$?
51019   grep -v '^ *+' conftest.er1 >conftest.err
51020   rm -f conftest.er1
51021   cat conftest.err >&5
51022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51023   (exit $ac_status); } && {
51024          test -z "$ac_c_werror_flag" ||
51025          test ! -s conftest.err
51026        } && test -s conftest.$ac_objext; then
51027   ac_cv_type_size_t=yes
51028 else
51029   echo "$as_me: failed program was:" >&5
51030 sed 's/^/| /' conftest.$ac_ext >&5
51031
51032         ac_cv_type_size_t=no
51033 fi
51034
51035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51036 fi
51037 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
51038 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
51039
51040 # The cast to long int works around a bug in the HP C Compiler
51041 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51042 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51043 # This bug is HP SR number 8606223364.
51044 { echo "$as_me:$LINENO: checking size of size_t" >&5
51045 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
51046 if test "${ac_cv_sizeof_size_t+set}" = set; then
51047   echo $ECHO_N "(cached) $ECHO_C" >&6
51048 else
51049   if test "$cross_compiling" = yes; then
51050   # Depending upon the size, compute the lo and hi bounds.
51051 cat >conftest.$ac_ext <<_ACEOF
51052 /* confdefs.h.  */
51053 _ACEOF
51054 cat confdefs.h >>conftest.$ac_ext
51055 cat >>conftest.$ac_ext <<_ACEOF
51056 /* end confdefs.h.  */
51057 $ac_includes_default
51058    typedef size_t ac__type_sizeof_;
51059 int
51060 main ()
51061 {
51062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
51063 test_array [0] = 0
51064
51065   ;
51066   return 0;
51067 }
51068 _ACEOF
51069 rm -f conftest.$ac_objext
51070 if { (ac_try="$ac_compile"
51071 case "(($ac_try" in
51072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51073   *) ac_try_echo=$ac_try;;
51074 esac
51075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51076   (eval "$ac_compile") 2>conftest.er1
51077   ac_status=$?
51078   grep -v '^ *+' conftest.er1 >conftest.err
51079   rm -f conftest.er1
51080   cat conftest.err >&5
51081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51082   (exit $ac_status); } && {
51083          test -z "$ac_c_werror_flag" ||
51084          test ! -s conftest.err
51085        } && test -s conftest.$ac_objext; then
51086   ac_lo=0 ac_mid=0
51087   while :; do
51088     cat >conftest.$ac_ext <<_ACEOF
51089 /* confdefs.h.  */
51090 _ACEOF
51091 cat confdefs.h >>conftest.$ac_ext
51092 cat >>conftest.$ac_ext <<_ACEOF
51093 /* end confdefs.h.  */
51094 $ac_includes_default
51095    typedef size_t ac__type_sizeof_;
51096 int
51097 main ()
51098 {
51099 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51100 test_array [0] = 0
51101
51102   ;
51103   return 0;
51104 }
51105 _ACEOF
51106 rm -f conftest.$ac_objext
51107 if { (ac_try="$ac_compile"
51108 case "(($ac_try" in
51109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51110   *) ac_try_echo=$ac_try;;
51111 esac
51112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51113   (eval "$ac_compile") 2>conftest.er1
51114   ac_status=$?
51115   grep -v '^ *+' conftest.er1 >conftest.err
51116   rm -f conftest.er1
51117   cat conftest.err >&5
51118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51119   (exit $ac_status); } && {
51120          test -z "$ac_c_werror_flag" ||
51121          test ! -s conftest.err
51122        } && test -s conftest.$ac_objext; then
51123   ac_hi=$ac_mid; break
51124 else
51125   echo "$as_me: failed program was:" >&5
51126 sed 's/^/| /' conftest.$ac_ext >&5
51127
51128         ac_lo=`expr $ac_mid + 1`
51129                         if test $ac_lo -le $ac_mid; then
51130                           ac_lo= ac_hi=
51131                           break
51132                         fi
51133                         ac_mid=`expr 2 '*' $ac_mid + 1`
51134 fi
51135
51136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51137   done
51138 else
51139   echo "$as_me: failed program was:" >&5
51140 sed 's/^/| /' conftest.$ac_ext >&5
51141
51142         cat >conftest.$ac_ext <<_ACEOF
51143 /* confdefs.h.  */
51144 _ACEOF
51145 cat confdefs.h >>conftest.$ac_ext
51146 cat >>conftest.$ac_ext <<_ACEOF
51147 /* end confdefs.h.  */
51148 $ac_includes_default
51149    typedef size_t ac__type_sizeof_;
51150 int
51151 main ()
51152 {
51153 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
51154 test_array [0] = 0
51155
51156   ;
51157   return 0;
51158 }
51159 _ACEOF
51160 rm -f conftest.$ac_objext
51161 if { (ac_try="$ac_compile"
51162 case "(($ac_try" in
51163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51164   *) ac_try_echo=$ac_try;;
51165 esac
51166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51167   (eval "$ac_compile") 2>conftest.er1
51168   ac_status=$?
51169   grep -v '^ *+' conftest.er1 >conftest.err
51170   rm -f conftest.er1
51171   cat conftest.err >&5
51172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51173   (exit $ac_status); } && {
51174          test -z "$ac_c_werror_flag" ||
51175          test ! -s conftest.err
51176        } && test -s conftest.$ac_objext; then
51177   ac_hi=-1 ac_mid=-1
51178   while :; do
51179     cat >conftest.$ac_ext <<_ACEOF
51180 /* confdefs.h.  */
51181 _ACEOF
51182 cat confdefs.h >>conftest.$ac_ext
51183 cat >>conftest.$ac_ext <<_ACEOF
51184 /* end confdefs.h.  */
51185 $ac_includes_default
51186    typedef size_t ac__type_sizeof_;
51187 int
51188 main ()
51189 {
51190 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
51191 test_array [0] = 0
51192
51193   ;
51194   return 0;
51195 }
51196 _ACEOF
51197 rm -f conftest.$ac_objext
51198 if { (ac_try="$ac_compile"
51199 case "(($ac_try" in
51200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51201   *) ac_try_echo=$ac_try;;
51202 esac
51203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51204   (eval "$ac_compile") 2>conftest.er1
51205   ac_status=$?
51206   grep -v '^ *+' conftest.er1 >conftest.err
51207   rm -f conftest.er1
51208   cat conftest.err >&5
51209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51210   (exit $ac_status); } && {
51211          test -z "$ac_c_werror_flag" ||
51212          test ! -s conftest.err
51213        } && test -s conftest.$ac_objext; then
51214   ac_lo=$ac_mid; break
51215 else
51216   echo "$as_me: failed program was:" >&5
51217 sed 's/^/| /' conftest.$ac_ext >&5
51218
51219         ac_hi=`expr '(' $ac_mid ')' - 1`
51220                         if test $ac_mid -le $ac_hi; then
51221                           ac_lo= ac_hi=
51222                           break
51223                         fi
51224                         ac_mid=`expr 2 '*' $ac_mid`
51225 fi
51226
51227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51228   done
51229 else
51230   echo "$as_me: failed program was:" >&5
51231 sed 's/^/| /' conftest.$ac_ext >&5
51232
51233         ac_lo= ac_hi=
51234 fi
51235
51236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51237 fi
51238
51239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51240 # Binary search between lo and hi bounds.
51241 while test "x$ac_lo" != "x$ac_hi"; do
51242   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
51243   cat >conftest.$ac_ext <<_ACEOF
51244 /* confdefs.h.  */
51245 _ACEOF
51246 cat confdefs.h >>conftest.$ac_ext
51247 cat >>conftest.$ac_ext <<_ACEOF
51248 /* end confdefs.h.  */
51249 $ac_includes_default
51250    typedef size_t ac__type_sizeof_;
51251 int
51252 main ()
51253 {
51254 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51255 test_array [0] = 0
51256
51257   ;
51258   return 0;
51259 }
51260 _ACEOF
51261 rm -f conftest.$ac_objext
51262 if { (ac_try="$ac_compile"
51263 case "(($ac_try" in
51264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51265   *) ac_try_echo=$ac_try;;
51266 esac
51267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51268   (eval "$ac_compile") 2>conftest.er1
51269   ac_status=$?
51270   grep -v '^ *+' conftest.er1 >conftest.err
51271   rm -f conftest.er1
51272   cat conftest.err >&5
51273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51274   (exit $ac_status); } && {
51275          test -z "$ac_c_werror_flag" ||
51276          test ! -s conftest.err
51277        } && test -s conftest.$ac_objext; then
51278   ac_hi=$ac_mid
51279 else
51280   echo "$as_me: failed program was:" >&5
51281 sed 's/^/| /' conftest.$ac_ext >&5
51282
51283         ac_lo=`expr '(' $ac_mid ')' + 1`
51284 fi
51285
51286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51287 done
51288 case $ac_lo in
51289 ?*) ac_cv_sizeof_size_t=$ac_lo;;
51290 '') if test "$ac_cv_type_size_t" = yes; then
51291      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
51292 See \`config.log' for more details." >&5
51293 echo "$as_me: error: cannot compute sizeof (size_t)
51294 See \`config.log' for more details." >&2;}
51295    { (exit 77); exit 77; }; }
51296    else
51297      ac_cv_sizeof_size_t=0
51298    fi ;;
51299 esac
51300 else
51301   cat >conftest.$ac_ext <<_ACEOF
51302 /* confdefs.h.  */
51303 _ACEOF
51304 cat confdefs.h >>conftest.$ac_ext
51305 cat >>conftest.$ac_ext <<_ACEOF
51306 /* end confdefs.h.  */
51307 $ac_includes_default
51308    typedef size_t ac__type_sizeof_;
51309 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
51310 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
51311 #include <stdio.h>
51312 #include <stdlib.h>
51313 int
51314 main ()
51315 {
51316
51317   FILE *f = fopen ("conftest.val", "w");
51318   if (! f)
51319     return 1;
51320   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
51321     {
51322       long int i = longval ();
51323       if (i != ((long int) (sizeof (ac__type_sizeof_))))
51324         return 1;
51325       fprintf (f, "%ld\n", i);
51326     }
51327   else
51328     {
51329       unsigned long int i = ulongval ();
51330       if (i != ((long int) (sizeof (ac__type_sizeof_))))
51331         return 1;
51332       fprintf (f, "%lu\n", i);
51333     }
51334   return ferror (f) || fclose (f) != 0;
51335
51336   ;
51337   return 0;
51338 }
51339 _ACEOF
51340 rm -f conftest$ac_exeext
51341 if { (ac_try="$ac_link"
51342 case "(($ac_try" in
51343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51344   *) ac_try_echo=$ac_try;;
51345 esac
51346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51347   (eval "$ac_link") 2>&5
51348   ac_status=$?
51349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51350   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51351   { (case "(($ac_try" in
51352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51353   *) ac_try_echo=$ac_try;;
51354 esac
51355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51356   (eval "$ac_try") 2>&5
51357   ac_status=$?
51358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51359   (exit $ac_status); }; }; then
51360   ac_cv_sizeof_size_t=`cat conftest.val`
51361 else
51362   echo "$as_me: program exited with status $ac_status" >&5
51363 echo "$as_me: failed program was:" >&5
51364 sed 's/^/| /' conftest.$ac_ext >&5
51365
51366 ( exit $ac_status )
51367 if test "$ac_cv_type_size_t" = yes; then
51368      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
51369 See \`config.log' for more details." >&5
51370 echo "$as_me: error: cannot compute sizeof (size_t)
51371 See \`config.log' for more details." >&2;}
51372    { (exit 77); exit 77; }; }
51373    else
51374      ac_cv_sizeof_size_t=0
51375    fi
51376 fi
51377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51378 fi
51379 rm -f conftest.val
51380 fi
51381 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
51382 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
51383
51384
51385
51386 cat >>confdefs.h <<_ACEOF
51387 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
51388 _ACEOF
51389
51390
51391 { echo "$as_me:$LINENO: checking for ssize_t" >&5
51392 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
51393 if test "${ac_cv_type_ssize_t+set}" = set; then
51394   echo $ECHO_N "(cached) $ECHO_C" >&6
51395 else
51396   cat >conftest.$ac_ext <<_ACEOF
51397 /* confdefs.h.  */
51398 _ACEOF
51399 cat confdefs.h >>conftest.$ac_ext
51400 cat >>conftest.$ac_ext <<_ACEOF
51401 /* end confdefs.h.  */
51402 $ac_includes_default
51403 typedef ssize_t ac__type_new_;
51404 int
51405 main ()
51406 {
51407 if ((ac__type_new_ *) 0)
51408   return 0;
51409 if (sizeof (ac__type_new_))
51410   return 0;
51411   ;
51412   return 0;
51413 }
51414 _ACEOF
51415 rm -f conftest.$ac_objext
51416 if { (ac_try="$ac_compile"
51417 case "(($ac_try" in
51418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51419   *) ac_try_echo=$ac_try;;
51420 esac
51421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51422   (eval "$ac_compile") 2>conftest.er1
51423   ac_status=$?
51424   grep -v '^ *+' conftest.er1 >conftest.err
51425   rm -f conftest.er1
51426   cat conftest.err >&5
51427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51428   (exit $ac_status); } && {
51429          test -z "$ac_c_werror_flag" ||
51430          test ! -s conftest.err
51431        } && test -s conftest.$ac_objext; then
51432   ac_cv_type_ssize_t=yes
51433 else
51434   echo "$as_me: failed program was:" >&5
51435 sed 's/^/| /' conftest.$ac_ext >&5
51436
51437         ac_cv_type_ssize_t=no
51438 fi
51439
51440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51441 fi
51442 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
51443 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
51444
51445 # The cast to long int works around a bug in the HP C Compiler
51446 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51447 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51448 # This bug is HP SR number 8606223364.
51449 { echo "$as_me:$LINENO: checking size of ssize_t" >&5
51450 echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6; }
51451 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
51452   echo $ECHO_N "(cached) $ECHO_C" >&6
51453 else
51454   if test "$cross_compiling" = yes; then
51455   # Depending upon the size, compute the lo and hi bounds.
51456 cat >conftest.$ac_ext <<_ACEOF
51457 /* confdefs.h.  */
51458 _ACEOF
51459 cat confdefs.h >>conftest.$ac_ext
51460 cat >>conftest.$ac_ext <<_ACEOF
51461 /* end confdefs.h.  */
51462 $ac_includes_default
51463    typedef ssize_t ac__type_sizeof_;
51464 int
51465 main ()
51466 {
51467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
51468 test_array [0] = 0
51469
51470   ;
51471   return 0;
51472 }
51473 _ACEOF
51474 rm -f conftest.$ac_objext
51475 if { (ac_try="$ac_compile"
51476 case "(($ac_try" in
51477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51478   *) ac_try_echo=$ac_try;;
51479 esac
51480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51481   (eval "$ac_compile") 2>conftest.er1
51482   ac_status=$?
51483   grep -v '^ *+' conftest.er1 >conftest.err
51484   rm -f conftest.er1
51485   cat conftest.err >&5
51486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51487   (exit $ac_status); } && {
51488          test -z "$ac_c_werror_flag" ||
51489          test ! -s conftest.err
51490        } && test -s conftest.$ac_objext; then
51491   ac_lo=0 ac_mid=0
51492   while :; do
51493     cat >conftest.$ac_ext <<_ACEOF
51494 /* confdefs.h.  */
51495 _ACEOF
51496 cat confdefs.h >>conftest.$ac_ext
51497 cat >>conftest.$ac_ext <<_ACEOF
51498 /* end confdefs.h.  */
51499 $ac_includes_default
51500    typedef ssize_t ac__type_sizeof_;
51501 int
51502 main ()
51503 {
51504 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51505 test_array [0] = 0
51506
51507   ;
51508   return 0;
51509 }
51510 _ACEOF
51511 rm -f conftest.$ac_objext
51512 if { (ac_try="$ac_compile"
51513 case "(($ac_try" in
51514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51515   *) ac_try_echo=$ac_try;;
51516 esac
51517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51518   (eval "$ac_compile") 2>conftest.er1
51519   ac_status=$?
51520   grep -v '^ *+' conftest.er1 >conftest.err
51521   rm -f conftest.er1
51522   cat conftest.err >&5
51523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51524   (exit $ac_status); } && {
51525          test -z "$ac_c_werror_flag" ||
51526          test ! -s conftest.err
51527        } && test -s conftest.$ac_objext; then
51528   ac_hi=$ac_mid; break
51529 else
51530   echo "$as_me: failed program was:" >&5
51531 sed 's/^/| /' conftest.$ac_ext >&5
51532
51533         ac_lo=`expr $ac_mid + 1`
51534                         if test $ac_lo -le $ac_mid; then
51535                           ac_lo= ac_hi=
51536                           break
51537                         fi
51538                         ac_mid=`expr 2 '*' $ac_mid + 1`
51539 fi
51540
51541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51542   done
51543 else
51544   echo "$as_me: failed program was:" >&5
51545 sed 's/^/| /' conftest.$ac_ext >&5
51546
51547         cat >conftest.$ac_ext <<_ACEOF
51548 /* confdefs.h.  */
51549 _ACEOF
51550 cat confdefs.h >>conftest.$ac_ext
51551 cat >>conftest.$ac_ext <<_ACEOF
51552 /* end confdefs.h.  */
51553 $ac_includes_default
51554    typedef ssize_t ac__type_sizeof_;
51555 int
51556 main ()
51557 {
51558 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
51559 test_array [0] = 0
51560
51561   ;
51562   return 0;
51563 }
51564 _ACEOF
51565 rm -f conftest.$ac_objext
51566 if { (ac_try="$ac_compile"
51567 case "(($ac_try" in
51568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51569   *) ac_try_echo=$ac_try;;
51570 esac
51571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51572   (eval "$ac_compile") 2>conftest.er1
51573   ac_status=$?
51574   grep -v '^ *+' conftest.er1 >conftest.err
51575   rm -f conftest.er1
51576   cat conftest.err >&5
51577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51578   (exit $ac_status); } && {
51579          test -z "$ac_c_werror_flag" ||
51580          test ! -s conftest.err
51581        } && test -s conftest.$ac_objext; then
51582   ac_hi=-1 ac_mid=-1
51583   while :; do
51584     cat >conftest.$ac_ext <<_ACEOF
51585 /* confdefs.h.  */
51586 _ACEOF
51587 cat confdefs.h >>conftest.$ac_ext
51588 cat >>conftest.$ac_ext <<_ACEOF
51589 /* end confdefs.h.  */
51590 $ac_includes_default
51591    typedef ssize_t ac__type_sizeof_;
51592 int
51593 main ()
51594 {
51595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51609   (eval "$ac_compile") 2>conftest.er1
51610   ac_status=$?
51611   grep -v '^ *+' conftest.er1 >conftest.err
51612   rm -f conftest.er1
51613   cat conftest.err >&5
51614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51615   (exit $ac_status); } && {
51616          test -z "$ac_c_werror_flag" ||
51617          test ! -s conftest.err
51618        } && test -s conftest.$ac_objext; then
51619   ac_lo=$ac_mid; break
51620 else
51621   echo "$as_me: failed program was:" >&5
51622 sed 's/^/| /' conftest.$ac_ext >&5
51623
51624         ac_hi=`expr '(' $ac_mid ')' - 1`
51625                         if test $ac_mid -le $ac_hi; then
51626                           ac_lo= ac_hi=
51627                           break
51628                         fi
51629                         ac_mid=`expr 2 '*' $ac_mid`
51630 fi
51631
51632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51633   done
51634 else
51635   echo "$as_me: failed program was:" >&5
51636 sed 's/^/| /' conftest.$ac_ext >&5
51637
51638         ac_lo= ac_hi=
51639 fi
51640
51641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51642 fi
51643
51644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51645 # Binary search between lo and hi bounds.
51646 while test "x$ac_lo" != "x$ac_hi"; do
51647   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
51648   cat >conftest.$ac_ext <<_ACEOF
51649 /* confdefs.h.  */
51650 _ACEOF
51651 cat confdefs.h >>conftest.$ac_ext
51652 cat >>conftest.$ac_ext <<_ACEOF
51653 /* end confdefs.h.  */
51654 $ac_includes_default
51655    typedef ssize_t ac__type_sizeof_;
51656 int
51657 main ()
51658 {
51659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51660 test_array [0] = 0
51661
51662   ;
51663   return 0;
51664 }
51665 _ACEOF
51666 rm -f conftest.$ac_objext
51667 if { (ac_try="$ac_compile"
51668 case "(($ac_try" in
51669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51670   *) ac_try_echo=$ac_try;;
51671 esac
51672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51673   (eval "$ac_compile") 2>conftest.er1
51674   ac_status=$?
51675   grep -v '^ *+' conftest.er1 >conftest.err
51676   rm -f conftest.er1
51677   cat conftest.err >&5
51678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51679   (exit $ac_status); } && {
51680          test -z "$ac_c_werror_flag" ||
51681          test ! -s conftest.err
51682        } && test -s conftest.$ac_objext; then
51683   ac_hi=$ac_mid
51684 else
51685   echo "$as_me: failed program was:" >&5
51686 sed 's/^/| /' conftest.$ac_ext >&5
51687
51688         ac_lo=`expr '(' $ac_mid ')' + 1`
51689 fi
51690
51691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51692 done
51693 case $ac_lo in
51694 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
51695 '') if test "$ac_cv_type_ssize_t" = yes; then
51696      { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
51697 See \`config.log' for more details." >&5
51698 echo "$as_me: error: cannot compute sizeof (ssize_t)
51699 See \`config.log' for more details." >&2;}
51700    { (exit 77); exit 77; }; }
51701    else
51702      ac_cv_sizeof_ssize_t=0
51703    fi ;;
51704 esac
51705 else
51706   cat >conftest.$ac_ext <<_ACEOF
51707 /* confdefs.h.  */
51708 _ACEOF
51709 cat confdefs.h >>conftest.$ac_ext
51710 cat >>conftest.$ac_ext <<_ACEOF
51711 /* end confdefs.h.  */
51712 $ac_includes_default
51713    typedef ssize_t ac__type_sizeof_;
51714 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
51715 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
51716 #include <stdio.h>
51717 #include <stdlib.h>
51718 int
51719 main ()
51720 {
51721
51722   FILE *f = fopen ("conftest.val", "w");
51723   if (! f)
51724     return 1;
51725   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
51726     {
51727       long int i = longval ();
51728       if (i != ((long int) (sizeof (ac__type_sizeof_))))
51729         return 1;
51730       fprintf (f, "%ld\n", i);
51731     }
51732   else
51733     {
51734       unsigned long int i = ulongval ();
51735       if (i != ((long int) (sizeof (ac__type_sizeof_))))
51736         return 1;
51737       fprintf (f, "%lu\n", i);
51738     }
51739   return ferror (f) || fclose (f) != 0;
51740
51741   ;
51742   return 0;
51743 }
51744 _ACEOF
51745 rm -f conftest$ac_exeext
51746 if { (ac_try="$ac_link"
51747 case "(($ac_try" in
51748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51749   *) ac_try_echo=$ac_try;;
51750 esac
51751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51752   (eval "$ac_link") 2>&5
51753   ac_status=$?
51754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51755   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51756   { (case "(($ac_try" in
51757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51758   *) ac_try_echo=$ac_try;;
51759 esac
51760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51761   (eval "$ac_try") 2>&5
51762   ac_status=$?
51763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51764   (exit $ac_status); }; }; then
51765   ac_cv_sizeof_ssize_t=`cat conftest.val`
51766 else
51767   echo "$as_me: program exited with status $ac_status" >&5
51768 echo "$as_me: failed program was:" >&5
51769 sed 's/^/| /' conftest.$ac_ext >&5
51770
51771 ( exit $ac_status )
51772 if test "$ac_cv_type_ssize_t" = yes; then
51773      { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
51774 See \`config.log' for more details." >&5
51775 echo "$as_me: error: cannot compute sizeof (ssize_t)
51776 See \`config.log' for more details." >&2;}
51777    { (exit 77); exit 77; }; }
51778    else
51779      ac_cv_sizeof_ssize_t=0
51780    fi
51781 fi
51782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51783 fi
51784 rm -f conftest.val
51785 fi
51786 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
51787 echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6; }
51788
51789
51790
51791 cat >>confdefs.h <<_ACEOF
51792 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
51793 _ACEOF
51794
51795
51796 { echo "$as_me:$LINENO: checking for time_t" >&5
51797 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
51798 if test "${ac_cv_type_time_t+set}" = set; then
51799   echo $ECHO_N "(cached) $ECHO_C" >&6
51800 else
51801   cat >conftest.$ac_ext <<_ACEOF
51802 /* confdefs.h.  */
51803 _ACEOF
51804 cat confdefs.h >>conftest.$ac_ext
51805 cat >>conftest.$ac_ext <<_ACEOF
51806 /* end confdefs.h.  */
51807 $ac_includes_default
51808 typedef time_t ac__type_new_;
51809 int
51810 main ()
51811 {
51812 if ((ac__type_new_ *) 0)
51813   return 0;
51814 if (sizeof (ac__type_new_))
51815   return 0;
51816   ;
51817   return 0;
51818 }
51819 _ACEOF
51820 rm -f conftest.$ac_objext
51821 if { (ac_try="$ac_compile"
51822 case "(($ac_try" in
51823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51824   *) ac_try_echo=$ac_try;;
51825 esac
51826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51827   (eval "$ac_compile") 2>conftest.er1
51828   ac_status=$?
51829   grep -v '^ *+' conftest.er1 >conftest.err
51830   rm -f conftest.er1
51831   cat conftest.err >&5
51832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51833   (exit $ac_status); } && {
51834          test -z "$ac_c_werror_flag" ||
51835          test ! -s conftest.err
51836        } && test -s conftest.$ac_objext; then
51837   ac_cv_type_time_t=yes
51838 else
51839   echo "$as_me: failed program was:" >&5
51840 sed 's/^/| /' conftest.$ac_ext >&5
51841
51842         ac_cv_type_time_t=no
51843 fi
51844
51845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51846 fi
51847 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
51848 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
51849
51850 # The cast to long int works around a bug in the HP C Compiler
51851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51853 # This bug is HP SR number 8606223364.
51854 { echo "$as_me:$LINENO: checking size of time_t" >&5
51855 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
51856 if test "${ac_cv_sizeof_time_t+set}" = set; then
51857   echo $ECHO_N "(cached) $ECHO_C" >&6
51858 else
51859   if test "$cross_compiling" = yes; then
51860   # Depending upon the size, compute the lo and hi bounds.
51861 cat >conftest.$ac_ext <<_ACEOF
51862 /* confdefs.h.  */
51863 _ACEOF
51864 cat confdefs.h >>conftest.$ac_ext
51865 cat >>conftest.$ac_ext <<_ACEOF
51866 /* end confdefs.h.  */
51867 $ac_includes_default
51868    typedef time_t ac__type_sizeof_;
51869 int
51870 main ()
51871 {
51872 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
51873 test_array [0] = 0
51874
51875   ;
51876   return 0;
51877 }
51878 _ACEOF
51879 rm -f conftest.$ac_objext
51880 if { (ac_try="$ac_compile"
51881 case "(($ac_try" in
51882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51883   *) ac_try_echo=$ac_try;;
51884 esac
51885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51886   (eval "$ac_compile") 2>conftest.er1
51887   ac_status=$?
51888   grep -v '^ *+' conftest.er1 >conftest.err
51889   rm -f conftest.er1
51890   cat conftest.err >&5
51891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51892   (exit $ac_status); } && {
51893          test -z "$ac_c_werror_flag" ||
51894          test ! -s conftest.err
51895        } && test -s conftest.$ac_objext; then
51896   ac_lo=0 ac_mid=0
51897   while :; do
51898     cat >conftest.$ac_ext <<_ACEOF
51899 /* confdefs.h.  */
51900 _ACEOF
51901 cat confdefs.h >>conftest.$ac_ext
51902 cat >>conftest.$ac_ext <<_ACEOF
51903 /* end confdefs.h.  */
51904 $ac_includes_default
51905    typedef time_t ac__type_sizeof_;
51906 int
51907 main ()
51908 {
51909 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51910 test_array [0] = 0
51911
51912   ;
51913   return 0;
51914 }
51915 _ACEOF
51916 rm -f conftest.$ac_objext
51917 if { (ac_try="$ac_compile"
51918 case "(($ac_try" in
51919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51920   *) ac_try_echo=$ac_try;;
51921 esac
51922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51923   (eval "$ac_compile") 2>conftest.er1
51924   ac_status=$?
51925   grep -v '^ *+' conftest.er1 >conftest.err
51926   rm -f conftest.er1
51927   cat conftest.err >&5
51928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51929   (exit $ac_status); } && {
51930          test -z "$ac_c_werror_flag" ||
51931          test ! -s conftest.err
51932        } && test -s conftest.$ac_objext; then
51933   ac_hi=$ac_mid; break
51934 else
51935   echo "$as_me: failed program was:" >&5
51936 sed 's/^/| /' conftest.$ac_ext >&5
51937
51938         ac_lo=`expr $ac_mid + 1`
51939                         if test $ac_lo -le $ac_mid; then
51940                           ac_lo= ac_hi=
51941                           break
51942                         fi
51943                         ac_mid=`expr 2 '*' $ac_mid + 1`
51944 fi
51945
51946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51947   done
51948 else
51949   echo "$as_me: failed program was:" >&5
51950 sed 's/^/| /' conftest.$ac_ext >&5
51951
51952         cat >conftest.$ac_ext <<_ACEOF
51953 /* confdefs.h.  */
51954 _ACEOF
51955 cat confdefs.h >>conftest.$ac_ext
51956 cat >>conftest.$ac_ext <<_ACEOF
51957 /* end confdefs.h.  */
51958 $ac_includes_default
51959    typedef time_t ac__type_sizeof_;
51960 int
51961 main ()
51962 {
51963 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
51964 test_array [0] = 0
51965
51966   ;
51967   return 0;
51968 }
51969 _ACEOF
51970 rm -f conftest.$ac_objext
51971 if { (ac_try="$ac_compile"
51972 case "(($ac_try" in
51973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51974   *) ac_try_echo=$ac_try;;
51975 esac
51976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51977   (eval "$ac_compile") 2>conftest.er1
51978   ac_status=$?
51979   grep -v '^ *+' conftest.er1 >conftest.err
51980   rm -f conftest.er1
51981   cat conftest.err >&5
51982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51983   (exit $ac_status); } && {
51984          test -z "$ac_c_werror_flag" ||
51985          test ! -s conftest.err
51986        } && test -s conftest.$ac_objext; then
51987   ac_hi=-1 ac_mid=-1
51988   while :; do
51989     cat >conftest.$ac_ext <<_ACEOF
51990 /* confdefs.h.  */
51991 _ACEOF
51992 cat confdefs.h >>conftest.$ac_ext
51993 cat >>conftest.$ac_ext <<_ACEOF
51994 /* end confdefs.h.  */
51995 $ac_includes_default
51996    typedef time_t ac__type_sizeof_;
51997 int
51998 main ()
51999 {
52000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
52001 test_array [0] = 0
52002
52003   ;
52004   return 0;
52005 }
52006 _ACEOF
52007 rm -f conftest.$ac_objext
52008 if { (ac_try="$ac_compile"
52009 case "(($ac_try" in
52010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52011   *) ac_try_echo=$ac_try;;
52012 esac
52013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52014   (eval "$ac_compile") 2>conftest.er1
52015   ac_status=$?
52016   grep -v '^ *+' conftest.er1 >conftest.err
52017   rm -f conftest.er1
52018   cat conftest.err >&5
52019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52020   (exit $ac_status); } && {
52021          test -z "$ac_c_werror_flag" ||
52022          test ! -s conftest.err
52023        } && test -s conftest.$ac_objext; then
52024   ac_lo=$ac_mid; break
52025 else
52026   echo "$as_me: failed program was:" >&5
52027 sed 's/^/| /' conftest.$ac_ext >&5
52028
52029         ac_hi=`expr '(' $ac_mid ')' - 1`
52030                         if test $ac_mid -le $ac_hi; then
52031                           ac_lo= ac_hi=
52032                           break
52033                         fi
52034                         ac_mid=`expr 2 '*' $ac_mid`
52035 fi
52036
52037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52038   done
52039 else
52040   echo "$as_me: failed program was:" >&5
52041 sed 's/^/| /' conftest.$ac_ext >&5
52042
52043         ac_lo= ac_hi=
52044 fi
52045
52046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52047 fi
52048
52049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52050 # Binary search between lo and hi bounds.
52051 while test "x$ac_lo" != "x$ac_hi"; do
52052   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52053   cat >conftest.$ac_ext <<_ACEOF
52054 /* confdefs.h.  */
52055 _ACEOF
52056 cat confdefs.h >>conftest.$ac_ext
52057 cat >>conftest.$ac_ext <<_ACEOF
52058 /* end confdefs.h.  */
52059 $ac_includes_default
52060    typedef time_t ac__type_sizeof_;
52061 int
52062 main ()
52063 {
52064 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
52065 test_array [0] = 0
52066
52067   ;
52068   return 0;
52069 }
52070 _ACEOF
52071 rm -f conftest.$ac_objext
52072 if { (ac_try="$ac_compile"
52073 case "(($ac_try" in
52074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52075   *) ac_try_echo=$ac_try;;
52076 esac
52077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52078   (eval "$ac_compile") 2>conftest.er1
52079   ac_status=$?
52080   grep -v '^ *+' conftest.er1 >conftest.err
52081   rm -f conftest.er1
52082   cat conftest.err >&5
52083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52084   (exit $ac_status); } && {
52085          test -z "$ac_c_werror_flag" ||
52086          test ! -s conftest.err
52087        } && test -s conftest.$ac_objext; then
52088   ac_hi=$ac_mid
52089 else
52090   echo "$as_me: failed program was:" >&5
52091 sed 's/^/| /' conftest.$ac_ext >&5
52092
52093         ac_lo=`expr '(' $ac_mid ')' + 1`
52094 fi
52095
52096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52097 done
52098 case $ac_lo in
52099 ?*) ac_cv_sizeof_time_t=$ac_lo;;
52100 '') if test "$ac_cv_type_time_t" = yes; then
52101      { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
52102 See \`config.log' for more details." >&5
52103 echo "$as_me: error: cannot compute sizeof (time_t)
52104 See \`config.log' for more details." >&2;}
52105    { (exit 77); exit 77; }; }
52106    else
52107      ac_cv_sizeof_time_t=0
52108    fi ;;
52109 esac
52110 else
52111   cat >conftest.$ac_ext <<_ACEOF
52112 /* confdefs.h.  */
52113 _ACEOF
52114 cat confdefs.h >>conftest.$ac_ext
52115 cat >>conftest.$ac_ext <<_ACEOF
52116 /* end confdefs.h.  */
52117 $ac_includes_default
52118    typedef time_t ac__type_sizeof_;
52119 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
52120 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
52121 #include <stdio.h>
52122 #include <stdlib.h>
52123 int
52124 main ()
52125 {
52126
52127   FILE *f = fopen ("conftest.val", "w");
52128   if (! f)
52129     return 1;
52130   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
52131     {
52132       long int i = longval ();
52133       if (i != ((long int) (sizeof (ac__type_sizeof_))))
52134         return 1;
52135       fprintf (f, "%ld\n", i);
52136     }
52137   else
52138     {
52139       unsigned long int i = ulongval ();
52140       if (i != ((long int) (sizeof (ac__type_sizeof_))))
52141         return 1;
52142       fprintf (f, "%lu\n", i);
52143     }
52144   return ferror (f) || fclose (f) != 0;
52145
52146   ;
52147   return 0;
52148 }
52149 _ACEOF
52150 rm -f conftest$ac_exeext
52151 if { (ac_try="$ac_link"
52152 case "(($ac_try" in
52153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52154   *) ac_try_echo=$ac_try;;
52155 esac
52156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52157   (eval "$ac_link") 2>&5
52158   ac_status=$?
52159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52160   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52161   { (case "(($ac_try" in
52162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52163   *) ac_try_echo=$ac_try;;
52164 esac
52165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52166   (eval "$ac_try") 2>&5
52167   ac_status=$?
52168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52169   (exit $ac_status); }; }; then
52170   ac_cv_sizeof_time_t=`cat conftest.val`
52171 else
52172   echo "$as_me: program exited with status $ac_status" >&5
52173 echo "$as_me: failed program was:" >&5
52174 sed 's/^/| /' conftest.$ac_ext >&5
52175
52176 ( exit $ac_status )
52177 if test "$ac_cv_type_time_t" = yes; then
52178      { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
52179 See \`config.log' for more details." >&5
52180 echo "$as_me: error: cannot compute sizeof (time_t)
52181 See \`config.log' for more details." >&2;}
52182    { (exit 77); exit 77; }; }
52183    else
52184      ac_cv_sizeof_time_t=0
52185    fi
52186 fi
52187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52188 fi
52189 rm -f conftest.val
52190 fi
52191 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
52192 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
52193
52194
52195
52196 cat >>confdefs.h <<_ACEOF
52197 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
52198 _ACEOF
52199
52200
52201 { echo "$as_me:$LINENO: checking for off_t" >&5
52202 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
52203 if test "${ac_cv_type_off_t+set}" = set; then
52204   echo $ECHO_N "(cached) $ECHO_C" >&6
52205 else
52206   cat >conftest.$ac_ext <<_ACEOF
52207 /* confdefs.h.  */
52208 _ACEOF
52209 cat confdefs.h >>conftest.$ac_ext
52210 cat >>conftest.$ac_ext <<_ACEOF
52211 /* end confdefs.h.  */
52212 $ac_includes_default
52213 typedef off_t ac__type_new_;
52214 int
52215 main ()
52216 {
52217 if ((ac__type_new_ *) 0)
52218   return 0;
52219 if (sizeof (ac__type_new_))
52220   return 0;
52221   ;
52222   return 0;
52223 }
52224 _ACEOF
52225 rm -f conftest.$ac_objext
52226 if { (ac_try="$ac_compile"
52227 case "(($ac_try" in
52228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52229   *) ac_try_echo=$ac_try;;
52230 esac
52231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52232   (eval "$ac_compile") 2>conftest.er1
52233   ac_status=$?
52234   grep -v '^ *+' conftest.er1 >conftest.err
52235   rm -f conftest.er1
52236   cat conftest.err >&5
52237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52238   (exit $ac_status); } && {
52239          test -z "$ac_c_werror_flag" ||
52240          test ! -s conftest.err
52241        } && test -s conftest.$ac_objext; then
52242   ac_cv_type_off_t=yes
52243 else
52244   echo "$as_me: failed program was:" >&5
52245 sed 's/^/| /' conftest.$ac_ext >&5
52246
52247         ac_cv_type_off_t=no
52248 fi
52249
52250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52251 fi
52252 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
52253 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
52254 if test $ac_cv_type_off_t = yes; then
52255   :
52256 else
52257
52258 cat >>confdefs.h <<_ACEOF
52259 #define off_t long int
52260 _ACEOF
52261
52262 fi
52263
52264 { echo "$as_me:$LINENO: checking for pid_t" >&5
52265 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
52266 if test "${ac_cv_type_pid_t+set}" = set; then
52267   echo $ECHO_N "(cached) $ECHO_C" >&6
52268 else
52269   cat >conftest.$ac_ext <<_ACEOF
52270 /* confdefs.h.  */
52271 _ACEOF
52272 cat confdefs.h >>conftest.$ac_ext
52273 cat >>conftest.$ac_ext <<_ACEOF
52274 /* end confdefs.h.  */
52275 $ac_includes_default
52276 typedef pid_t ac__type_new_;
52277 int
52278 main ()
52279 {
52280 if ((ac__type_new_ *) 0)
52281   return 0;
52282 if (sizeof (ac__type_new_))
52283   return 0;
52284   ;
52285   return 0;
52286 }
52287 _ACEOF
52288 rm -f conftest.$ac_objext
52289 if { (ac_try="$ac_compile"
52290 case "(($ac_try" in
52291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52292   *) ac_try_echo=$ac_try;;
52293 esac
52294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52295   (eval "$ac_compile") 2>conftest.er1
52296   ac_status=$?
52297   grep -v '^ *+' conftest.er1 >conftest.err
52298   rm -f conftest.er1
52299   cat conftest.err >&5
52300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52301   (exit $ac_status); } && {
52302          test -z "$ac_c_werror_flag" ||
52303          test ! -s conftest.err
52304        } && test -s conftest.$ac_objext; then
52305   ac_cv_type_pid_t=yes
52306 else
52307   echo "$as_me: failed program was:" >&5
52308 sed 's/^/| /' conftest.$ac_ext >&5
52309
52310         ac_cv_type_pid_t=no
52311 fi
52312
52313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52314 fi
52315 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
52316 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
52317 if test $ac_cv_type_pid_t = yes; then
52318   :
52319 else
52320
52321 cat >>confdefs.h <<_ACEOF
52322 #define pid_t int
52323 _ACEOF
52324
52325 fi
52326
52327 { echo "$as_me:$LINENO: checking for size_t" >&5
52328 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
52329 if test "${ac_cv_type_size_t+set}" = set; then
52330   echo $ECHO_N "(cached) $ECHO_C" >&6
52331 else
52332   cat >conftest.$ac_ext <<_ACEOF
52333 /* confdefs.h.  */
52334 _ACEOF
52335 cat confdefs.h >>conftest.$ac_ext
52336 cat >>conftest.$ac_ext <<_ACEOF
52337 /* end confdefs.h.  */
52338 $ac_includes_default
52339 typedef size_t ac__type_new_;
52340 int
52341 main ()
52342 {
52343 if ((ac__type_new_ *) 0)
52344   return 0;
52345 if (sizeof (ac__type_new_))
52346   return 0;
52347   ;
52348   return 0;
52349 }
52350 _ACEOF
52351 rm -f conftest.$ac_objext
52352 if { (ac_try="$ac_compile"
52353 case "(($ac_try" in
52354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52355   *) ac_try_echo=$ac_try;;
52356 esac
52357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52358   (eval "$ac_compile") 2>conftest.er1
52359   ac_status=$?
52360   grep -v '^ *+' conftest.er1 >conftest.err
52361   rm -f conftest.er1
52362   cat conftest.err >&5
52363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52364   (exit $ac_status); } && {
52365          test -z "$ac_c_werror_flag" ||
52366          test ! -s conftest.err
52367        } && test -s conftest.$ac_objext; then
52368   ac_cv_type_size_t=yes
52369 else
52370   echo "$as_me: failed program was:" >&5
52371 sed 's/^/| /' conftest.$ac_ext >&5
52372
52373         ac_cv_type_size_t=no
52374 fi
52375
52376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52377 fi
52378 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
52379 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
52380 if test $ac_cv_type_size_t = yes; then
52381   :
52382 else
52383
52384 cat >>confdefs.h <<_ACEOF
52385 #define size_t unsigned int
52386 _ACEOF
52387
52388 fi
52389
52390 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
52391 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
52392 if test "${ac_cv_type_uid_t+set}" = set; then
52393   echo $ECHO_N "(cached) $ECHO_C" >&6
52394 else
52395   cat >conftest.$ac_ext <<_ACEOF
52396 /* confdefs.h.  */
52397 _ACEOF
52398 cat confdefs.h >>conftest.$ac_ext
52399 cat >>conftest.$ac_ext <<_ACEOF
52400 /* end confdefs.h.  */
52401 #include <sys/types.h>
52402
52403 _ACEOF
52404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52405   $EGREP "uid_t" >/dev/null 2>&1; then
52406   ac_cv_type_uid_t=yes
52407 else
52408   ac_cv_type_uid_t=no
52409 fi
52410 rm -f conftest*
52411
52412 fi
52413 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
52414 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
52415 if test $ac_cv_type_uid_t = no; then
52416
52417 cat >>confdefs.h <<\_ACEOF
52418 #define uid_t int
52419 _ACEOF
52420
52421
52422 cat >>confdefs.h <<\_ACEOF
52423 #define gid_t int
52424 _ACEOF
52425
52426 fi
52427
52428 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
52429 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
52430 if test "${ac_cv_type_signal+set}" = set; then
52431   echo $ECHO_N "(cached) $ECHO_C" >&6
52432 else
52433   cat >conftest.$ac_ext <<_ACEOF
52434 /* confdefs.h.  */
52435 _ACEOF
52436 cat confdefs.h >>conftest.$ac_ext
52437 cat >>conftest.$ac_ext <<_ACEOF
52438 /* end confdefs.h.  */
52439 #include <sys/types.h>
52440 #include <signal.h>
52441
52442 int
52443 main ()
52444 {
52445 return *(signal (0, 0)) (0) == 1;
52446   ;
52447   return 0;
52448 }
52449 _ACEOF
52450 rm -f conftest.$ac_objext
52451 if { (ac_try="$ac_compile"
52452 case "(($ac_try" in
52453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52454   *) ac_try_echo=$ac_try;;
52455 esac
52456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52457   (eval "$ac_compile") 2>conftest.er1
52458   ac_status=$?
52459   grep -v '^ *+' conftest.er1 >conftest.err
52460   rm -f conftest.er1
52461   cat conftest.err >&5
52462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52463   (exit $ac_status); } && {
52464          test -z "$ac_c_werror_flag" ||
52465          test ! -s conftest.err
52466        } && test -s conftest.$ac_objext; then
52467   ac_cv_type_signal=int
52468 else
52469   echo "$as_me: failed program was:" >&5
52470 sed 's/^/| /' conftest.$ac_ext >&5
52471
52472         ac_cv_type_signal=void
52473 fi
52474
52475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52476 fi
52477 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
52478 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
52479
52480 cat >>confdefs.h <<_ACEOF
52481 #define RETSIGTYPE $ac_cv_type_signal
52482 _ACEOF
52483
52484
52485 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
52486 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
52487 if test "${ac_cv_struct_tm+set}" = set; then
52488   echo $ECHO_N "(cached) $ECHO_C" >&6
52489 else
52490   cat >conftest.$ac_ext <<_ACEOF
52491 /* confdefs.h.  */
52492 _ACEOF
52493 cat confdefs.h >>conftest.$ac_ext
52494 cat >>conftest.$ac_ext <<_ACEOF
52495 /* end confdefs.h.  */
52496 #include <sys/types.h>
52497 #include <time.h>
52498
52499 int
52500 main ()
52501 {
52502 struct tm tm;
52503                                      int *p = &tm.tm_sec;
52504                                      return !p;
52505   ;
52506   return 0;
52507 }
52508 _ACEOF
52509 rm -f conftest.$ac_objext
52510 if { (ac_try="$ac_compile"
52511 case "(($ac_try" in
52512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52513   *) ac_try_echo=$ac_try;;
52514 esac
52515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52516   (eval "$ac_compile") 2>conftest.er1
52517   ac_status=$?
52518   grep -v '^ *+' conftest.er1 >conftest.err
52519   rm -f conftest.er1
52520   cat conftest.err >&5
52521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52522   (exit $ac_status); } && {
52523          test -z "$ac_c_werror_flag" ||
52524          test ! -s conftest.err
52525        } && test -s conftest.$ac_objext; then
52526   ac_cv_struct_tm=time.h
52527 else
52528   echo "$as_me: failed program was:" >&5
52529 sed 's/^/| /' conftest.$ac_ext >&5
52530
52531         ac_cv_struct_tm=sys/time.h
52532 fi
52533
52534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52535 fi
52536 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
52537 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
52538 if test $ac_cv_struct_tm = sys/time.h; then
52539
52540 cat >>confdefs.h <<\_ACEOF
52541 #define TM_IN_SYS_TIME 1
52542 _ACEOF
52543
52544 fi
52545
52546
52547       ## lifted from config/gnulib/socklen.m4
52548             { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
52549 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
52550       if test "${gl_cv_socklen_t_equiv+set}" = set; then
52551   echo $ECHO_N "(cached) $ECHO_C" >&6
52552 else
52553   # Systems have either "struct sockaddr *" or
52554          # "void *" as the second argument to getpeername
52555          gl_cv_socklen_t_equiv=
52556          for arg2 in "struct sockaddr" void; do
52557            for t in socklen_t int size_t "unsigned int" "long int" "unsigned long int"; do
52558              cat >conftest.$ac_ext <<_ACEOF
52559 /* confdefs.h.  */
52560 _ACEOF
52561 cat confdefs.h >>conftest.$ac_ext
52562 cat >>conftest.$ac_ext <<_ACEOF
52563 /* end confdefs.h.  */
52564 #include <sys/types.h>
52565                 #include <sys/socket.h>
52566
52567                 int getpeername (int, $arg2 *, $t *);
52568 int
52569 main ()
52570 {
52571 $t len;
52572                 getpeername (0, 0, &len);
52573   ;
52574   return 0;
52575 }
52576 _ACEOF
52577 rm -f conftest.$ac_objext
52578 if { (ac_try="$ac_compile"
52579 case "(($ac_try" in
52580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52581   *) ac_try_echo=$ac_try;;
52582 esac
52583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52584   (eval "$ac_compile") 2>conftest.er1
52585   ac_status=$?
52586   grep -v '^ *+' conftest.er1 >conftest.err
52587   rm -f conftest.er1
52588   cat conftest.err >&5
52589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52590   (exit $ac_status); } && {
52591          test -z "$ac_c_werror_flag" ||
52592          test ! -s conftest.err
52593        } && test -s conftest.$ac_objext; then
52594   gl_cv_socklen_t_equiv="$t"
52595 else
52596   echo "$as_me: failed program was:" >&5
52597 sed 's/^/| /' conftest.$ac_ext >&5
52598
52599
52600 fi
52601
52602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52603              test "$gl_cv_socklen_t_equiv" != "" && break
52604            done
52605            test "$gl_cv_socklen_t_equiv" != "" && break
52606          done
52607
52608 fi
52609
52610       ## end lifting from config/gnulib/socklen.m4
52611       # fallback if the check fails
52612       if test "$gl_cv_socklen_t_equiv" = ""; then
52613         gl_cv_socklen_t_equiv=socklen_t
52614       fi
52615       { echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
52616 echo "${ECHO_T}$gl_cv_socklen_t_equiv" >&6; }
52617
52618
52619 cat >>confdefs.h <<_ACEOF
52620 #define socklen_t_equiv $gl_cv_socklen_t_equiv
52621 _ACEOF
52622
52623
52624
52625
52626     { echo "$as_me:$LINENO: checking for sa_family_t" >&5
52627 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
52628 if test "${ac_cv_type_sa_family_t+set}" = set; then
52629   echo $ECHO_N "(cached) $ECHO_C" >&6
52630 else
52631   cat >conftest.$ac_ext <<_ACEOF
52632 /* confdefs.h.  */
52633 _ACEOF
52634 cat confdefs.h >>conftest.$ac_ext
52635 cat >>conftest.$ac_ext <<_ACEOF
52636 /* end confdefs.h.  */
52637
52638 #ifdef STDC_HEADERS
52639 #include <stdlib.h>
52640 #include <stddef.h>
52641 #endif
52642 #include <sys/socket.h>
52643
52644
52645
52646 typedef sa_family_t ac__type_new_;
52647 int
52648 main ()
52649 {
52650 if ((ac__type_new_ *) 0)
52651   return 0;
52652 if (sizeof (ac__type_new_))
52653   return 0;
52654   ;
52655   return 0;
52656 }
52657 _ACEOF
52658 rm -f conftest.$ac_objext
52659 if { (ac_try="$ac_compile"
52660 case "(($ac_try" in
52661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52662   *) ac_try_echo=$ac_try;;
52663 esac
52664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52665   (eval "$ac_compile") 2>conftest.er1
52666   ac_status=$?
52667   grep -v '^ *+' conftest.er1 >conftest.err
52668   rm -f conftest.er1
52669   cat conftest.err >&5
52670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52671   (exit $ac_status); } && {
52672          test -z "$ac_c_werror_flag" ||
52673          test ! -s conftest.err
52674        } && test -s conftest.$ac_objext; then
52675   ac_cv_type_sa_family_t=yes
52676 else
52677   echo "$as_me: failed program was:" >&5
52678 sed 's/^/| /' conftest.$ac_ext >&5
52679
52680         ac_cv_type_sa_family_t=no
52681 fi
52682
52683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52684 fi
52685 { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
52686 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
52687 if test $ac_cv_type_sa_family_t = yes; then
52688   :
52689 else
52690
52691
52692 cat >>confdefs.h <<\_ACEOF
52693 #define sa_family_t unsigned short
52694 _ACEOF
52695
52696
52697 fi
52698
52699
52700
52701
52702     { echo "$as_me:$LINENO: checking for in_port_t" >&5
52703 echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
52704 if test "${ac_cv_type_in_port_t+set}" = set; then
52705   echo $ECHO_N "(cached) $ECHO_C" >&6
52706 else
52707   cat >conftest.$ac_ext <<_ACEOF
52708 /* confdefs.h.  */
52709 _ACEOF
52710 cat confdefs.h >>conftest.$ac_ext
52711 cat >>conftest.$ac_ext <<_ACEOF
52712 /* end confdefs.h.  */
52713
52714 #ifdef STDC_HEADERS
52715 #include <stdlib.h>
52716 #include <stddef.h>
52717 #endif
52718 #include <netinet/in.h>
52719
52720
52721
52722 typedef in_port_t ac__type_new_;
52723 int
52724 main ()
52725 {
52726 if ((ac__type_new_ *) 0)
52727   return 0;
52728 if (sizeof (ac__type_new_))
52729   return 0;
52730   ;
52731   return 0;
52732 }
52733 _ACEOF
52734 rm -f conftest.$ac_objext
52735 if { (ac_try="$ac_compile"
52736 case "(($ac_try" in
52737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52738   *) ac_try_echo=$ac_try;;
52739 esac
52740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52741   (eval "$ac_compile") 2>conftest.er1
52742   ac_status=$?
52743   grep -v '^ *+' conftest.er1 >conftest.err
52744   rm -f conftest.er1
52745   cat conftest.err >&5
52746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52747   (exit $ac_status); } && {
52748          test -z "$ac_c_werror_flag" ||
52749          test ! -s conftest.err
52750        } && test -s conftest.$ac_objext; then
52751   ac_cv_type_in_port_t=yes
52752 else
52753   echo "$as_me: failed program was:" >&5
52754 sed 's/^/| /' conftest.$ac_ext >&5
52755
52756         ac_cv_type_in_port_t=no
52757 fi
52758
52759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52760 fi
52761 { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
52762 echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
52763 if test $ac_cv_type_in_port_t = yes; then
52764   :
52765 else
52766
52767
52768 cat >>confdefs.h <<\_ACEOF
52769 #define in_port_t unsigned short
52770 _ACEOF
52771
52772
52773 fi
52774
52775
52776
52777
52778
52779
52780 for ac_header in sys/wait.h wait.h
52781 do
52782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52784   { echo "$as_me:$LINENO: checking for $ac_header" >&5
52785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
52786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52787   echo $ECHO_N "(cached) $ECHO_C" >&6
52788 fi
52789 ac_res=`eval echo '${'$as_ac_Header'}'`
52790                { echo "$as_me:$LINENO: result: $ac_res" >&5
52791 echo "${ECHO_T}$ac_res" >&6; }
52792 else
52793   # Is the header compilable?
52794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
52795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
52796 cat >conftest.$ac_ext <<_ACEOF
52797 /* confdefs.h.  */
52798 _ACEOF
52799 cat confdefs.h >>conftest.$ac_ext
52800 cat >>conftest.$ac_ext <<_ACEOF
52801 /* end confdefs.h.  */
52802 $ac_includes_default
52803 #include <$ac_header>
52804 _ACEOF
52805 rm -f conftest.$ac_objext
52806 if { (ac_try="$ac_compile"
52807 case "(($ac_try" in
52808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52809   *) ac_try_echo=$ac_try;;
52810 esac
52811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52812   (eval "$ac_compile") 2>conftest.er1
52813   ac_status=$?
52814   grep -v '^ *+' conftest.er1 >conftest.err
52815   rm -f conftest.er1
52816   cat conftest.err >&5
52817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52818   (exit $ac_status); } && {
52819          test -z "$ac_c_werror_flag" ||
52820          test ! -s conftest.err
52821        } && test -s conftest.$ac_objext; then
52822   ac_header_compiler=yes
52823 else
52824   echo "$as_me: failed program was:" >&5
52825 sed 's/^/| /' conftest.$ac_ext >&5
52826
52827         ac_header_compiler=no
52828 fi
52829
52830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52832 echo "${ECHO_T}$ac_header_compiler" >&6; }
52833
52834 # Is the header present?
52835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
52836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
52837 cat >conftest.$ac_ext <<_ACEOF
52838 /* confdefs.h.  */
52839 _ACEOF
52840 cat confdefs.h >>conftest.$ac_ext
52841 cat >>conftest.$ac_ext <<_ACEOF
52842 /* end confdefs.h.  */
52843 #include <$ac_header>
52844 _ACEOF
52845 if { (ac_try="$ac_cpp conftest.$ac_ext"
52846 case "(($ac_try" in
52847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52848   *) ac_try_echo=$ac_try;;
52849 esac
52850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
52852   ac_status=$?
52853   grep -v '^ *+' conftest.er1 >conftest.err
52854   rm -f conftest.er1
52855   cat conftest.err >&5
52856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52857   (exit $ac_status); } >/dev/null && {
52858          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
52859          test ! -s conftest.err
52860        }; then
52861   ac_header_preproc=yes
52862 else
52863   echo "$as_me: failed program was:" >&5
52864 sed 's/^/| /' conftest.$ac_ext >&5
52865
52866   ac_header_preproc=no
52867 fi
52868
52869 rm -f conftest.err conftest.$ac_ext
52870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52871 echo "${ECHO_T}$ac_header_preproc" >&6; }
52872
52873 # So?  What about this header?
52874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52875   yes:no: )
52876     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52880     ac_header_preproc=yes
52881     ;;
52882   no:yes:* )
52883     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52885     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
52886 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
52887     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52889     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
52890 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
52891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52893     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52895
52896     ;;
52897 esac
52898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
52899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
52900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52901   echo $ECHO_N "(cached) $ECHO_C" >&6
52902 else
52903   eval "$as_ac_Header=\$ac_header_preproc"
52904 fi
52905 ac_res=`eval echo '${'$as_ac_Header'}'`
52906                { echo "$as_me:$LINENO: result: $ac_res" >&5
52907 echo "${ECHO_T}$ac_res" >&6; }
52908
52909 fi
52910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52911   cat >>confdefs.h <<_ACEOF
52912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52913 _ACEOF
52914
52915 fi
52916
52917 done
52918
52919     { echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
52920 echo $ECHO_N "checking whether wait uses union wait... $ECHO_C" >&6; }
52921 if test "${cf_cv_arg_union_wait+set}" = set; then
52922   echo $ECHO_N "(cached) $ECHO_C" >&6
52923 else
52924
52925         cat >conftest.$ac_ext <<_ACEOF
52926 /* confdefs.h.  */
52927 _ACEOF
52928 cat confdefs.h >>conftest.$ac_ext
52929 cat >>conftest.$ac_ext <<_ACEOF
52930 /* end confdefs.h.  */
52931
52932 #include <sys/types.h>
52933
52934 #if HAVE_SYS_WAIT_H
52935 # include <sys/wait.h>
52936 #else
52937 # if HAVE_WAIT_H
52938 #  include <wait.h>
52939 # endif
52940 #endif
52941
52942 #ifdef __STDC__
52943 pid_t wait(union wait *);
52944 #endif
52945
52946 int
52947 main ()
52948 {
52949
52950   union wait x; int i;
52951   wait(&x); i = WIFEXITED(x)
52952
52953   ;
52954   return 0;
52955 }
52956 _ACEOF
52957 rm -f conftest.$ac_objext
52958 if { (ac_try="$ac_compile"
52959 case "(($ac_try" in
52960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52961   *) ac_try_echo=$ac_try;;
52962 esac
52963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52964   (eval "$ac_compile") 2>conftest.er1
52965   ac_status=$?
52966   grep -v '^ *+' conftest.er1 >conftest.err
52967   rm -f conftest.er1
52968   cat conftest.err >&5
52969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52970   (exit $ac_status); } && {
52971          test -z "$ac_c_werror_flag" ||
52972          test ! -s conftest.err
52973        } && test -s conftest.$ac_objext; then
52974   cf_cv_arg_union_wait=yes
52975 else
52976   echo "$as_me: failed program was:" >&5
52977 sed 's/^/| /' conftest.$ac_ext >&5
52978
52979         cf_cv_arg_union_wait=no
52980 fi
52981
52982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52983 fi
52984 { echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
52985 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6; }
52986     if test $cf_cv_arg_union_wait = yes; then
52987
52988 cat >>confdefs.h <<\_ACEOF
52989 #define WAIT_USES_UNION 1
52990 _ACEOF
52991
52992     fi
52993
52994
52995
52996
52997
52998 for ac_header in sys/wait.h wait.h
52999 do
53000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53002   { echo "$as_me:$LINENO: checking for $ac_header" >&5
53003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
53004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53005   echo $ECHO_N "(cached) $ECHO_C" >&6
53006 fi
53007 ac_res=`eval echo '${'$as_ac_Header'}'`
53008                { echo "$as_me:$LINENO: result: $ac_res" >&5
53009 echo "${ECHO_T}$ac_res" >&6; }
53010 else
53011   # Is the header compilable?
53012 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
53013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
53014 cat >conftest.$ac_ext <<_ACEOF
53015 /* confdefs.h.  */
53016 _ACEOF
53017 cat confdefs.h >>conftest.$ac_ext
53018 cat >>conftest.$ac_ext <<_ACEOF
53019 /* end confdefs.h.  */
53020 $ac_includes_default
53021 #include <$ac_header>
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53030   (eval "$ac_compile") 2>conftest.er1
53031   ac_status=$?
53032   grep -v '^ *+' conftest.er1 >conftest.err
53033   rm -f conftest.er1
53034   cat conftest.err >&5
53035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53036   (exit $ac_status); } && {
53037          test -z "$ac_c_werror_flag" ||
53038          test ! -s conftest.err
53039        } && test -s conftest.$ac_objext; then
53040   ac_header_compiler=yes
53041 else
53042   echo "$as_me: failed program was:" >&5
53043 sed 's/^/| /' conftest.$ac_ext >&5
53044
53045         ac_header_compiler=no
53046 fi
53047
53048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53050 echo "${ECHO_T}$ac_header_compiler" >&6; }
53051
53052 # Is the header present?
53053 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
53054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
53055 cat >conftest.$ac_ext <<_ACEOF
53056 /* confdefs.h.  */
53057 _ACEOF
53058 cat confdefs.h >>conftest.$ac_ext
53059 cat >>conftest.$ac_ext <<_ACEOF
53060 /* end confdefs.h.  */
53061 #include <$ac_header>
53062 _ACEOF
53063 if { (ac_try="$ac_cpp conftest.$ac_ext"
53064 case "(($ac_try" in
53065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53066   *) ac_try_echo=$ac_try;;
53067 esac
53068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53069   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
53070   ac_status=$?
53071   grep -v '^ *+' conftest.er1 >conftest.err
53072   rm -f conftest.er1
53073   cat conftest.err >&5
53074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53075   (exit $ac_status); } >/dev/null && {
53076          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
53077          test ! -s conftest.err
53078        }; then
53079   ac_header_preproc=yes
53080 else
53081   echo "$as_me: failed program was:" >&5
53082 sed 's/^/| /' conftest.$ac_ext >&5
53083
53084   ac_header_preproc=no
53085 fi
53086
53087 rm -f conftest.err conftest.$ac_ext
53088 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53089 echo "${ECHO_T}$ac_header_preproc" >&6; }
53090
53091 # So?  What about this header?
53092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53093   yes:no: )
53094     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53096     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53098     ac_header_preproc=yes
53099     ;;
53100   no:yes:* )
53101     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53103     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
53104 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
53105     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53107     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
53108 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
53109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53111     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53113
53114     ;;
53115 esac
53116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
53117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
53118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53119   echo $ECHO_N "(cached) $ECHO_C" >&6
53120 else
53121   eval "$as_ac_Header=\$ac_header_preproc"
53122 fi
53123 ac_res=`eval echo '${'$as_ac_Header'}'`
53124                { echo "$as_me:$LINENO: result: $ac_res" >&5
53125 echo "${ECHO_T}$ac_res" >&6; }
53126
53127 fi
53128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53129   cat >>confdefs.h <<_ACEOF
53130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53131 _ACEOF
53132
53133 fi
53134
53135 done
53136
53137     { echo "$as_me:$LINENO: checking whether wait uses int" >&5
53138 echo $ECHO_N "checking whether wait uses int... $ECHO_C" >&6; }
53139 if test "${cf_cv_arg_int+set}" = set; then
53140   echo $ECHO_N "(cached) $ECHO_C" >&6
53141 else
53142
53143         cat >conftest.$ac_ext <<_ACEOF
53144 /* confdefs.h.  */
53145 _ACEOF
53146 cat confdefs.h >>conftest.$ac_ext
53147 cat >>conftest.$ac_ext <<_ACEOF
53148 /* end confdefs.h.  */
53149
53150 #include <sys/types.h>
53151
53152 #if HAVE_SYS_WAIT_H
53153 # include <sys/wait.h>
53154 #else
53155 # if HAVE_WAIT_H
53156 #  include <wait.h>
53157 # endif
53158 #endif
53159
53160 #ifdef __STDC__
53161 pid_t wait(int *);
53162 #endif
53163
53164 int
53165 main ()
53166 {
53167
53168   int x; int i;
53169   wait(&x); i = WIFEXITED(x)
53170
53171   ;
53172   return 0;
53173 }
53174 _ACEOF
53175 rm -f conftest.$ac_objext
53176 if { (ac_try="$ac_compile"
53177 case "(($ac_try" in
53178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53179   *) ac_try_echo=$ac_try;;
53180 esac
53181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53182   (eval "$ac_compile") 2>conftest.er1
53183   ac_status=$?
53184   grep -v '^ *+' conftest.er1 >conftest.err
53185   rm -f conftest.er1
53186   cat conftest.err >&5
53187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53188   (exit $ac_status); } && {
53189          test -z "$ac_c_werror_flag" ||
53190          test ! -s conftest.err
53191        } && test -s conftest.$ac_objext; then
53192   cf_cv_arg_int=yes
53193 else
53194   echo "$as_me: failed program was:" >&5
53195 sed 's/^/| /' conftest.$ac_ext >&5
53196
53197         cf_cv_arg_int=no
53198 fi
53199
53200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53201 fi
53202 { echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
53203 echo "${ECHO_T}$cf_cv_arg_int" >&6; }
53204 if test $cf_cv_arg_int = yes; then
53205
53206 cat >>confdefs.h <<\_ACEOF
53207 #define WAIT_USES_INT 1
53208 _ACEOF
53209
53210 fi
53211
53212
53213 #
53214 # Libraries
53215 #
53216 # cur_colr is on some HP's
53217
53218 { echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
53219 echo $ECHO_N "checking for main in -lcur_colr... $ECHO_C" >&6; }
53220 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
53221   echo $ECHO_N "(cached) $ECHO_C" >&6
53222 else
53223   ac_check_lib_save_LIBS=$LIBS
53224 LIBS="-lcur_colr  $LIBS"
53225 cat >conftest.$ac_ext <<_ACEOF
53226 /* confdefs.h.  */
53227 _ACEOF
53228 cat confdefs.h >>conftest.$ac_ext
53229 cat >>conftest.$ac_ext <<_ACEOF
53230 /* end confdefs.h.  */
53231
53232
53233 int
53234 main ()
53235 {
53236 return main ();
53237   ;
53238   return 0;
53239 }
53240 _ACEOF
53241 rm -f conftest.$ac_objext conftest$ac_exeext
53242 if { (ac_try="$ac_link"
53243 case "(($ac_try" in
53244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53245   *) ac_try_echo=$ac_try;;
53246 esac
53247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53248   (eval "$ac_link") 2>conftest.er1
53249   ac_status=$?
53250   grep -v '^ *+' conftest.er1 >conftest.err
53251   rm -f conftest.er1
53252   cat conftest.err >&5
53253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53254   (exit $ac_status); } && {
53255          test -z "$ac_c_werror_flag" ||
53256          test ! -s conftest.err
53257        } && test -s conftest$ac_exeext &&
53258        $as_test_x conftest$ac_exeext; then
53259   ac_cv_lib_cur_colr_main=yes
53260 else
53261   echo "$as_me: failed program was:" >&5
53262 sed 's/^/| /' conftest.$ac_ext >&5
53263
53264         ac_cv_lib_cur_colr_main=no
53265 fi
53266
53267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53268       conftest$ac_exeext conftest.$ac_ext
53269 LIBS=$ac_check_lib_save_LIBS
53270 fi
53271 { echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
53272 echo "${ECHO_T}$ac_cv_lib_cur_colr_main" >&6; }
53273 if test $ac_cv_lib_cur_colr_main = yes; then
53274   cat >>confdefs.h <<_ACEOF
53275 #define HAVE_LIBCUR_COLR 1
53276 _ACEOF
53277
53278   LIBS="-lcur_colr $LIBS"
53279
53280 fi
53281
53282
53283 { echo "$as_me:$LINENO: checking for main in -lintl" >&5
53284 echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6; }
53285 if test "${ac_cv_lib_intl_main+set}" = set; then
53286   echo $ECHO_N "(cached) $ECHO_C" >&6
53287 else
53288   ac_check_lib_save_LIBS=$LIBS
53289 LIBS="-lintl  $LIBS"
53290 cat >conftest.$ac_ext <<_ACEOF
53291 /* confdefs.h.  */
53292 _ACEOF
53293 cat confdefs.h >>conftest.$ac_ext
53294 cat >>conftest.$ac_ext <<_ACEOF
53295 /* end confdefs.h.  */
53296
53297
53298 int
53299 main ()
53300 {
53301 return main ();
53302   ;
53303   return 0;
53304 }
53305 _ACEOF
53306 rm -f conftest.$ac_objext conftest$ac_exeext
53307 if { (ac_try="$ac_link"
53308 case "(($ac_try" in
53309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53310   *) ac_try_echo=$ac_try;;
53311 esac
53312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53313   (eval "$ac_link") 2>conftest.er1
53314   ac_status=$?
53315   grep -v '^ *+' conftest.er1 >conftest.err
53316   rm -f conftest.er1
53317   cat conftest.err >&5
53318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53319   (exit $ac_status); } && {
53320          test -z "$ac_c_werror_flag" ||
53321          test ! -s conftest.err
53322        } && test -s conftest$ac_exeext &&
53323        $as_test_x conftest$ac_exeext; then
53324   ac_cv_lib_intl_main=yes
53325 else
53326   echo "$as_me: failed program was:" >&5
53327 sed 's/^/| /' conftest.$ac_ext >&5
53328
53329         ac_cv_lib_intl_main=no
53330 fi
53331
53332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53333       conftest$ac_exeext conftest.$ac_ext
53334 LIBS=$ac_check_lib_save_LIBS
53335 fi
53336 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
53337 echo "${ECHO_T}$ac_cv_lib_intl_main" >&6; }
53338 if test $ac_cv_lib_intl_main = yes; then
53339   cat >>confdefs.h <<_ACEOF
53340 #define HAVE_LIBINTL 1
53341 _ACEOF
53342
53343   LIBS="-lintl $LIBS"
53344
53345 fi
53346
53347
53348     # Make sure we don't use -lnsl and -lsun on Irix systems.
53349     case "$target" in
53350         *sgi-irix*)
53351
53352 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
53353 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
53354 if test "${ac_cv_lib_socket_main+set}" = set; then
53355   echo $ECHO_N "(cached) $ECHO_C" >&6
53356 else
53357   ac_check_lib_save_LIBS=$LIBS
53358 LIBS="-lsocket  $LIBS"
53359 cat >conftest.$ac_ext <<_ACEOF
53360 /* confdefs.h.  */
53361 _ACEOF
53362 cat confdefs.h >>conftest.$ac_ext
53363 cat >>conftest.$ac_ext <<_ACEOF
53364 /* end confdefs.h.  */
53365
53366
53367 int
53368 main ()
53369 {
53370 return main ();
53371   ;
53372   return 0;
53373 }
53374 _ACEOF
53375 rm -f conftest.$ac_objext conftest$ac_exeext
53376 if { (ac_try="$ac_link"
53377 case "(($ac_try" in
53378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53379   *) ac_try_echo=$ac_try;;
53380 esac
53381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53382   (eval "$ac_link") 2>conftest.er1
53383   ac_status=$?
53384   grep -v '^ *+' conftest.er1 >conftest.err
53385   rm -f conftest.er1
53386   cat conftest.err >&5
53387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53388   (exit $ac_status); } && {
53389          test -z "$ac_c_werror_flag" ||
53390          test ! -s conftest.err
53391        } && test -s conftest$ac_exeext &&
53392        $as_test_x conftest$ac_exeext; then
53393   ac_cv_lib_socket_main=yes
53394 else
53395   echo "$as_me: failed program was:" >&5
53396 sed 's/^/| /' conftest.$ac_ext >&5
53397
53398         ac_cv_lib_socket_main=no
53399 fi
53400
53401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53402       conftest$ac_exeext conftest.$ac_ext
53403 LIBS=$ac_check_lib_save_LIBS
53404 fi
53405 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
53406 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
53407 if test $ac_cv_lib_socket_main = yes; then
53408   cat >>confdefs.h <<_ACEOF
53409 #define HAVE_LIBSOCKET 1
53410 _ACEOF
53411
53412   LIBS="-lsocket $LIBS"
53413
53414 fi
53415
53416                             ;;
53417         *)
53418
53419 { echo "$as_me:$LINENO: checking for main in -lresolv" >&5
53420 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6; }
53421 if test "${ac_cv_lib_resolv_main+set}" = set; then
53422   echo $ECHO_N "(cached) $ECHO_C" >&6
53423 else
53424   ac_check_lib_save_LIBS=$LIBS
53425 LIBS="-lresolv  $LIBS"
53426 cat >conftest.$ac_ext <<_ACEOF
53427 /* confdefs.h.  */
53428 _ACEOF
53429 cat confdefs.h >>conftest.$ac_ext
53430 cat >>conftest.$ac_ext <<_ACEOF
53431 /* end confdefs.h.  */
53432
53433
53434 int
53435 main ()
53436 {
53437 return main ();
53438   ;
53439   return 0;
53440 }
53441 _ACEOF
53442 rm -f conftest.$ac_objext conftest$ac_exeext
53443 if { (ac_try="$ac_link"
53444 case "(($ac_try" in
53445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53446   *) ac_try_echo=$ac_try;;
53447 esac
53448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53449   (eval "$ac_link") 2>conftest.er1
53450   ac_status=$?
53451   grep -v '^ *+' conftest.er1 >conftest.err
53452   rm -f conftest.er1
53453   cat conftest.err >&5
53454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53455   (exit $ac_status); } && {
53456          test -z "$ac_c_werror_flag" ||
53457          test ! -s conftest.err
53458        } && test -s conftest$ac_exeext &&
53459        $as_test_x conftest$ac_exeext; then
53460   ac_cv_lib_resolv_main=yes
53461 else
53462   echo "$as_me: failed program was:" >&5
53463 sed 's/^/| /' conftest.$ac_ext >&5
53464
53465         ac_cv_lib_resolv_main=no
53466 fi
53467
53468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53469       conftest$ac_exeext conftest.$ac_ext
53470 LIBS=$ac_check_lib_save_LIBS
53471 fi
53472 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
53473 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6; }
53474 if test $ac_cv_lib_resolv_main = yes; then
53475   cat >>confdefs.h <<_ACEOF
53476 #define HAVE_LIBRESOLV 1
53477 _ACEOF
53478
53479   LIBS="-lresolv $LIBS"
53480
53481 fi
53482
53483
53484 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
53485 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
53486 if test "${ac_cv_lib_nsl_main+set}" = set; then
53487   echo $ECHO_N "(cached) $ECHO_C" >&6
53488 else
53489   ac_check_lib_save_LIBS=$LIBS
53490 LIBS="-lnsl  $LIBS"
53491 cat >conftest.$ac_ext <<_ACEOF
53492 /* confdefs.h.  */
53493 _ACEOF
53494 cat confdefs.h >>conftest.$ac_ext
53495 cat >>conftest.$ac_ext <<_ACEOF
53496 /* end confdefs.h.  */
53497
53498
53499 int
53500 main ()
53501 {
53502 return main ();
53503   ;
53504   return 0;
53505 }
53506 _ACEOF
53507 rm -f conftest.$ac_objext conftest$ac_exeext
53508 if { (ac_try="$ac_link"
53509 case "(($ac_try" in
53510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53511   *) ac_try_echo=$ac_try;;
53512 esac
53513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53514   (eval "$ac_link") 2>conftest.er1
53515   ac_status=$?
53516   grep -v '^ *+' conftest.er1 >conftest.err
53517   rm -f conftest.er1
53518   cat conftest.err >&5
53519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53520   (exit $ac_status); } && {
53521          test -z "$ac_c_werror_flag" ||
53522          test ! -s conftest.err
53523        } && test -s conftest$ac_exeext &&
53524        $as_test_x conftest$ac_exeext; then
53525   ac_cv_lib_nsl_main=yes
53526 else
53527   echo "$as_me: failed program was:" >&5
53528 sed 's/^/| /' conftest.$ac_ext >&5
53529
53530         ac_cv_lib_nsl_main=no
53531 fi
53532
53533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53534       conftest$ac_exeext conftest.$ac_ext
53535 LIBS=$ac_check_lib_save_LIBS
53536 fi
53537 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
53538 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
53539 if test $ac_cv_lib_nsl_main = yes; then
53540   cat >>confdefs.h <<_ACEOF
53541 #define HAVE_LIBNSL 1
53542 _ACEOF
53543
53544   LIBS="-lnsl $LIBS"
53545
53546 fi
53547
53548
53549 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
53550 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
53551 if test "${ac_cv_lib_socket_main+set}" = set; then
53552   echo $ECHO_N "(cached) $ECHO_C" >&6
53553 else
53554   ac_check_lib_save_LIBS=$LIBS
53555 LIBS="-lsocket  $LIBS"
53556 cat >conftest.$ac_ext <<_ACEOF
53557 /* confdefs.h.  */
53558 _ACEOF
53559 cat confdefs.h >>conftest.$ac_ext
53560 cat >>conftest.$ac_ext <<_ACEOF
53561 /* end confdefs.h.  */
53562
53563
53564 int
53565 main ()
53566 {
53567 return main ();
53568   ;
53569   return 0;
53570 }
53571 _ACEOF
53572 rm -f conftest.$ac_objext conftest$ac_exeext
53573 if { (ac_try="$ac_link"
53574 case "(($ac_try" in
53575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53576   *) ac_try_echo=$ac_try;;
53577 esac
53578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53579   (eval "$ac_link") 2>conftest.er1
53580   ac_status=$?
53581   grep -v '^ *+' conftest.er1 >conftest.err
53582   rm -f conftest.er1
53583   cat conftest.err >&5
53584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53585   (exit $ac_status); } && {
53586          test -z "$ac_c_werror_flag" ||
53587          test ! -s conftest.err
53588        } && test -s conftest$ac_exeext &&
53589        $as_test_x conftest$ac_exeext; then
53590   ac_cv_lib_socket_main=yes
53591 else
53592   echo "$as_me: failed program was:" >&5
53593 sed 's/^/| /' conftest.$ac_ext >&5
53594
53595         ac_cv_lib_socket_main=no
53596 fi
53597
53598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53599       conftest$ac_exeext conftest.$ac_ext
53600 LIBS=$ac_check_lib_save_LIBS
53601 fi
53602 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
53603 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
53604 if test $ac_cv_lib_socket_main = yes; then
53605   cat >>confdefs.h <<_ACEOF
53606 #define HAVE_LIBSOCKET 1
53607 _ACEOF
53608
53609   LIBS="-lsocket $LIBS"
53610
53611 fi
53612
53613
53614 { echo "$as_me:$LINENO: checking for main in -lsun" >&5
53615 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6; }
53616 if test "${ac_cv_lib_sun_main+set}" = set; then
53617   echo $ECHO_N "(cached) $ECHO_C" >&6
53618 else
53619   ac_check_lib_save_LIBS=$LIBS
53620 LIBS="-lsun  $LIBS"
53621 cat >conftest.$ac_ext <<_ACEOF
53622 /* confdefs.h.  */
53623 _ACEOF
53624 cat confdefs.h >>conftest.$ac_ext
53625 cat >>conftest.$ac_ext <<_ACEOF
53626 /* end confdefs.h.  */
53627
53628
53629 int
53630 main ()
53631 {
53632 return main ();
53633   ;
53634   return 0;
53635 }
53636 _ACEOF
53637 rm -f conftest.$ac_objext conftest$ac_exeext
53638 if { (ac_try="$ac_link"
53639 case "(($ac_try" in
53640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53641   *) ac_try_echo=$ac_try;;
53642 esac
53643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53644   (eval "$ac_link") 2>conftest.er1
53645   ac_status=$?
53646   grep -v '^ *+' conftest.er1 >conftest.err
53647   rm -f conftest.er1
53648   cat conftest.err >&5
53649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53650   (exit $ac_status); } && {
53651          test -z "$ac_c_werror_flag" ||
53652          test ! -s conftest.err
53653        } && test -s conftest$ac_exeext &&
53654        $as_test_x conftest$ac_exeext; then
53655   ac_cv_lib_sun_main=yes
53656 else
53657   echo "$as_me: failed program was:" >&5
53658 sed 's/^/| /' conftest.$ac_ext >&5
53659
53660         ac_cv_lib_sun_main=no
53661 fi
53662
53663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53664       conftest$ac_exeext conftest.$ac_ext
53665 LIBS=$ac_check_lib_save_LIBS
53666 fi
53667 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
53668 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6; }
53669 if test $ac_cv_lib_sun_main = yes; then
53670   cat >>confdefs.h <<_ACEOF
53671 #define HAVE_LIBSUN 1
53672 _ACEOF
53673
53674   LIBS="-lsun $LIBS"
53675
53676 fi
53677
53678                             ;;
53679     esac
53680
53681
53682     # search for pkg-config, which the glib configuration uses, adding a few
53683     # system-specific search paths.
53684     # Extract the first word of "pkg-config", so it can be a program name with args.
53685 set dummy pkg-config; ac_word=$2
53686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53688 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
53689   echo $ECHO_N "(cached) $ECHO_C" >&6
53690 else
53691   case $PKG_CONFIG in
53692   [\\/]* | ?:[\\/]*)
53693   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
53694   ;;
53695   *)
53696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53697 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
53698 for as_dir in $as_dummy
53699 do
53700   IFS=$as_save_IFS
53701   test -z "$as_dir" && as_dir=.
53702   for ac_exec_ext in '' $ac_executable_extensions; do
53703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53704     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53706     break 2
53707   fi
53708 done
53709 done
53710 IFS=$as_save_IFS
53711
53712   ;;
53713 esac
53714 fi
53715 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
53716 if test -n "$PKG_CONFIG"; then
53717   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
53718 echo "${ECHO_T}$PKG_CONFIG" >&6; }
53719 else
53720   { echo "$as_me:$LINENO: result: no" >&5
53721 echo "${ECHO_T}no" >&6; }
53722 fi
53723
53724
53725
53726     case "$target" in
53727         sparc-sun-solaris2.8) # Solaris 8
53728             # give the linker a runtime search path; pkg-config doesn't supply this.
53729             # Users could also specify this with LD_LIBRARY_PATH to both ./configure
53730             # and make.  Adding this support here makes straight './configure; make'
53731             # "just work" on Solaris 8
53732             if test -n "$PKG_CONFIG"; then
53733                 glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
53734                 LDFLAGS="$LDFLAGS $glib_R_flag"
53735             fi
53736             ;;
53737     esac
53738
53739     # Check whether --enable-glibtest was given.
53740 if test "${enable_glibtest+set}" = set; then
53741   enableval=$enable_glibtest;
53742 else
53743   enable_glibtest=yes
53744 fi
53745
53746
53747   pkg_config_args=glib-2.0
53748   for module in . gmodule gobject gthread
53749   do
53750       case "$module" in
53751          gmodule)
53752              pkg_config_args="$pkg_config_args gmodule-2.0"
53753          ;;
53754          gmodule-no-export)
53755              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
53756          ;;
53757          gobject)
53758              pkg_config_args="$pkg_config_args gobject-2.0"
53759          ;;
53760          gthread)
53761              pkg_config_args="$pkg_config_args gthread-2.0"
53762          ;;
53763       esac
53764   done
53765
53766
53767
53768 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
53769         if test -n "$ac_tool_prefix"; then
53770   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
53771 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
53772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53774 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
53775   echo $ECHO_N "(cached) $ECHO_C" >&6
53776 else
53777   case $PKG_CONFIG in
53778   [\\/]* | ?:[\\/]*)
53779   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
53780   ;;
53781   *)
53782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53783 for as_dir in $PATH
53784 do
53785   IFS=$as_save_IFS
53786   test -z "$as_dir" && as_dir=.
53787   for ac_exec_ext in '' $ac_executable_extensions; do
53788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53789     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53791     break 2
53792   fi
53793 done
53794 done
53795 IFS=$as_save_IFS
53796
53797   ;;
53798 esac
53799 fi
53800 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
53801 if test -n "$PKG_CONFIG"; then
53802   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
53803 echo "${ECHO_T}$PKG_CONFIG" >&6; }
53804 else
53805   { echo "$as_me:$LINENO: result: no" >&5
53806 echo "${ECHO_T}no" >&6; }
53807 fi
53808
53809
53810 fi
53811 if test -z "$ac_cv_path_PKG_CONFIG"; then
53812   ac_pt_PKG_CONFIG=$PKG_CONFIG
53813   # Extract the first word of "pkg-config", so it can be a program name with args.
53814 set dummy pkg-config; ac_word=$2
53815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53817 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
53818   echo $ECHO_N "(cached) $ECHO_C" >&6
53819 else
53820   case $ac_pt_PKG_CONFIG in
53821   [\\/]* | ?:[\\/]*)
53822   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
53823   ;;
53824   *)
53825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53826 for as_dir in $PATH
53827 do
53828   IFS=$as_save_IFS
53829   test -z "$as_dir" && as_dir=.
53830   for ac_exec_ext in '' $ac_executable_extensions; do
53831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53832     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53834     break 2
53835   fi
53836 done
53837 done
53838 IFS=$as_save_IFS
53839
53840   ;;
53841 esac
53842 fi
53843 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
53844 if test -n "$ac_pt_PKG_CONFIG"; then
53845   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
53846 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
53847 else
53848   { echo "$as_me:$LINENO: result: no" >&5
53849 echo "${ECHO_T}no" >&6; }
53850 fi
53851
53852   if test "x$ac_pt_PKG_CONFIG" = x; then
53853     PKG_CONFIG=""
53854   else
53855     case $cross_compiling:$ac_tool_warned in
53856 yes:)
53857 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
53858 whose name does not start with the host triplet.  If you think this
53859 configuration is useful to you, please write to autoconf@gnu.org." >&5
53860 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
53861 whose name does not start with the host triplet.  If you think this
53862 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
53863 ac_tool_warned=yes ;;
53864 esac
53865     PKG_CONFIG=$ac_pt_PKG_CONFIG
53866   fi
53867 else
53868   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
53869 fi
53870
53871 fi
53872 if test -n "$PKG_CONFIG"; then
53873         _pkg_min_version=0.16
53874         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
53875 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
53876         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
53877                 { echo "$as_me:$LINENO: result: yes" >&5
53878 echo "${ECHO_T}yes" >&6; }
53879         else
53880                 { echo "$as_me:$LINENO: result: no" >&5
53881 echo "${ECHO_T}no" >&6; }
53882                 PKG_CONFIG=""
53883         fi
53884
53885 fi
53886
53887   no_glib=""
53888
53889   if test "x$PKG_CONFIG" = x ; then
53890     no_glib=yes
53891     PKG_CONFIG=no
53892   fi
53893
53894   min_glib_version=2.2.0
53895   { echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
53896 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; }
53897
53898   if test x$PKG_CONFIG != xno ; then
53899     ## don't try to run the test against uninstalled libtool libs
53900     if $PKG_CONFIG --uninstalled $pkg_config_args; then
53901           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
53902           enable_glibtest=no
53903     fi
53904
53905     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
53906           :
53907     else
53908           no_glib=yes
53909     fi
53910   fi
53911
53912   if test x"$no_glib" = x ; then
53913     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
53914     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
53915     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
53916
53917     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
53918     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
53919     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
53920            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53921     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
53922            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53923     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
53924            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53925     if test "x$enable_glibtest" = "xyes" ; then
53926       ac_save_CFLAGS="$CFLAGS"
53927       ac_save_LIBS="$LIBS"
53928       CFLAGS="$CFLAGS $GLIB_CFLAGS"
53929       LIBS="$GLIB_LIBS $LIBS"
53930       rm -f conf.glibtest
53931       if test "$cross_compiling" = yes; then
53932   echo $ac_n "cross compiling; assumed OK... $ac_c"
53933 else
53934   cat >conftest.$ac_ext <<_ACEOF
53935 /* confdefs.h.  */
53936 _ACEOF
53937 cat confdefs.h >>conftest.$ac_ext
53938 cat >>conftest.$ac_ext <<_ACEOF
53939 /* end confdefs.h.  */
53940
53941 #include <glib.h>
53942 #include <stdio.h>
53943 #include <stdlib.h>
53944
53945 int
53946 main ()
53947 {
53948   int major, minor, micro;
53949   char *tmp_version;
53950
53951   system ("touch conf.glibtest");
53952
53953   /* HP/UX 9 (%@#!) writes to sscanf strings */
53954   tmp_version = g_strdup("$min_glib_version");
53955   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
53956      printf("%s, bad version string\n", "$min_glib_version");
53957      exit(1);
53958    }
53959
53960   if ((glib_major_version != $glib_config_major_version) ||
53961       (glib_minor_version != $glib_config_minor_version) ||
53962       (glib_micro_version != $glib_config_micro_version))
53963     {
53964       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
53965              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
53966              glib_major_version, glib_minor_version, glib_micro_version);
53967       printf ("*** was found! If pkg-config was correct, then it is best\n");
53968       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
53969       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
53970       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
53971       printf("*** required on your system.\n");
53972       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
53973       printf("*** to point to the correct configuration files\n");
53974     }
53975   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
53976            (glib_minor_version != GLIB_MINOR_VERSION) ||
53977            (glib_micro_version != GLIB_MICRO_VERSION))
53978     {
53979       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
53980              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
53981       printf("*** library (version %d.%d.%d)\n",
53982              glib_major_version, glib_minor_version, glib_micro_version);
53983     }
53984   else
53985     {
53986       if ((glib_major_version > major) ||
53987         ((glib_major_version == major) && (glib_minor_version > minor)) ||
53988         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
53989       {
53990         return 0;
53991        }
53992      else
53993       {
53994         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
53995                glib_major_version, glib_minor_version, glib_micro_version);
53996         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
53997                major, minor, micro);
53998         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
53999         printf("***\n");
54000         printf("*** If you have already installed a sufficiently new version, this error\n");
54001         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
54002         printf("*** being found. The easiest way to fix this is to remove the old version\n");
54003         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
54004         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
54005         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
54006         printf("*** so that the correct libraries are found at run-time))\n");
54007       }
54008     }
54009   return 1;
54010 }
54011
54012 _ACEOF
54013 rm -f conftest$ac_exeext
54014 if { (ac_try="$ac_link"
54015 case "(($ac_try" in
54016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54017   *) ac_try_echo=$ac_try;;
54018 esac
54019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54020   (eval "$ac_link") 2>&5
54021   ac_status=$?
54022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54023   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54024   { (case "(($ac_try" in
54025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54026   *) ac_try_echo=$ac_try;;
54027 esac
54028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54029   (eval "$ac_try") 2>&5
54030   ac_status=$?
54031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54032   (exit $ac_status); }; }; then
54033   :
54034 else
54035   echo "$as_me: program exited with status $ac_status" >&5
54036 echo "$as_me: failed program was:" >&5
54037 sed 's/^/| /' conftest.$ac_ext >&5
54038
54039 ( exit $ac_status )
54040 no_glib=yes
54041 fi
54042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54043 fi
54044
54045
54046        CFLAGS="$ac_save_CFLAGS"
54047        LIBS="$ac_save_LIBS"
54048      fi
54049   fi
54050   if test "x$no_glib" = x ; then
54051      { echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
54052 echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
54053      :
54054   else
54055      { echo "$as_me:$LINENO: result: no" >&5
54056 echo "${ECHO_T}no" >&6; }
54057      if test "$PKG_CONFIG" = "no" ; then
54058        echo "*** A new enough version of pkg-config was not found."
54059        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
54060      else
54061        if test -f conf.glibtest ; then
54062         :
54063        else
54064           echo "*** Could not run GLIB test program, checking why..."
54065           ac_save_CFLAGS="$CFLAGS"
54066           ac_save_LIBS="$LIBS"
54067           CFLAGS="$CFLAGS $GLIB_CFLAGS"
54068           LIBS="$LIBS $GLIB_LIBS"
54069           cat >conftest.$ac_ext <<_ACEOF
54070 /* confdefs.h.  */
54071 _ACEOF
54072 cat confdefs.h >>conftest.$ac_ext
54073 cat >>conftest.$ac_ext <<_ACEOF
54074 /* end confdefs.h.  */
54075
54076 #include <glib.h>
54077 #include <stdio.h>
54078
54079 int
54080 main ()
54081 {
54082  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
54083   ;
54084   return 0;
54085 }
54086 _ACEOF
54087 rm -f conftest.$ac_objext conftest$ac_exeext
54088 if { (ac_try="$ac_link"
54089 case "(($ac_try" in
54090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54091   *) ac_try_echo=$ac_try;;
54092 esac
54093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54094   (eval "$ac_link") 2>conftest.er1
54095   ac_status=$?
54096   grep -v '^ *+' conftest.er1 >conftest.err
54097   rm -f conftest.er1
54098   cat conftest.err >&5
54099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54100   (exit $ac_status); } && {
54101          test -z "$ac_c_werror_flag" ||
54102          test ! -s conftest.err
54103        } && test -s conftest$ac_exeext &&
54104        $as_test_x conftest$ac_exeext; then
54105    echo "*** The test program compiled, but did not run. This usually means"
54106           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
54107           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
54108           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
54109           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
54110           echo "*** is required on your system"
54111           echo "***"
54112           echo "*** If you have an old version installed, it is best to remove it, although"
54113           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
54114 else
54115   echo "$as_me: failed program was:" >&5
54116 sed 's/^/| /' conftest.$ac_ext >&5
54117
54118          echo "*** The test program failed to compile or link. See the file config.log for the"
54119           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
54120 fi
54121
54122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54123       conftest$ac_exeext conftest.$ac_ext
54124           CFLAGS="$ac_save_CFLAGS"
54125           LIBS="$ac_save_LIBS"
54126        fi
54127      fi
54128      GLIB_CFLAGS=""
54129      GLIB_LIBS=""
54130      GLIB_GENMARSHAL=""
54131      GOBJECT_QUERY=""
54132      GLIB_MKENUMS=""
54133
54134         { { echo "$as_me:$LINENO: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&5
54135 echo "$as_me: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&2;}
54136    { (exit 1); exit 1; }; }
54137
54138   fi
54139
54140
54141
54142
54143
54144   rm -f conf.glibtest
54145
54146     CFLAGS="$CFLAGS $GLIB_CFLAGS"
54147
54148     CPPFLAGS="$CPPFLAGS $GLIB_CPPFLAGS"
54149
54150     LIBS="$GLIB_LIBS $LIBS"
54151
54152
54153
54154
54155 # Check whether --with-readline was given.
54156 if test "${with_readline+set}" = set; then
54157   withval=$with_readline;
54158             case "$withval" in
54159                 y | ye | yes | n | no) : ;;
54160                 *) { { echo "$as_me:$LINENO: error: *** --with-readline does not take a value" >&5
54161 echo "$as_me: error: *** --with-readline does not take a value" >&2;}
54162    { (exit 1); exit 1; }; }
54163             esac
54164             want_readline="$withval"
54165
54166 else
54167
54168             want_readline="maybe" # meaning "only if we can find it"
54169
54170 fi
54171
54172
54173     # unless the user said "no", look for readline.
54174     if test x"$want_readline" != x"no"; then
54175         # we need a tgetent() somewhere..
54176         proceed="false"
54177         { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
54178 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
54179 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
54180   echo $ECHO_N "(cached) $ECHO_C" >&6
54181 else
54182   ac_check_lib_save_LIBS=$LIBS
54183 LIBS="-ltermcap  $LIBS"
54184 cat >conftest.$ac_ext <<_ACEOF
54185 /* confdefs.h.  */
54186 _ACEOF
54187 cat confdefs.h >>conftest.$ac_ext
54188 cat >>conftest.$ac_ext <<_ACEOF
54189 /* end confdefs.h.  */
54190
54191 /* Override any GCC internal prototype to avoid an error.
54192    Use char because int might match the return type of a GCC
54193    builtin and then its argument prototype would still apply.  */
54194 #ifdef __cplusplus
54195 extern "C"
54196 #endif
54197 char tgetent ();
54198 int
54199 main ()
54200 {
54201 return tgetent ();
54202   ;
54203   return 0;
54204 }
54205 _ACEOF
54206 rm -f conftest.$ac_objext conftest$ac_exeext
54207 if { (ac_try="$ac_link"
54208 case "(($ac_try" in
54209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54210   *) ac_try_echo=$ac_try;;
54211 esac
54212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54213   (eval "$ac_link") 2>conftest.er1
54214   ac_status=$?
54215   grep -v '^ *+' conftest.er1 >conftest.err
54216   rm -f conftest.er1
54217   cat conftest.err >&5
54218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54219   (exit $ac_status); } && {
54220          test -z "$ac_c_werror_flag" ||
54221          test ! -s conftest.err
54222        } && test -s conftest$ac_exeext &&
54223        $as_test_x conftest$ac_exeext; then
54224   ac_cv_lib_termcap_tgetent=yes
54225 else
54226   echo "$as_me: failed program was:" >&5
54227 sed 's/^/| /' conftest.$ac_ext >&5
54228
54229         ac_cv_lib_termcap_tgetent=no
54230 fi
54231
54232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54233       conftest$ac_exeext conftest.$ac_ext
54234 LIBS=$ac_check_lib_save_LIBS
54235 fi
54236 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
54237 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
54238 if test $ac_cv_lib_termcap_tgetent = yes; then
54239
54240             READLINE_LIBS="-ltermcap"
54241             proceed="true"
54242
54243 else
54244
54245             { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
54246 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
54247 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
54248   echo $ECHO_N "(cached) $ECHO_C" >&6
54249 else
54250   ac_check_lib_save_LIBS=$LIBS
54251 LIBS="-lcurses  $LIBS"
54252 cat >conftest.$ac_ext <<_ACEOF
54253 /* confdefs.h.  */
54254 _ACEOF
54255 cat confdefs.h >>conftest.$ac_ext
54256 cat >>conftest.$ac_ext <<_ACEOF
54257 /* end confdefs.h.  */
54258
54259 /* Override any GCC internal prototype to avoid an error.
54260    Use char because int might match the return type of a GCC
54261    builtin and then its argument prototype would still apply.  */
54262 #ifdef __cplusplus
54263 extern "C"
54264 #endif
54265 char tgetent ();
54266 int
54267 main ()
54268 {
54269 return tgetent ();
54270   ;
54271   return 0;
54272 }
54273 _ACEOF
54274 rm -f conftest.$ac_objext conftest$ac_exeext
54275 if { (ac_try="$ac_link"
54276 case "(($ac_try" in
54277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54278   *) ac_try_echo=$ac_try;;
54279 esac
54280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54281   (eval "$ac_link") 2>conftest.er1
54282   ac_status=$?
54283   grep -v '^ *+' conftest.er1 >conftest.err
54284   rm -f conftest.er1
54285   cat conftest.err >&5
54286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54287   (exit $ac_status); } && {
54288          test -z "$ac_c_werror_flag" ||
54289          test ! -s conftest.err
54290        } && test -s conftest$ac_exeext &&
54291        $as_test_x conftest$ac_exeext; then
54292   ac_cv_lib_curses_tgetent=yes
54293 else
54294   echo "$as_me: failed program was:" >&5
54295 sed 's/^/| /' conftest.$ac_ext >&5
54296
54297         ac_cv_lib_curses_tgetent=no
54298 fi
54299
54300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54301       conftest$ac_exeext conftest.$ac_ext
54302 LIBS=$ac_check_lib_save_LIBS
54303 fi
54304 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
54305 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
54306 if test $ac_cv_lib_curses_tgetent = yes; then
54307
54308                 READLINE_LIBS="-lcurses"
54309                 proceed="true"
54310
54311 else
54312
54313                 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
54314 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
54315 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
54316   echo $ECHO_N "(cached) $ECHO_C" >&6
54317 else
54318   ac_check_lib_save_LIBS=$LIBS
54319 LIBS="-lncurses  $LIBS"
54320 cat >conftest.$ac_ext <<_ACEOF
54321 /* confdefs.h.  */
54322 _ACEOF
54323 cat confdefs.h >>conftest.$ac_ext
54324 cat >>conftest.$ac_ext <<_ACEOF
54325 /* end confdefs.h.  */
54326
54327 /* Override any GCC internal prototype to avoid an error.
54328    Use char because int might match the return type of a GCC
54329    builtin and then its argument prototype would still apply.  */
54330 #ifdef __cplusplus
54331 extern "C"
54332 #endif
54333 char tgetent ();
54334 int
54335 main ()
54336 {
54337 return tgetent ();
54338   ;
54339   return 0;
54340 }
54341 _ACEOF
54342 rm -f conftest.$ac_objext conftest$ac_exeext
54343 if { (ac_try="$ac_link"
54344 case "(($ac_try" in
54345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54346   *) ac_try_echo=$ac_try;;
54347 esac
54348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54349   (eval "$ac_link") 2>conftest.er1
54350   ac_status=$?
54351   grep -v '^ *+' conftest.er1 >conftest.err
54352   rm -f conftest.er1
54353   cat conftest.err >&5
54354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54355   (exit $ac_status); } && {
54356          test -z "$ac_c_werror_flag" ||
54357          test ! -s conftest.err
54358        } && test -s conftest$ac_exeext &&
54359        $as_test_x conftest$ac_exeext; then
54360   ac_cv_lib_ncurses_tgetent=yes
54361 else
54362   echo "$as_me: failed program was:" >&5
54363 sed 's/^/| /' conftest.$ac_ext >&5
54364
54365         ac_cv_lib_ncurses_tgetent=no
54366 fi
54367
54368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54369       conftest$ac_exeext conftest.$ac_ext
54370 LIBS=$ac_check_lib_save_LIBS
54371 fi
54372 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
54373 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
54374 if test $ac_cv_lib_ncurses_tgetent = yes; then
54375
54376                     READLINE_LIBS="-lncurses"
54377                     proceed="true"
54378
54379 fi
54380
54381
54382 fi
54383
54384
54385 fi
54386
54387
54388         if $proceed; then
54389             proceed="false"
54390
54391
54392
54393
54394 for ac_header in history.h readline.h readline/history.h readline/readline.h
54395 do
54396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54398   { echo "$as_me:$LINENO: checking for $ac_header" >&5
54399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
54400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54401   echo $ECHO_N "(cached) $ECHO_C" >&6
54402 fi
54403 ac_res=`eval echo '${'$as_ac_Header'}'`
54404                { echo "$as_me:$LINENO: result: $ac_res" >&5
54405 echo "${ECHO_T}$ac_res" >&6; }
54406 else
54407   # Is the header compilable?
54408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
54409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
54410 cat >conftest.$ac_ext <<_ACEOF
54411 /* confdefs.h.  */
54412 _ACEOF
54413 cat confdefs.h >>conftest.$ac_ext
54414 cat >>conftest.$ac_ext <<_ACEOF
54415 /* end confdefs.h.  */
54416 $ac_includes_default
54417 #include <$ac_header>
54418 _ACEOF
54419 rm -f conftest.$ac_objext
54420 if { (ac_try="$ac_compile"
54421 case "(($ac_try" in
54422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54423   *) ac_try_echo=$ac_try;;
54424 esac
54425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54426   (eval "$ac_compile") 2>conftest.er1
54427   ac_status=$?
54428   grep -v '^ *+' conftest.er1 >conftest.err
54429   rm -f conftest.er1
54430   cat conftest.err >&5
54431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54432   (exit $ac_status); } && {
54433          test -z "$ac_c_werror_flag" ||
54434          test ! -s conftest.err
54435        } && test -s conftest.$ac_objext; then
54436   ac_header_compiler=yes
54437 else
54438   echo "$as_me: failed program was:" >&5
54439 sed 's/^/| /' conftest.$ac_ext >&5
54440
54441         ac_header_compiler=no
54442 fi
54443
54444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54446 echo "${ECHO_T}$ac_header_compiler" >&6; }
54447
54448 # Is the header present?
54449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
54450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
54451 cat >conftest.$ac_ext <<_ACEOF
54452 /* confdefs.h.  */
54453 _ACEOF
54454 cat confdefs.h >>conftest.$ac_ext
54455 cat >>conftest.$ac_ext <<_ACEOF
54456 /* end confdefs.h.  */
54457 #include <$ac_header>
54458 _ACEOF
54459 if { (ac_try="$ac_cpp conftest.$ac_ext"
54460 case "(($ac_try" in
54461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54462   *) ac_try_echo=$ac_try;;
54463 esac
54464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54465   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
54466   ac_status=$?
54467   grep -v '^ *+' conftest.er1 >conftest.err
54468   rm -f conftest.er1
54469   cat conftest.err >&5
54470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54471   (exit $ac_status); } >/dev/null && {
54472          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
54473          test ! -s conftest.err
54474        }; then
54475   ac_header_preproc=yes
54476 else
54477   echo "$as_me: failed program was:" >&5
54478 sed 's/^/| /' conftest.$ac_ext >&5
54479
54480   ac_header_preproc=no
54481 fi
54482
54483 rm -f conftest.err conftest.$ac_ext
54484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54485 echo "${ECHO_T}$ac_header_preproc" >&6; }
54486
54487 # So?  What about this header?
54488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54489   yes:no: )
54490     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54494     ac_header_preproc=yes
54495     ;;
54496   no:yes:* )
54497     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54499     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
54500 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
54501     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54503     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
54504 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
54505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54507     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54509
54510     ;;
54511 esac
54512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
54513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
54514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54515   echo $ECHO_N "(cached) $ECHO_C" >&6
54516 else
54517   eval "$as_ac_Header=\$ac_header_preproc"
54518 fi
54519 ac_res=`eval echo '${'$as_ac_Header'}'`
54520                { echo "$as_me:$LINENO: result: $ac_res" >&5
54521 echo "${ECHO_T}$ac_res" >&6; }
54522
54523 fi
54524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54525   cat >>confdefs.h <<_ACEOF
54526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54527 _ACEOF
54528
54529                 # found at least one of the headers, so we can proceed.
54530                 proceed="true"
54531
54532 fi
54533
54534 done
54535
54536         fi
54537
54538         if $proceed; then
54539             proceed="false"
54540             { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
54541 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
54542 if test "${ac_cv_lib_readline_readline+set}" = set; then
54543   echo $ECHO_N "(cached) $ECHO_C" >&6
54544 else
54545   ac_check_lib_save_LIBS=$LIBS
54546 LIBS="-lreadline $READLINE_LIBS $LIBS"
54547 cat >conftest.$ac_ext <<_ACEOF
54548 /* confdefs.h.  */
54549 _ACEOF
54550 cat confdefs.h >>conftest.$ac_ext
54551 cat >>conftest.$ac_ext <<_ACEOF
54552 /* end confdefs.h.  */
54553
54554 /* Override any GCC internal prototype to avoid an error.
54555    Use char because int might match the return type of a GCC
54556    builtin and then its argument prototype would still apply.  */
54557 #ifdef __cplusplus
54558 extern "C"
54559 #endif
54560 char readline ();
54561 int
54562 main ()
54563 {
54564 return readline ();
54565   ;
54566   return 0;
54567 }
54568 _ACEOF
54569 rm -f conftest.$ac_objext conftest$ac_exeext
54570 if { (ac_try="$ac_link"
54571 case "(($ac_try" in
54572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54573   *) ac_try_echo=$ac_try;;
54574 esac
54575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54576   (eval "$ac_link") 2>conftest.er1
54577   ac_status=$?
54578   grep -v '^ *+' conftest.er1 >conftest.err
54579   rm -f conftest.er1
54580   cat conftest.err >&5
54581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54582   (exit $ac_status); } && {
54583          test -z "$ac_c_werror_flag" ||
54584          test ! -s conftest.err
54585        } && test -s conftest$ac_exeext &&
54586        $as_test_x conftest$ac_exeext; then
54587   ac_cv_lib_readline_readline=yes
54588 else
54589   echo "$as_me: failed program was:" >&5
54590 sed 's/^/| /' conftest.$ac_ext >&5
54591
54592         ac_cv_lib_readline_readline=no
54593 fi
54594
54595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54596       conftest$ac_exeext conftest.$ac_ext
54597 LIBS=$ac_check_lib_save_LIBS
54598 fi
54599 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
54600 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
54601 if test $ac_cv_lib_readline_readline = yes; then
54602
54603                 READLINE_LIBS="-lreadline $READLINE_LIBS"
54604                 proceed="true"
54605
54606 fi
54607
54608         fi
54609
54610         if $proceed; then
54611             # we have readline!
54612
54613 cat >>confdefs.h <<\_ACEOF
54614 #define HAVE_READLINE 1
54615 _ACEOF
54616
54617         else
54618             # no readline.  if the user *really* wanted it, bail out.
54619             if test x"$want_readline" = x"yes"; then
54620                 { { echo "$as_me:$LINENO: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&5
54621 echo "$as_me: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&2;}
54622    { (exit 1); exit 1; }; }
54623             fi
54624             READLINE_LIBS=""
54625         fi
54626     fi
54627
54628
54629
54630 { echo "$as_me:$LINENO: checking for modf in -lm" >&5
54631 echo $ECHO_N "checking for modf in -lm... $ECHO_C" >&6; }
54632 if test "${ac_cv_lib_m_modf+set}" = set; then
54633   echo $ECHO_N "(cached) $ECHO_C" >&6
54634 else
54635   ac_check_lib_save_LIBS=$LIBS
54636 LIBS="-lm  $LIBS"
54637 cat >conftest.$ac_ext <<_ACEOF
54638 /* confdefs.h.  */
54639 _ACEOF
54640 cat confdefs.h >>conftest.$ac_ext
54641 cat >>conftest.$ac_ext <<_ACEOF
54642 /* end confdefs.h.  */
54643
54644 /* Override any GCC internal prototype to avoid an error.
54645    Use char because int might match the return type of a GCC
54646    builtin and then its argument prototype would still apply.  */
54647 #ifdef __cplusplus
54648 extern "C"
54649 #endif
54650 char modf ();
54651 int
54652 main ()
54653 {
54654 return modf ();
54655   ;
54656   return 0;
54657 }
54658 _ACEOF
54659 rm -f conftest.$ac_objext conftest$ac_exeext
54660 if { (ac_try="$ac_link"
54661 case "(($ac_try" in
54662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54663   *) ac_try_echo=$ac_try;;
54664 esac
54665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54666   (eval "$ac_link") 2>conftest.er1
54667   ac_status=$?
54668   grep -v '^ *+' conftest.er1 >conftest.err
54669   rm -f conftest.er1
54670   cat conftest.err >&5
54671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54672   (exit $ac_status); } && {
54673          test -z "$ac_c_werror_flag" ||
54674          test ! -s conftest.err
54675        } && test -s conftest$ac_exeext &&
54676        $as_test_x conftest$ac_exeext; then
54677   ac_cv_lib_m_modf=yes
54678 else
54679   echo "$as_me: failed program was:" >&5
54680 sed 's/^/| /' conftest.$ac_ext >&5
54681
54682         ac_cv_lib_m_modf=no
54683 fi
54684
54685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54686       conftest$ac_exeext conftest.$ac_ext
54687 LIBS=$ac_check_lib_save_LIBS
54688 fi
54689 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
54690 echo "${ECHO_T}$ac_cv_lib_m_modf" >&6; }
54691 if test $ac_cv_lib_m_modf = yes; then
54692   cat >>confdefs.h <<_ACEOF
54693 #define HAVE_LIBM 1
54694 _ACEOF
54695
54696   LIBS="-lm $LIBS"
54697
54698 fi
54699
54700
54701     if test "${ac_cv_header_execinfo_h+set}" = set; then
54702   { echo "$as_me:$LINENO: checking for execinfo.h" >&5
54703 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
54704 if test "${ac_cv_header_execinfo_h+set}" = set; then
54705   echo $ECHO_N "(cached) $ECHO_C" >&6
54706 fi
54707 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
54708 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
54709 else
54710   # Is the header compilable?
54711 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
54712 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
54713 cat >conftest.$ac_ext <<_ACEOF
54714 /* confdefs.h.  */
54715 _ACEOF
54716 cat confdefs.h >>conftest.$ac_ext
54717 cat >>conftest.$ac_ext <<_ACEOF
54718 /* end confdefs.h.  */
54719 $ac_includes_default
54720 #include <execinfo.h>
54721 _ACEOF
54722 rm -f conftest.$ac_objext
54723 if { (ac_try="$ac_compile"
54724 case "(($ac_try" in
54725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54726   *) ac_try_echo=$ac_try;;
54727 esac
54728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54729   (eval "$ac_compile") 2>conftest.er1
54730   ac_status=$?
54731   grep -v '^ *+' conftest.er1 >conftest.err
54732   rm -f conftest.er1
54733   cat conftest.err >&5
54734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54735   (exit $ac_status); } && {
54736          test -z "$ac_c_werror_flag" ||
54737          test ! -s conftest.err
54738        } && test -s conftest.$ac_objext; then
54739   ac_header_compiler=yes
54740 else
54741   echo "$as_me: failed program was:" >&5
54742 sed 's/^/| /' conftest.$ac_ext >&5
54743
54744         ac_header_compiler=no
54745 fi
54746
54747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54749 echo "${ECHO_T}$ac_header_compiler" >&6; }
54750
54751 # Is the header present?
54752 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
54753 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
54754 cat >conftest.$ac_ext <<_ACEOF
54755 /* confdefs.h.  */
54756 _ACEOF
54757 cat confdefs.h >>conftest.$ac_ext
54758 cat >>conftest.$ac_ext <<_ACEOF
54759 /* end confdefs.h.  */
54760 #include <execinfo.h>
54761 _ACEOF
54762 if { (ac_try="$ac_cpp conftest.$ac_ext"
54763 case "(($ac_try" in
54764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54765   *) ac_try_echo=$ac_try;;
54766 esac
54767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54768   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
54769   ac_status=$?
54770   grep -v '^ *+' conftest.er1 >conftest.err
54771   rm -f conftest.er1
54772   cat conftest.err >&5
54773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54774   (exit $ac_status); } >/dev/null && {
54775          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
54776          test ! -s conftest.err
54777        }; then
54778   ac_header_preproc=yes
54779 else
54780   echo "$as_me: failed program was:" >&5
54781 sed 's/^/| /' conftest.$ac_ext >&5
54782
54783   ac_header_preproc=no
54784 fi
54785
54786 rm -f conftest.err conftest.$ac_ext
54787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54788 echo "${ECHO_T}$ac_header_preproc" >&6; }
54789
54790 # So?  What about this header?
54791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54792   yes:no: )
54793     { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
54794 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
54795     { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
54796 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
54797     ac_header_preproc=yes
54798     ;;
54799   no:yes:* )
54800     { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
54801 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
54802     { echo "$as_me:$LINENO: WARNING: execinfo.h:     check for missing prerequisite headers?" >&5
54803 echo "$as_me: WARNING: execinfo.h:     check for missing prerequisite headers?" >&2;}
54804     { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
54805 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
54806     { echo "$as_me:$LINENO: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
54807 echo "$as_me: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
54808     { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
54809 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
54810     { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
54811 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
54812
54813     ;;
54814 esac
54815 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
54816 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
54817 if test "${ac_cv_header_execinfo_h+set}" = set; then
54818   echo $ECHO_N "(cached) $ECHO_C" >&6
54819 else
54820   ac_cv_header_execinfo_h=$ac_header_preproc
54821 fi
54822 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
54823 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
54824
54825 fi
54826 if test $ac_cv_header_execinfo_h = yes; then
54827
54828         { echo "$as_me:$LINENO: checking for backtrace_symbols_fd" >&5
54829 echo $ECHO_N "checking for backtrace_symbols_fd... $ECHO_C" >&6; }
54830 if test "${ac_cv_func_backtrace_symbols_fd+set}" = set; then
54831   echo $ECHO_N "(cached) $ECHO_C" >&6
54832 else
54833   cat >conftest.$ac_ext <<_ACEOF
54834 /* confdefs.h.  */
54835 _ACEOF
54836 cat confdefs.h >>conftest.$ac_ext
54837 cat >>conftest.$ac_ext <<_ACEOF
54838 /* end confdefs.h.  */
54839 /* Define backtrace_symbols_fd to an innocuous variant, in case <limits.h> declares backtrace_symbols_fd.
54840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54841 #define backtrace_symbols_fd innocuous_backtrace_symbols_fd
54842
54843 /* System header to define __stub macros and hopefully few prototypes,
54844     which can conflict with char backtrace_symbols_fd (); below.
54845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54846     <limits.h> exists even on freestanding compilers.  */
54847
54848 #ifdef __STDC__
54849 # include <limits.h>
54850 #else
54851 # include <assert.h>
54852 #endif
54853
54854 #undef backtrace_symbols_fd
54855
54856 /* Override any GCC internal prototype to avoid an error.
54857    Use char because int might match the return type of a GCC
54858    builtin and then its argument prototype would still apply.  */
54859 #ifdef __cplusplus
54860 extern "C"
54861 #endif
54862 char backtrace_symbols_fd ();
54863 /* The GNU C library defines this for functions which it implements
54864     to always fail with ENOSYS.  Some functions are actually named
54865     something starting with __ and the normal name is an alias.  */
54866 #if defined __stub_backtrace_symbols_fd || defined __stub___backtrace_symbols_fd
54867 choke me
54868 #endif
54869
54870 int
54871 main ()
54872 {
54873 return backtrace_symbols_fd ();
54874   ;
54875   return 0;
54876 }
54877 _ACEOF
54878 rm -f conftest.$ac_objext conftest$ac_exeext
54879 if { (ac_try="$ac_link"
54880 case "(($ac_try" in
54881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54882   *) ac_try_echo=$ac_try;;
54883 esac
54884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54885   (eval "$ac_link") 2>conftest.er1
54886   ac_status=$?
54887   grep -v '^ *+' conftest.er1 >conftest.err
54888   rm -f conftest.er1
54889   cat conftest.err >&5
54890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54891   (exit $ac_status); } && {
54892          test -z "$ac_c_werror_flag" ||
54893          test ! -s conftest.err
54894        } && test -s conftest$ac_exeext &&
54895        $as_test_x conftest$ac_exeext; then
54896   ac_cv_func_backtrace_symbols_fd=yes
54897 else
54898   echo "$as_me: failed program was:" >&5
54899 sed 's/^/| /' conftest.$ac_ext >&5
54900
54901         ac_cv_func_backtrace_symbols_fd=no
54902 fi
54903
54904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54905       conftest$ac_exeext conftest.$ac_ext
54906 fi
54907 { echo "$as_me:$LINENO: result: $ac_cv_func_backtrace_symbols_fd" >&5
54908 echo "${ECHO_T}$ac_cv_func_backtrace_symbols_fd" >&6; }
54909 if test $ac_cv_func_backtrace_symbols_fd = yes; then
54910
54911
54912 cat >>confdefs.h <<\_ACEOF
54913 #define HAVE_GLIBC_BACKTRACE 1
54914 _ACEOF
54915
54916
54917 fi
54918
54919
54920 fi
54921
54922
54923
54924
54925 #
54926 # Declarations
54927 #
54928 # Checks for library functions and if the function is declared in
54929 # an appropriate header file.  Functions which exist, but for which
54930 # no declaration is available, are declared in common-src/amanda.h.
54931 # It's not clear that any existing system implements but does not
54932 # declare common functions such as these.
54933 #
54934
54935 ice_have_accept=no
54936
54937 for ac_func in accept
54938 do
54939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
54941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
54942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
54943   echo $ECHO_N "(cached) $ECHO_C" >&6
54944 else
54945   cat >conftest.$ac_ext <<_ACEOF
54946 /* confdefs.h.  */
54947 _ACEOF
54948 cat confdefs.h >>conftest.$ac_ext
54949 cat >>conftest.$ac_ext <<_ACEOF
54950 /* end confdefs.h.  */
54951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54953 #define $ac_func innocuous_$ac_func
54954
54955 /* System header to define __stub macros and hopefully few prototypes,
54956     which can conflict with char $ac_func (); below.
54957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54958     <limits.h> exists even on freestanding compilers.  */
54959
54960 #ifdef __STDC__
54961 # include <limits.h>
54962 #else
54963 # include <assert.h>
54964 #endif
54965
54966 #undef $ac_func
54967
54968 /* Override any GCC internal prototype to avoid an error.
54969    Use char because int might match the return type of a GCC
54970    builtin and then its argument prototype would still apply.  */
54971 #ifdef __cplusplus
54972 extern "C"
54973 #endif
54974 char $ac_func ();
54975 /* The GNU C library defines this for functions which it implements
54976     to always fail with ENOSYS.  Some functions are actually named
54977     something starting with __ and the normal name is an alias.  */
54978 #if defined __stub_$ac_func || defined __stub___$ac_func
54979 choke me
54980 #endif
54981
54982 int
54983 main ()
54984 {
54985 return $ac_func ();
54986   ;
54987   return 0;
54988 }
54989 _ACEOF
54990 rm -f conftest.$ac_objext conftest$ac_exeext
54991 if { (ac_try="$ac_link"
54992 case "(($ac_try" in
54993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54994   *) ac_try_echo=$ac_try;;
54995 esac
54996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54997   (eval "$ac_link") 2>conftest.er1
54998   ac_status=$?
54999   grep -v '^ *+' conftest.er1 >conftest.err
55000   rm -f conftest.er1
55001   cat conftest.err >&5
55002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55003   (exit $ac_status); } && {
55004          test -z "$ac_c_werror_flag" ||
55005          test ! -s conftest.err
55006        } && test -s conftest$ac_exeext &&
55007        $as_test_x conftest$ac_exeext; then
55008   eval "$as_ac_var=yes"
55009 else
55010   echo "$as_me: failed program was:" >&5
55011 sed 's/^/| /' conftest.$ac_ext >&5
55012
55013         eval "$as_ac_var=no"
55014 fi
55015
55016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55017       conftest$ac_exeext conftest.$ac_ext
55018 fi
55019 ac_res=`eval echo '${'$as_ac_var'}'`
55020                { echo "$as_me:$LINENO: result: $ac_res" >&5
55021 echo "${ECHO_T}$ac_res" >&6; }
55022 if test `eval echo '${'$as_ac_var'}'` = yes; then
55023   cat >>confdefs.h <<_ACEOF
55024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55025 _ACEOF
55026  ice_have_accept=yes
55027 fi
55028 done
55029
55030 if test "${ice_have_accept}" = yes; then
55031 { echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
55032 echo $ECHO_N "checking for accept declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
55033 if test "${ice_cv_have_accept_decl+set}" = set; then
55034   echo $ECHO_N "(cached) $ECHO_C" >&6
55035 else
55036
55037 ice_cv_have_accept_decl=no
55038 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55039 ice_re_word='(^|[^a-zA-Z0-9_])'
55040 for header in sys/types.h sys/socket.h; do
55041 # Check for ordinary declaration
55042 cat >conftest.$ac_ext <<_ACEOF
55043 /* confdefs.h.  */
55044 _ACEOF
55045 cat confdefs.h >>conftest.$ac_ext
55046 cat >>conftest.$ac_ext <<_ACEOF
55047 /* end confdefs.h.  */
55048 #include <$header>
55049
55050 _ACEOF
55051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55052   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then
55053   ice_cv_have_accept_decl=yes
55054 fi
55055 rm -f conftest*
55056
55057 if test "$ice_cv_have_accept_decl" = yes; then
55058         break
55059 fi
55060 # Check for "fixed" declaration like "getpid _PARAMS((int))"
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 #include <$header>
55068
55069 _ACEOF
55070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55071   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55072   ice_cv_have_accept_decl=yes
55073 fi
55074 rm -f conftest*
55075
55076 if test "$ice_cv_have_accept_decl" = yes; then
55077         break
55078 fi
55079 done
55080
55081 fi
55082
55083 { echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
55084 echo "${ECHO_T}$ice_cv_have_accept_decl" >&6; }
55085 if test "$ice_cv_have_accept_decl" = yes; then
55086
55087 cat >>confdefs.h <<_ACEOF
55088 #define HAVE_ACCEPT_DECL 1
55089 _ACEOF
55090
55091 fi
55092 fi
55093
55094 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
55095 # for constant arguments.  Useless!
55096 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
55097 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
55098 if test "${ac_cv_working_alloca_h+set}" = set; then
55099   echo $ECHO_N "(cached) $ECHO_C" >&6
55100 else
55101   cat >conftest.$ac_ext <<_ACEOF
55102 /* confdefs.h.  */
55103 _ACEOF
55104 cat confdefs.h >>conftest.$ac_ext
55105 cat >>conftest.$ac_ext <<_ACEOF
55106 /* end confdefs.h.  */
55107 #include <alloca.h>
55108 int
55109 main ()
55110 {
55111 char *p = (char *) alloca (2 * sizeof (int));
55112                           if (p) return 0;
55113   ;
55114   return 0;
55115 }
55116 _ACEOF
55117 rm -f conftest.$ac_objext conftest$ac_exeext
55118 if { (ac_try="$ac_link"
55119 case "(($ac_try" in
55120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55121   *) ac_try_echo=$ac_try;;
55122 esac
55123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55124   (eval "$ac_link") 2>conftest.er1
55125   ac_status=$?
55126   grep -v '^ *+' conftest.er1 >conftest.err
55127   rm -f conftest.er1
55128   cat conftest.err >&5
55129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55130   (exit $ac_status); } && {
55131          test -z "$ac_c_werror_flag" ||
55132          test ! -s conftest.err
55133        } && test -s conftest$ac_exeext &&
55134        $as_test_x conftest$ac_exeext; then
55135   ac_cv_working_alloca_h=yes
55136 else
55137   echo "$as_me: failed program was:" >&5
55138 sed 's/^/| /' conftest.$ac_ext >&5
55139
55140         ac_cv_working_alloca_h=no
55141 fi
55142
55143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55144       conftest$ac_exeext conftest.$ac_ext
55145 fi
55146 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
55147 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
55148 if test $ac_cv_working_alloca_h = yes; then
55149
55150 cat >>confdefs.h <<\_ACEOF
55151 #define HAVE_ALLOCA_H 1
55152 _ACEOF
55153
55154 fi
55155
55156 { echo "$as_me:$LINENO: checking for alloca" >&5
55157 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
55158 if test "${ac_cv_func_alloca_works+set}" = set; then
55159   echo $ECHO_N "(cached) $ECHO_C" >&6
55160 else
55161   cat >conftest.$ac_ext <<_ACEOF
55162 /* confdefs.h.  */
55163 _ACEOF
55164 cat confdefs.h >>conftest.$ac_ext
55165 cat >>conftest.$ac_ext <<_ACEOF
55166 /* end confdefs.h.  */
55167 #ifdef __GNUC__
55168 # define alloca __builtin_alloca
55169 #else
55170 # ifdef _MSC_VER
55171 #  include <malloc.h>
55172 #  define alloca _alloca
55173 # else
55174 #  ifdef HAVE_ALLOCA_H
55175 #   include <alloca.h>
55176 #  else
55177 #   ifdef _AIX
55178  #pragma alloca
55179 #   else
55180 #    ifndef alloca /* predefined by HP cc +Olibcalls */
55181 char *alloca ();
55182 #    endif
55183 #   endif
55184 #  endif
55185 # endif
55186 #endif
55187
55188 int
55189 main ()
55190 {
55191 char *p = (char *) alloca (1);
55192                                     if (p) return 0;
55193   ;
55194   return 0;
55195 }
55196 _ACEOF
55197 rm -f conftest.$ac_objext conftest$ac_exeext
55198 if { (ac_try="$ac_link"
55199 case "(($ac_try" in
55200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55201   *) ac_try_echo=$ac_try;;
55202 esac
55203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55204   (eval "$ac_link") 2>conftest.er1
55205   ac_status=$?
55206   grep -v '^ *+' conftest.er1 >conftest.err
55207   rm -f conftest.er1
55208   cat conftest.err >&5
55209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55210   (exit $ac_status); } && {
55211          test -z "$ac_c_werror_flag" ||
55212          test ! -s conftest.err
55213        } && test -s conftest$ac_exeext &&
55214        $as_test_x conftest$ac_exeext; then
55215   ac_cv_func_alloca_works=yes
55216 else
55217   echo "$as_me: failed program was:" >&5
55218 sed 's/^/| /' conftest.$ac_ext >&5
55219
55220         ac_cv_func_alloca_works=no
55221 fi
55222
55223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55224       conftest$ac_exeext conftest.$ac_ext
55225 fi
55226 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
55227 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
55228
55229 if test $ac_cv_func_alloca_works = yes; then
55230
55231 cat >>confdefs.h <<\_ACEOF
55232 #define HAVE_ALLOCA 1
55233 _ACEOF
55234
55235 else
55236   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
55237 # that cause trouble.  Some versions do not even contain alloca or
55238 # contain a buggy version.  If you still want to use their alloca,
55239 # use ar to extract alloca.o from them instead of compiling alloca.c.
55240
55241 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
55242
55243 cat >>confdefs.h <<\_ACEOF
55244 #define C_ALLOCA 1
55245 _ACEOF
55246
55247
55248 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
55249 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
55250 if test "${ac_cv_os_cray+set}" = set; then
55251   echo $ECHO_N "(cached) $ECHO_C" >&6
55252 else
55253   cat >conftest.$ac_ext <<_ACEOF
55254 /* confdefs.h.  */
55255 _ACEOF
55256 cat confdefs.h >>conftest.$ac_ext
55257 cat >>conftest.$ac_ext <<_ACEOF
55258 /* end confdefs.h.  */
55259 #if defined CRAY && ! defined CRAY2
55260 webecray
55261 #else
55262 wenotbecray
55263 #endif
55264
55265 _ACEOF
55266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55267   $EGREP "webecray" >/dev/null 2>&1; then
55268   ac_cv_os_cray=yes
55269 else
55270   ac_cv_os_cray=no
55271 fi
55272 rm -f conftest*
55273
55274 fi
55275 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
55276 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
55277 if test $ac_cv_os_cray = yes; then
55278   for ac_func in _getb67 GETB67 getb67; do
55279     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55283   echo $ECHO_N "(cached) $ECHO_C" >&6
55284 else
55285   cat >conftest.$ac_ext <<_ACEOF
55286 /* confdefs.h.  */
55287 _ACEOF
55288 cat confdefs.h >>conftest.$ac_ext
55289 cat >>conftest.$ac_ext <<_ACEOF
55290 /* end confdefs.h.  */
55291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55293 #define $ac_func innocuous_$ac_func
55294
55295 /* System header to define __stub macros and hopefully few prototypes,
55296     which can conflict with char $ac_func (); below.
55297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55298     <limits.h> exists even on freestanding compilers.  */
55299
55300 #ifdef __STDC__
55301 # include <limits.h>
55302 #else
55303 # include <assert.h>
55304 #endif
55305
55306 #undef $ac_func
55307
55308 /* Override any GCC internal prototype to avoid an error.
55309    Use char because int might match the return type of a GCC
55310    builtin and then its argument prototype would still apply.  */
55311 #ifdef __cplusplus
55312 extern "C"
55313 #endif
55314 char $ac_func ();
55315 /* The GNU C library defines this for functions which it implements
55316     to always fail with ENOSYS.  Some functions are actually named
55317     something starting with __ and the normal name is an alias.  */
55318 #if defined __stub_$ac_func || defined __stub___$ac_func
55319 choke me
55320 #endif
55321
55322 int
55323 main ()
55324 {
55325 return $ac_func ();
55326   ;
55327   return 0;
55328 }
55329 _ACEOF
55330 rm -f conftest.$ac_objext conftest$ac_exeext
55331 if { (ac_try="$ac_link"
55332 case "(($ac_try" in
55333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55334   *) ac_try_echo=$ac_try;;
55335 esac
55336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55337   (eval "$ac_link") 2>conftest.er1
55338   ac_status=$?
55339   grep -v '^ *+' conftest.er1 >conftest.err
55340   rm -f conftest.er1
55341   cat conftest.err >&5
55342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55343   (exit $ac_status); } && {
55344          test -z "$ac_c_werror_flag" ||
55345          test ! -s conftest.err
55346        } && test -s conftest$ac_exeext &&
55347        $as_test_x conftest$ac_exeext; then
55348   eval "$as_ac_var=yes"
55349 else
55350   echo "$as_me: failed program was:" >&5
55351 sed 's/^/| /' conftest.$ac_ext >&5
55352
55353         eval "$as_ac_var=no"
55354 fi
55355
55356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55357       conftest$ac_exeext conftest.$ac_ext
55358 fi
55359 ac_res=`eval echo '${'$as_ac_var'}'`
55360                { echo "$as_me:$LINENO: result: $ac_res" >&5
55361 echo "${ECHO_T}$ac_res" >&6; }
55362 if test `eval echo '${'$as_ac_var'}'` = yes; then
55363
55364 cat >>confdefs.h <<_ACEOF
55365 #define CRAY_STACKSEG_END $ac_func
55366 _ACEOF
55367
55368     break
55369 fi
55370
55371   done
55372 fi
55373
55374 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
55375 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
55376 if test "${ac_cv_c_stack_direction+set}" = set; then
55377   echo $ECHO_N "(cached) $ECHO_C" >&6
55378 else
55379   if test "$cross_compiling" = yes; then
55380   ac_cv_c_stack_direction=0
55381 else
55382   cat >conftest.$ac_ext <<_ACEOF
55383 /* confdefs.h.  */
55384 _ACEOF
55385 cat confdefs.h >>conftest.$ac_ext
55386 cat >>conftest.$ac_ext <<_ACEOF
55387 /* end confdefs.h.  */
55388 $ac_includes_default
55389 int
55390 find_stack_direction ()
55391 {
55392   static char *addr = 0;
55393   auto char dummy;
55394   if (addr == 0)
55395     {
55396       addr = &dummy;
55397       return find_stack_direction ();
55398     }
55399   else
55400     return (&dummy > addr) ? 1 : -1;
55401 }
55402
55403 int
55404 main ()
55405 {
55406   return find_stack_direction () < 0;
55407 }
55408 _ACEOF
55409 rm -f conftest$ac_exeext
55410 if { (ac_try="$ac_link"
55411 case "(($ac_try" in
55412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55413   *) ac_try_echo=$ac_try;;
55414 esac
55415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55416   (eval "$ac_link") 2>&5
55417   ac_status=$?
55418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55419   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55420   { (case "(($ac_try" in
55421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55422   *) ac_try_echo=$ac_try;;
55423 esac
55424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55425   (eval "$ac_try") 2>&5
55426   ac_status=$?
55427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55428   (exit $ac_status); }; }; then
55429   ac_cv_c_stack_direction=1
55430 else
55431   echo "$as_me: program exited with status $ac_status" >&5
55432 echo "$as_me: failed program was:" >&5
55433 sed 's/^/| /' conftest.$ac_ext >&5
55434
55435 ( exit $ac_status )
55436 ac_cv_c_stack_direction=-1
55437 fi
55438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55439 fi
55440
55441
55442 fi
55443 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
55444 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
55445
55446 cat >>confdefs.h <<_ACEOF
55447 #define STACK_DIRECTION $ac_cv_c_stack_direction
55448 _ACEOF
55449
55450
55451 fi
55452
55453
55454 for ac_func in atexit
55455 do
55456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55460   echo $ECHO_N "(cached) $ECHO_C" >&6
55461 else
55462   cat >conftest.$ac_ext <<_ACEOF
55463 /* confdefs.h.  */
55464 _ACEOF
55465 cat confdefs.h >>conftest.$ac_ext
55466 cat >>conftest.$ac_ext <<_ACEOF
55467 /* end confdefs.h.  */
55468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55470 #define $ac_func innocuous_$ac_func
55471
55472 /* System header to define __stub macros and hopefully few prototypes,
55473     which can conflict with char $ac_func (); below.
55474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55475     <limits.h> exists even on freestanding compilers.  */
55476
55477 #ifdef __STDC__
55478 # include <limits.h>
55479 #else
55480 # include <assert.h>
55481 #endif
55482
55483 #undef $ac_func
55484
55485 /* Override any GCC internal prototype to avoid an error.
55486    Use char because int might match the return type of a GCC
55487    builtin and then its argument prototype would still apply.  */
55488 #ifdef __cplusplus
55489 extern "C"
55490 #endif
55491 char $ac_func ();
55492 /* The GNU C library defines this for functions which it implements
55493     to always fail with ENOSYS.  Some functions are actually named
55494     something starting with __ and the normal name is an alias.  */
55495 #if defined __stub_$ac_func || defined __stub___$ac_func
55496 choke me
55497 #endif
55498
55499 int
55500 main ()
55501 {
55502 return $ac_func ();
55503   ;
55504   return 0;
55505 }
55506 _ACEOF
55507 rm -f conftest.$ac_objext conftest$ac_exeext
55508 if { (ac_try="$ac_link"
55509 case "(($ac_try" in
55510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55511   *) ac_try_echo=$ac_try;;
55512 esac
55513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55514   (eval "$ac_link") 2>conftest.er1
55515   ac_status=$?
55516   grep -v '^ *+' conftest.er1 >conftest.err
55517   rm -f conftest.er1
55518   cat conftest.err >&5
55519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55520   (exit $ac_status); } && {
55521          test -z "$ac_c_werror_flag" ||
55522          test ! -s conftest.err
55523        } && test -s conftest$ac_exeext &&
55524        $as_test_x conftest$ac_exeext; then
55525   eval "$as_ac_var=yes"
55526 else
55527   echo "$as_me: failed program was:" >&5
55528 sed 's/^/| /' conftest.$ac_ext >&5
55529
55530         eval "$as_ac_var=no"
55531 fi
55532
55533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55534       conftest$ac_exeext conftest.$ac_ext
55535 fi
55536 ac_res=`eval echo '${'$as_ac_var'}'`
55537                { echo "$as_me:$LINENO: result: $ac_res" >&5
55538 echo "${ECHO_T}$ac_res" >&6; }
55539 if test `eval echo '${'$as_ac_var'}'` = yes; then
55540   cat >>confdefs.h <<_ACEOF
55541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55542 _ACEOF
55543
55544 fi
55545 done
55546
55547
55548 ice_have_atof=no
55549
55550 for ac_func in atof
55551 do
55552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55556   echo $ECHO_N "(cached) $ECHO_C" >&6
55557 else
55558   cat >conftest.$ac_ext <<_ACEOF
55559 /* confdefs.h.  */
55560 _ACEOF
55561 cat confdefs.h >>conftest.$ac_ext
55562 cat >>conftest.$ac_ext <<_ACEOF
55563 /* end confdefs.h.  */
55564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55565    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55566 #define $ac_func innocuous_$ac_func
55567
55568 /* System header to define __stub macros and hopefully few prototypes,
55569     which can conflict with char $ac_func (); below.
55570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55571     <limits.h> exists even on freestanding compilers.  */
55572
55573 #ifdef __STDC__
55574 # include <limits.h>
55575 #else
55576 # include <assert.h>
55577 #endif
55578
55579 #undef $ac_func
55580
55581 /* Override any GCC internal prototype to avoid an error.
55582    Use char because int might match the return type of a GCC
55583    builtin and then its argument prototype would still apply.  */
55584 #ifdef __cplusplus
55585 extern "C"
55586 #endif
55587 char $ac_func ();
55588 /* The GNU C library defines this for functions which it implements
55589     to always fail with ENOSYS.  Some functions are actually named
55590     something starting with __ and the normal name is an alias.  */
55591 #if defined __stub_$ac_func || defined __stub___$ac_func
55592 choke me
55593 #endif
55594
55595 int
55596 main ()
55597 {
55598 return $ac_func ();
55599   ;
55600   return 0;
55601 }
55602 _ACEOF
55603 rm -f conftest.$ac_objext conftest$ac_exeext
55604 if { (ac_try="$ac_link"
55605 case "(($ac_try" in
55606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55607   *) ac_try_echo=$ac_try;;
55608 esac
55609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55610   (eval "$ac_link") 2>conftest.er1
55611   ac_status=$?
55612   grep -v '^ *+' conftest.er1 >conftest.err
55613   rm -f conftest.er1
55614   cat conftest.err >&5
55615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55616   (exit $ac_status); } && {
55617          test -z "$ac_c_werror_flag" ||
55618          test ! -s conftest.err
55619        } && test -s conftest$ac_exeext &&
55620        $as_test_x conftest$ac_exeext; then
55621   eval "$as_ac_var=yes"
55622 else
55623   echo "$as_me: failed program was:" >&5
55624 sed 's/^/| /' conftest.$ac_ext >&5
55625
55626         eval "$as_ac_var=no"
55627 fi
55628
55629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55630       conftest$ac_exeext conftest.$ac_ext
55631 fi
55632 ac_res=`eval echo '${'$as_ac_var'}'`
55633                { echo "$as_me:$LINENO: result: $ac_res" >&5
55634 echo "${ECHO_T}$ac_res" >&6; }
55635 if test `eval echo '${'$as_ac_var'}'` = yes; then
55636   cat >>confdefs.h <<_ACEOF
55637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55638 _ACEOF
55639  ice_have_atof=yes
55640 fi
55641 done
55642
55643 if test "${ice_have_atof}" = yes; then
55644 { echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
55645 echo $ECHO_N "checking for atof declaration in stdlib.h... $ECHO_C" >&6; }
55646 if test "${ice_cv_have_atof_decl+set}" = set; then
55647   echo $ECHO_N "(cached) $ECHO_C" >&6
55648 else
55649
55650 ice_cv_have_atof_decl=no
55651 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55652 ice_re_word='(^|[^a-zA-Z0-9_])'
55653 for header in stdlib.h; do
55654 # Check for ordinary declaration
55655 cat >conftest.$ac_ext <<_ACEOF
55656 /* confdefs.h.  */
55657 _ACEOF
55658 cat confdefs.h >>conftest.$ac_ext
55659 cat >>conftest.$ac_ext <<_ACEOF
55660 /* end confdefs.h.  */
55661 #include <$header>
55662
55663 _ACEOF
55664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55665   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then
55666   ice_cv_have_atof_decl=yes
55667 fi
55668 rm -f conftest*
55669
55670 if test "$ice_cv_have_atof_decl" = yes; then
55671         break
55672 fi
55673 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55674 cat >conftest.$ac_ext <<_ACEOF
55675 /* confdefs.h.  */
55676 _ACEOF
55677 cat confdefs.h >>conftest.$ac_ext
55678 cat >>conftest.$ac_ext <<_ACEOF
55679 /* end confdefs.h.  */
55680 #include <$header>
55681
55682 _ACEOF
55683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55684   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55685   ice_cv_have_atof_decl=yes
55686 fi
55687 rm -f conftest*
55688
55689 if test "$ice_cv_have_atof_decl" = yes; then
55690         break
55691 fi
55692 done
55693
55694 fi
55695
55696 { echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
55697 echo "${ECHO_T}$ice_cv_have_atof_decl" >&6; }
55698 if test "$ice_cv_have_atof_decl" = yes; then
55699
55700 cat >>confdefs.h <<_ACEOF
55701 #define HAVE_ATOF_DECL 1
55702 _ACEOF
55703
55704 fi
55705 fi
55706
55707
55708 ice_have_atol=no
55709
55710 for ac_func in atol
55711 do
55712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55713 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55715 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55716   echo $ECHO_N "(cached) $ECHO_C" >&6
55717 else
55718   cat >conftest.$ac_ext <<_ACEOF
55719 /* confdefs.h.  */
55720 _ACEOF
55721 cat confdefs.h >>conftest.$ac_ext
55722 cat >>conftest.$ac_ext <<_ACEOF
55723 /* end confdefs.h.  */
55724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55726 #define $ac_func innocuous_$ac_func
55727
55728 /* System header to define __stub macros and hopefully few prototypes,
55729     which can conflict with char $ac_func (); below.
55730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55731     <limits.h> exists even on freestanding compilers.  */
55732
55733 #ifdef __STDC__
55734 # include <limits.h>
55735 #else
55736 # include <assert.h>
55737 #endif
55738
55739 #undef $ac_func
55740
55741 /* Override any GCC internal prototype to avoid an error.
55742    Use char because int might match the return type of a GCC
55743    builtin and then its argument prototype would still apply.  */
55744 #ifdef __cplusplus
55745 extern "C"
55746 #endif
55747 char $ac_func ();
55748 /* The GNU C library defines this for functions which it implements
55749     to always fail with ENOSYS.  Some functions are actually named
55750     something starting with __ and the normal name is an alias.  */
55751 #if defined __stub_$ac_func || defined __stub___$ac_func
55752 choke me
55753 #endif
55754
55755 int
55756 main ()
55757 {
55758 return $ac_func ();
55759   ;
55760   return 0;
55761 }
55762 _ACEOF
55763 rm -f conftest.$ac_objext conftest$ac_exeext
55764 if { (ac_try="$ac_link"
55765 case "(($ac_try" in
55766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55767   *) ac_try_echo=$ac_try;;
55768 esac
55769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55770   (eval "$ac_link") 2>conftest.er1
55771   ac_status=$?
55772   grep -v '^ *+' conftest.er1 >conftest.err
55773   rm -f conftest.er1
55774   cat conftest.err >&5
55775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55776   (exit $ac_status); } && {
55777          test -z "$ac_c_werror_flag" ||
55778          test ! -s conftest.err
55779        } && test -s conftest$ac_exeext &&
55780        $as_test_x conftest$ac_exeext; then
55781   eval "$as_ac_var=yes"
55782 else
55783   echo "$as_me: failed program was:" >&5
55784 sed 's/^/| /' conftest.$ac_ext >&5
55785
55786         eval "$as_ac_var=no"
55787 fi
55788
55789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55790       conftest$ac_exeext conftest.$ac_ext
55791 fi
55792 ac_res=`eval echo '${'$as_ac_var'}'`
55793                { echo "$as_me:$LINENO: result: $ac_res" >&5
55794 echo "${ECHO_T}$ac_res" >&6; }
55795 if test `eval echo '${'$as_ac_var'}'` = yes; then
55796   cat >>confdefs.h <<_ACEOF
55797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55798 _ACEOF
55799  ice_have_atol=yes
55800 fi
55801 done
55802
55803 if test "${ice_have_atol}" = yes; then
55804 { echo "$as_me:$LINENO: checking for atol declaration in stdlib.h" >&5
55805 echo $ECHO_N "checking for atol declaration in stdlib.h... $ECHO_C" >&6; }
55806 if test "${ice_cv_have_atol_decl+set}" = set; then
55807   echo $ECHO_N "(cached) $ECHO_C" >&6
55808 else
55809
55810 ice_cv_have_atol_decl=no
55811 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55812 ice_re_word='(^|[^a-zA-Z0-9_])'
55813 for header in stdlib.h; do
55814 # Check for ordinary declaration
55815 cat >conftest.$ac_ext <<_ACEOF
55816 /* confdefs.h.  */
55817 _ACEOF
55818 cat confdefs.h >>conftest.$ac_ext
55819 cat >>conftest.$ac_ext <<_ACEOF
55820 /* end confdefs.h.  */
55821 #include <$header>
55822
55823 _ACEOF
55824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55825   $EGREP "${ice_re_word}atol[   ]*\(" >/dev/null 2>&1; then
55826   ice_cv_have_atol_decl=yes
55827 fi
55828 rm -f conftest*
55829
55830 if test "$ice_cv_have_atol_decl" = yes; then
55831         break
55832 fi
55833 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55834 cat >conftest.$ac_ext <<_ACEOF
55835 /* confdefs.h.  */
55836 _ACEOF
55837 cat confdefs.h >>conftest.$ac_ext
55838 cat >>conftest.$ac_ext <<_ACEOF
55839 /* end confdefs.h.  */
55840 #include <$header>
55841
55842 _ACEOF
55843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55844   $EGREP "${ice_re_word}atol[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55845   ice_cv_have_atol_decl=yes
55846 fi
55847 rm -f conftest*
55848
55849 if test "$ice_cv_have_atol_decl" = yes; then
55850         break
55851 fi
55852 done
55853
55854 fi
55855
55856 { echo "$as_me:$LINENO: result: $ice_cv_have_atol_decl" >&5
55857 echo "${ECHO_T}$ice_cv_have_atol_decl" >&6; }
55858 if test "$ice_cv_have_atol_decl" = yes; then
55859
55860 cat >>confdefs.h <<_ACEOF
55861 #define HAVE_ATOL_DECL 1
55862 _ACEOF
55863
55864 fi
55865 fi
55866
55867
55868 ice_have_atoll=no
55869
55870 for ac_func in atoll
55871 do
55872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55873 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55875 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55876   echo $ECHO_N "(cached) $ECHO_C" >&6
55877 else
55878   cat >conftest.$ac_ext <<_ACEOF
55879 /* confdefs.h.  */
55880 _ACEOF
55881 cat confdefs.h >>conftest.$ac_ext
55882 cat >>conftest.$ac_ext <<_ACEOF
55883 /* end confdefs.h.  */
55884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55886 #define $ac_func innocuous_$ac_func
55887
55888 /* System header to define __stub macros and hopefully few prototypes,
55889     which can conflict with char $ac_func (); below.
55890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55891     <limits.h> exists even on freestanding compilers.  */
55892
55893 #ifdef __STDC__
55894 # include <limits.h>
55895 #else
55896 # include <assert.h>
55897 #endif
55898
55899 #undef $ac_func
55900
55901 /* Override any GCC internal prototype to avoid an error.
55902    Use char because int might match the return type of a GCC
55903    builtin and then its argument prototype would still apply.  */
55904 #ifdef __cplusplus
55905 extern "C"
55906 #endif
55907 char $ac_func ();
55908 /* The GNU C library defines this for functions which it implements
55909     to always fail with ENOSYS.  Some functions are actually named
55910     something starting with __ and the normal name is an alias.  */
55911 #if defined __stub_$ac_func || defined __stub___$ac_func
55912 choke me
55913 #endif
55914
55915 int
55916 main ()
55917 {
55918 return $ac_func ();
55919   ;
55920   return 0;
55921 }
55922 _ACEOF
55923 rm -f conftest.$ac_objext conftest$ac_exeext
55924 if { (ac_try="$ac_link"
55925 case "(($ac_try" in
55926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55927   *) ac_try_echo=$ac_try;;
55928 esac
55929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55930   (eval "$ac_link") 2>conftest.er1
55931   ac_status=$?
55932   grep -v '^ *+' conftest.er1 >conftest.err
55933   rm -f conftest.er1
55934   cat conftest.err >&5
55935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55936   (exit $ac_status); } && {
55937          test -z "$ac_c_werror_flag" ||
55938          test ! -s conftest.err
55939        } && test -s conftest$ac_exeext &&
55940        $as_test_x conftest$ac_exeext; then
55941   eval "$as_ac_var=yes"
55942 else
55943   echo "$as_me: failed program was:" >&5
55944 sed 's/^/| /' conftest.$ac_ext >&5
55945
55946         eval "$as_ac_var=no"
55947 fi
55948
55949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55950       conftest$ac_exeext conftest.$ac_ext
55951 fi
55952 ac_res=`eval echo '${'$as_ac_var'}'`
55953                { echo "$as_me:$LINENO: result: $ac_res" >&5
55954 echo "${ECHO_T}$ac_res" >&6; }
55955 if test `eval echo '${'$as_ac_var'}'` = yes; then
55956   cat >>confdefs.h <<_ACEOF
55957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55958 _ACEOF
55959  ice_have_atoll=yes
55960 fi
55961 done
55962
55963 if test "${ice_have_atoll}" = yes; then
55964 { echo "$as_me:$LINENO: checking for atoll declaration in stdlib.h" >&5
55965 echo $ECHO_N "checking for atoll declaration in stdlib.h... $ECHO_C" >&6; }
55966 if test "${ice_cv_have_atoll_decl+set}" = set; then
55967   echo $ECHO_N "(cached) $ECHO_C" >&6
55968 else
55969
55970 ice_cv_have_atoll_decl=no
55971 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55972 ice_re_word='(^|[^a-zA-Z0-9_])'
55973 for header in stdlib.h; do
55974 # Check for ordinary declaration
55975 cat >conftest.$ac_ext <<_ACEOF
55976 /* confdefs.h.  */
55977 _ACEOF
55978 cat confdefs.h >>conftest.$ac_ext
55979 cat >>conftest.$ac_ext <<_ACEOF
55980 /* end confdefs.h.  */
55981 #include <$header>
55982
55983 _ACEOF
55984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55985   $EGREP "${ice_re_word}atoll[  ]*\(" >/dev/null 2>&1; then
55986   ice_cv_have_atoll_decl=yes
55987 fi
55988 rm -f conftest*
55989
55990 if test "$ice_cv_have_atoll_decl" = yes; then
55991         break
55992 fi
55993 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55994 cat >conftest.$ac_ext <<_ACEOF
55995 /* confdefs.h.  */
55996 _ACEOF
55997 cat confdefs.h >>conftest.$ac_ext
55998 cat >>conftest.$ac_ext <<_ACEOF
55999 /* end confdefs.h.  */
56000 #include <$header>
56001
56002 _ACEOF
56003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56004   $EGREP "${ice_re_word}atoll[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56005   ice_cv_have_atoll_decl=yes
56006 fi
56007 rm -f conftest*
56008
56009 if test "$ice_cv_have_atoll_decl" = yes; then
56010         break
56011 fi
56012 done
56013
56014 fi
56015
56016 { echo "$as_me:$LINENO: result: $ice_cv_have_atoll_decl" >&5
56017 echo "${ECHO_T}$ice_cv_have_atoll_decl" >&6; }
56018 if test "$ice_cv_have_atoll_decl" = yes; then
56019
56020 cat >>confdefs.h <<_ACEOF
56021 #define HAVE_ATOLL_DECL 1
56022 _ACEOF
56023
56024 fi
56025 fi
56026
56027
56028 ice_have_strtol=no
56029
56030 for ac_func in strtol
56031 do
56032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56033 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56035 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56036   echo $ECHO_N "(cached) $ECHO_C" >&6
56037 else
56038   cat >conftest.$ac_ext <<_ACEOF
56039 /* confdefs.h.  */
56040 _ACEOF
56041 cat confdefs.h >>conftest.$ac_ext
56042 cat >>conftest.$ac_ext <<_ACEOF
56043 /* end confdefs.h.  */
56044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56045    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56046 #define $ac_func innocuous_$ac_func
56047
56048 /* System header to define __stub macros and hopefully few prototypes,
56049     which can conflict with char $ac_func (); below.
56050     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56051     <limits.h> exists even on freestanding compilers.  */
56052
56053 #ifdef __STDC__
56054 # include <limits.h>
56055 #else
56056 # include <assert.h>
56057 #endif
56058
56059 #undef $ac_func
56060
56061 /* Override any GCC internal prototype to avoid an error.
56062    Use char because int might match the return type of a GCC
56063    builtin and then its argument prototype would still apply.  */
56064 #ifdef __cplusplus
56065 extern "C"
56066 #endif
56067 char $ac_func ();
56068 /* The GNU C library defines this for functions which it implements
56069     to always fail with ENOSYS.  Some functions are actually named
56070     something starting with __ and the normal name is an alias.  */
56071 #if defined __stub_$ac_func || defined __stub___$ac_func
56072 choke me
56073 #endif
56074
56075 int
56076 main ()
56077 {
56078 return $ac_func ();
56079   ;
56080   return 0;
56081 }
56082 _ACEOF
56083 rm -f conftest.$ac_objext conftest$ac_exeext
56084 if { (ac_try="$ac_link"
56085 case "(($ac_try" in
56086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56087   *) ac_try_echo=$ac_try;;
56088 esac
56089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56090   (eval "$ac_link") 2>conftest.er1
56091   ac_status=$?
56092   grep -v '^ *+' conftest.er1 >conftest.err
56093   rm -f conftest.er1
56094   cat conftest.err >&5
56095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56096   (exit $ac_status); } && {
56097          test -z "$ac_c_werror_flag" ||
56098          test ! -s conftest.err
56099        } && test -s conftest$ac_exeext &&
56100        $as_test_x conftest$ac_exeext; then
56101   eval "$as_ac_var=yes"
56102 else
56103   echo "$as_me: failed program was:" >&5
56104 sed 's/^/| /' conftest.$ac_ext >&5
56105
56106         eval "$as_ac_var=no"
56107 fi
56108
56109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56110       conftest$ac_exeext conftest.$ac_ext
56111 fi
56112 ac_res=`eval echo '${'$as_ac_var'}'`
56113                { echo "$as_me:$LINENO: result: $ac_res" >&5
56114 echo "${ECHO_T}$ac_res" >&6; }
56115 if test `eval echo '${'$as_ac_var'}'` = yes; then
56116   cat >>confdefs.h <<_ACEOF
56117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56118 _ACEOF
56119  ice_have_strtol=yes
56120 fi
56121 done
56122
56123 if test "${ice_have_strtol}" = yes; then
56124 { echo "$as_me:$LINENO: checking for strtol declaration in stdlib.h" >&5
56125 echo $ECHO_N "checking for strtol declaration in stdlib.h... $ECHO_C" >&6; }
56126 if test "${ice_cv_have_strtol_decl+set}" = set; then
56127   echo $ECHO_N "(cached) $ECHO_C" >&6
56128 else
56129
56130 ice_cv_have_strtol_decl=no
56131 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56132 ice_re_word='(^|[^a-zA-Z0-9_])'
56133 for header in stdlib.h; do
56134 # Check for ordinary declaration
56135 cat >conftest.$ac_ext <<_ACEOF
56136 /* confdefs.h.  */
56137 _ACEOF
56138 cat confdefs.h >>conftest.$ac_ext
56139 cat >>conftest.$ac_ext <<_ACEOF
56140 /* end confdefs.h.  */
56141 #include <$header>
56142
56143 _ACEOF
56144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56145   $EGREP "${ice_re_word}strtol[         ]*\(" >/dev/null 2>&1; then
56146   ice_cv_have_strtol_decl=yes
56147 fi
56148 rm -f conftest*
56149
56150 if test "$ice_cv_have_strtol_decl" = yes; then
56151         break
56152 fi
56153 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56154 cat >conftest.$ac_ext <<_ACEOF
56155 /* confdefs.h.  */
56156 _ACEOF
56157 cat confdefs.h >>conftest.$ac_ext
56158 cat >>conftest.$ac_ext <<_ACEOF
56159 /* end confdefs.h.  */
56160 #include <$header>
56161
56162 _ACEOF
56163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56164   $EGREP "${ice_re_word}strtol[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56165   ice_cv_have_strtol_decl=yes
56166 fi
56167 rm -f conftest*
56168
56169 if test "$ice_cv_have_strtol_decl" = yes; then
56170         break
56171 fi
56172 done
56173
56174 fi
56175
56176 { echo "$as_me:$LINENO: result: $ice_cv_have_strtol_decl" >&5
56177 echo "${ECHO_T}$ice_cv_have_strtol_decl" >&6; }
56178 if test "$ice_cv_have_strtol_decl" = yes; then
56179
56180 cat >>confdefs.h <<_ACEOF
56181 #define HAVE_STRTOL_DECL 1
56182 _ACEOF
56183
56184 fi
56185 fi
56186
56187
56188 ice_have_strtoll=no
56189
56190 for ac_func in strtoll
56191 do
56192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56193 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56195 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56196   echo $ECHO_N "(cached) $ECHO_C" >&6
56197 else
56198   cat >conftest.$ac_ext <<_ACEOF
56199 /* confdefs.h.  */
56200 _ACEOF
56201 cat confdefs.h >>conftest.$ac_ext
56202 cat >>conftest.$ac_ext <<_ACEOF
56203 /* end confdefs.h.  */
56204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56206 #define $ac_func innocuous_$ac_func
56207
56208 /* System header to define __stub macros and hopefully few prototypes,
56209     which can conflict with char $ac_func (); below.
56210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56211     <limits.h> exists even on freestanding compilers.  */
56212
56213 #ifdef __STDC__
56214 # include <limits.h>
56215 #else
56216 # include <assert.h>
56217 #endif
56218
56219 #undef $ac_func
56220
56221 /* Override any GCC internal prototype to avoid an error.
56222    Use char because int might match the return type of a GCC
56223    builtin and then its argument prototype would still apply.  */
56224 #ifdef __cplusplus
56225 extern "C"
56226 #endif
56227 char $ac_func ();
56228 /* The GNU C library defines this for functions which it implements
56229     to always fail with ENOSYS.  Some functions are actually named
56230     something starting with __ and the normal name is an alias.  */
56231 #if defined __stub_$ac_func || defined __stub___$ac_func
56232 choke me
56233 #endif
56234
56235 int
56236 main ()
56237 {
56238 return $ac_func ();
56239   ;
56240   return 0;
56241 }
56242 _ACEOF
56243 rm -f conftest.$ac_objext conftest$ac_exeext
56244 if { (ac_try="$ac_link"
56245 case "(($ac_try" in
56246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56247   *) ac_try_echo=$ac_try;;
56248 esac
56249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56250   (eval "$ac_link") 2>conftest.er1
56251   ac_status=$?
56252   grep -v '^ *+' conftest.er1 >conftest.err
56253   rm -f conftest.er1
56254   cat conftest.err >&5
56255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56256   (exit $ac_status); } && {
56257          test -z "$ac_c_werror_flag" ||
56258          test ! -s conftest.err
56259        } && test -s conftest$ac_exeext &&
56260        $as_test_x conftest$ac_exeext; then
56261   eval "$as_ac_var=yes"
56262 else
56263   echo "$as_me: failed program was:" >&5
56264 sed 's/^/| /' conftest.$ac_ext >&5
56265
56266         eval "$as_ac_var=no"
56267 fi
56268
56269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56270       conftest$ac_exeext conftest.$ac_ext
56271 fi
56272 ac_res=`eval echo '${'$as_ac_var'}'`
56273                { echo "$as_me:$LINENO: result: $ac_res" >&5
56274 echo "${ECHO_T}$ac_res" >&6; }
56275 if test `eval echo '${'$as_ac_var'}'` = yes; then
56276   cat >>confdefs.h <<_ACEOF
56277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56278 _ACEOF
56279  ice_have_strtoll=yes
56280 fi
56281 done
56282
56283 if test "${ice_have_strtoll}" = yes; then
56284 { echo "$as_me:$LINENO: checking for strtoll declaration in stdlib.h" >&5
56285 echo $ECHO_N "checking for strtoll declaration in stdlib.h... $ECHO_C" >&6; }
56286 if test "${ice_cv_have_strtoll_decl+set}" = set; then
56287   echo $ECHO_N "(cached) $ECHO_C" >&6
56288 else
56289
56290 ice_cv_have_strtoll_decl=no
56291 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56292 ice_re_word='(^|[^a-zA-Z0-9_])'
56293 for header in stdlib.h; do
56294 # Check for ordinary declaration
56295 cat >conftest.$ac_ext <<_ACEOF
56296 /* confdefs.h.  */
56297 _ACEOF
56298 cat confdefs.h >>conftest.$ac_ext
56299 cat >>conftest.$ac_ext <<_ACEOF
56300 /* end confdefs.h.  */
56301 #include <$header>
56302
56303 _ACEOF
56304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56305   $EGREP "${ice_re_word}strtoll[        ]*\(" >/dev/null 2>&1; then
56306   ice_cv_have_strtoll_decl=yes
56307 fi
56308 rm -f conftest*
56309
56310 if test "$ice_cv_have_strtoll_decl" = yes; then
56311         break
56312 fi
56313 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56314 cat >conftest.$ac_ext <<_ACEOF
56315 /* confdefs.h.  */
56316 _ACEOF
56317 cat confdefs.h >>conftest.$ac_ext
56318 cat >>conftest.$ac_ext <<_ACEOF
56319 /* end confdefs.h.  */
56320 #include <$header>
56321
56322 _ACEOF
56323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56324   $EGREP "${ice_re_word}strtoll[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56325   ice_cv_have_strtoll_decl=yes
56326 fi
56327 rm -f conftest*
56328
56329 if test "$ice_cv_have_strtoll_decl" = yes; then
56330         break
56331 fi
56332 done
56333
56334 fi
56335
56336 { echo "$as_me:$LINENO: result: $ice_cv_have_strtoll_decl" >&5
56337 echo "${ECHO_T}$ice_cv_have_strtoll_decl" >&6; }
56338 if test "$ice_cv_have_strtoll_decl" = yes; then
56339
56340 cat >>confdefs.h <<_ACEOF
56341 #define HAVE_STRTOLL_DECL 1
56342 _ACEOF
56343
56344 fi
56345 fi
56346
56347
56348 for ac_func in basename
56349 do
56350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56351 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56353 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56354   echo $ECHO_N "(cached) $ECHO_C" >&6
56355 else
56356   cat >conftest.$ac_ext <<_ACEOF
56357 /* confdefs.h.  */
56358 _ACEOF
56359 cat confdefs.h >>conftest.$ac_ext
56360 cat >>conftest.$ac_ext <<_ACEOF
56361 /* end confdefs.h.  */
56362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56363    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56364 #define $ac_func innocuous_$ac_func
56365
56366 /* System header to define __stub macros and hopefully few prototypes,
56367     which can conflict with char $ac_func (); below.
56368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56369     <limits.h> exists even on freestanding compilers.  */
56370
56371 #ifdef __STDC__
56372 # include <limits.h>
56373 #else
56374 # include <assert.h>
56375 #endif
56376
56377 #undef $ac_func
56378
56379 /* Override any GCC internal prototype to avoid an error.
56380    Use char because int might match the return type of a GCC
56381    builtin and then its argument prototype would still apply.  */
56382 #ifdef __cplusplus
56383 extern "C"
56384 #endif
56385 char $ac_func ();
56386 /* The GNU C library defines this for functions which it implements
56387     to always fail with ENOSYS.  Some functions are actually named
56388     something starting with __ and the normal name is an alias.  */
56389 #if defined __stub_$ac_func || defined __stub___$ac_func
56390 choke me
56391 #endif
56392
56393 int
56394 main ()
56395 {
56396 return $ac_func ();
56397   ;
56398   return 0;
56399 }
56400 _ACEOF
56401 rm -f conftest.$ac_objext conftest$ac_exeext
56402 if { (ac_try="$ac_link"
56403 case "(($ac_try" in
56404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56405   *) ac_try_echo=$ac_try;;
56406 esac
56407 eval "echo \"\$as_me:$LINENO: $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   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        $as_test_x conftest$ac_exeext; then
56419   eval "$as_ac_var=yes"
56420 else
56421   echo "$as_me: failed program was:" >&5
56422 sed 's/^/| /' conftest.$ac_ext >&5
56423
56424         eval "$as_ac_var=no"
56425 fi
56426
56427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56428       conftest$ac_exeext conftest.$ac_ext
56429 fi
56430 ac_res=`eval echo '${'$as_ac_var'}'`
56431                { echo "$as_me:$LINENO: result: $ac_res" >&5
56432 echo "${ECHO_T}$ac_res" >&6; }
56433 if test `eval echo '${'$as_ac_var'}'` = yes; then
56434   cat >>confdefs.h <<_ACEOF
56435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56436 _ACEOF
56437
56438 fi
56439 done
56440
56441
56442 ice_have_bind=no
56443
56444 for ac_func in bind
56445 do
56446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56450   echo $ECHO_N "(cached) $ECHO_C" >&6
56451 else
56452   cat >conftest.$ac_ext <<_ACEOF
56453 /* confdefs.h.  */
56454 _ACEOF
56455 cat confdefs.h >>conftest.$ac_ext
56456 cat >>conftest.$ac_ext <<_ACEOF
56457 /* end confdefs.h.  */
56458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56460 #define $ac_func innocuous_$ac_func
56461
56462 /* System header to define __stub macros and hopefully few prototypes,
56463     which can conflict with char $ac_func (); below.
56464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56465     <limits.h> exists even on freestanding compilers.  */
56466
56467 #ifdef __STDC__
56468 # include <limits.h>
56469 #else
56470 # include <assert.h>
56471 #endif
56472
56473 #undef $ac_func
56474
56475 /* Override any GCC internal prototype to avoid an error.
56476    Use char because int might match the return type of a GCC
56477    builtin and then its argument prototype would still apply.  */
56478 #ifdef __cplusplus
56479 extern "C"
56480 #endif
56481 char $ac_func ();
56482 /* The GNU C library defines this for functions which it implements
56483     to always fail with ENOSYS.  Some functions are actually named
56484     something starting with __ and the normal name is an alias.  */
56485 #if defined __stub_$ac_func || defined __stub___$ac_func
56486 choke me
56487 #endif
56488
56489 int
56490 main ()
56491 {
56492 return $ac_func ();
56493   ;
56494   return 0;
56495 }
56496 _ACEOF
56497 rm -f conftest.$ac_objext conftest$ac_exeext
56498 if { (ac_try="$ac_link"
56499 case "(($ac_try" in
56500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56501   *) ac_try_echo=$ac_try;;
56502 esac
56503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56504   (eval "$ac_link") 2>conftest.er1
56505   ac_status=$?
56506   grep -v '^ *+' conftest.er1 >conftest.err
56507   rm -f conftest.er1
56508   cat conftest.err >&5
56509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56510   (exit $ac_status); } && {
56511          test -z "$ac_c_werror_flag" ||
56512          test ! -s conftest.err
56513        } && test -s conftest$ac_exeext &&
56514        $as_test_x conftest$ac_exeext; then
56515   eval "$as_ac_var=yes"
56516 else
56517   echo "$as_me: failed program was:" >&5
56518 sed 's/^/| /' conftest.$ac_ext >&5
56519
56520         eval "$as_ac_var=no"
56521 fi
56522
56523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56524       conftest$ac_exeext conftest.$ac_ext
56525 fi
56526 ac_res=`eval echo '${'$as_ac_var'}'`
56527                { echo "$as_me:$LINENO: result: $ac_res" >&5
56528 echo "${ECHO_T}$ac_res" >&6; }
56529 if test `eval echo '${'$as_ac_var'}'` = yes; then
56530   cat >>confdefs.h <<_ACEOF
56531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56532 _ACEOF
56533  ice_have_bind=yes
56534 fi
56535 done
56536
56537 if test "${ice_have_bind}" = yes; then
56538 { echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
56539 echo $ECHO_N "checking for bind declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
56540 if test "${ice_cv_have_bind_decl+set}" = set; then
56541   echo $ECHO_N "(cached) $ECHO_C" >&6
56542 else
56543
56544 ice_cv_have_bind_decl=no
56545 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56546 ice_re_word='(^|[^a-zA-Z0-9_])'
56547 for header in sys/types.h sys/socket.h; do
56548 # Check for ordinary declaration
56549 cat >conftest.$ac_ext <<_ACEOF
56550 /* confdefs.h.  */
56551 _ACEOF
56552 cat confdefs.h >>conftest.$ac_ext
56553 cat >>conftest.$ac_ext <<_ACEOF
56554 /* end confdefs.h.  */
56555 #include <$header>
56556
56557 _ACEOF
56558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56559   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then
56560   ice_cv_have_bind_decl=yes
56561 fi
56562 rm -f conftest*
56563
56564 if test "$ice_cv_have_bind_decl" = yes; then
56565         break
56566 fi
56567 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56568 cat >conftest.$ac_ext <<_ACEOF
56569 /* confdefs.h.  */
56570 _ACEOF
56571 cat confdefs.h >>conftest.$ac_ext
56572 cat >>conftest.$ac_ext <<_ACEOF
56573 /* end confdefs.h.  */
56574 #include <$header>
56575
56576 _ACEOF
56577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56578   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56579   ice_cv_have_bind_decl=yes
56580 fi
56581 rm -f conftest*
56582
56583 if test "$ice_cv_have_bind_decl" = yes; then
56584         break
56585 fi
56586 done
56587
56588 fi
56589
56590 { echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
56591 echo "${ECHO_T}$ice_cv_have_bind_decl" >&6; }
56592 if test "$ice_cv_have_bind_decl" = yes; then
56593
56594 cat >>confdefs.h <<_ACEOF
56595 #define HAVE_BIND_DECL 1
56596 _ACEOF
56597
56598 fi
56599 fi
56600
56601
56602 ice_have_bcopy=no
56603
56604 for ac_func in bcopy
56605 do
56606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56610   echo $ECHO_N "(cached) $ECHO_C" >&6
56611 else
56612   cat >conftest.$ac_ext <<_ACEOF
56613 /* confdefs.h.  */
56614 _ACEOF
56615 cat confdefs.h >>conftest.$ac_ext
56616 cat >>conftest.$ac_ext <<_ACEOF
56617 /* end confdefs.h.  */
56618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56620 #define $ac_func innocuous_$ac_func
56621
56622 /* System header to define __stub macros and hopefully few prototypes,
56623     which can conflict with char $ac_func (); below.
56624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56625     <limits.h> exists even on freestanding compilers.  */
56626
56627 #ifdef __STDC__
56628 # include <limits.h>
56629 #else
56630 # include <assert.h>
56631 #endif
56632
56633 #undef $ac_func
56634
56635 /* Override any GCC internal prototype to avoid an error.
56636    Use char because int might match the return type of a GCC
56637    builtin and then its argument prototype would still apply.  */
56638 #ifdef __cplusplus
56639 extern "C"
56640 #endif
56641 char $ac_func ();
56642 /* The GNU C library defines this for functions which it implements
56643     to always fail with ENOSYS.  Some functions are actually named
56644     something starting with __ and the normal name is an alias.  */
56645 #if defined __stub_$ac_func || defined __stub___$ac_func
56646 choke me
56647 #endif
56648
56649 int
56650 main ()
56651 {
56652 return $ac_func ();
56653   ;
56654   return 0;
56655 }
56656 _ACEOF
56657 rm -f conftest.$ac_objext conftest$ac_exeext
56658 if { (ac_try="$ac_link"
56659 case "(($ac_try" in
56660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56661   *) ac_try_echo=$ac_try;;
56662 esac
56663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56664   (eval "$ac_link") 2>conftest.er1
56665   ac_status=$?
56666   grep -v '^ *+' conftest.er1 >conftest.err
56667   rm -f conftest.er1
56668   cat conftest.err >&5
56669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56670   (exit $ac_status); } && {
56671          test -z "$ac_c_werror_flag" ||
56672          test ! -s conftest.err
56673        } && test -s conftest$ac_exeext &&
56674        $as_test_x conftest$ac_exeext; then
56675   eval "$as_ac_var=yes"
56676 else
56677   echo "$as_me: failed program was:" >&5
56678 sed 's/^/| /' conftest.$ac_ext >&5
56679
56680         eval "$as_ac_var=no"
56681 fi
56682
56683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56684       conftest$ac_exeext conftest.$ac_ext
56685 fi
56686 ac_res=`eval echo '${'$as_ac_var'}'`
56687                { echo "$as_me:$LINENO: result: $ac_res" >&5
56688 echo "${ECHO_T}$ac_res" >&6; }
56689 if test `eval echo '${'$as_ac_var'}'` = yes; then
56690   cat >>confdefs.h <<_ACEOF
56691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56692 _ACEOF
56693  ice_have_bcopy=yes
56694 fi
56695 done
56696
56697 if test "${ice_have_bcopy}" = yes; then
56698 { echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
56699 echo $ECHO_N "checking for bcopy declaration in string.h strings.h stdlib.h... $ECHO_C" >&6; }
56700 if test "${ice_cv_have_bcopy_decl+set}" = set; then
56701   echo $ECHO_N "(cached) $ECHO_C" >&6
56702 else
56703
56704 ice_cv_have_bcopy_decl=no
56705 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56706 ice_re_word='(^|[^a-zA-Z0-9_])'
56707 for header in string.h strings.h stdlib.h; do
56708 # Check for ordinary declaration
56709 cat >conftest.$ac_ext <<_ACEOF
56710 /* confdefs.h.  */
56711 _ACEOF
56712 cat confdefs.h >>conftest.$ac_ext
56713 cat >>conftest.$ac_ext <<_ACEOF
56714 /* end confdefs.h.  */
56715 #include <$header>
56716
56717 _ACEOF
56718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56719   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then
56720   ice_cv_have_bcopy_decl=yes
56721 fi
56722 rm -f conftest*
56723
56724 if test "$ice_cv_have_bcopy_decl" = yes; then
56725         break
56726 fi
56727 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56728 cat >conftest.$ac_ext <<_ACEOF
56729 /* confdefs.h.  */
56730 _ACEOF
56731 cat confdefs.h >>conftest.$ac_ext
56732 cat >>conftest.$ac_ext <<_ACEOF
56733 /* end confdefs.h.  */
56734 #include <$header>
56735
56736 _ACEOF
56737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56738   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56739   ice_cv_have_bcopy_decl=yes
56740 fi
56741 rm -f conftest*
56742
56743 if test "$ice_cv_have_bcopy_decl" = yes; then
56744         break
56745 fi
56746 done
56747
56748 fi
56749
56750 { echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
56751 echo "${ECHO_T}$ice_cv_have_bcopy_decl" >&6; }
56752 if test "$ice_cv_have_bcopy_decl" = yes; then
56753
56754 cat >>confdefs.h <<_ACEOF
56755 #define HAVE_BCOPY_DECL 1
56756 _ACEOF
56757
56758 fi
56759 fi
56760
56761
56762 ice_have_bzero=no
56763
56764 for ac_func in bzero
56765 do
56766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56767 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56770   echo $ECHO_N "(cached) $ECHO_C" >&6
56771 else
56772   cat >conftest.$ac_ext <<_ACEOF
56773 /* confdefs.h.  */
56774 _ACEOF
56775 cat confdefs.h >>conftest.$ac_ext
56776 cat >>conftest.$ac_ext <<_ACEOF
56777 /* end confdefs.h.  */
56778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56780 #define $ac_func innocuous_$ac_func
56781
56782 /* System header to define __stub macros and hopefully few prototypes,
56783     which can conflict with char $ac_func (); below.
56784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56785     <limits.h> exists even on freestanding compilers.  */
56786
56787 #ifdef __STDC__
56788 # include <limits.h>
56789 #else
56790 # include <assert.h>
56791 #endif
56792
56793 #undef $ac_func
56794
56795 /* Override any GCC internal prototype to avoid an error.
56796    Use char because int might match the return type of a GCC
56797    builtin and then its argument prototype would still apply.  */
56798 #ifdef __cplusplus
56799 extern "C"
56800 #endif
56801 char $ac_func ();
56802 /* The GNU C library defines this for functions which it implements
56803     to always fail with ENOSYS.  Some functions are actually named
56804     something starting with __ and the normal name is an alias.  */
56805 #if defined __stub_$ac_func || defined __stub___$ac_func
56806 choke me
56807 #endif
56808
56809 int
56810 main ()
56811 {
56812 return $ac_func ();
56813   ;
56814   return 0;
56815 }
56816 _ACEOF
56817 rm -f conftest.$ac_objext conftest$ac_exeext
56818 if { (ac_try="$ac_link"
56819 case "(($ac_try" in
56820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56821   *) ac_try_echo=$ac_try;;
56822 esac
56823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56824   (eval "$ac_link") 2>conftest.er1
56825   ac_status=$?
56826   grep -v '^ *+' conftest.er1 >conftest.err
56827   rm -f conftest.er1
56828   cat conftest.err >&5
56829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56830   (exit $ac_status); } && {
56831          test -z "$ac_c_werror_flag" ||
56832          test ! -s conftest.err
56833        } && test -s conftest$ac_exeext &&
56834        $as_test_x conftest$ac_exeext; then
56835   eval "$as_ac_var=yes"
56836 else
56837   echo "$as_me: failed program was:" >&5
56838 sed 's/^/| /' conftest.$ac_ext >&5
56839
56840         eval "$as_ac_var=no"
56841 fi
56842
56843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56844       conftest$ac_exeext conftest.$ac_ext
56845 fi
56846 ac_res=`eval echo '${'$as_ac_var'}'`
56847                { echo "$as_me:$LINENO: result: $ac_res" >&5
56848 echo "${ECHO_T}$ac_res" >&6; }
56849 if test `eval echo '${'$as_ac_var'}'` = yes; then
56850   cat >>confdefs.h <<_ACEOF
56851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56852 _ACEOF
56853  ice_have_bzero=yes
56854 fi
56855 done
56856
56857 if test "${ice_have_bzero}" = yes; then
56858 { echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
56859 echo $ECHO_N "checking for bzero declaration in string.h strings.h stdlib.h... $ECHO_C" >&6; }
56860 if test "${ice_cv_have_bzero_decl+set}" = set; then
56861   echo $ECHO_N "(cached) $ECHO_C" >&6
56862 else
56863
56864 ice_cv_have_bzero_decl=no
56865 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56866 ice_re_word='(^|[^a-zA-Z0-9_])'
56867 for header in string.h strings.h stdlib.h; do
56868 # Check for ordinary declaration
56869 cat >conftest.$ac_ext <<_ACEOF
56870 /* confdefs.h.  */
56871 _ACEOF
56872 cat confdefs.h >>conftest.$ac_ext
56873 cat >>conftest.$ac_ext <<_ACEOF
56874 /* end confdefs.h.  */
56875 #include <$header>
56876
56877 _ACEOF
56878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56879   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then
56880   ice_cv_have_bzero_decl=yes
56881 fi
56882 rm -f conftest*
56883
56884 if test "$ice_cv_have_bzero_decl" = yes; then
56885         break
56886 fi
56887 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56888 cat >conftest.$ac_ext <<_ACEOF
56889 /* confdefs.h.  */
56890 _ACEOF
56891 cat confdefs.h >>conftest.$ac_ext
56892 cat >>conftest.$ac_ext <<_ACEOF
56893 /* end confdefs.h.  */
56894 #include <$header>
56895
56896 _ACEOF
56897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56898   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56899   ice_cv_have_bzero_decl=yes
56900 fi
56901 rm -f conftest*
56902
56903 if test "$ice_cv_have_bzero_decl" = yes; then
56904         break
56905 fi
56906 done
56907
56908 fi
56909
56910 { echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
56911 echo "${ECHO_T}$ice_cv_have_bzero_decl" >&6; }
56912 if test "$ice_cv_have_bzero_decl" = yes; then
56913
56914 cat >>confdefs.h <<_ACEOF
56915 #define HAVE_BZERO_DECL 1
56916 _ACEOF
56917
56918 fi
56919 fi
56920
56921 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
56922 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
56923 if test "${ac_cv_func_closedir_void+set}" = set; then
56924   echo $ECHO_N "(cached) $ECHO_C" >&6
56925 else
56926   if test "$cross_compiling" = yes; then
56927   ac_cv_func_closedir_void=yes
56928 else
56929   cat >conftest.$ac_ext <<_ACEOF
56930 /* confdefs.h.  */
56931 _ACEOF
56932 cat confdefs.h >>conftest.$ac_ext
56933 cat >>conftest.$ac_ext <<_ACEOF
56934 /* end confdefs.h.  */
56935 $ac_includes_default
56936 #include <$ac_header_dirent>
56937 #ifndef __cplusplus
56938 int closedir ();
56939 #endif
56940
56941 int
56942 main ()
56943 {
56944 return closedir (opendir (".")) != 0;
56945   ;
56946   return 0;
56947 }
56948 _ACEOF
56949 rm -f conftest$ac_exeext
56950 if { (ac_try="$ac_link"
56951 case "(($ac_try" in
56952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56953   *) ac_try_echo=$ac_try;;
56954 esac
56955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56956   (eval "$ac_link") 2>&5
56957   ac_status=$?
56958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56959   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56960   { (case "(($ac_try" in
56961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56962   *) ac_try_echo=$ac_try;;
56963 esac
56964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56965   (eval "$ac_try") 2>&5
56966   ac_status=$?
56967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56968   (exit $ac_status); }; }; then
56969   ac_cv_func_closedir_void=no
56970 else
56971   echo "$as_me: program exited with status $ac_status" >&5
56972 echo "$as_me: failed program was:" >&5
56973 sed 's/^/| /' conftest.$ac_ext >&5
56974
56975 ( exit $ac_status )
56976 ac_cv_func_closedir_void=yes
56977 fi
56978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56979 fi
56980
56981
56982 fi
56983 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
56984 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
56985 if test $ac_cv_func_closedir_void = yes; then
56986
56987 cat >>confdefs.h <<\_ACEOF
56988 #define CLOSEDIR_VOID 1
56989 _ACEOF
56990
56991 fi
56992
56993
56994 ice_have_closelog=no
56995
56996 for ac_func in closelog
56997 do
56998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56999 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57001 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57002   echo $ECHO_N "(cached) $ECHO_C" >&6
57003 else
57004   cat >conftest.$ac_ext <<_ACEOF
57005 /* confdefs.h.  */
57006 _ACEOF
57007 cat confdefs.h >>conftest.$ac_ext
57008 cat >>conftest.$ac_ext <<_ACEOF
57009 /* end confdefs.h.  */
57010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57012 #define $ac_func innocuous_$ac_func
57013
57014 /* System header to define __stub macros and hopefully few prototypes,
57015     which can conflict with char $ac_func (); below.
57016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57017     <limits.h> exists even on freestanding compilers.  */
57018
57019 #ifdef __STDC__
57020 # include <limits.h>
57021 #else
57022 # include <assert.h>
57023 #endif
57024
57025 #undef $ac_func
57026
57027 /* Override any GCC internal prototype to avoid an error.
57028    Use char because int might match the return type of a GCC
57029    builtin and then its argument prototype would still apply.  */
57030 #ifdef __cplusplus
57031 extern "C"
57032 #endif
57033 char $ac_func ();
57034 /* The GNU C library defines this for functions which it implements
57035     to always fail with ENOSYS.  Some functions are actually named
57036     something starting with __ and the normal name is an alias.  */
57037 #if defined __stub_$ac_func || defined __stub___$ac_func
57038 choke me
57039 #endif
57040
57041 int
57042 main ()
57043 {
57044 return $ac_func ();
57045   ;
57046   return 0;
57047 }
57048 _ACEOF
57049 rm -f conftest.$ac_objext conftest$ac_exeext
57050 if { (ac_try="$ac_link"
57051 case "(($ac_try" in
57052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57053   *) ac_try_echo=$ac_try;;
57054 esac
57055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57056   (eval "$ac_link") 2>conftest.er1
57057   ac_status=$?
57058   grep -v '^ *+' conftest.er1 >conftest.err
57059   rm -f conftest.er1
57060   cat conftest.err >&5
57061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57062   (exit $ac_status); } && {
57063          test -z "$ac_c_werror_flag" ||
57064          test ! -s conftest.err
57065        } && test -s conftest$ac_exeext &&
57066        $as_test_x conftest$ac_exeext; then
57067   eval "$as_ac_var=yes"
57068 else
57069   echo "$as_me: failed program was:" >&5
57070 sed 's/^/| /' conftest.$ac_ext >&5
57071
57072         eval "$as_ac_var=no"
57073 fi
57074
57075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57076       conftest$ac_exeext conftest.$ac_ext
57077 fi
57078 ac_res=`eval echo '${'$as_ac_var'}'`
57079                { echo "$as_me:$LINENO: result: $ac_res" >&5
57080 echo "${ECHO_T}$ac_res" >&6; }
57081 if test `eval echo '${'$as_ac_var'}'` = yes; then
57082   cat >>confdefs.h <<_ACEOF
57083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57084 _ACEOF
57085  ice_have_closelog=yes
57086 fi
57087 done
57088
57089 if test "${ice_have_closelog}" = yes; then
57090 { echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
57091 echo $ECHO_N "checking for closelog declaration in syslog.h... $ECHO_C" >&6; }
57092 if test "${ice_cv_have_closelog_decl+set}" = set; then
57093   echo $ECHO_N "(cached) $ECHO_C" >&6
57094 else
57095
57096 ice_cv_have_closelog_decl=no
57097 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57098 ice_re_word='(^|[^a-zA-Z0-9_])'
57099 for header in syslog.h; do
57100 # Check for ordinary declaration
57101 cat >conftest.$ac_ext <<_ACEOF
57102 /* confdefs.h.  */
57103 _ACEOF
57104 cat confdefs.h >>conftest.$ac_ext
57105 cat >>conftest.$ac_ext <<_ACEOF
57106 /* end confdefs.h.  */
57107 #include <$header>
57108
57109 _ACEOF
57110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57111   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then
57112   ice_cv_have_closelog_decl=yes
57113 fi
57114 rm -f conftest*
57115
57116 if test "$ice_cv_have_closelog_decl" = yes; then
57117         break
57118 fi
57119 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57120 cat >conftest.$ac_ext <<_ACEOF
57121 /* confdefs.h.  */
57122 _ACEOF
57123 cat confdefs.h >>conftest.$ac_ext
57124 cat >>conftest.$ac_ext <<_ACEOF
57125 /* end confdefs.h.  */
57126 #include <$header>
57127
57128 _ACEOF
57129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57130   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57131   ice_cv_have_closelog_decl=yes
57132 fi
57133 rm -f conftest*
57134
57135 if test "$ice_cv_have_closelog_decl" = yes; then
57136         break
57137 fi
57138 done
57139
57140 fi
57141
57142 { echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
57143 echo "${ECHO_T}$ice_cv_have_closelog_decl" >&6; }
57144 if test "$ice_cv_have_closelog_decl" = yes; then
57145
57146 cat >>confdefs.h <<_ACEOF
57147 #define HAVE_CLOSELOG_DECL 1
57148 _ACEOF
57149
57150 fi
57151 fi
57152
57153
57154 ice_have_connect=no
57155
57156 for ac_func in connect
57157 do
57158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57159 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57162   echo $ECHO_N "(cached) $ECHO_C" >&6
57163 else
57164   cat >conftest.$ac_ext <<_ACEOF
57165 /* confdefs.h.  */
57166 _ACEOF
57167 cat confdefs.h >>conftest.$ac_ext
57168 cat >>conftest.$ac_ext <<_ACEOF
57169 /* end confdefs.h.  */
57170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57172 #define $ac_func innocuous_$ac_func
57173
57174 /* System header to define __stub macros and hopefully few prototypes,
57175     which can conflict with char $ac_func (); below.
57176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57177     <limits.h> exists even on freestanding compilers.  */
57178
57179 #ifdef __STDC__
57180 # include <limits.h>
57181 #else
57182 # include <assert.h>
57183 #endif
57184
57185 #undef $ac_func
57186
57187 /* Override any GCC internal prototype to avoid an error.
57188    Use char because int might match the return type of a GCC
57189    builtin and then its argument prototype would still apply.  */
57190 #ifdef __cplusplus
57191 extern "C"
57192 #endif
57193 char $ac_func ();
57194 /* The GNU C library defines this for functions which it implements
57195     to always fail with ENOSYS.  Some functions are actually named
57196     something starting with __ and the normal name is an alias.  */
57197 #if defined __stub_$ac_func || defined __stub___$ac_func
57198 choke me
57199 #endif
57200
57201 int
57202 main ()
57203 {
57204 return $ac_func ();
57205   ;
57206   return 0;
57207 }
57208 _ACEOF
57209 rm -f conftest.$ac_objext conftest$ac_exeext
57210 if { (ac_try="$ac_link"
57211 case "(($ac_try" in
57212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57213   *) ac_try_echo=$ac_try;;
57214 esac
57215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57216   (eval "$ac_link") 2>conftest.er1
57217   ac_status=$?
57218   grep -v '^ *+' conftest.er1 >conftest.err
57219   rm -f conftest.er1
57220   cat conftest.err >&5
57221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57222   (exit $ac_status); } && {
57223          test -z "$ac_c_werror_flag" ||
57224          test ! -s conftest.err
57225        } && test -s conftest$ac_exeext &&
57226        $as_test_x conftest$ac_exeext; then
57227   eval "$as_ac_var=yes"
57228 else
57229   echo "$as_me: failed program was:" >&5
57230 sed 's/^/| /' conftest.$ac_ext >&5
57231
57232         eval "$as_ac_var=no"
57233 fi
57234
57235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57236       conftest$ac_exeext conftest.$ac_ext
57237 fi
57238 ac_res=`eval echo '${'$as_ac_var'}'`
57239                { echo "$as_me:$LINENO: result: $ac_res" >&5
57240 echo "${ECHO_T}$ac_res" >&6; }
57241 if test `eval echo '${'$as_ac_var'}'` = yes; then
57242   cat >>confdefs.h <<_ACEOF
57243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57244 _ACEOF
57245  ice_have_connect=yes
57246 fi
57247 done
57248
57249 if test "${ice_have_connect}" = yes; then
57250 { echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
57251 echo $ECHO_N "checking for connect declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
57252 if test "${ice_cv_have_connect_decl+set}" = set; then
57253   echo $ECHO_N "(cached) $ECHO_C" >&6
57254 else
57255
57256 ice_cv_have_connect_decl=no
57257 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57258 ice_re_word='(^|[^a-zA-Z0-9_])'
57259 for header in sys/types.h sys/socket.h; do
57260 # Check for ordinary declaration
57261 cat >conftest.$ac_ext <<_ACEOF
57262 /* confdefs.h.  */
57263 _ACEOF
57264 cat confdefs.h >>conftest.$ac_ext
57265 cat >>conftest.$ac_ext <<_ACEOF
57266 /* end confdefs.h.  */
57267 #include <$header>
57268
57269 _ACEOF
57270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57271   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then
57272   ice_cv_have_connect_decl=yes
57273 fi
57274 rm -f conftest*
57275
57276 if test "$ice_cv_have_connect_decl" = yes; then
57277         break
57278 fi
57279 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57280 cat >conftest.$ac_ext <<_ACEOF
57281 /* confdefs.h.  */
57282 _ACEOF
57283 cat confdefs.h >>conftest.$ac_ext
57284 cat >>conftest.$ac_ext <<_ACEOF
57285 /* end confdefs.h.  */
57286 #include <$header>
57287
57288 _ACEOF
57289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57290   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57291   ice_cv_have_connect_decl=yes
57292 fi
57293 rm -f conftest*
57294
57295 if test "$ice_cv_have_connect_decl" = yes; then
57296         break
57297 fi
57298 done
57299
57300 fi
57301
57302 { echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
57303 echo "${ECHO_T}$ice_cv_have_connect_decl" >&6; }
57304 if test "$ice_cv_have_connect_decl" = yes; then
57305
57306 cat >>confdefs.h <<_ACEOF
57307 #define HAVE_CONNECT_DECL 1
57308 _ACEOF
57309
57310 fi
57311 fi
57312
57313
57314 ice_have_fclose=no
57315
57316 for ac_func in fclose
57317 do
57318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57319 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57321 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57322   echo $ECHO_N "(cached) $ECHO_C" >&6
57323 else
57324   cat >conftest.$ac_ext <<_ACEOF
57325 /* confdefs.h.  */
57326 _ACEOF
57327 cat confdefs.h >>conftest.$ac_ext
57328 cat >>conftest.$ac_ext <<_ACEOF
57329 /* end confdefs.h.  */
57330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57332 #define $ac_func innocuous_$ac_func
57333
57334 /* System header to define __stub macros and hopefully few prototypes,
57335     which can conflict with char $ac_func (); below.
57336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57337     <limits.h> exists even on freestanding compilers.  */
57338
57339 #ifdef __STDC__
57340 # include <limits.h>
57341 #else
57342 # include <assert.h>
57343 #endif
57344
57345 #undef $ac_func
57346
57347 /* Override any GCC internal prototype to avoid an error.
57348    Use char because int might match the return type of a GCC
57349    builtin and then its argument prototype would still apply.  */
57350 #ifdef __cplusplus
57351 extern "C"
57352 #endif
57353 char $ac_func ();
57354 /* The GNU C library defines this for functions which it implements
57355     to always fail with ENOSYS.  Some functions are actually named
57356     something starting with __ and the normal name is an alias.  */
57357 #if defined __stub_$ac_func || defined __stub___$ac_func
57358 choke me
57359 #endif
57360
57361 int
57362 main ()
57363 {
57364 return $ac_func ();
57365   ;
57366   return 0;
57367 }
57368 _ACEOF
57369 rm -f conftest.$ac_objext conftest$ac_exeext
57370 if { (ac_try="$ac_link"
57371 case "(($ac_try" in
57372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57373   *) ac_try_echo=$ac_try;;
57374 esac
57375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57376   (eval "$ac_link") 2>conftest.er1
57377   ac_status=$?
57378   grep -v '^ *+' conftest.er1 >conftest.err
57379   rm -f conftest.er1
57380   cat conftest.err >&5
57381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57382   (exit $ac_status); } && {
57383          test -z "$ac_c_werror_flag" ||
57384          test ! -s conftest.err
57385        } && test -s conftest$ac_exeext &&
57386        $as_test_x conftest$ac_exeext; then
57387   eval "$as_ac_var=yes"
57388 else
57389   echo "$as_me: failed program was:" >&5
57390 sed 's/^/| /' conftest.$ac_ext >&5
57391
57392         eval "$as_ac_var=no"
57393 fi
57394
57395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57396       conftest$ac_exeext conftest.$ac_ext
57397 fi
57398 ac_res=`eval echo '${'$as_ac_var'}'`
57399                { echo "$as_me:$LINENO: result: $ac_res" >&5
57400 echo "${ECHO_T}$ac_res" >&6; }
57401 if test `eval echo '${'$as_ac_var'}'` = yes; then
57402   cat >>confdefs.h <<_ACEOF
57403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57404 _ACEOF
57405  ice_have_fclose=yes
57406 fi
57407 done
57408
57409 if test "${ice_have_fclose}" = yes; then
57410 { echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
57411 echo $ECHO_N "checking for fclose declaration in stdio.h... $ECHO_C" >&6; }
57412 if test "${ice_cv_have_fclose_decl+set}" = set; then
57413   echo $ECHO_N "(cached) $ECHO_C" >&6
57414 else
57415
57416 ice_cv_have_fclose_decl=no
57417 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57418 ice_re_word='(^|[^a-zA-Z0-9_])'
57419 for header in stdio.h; do
57420 # Check for ordinary declaration
57421 cat >conftest.$ac_ext <<_ACEOF
57422 /* confdefs.h.  */
57423 _ACEOF
57424 cat confdefs.h >>conftest.$ac_ext
57425 cat >>conftest.$ac_ext <<_ACEOF
57426 /* end confdefs.h.  */
57427 #include <$header>
57428
57429 _ACEOF
57430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57431   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then
57432   ice_cv_have_fclose_decl=yes
57433 fi
57434 rm -f conftest*
57435
57436 if test "$ice_cv_have_fclose_decl" = yes; then
57437         break
57438 fi
57439 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57440 cat >conftest.$ac_ext <<_ACEOF
57441 /* confdefs.h.  */
57442 _ACEOF
57443 cat confdefs.h >>conftest.$ac_ext
57444 cat >>conftest.$ac_ext <<_ACEOF
57445 /* end confdefs.h.  */
57446 #include <$header>
57447
57448 _ACEOF
57449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57450   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57451   ice_cv_have_fclose_decl=yes
57452 fi
57453 rm -f conftest*
57454
57455 if test "$ice_cv_have_fclose_decl" = yes; then
57456         break
57457 fi
57458 done
57459
57460 fi
57461
57462 { echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
57463 echo "${ECHO_T}$ice_cv_have_fclose_decl" >&6; }
57464 if test "$ice_cv_have_fclose_decl" = yes; then
57465
57466 cat >>confdefs.h <<_ACEOF
57467 #define HAVE_FCLOSE_DECL 1
57468 _ACEOF
57469
57470 fi
57471 fi
57472
57473
57474 ice_have_fflush=no
57475
57476 for ac_func in fflush
57477 do
57478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57482   echo $ECHO_N "(cached) $ECHO_C" >&6
57483 else
57484   cat >conftest.$ac_ext <<_ACEOF
57485 /* confdefs.h.  */
57486 _ACEOF
57487 cat confdefs.h >>conftest.$ac_ext
57488 cat >>conftest.$ac_ext <<_ACEOF
57489 /* end confdefs.h.  */
57490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57491    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57492 #define $ac_func innocuous_$ac_func
57493
57494 /* System header to define __stub macros and hopefully few prototypes,
57495     which can conflict with char $ac_func (); below.
57496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57497     <limits.h> exists even on freestanding compilers.  */
57498
57499 #ifdef __STDC__
57500 # include <limits.h>
57501 #else
57502 # include <assert.h>
57503 #endif
57504
57505 #undef $ac_func
57506
57507 /* Override any GCC internal prototype to avoid an error.
57508    Use char because int might match the return type of a GCC
57509    builtin and then its argument prototype would still apply.  */
57510 #ifdef __cplusplus
57511 extern "C"
57512 #endif
57513 char $ac_func ();
57514 /* The GNU C library defines this for functions which it implements
57515     to always fail with ENOSYS.  Some functions are actually named
57516     something starting with __ and the normal name is an alias.  */
57517 #if defined __stub_$ac_func || defined __stub___$ac_func
57518 choke me
57519 #endif
57520
57521 int
57522 main ()
57523 {
57524 return $ac_func ();
57525   ;
57526   return 0;
57527 }
57528 _ACEOF
57529 rm -f conftest.$ac_objext conftest$ac_exeext
57530 if { (ac_try="$ac_link"
57531 case "(($ac_try" in
57532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57533   *) ac_try_echo=$ac_try;;
57534 esac
57535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57536   (eval "$ac_link") 2>conftest.er1
57537   ac_status=$?
57538   grep -v '^ *+' conftest.er1 >conftest.err
57539   rm -f conftest.er1
57540   cat conftest.err >&5
57541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57542   (exit $ac_status); } && {
57543          test -z "$ac_c_werror_flag" ||
57544          test ! -s conftest.err
57545        } && test -s conftest$ac_exeext &&
57546        $as_test_x conftest$ac_exeext; then
57547   eval "$as_ac_var=yes"
57548 else
57549   echo "$as_me: failed program was:" >&5
57550 sed 's/^/| /' conftest.$ac_ext >&5
57551
57552         eval "$as_ac_var=no"
57553 fi
57554
57555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57556       conftest$ac_exeext conftest.$ac_ext
57557 fi
57558 ac_res=`eval echo '${'$as_ac_var'}'`
57559                { echo "$as_me:$LINENO: result: $ac_res" >&5
57560 echo "${ECHO_T}$ac_res" >&6; }
57561 if test `eval echo '${'$as_ac_var'}'` = yes; then
57562   cat >>confdefs.h <<_ACEOF
57563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57564 _ACEOF
57565  ice_have_fflush=yes
57566 fi
57567 done
57568
57569 if test "${ice_have_fflush}" = yes; then
57570 { echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
57571 echo $ECHO_N "checking for fflush declaration in stdio.h... $ECHO_C" >&6; }
57572 if test "${ice_cv_have_fflush_decl+set}" = set; then
57573   echo $ECHO_N "(cached) $ECHO_C" >&6
57574 else
57575
57576 ice_cv_have_fflush_decl=no
57577 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57578 ice_re_word='(^|[^a-zA-Z0-9_])'
57579 for header in stdio.h; do
57580 # Check for ordinary declaration
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}fflush[         ]*\(" >/dev/null 2>&1; then
57592   ice_cv_have_fflush_decl=yes
57593 fi
57594 rm -f conftest*
57595
57596 if test "$ice_cv_have_fflush_decl" = yes; then
57597         break
57598 fi
57599 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57600 cat >conftest.$ac_ext <<_ACEOF
57601 /* confdefs.h.  */
57602 _ACEOF
57603 cat confdefs.h >>conftest.$ac_ext
57604 cat >>conftest.$ac_ext <<_ACEOF
57605 /* end confdefs.h.  */
57606 #include <$header>
57607
57608 _ACEOF
57609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57610   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57611   ice_cv_have_fflush_decl=yes
57612 fi
57613 rm -f conftest*
57614
57615 if test "$ice_cv_have_fflush_decl" = yes; then
57616         break
57617 fi
57618 done
57619
57620 fi
57621
57622 { echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
57623 echo "${ECHO_T}$ice_cv_have_fflush_decl" >&6; }
57624 if test "$ice_cv_have_fflush_decl" = yes; then
57625
57626 cat >>confdefs.h <<_ACEOF
57627 #define HAVE_FFLUSH_DECL 1
57628 _ACEOF
57629
57630 fi
57631 fi
57632
57633
57634 ice_have_fprintf=no
57635
57636 for ac_func in fprintf
57637 do
57638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57639 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57641 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57642   echo $ECHO_N "(cached) $ECHO_C" >&6
57643 else
57644   cat >conftest.$ac_ext <<_ACEOF
57645 /* confdefs.h.  */
57646 _ACEOF
57647 cat confdefs.h >>conftest.$ac_ext
57648 cat >>conftest.$ac_ext <<_ACEOF
57649 /* end confdefs.h.  */
57650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57651    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57652 #define $ac_func innocuous_$ac_func
57653
57654 /* System header to define __stub macros and hopefully few prototypes,
57655     which can conflict with char $ac_func (); below.
57656     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57657     <limits.h> exists even on freestanding compilers.  */
57658
57659 #ifdef __STDC__
57660 # include <limits.h>
57661 #else
57662 # include <assert.h>
57663 #endif
57664
57665 #undef $ac_func
57666
57667 /* Override any GCC internal prototype to avoid an error.
57668    Use char because int might match the return type of a GCC
57669    builtin and then its argument prototype would still apply.  */
57670 #ifdef __cplusplus
57671 extern "C"
57672 #endif
57673 char $ac_func ();
57674 /* The GNU C library defines this for functions which it implements
57675     to always fail with ENOSYS.  Some functions are actually named
57676     something starting with __ and the normal name is an alias.  */
57677 #if defined __stub_$ac_func || defined __stub___$ac_func
57678 choke me
57679 #endif
57680
57681 int
57682 main ()
57683 {
57684 return $ac_func ();
57685   ;
57686   return 0;
57687 }
57688 _ACEOF
57689 rm -f conftest.$ac_objext conftest$ac_exeext
57690 if { (ac_try="$ac_link"
57691 case "(($ac_try" in
57692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57693   *) ac_try_echo=$ac_try;;
57694 esac
57695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57696   (eval "$ac_link") 2>conftest.er1
57697   ac_status=$?
57698   grep -v '^ *+' conftest.er1 >conftest.err
57699   rm -f conftest.er1
57700   cat conftest.err >&5
57701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57702   (exit $ac_status); } && {
57703          test -z "$ac_c_werror_flag" ||
57704          test ! -s conftest.err
57705        } && test -s conftest$ac_exeext &&
57706        $as_test_x conftest$ac_exeext; then
57707   eval "$as_ac_var=yes"
57708 else
57709   echo "$as_me: failed program was:" >&5
57710 sed 's/^/| /' conftest.$ac_ext >&5
57711
57712         eval "$as_ac_var=no"
57713 fi
57714
57715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57716       conftest$ac_exeext conftest.$ac_ext
57717 fi
57718 ac_res=`eval echo '${'$as_ac_var'}'`
57719                { echo "$as_me:$LINENO: result: $ac_res" >&5
57720 echo "${ECHO_T}$ac_res" >&6; }
57721 if test `eval echo '${'$as_ac_var'}'` = yes; then
57722   cat >>confdefs.h <<_ACEOF
57723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57724 _ACEOF
57725  ice_have_fprintf=yes
57726 fi
57727 done
57728
57729 if test "${ice_have_fprintf}" = yes; then
57730 { echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
57731 echo $ECHO_N "checking for fprintf declaration in stdio.h... $ECHO_C" >&6; }
57732 if test "${ice_cv_have_fprintf_decl+set}" = set; then
57733   echo $ECHO_N "(cached) $ECHO_C" >&6
57734 else
57735
57736 ice_cv_have_fprintf_decl=no
57737 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57738 ice_re_word='(^|[^a-zA-Z0-9_])'
57739 for header in stdio.h; do
57740 # Check for ordinary declaration
57741 cat >conftest.$ac_ext <<_ACEOF
57742 /* confdefs.h.  */
57743 _ACEOF
57744 cat confdefs.h >>conftest.$ac_ext
57745 cat >>conftest.$ac_ext <<_ACEOF
57746 /* end confdefs.h.  */
57747 #include <$header>
57748
57749 _ACEOF
57750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57751   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then
57752   ice_cv_have_fprintf_decl=yes
57753 fi
57754 rm -f conftest*
57755
57756 if test "$ice_cv_have_fprintf_decl" = yes; then
57757         break
57758 fi
57759 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57760 cat >conftest.$ac_ext <<_ACEOF
57761 /* confdefs.h.  */
57762 _ACEOF
57763 cat confdefs.h >>conftest.$ac_ext
57764 cat >>conftest.$ac_ext <<_ACEOF
57765 /* end confdefs.h.  */
57766 #include <$header>
57767
57768 _ACEOF
57769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57770   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57771   ice_cv_have_fprintf_decl=yes
57772 fi
57773 rm -f conftest*
57774
57775 if test "$ice_cv_have_fprintf_decl" = yes; then
57776         break
57777 fi
57778 done
57779
57780 fi
57781
57782 { echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
57783 echo "${ECHO_T}$ice_cv_have_fprintf_decl" >&6; }
57784 if test "$ice_cv_have_fprintf_decl" = yes; then
57785
57786 cat >>confdefs.h <<_ACEOF
57787 #define HAVE_FPRINTF_DECL 1
57788 _ACEOF
57789
57790 fi
57791 fi
57792
57793
57794 ice_have_fputc=no
57795
57796 for ac_func in fputc
57797 do
57798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57802   echo $ECHO_N "(cached) $ECHO_C" >&6
57803 else
57804   cat >conftest.$ac_ext <<_ACEOF
57805 /* confdefs.h.  */
57806 _ACEOF
57807 cat confdefs.h >>conftest.$ac_ext
57808 cat >>conftest.$ac_ext <<_ACEOF
57809 /* end confdefs.h.  */
57810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57812 #define $ac_func innocuous_$ac_func
57813
57814 /* System header to define __stub macros and hopefully few prototypes,
57815     which can conflict with char $ac_func (); below.
57816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57817     <limits.h> exists even on freestanding compilers.  */
57818
57819 #ifdef __STDC__
57820 # include <limits.h>
57821 #else
57822 # include <assert.h>
57823 #endif
57824
57825 #undef $ac_func
57826
57827 /* Override any GCC internal prototype to avoid an error.
57828    Use char because int might match the return type of a GCC
57829    builtin and then its argument prototype would still apply.  */
57830 #ifdef __cplusplus
57831 extern "C"
57832 #endif
57833 char $ac_func ();
57834 /* The GNU C library defines this for functions which it implements
57835     to always fail with ENOSYS.  Some functions are actually named
57836     something starting with __ and the normal name is an alias.  */
57837 #if defined __stub_$ac_func || defined __stub___$ac_func
57838 choke me
57839 #endif
57840
57841 int
57842 main ()
57843 {
57844 return $ac_func ();
57845   ;
57846   return 0;
57847 }
57848 _ACEOF
57849 rm -f conftest.$ac_objext conftest$ac_exeext
57850 if { (ac_try="$ac_link"
57851 case "(($ac_try" in
57852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57853   *) ac_try_echo=$ac_try;;
57854 esac
57855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57856   (eval "$ac_link") 2>conftest.er1
57857   ac_status=$?
57858   grep -v '^ *+' conftest.er1 >conftest.err
57859   rm -f conftest.er1
57860   cat conftest.err >&5
57861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57862   (exit $ac_status); } && {
57863          test -z "$ac_c_werror_flag" ||
57864          test ! -s conftest.err
57865        } && test -s conftest$ac_exeext &&
57866        $as_test_x conftest$ac_exeext; then
57867   eval "$as_ac_var=yes"
57868 else
57869   echo "$as_me: failed program was:" >&5
57870 sed 's/^/| /' conftest.$ac_ext >&5
57871
57872         eval "$as_ac_var=no"
57873 fi
57874
57875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57876       conftest$ac_exeext conftest.$ac_ext
57877 fi
57878 ac_res=`eval echo '${'$as_ac_var'}'`
57879                { echo "$as_me:$LINENO: result: $ac_res" >&5
57880 echo "${ECHO_T}$ac_res" >&6; }
57881 if test `eval echo '${'$as_ac_var'}'` = yes; then
57882   cat >>confdefs.h <<_ACEOF
57883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57884 _ACEOF
57885  ice_have_fputc=yes
57886 fi
57887 done
57888
57889 if test "${ice_have_fputc}" = yes; then
57890 { echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
57891 echo $ECHO_N "checking for fputc declaration in stdio.h... $ECHO_C" >&6; }
57892 if test "${ice_cv_have_fputc_decl+set}" = set; then
57893   echo $ECHO_N "(cached) $ECHO_C" >&6
57894 else
57895
57896 ice_cv_have_fputc_decl=no
57897 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57898 ice_re_word='(^|[^a-zA-Z0-9_])'
57899 for header in stdio.h; do
57900 # Check for ordinary declaration
57901 cat >conftest.$ac_ext <<_ACEOF
57902 /* confdefs.h.  */
57903 _ACEOF
57904 cat confdefs.h >>conftest.$ac_ext
57905 cat >>conftest.$ac_ext <<_ACEOF
57906 /* end confdefs.h.  */
57907 #include <$header>
57908
57909 _ACEOF
57910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57911   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then
57912   ice_cv_have_fputc_decl=yes
57913 fi
57914 rm -f conftest*
57915
57916 if test "$ice_cv_have_fputc_decl" = yes; then
57917         break
57918 fi
57919 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57920 cat >conftest.$ac_ext <<_ACEOF
57921 /* confdefs.h.  */
57922 _ACEOF
57923 cat confdefs.h >>conftest.$ac_ext
57924 cat >>conftest.$ac_ext <<_ACEOF
57925 /* end confdefs.h.  */
57926 #include <$header>
57927
57928 _ACEOF
57929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57930   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57931   ice_cv_have_fputc_decl=yes
57932 fi
57933 rm -f conftest*
57934
57935 if test "$ice_cv_have_fputc_decl" = yes; then
57936         break
57937 fi
57938 done
57939
57940 fi
57941
57942 { echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
57943 echo "${ECHO_T}$ice_cv_have_fputc_decl" >&6; }
57944 if test "$ice_cv_have_fputc_decl" = yes; then
57945
57946 cat >>confdefs.h <<_ACEOF
57947 #define HAVE_FPUTC_DECL 1
57948 _ACEOF
57949
57950 fi
57951 fi
57952
57953
57954 ice_have_fputs=no
57955
57956 for ac_func in fputs
57957 do
57958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57962   echo $ECHO_N "(cached) $ECHO_C" >&6
57963 else
57964   cat >conftest.$ac_ext <<_ACEOF
57965 /* confdefs.h.  */
57966 _ACEOF
57967 cat confdefs.h >>conftest.$ac_ext
57968 cat >>conftest.$ac_ext <<_ACEOF
57969 /* end confdefs.h.  */
57970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57972 #define $ac_func innocuous_$ac_func
57973
57974 /* System header to define __stub macros and hopefully few prototypes,
57975     which can conflict with char $ac_func (); below.
57976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57977     <limits.h> exists even on freestanding compilers.  */
57978
57979 #ifdef __STDC__
57980 # include <limits.h>
57981 #else
57982 # include <assert.h>
57983 #endif
57984
57985 #undef $ac_func
57986
57987 /* Override any GCC internal prototype to avoid an error.
57988    Use char because int might match the return type of a GCC
57989    builtin and then its argument prototype would still apply.  */
57990 #ifdef __cplusplus
57991 extern "C"
57992 #endif
57993 char $ac_func ();
57994 /* The GNU C library defines this for functions which it implements
57995     to always fail with ENOSYS.  Some functions are actually named
57996     something starting with __ and the normal name is an alias.  */
57997 #if defined __stub_$ac_func || defined __stub___$ac_func
57998 choke me
57999 #endif
58000
58001 int
58002 main ()
58003 {
58004 return $ac_func ();
58005   ;
58006   return 0;
58007 }
58008 _ACEOF
58009 rm -f conftest.$ac_objext conftest$ac_exeext
58010 if { (ac_try="$ac_link"
58011 case "(($ac_try" in
58012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58013   *) ac_try_echo=$ac_try;;
58014 esac
58015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58016   (eval "$ac_link") 2>conftest.er1
58017   ac_status=$?
58018   grep -v '^ *+' conftest.er1 >conftest.err
58019   rm -f conftest.er1
58020   cat conftest.err >&5
58021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58022   (exit $ac_status); } && {
58023          test -z "$ac_c_werror_flag" ||
58024          test ! -s conftest.err
58025        } && test -s conftest$ac_exeext &&
58026        $as_test_x conftest$ac_exeext; then
58027   eval "$as_ac_var=yes"
58028 else
58029   echo "$as_me: failed program was:" >&5
58030 sed 's/^/| /' conftest.$ac_ext >&5
58031
58032         eval "$as_ac_var=no"
58033 fi
58034
58035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58036       conftest$ac_exeext conftest.$ac_ext
58037 fi
58038 ac_res=`eval echo '${'$as_ac_var'}'`
58039                { echo "$as_me:$LINENO: result: $ac_res" >&5
58040 echo "${ECHO_T}$ac_res" >&6; }
58041 if test `eval echo '${'$as_ac_var'}'` = yes; then
58042   cat >>confdefs.h <<_ACEOF
58043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58044 _ACEOF
58045  ice_have_fputs=yes
58046 fi
58047 done
58048
58049 if test "${ice_have_fputs}" = yes; then
58050 { echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
58051 echo $ECHO_N "checking for fputs declaration in stdio.h... $ECHO_C" >&6; }
58052 if test "${ice_cv_have_fputs_decl+set}" = set; then
58053   echo $ECHO_N "(cached) $ECHO_C" >&6
58054 else
58055
58056 ice_cv_have_fputs_decl=no
58057 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58058 ice_re_word='(^|[^a-zA-Z0-9_])'
58059 for header in stdio.h; do
58060 # Check for ordinary declaration
58061 cat >conftest.$ac_ext <<_ACEOF
58062 /* confdefs.h.  */
58063 _ACEOF
58064 cat confdefs.h >>conftest.$ac_ext
58065 cat >>conftest.$ac_ext <<_ACEOF
58066 /* end confdefs.h.  */
58067 #include <$header>
58068
58069 _ACEOF
58070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58071   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then
58072   ice_cv_have_fputs_decl=yes
58073 fi
58074 rm -f conftest*
58075
58076 if test "$ice_cv_have_fputs_decl" = yes; then
58077         break
58078 fi
58079 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58080 cat >conftest.$ac_ext <<_ACEOF
58081 /* confdefs.h.  */
58082 _ACEOF
58083 cat confdefs.h >>conftest.$ac_ext
58084 cat >>conftest.$ac_ext <<_ACEOF
58085 /* end confdefs.h.  */
58086 #include <$header>
58087
58088 _ACEOF
58089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58090   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58091   ice_cv_have_fputs_decl=yes
58092 fi
58093 rm -f conftest*
58094
58095 if test "$ice_cv_have_fputs_decl" = yes; then
58096         break
58097 fi
58098 done
58099
58100 fi
58101
58102 { echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
58103 echo "${ECHO_T}$ice_cv_have_fputs_decl" >&6; }
58104 if test "$ice_cv_have_fputs_decl" = yes; then
58105
58106 cat >>confdefs.h <<_ACEOF
58107 #define HAVE_FPUTS_DECL 1
58108 _ACEOF
58109
58110 fi
58111 fi
58112
58113
58114 ice_have_fread=no
58115
58116 for ac_func in fread
58117 do
58118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58119 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58121 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58122   echo $ECHO_N "(cached) $ECHO_C" >&6
58123 else
58124   cat >conftest.$ac_ext <<_ACEOF
58125 /* confdefs.h.  */
58126 _ACEOF
58127 cat confdefs.h >>conftest.$ac_ext
58128 cat >>conftest.$ac_ext <<_ACEOF
58129 /* end confdefs.h.  */
58130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58131    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58132 #define $ac_func innocuous_$ac_func
58133
58134 /* System header to define __stub macros and hopefully few prototypes,
58135     which can conflict with char $ac_func (); below.
58136     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58137     <limits.h> exists even on freestanding compilers.  */
58138
58139 #ifdef __STDC__
58140 # include <limits.h>
58141 #else
58142 # include <assert.h>
58143 #endif
58144
58145 #undef $ac_func
58146
58147 /* Override any GCC internal prototype to avoid an error.
58148    Use char because int might match the return type of a GCC
58149    builtin and then its argument prototype would still apply.  */
58150 #ifdef __cplusplus
58151 extern "C"
58152 #endif
58153 char $ac_func ();
58154 /* The GNU C library defines this for functions which it implements
58155     to always fail with ENOSYS.  Some functions are actually named
58156     something starting with __ and the normal name is an alias.  */
58157 #if defined __stub_$ac_func || defined __stub___$ac_func
58158 choke me
58159 #endif
58160
58161 int
58162 main ()
58163 {
58164 return $ac_func ();
58165   ;
58166   return 0;
58167 }
58168 _ACEOF
58169 rm -f conftest.$ac_objext conftest$ac_exeext
58170 if { (ac_try="$ac_link"
58171 case "(($ac_try" in
58172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58173   *) ac_try_echo=$ac_try;;
58174 esac
58175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58176   (eval "$ac_link") 2>conftest.er1
58177   ac_status=$?
58178   grep -v '^ *+' conftest.er1 >conftest.err
58179   rm -f conftest.er1
58180   cat conftest.err >&5
58181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58182   (exit $ac_status); } && {
58183          test -z "$ac_c_werror_flag" ||
58184          test ! -s conftest.err
58185        } && test -s conftest$ac_exeext &&
58186        $as_test_x conftest$ac_exeext; then
58187   eval "$as_ac_var=yes"
58188 else
58189   echo "$as_me: failed program was:" >&5
58190 sed 's/^/| /' conftest.$ac_ext >&5
58191
58192         eval "$as_ac_var=no"
58193 fi
58194
58195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58196       conftest$ac_exeext conftest.$ac_ext
58197 fi
58198 ac_res=`eval echo '${'$as_ac_var'}'`
58199                { echo "$as_me:$LINENO: result: $ac_res" >&5
58200 echo "${ECHO_T}$ac_res" >&6; }
58201 if test `eval echo '${'$as_ac_var'}'` = yes; then
58202   cat >>confdefs.h <<_ACEOF
58203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58204 _ACEOF
58205  ice_have_fread=yes
58206 fi
58207 done
58208
58209 if test "${ice_have_fread}" = yes; then
58210 { echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
58211 echo $ECHO_N "checking for fread declaration in stdio.h stdlib.h... $ECHO_C" >&6; }
58212 if test "${ice_cv_have_fread_decl+set}" = set; then
58213   echo $ECHO_N "(cached) $ECHO_C" >&6
58214 else
58215
58216 ice_cv_have_fread_decl=no
58217 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58218 ice_re_word='(^|[^a-zA-Z0-9_])'
58219 for header in stdio.h stdlib.h; do
58220 # Check for ordinary declaration
58221 cat >conftest.$ac_ext <<_ACEOF
58222 /* confdefs.h.  */
58223 _ACEOF
58224 cat confdefs.h >>conftest.$ac_ext
58225 cat >>conftest.$ac_ext <<_ACEOF
58226 /* end confdefs.h.  */
58227 #include <$header>
58228
58229 _ACEOF
58230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58231   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then
58232   ice_cv_have_fread_decl=yes
58233 fi
58234 rm -f conftest*
58235
58236 if test "$ice_cv_have_fread_decl" = yes; then
58237         break
58238 fi
58239 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58240 cat >conftest.$ac_ext <<_ACEOF
58241 /* confdefs.h.  */
58242 _ACEOF
58243 cat confdefs.h >>conftest.$ac_ext
58244 cat >>conftest.$ac_ext <<_ACEOF
58245 /* end confdefs.h.  */
58246 #include <$header>
58247
58248 _ACEOF
58249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58250   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58251   ice_cv_have_fread_decl=yes
58252 fi
58253 rm -f conftest*
58254
58255 if test "$ice_cv_have_fread_decl" = yes; then
58256         break
58257 fi
58258 done
58259
58260 fi
58261
58262 { echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
58263 echo "${ECHO_T}$ice_cv_have_fread_decl" >&6; }
58264 if test "$ice_cv_have_fread_decl" = yes; then
58265
58266 cat >>confdefs.h <<_ACEOF
58267 #define HAVE_FREAD_DECL 1
58268 _ACEOF
58269
58270 fi
58271 fi
58272
58273
58274 ice_have_fseek=no
58275
58276 for ac_func in fseek
58277 do
58278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58282   echo $ECHO_N "(cached) $ECHO_C" >&6
58283 else
58284   cat >conftest.$ac_ext <<_ACEOF
58285 /* confdefs.h.  */
58286 _ACEOF
58287 cat confdefs.h >>conftest.$ac_ext
58288 cat >>conftest.$ac_ext <<_ACEOF
58289 /* end confdefs.h.  */
58290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58292 #define $ac_func innocuous_$ac_func
58293
58294 /* System header to define __stub macros and hopefully few prototypes,
58295     which can conflict with char $ac_func (); below.
58296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58297     <limits.h> exists even on freestanding compilers.  */
58298
58299 #ifdef __STDC__
58300 # include <limits.h>
58301 #else
58302 # include <assert.h>
58303 #endif
58304
58305 #undef $ac_func
58306
58307 /* Override any GCC internal prototype to avoid an error.
58308    Use char because int might match the return type of a GCC
58309    builtin and then its argument prototype would still apply.  */
58310 #ifdef __cplusplus
58311 extern "C"
58312 #endif
58313 char $ac_func ();
58314 /* The GNU C library defines this for functions which it implements
58315     to always fail with ENOSYS.  Some functions are actually named
58316     something starting with __ and the normal name is an alias.  */
58317 #if defined __stub_$ac_func || defined __stub___$ac_func
58318 choke me
58319 #endif
58320
58321 int
58322 main ()
58323 {
58324 return $ac_func ();
58325   ;
58326   return 0;
58327 }
58328 _ACEOF
58329 rm -f conftest.$ac_objext conftest$ac_exeext
58330 if { (ac_try="$ac_link"
58331 case "(($ac_try" in
58332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58333   *) ac_try_echo=$ac_try;;
58334 esac
58335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58336   (eval "$ac_link") 2>conftest.er1
58337   ac_status=$?
58338   grep -v '^ *+' conftest.er1 >conftest.err
58339   rm -f conftest.er1
58340   cat conftest.err >&5
58341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58342   (exit $ac_status); } && {
58343          test -z "$ac_c_werror_flag" ||
58344          test ! -s conftest.err
58345        } && test -s conftest$ac_exeext &&
58346        $as_test_x conftest$ac_exeext; then
58347   eval "$as_ac_var=yes"
58348 else
58349   echo "$as_me: failed program was:" >&5
58350 sed 's/^/| /' conftest.$ac_ext >&5
58351
58352         eval "$as_ac_var=no"
58353 fi
58354
58355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58356       conftest$ac_exeext conftest.$ac_ext
58357 fi
58358 ac_res=`eval echo '${'$as_ac_var'}'`
58359                { echo "$as_me:$LINENO: result: $ac_res" >&5
58360 echo "${ECHO_T}$ac_res" >&6; }
58361 if test `eval echo '${'$as_ac_var'}'` = yes; then
58362   cat >>confdefs.h <<_ACEOF
58363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58364 _ACEOF
58365  ice_have_fseek=yes
58366 fi
58367 done
58368
58369 if test "${ice_have_fseek}" = yes; then
58370 { echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
58371 echo $ECHO_N "checking for fseek declaration in stdio.h... $ECHO_C" >&6; }
58372 if test "${ice_cv_have_fseek_decl+set}" = set; then
58373   echo $ECHO_N "(cached) $ECHO_C" >&6
58374 else
58375
58376 ice_cv_have_fseek_decl=no
58377 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58378 ice_re_word='(^|[^a-zA-Z0-9_])'
58379 for header in stdio.h; do
58380 # Check for ordinary declaration
58381 cat >conftest.$ac_ext <<_ACEOF
58382 /* confdefs.h.  */
58383 _ACEOF
58384 cat confdefs.h >>conftest.$ac_ext
58385 cat >>conftest.$ac_ext <<_ACEOF
58386 /* end confdefs.h.  */
58387 #include <$header>
58388
58389 _ACEOF
58390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58391   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then
58392   ice_cv_have_fseek_decl=yes
58393 fi
58394 rm -f conftest*
58395
58396 if test "$ice_cv_have_fseek_decl" = yes; then
58397         break
58398 fi
58399 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58400 cat >conftest.$ac_ext <<_ACEOF
58401 /* confdefs.h.  */
58402 _ACEOF
58403 cat confdefs.h >>conftest.$ac_ext
58404 cat >>conftest.$ac_ext <<_ACEOF
58405 /* end confdefs.h.  */
58406 #include <$header>
58407
58408 _ACEOF
58409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58410   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58411   ice_cv_have_fseek_decl=yes
58412 fi
58413 rm -f conftest*
58414
58415 if test "$ice_cv_have_fseek_decl" = yes; then
58416         break
58417 fi
58418 done
58419
58420 fi
58421
58422 { echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
58423 echo "${ECHO_T}$ice_cv_have_fseek_decl" >&6; }
58424 if test "$ice_cv_have_fseek_decl" = yes; then
58425
58426 cat >>confdefs.h <<_ACEOF
58427 #define HAVE_FSEEK_DECL 1
58428 _ACEOF
58429
58430 fi
58431 fi
58432
58433
58434 ice_have_fwrite=no
58435
58436 for ac_func in fwrite
58437 do
58438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58439 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58441 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58442   echo $ECHO_N "(cached) $ECHO_C" >&6
58443 else
58444   cat >conftest.$ac_ext <<_ACEOF
58445 /* confdefs.h.  */
58446 _ACEOF
58447 cat confdefs.h >>conftest.$ac_ext
58448 cat >>conftest.$ac_ext <<_ACEOF
58449 /* end confdefs.h.  */
58450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58452 #define $ac_func innocuous_$ac_func
58453
58454 /* System header to define __stub macros and hopefully few prototypes,
58455     which can conflict with char $ac_func (); below.
58456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58457     <limits.h> exists even on freestanding compilers.  */
58458
58459 #ifdef __STDC__
58460 # include <limits.h>
58461 #else
58462 # include <assert.h>
58463 #endif
58464
58465 #undef $ac_func
58466
58467 /* Override any GCC internal prototype to avoid an error.
58468    Use char because int might match the return type of a GCC
58469    builtin and then its argument prototype would still apply.  */
58470 #ifdef __cplusplus
58471 extern "C"
58472 #endif
58473 char $ac_func ();
58474 /* The GNU C library defines this for functions which it implements
58475     to always fail with ENOSYS.  Some functions are actually named
58476     something starting with __ and the normal name is an alias.  */
58477 #if defined __stub_$ac_func || defined __stub___$ac_func
58478 choke me
58479 #endif
58480
58481 int
58482 main ()
58483 {
58484 return $ac_func ();
58485   ;
58486   return 0;
58487 }
58488 _ACEOF
58489 rm -f conftest.$ac_objext conftest$ac_exeext
58490 if { (ac_try="$ac_link"
58491 case "(($ac_try" in
58492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58493   *) ac_try_echo=$ac_try;;
58494 esac
58495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58496   (eval "$ac_link") 2>conftest.er1
58497   ac_status=$?
58498   grep -v '^ *+' conftest.er1 >conftest.err
58499   rm -f conftest.er1
58500   cat conftest.err >&5
58501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58502   (exit $ac_status); } && {
58503          test -z "$ac_c_werror_flag" ||
58504          test ! -s conftest.err
58505        } && test -s conftest$ac_exeext &&
58506        $as_test_x conftest$ac_exeext; then
58507   eval "$as_ac_var=yes"
58508 else
58509   echo "$as_me: failed program was:" >&5
58510 sed 's/^/| /' conftest.$ac_ext >&5
58511
58512         eval "$as_ac_var=no"
58513 fi
58514
58515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58516       conftest$ac_exeext conftest.$ac_ext
58517 fi
58518 ac_res=`eval echo '${'$as_ac_var'}'`
58519                { echo "$as_me:$LINENO: result: $ac_res" >&5
58520 echo "${ECHO_T}$ac_res" >&6; }
58521 if test `eval echo '${'$as_ac_var'}'` = yes; then
58522   cat >>confdefs.h <<_ACEOF
58523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58524 _ACEOF
58525  ice_have_fwrite=yes
58526 fi
58527 done
58528
58529 if test "${ice_have_fwrite}" = yes; then
58530 { echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
58531 echo $ECHO_N "checking for fwrite declaration in stdio.h stdlib.h... $ECHO_C" >&6; }
58532 if test "${ice_cv_have_fwrite_decl+set}" = set; then
58533   echo $ECHO_N "(cached) $ECHO_C" >&6
58534 else
58535
58536 ice_cv_have_fwrite_decl=no
58537 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58538 ice_re_word='(^|[^a-zA-Z0-9_])'
58539 for header in stdio.h stdlib.h; do
58540 # Check for ordinary declaration
58541 cat >conftest.$ac_ext <<_ACEOF
58542 /* confdefs.h.  */
58543 _ACEOF
58544 cat confdefs.h >>conftest.$ac_ext
58545 cat >>conftest.$ac_ext <<_ACEOF
58546 /* end confdefs.h.  */
58547 #include <$header>
58548
58549 _ACEOF
58550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58551   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then
58552   ice_cv_have_fwrite_decl=yes
58553 fi
58554 rm -f conftest*
58555
58556 if test "$ice_cv_have_fwrite_decl" = yes; then
58557         break
58558 fi
58559 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58560 cat >conftest.$ac_ext <<_ACEOF
58561 /* confdefs.h.  */
58562 _ACEOF
58563 cat confdefs.h >>conftest.$ac_ext
58564 cat >>conftest.$ac_ext <<_ACEOF
58565 /* end confdefs.h.  */
58566 #include <$header>
58567
58568 _ACEOF
58569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58570   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58571   ice_cv_have_fwrite_decl=yes
58572 fi
58573 rm -f conftest*
58574
58575 if test "$ice_cv_have_fwrite_decl" = yes; then
58576         break
58577 fi
58578 done
58579
58580 fi
58581
58582 { echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
58583 echo "${ECHO_T}$ice_cv_have_fwrite_decl" >&6; }
58584 if test "$ice_cv_have_fwrite_decl" = yes; then
58585
58586 cat >>confdefs.h <<_ACEOF
58587 #define HAVE_FWRITE_DECL 1
58588 _ACEOF
58589
58590 fi
58591 fi
58592
58593
58594 for ac_func in getgrgid_r
58595 do
58596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58597 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58599 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58600   echo $ECHO_N "(cached) $ECHO_C" >&6
58601 else
58602   cat >conftest.$ac_ext <<_ACEOF
58603 /* confdefs.h.  */
58604 _ACEOF
58605 cat confdefs.h >>conftest.$ac_ext
58606 cat >>conftest.$ac_ext <<_ACEOF
58607 /* end confdefs.h.  */
58608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58610 #define $ac_func innocuous_$ac_func
58611
58612 /* System header to define __stub macros and hopefully few prototypes,
58613     which can conflict with char $ac_func (); below.
58614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58615     <limits.h> exists even on freestanding compilers.  */
58616
58617 #ifdef __STDC__
58618 # include <limits.h>
58619 #else
58620 # include <assert.h>
58621 #endif
58622
58623 #undef $ac_func
58624
58625 /* Override any GCC internal prototype to avoid an error.
58626    Use char because int might match the return type of a GCC
58627    builtin and then its argument prototype would still apply.  */
58628 #ifdef __cplusplus
58629 extern "C"
58630 #endif
58631 char $ac_func ();
58632 /* The GNU C library defines this for functions which it implements
58633     to always fail with ENOSYS.  Some functions are actually named
58634     something starting with __ and the normal name is an alias.  */
58635 #if defined __stub_$ac_func || defined __stub___$ac_func
58636 choke me
58637 #endif
58638
58639 int
58640 main ()
58641 {
58642 return $ac_func ();
58643   ;
58644   return 0;
58645 }
58646 _ACEOF
58647 rm -f conftest.$ac_objext conftest$ac_exeext
58648 if { (ac_try="$ac_link"
58649 case "(($ac_try" in
58650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58651   *) ac_try_echo=$ac_try;;
58652 esac
58653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58654   (eval "$ac_link") 2>conftest.er1
58655   ac_status=$?
58656   grep -v '^ *+' conftest.er1 >conftest.err
58657   rm -f conftest.er1
58658   cat conftest.err >&5
58659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58660   (exit $ac_status); } && {
58661          test -z "$ac_c_werror_flag" ||
58662          test ! -s conftest.err
58663        } && test -s conftest$ac_exeext &&
58664        $as_test_x conftest$ac_exeext; then
58665   eval "$as_ac_var=yes"
58666 else
58667   echo "$as_me: failed program was:" >&5
58668 sed 's/^/| /' conftest.$ac_ext >&5
58669
58670         eval "$as_ac_var=no"
58671 fi
58672
58673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58674       conftest$ac_exeext conftest.$ac_ext
58675 fi
58676 ac_res=`eval echo '${'$as_ac_var'}'`
58677                { echo "$as_me:$LINENO: result: $ac_res" >&5
58678 echo "${ECHO_T}$ac_res" >&6; }
58679 if test `eval echo '${'$as_ac_var'}'` = yes; then
58680   cat >>confdefs.h <<_ACEOF
58681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58682 _ACEOF
58683
58684 fi
58685 done
58686
58687
58688 for ac_func in getpwuid_r
58689 do
58690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58694   echo $ECHO_N "(cached) $ECHO_C" >&6
58695 else
58696   cat >conftest.$ac_ext <<_ACEOF
58697 /* confdefs.h.  */
58698 _ACEOF
58699 cat confdefs.h >>conftest.$ac_ext
58700 cat >>conftest.$ac_ext <<_ACEOF
58701 /* end confdefs.h.  */
58702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58704 #define $ac_func innocuous_$ac_func
58705
58706 /* System header to define __stub macros and hopefully few prototypes,
58707     which can conflict with char $ac_func (); below.
58708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58709     <limits.h> exists even on freestanding compilers.  */
58710
58711 #ifdef __STDC__
58712 # include <limits.h>
58713 #else
58714 # include <assert.h>
58715 #endif
58716
58717 #undef $ac_func
58718
58719 /* Override any GCC internal prototype to avoid an error.
58720    Use char because int might match the return type of a GCC
58721    builtin and then its argument prototype would still apply.  */
58722 #ifdef __cplusplus
58723 extern "C"
58724 #endif
58725 char $ac_func ();
58726 /* The GNU C library defines this for functions which it implements
58727     to always fail with ENOSYS.  Some functions are actually named
58728     something starting with __ and the normal name is an alias.  */
58729 #if defined __stub_$ac_func || defined __stub___$ac_func
58730 choke me
58731 #endif
58732
58733 int
58734 main ()
58735 {
58736 return $ac_func ();
58737   ;
58738   return 0;
58739 }
58740 _ACEOF
58741 rm -f conftest.$ac_objext conftest$ac_exeext
58742 if { (ac_try="$ac_link"
58743 case "(($ac_try" in
58744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58745   *) ac_try_echo=$ac_try;;
58746 esac
58747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58748   (eval "$ac_link") 2>conftest.er1
58749   ac_status=$?
58750   grep -v '^ *+' conftest.er1 >conftest.err
58751   rm -f conftest.er1
58752   cat conftest.err >&5
58753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58754   (exit $ac_status); } && {
58755          test -z "$ac_c_werror_flag" ||
58756          test ! -s conftest.err
58757        } && test -s conftest$ac_exeext &&
58758        $as_test_x conftest$ac_exeext; then
58759   eval "$as_ac_var=yes"
58760 else
58761   echo "$as_me: failed program was:" >&5
58762 sed 's/^/| /' conftest.$ac_ext >&5
58763
58764         eval "$as_ac_var=no"
58765 fi
58766
58767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58768       conftest$ac_exeext conftest.$ac_ext
58769 fi
58770 ac_res=`eval echo '${'$as_ac_var'}'`
58771                { echo "$as_me:$LINENO: result: $ac_res" >&5
58772 echo "${ECHO_T}$ac_res" >&6; }
58773 if test `eval echo '${'$as_ac_var'}'` = yes; then
58774   cat >>confdefs.h <<_ACEOF
58775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58776 _ACEOF
58777
58778 fi
58779 done
58780
58781
58782 ice_have_gethostname=no
58783
58784 for ac_func in gethostname
58785 do
58786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58787 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58789 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58790   echo $ECHO_N "(cached) $ECHO_C" >&6
58791 else
58792   cat >conftest.$ac_ext <<_ACEOF
58793 /* confdefs.h.  */
58794 _ACEOF
58795 cat confdefs.h >>conftest.$ac_ext
58796 cat >>conftest.$ac_ext <<_ACEOF
58797 /* end confdefs.h.  */
58798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58800 #define $ac_func innocuous_$ac_func
58801
58802 /* System header to define __stub macros and hopefully few prototypes,
58803     which can conflict with char $ac_func (); below.
58804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58805     <limits.h> exists even on freestanding compilers.  */
58806
58807 #ifdef __STDC__
58808 # include <limits.h>
58809 #else
58810 # include <assert.h>
58811 #endif
58812
58813 #undef $ac_func
58814
58815 /* Override any GCC internal prototype to avoid an error.
58816    Use char because int might match the return type of a GCC
58817    builtin and then its argument prototype would still apply.  */
58818 #ifdef __cplusplus
58819 extern "C"
58820 #endif
58821 char $ac_func ();
58822 /* The GNU C library defines this for functions which it implements
58823     to always fail with ENOSYS.  Some functions are actually named
58824     something starting with __ and the normal name is an alias.  */
58825 #if defined __stub_$ac_func || defined __stub___$ac_func
58826 choke me
58827 #endif
58828
58829 int
58830 main ()
58831 {
58832 return $ac_func ();
58833   ;
58834   return 0;
58835 }
58836 _ACEOF
58837 rm -f conftest.$ac_objext conftest$ac_exeext
58838 if { (ac_try="$ac_link"
58839 case "(($ac_try" in
58840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58841   *) ac_try_echo=$ac_try;;
58842 esac
58843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58844   (eval "$ac_link") 2>conftest.er1
58845   ac_status=$?
58846   grep -v '^ *+' conftest.er1 >conftest.err
58847   rm -f conftest.er1
58848   cat conftest.err >&5
58849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58850   (exit $ac_status); } && {
58851          test -z "$ac_c_werror_flag" ||
58852          test ! -s conftest.err
58853        } && test -s conftest$ac_exeext &&
58854        $as_test_x conftest$ac_exeext; then
58855   eval "$as_ac_var=yes"
58856 else
58857   echo "$as_me: failed program was:" >&5
58858 sed 's/^/| /' conftest.$ac_ext >&5
58859
58860         eval "$as_ac_var=no"
58861 fi
58862
58863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58864       conftest$ac_exeext conftest.$ac_ext
58865 fi
58866 ac_res=`eval echo '${'$as_ac_var'}'`
58867                { echo "$as_me:$LINENO: result: $ac_res" >&5
58868 echo "${ECHO_T}$ac_res" >&6; }
58869 if test `eval echo '${'$as_ac_var'}'` = yes; then
58870   cat >>confdefs.h <<_ACEOF
58871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58872 _ACEOF
58873  ice_have_gethostname=yes
58874 fi
58875 done
58876
58877 if test "${ice_have_gethostname}" = yes; then
58878 { echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
58879 echo $ECHO_N "checking for gethostname declaration in unistd.h... $ECHO_C" >&6; }
58880 if test "${ice_cv_have_gethostname_decl+set}" = set; then
58881   echo $ECHO_N "(cached) $ECHO_C" >&6
58882 else
58883
58884 ice_cv_have_gethostname_decl=no
58885 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58886 ice_re_word='(^|[^a-zA-Z0-9_])'
58887 for header in unistd.h; do
58888 # Check for ordinary declaration
58889 cat >conftest.$ac_ext <<_ACEOF
58890 /* confdefs.h.  */
58891 _ACEOF
58892 cat confdefs.h >>conftest.$ac_ext
58893 cat >>conftest.$ac_ext <<_ACEOF
58894 /* end confdefs.h.  */
58895 #include <$header>
58896
58897 _ACEOF
58898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58899   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then
58900   ice_cv_have_gethostname_decl=yes
58901 fi
58902 rm -f conftest*
58903
58904 if test "$ice_cv_have_gethostname_decl" = yes; then
58905         break
58906 fi
58907 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58908 cat >conftest.$ac_ext <<_ACEOF
58909 /* confdefs.h.  */
58910 _ACEOF
58911 cat confdefs.h >>conftest.$ac_ext
58912 cat >>conftest.$ac_ext <<_ACEOF
58913 /* end confdefs.h.  */
58914 #include <$header>
58915
58916 _ACEOF
58917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58918   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58919   ice_cv_have_gethostname_decl=yes
58920 fi
58921 rm -f conftest*
58922
58923 if test "$ice_cv_have_gethostname_decl" = yes; then
58924         break
58925 fi
58926 done
58927
58928 fi
58929
58930 { echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
58931 echo "${ECHO_T}$ice_cv_have_gethostname_decl" >&6; }
58932 if test "$ice_cv_have_gethostname_decl" = yes; then
58933
58934 cat >>confdefs.h <<_ACEOF
58935 #define HAVE_GETHOSTNAME_DECL 1
58936 _ACEOF
58937
58938 fi
58939 fi
58940
58941
58942 ice_have_getopt=no
58943
58944 for ac_func in getopt
58945 do
58946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58950   echo $ECHO_N "(cached) $ECHO_C" >&6
58951 else
58952   cat >conftest.$ac_ext <<_ACEOF
58953 /* confdefs.h.  */
58954 _ACEOF
58955 cat confdefs.h >>conftest.$ac_ext
58956 cat >>conftest.$ac_ext <<_ACEOF
58957 /* end confdefs.h.  */
58958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58960 #define $ac_func innocuous_$ac_func
58961
58962 /* System header to define __stub macros and hopefully few prototypes,
58963     which can conflict with char $ac_func (); below.
58964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58965     <limits.h> exists even on freestanding compilers.  */
58966
58967 #ifdef __STDC__
58968 # include <limits.h>
58969 #else
58970 # include <assert.h>
58971 #endif
58972
58973 #undef $ac_func
58974
58975 /* Override any GCC internal prototype to avoid an error.
58976    Use char because int might match the return type of a GCC
58977    builtin and then its argument prototype would still apply.  */
58978 #ifdef __cplusplus
58979 extern "C"
58980 #endif
58981 char $ac_func ();
58982 /* The GNU C library defines this for functions which it implements
58983     to always fail with ENOSYS.  Some functions are actually named
58984     something starting with __ and the normal name is an alias.  */
58985 #if defined __stub_$ac_func || defined __stub___$ac_func
58986 choke me
58987 #endif
58988
58989 int
58990 main ()
58991 {
58992 return $ac_func ();
58993   ;
58994   return 0;
58995 }
58996 _ACEOF
58997 rm -f conftest.$ac_objext conftest$ac_exeext
58998 if { (ac_try="$ac_link"
58999 case "(($ac_try" in
59000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59001   *) ac_try_echo=$ac_try;;
59002 esac
59003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59004   (eval "$ac_link") 2>conftest.er1
59005   ac_status=$?
59006   grep -v '^ *+' conftest.er1 >conftest.err
59007   rm -f conftest.er1
59008   cat conftest.err >&5
59009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59010   (exit $ac_status); } && {
59011          test -z "$ac_c_werror_flag" ||
59012          test ! -s conftest.err
59013        } && test -s conftest$ac_exeext &&
59014        $as_test_x conftest$ac_exeext; then
59015   eval "$as_ac_var=yes"
59016 else
59017   echo "$as_me: failed program was:" >&5
59018 sed 's/^/| /' conftest.$ac_ext >&5
59019
59020         eval "$as_ac_var=no"
59021 fi
59022
59023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59024       conftest$ac_exeext conftest.$ac_ext
59025 fi
59026 ac_res=`eval echo '${'$as_ac_var'}'`
59027                { echo "$as_me:$LINENO: result: $ac_res" >&5
59028 echo "${ECHO_T}$ac_res" >&6; }
59029 if test `eval echo '${'$as_ac_var'}'` = yes; then
59030   cat >>confdefs.h <<_ACEOF
59031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59032 _ACEOF
59033  ice_have_getopt=yes
59034 fi
59035 done
59036
59037 if test "${ice_have_getopt}" = yes; then
59038 { echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
59039 echo $ECHO_N "checking for getopt declaration in stdlib.h unistd.h libc.h... $ECHO_C" >&6; }
59040 if test "${ice_cv_have_getopt_decl+set}" = set; then
59041   echo $ECHO_N "(cached) $ECHO_C" >&6
59042 else
59043
59044 ice_cv_have_getopt_decl=no
59045 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59046 ice_re_word='(^|[^a-zA-Z0-9_])'
59047 for header in stdlib.h unistd.h libc.h; do
59048 # Check for ordinary declaration
59049 cat >conftest.$ac_ext <<_ACEOF
59050 /* confdefs.h.  */
59051 _ACEOF
59052 cat confdefs.h >>conftest.$ac_ext
59053 cat >>conftest.$ac_ext <<_ACEOF
59054 /* end confdefs.h.  */
59055 #include <$header>
59056
59057 _ACEOF
59058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59059   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then
59060   ice_cv_have_getopt_decl=yes
59061 fi
59062 rm -f conftest*
59063
59064 if test "$ice_cv_have_getopt_decl" = yes; then
59065         break
59066 fi
59067 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59068 cat >conftest.$ac_ext <<_ACEOF
59069 /* confdefs.h.  */
59070 _ACEOF
59071 cat confdefs.h >>conftest.$ac_ext
59072 cat >>conftest.$ac_ext <<_ACEOF
59073 /* end confdefs.h.  */
59074 #include <$header>
59075
59076 _ACEOF
59077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59078   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59079   ice_cv_have_getopt_decl=yes
59080 fi
59081 rm -f conftest*
59082
59083 if test "$ice_cv_have_getopt_decl" = yes; then
59084         break
59085 fi
59086 done
59087
59088 fi
59089
59090 { echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
59091 echo "${ECHO_T}$ice_cv_have_getopt_decl" >&6; }
59092 if test "$ice_cv_have_getopt_decl" = yes; then
59093
59094 cat >>confdefs.h <<_ACEOF
59095 #define HAVE_GETOPT_DECL 1
59096 _ACEOF
59097
59098 fi
59099 fi
59100
59101
59102 ice_have_getpeername=no
59103
59104 for ac_func in getpeername
59105 do
59106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59110   echo $ECHO_N "(cached) $ECHO_C" >&6
59111 else
59112   cat >conftest.$ac_ext <<_ACEOF
59113 /* confdefs.h.  */
59114 _ACEOF
59115 cat confdefs.h >>conftest.$ac_ext
59116 cat >>conftest.$ac_ext <<_ACEOF
59117 /* end confdefs.h.  */
59118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59120 #define $ac_func innocuous_$ac_func
59121
59122 /* System header to define __stub macros and hopefully few prototypes,
59123     which can conflict with char $ac_func (); below.
59124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59125     <limits.h> exists even on freestanding compilers.  */
59126
59127 #ifdef __STDC__
59128 # include <limits.h>
59129 #else
59130 # include <assert.h>
59131 #endif
59132
59133 #undef $ac_func
59134
59135 /* Override any GCC internal prototype to avoid an error.
59136    Use char because int might match the return type of a GCC
59137    builtin and then its argument prototype would still apply.  */
59138 #ifdef __cplusplus
59139 extern "C"
59140 #endif
59141 char $ac_func ();
59142 /* The GNU C library defines this for functions which it implements
59143     to always fail with ENOSYS.  Some functions are actually named
59144     something starting with __ and the normal name is an alias.  */
59145 #if defined __stub_$ac_func || defined __stub___$ac_func
59146 choke me
59147 #endif
59148
59149 int
59150 main ()
59151 {
59152 return $ac_func ();
59153   ;
59154   return 0;
59155 }
59156 _ACEOF
59157 rm -f conftest.$ac_objext conftest$ac_exeext
59158 if { (ac_try="$ac_link"
59159 case "(($ac_try" in
59160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59161   *) ac_try_echo=$ac_try;;
59162 esac
59163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59164   (eval "$ac_link") 2>conftest.er1
59165   ac_status=$?
59166   grep -v '^ *+' conftest.er1 >conftest.err
59167   rm -f conftest.er1
59168   cat conftest.err >&5
59169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59170   (exit $ac_status); } && {
59171          test -z "$ac_c_werror_flag" ||
59172          test ! -s conftest.err
59173        } && test -s conftest$ac_exeext &&
59174        $as_test_x conftest$ac_exeext; then
59175   eval "$as_ac_var=yes"
59176 else
59177   echo "$as_me: failed program was:" >&5
59178 sed 's/^/| /' conftest.$ac_ext >&5
59179
59180         eval "$as_ac_var=no"
59181 fi
59182
59183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59184       conftest$ac_exeext conftest.$ac_ext
59185 fi
59186 ac_res=`eval echo '${'$as_ac_var'}'`
59187                { echo "$as_me:$LINENO: result: $ac_res" >&5
59188 echo "${ECHO_T}$ac_res" >&6; }
59189 if test `eval echo '${'$as_ac_var'}'` = yes; then
59190   cat >>confdefs.h <<_ACEOF
59191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59192 _ACEOF
59193  ice_have_getpeername=yes
59194 fi
59195 done
59196
59197 if test "${ice_have_getpeername}" = yes; then
59198 { echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
59199 echo $ECHO_N "checking for getpeername declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
59200 if test "${ice_cv_have_getpeername_decl+set}" = set; then
59201   echo $ECHO_N "(cached) $ECHO_C" >&6
59202 else
59203
59204 ice_cv_have_getpeername_decl=no
59205 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59206 ice_re_word='(^|[^a-zA-Z0-9_])'
59207 for header in sys/types.h sys/socket.h; do
59208 # Check for ordinary declaration
59209 cat >conftest.$ac_ext <<_ACEOF
59210 /* confdefs.h.  */
59211 _ACEOF
59212 cat confdefs.h >>conftest.$ac_ext
59213 cat >>conftest.$ac_ext <<_ACEOF
59214 /* end confdefs.h.  */
59215 #include <$header>
59216
59217 _ACEOF
59218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59219   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then
59220   ice_cv_have_getpeername_decl=yes
59221 fi
59222 rm -f conftest*
59223
59224 if test "$ice_cv_have_getpeername_decl" = yes; then
59225         break
59226 fi
59227 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59228 cat >conftest.$ac_ext <<_ACEOF
59229 /* confdefs.h.  */
59230 _ACEOF
59231 cat confdefs.h >>conftest.$ac_ext
59232 cat >>conftest.$ac_ext <<_ACEOF
59233 /* end confdefs.h.  */
59234 #include <$header>
59235
59236 _ACEOF
59237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59238   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59239   ice_cv_have_getpeername_decl=yes
59240 fi
59241 rm -f conftest*
59242
59243 if test "$ice_cv_have_getpeername_decl" = yes; then
59244         break
59245 fi
59246 done
59247
59248 fi
59249
59250 { echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
59251 echo "${ECHO_T}$ice_cv_have_getpeername_decl" >&6; }
59252 if test "$ice_cv_have_getpeername_decl" = yes; then
59253
59254 cat >>confdefs.h <<_ACEOF
59255 #define HAVE_GETPEERNAME_DECL 1
59256 _ACEOF
59257
59258 fi
59259 fi
59260
59261 { echo "$as_me:$LINENO: checking for getpgrp" >&5
59262 echo $ECHO_N "checking for getpgrp... $ECHO_C" >&6; }
59263 if test "${ac_cv_func_getpgrp+set}" = set; then
59264   echo $ECHO_N "(cached) $ECHO_C" >&6
59265 else
59266   cat >conftest.$ac_ext <<_ACEOF
59267 /* confdefs.h.  */
59268 _ACEOF
59269 cat confdefs.h >>conftest.$ac_ext
59270 cat >>conftest.$ac_ext <<_ACEOF
59271 /* end confdefs.h.  */
59272 /* Define getpgrp to an innocuous variant, in case <limits.h> declares getpgrp.
59273    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59274 #define getpgrp innocuous_getpgrp
59275
59276 /* System header to define __stub macros and hopefully few prototypes,
59277     which can conflict with char getpgrp (); below.
59278     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59279     <limits.h> exists even on freestanding compilers.  */
59280
59281 #ifdef __STDC__
59282 # include <limits.h>
59283 #else
59284 # include <assert.h>
59285 #endif
59286
59287 #undef getpgrp
59288
59289 /* Override any GCC internal prototype to avoid an error.
59290    Use char because int might match the return type of a GCC
59291    builtin and then its argument prototype would still apply.  */
59292 #ifdef __cplusplus
59293 extern "C"
59294 #endif
59295 char getpgrp ();
59296 /* The GNU C library defines this for functions which it implements
59297     to always fail with ENOSYS.  Some functions are actually named
59298     something starting with __ and the normal name is an alias.  */
59299 #if defined __stub_getpgrp || defined __stub___getpgrp
59300 choke me
59301 #endif
59302
59303 int
59304 main ()
59305 {
59306 return getpgrp ();
59307   ;
59308   return 0;
59309 }
59310 _ACEOF
59311 rm -f conftest.$ac_objext conftest$ac_exeext
59312 if { (ac_try="$ac_link"
59313 case "(($ac_try" in
59314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59315   *) ac_try_echo=$ac_try;;
59316 esac
59317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59318   (eval "$ac_link") 2>conftest.er1
59319   ac_status=$?
59320   grep -v '^ *+' conftest.er1 >conftest.err
59321   rm -f conftest.er1
59322   cat conftest.err >&5
59323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59324   (exit $ac_status); } && {
59325          test -z "$ac_c_werror_flag" ||
59326          test ! -s conftest.err
59327        } && test -s conftest$ac_exeext &&
59328        $as_test_x conftest$ac_exeext; then
59329   ac_cv_func_getpgrp=yes
59330 else
59331   echo "$as_me: failed program was:" >&5
59332 sed 's/^/| /' conftest.$ac_ext >&5
59333
59334         ac_cv_func_getpgrp=no
59335 fi
59336
59337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59338       conftest$ac_exeext conftest.$ac_ext
59339 fi
59340 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp" >&5
59341 echo "${ECHO_T}$ac_cv_func_getpgrp" >&6; }
59342
59343 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
59344 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
59345 if test "${ac_cv_func_getpgrp_void+set}" = set; then
59346   echo $ECHO_N "(cached) $ECHO_C" >&6
59347 else
59348   # Use it with a single arg.
59349 cat >conftest.$ac_ext <<_ACEOF
59350 /* confdefs.h.  */
59351 _ACEOF
59352 cat confdefs.h >>conftest.$ac_ext
59353 cat >>conftest.$ac_ext <<_ACEOF
59354 /* end confdefs.h.  */
59355 $ac_includes_default
59356 int
59357 main ()
59358 {
59359 getpgrp (0);
59360   ;
59361   return 0;
59362 }
59363 _ACEOF
59364 rm -f conftest.$ac_objext
59365 if { (ac_try="$ac_compile"
59366 case "(($ac_try" in
59367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59368   *) ac_try_echo=$ac_try;;
59369 esac
59370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59371   (eval "$ac_compile") 2>conftest.er1
59372   ac_status=$?
59373   grep -v '^ *+' conftest.er1 >conftest.err
59374   rm -f conftest.er1
59375   cat conftest.err >&5
59376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59377   (exit $ac_status); } && {
59378          test -z "$ac_c_werror_flag" ||
59379          test ! -s conftest.err
59380        } && test -s conftest.$ac_objext; then
59381   ac_cv_func_getpgrp_void=no
59382 else
59383   echo "$as_me: failed program was:" >&5
59384 sed 's/^/| /' conftest.$ac_ext >&5
59385
59386         ac_cv_func_getpgrp_void=yes
59387 fi
59388
59389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59390
59391 fi
59392 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
59393 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
59394 if test $ac_cv_func_getpgrp_void = yes; then
59395
59396 cat >>confdefs.h <<\_ACEOF
59397 #define GETPGRP_VOID 1
59398 _ACEOF
59399
59400 fi
59401
59402
59403 ice_have_getsockname=no
59404
59405 for ac_func in getsockname
59406 do
59407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59411   echo $ECHO_N "(cached) $ECHO_C" >&6
59412 else
59413   cat >conftest.$ac_ext <<_ACEOF
59414 /* confdefs.h.  */
59415 _ACEOF
59416 cat confdefs.h >>conftest.$ac_ext
59417 cat >>conftest.$ac_ext <<_ACEOF
59418 /* end confdefs.h.  */
59419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59421 #define $ac_func innocuous_$ac_func
59422
59423 /* System header to define __stub macros and hopefully few prototypes,
59424     which can conflict with char $ac_func (); below.
59425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59426     <limits.h> exists even on freestanding compilers.  */
59427
59428 #ifdef __STDC__
59429 # include <limits.h>
59430 #else
59431 # include <assert.h>
59432 #endif
59433
59434 #undef $ac_func
59435
59436 /* Override any GCC internal prototype to avoid an error.
59437    Use char because int might match the return type of a GCC
59438    builtin and then its argument prototype would still apply.  */
59439 #ifdef __cplusplus
59440 extern "C"
59441 #endif
59442 char $ac_func ();
59443 /* The GNU C library defines this for functions which it implements
59444     to always fail with ENOSYS.  Some functions are actually named
59445     something starting with __ and the normal name is an alias.  */
59446 #if defined __stub_$ac_func || defined __stub___$ac_func
59447 choke me
59448 #endif
59449
59450 int
59451 main ()
59452 {
59453 return $ac_func ();
59454   ;
59455   return 0;
59456 }
59457 _ACEOF
59458 rm -f conftest.$ac_objext conftest$ac_exeext
59459 if { (ac_try="$ac_link"
59460 case "(($ac_try" in
59461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59462   *) ac_try_echo=$ac_try;;
59463 esac
59464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59465   (eval "$ac_link") 2>conftest.er1
59466   ac_status=$?
59467   grep -v '^ *+' conftest.er1 >conftest.err
59468   rm -f conftest.er1
59469   cat conftest.err >&5
59470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59471   (exit $ac_status); } && {
59472          test -z "$ac_c_werror_flag" ||
59473          test ! -s conftest.err
59474        } && test -s conftest$ac_exeext &&
59475        $as_test_x conftest$ac_exeext; then
59476   eval "$as_ac_var=yes"
59477 else
59478   echo "$as_me: failed program was:" >&5
59479 sed 's/^/| /' conftest.$ac_ext >&5
59480
59481         eval "$as_ac_var=no"
59482 fi
59483
59484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59485       conftest$ac_exeext conftest.$ac_ext
59486 fi
59487 ac_res=`eval echo '${'$as_ac_var'}'`
59488                { echo "$as_me:$LINENO: result: $ac_res" >&5
59489 echo "${ECHO_T}$ac_res" >&6; }
59490 if test `eval echo '${'$as_ac_var'}'` = yes; then
59491   cat >>confdefs.h <<_ACEOF
59492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59493 _ACEOF
59494  ice_have_getsockname=yes
59495 fi
59496 done
59497
59498 if test "${ice_have_getsockname}" = yes; then
59499 { echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
59500 echo $ECHO_N "checking for getsockname declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
59501 if test "${ice_cv_have_getsockname_decl+set}" = set; then
59502   echo $ECHO_N "(cached) $ECHO_C" >&6
59503 else
59504
59505 ice_cv_have_getsockname_decl=no
59506 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59507 ice_re_word='(^|[^a-zA-Z0-9_])'
59508 for header in sys/types.h sys/socket.h; do
59509 # Check for ordinary declaration
59510 cat >conftest.$ac_ext <<_ACEOF
59511 /* confdefs.h.  */
59512 _ACEOF
59513 cat confdefs.h >>conftest.$ac_ext
59514 cat >>conftest.$ac_ext <<_ACEOF
59515 /* end confdefs.h.  */
59516 #include <$header>
59517
59518 _ACEOF
59519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59520   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then
59521   ice_cv_have_getsockname_decl=yes
59522 fi
59523 rm -f conftest*
59524
59525 if test "$ice_cv_have_getsockname_decl" = yes; then
59526         break
59527 fi
59528 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59529 cat >conftest.$ac_ext <<_ACEOF
59530 /* confdefs.h.  */
59531 _ACEOF
59532 cat confdefs.h >>conftest.$ac_ext
59533 cat >>conftest.$ac_ext <<_ACEOF
59534 /* end confdefs.h.  */
59535 #include <$header>
59536
59537 _ACEOF
59538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59539   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59540   ice_cv_have_getsockname_decl=yes
59541 fi
59542 rm -f conftest*
59543
59544 if test "$ice_cv_have_getsockname_decl" = yes; then
59545         break
59546 fi
59547 done
59548
59549 fi
59550
59551 { echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
59552 echo "${ECHO_T}$ice_cv_have_getsockname_decl" >&6; }
59553 if test "$ice_cv_have_getsockname_decl" = yes; then
59554
59555 cat >>confdefs.h <<_ACEOF
59556 #define HAVE_GETSOCKNAME_DECL 1
59557 _ACEOF
59558
59559 fi
59560 fi
59561
59562
59563 ice_have_getsockopt=no
59564
59565 for ac_func in getsockopt
59566 do
59567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59571   echo $ECHO_N "(cached) $ECHO_C" >&6
59572 else
59573   cat >conftest.$ac_ext <<_ACEOF
59574 /* confdefs.h.  */
59575 _ACEOF
59576 cat confdefs.h >>conftest.$ac_ext
59577 cat >>conftest.$ac_ext <<_ACEOF
59578 /* end confdefs.h.  */
59579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59581 #define $ac_func innocuous_$ac_func
59582
59583 /* System header to define __stub macros and hopefully few prototypes,
59584     which can conflict with char $ac_func (); below.
59585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59586     <limits.h> exists even on freestanding compilers.  */
59587
59588 #ifdef __STDC__
59589 # include <limits.h>
59590 #else
59591 # include <assert.h>
59592 #endif
59593
59594 #undef $ac_func
59595
59596 /* Override any GCC internal prototype to avoid an error.
59597    Use char because int might match the return type of a GCC
59598    builtin and then its argument prototype would still apply.  */
59599 #ifdef __cplusplus
59600 extern "C"
59601 #endif
59602 char $ac_func ();
59603 /* The GNU C library defines this for functions which it implements
59604     to always fail with ENOSYS.  Some functions are actually named
59605     something starting with __ and the normal name is an alias.  */
59606 #if defined __stub_$ac_func || defined __stub___$ac_func
59607 choke me
59608 #endif
59609
59610 int
59611 main ()
59612 {
59613 return $ac_func ();
59614   ;
59615   return 0;
59616 }
59617 _ACEOF
59618 rm -f conftest.$ac_objext conftest$ac_exeext
59619 if { (ac_try="$ac_link"
59620 case "(($ac_try" in
59621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59622   *) ac_try_echo=$ac_try;;
59623 esac
59624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59625   (eval "$ac_link") 2>conftest.er1
59626   ac_status=$?
59627   grep -v '^ *+' conftest.er1 >conftest.err
59628   rm -f conftest.er1
59629   cat conftest.err >&5
59630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59631   (exit $ac_status); } && {
59632          test -z "$ac_c_werror_flag" ||
59633          test ! -s conftest.err
59634        } && test -s conftest$ac_exeext &&
59635        $as_test_x conftest$ac_exeext; then
59636   eval "$as_ac_var=yes"
59637 else
59638   echo "$as_me: failed program was:" >&5
59639 sed 's/^/| /' conftest.$ac_ext >&5
59640
59641         eval "$as_ac_var=no"
59642 fi
59643
59644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59645       conftest$ac_exeext conftest.$ac_ext
59646 fi
59647 ac_res=`eval echo '${'$as_ac_var'}'`
59648                { echo "$as_me:$LINENO: result: $ac_res" >&5
59649 echo "${ECHO_T}$ac_res" >&6; }
59650 if test `eval echo '${'$as_ac_var'}'` = yes; then
59651   cat >>confdefs.h <<_ACEOF
59652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59653 _ACEOF
59654  ice_have_getsockopt=yes
59655 fi
59656 done
59657
59658 if test "${ice_have_getsockopt}" = yes; then
59659 { echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
59660 echo $ECHO_N "checking for getsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
59661 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
59662   echo $ECHO_N "(cached) $ECHO_C" >&6
59663 else
59664
59665 ice_cv_have_getsockopt_decl=no
59666 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59667 ice_re_word='(^|[^a-zA-Z0-9_])'
59668 for header in sys/types.h sys/socket.h; do
59669 # Check for ordinary declaration
59670 cat >conftest.$ac_ext <<_ACEOF
59671 /* confdefs.h.  */
59672 _ACEOF
59673 cat confdefs.h >>conftest.$ac_ext
59674 cat >>conftest.$ac_ext <<_ACEOF
59675 /* end confdefs.h.  */
59676 #include <$header>
59677
59678 _ACEOF
59679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59680   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then
59681   ice_cv_have_getsockopt_decl=yes
59682 fi
59683 rm -f conftest*
59684
59685 if test "$ice_cv_have_getsockopt_decl" = yes; then
59686         break
59687 fi
59688 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59689 cat >conftest.$ac_ext <<_ACEOF
59690 /* confdefs.h.  */
59691 _ACEOF
59692 cat confdefs.h >>conftest.$ac_ext
59693 cat >>conftest.$ac_ext <<_ACEOF
59694 /* end confdefs.h.  */
59695 #include <$header>
59696
59697 _ACEOF
59698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59699   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59700   ice_cv_have_getsockopt_decl=yes
59701 fi
59702 rm -f conftest*
59703
59704 if test "$ice_cv_have_getsockopt_decl" = yes; then
59705         break
59706 fi
59707 done
59708
59709 fi
59710
59711 { echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
59712 echo "${ECHO_T}$ice_cv_have_getsockopt_decl" >&6; }
59713 if test "$ice_cv_have_getsockopt_decl" = yes; then
59714
59715 cat >>confdefs.h <<_ACEOF
59716 #define HAVE_GETSOCKOPT_DECL 1
59717 _ACEOF
59718
59719 fi
59720 fi
59721
59722
59723 ice_have_initgroups=no
59724
59725 for ac_func in initgroups
59726 do
59727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59731   echo $ECHO_N "(cached) $ECHO_C" >&6
59732 else
59733   cat >conftest.$ac_ext <<_ACEOF
59734 /* confdefs.h.  */
59735 _ACEOF
59736 cat confdefs.h >>conftest.$ac_ext
59737 cat >>conftest.$ac_ext <<_ACEOF
59738 /* end confdefs.h.  */
59739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59741 #define $ac_func innocuous_$ac_func
59742
59743 /* System header to define __stub macros and hopefully few prototypes,
59744     which can conflict with char $ac_func (); below.
59745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59746     <limits.h> exists even on freestanding compilers.  */
59747
59748 #ifdef __STDC__
59749 # include <limits.h>
59750 #else
59751 # include <assert.h>
59752 #endif
59753
59754 #undef $ac_func
59755
59756 /* Override any GCC internal prototype to avoid an error.
59757    Use char because int might match the return type of a GCC
59758    builtin and then its argument prototype would still apply.  */
59759 #ifdef __cplusplus
59760 extern "C"
59761 #endif
59762 char $ac_func ();
59763 /* The GNU C library defines this for functions which it implements
59764     to always fail with ENOSYS.  Some functions are actually named
59765     something starting with __ and the normal name is an alias.  */
59766 #if defined __stub_$ac_func || defined __stub___$ac_func
59767 choke me
59768 #endif
59769
59770 int
59771 main ()
59772 {
59773 return $ac_func ();
59774   ;
59775   return 0;
59776 }
59777 _ACEOF
59778 rm -f conftest.$ac_objext conftest$ac_exeext
59779 if { (ac_try="$ac_link"
59780 case "(($ac_try" in
59781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59782   *) ac_try_echo=$ac_try;;
59783 esac
59784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59785   (eval "$ac_link") 2>conftest.er1
59786   ac_status=$?
59787   grep -v '^ *+' conftest.er1 >conftest.err
59788   rm -f conftest.er1
59789   cat conftest.err >&5
59790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59791   (exit $ac_status); } && {
59792          test -z "$ac_c_werror_flag" ||
59793          test ! -s conftest.err
59794        } && test -s conftest$ac_exeext &&
59795        $as_test_x conftest$ac_exeext; then
59796   eval "$as_ac_var=yes"
59797 else
59798   echo "$as_me: failed program was:" >&5
59799 sed 's/^/| /' conftest.$ac_ext >&5
59800
59801         eval "$as_ac_var=no"
59802 fi
59803
59804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59805       conftest$ac_exeext conftest.$ac_ext
59806 fi
59807 ac_res=`eval echo '${'$as_ac_var'}'`
59808                { echo "$as_me:$LINENO: result: $ac_res" >&5
59809 echo "${ECHO_T}$ac_res" >&6; }
59810 if test `eval echo '${'$as_ac_var'}'` = yes; then
59811   cat >>confdefs.h <<_ACEOF
59812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59813 _ACEOF
59814  ice_have_initgroups=yes
59815 fi
59816 done
59817
59818 if test "${ice_have_initgroups}" = yes; then
59819 { echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
59820 echo $ECHO_N "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... $ECHO_C" >&6; }
59821 if test "${ice_cv_have_initgroups_decl+set}" = set; then
59822   echo $ECHO_N "(cached) $ECHO_C" >&6
59823 else
59824
59825 ice_cv_have_initgroups_decl=no
59826 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59827 ice_re_word='(^|[^a-zA-Z0-9_])'
59828 for header in grp.h sys/types.h unistd.h libc.h; do
59829 # Check for ordinary declaration
59830 cat >conftest.$ac_ext <<_ACEOF
59831 /* confdefs.h.  */
59832 _ACEOF
59833 cat confdefs.h >>conftest.$ac_ext
59834 cat >>conftest.$ac_ext <<_ACEOF
59835 /* end confdefs.h.  */
59836 #include <$header>
59837
59838 _ACEOF
59839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59840   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then
59841   ice_cv_have_initgroups_decl=yes
59842 fi
59843 rm -f conftest*
59844
59845 if test "$ice_cv_have_initgroups_decl" = yes; then
59846         break
59847 fi
59848 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59849 cat >conftest.$ac_ext <<_ACEOF
59850 /* confdefs.h.  */
59851 _ACEOF
59852 cat confdefs.h >>conftest.$ac_ext
59853 cat >>conftest.$ac_ext <<_ACEOF
59854 /* end confdefs.h.  */
59855 #include <$header>
59856
59857 _ACEOF
59858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59859   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59860   ice_cv_have_initgroups_decl=yes
59861 fi
59862 rm -f conftest*
59863
59864 if test "$ice_cv_have_initgroups_decl" = yes; then
59865         break
59866 fi
59867 done
59868
59869 fi
59870
59871 { echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
59872 echo "${ECHO_T}$ice_cv_have_initgroups_decl" >&6; }
59873 if test "$ice_cv_have_initgroups_decl" = yes; then
59874
59875 cat >>confdefs.h <<_ACEOF
59876 #define HAVE_INITGROUPS_DECL 1
59877 _ACEOF
59878
59879 fi
59880 fi
59881
59882
59883 ice_have_ioctl=no
59884
59885 for ac_func in ioctl
59886 do
59887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59891   echo $ECHO_N "(cached) $ECHO_C" >&6
59892 else
59893   cat >conftest.$ac_ext <<_ACEOF
59894 /* confdefs.h.  */
59895 _ACEOF
59896 cat confdefs.h >>conftest.$ac_ext
59897 cat >>conftest.$ac_ext <<_ACEOF
59898 /* end confdefs.h.  */
59899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59901 #define $ac_func innocuous_$ac_func
59902
59903 /* System header to define __stub macros and hopefully few prototypes,
59904     which can conflict with char $ac_func (); below.
59905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59906     <limits.h> exists even on freestanding compilers.  */
59907
59908 #ifdef __STDC__
59909 # include <limits.h>
59910 #else
59911 # include <assert.h>
59912 #endif
59913
59914 #undef $ac_func
59915
59916 /* Override any GCC internal prototype to avoid an error.
59917    Use char because int might match the return type of a GCC
59918    builtin and then its argument prototype would still apply.  */
59919 #ifdef __cplusplus
59920 extern "C"
59921 #endif
59922 char $ac_func ();
59923 /* The GNU C library defines this for functions which it implements
59924     to always fail with ENOSYS.  Some functions are actually named
59925     something starting with __ and the normal name is an alias.  */
59926 #if defined __stub_$ac_func || defined __stub___$ac_func
59927 choke me
59928 #endif
59929
59930 int
59931 main ()
59932 {
59933 return $ac_func ();
59934   ;
59935   return 0;
59936 }
59937 _ACEOF
59938 rm -f conftest.$ac_objext conftest$ac_exeext
59939 if { (ac_try="$ac_link"
59940 case "(($ac_try" in
59941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59942   *) ac_try_echo=$ac_try;;
59943 esac
59944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59945   (eval "$ac_link") 2>conftest.er1
59946   ac_status=$?
59947   grep -v '^ *+' conftest.er1 >conftest.err
59948   rm -f conftest.er1
59949   cat conftest.err >&5
59950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59951   (exit $ac_status); } && {
59952          test -z "$ac_c_werror_flag" ||
59953          test ! -s conftest.err
59954        } && test -s conftest$ac_exeext &&
59955        $as_test_x conftest$ac_exeext; then
59956   eval "$as_ac_var=yes"
59957 else
59958   echo "$as_me: failed program was:" >&5
59959 sed 's/^/| /' conftest.$ac_ext >&5
59960
59961         eval "$as_ac_var=no"
59962 fi
59963
59964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59965       conftest$ac_exeext conftest.$ac_ext
59966 fi
59967 ac_res=`eval echo '${'$as_ac_var'}'`
59968                { echo "$as_me:$LINENO: result: $ac_res" >&5
59969 echo "${ECHO_T}$ac_res" >&6; }
59970 if test `eval echo '${'$as_ac_var'}'` = yes; then
59971   cat >>confdefs.h <<_ACEOF
59972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59973 _ACEOF
59974  ice_have_ioctl=yes
59975 fi
59976 done
59977
59978 if test "${ice_have_ioctl}" = yes; then
59979 { echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
59980 echo $ECHO_N "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... $ECHO_C" >&6; }
59981 if test "${ice_cv_have_ioctl_decl+set}" = set; then
59982   echo $ECHO_N "(cached) $ECHO_C" >&6
59983 else
59984
59985 ice_cv_have_ioctl_decl=no
59986 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59987 ice_re_word='(^|[^a-zA-Z0-9_])'
59988 for header in sys/ioctl.h unistd.h libc.h; do
59989 # Check for ordinary declaration
59990 cat >conftest.$ac_ext <<_ACEOF
59991 /* confdefs.h.  */
59992 _ACEOF
59993 cat confdefs.h >>conftest.$ac_ext
59994 cat >>conftest.$ac_ext <<_ACEOF
59995 /* end confdefs.h.  */
59996 #include <$header>
59997
59998 _ACEOF
59999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60000   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then
60001   ice_cv_have_ioctl_decl=yes
60002 fi
60003 rm -f conftest*
60004
60005 if test "$ice_cv_have_ioctl_decl" = yes; then
60006         break
60007 fi
60008 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60009 cat >conftest.$ac_ext <<_ACEOF
60010 /* confdefs.h.  */
60011 _ACEOF
60012 cat confdefs.h >>conftest.$ac_ext
60013 cat >>conftest.$ac_ext <<_ACEOF
60014 /* end confdefs.h.  */
60015 #include <$header>
60016
60017 _ACEOF
60018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60019   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60020   ice_cv_have_ioctl_decl=yes
60021 fi
60022 rm -f conftest*
60023
60024 if test "$ice_cv_have_ioctl_decl" = yes; then
60025         break
60026 fi
60027 done
60028
60029 fi
60030
60031 { echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
60032 echo "${ECHO_T}$ice_cv_have_ioctl_decl" >&6; }
60033 if test "$ice_cv_have_ioctl_decl" = yes; then
60034
60035 cat >>confdefs.h <<_ACEOF
60036 #define HAVE_IOCTL_DECL 1
60037 _ACEOF
60038
60039 fi
60040 fi
60041
60042
60043 ice_have_isnormal=no
60044
60045 for ac_func in isnormal
60046 do
60047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60051   echo $ECHO_N "(cached) $ECHO_C" >&6
60052 else
60053   cat >conftest.$ac_ext <<_ACEOF
60054 /* confdefs.h.  */
60055 _ACEOF
60056 cat confdefs.h >>conftest.$ac_ext
60057 cat >>conftest.$ac_ext <<_ACEOF
60058 /* end confdefs.h.  */
60059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60061 #define $ac_func innocuous_$ac_func
60062
60063 /* System header to define __stub macros and hopefully few prototypes,
60064     which can conflict with char $ac_func (); below.
60065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60066     <limits.h> exists even on freestanding compilers.  */
60067
60068 #ifdef __STDC__
60069 # include <limits.h>
60070 #else
60071 # include <assert.h>
60072 #endif
60073
60074 #undef $ac_func
60075
60076 /* Override any GCC internal prototype to avoid an error.
60077    Use char because int might match the return type of a GCC
60078    builtin and then its argument prototype would still apply.  */
60079 #ifdef __cplusplus
60080 extern "C"
60081 #endif
60082 char $ac_func ();
60083 /* The GNU C library defines this for functions which it implements
60084     to always fail with ENOSYS.  Some functions are actually named
60085     something starting with __ and the normal name is an alias.  */
60086 #if defined __stub_$ac_func || defined __stub___$ac_func
60087 choke me
60088 #endif
60089
60090 int
60091 main ()
60092 {
60093 return $ac_func ();
60094   ;
60095   return 0;
60096 }
60097 _ACEOF
60098 rm -f conftest.$ac_objext conftest$ac_exeext
60099 if { (ac_try="$ac_link"
60100 case "(($ac_try" in
60101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60102   *) ac_try_echo=$ac_try;;
60103 esac
60104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60105   (eval "$ac_link") 2>conftest.er1
60106   ac_status=$?
60107   grep -v '^ *+' conftest.er1 >conftest.err
60108   rm -f conftest.er1
60109   cat conftest.err >&5
60110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60111   (exit $ac_status); } && {
60112          test -z "$ac_c_werror_flag" ||
60113          test ! -s conftest.err
60114        } && test -s conftest$ac_exeext &&
60115        $as_test_x conftest$ac_exeext; then
60116   eval "$as_ac_var=yes"
60117 else
60118   echo "$as_me: failed program was:" >&5
60119 sed 's/^/| /' conftest.$ac_ext >&5
60120
60121         eval "$as_ac_var=no"
60122 fi
60123
60124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60125       conftest$ac_exeext conftest.$ac_ext
60126 fi
60127 ac_res=`eval echo '${'$as_ac_var'}'`
60128                { echo "$as_me:$LINENO: result: $ac_res" >&5
60129 echo "${ECHO_T}$ac_res" >&6; }
60130 if test `eval echo '${'$as_ac_var'}'` = yes; then
60131   cat >>confdefs.h <<_ACEOF
60132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60133 _ACEOF
60134  ice_have_isnormal=yes
60135 fi
60136 done
60137
60138 if test "${ice_have_isnormal}" = yes; then
60139 { echo "$as_me:$LINENO: checking for isnormal declaration in math.h" >&5
60140 echo $ECHO_N "checking for isnormal declaration in math.h... $ECHO_C" >&6; }
60141 if test "${ice_cv_have_isnormal_decl+set}" = set; then
60142   echo $ECHO_N "(cached) $ECHO_C" >&6
60143 else
60144
60145 ice_cv_have_isnormal_decl=no
60146 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60147 ice_re_word='(^|[^a-zA-Z0-9_])'
60148 for header in math.h; do
60149 # Check for ordinary declaration
60150 cat >conftest.$ac_ext <<_ACEOF
60151 /* confdefs.h.  */
60152 _ACEOF
60153 cat confdefs.h >>conftest.$ac_ext
60154 cat >>conftest.$ac_ext <<_ACEOF
60155 /* end confdefs.h.  */
60156 #include <$header>
60157
60158 _ACEOF
60159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60160   $EGREP "${ice_re_word}isnormal[       ]*\(" >/dev/null 2>&1; then
60161   ice_cv_have_isnormal_decl=yes
60162 fi
60163 rm -f conftest*
60164
60165 if test "$ice_cv_have_isnormal_decl" = yes; then
60166         break
60167 fi
60168 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60169 cat >conftest.$ac_ext <<_ACEOF
60170 /* confdefs.h.  */
60171 _ACEOF
60172 cat confdefs.h >>conftest.$ac_ext
60173 cat >>conftest.$ac_ext <<_ACEOF
60174 /* end confdefs.h.  */
60175 #include <$header>
60176
60177 _ACEOF
60178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60179   $EGREP "${ice_re_word}isnormal[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60180   ice_cv_have_isnormal_decl=yes
60181 fi
60182 rm -f conftest*
60183
60184 if test "$ice_cv_have_isnormal_decl" = yes; then
60185         break
60186 fi
60187 done
60188
60189 fi
60190
60191 { echo "$as_me:$LINENO: result: $ice_cv_have_isnormal_decl" >&5
60192 echo "${ECHO_T}$ice_cv_have_isnormal_decl" >&6; }
60193 if test "$ice_cv_have_isnormal_decl" = yes; then
60194
60195 cat >>confdefs.h <<_ACEOF
60196 #define HAVE_ISNORMAL_DECL 1
60197 _ACEOF
60198
60199 fi
60200 fi
60201
60202
60203 ice_have_listen=no
60204
60205 for ac_func in listen
60206 do
60207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60211   echo $ECHO_N "(cached) $ECHO_C" >&6
60212 else
60213   cat >conftest.$ac_ext <<_ACEOF
60214 /* confdefs.h.  */
60215 _ACEOF
60216 cat confdefs.h >>conftest.$ac_ext
60217 cat >>conftest.$ac_ext <<_ACEOF
60218 /* end confdefs.h.  */
60219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60221 #define $ac_func innocuous_$ac_func
60222
60223 /* System header to define __stub macros and hopefully few prototypes,
60224     which can conflict with char $ac_func (); below.
60225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60226     <limits.h> exists even on freestanding compilers.  */
60227
60228 #ifdef __STDC__
60229 # include <limits.h>
60230 #else
60231 # include <assert.h>
60232 #endif
60233
60234 #undef $ac_func
60235
60236 /* Override any GCC internal prototype to avoid an error.
60237    Use char because int might match the return type of a GCC
60238    builtin and then its argument prototype would still apply.  */
60239 #ifdef __cplusplus
60240 extern "C"
60241 #endif
60242 char $ac_func ();
60243 /* The GNU C library defines this for functions which it implements
60244     to always fail with ENOSYS.  Some functions are actually named
60245     something starting with __ and the normal name is an alias.  */
60246 #if defined __stub_$ac_func || defined __stub___$ac_func
60247 choke me
60248 #endif
60249
60250 int
60251 main ()
60252 {
60253 return $ac_func ();
60254   ;
60255   return 0;
60256 }
60257 _ACEOF
60258 rm -f conftest.$ac_objext conftest$ac_exeext
60259 if { (ac_try="$ac_link"
60260 case "(($ac_try" in
60261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60262   *) ac_try_echo=$ac_try;;
60263 esac
60264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60265   (eval "$ac_link") 2>conftest.er1
60266   ac_status=$?
60267   grep -v '^ *+' conftest.er1 >conftest.err
60268   rm -f conftest.er1
60269   cat conftest.err >&5
60270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60271   (exit $ac_status); } && {
60272          test -z "$ac_c_werror_flag" ||
60273          test ! -s conftest.err
60274        } && test -s conftest$ac_exeext &&
60275        $as_test_x conftest$ac_exeext; then
60276   eval "$as_ac_var=yes"
60277 else
60278   echo "$as_me: failed program was:" >&5
60279 sed 's/^/| /' conftest.$ac_ext >&5
60280
60281         eval "$as_ac_var=no"
60282 fi
60283
60284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60285       conftest$ac_exeext conftest.$ac_ext
60286 fi
60287 ac_res=`eval echo '${'$as_ac_var'}'`
60288                { echo "$as_me:$LINENO: result: $ac_res" >&5
60289 echo "${ECHO_T}$ac_res" >&6; }
60290 if test `eval echo '${'$as_ac_var'}'` = yes; then
60291   cat >>confdefs.h <<_ACEOF
60292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60293 _ACEOF
60294  ice_have_listen=yes
60295 fi
60296 done
60297
60298 if test "${ice_have_listen}" = yes; then
60299 { echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
60300 echo $ECHO_N "checking for listen declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
60301 if test "${ice_cv_have_listen_decl+set}" = set; then
60302   echo $ECHO_N "(cached) $ECHO_C" >&6
60303 else
60304
60305 ice_cv_have_listen_decl=no
60306 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60307 ice_re_word='(^|[^a-zA-Z0-9_])'
60308 for header in sys/types.h sys/socket.h; do
60309 # Check for ordinary declaration
60310 cat >conftest.$ac_ext <<_ACEOF
60311 /* confdefs.h.  */
60312 _ACEOF
60313 cat confdefs.h >>conftest.$ac_ext
60314 cat >>conftest.$ac_ext <<_ACEOF
60315 /* end confdefs.h.  */
60316 #include <$header>
60317
60318 _ACEOF
60319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60320   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then
60321   ice_cv_have_listen_decl=yes
60322 fi
60323 rm -f conftest*
60324
60325 if test "$ice_cv_have_listen_decl" = yes; then
60326         break
60327 fi
60328 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60329 cat >conftest.$ac_ext <<_ACEOF
60330 /* confdefs.h.  */
60331 _ACEOF
60332 cat confdefs.h >>conftest.$ac_ext
60333 cat >>conftest.$ac_ext <<_ACEOF
60334 /* end confdefs.h.  */
60335 #include <$header>
60336
60337 _ACEOF
60338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60339   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60340   ice_cv_have_listen_decl=yes
60341 fi
60342 rm -f conftest*
60343
60344 if test "$ice_cv_have_listen_decl" = yes; then
60345         break
60346 fi
60347 done
60348
60349 fi
60350
60351 { echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
60352 echo "${ECHO_T}$ice_cv_have_listen_decl" >&6; }
60353 if test "$ice_cv_have_listen_decl" = yes; then
60354
60355 cat >>confdefs.h <<_ACEOF
60356 #define HAVE_LISTEN_DECL 1
60357 _ACEOF
60358
60359 fi
60360 fi
60361
60362
60363 ice_have_lstat=no
60364
60365 for ac_func in lstat
60366 do
60367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60371   echo $ECHO_N "(cached) $ECHO_C" >&6
60372 else
60373   cat >conftest.$ac_ext <<_ACEOF
60374 /* confdefs.h.  */
60375 _ACEOF
60376 cat confdefs.h >>conftest.$ac_ext
60377 cat >>conftest.$ac_ext <<_ACEOF
60378 /* end confdefs.h.  */
60379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60381 #define $ac_func innocuous_$ac_func
60382
60383 /* System header to define __stub macros and hopefully few prototypes,
60384     which can conflict with char $ac_func (); below.
60385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60386     <limits.h> exists even on freestanding compilers.  */
60387
60388 #ifdef __STDC__
60389 # include <limits.h>
60390 #else
60391 # include <assert.h>
60392 #endif
60393
60394 #undef $ac_func
60395
60396 /* Override any GCC internal prototype to avoid an error.
60397    Use char because int might match the return type of a GCC
60398    builtin and then its argument prototype would still apply.  */
60399 #ifdef __cplusplus
60400 extern "C"
60401 #endif
60402 char $ac_func ();
60403 /* The GNU C library defines this for functions which it implements
60404     to always fail with ENOSYS.  Some functions are actually named
60405     something starting with __ and the normal name is an alias.  */
60406 #if defined __stub_$ac_func || defined __stub___$ac_func
60407 choke me
60408 #endif
60409
60410 int
60411 main ()
60412 {
60413 return $ac_func ();
60414   ;
60415   return 0;
60416 }
60417 _ACEOF
60418 rm -f conftest.$ac_objext conftest$ac_exeext
60419 if { (ac_try="$ac_link"
60420 case "(($ac_try" in
60421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60422   *) ac_try_echo=$ac_try;;
60423 esac
60424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60425   (eval "$ac_link") 2>conftest.er1
60426   ac_status=$?
60427   grep -v '^ *+' conftest.er1 >conftest.err
60428   rm -f conftest.er1
60429   cat conftest.err >&5
60430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60431   (exit $ac_status); } && {
60432          test -z "$ac_c_werror_flag" ||
60433          test ! -s conftest.err
60434        } && test -s conftest$ac_exeext &&
60435        $as_test_x conftest$ac_exeext; then
60436   eval "$as_ac_var=yes"
60437 else
60438   echo "$as_me: failed program was:" >&5
60439 sed 's/^/| /' conftest.$ac_ext >&5
60440
60441         eval "$as_ac_var=no"
60442 fi
60443
60444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60445       conftest$ac_exeext conftest.$ac_ext
60446 fi
60447 ac_res=`eval echo '${'$as_ac_var'}'`
60448                { echo "$as_me:$LINENO: result: $ac_res" >&5
60449 echo "${ECHO_T}$ac_res" >&6; }
60450 if test `eval echo '${'$as_ac_var'}'` = yes; then
60451   cat >>confdefs.h <<_ACEOF
60452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60453 _ACEOF
60454  ice_have_lstat=yes
60455 fi
60456 done
60457
60458 if test "${ice_have_lstat}" = yes; then
60459 { echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
60460 echo $ECHO_N "checking for lstat declaration in sys/types.h sys/stat.h... $ECHO_C" >&6; }
60461 if test "${ice_cv_have_lstat_decl+set}" = set; then
60462   echo $ECHO_N "(cached) $ECHO_C" >&6
60463 else
60464
60465 ice_cv_have_lstat_decl=no
60466 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60467 ice_re_word='(^|[^a-zA-Z0-9_])'
60468 for header in sys/types.h sys/stat.h; do
60469 # Check for ordinary declaration
60470 cat >conftest.$ac_ext <<_ACEOF
60471 /* confdefs.h.  */
60472 _ACEOF
60473 cat confdefs.h >>conftest.$ac_ext
60474 cat >>conftest.$ac_ext <<_ACEOF
60475 /* end confdefs.h.  */
60476 #include <$header>
60477
60478 _ACEOF
60479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60480   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then
60481   ice_cv_have_lstat_decl=yes
60482 fi
60483 rm -f conftest*
60484
60485 if test "$ice_cv_have_lstat_decl" = yes; then
60486         break
60487 fi
60488 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60489 cat >conftest.$ac_ext <<_ACEOF
60490 /* confdefs.h.  */
60491 _ACEOF
60492 cat confdefs.h >>conftest.$ac_ext
60493 cat >>conftest.$ac_ext <<_ACEOF
60494 /* end confdefs.h.  */
60495 #include <$header>
60496
60497 _ACEOF
60498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60499   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60500   ice_cv_have_lstat_decl=yes
60501 fi
60502 rm -f conftest*
60503
60504 if test "$ice_cv_have_lstat_decl" = yes; then
60505         break
60506 fi
60507 done
60508
60509 fi
60510
60511 { echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
60512 echo "${ECHO_T}$ice_cv_have_lstat_decl" >&6; }
60513 if test "$ice_cv_have_lstat_decl" = yes; then
60514
60515 cat >>confdefs.h <<_ACEOF
60516 #define HAVE_LSTAT_DECL 1
60517 _ACEOF
60518
60519 fi
60520 fi
60521
60522
60523 ice_have_malloc=no
60524
60525 for ac_func in malloc
60526 do
60527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60531   echo $ECHO_N "(cached) $ECHO_C" >&6
60532 else
60533   cat >conftest.$ac_ext <<_ACEOF
60534 /* confdefs.h.  */
60535 _ACEOF
60536 cat confdefs.h >>conftest.$ac_ext
60537 cat >>conftest.$ac_ext <<_ACEOF
60538 /* end confdefs.h.  */
60539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60541 #define $ac_func innocuous_$ac_func
60542
60543 /* System header to define __stub macros and hopefully few prototypes,
60544     which can conflict with char $ac_func (); below.
60545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60546     <limits.h> exists even on freestanding compilers.  */
60547
60548 #ifdef __STDC__
60549 # include <limits.h>
60550 #else
60551 # include <assert.h>
60552 #endif
60553
60554 #undef $ac_func
60555
60556 /* Override any GCC internal prototype to avoid an error.
60557    Use char because int might match the return type of a GCC
60558    builtin and then its argument prototype would still apply.  */
60559 #ifdef __cplusplus
60560 extern "C"
60561 #endif
60562 char $ac_func ();
60563 /* The GNU C library defines this for functions which it implements
60564     to always fail with ENOSYS.  Some functions are actually named
60565     something starting with __ and the normal name is an alias.  */
60566 #if defined __stub_$ac_func || defined __stub___$ac_func
60567 choke me
60568 #endif
60569
60570 int
60571 main ()
60572 {
60573 return $ac_func ();
60574   ;
60575   return 0;
60576 }
60577 _ACEOF
60578 rm -f conftest.$ac_objext conftest$ac_exeext
60579 if { (ac_try="$ac_link"
60580 case "(($ac_try" in
60581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60582   *) ac_try_echo=$ac_try;;
60583 esac
60584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60585   (eval "$ac_link") 2>conftest.er1
60586   ac_status=$?
60587   grep -v '^ *+' conftest.er1 >conftest.err
60588   rm -f conftest.er1
60589   cat conftest.err >&5
60590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60591   (exit $ac_status); } && {
60592          test -z "$ac_c_werror_flag" ||
60593          test ! -s conftest.err
60594        } && test -s conftest$ac_exeext &&
60595        $as_test_x conftest$ac_exeext; then
60596   eval "$as_ac_var=yes"
60597 else
60598   echo "$as_me: failed program was:" >&5
60599 sed 's/^/| /' conftest.$ac_ext >&5
60600
60601         eval "$as_ac_var=no"
60602 fi
60603
60604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60605       conftest$ac_exeext conftest.$ac_ext
60606 fi
60607 ac_res=`eval echo '${'$as_ac_var'}'`
60608                { echo "$as_me:$LINENO: result: $ac_res" >&5
60609 echo "${ECHO_T}$ac_res" >&6; }
60610 if test `eval echo '${'$as_ac_var'}'` = yes; then
60611   cat >>confdefs.h <<_ACEOF
60612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60613 _ACEOF
60614  ice_have_malloc=yes
60615 fi
60616 done
60617
60618 if test "${ice_have_malloc}" = yes; then
60619 { echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
60620 echo $ECHO_N "checking for malloc declaration in stdlib.h... $ECHO_C" >&6; }
60621 if test "${ice_cv_have_malloc_decl+set}" = set; then
60622   echo $ECHO_N "(cached) $ECHO_C" >&6
60623 else
60624
60625 ice_cv_have_malloc_decl=no
60626 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60627 ice_re_word='(^|[^a-zA-Z0-9_])'
60628 for header in stdlib.h; do
60629 # Check for ordinary declaration
60630 cat >conftest.$ac_ext <<_ACEOF
60631 /* confdefs.h.  */
60632 _ACEOF
60633 cat confdefs.h >>conftest.$ac_ext
60634 cat >>conftest.$ac_ext <<_ACEOF
60635 /* end confdefs.h.  */
60636 #include <$header>
60637
60638 _ACEOF
60639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60640   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then
60641   ice_cv_have_malloc_decl=yes
60642 fi
60643 rm -f conftest*
60644
60645 if test "$ice_cv_have_malloc_decl" = yes; then
60646         break
60647 fi
60648 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60649 cat >conftest.$ac_ext <<_ACEOF
60650 /* confdefs.h.  */
60651 _ACEOF
60652 cat confdefs.h >>conftest.$ac_ext
60653 cat >>conftest.$ac_ext <<_ACEOF
60654 /* end confdefs.h.  */
60655 #include <$header>
60656
60657 _ACEOF
60658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60659   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60660   ice_cv_have_malloc_decl=yes
60661 fi
60662 rm -f conftest*
60663
60664 if test "$ice_cv_have_malloc_decl" = yes; then
60665         break
60666 fi
60667 done
60668
60669 fi
60670
60671 { echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
60672 echo "${ECHO_T}$ice_cv_have_malloc_decl" >&6; }
60673 if test "$ice_cv_have_malloc_decl" = yes; then
60674
60675 cat >>confdefs.h <<_ACEOF
60676 #define HAVE_MALLOC_DECL 1
60677 _ACEOF
60678
60679 fi
60680 fi
60681
60682
60683 ice_have_memmove=no
60684
60685 for ac_func in memmove
60686 do
60687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60688 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60691   echo $ECHO_N "(cached) $ECHO_C" >&6
60692 else
60693   cat >conftest.$ac_ext <<_ACEOF
60694 /* confdefs.h.  */
60695 _ACEOF
60696 cat confdefs.h >>conftest.$ac_ext
60697 cat >>conftest.$ac_ext <<_ACEOF
60698 /* end confdefs.h.  */
60699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60701 #define $ac_func innocuous_$ac_func
60702
60703 /* System header to define __stub macros and hopefully few prototypes,
60704     which can conflict with char $ac_func (); below.
60705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60706     <limits.h> exists even on freestanding compilers.  */
60707
60708 #ifdef __STDC__
60709 # include <limits.h>
60710 #else
60711 # include <assert.h>
60712 #endif
60713
60714 #undef $ac_func
60715
60716 /* Override any GCC internal prototype to avoid an error.
60717    Use char because int might match the return type of a GCC
60718    builtin and then its argument prototype would still apply.  */
60719 #ifdef __cplusplus
60720 extern "C"
60721 #endif
60722 char $ac_func ();
60723 /* The GNU C library defines this for functions which it implements
60724     to always fail with ENOSYS.  Some functions are actually named
60725     something starting with __ and the normal name is an alias.  */
60726 #if defined __stub_$ac_func || defined __stub___$ac_func
60727 choke me
60728 #endif
60729
60730 int
60731 main ()
60732 {
60733 return $ac_func ();
60734   ;
60735   return 0;
60736 }
60737 _ACEOF
60738 rm -f conftest.$ac_objext conftest$ac_exeext
60739 if { (ac_try="$ac_link"
60740 case "(($ac_try" in
60741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60742   *) ac_try_echo=$ac_try;;
60743 esac
60744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60745   (eval "$ac_link") 2>conftest.er1
60746   ac_status=$?
60747   grep -v '^ *+' conftest.er1 >conftest.err
60748   rm -f conftest.er1
60749   cat conftest.err >&5
60750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60751   (exit $ac_status); } && {
60752          test -z "$ac_c_werror_flag" ||
60753          test ! -s conftest.err
60754        } && test -s conftest$ac_exeext &&
60755        $as_test_x conftest$ac_exeext; then
60756   eval "$as_ac_var=yes"
60757 else
60758   echo "$as_me: failed program was:" >&5
60759 sed 's/^/| /' conftest.$ac_ext >&5
60760
60761         eval "$as_ac_var=no"
60762 fi
60763
60764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60765       conftest$ac_exeext conftest.$ac_ext
60766 fi
60767 ac_res=`eval echo '${'$as_ac_var'}'`
60768                { echo "$as_me:$LINENO: result: $ac_res" >&5
60769 echo "${ECHO_T}$ac_res" >&6; }
60770 if test `eval echo '${'$as_ac_var'}'` = yes; then
60771   cat >>confdefs.h <<_ACEOF
60772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60773 _ACEOF
60774  ice_have_memmove=yes
60775 fi
60776 done
60777
60778 if test "${ice_have_memmove}" = yes; then
60779 { echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
60780 echo $ECHO_N "checking for memmove declaration in string.h strings.h... $ECHO_C" >&6; }
60781 if test "${ice_cv_have_memmove_decl+set}" = set; then
60782   echo $ECHO_N "(cached) $ECHO_C" >&6
60783 else
60784
60785 ice_cv_have_memmove_decl=no
60786 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60787 ice_re_word='(^|[^a-zA-Z0-9_])'
60788 for header in string.h strings.h; do
60789 # Check for ordinary declaration
60790 cat >conftest.$ac_ext <<_ACEOF
60791 /* confdefs.h.  */
60792 _ACEOF
60793 cat confdefs.h >>conftest.$ac_ext
60794 cat >>conftest.$ac_ext <<_ACEOF
60795 /* end confdefs.h.  */
60796 #include <$header>
60797
60798 _ACEOF
60799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60800   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then
60801   ice_cv_have_memmove_decl=yes
60802 fi
60803 rm -f conftest*
60804
60805 if test "$ice_cv_have_memmove_decl" = yes; then
60806         break
60807 fi
60808 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60809 cat >conftest.$ac_ext <<_ACEOF
60810 /* confdefs.h.  */
60811 _ACEOF
60812 cat confdefs.h >>conftest.$ac_ext
60813 cat >>conftest.$ac_ext <<_ACEOF
60814 /* end confdefs.h.  */
60815 #include <$header>
60816
60817 _ACEOF
60818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60819   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60820   ice_cv_have_memmove_decl=yes
60821 fi
60822 rm -f conftest*
60823
60824 if test "$ice_cv_have_memmove_decl" = yes; then
60825         break
60826 fi
60827 done
60828
60829 fi
60830
60831 { echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
60832 echo "${ECHO_T}$ice_cv_have_memmove_decl" >&6; }
60833 if test "$ice_cv_have_memmove_decl" = yes; then
60834
60835 cat >>confdefs.h <<_ACEOF
60836 #define HAVE_MEMMOVE_DECL 1
60837 _ACEOF
60838
60839 fi
60840 fi
60841
60842
60843 ice_have_memset=no
60844
60845 for ac_func in memset
60846 do
60847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60848 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60850 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60851   echo $ECHO_N "(cached) $ECHO_C" >&6
60852 else
60853   cat >conftest.$ac_ext <<_ACEOF
60854 /* confdefs.h.  */
60855 _ACEOF
60856 cat confdefs.h >>conftest.$ac_ext
60857 cat >>conftest.$ac_ext <<_ACEOF
60858 /* end confdefs.h.  */
60859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60861 #define $ac_func innocuous_$ac_func
60862
60863 /* System header to define __stub macros and hopefully few prototypes,
60864     which can conflict with char $ac_func (); below.
60865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60866     <limits.h> exists even on freestanding compilers.  */
60867
60868 #ifdef __STDC__
60869 # include <limits.h>
60870 #else
60871 # include <assert.h>
60872 #endif
60873
60874 #undef $ac_func
60875
60876 /* Override any GCC internal prototype to avoid an error.
60877    Use char because int might match the return type of a GCC
60878    builtin and then its argument prototype would still apply.  */
60879 #ifdef __cplusplus
60880 extern "C"
60881 #endif
60882 char $ac_func ();
60883 /* The GNU C library defines this for functions which it implements
60884     to always fail with ENOSYS.  Some functions are actually named
60885     something starting with __ and the normal name is an alias.  */
60886 #if defined __stub_$ac_func || defined __stub___$ac_func
60887 choke me
60888 #endif
60889
60890 int
60891 main ()
60892 {
60893 return $ac_func ();
60894   ;
60895   return 0;
60896 }
60897 _ACEOF
60898 rm -f conftest.$ac_objext conftest$ac_exeext
60899 if { (ac_try="$ac_link"
60900 case "(($ac_try" in
60901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60902   *) ac_try_echo=$ac_try;;
60903 esac
60904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60905   (eval "$ac_link") 2>conftest.er1
60906   ac_status=$?
60907   grep -v '^ *+' conftest.er1 >conftest.err
60908   rm -f conftest.er1
60909   cat conftest.err >&5
60910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60911   (exit $ac_status); } && {
60912          test -z "$ac_c_werror_flag" ||
60913          test ! -s conftest.err
60914        } && test -s conftest$ac_exeext &&
60915        $as_test_x conftest$ac_exeext; then
60916   eval "$as_ac_var=yes"
60917 else
60918   echo "$as_me: failed program was:" >&5
60919 sed 's/^/| /' conftest.$ac_ext >&5
60920
60921         eval "$as_ac_var=no"
60922 fi
60923
60924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60925       conftest$ac_exeext conftest.$ac_ext
60926 fi
60927 ac_res=`eval echo '${'$as_ac_var'}'`
60928                { echo "$as_me:$LINENO: result: $ac_res" >&5
60929 echo "${ECHO_T}$ac_res" >&6; }
60930 if test `eval echo '${'$as_ac_var'}'` = yes; then
60931   cat >>confdefs.h <<_ACEOF
60932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60933 _ACEOF
60934  ice_have_memset=yes
60935 fi
60936 done
60937
60938 if test "${ice_have_memset}" = yes; then
60939 { echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
60940 echo $ECHO_N "checking for memset declaration in string.h strings.h... $ECHO_C" >&6; }
60941 if test "${ice_cv_have_memset_decl+set}" = set; then
60942   echo $ECHO_N "(cached) $ECHO_C" >&6
60943 else
60944
60945 ice_cv_have_memset_decl=no
60946 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60947 ice_re_word='(^|[^a-zA-Z0-9_])'
60948 for header in string.h strings.h; do
60949 # Check for ordinary declaration
60950 cat >conftest.$ac_ext <<_ACEOF
60951 /* confdefs.h.  */
60952 _ACEOF
60953 cat confdefs.h >>conftest.$ac_ext
60954 cat >>conftest.$ac_ext <<_ACEOF
60955 /* end confdefs.h.  */
60956 #include <$header>
60957
60958 _ACEOF
60959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60960   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then
60961   ice_cv_have_memset_decl=yes
60962 fi
60963 rm -f conftest*
60964
60965 if test "$ice_cv_have_memset_decl" = yes; then
60966         break
60967 fi
60968 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60969 cat >conftest.$ac_ext <<_ACEOF
60970 /* confdefs.h.  */
60971 _ACEOF
60972 cat confdefs.h >>conftest.$ac_ext
60973 cat >>conftest.$ac_ext <<_ACEOF
60974 /* end confdefs.h.  */
60975 #include <$header>
60976
60977 _ACEOF
60978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60979   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60980   ice_cv_have_memset_decl=yes
60981 fi
60982 rm -f conftest*
60983
60984 if test "$ice_cv_have_memset_decl" = yes; then
60985         break
60986 fi
60987 done
60988
60989 fi
60990
60991 { echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
60992 echo "${ECHO_T}$ice_cv_have_memset_decl" >&6; }
60993 if test "$ice_cv_have_memset_decl" = yes; then
60994
60995 cat >>confdefs.h <<_ACEOF
60996 #define HAVE_MEMSET_DECL 1
60997 _ACEOF
60998
60999 fi
61000 fi
61001
61002
61003 ice_have_mkstemp=no
61004
61005 for ac_func in mkstemp
61006 do
61007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61011   echo $ECHO_N "(cached) $ECHO_C" >&6
61012 else
61013   cat >conftest.$ac_ext <<_ACEOF
61014 /* confdefs.h.  */
61015 _ACEOF
61016 cat confdefs.h >>conftest.$ac_ext
61017 cat >>conftest.$ac_ext <<_ACEOF
61018 /* end confdefs.h.  */
61019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61021 #define $ac_func innocuous_$ac_func
61022
61023 /* System header to define __stub macros and hopefully few prototypes,
61024     which can conflict with char $ac_func (); below.
61025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61026     <limits.h> exists even on freestanding compilers.  */
61027
61028 #ifdef __STDC__
61029 # include <limits.h>
61030 #else
61031 # include <assert.h>
61032 #endif
61033
61034 #undef $ac_func
61035
61036 /* Override any GCC internal prototype to avoid an error.
61037    Use char because int might match the return type of a GCC
61038    builtin and then its argument prototype would still apply.  */
61039 #ifdef __cplusplus
61040 extern "C"
61041 #endif
61042 char $ac_func ();
61043 /* The GNU C library defines this for functions which it implements
61044     to always fail with ENOSYS.  Some functions are actually named
61045     something starting with __ and the normal name is an alias.  */
61046 #if defined __stub_$ac_func || defined __stub___$ac_func
61047 choke me
61048 #endif
61049
61050 int
61051 main ()
61052 {
61053 return $ac_func ();
61054   ;
61055   return 0;
61056 }
61057 _ACEOF
61058 rm -f conftest.$ac_objext conftest$ac_exeext
61059 if { (ac_try="$ac_link"
61060 case "(($ac_try" in
61061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61062   *) ac_try_echo=$ac_try;;
61063 esac
61064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61065   (eval "$ac_link") 2>conftest.er1
61066   ac_status=$?
61067   grep -v '^ *+' conftest.er1 >conftest.err
61068   rm -f conftest.er1
61069   cat conftest.err >&5
61070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61071   (exit $ac_status); } && {
61072          test -z "$ac_c_werror_flag" ||
61073          test ! -s conftest.err
61074        } && test -s conftest$ac_exeext &&
61075        $as_test_x conftest$ac_exeext; then
61076   eval "$as_ac_var=yes"
61077 else
61078   echo "$as_me: failed program was:" >&5
61079 sed 's/^/| /' conftest.$ac_ext >&5
61080
61081         eval "$as_ac_var=no"
61082 fi
61083
61084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61085       conftest$ac_exeext conftest.$ac_ext
61086 fi
61087 ac_res=`eval echo '${'$as_ac_var'}'`
61088                { echo "$as_me:$LINENO: result: $ac_res" >&5
61089 echo "${ECHO_T}$ac_res" >&6; }
61090 if test `eval echo '${'$as_ac_var'}'` = yes; then
61091   cat >>confdefs.h <<_ACEOF
61092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61093 _ACEOF
61094  ice_have_mkstemp=yes
61095 fi
61096 done
61097
61098 if test "${ice_have_mkstemp}" = yes; then
61099 { echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
61100 echo $ECHO_N "checking for mkstemp declaration in stdlib.h... $ECHO_C" >&6; }
61101 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
61102   echo $ECHO_N "(cached) $ECHO_C" >&6
61103 else
61104
61105 ice_cv_have_mkstemp_decl=no
61106 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61107 ice_re_word='(^|[^a-zA-Z0-9_])'
61108 for header in stdlib.h; do
61109 # Check for ordinary declaration
61110 cat >conftest.$ac_ext <<_ACEOF
61111 /* confdefs.h.  */
61112 _ACEOF
61113 cat confdefs.h >>conftest.$ac_ext
61114 cat >>conftest.$ac_ext <<_ACEOF
61115 /* end confdefs.h.  */
61116 #include <$header>
61117
61118 _ACEOF
61119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61120   $EGREP "${ice_re_word}mkstemp[        ]*\(" >/dev/null 2>&1; then
61121   ice_cv_have_mkstemp_decl=yes
61122 fi
61123 rm -f conftest*
61124
61125 if test "$ice_cv_have_mkstemp_decl" = yes; then
61126         break
61127 fi
61128 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61129 cat >conftest.$ac_ext <<_ACEOF
61130 /* confdefs.h.  */
61131 _ACEOF
61132 cat confdefs.h >>conftest.$ac_ext
61133 cat >>conftest.$ac_ext <<_ACEOF
61134 /* end confdefs.h.  */
61135 #include <$header>
61136
61137 _ACEOF
61138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61139   $EGREP "${ice_re_word}mkstemp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61140   ice_cv_have_mkstemp_decl=yes
61141 fi
61142 rm -f conftest*
61143
61144 if test "$ice_cv_have_mkstemp_decl" = yes; then
61145         break
61146 fi
61147 done
61148
61149 fi
61150
61151 { echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
61152 echo "${ECHO_T}$ice_cv_have_mkstemp_decl" >&6; }
61153 if test "$ice_cv_have_mkstemp_decl" = yes; then
61154
61155 cat >>confdefs.h <<_ACEOF
61156 #define HAVE_MKSTEMP_DECL 1
61157 _ACEOF
61158
61159 fi
61160 fi
61161
61162
61163 ice_have_mktemp=no
61164
61165 for ac_func in mktemp
61166 do
61167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61171   echo $ECHO_N "(cached) $ECHO_C" >&6
61172 else
61173   cat >conftest.$ac_ext <<_ACEOF
61174 /* confdefs.h.  */
61175 _ACEOF
61176 cat confdefs.h >>conftest.$ac_ext
61177 cat >>conftest.$ac_ext <<_ACEOF
61178 /* end confdefs.h.  */
61179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61181 #define $ac_func innocuous_$ac_func
61182
61183 /* System header to define __stub macros and hopefully few prototypes,
61184     which can conflict with char $ac_func (); below.
61185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61186     <limits.h> exists even on freestanding compilers.  */
61187
61188 #ifdef __STDC__
61189 # include <limits.h>
61190 #else
61191 # include <assert.h>
61192 #endif
61193
61194 #undef $ac_func
61195
61196 /* Override any GCC internal prototype to avoid an error.
61197    Use char because int might match the return type of a GCC
61198    builtin and then its argument prototype would still apply.  */
61199 #ifdef __cplusplus
61200 extern "C"
61201 #endif
61202 char $ac_func ();
61203 /* The GNU C library defines this for functions which it implements
61204     to always fail with ENOSYS.  Some functions are actually named
61205     something starting with __ and the normal name is an alias.  */
61206 #if defined __stub_$ac_func || defined __stub___$ac_func
61207 choke me
61208 #endif
61209
61210 int
61211 main ()
61212 {
61213 return $ac_func ();
61214   ;
61215   return 0;
61216 }
61217 _ACEOF
61218 rm -f conftest.$ac_objext conftest$ac_exeext
61219 if { (ac_try="$ac_link"
61220 case "(($ac_try" in
61221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61222   *) ac_try_echo=$ac_try;;
61223 esac
61224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61225   (eval "$ac_link") 2>conftest.er1
61226   ac_status=$?
61227   grep -v '^ *+' conftest.er1 >conftest.err
61228   rm -f conftest.er1
61229   cat conftest.err >&5
61230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61231   (exit $ac_status); } && {
61232          test -z "$ac_c_werror_flag" ||
61233          test ! -s conftest.err
61234        } && test -s conftest$ac_exeext &&
61235        $as_test_x conftest$ac_exeext; then
61236   eval "$as_ac_var=yes"
61237 else
61238   echo "$as_me: failed program was:" >&5
61239 sed 's/^/| /' conftest.$ac_ext >&5
61240
61241         eval "$as_ac_var=no"
61242 fi
61243
61244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61245       conftest$ac_exeext conftest.$ac_ext
61246 fi
61247 ac_res=`eval echo '${'$as_ac_var'}'`
61248                { echo "$as_me:$LINENO: result: $ac_res" >&5
61249 echo "${ECHO_T}$ac_res" >&6; }
61250 if test `eval echo '${'$as_ac_var'}'` = yes; then
61251   cat >>confdefs.h <<_ACEOF
61252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61253 _ACEOF
61254  ice_have_mktemp=yes
61255 fi
61256 done
61257
61258 if test "${ice_have_mktemp}" = yes; then
61259 { echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
61260 echo $ECHO_N "checking for mktemp declaration in stdlib.h... $ECHO_C" >&6; }
61261 if test "${ice_cv_have_mktemp_decl+set}" = set; then
61262   echo $ECHO_N "(cached) $ECHO_C" >&6
61263 else
61264
61265 ice_cv_have_mktemp_decl=no
61266 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61267 ice_re_word='(^|[^a-zA-Z0-9_])'
61268 for header in stdlib.h; do
61269 # Check for ordinary declaration
61270 cat >conftest.$ac_ext <<_ACEOF
61271 /* confdefs.h.  */
61272 _ACEOF
61273 cat confdefs.h >>conftest.$ac_ext
61274 cat >>conftest.$ac_ext <<_ACEOF
61275 /* end confdefs.h.  */
61276 #include <$header>
61277
61278 _ACEOF
61279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61280   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then
61281   ice_cv_have_mktemp_decl=yes
61282 fi
61283 rm -f conftest*
61284
61285 if test "$ice_cv_have_mktemp_decl" = yes; then
61286         break
61287 fi
61288 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61289 cat >conftest.$ac_ext <<_ACEOF
61290 /* confdefs.h.  */
61291 _ACEOF
61292 cat confdefs.h >>conftest.$ac_ext
61293 cat >>conftest.$ac_ext <<_ACEOF
61294 /* end confdefs.h.  */
61295 #include <$header>
61296
61297 _ACEOF
61298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61299   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61300   ice_cv_have_mktemp_decl=yes
61301 fi
61302 rm -f conftest*
61303
61304 if test "$ice_cv_have_mktemp_decl" = yes; then
61305         break
61306 fi
61307 done
61308
61309 fi
61310
61311 { echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
61312 echo "${ECHO_T}$ice_cv_have_mktemp_decl" >&6; }
61313 if test "$ice_cv_have_mktemp_decl" = yes; then
61314
61315 cat >>confdefs.h <<_ACEOF
61316 #define HAVE_MKTEMP_DECL 1
61317 _ACEOF
61318
61319 fi
61320 fi
61321
61322
61323 ice_have_mktime=no
61324
61325 for ac_func in mktime
61326 do
61327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61331   echo $ECHO_N "(cached) $ECHO_C" >&6
61332 else
61333   cat >conftest.$ac_ext <<_ACEOF
61334 /* confdefs.h.  */
61335 _ACEOF
61336 cat confdefs.h >>conftest.$ac_ext
61337 cat >>conftest.$ac_ext <<_ACEOF
61338 /* end confdefs.h.  */
61339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61341 #define $ac_func innocuous_$ac_func
61342
61343 /* System header to define __stub macros and hopefully few prototypes,
61344     which can conflict with char $ac_func (); below.
61345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61346     <limits.h> exists even on freestanding compilers.  */
61347
61348 #ifdef __STDC__
61349 # include <limits.h>
61350 #else
61351 # include <assert.h>
61352 #endif
61353
61354 #undef $ac_func
61355
61356 /* Override any GCC internal prototype to avoid an error.
61357    Use char because int might match the return type of a GCC
61358    builtin and then its argument prototype would still apply.  */
61359 #ifdef __cplusplus
61360 extern "C"
61361 #endif
61362 char $ac_func ();
61363 /* The GNU C library defines this for functions which it implements
61364     to always fail with ENOSYS.  Some functions are actually named
61365     something starting with __ and the normal name is an alias.  */
61366 #if defined __stub_$ac_func || defined __stub___$ac_func
61367 choke me
61368 #endif
61369
61370 int
61371 main ()
61372 {
61373 return $ac_func ();
61374   ;
61375   return 0;
61376 }
61377 _ACEOF
61378 rm -f conftest.$ac_objext conftest$ac_exeext
61379 if { (ac_try="$ac_link"
61380 case "(($ac_try" in
61381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61382   *) ac_try_echo=$ac_try;;
61383 esac
61384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61385   (eval "$ac_link") 2>conftest.er1
61386   ac_status=$?
61387   grep -v '^ *+' conftest.er1 >conftest.err
61388   rm -f conftest.er1
61389   cat conftest.err >&5
61390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61391   (exit $ac_status); } && {
61392          test -z "$ac_c_werror_flag" ||
61393          test ! -s conftest.err
61394        } && test -s conftest$ac_exeext &&
61395        $as_test_x conftest$ac_exeext; then
61396   eval "$as_ac_var=yes"
61397 else
61398   echo "$as_me: failed program was:" >&5
61399 sed 's/^/| /' conftest.$ac_ext >&5
61400
61401         eval "$as_ac_var=no"
61402 fi
61403
61404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61405       conftest$ac_exeext conftest.$ac_ext
61406 fi
61407 ac_res=`eval echo '${'$as_ac_var'}'`
61408                { echo "$as_me:$LINENO: result: $ac_res" >&5
61409 echo "${ECHO_T}$ac_res" >&6; }
61410 if test `eval echo '${'$as_ac_var'}'` = yes; then
61411   cat >>confdefs.h <<_ACEOF
61412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61413 _ACEOF
61414  ice_have_mktime=yes
61415 fi
61416 done
61417
61418 if test "${ice_have_mktime}" = yes; then
61419 { echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
61420 echo $ECHO_N "checking for mktime declaration in time.h sys/time.h... $ECHO_C" >&6; }
61421 if test "${ice_cv_have_mktime_decl+set}" = set; then
61422   echo $ECHO_N "(cached) $ECHO_C" >&6
61423 else
61424
61425 ice_cv_have_mktime_decl=no
61426 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61427 ice_re_word='(^|[^a-zA-Z0-9_])'
61428 for header in time.h sys/time.h; do
61429 # Check for ordinary declaration
61430 cat >conftest.$ac_ext <<_ACEOF
61431 /* confdefs.h.  */
61432 _ACEOF
61433 cat confdefs.h >>conftest.$ac_ext
61434 cat >>conftest.$ac_ext <<_ACEOF
61435 /* end confdefs.h.  */
61436 #include <$header>
61437
61438 _ACEOF
61439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61440   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then
61441   ice_cv_have_mktime_decl=yes
61442 fi
61443 rm -f conftest*
61444
61445 if test "$ice_cv_have_mktime_decl" = yes; then
61446         break
61447 fi
61448 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61449 cat >conftest.$ac_ext <<_ACEOF
61450 /* confdefs.h.  */
61451 _ACEOF
61452 cat confdefs.h >>conftest.$ac_ext
61453 cat >>conftest.$ac_ext <<_ACEOF
61454 /* end confdefs.h.  */
61455 #include <$header>
61456
61457 _ACEOF
61458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61459   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61460   ice_cv_have_mktime_decl=yes
61461 fi
61462 rm -f conftest*
61463
61464 if test "$ice_cv_have_mktime_decl" = yes; then
61465         break
61466 fi
61467 done
61468
61469 fi
61470
61471 { echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
61472 echo "${ECHO_T}$ice_cv_have_mktime_decl" >&6; }
61473 if test "$ice_cv_have_mktime_decl" = yes; then
61474
61475 cat >>confdefs.h <<_ACEOF
61476 #define HAVE_MKTIME_DECL 1
61477 _ACEOF
61478
61479 fi
61480 fi
61481
61482
61483 for ac_func in on_exit
61484 do
61485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61486 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61488 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61489   echo $ECHO_N "(cached) $ECHO_C" >&6
61490 else
61491   cat >conftest.$ac_ext <<_ACEOF
61492 /* confdefs.h.  */
61493 _ACEOF
61494 cat confdefs.h >>conftest.$ac_ext
61495 cat >>conftest.$ac_ext <<_ACEOF
61496 /* end confdefs.h.  */
61497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61498    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61499 #define $ac_func innocuous_$ac_func
61500
61501 /* System header to define __stub macros and hopefully few prototypes,
61502     which can conflict with char $ac_func (); below.
61503     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61504     <limits.h> exists even on freestanding compilers.  */
61505
61506 #ifdef __STDC__
61507 # include <limits.h>
61508 #else
61509 # include <assert.h>
61510 #endif
61511
61512 #undef $ac_func
61513
61514 /* Override any GCC internal prototype to avoid an error.
61515    Use char because int might match the return type of a GCC
61516    builtin and then its argument prototype would still apply.  */
61517 #ifdef __cplusplus
61518 extern "C"
61519 #endif
61520 char $ac_func ();
61521 /* The GNU C library defines this for functions which it implements
61522     to always fail with ENOSYS.  Some functions are actually named
61523     something starting with __ and the normal name is an alias.  */
61524 #if defined __stub_$ac_func || defined __stub___$ac_func
61525 choke me
61526 #endif
61527
61528 int
61529 main ()
61530 {
61531 return $ac_func ();
61532   ;
61533   return 0;
61534 }
61535 _ACEOF
61536 rm -f conftest.$ac_objext conftest$ac_exeext
61537 if { (ac_try="$ac_link"
61538 case "(($ac_try" in
61539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61540   *) ac_try_echo=$ac_try;;
61541 esac
61542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61543   (eval "$ac_link") 2>conftest.er1
61544   ac_status=$?
61545   grep -v '^ *+' conftest.er1 >conftest.err
61546   rm -f conftest.er1
61547   cat conftest.err >&5
61548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61549   (exit $ac_status); } && {
61550          test -z "$ac_c_werror_flag" ||
61551          test ! -s conftest.err
61552        } && test -s conftest$ac_exeext &&
61553        $as_test_x conftest$ac_exeext; then
61554   eval "$as_ac_var=yes"
61555 else
61556   echo "$as_me: failed program was:" >&5
61557 sed 's/^/| /' conftest.$ac_ext >&5
61558
61559         eval "$as_ac_var=no"
61560 fi
61561
61562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61563       conftest$ac_exeext conftest.$ac_ext
61564 fi
61565 ac_res=`eval echo '${'$as_ac_var'}'`
61566                { echo "$as_me:$LINENO: result: $ac_res" >&5
61567 echo "${ECHO_T}$ac_res" >&6; }
61568 if test `eval echo '${'$as_ac_var'}'` = yes; then
61569   cat >>confdefs.h <<_ACEOF
61570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61571 _ACEOF
61572
61573 fi
61574 done
61575
61576
61577 ice_have_openlog=no
61578
61579 for ac_func in openlog
61580 do
61581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61585   echo $ECHO_N "(cached) $ECHO_C" >&6
61586 else
61587   cat >conftest.$ac_ext <<_ACEOF
61588 /* confdefs.h.  */
61589 _ACEOF
61590 cat confdefs.h >>conftest.$ac_ext
61591 cat >>conftest.$ac_ext <<_ACEOF
61592 /* end confdefs.h.  */
61593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61595 #define $ac_func innocuous_$ac_func
61596
61597 /* System header to define __stub macros and hopefully few prototypes,
61598     which can conflict with char $ac_func (); below.
61599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61600     <limits.h> exists even on freestanding compilers.  */
61601
61602 #ifdef __STDC__
61603 # include <limits.h>
61604 #else
61605 # include <assert.h>
61606 #endif
61607
61608 #undef $ac_func
61609
61610 /* Override any GCC internal prototype to avoid an error.
61611    Use char because int might match the return type of a GCC
61612    builtin and then its argument prototype would still apply.  */
61613 #ifdef __cplusplus
61614 extern "C"
61615 #endif
61616 char $ac_func ();
61617 /* The GNU C library defines this for functions which it implements
61618     to always fail with ENOSYS.  Some functions are actually named
61619     something starting with __ and the normal name is an alias.  */
61620 #if defined __stub_$ac_func || defined __stub___$ac_func
61621 choke me
61622 #endif
61623
61624 int
61625 main ()
61626 {
61627 return $ac_func ();
61628   ;
61629   return 0;
61630 }
61631 _ACEOF
61632 rm -f conftest.$ac_objext conftest$ac_exeext
61633 if { (ac_try="$ac_link"
61634 case "(($ac_try" in
61635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61636   *) ac_try_echo=$ac_try;;
61637 esac
61638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61639   (eval "$ac_link") 2>conftest.er1
61640   ac_status=$?
61641   grep -v '^ *+' conftest.er1 >conftest.err
61642   rm -f conftest.er1
61643   cat conftest.err >&5
61644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61645   (exit $ac_status); } && {
61646          test -z "$ac_c_werror_flag" ||
61647          test ! -s conftest.err
61648        } && test -s conftest$ac_exeext &&
61649        $as_test_x conftest$ac_exeext; then
61650   eval "$as_ac_var=yes"
61651 else
61652   echo "$as_me: failed program was:" >&5
61653 sed 's/^/| /' conftest.$ac_ext >&5
61654
61655         eval "$as_ac_var=no"
61656 fi
61657
61658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61659       conftest$ac_exeext conftest.$ac_ext
61660 fi
61661 ac_res=`eval echo '${'$as_ac_var'}'`
61662                { echo "$as_me:$LINENO: result: $ac_res" >&5
61663 echo "${ECHO_T}$ac_res" >&6; }
61664 if test `eval echo '${'$as_ac_var'}'` = yes; then
61665   cat >>confdefs.h <<_ACEOF
61666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61667 _ACEOF
61668  ice_have_openlog=yes
61669 fi
61670 done
61671
61672 if test "${ice_have_openlog}" = yes; then
61673 { echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
61674 echo $ECHO_N "checking for openlog declaration in syslog.h... $ECHO_C" >&6; }
61675 if test "${ice_cv_have_openlog_decl+set}" = set; then
61676   echo $ECHO_N "(cached) $ECHO_C" >&6
61677 else
61678
61679 ice_cv_have_openlog_decl=no
61680 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61681 ice_re_word='(^|[^a-zA-Z0-9_])'
61682 for header in syslog.h; do
61683 # Check for ordinary declaration
61684 cat >conftest.$ac_ext <<_ACEOF
61685 /* confdefs.h.  */
61686 _ACEOF
61687 cat confdefs.h >>conftest.$ac_ext
61688 cat >>conftest.$ac_ext <<_ACEOF
61689 /* end confdefs.h.  */
61690 #include <$header>
61691
61692 _ACEOF
61693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61694   $EGREP "${ice_re_word}openlog[        ]*\(" >/dev/null 2>&1; then
61695   ice_cv_have_openlog_decl=yes
61696 fi
61697 rm -f conftest*
61698
61699 if test "$ice_cv_have_openlog_decl" = yes; then
61700         break
61701 fi
61702 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61703 cat >conftest.$ac_ext <<_ACEOF
61704 /* confdefs.h.  */
61705 _ACEOF
61706 cat confdefs.h >>conftest.$ac_ext
61707 cat >>conftest.$ac_ext <<_ACEOF
61708 /* end confdefs.h.  */
61709 #include <$header>
61710
61711 _ACEOF
61712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61713   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61714   ice_cv_have_openlog_decl=yes
61715 fi
61716 rm -f conftest*
61717
61718 if test "$ice_cv_have_openlog_decl" = yes; then
61719         break
61720 fi
61721 done
61722
61723 fi
61724
61725 { echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
61726 echo "${ECHO_T}$ice_cv_have_openlog_decl" >&6; }
61727 if test "$ice_cv_have_openlog_decl" = yes; then
61728
61729 cat >>confdefs.h <<_ACEOF
61730 #define HAVE_OPENLOG_DECL 1
61731 _ACEOF
61732
61733 fi
61734 fi
61735
61736
61737 ice_have_pclose=no
61738
61739 for ac_func in pclose
61740 do
61741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61745   echo $ECHO_N "(cached) $ECHO_C" >&6
61746 else
61747   cat >conftest.$ac_ext <<_ACEOF
61748 /* confdefs.h.  */
61749 _ACEOF
61750 cat confdefs.h >>conftest.$ac_ext
61751 cat >>conftest.$ac_ext <<_ACEOF
61752 /* end confdefs.h.  */
61753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61755 #define $ac_func innocuous_$ac_func
61756
61757 /* System header to define __stub macros and hopefully few prototypes,
61758     which can conflict with char $ac_func (); below.
61759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61760     <limits.h> exists even on freestanding compilers.  */
61761
61762 #ifdef __STDC__
61763 # include <limits.h>
61764 #else
61765 # include <assert.h>
61766 #endif
61767
61768 #undef $ac_func
61769
61770 /* Override any GCC internal prototype to avoid an error.
61771    Use char because int might match the return type of a GCC
61772    builtin and then its argument prototype would still apply.  */
61773 #ifdef __cplusplus
61774 extern "C"
61775 #endif
61776 char $ac_func ();
61777 /* The GNU C library defines this for functions which it implements
61778     to always fail with ENOSYS.  Some functions are actually named
61779     something starting with __ and the normal name is an alias.  */
61780 #if defined __stub_$ac_func || defined __stub___$ac_func
61781 choke me
61782 #endif
61783
61784 int
61785 main ()
61786 {
61787 return $ac_func ();
61788   ;
61789   return 0;
61790 }
61791 _ACEOF
61792 rm -f conftest.$ac_objext conftest$ac_exeext
61793 if { (ac_try="$ac_link"
61794 case "(($ac_try" in
61795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61796   *) ac_try_echo=$ac_try;;
61797 esac
61798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61799   (eval "$ac_link") 2>conftest.er1
61800   ac_status=$?
61801   grep -v '^ *+' conftest.er1 >conftest.err
61802   rm -f conftest.er1
61803   cat conftest.err >&5
61804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61805   (exit $ac_status); } && {
61806          test -z "$ac_c_werror_flag" ||
61807          test ! -s conftest.err
61808        } && test -s conftest$ac_exeext &&
61809        $as_test_x conftest$ac_exeext; then
61810   eval "$as_ac_var=yes"
61811 else
61812   echo "$as_me: failed program was:" >&5
61813 sed 's/^/| /' conftest.$ac_ext >&5
61814
61815         eval "$as_ac_var=no"
61816 fi
61817
61818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61819       conftest$ac_exeext conftest.$ac_ext
61820 fi
61821 ac_res=`eval echo '${'$as_ac_var'}'`
61822                { echo "$as_me:$LINENO: result: $ac_res" >&5
61823 echo "${ECHO_T}$ac_res" >&6; }
61824 if test `eval echo '${'$as_ac_var'}'` = yes; then
61825   cat >>confdefs.h <<_ACEOF
61826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61827 _ACEOF
61828  ice_have_pclose=yes
61829 fi
61830 done
61831
61832 if test "${ice_have_pclose}" = yes; then
61833 { echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
61834 echo $ECHO_N "checking for pclose declaration in stdio.h... $ECHO_C" >&6; }
61835 if test "${ice_cv_have_pclose_decl+set}" = set; then
61836   echo $ECHO_N "(cached) $ECHO_C" >&6
61837 else
61838
61839 ice_cv_have_pclose_decl=no
61840 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61841 ice_re_word='(^|[^a-zA-Z0-9_])'
61842 for header in stdio.h; do
61843 # Check for ordinary declaration
61844 cat >conftest.$ac_ext <<_ACEOF
61845 /* confdefs.h.  */
61846 _ACEOF
61847 cat confdefs.h >>conftest.$ac_ext
61848 cat >>conftest.$ac_ext <<_ACEOF
61849 /* end confdefs.h.  */
61850 #include <$header>
61851
61852 _ACEOF
61853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61854   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then
61855   ice_cv_have_pclose_decl=yes
61856 fi
61857 rm -f conftest*
61858
61859 if test "$ice_cv_have_pclose_decl" = yes; then
61860         break
61861 fi
61862 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61863 cat >conftest.$ac_ext <<_ACEOF
61864 /* confdefs.h.  */
61865 _ACEOF
61866 cat confdefs.h >>conftest.$ac_ext
61867 cat >>conftest.$ac_ext <<_ACEOF
61868 /* end confdefs.h.  */
61869 #include <$header>
61870
61871 _ACEOF
61872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61873   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61874   ice_cv_have_pclose_decl=yes
61875 fi
61876 rm -f conftest*
61877
61878 if test "$ice_cv_have_pclose_decl" = yes; then
61879         break
61880 fi
61881 done
61882
61883 fi
61884
61885 { echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
61886 echo "${ECHO_T}$ice_cv_have_pclose_decl" >&6; }
61887 if test "$ice_cv_have_pclose_decl" = yes; then
61888
61889 cat >>confdefs.h <<_ACEOF
61890 #define HAVE_PCLOSE_DECL 1
61891 _ACEOF
61892
61893 fi
61894 fi
61895
61896
61897 ice_have_perror=no
61898
61899 for ac_func in perror
61900 do
61901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61905   echo $ECHO_N "(cached) $ECHO_C" >&6
61906 else
61907   cat >conftest.$ac_ext <<_ACEOF
61908 /* confdefs.h.  */
61909 _ACEOF
61910 cat confdefs.h >>conftest.$ac_ext
61911 cat >>conftest.$ac_ext <<_ACEOF
61912 /* end confdefs.h.  */
61913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61914    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61915 #define $ac_func innocuous_$ac_func
61916
61917 /* System header to define __stub macros and hopefully few prototypes,
61918     which can conflict with char $ac_func (); below.
61919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61920     <limits.h> exists even on freestanding compilers.  */
61921
61922 #ifdef __STDC__
61923 # include <limits.h>
61924 #else
61925 # include <assert.h>
61926 #endif
61927
61928 #undef $ac_func
61929
61930 /* Override any GCC internal prototype to avoid an error.
61931    Use char because int might match the return type of a GCC
61932    builtin and then its argument prototype would still apply.  */
61933 #ifdef __cplusplus
61934 extern "C"
61935 #endif
61936 char $ac_func ();
61937 /* The GNU C library defines this for functions which it implements
61938     to always fail with ENOSYS.  Some functions are actually named
61939     something starting with __ and the normal name is an alias.  */
61940 #if defined __stub_$ac_func || defined __stub___$ac_func
61941 choke me
61942 #endif
61943
61944 int
61945 main ()
61946 {
61947 return $ac_func ();
61948   ;
61949   return 0;
61950 }
61951 _ACEOF
61952 rm -f conftest.$ac_objext conftest$ac_exeext
61953 if { (ac_try="$ac_link"
61954 case "(($ac_try" in
61955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61956   *) ac_try_echo=$ac_try;;
61957 esac
61958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61959   (eval "$ac_link") 2>conftest.er1
61960   ac_status=$?
61961   grep -v '^ *+' conftest.er1 >conftest.err
61962   rm -f conftest.er1
61963   cat conftest.err >&5
61964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61965   (exit $ac_status); } && {
61966          test -z "$ac_c_werror_flag" ||
61967          test ! -s conftest.err
61968        } && test -s conftest$ac_exeext &&
61969        $as_test_x conftest$ac_exeext; then
61970   eval "$as_ac_var=yes"
61971 else
61972   echo "$as_me: failed program was:" >&5
61973 sed 's/^/| /' conftest.$ac_ext >&5
61974
61975         eval "$as_ac_var=no"
61976 fi
61977
61978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61979       conftest$ac_exeext conftest.$ac_ext
61980 fi
61981 ac_res=`eval echo '${'$as_ac_var'}'`
61982                { echo "$as_me:$LINENO: result: $ac_res" >&5
61983 echo "${ECHO_T}$ac_res" >&6; }
61984 if test `eval echo '${'$as_ac_var'}'` = yes; then
61985   cat >>confdefs.h <<_ACEOF
61986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61987 _ACEOF
61988  ice_have_perror=yes
61989 fi
61990 done
61991
61992 if test "${ice_have_perror}" = yes; then
61993 { echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
61994 echo $ECHO_N "checking for perror declaration in stdio.h... $ECHO_C" >&6; }
61995 if test "${ice_cv_have_perror_decl+set}" = set; then
61996   echo $ECHO_N "(cached) $ECHO_C" >&6
61997 else
61998
61999 ice_cv_have_perror_decl=no
62000 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62001 ice_re_word='(^|[^a-zA-Z0-9_])'
62002 for header in stdio.h; do
62003 # Check for ordinary declaration
62004 cat >conftest.$ac_ext <<_ACEOF
62005 /* confdefs.h.  */
62006 _ACEOF
62007 cat confdefs.h >>conftest.$ac_ext
62008 cat >>conftest.$ac_ext <<_ACEOF
62009 /* end confdefs.h.  */
62010 #include <$header>
62011
62012 _ACEOF
62013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62014   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then
62015   ice_cv_have_perror_decl=yes
62016 fi
62017 rm -f conftest*
62018
62019 if test "$ice_cv_have_perror_decl" = yes; then
62020         break
62021 fi
62022 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62023 cat >conftest.$ac_ext <<_ACEOF
62024 /* confdefs.h.  */
62025 _ACEOF
62026 cat confdefs.h >>conftest.$ac_ext
62027 cat >>conftest.$ac_ext <<_ACEOF
62028 /* end confdefs.h.  */
62029 #include <$header>
62030
62031 _ACEOF
62032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62033   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62034   ice_cv_have_perror_decl=yes
62035 fi
62036 rm -f conftest*
62037
62038 if test "$ice_cv_have_perror_decl" = yes; then
62039         break
62040 fi
62041 done
62042
62043 fi
62044
62045 { echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
62046 echo "${ECHO_T}$ice_cv_have_perror_decl" >&6; }
62047 if test "$ice_cv_have_perror_decl" = yes; then
62048
62049 cat >>confdefs.h <<_ACEOF
62050 #define HAVE_PERROR_DECL 1
62051 _ACEOF
62052
62053 fi
62054 fi
62055
62056
62057 ice_have_printf=no
62058
62059 for ac_func in printf
62060 do
62061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62065   echo $ECHO_N "(cached) $ECHO_C" >&6
62066 else
62067   cat >conftest.$ac_ext <<_ACEOF
62068 /* confdefs.h.  */
62069 _ACEOF
62070 cat confdefs.h >>conftest.$ac_ext
62071 cat >>conftest.$ac_ext <<_ACEOF
62072 /* end confdefs.h.  */
62073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62075 #define $ac_func innocuous_$ac_func
62076
62077 /* System header to define __stub macros and hopefully few prototypes,
62078     which can conflict with char $ac_func (); below.
62079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62080     <limits.h> exists even on freestanding compilers.  */
62081
62082 #ifdef __STDC__
62083 # include <limits.h>
62084 #else
62085 # include <assert.h>
62086 #endif
62087
62088 #undef $ac_func
62089
62090 /* Override any GCC internal prototype to avoid an error.
62091    Use char because int might match the return type of a GCC
62092    builtin and then its argument prototype would still apply.  */
62093 #ifdef __cplusplus
62094 extern "C"
62095 #endif
62096 char $ac_func ();
62097 /* The GNU C library defines this for functions which it implements
62098     to always fail with ENOSYS.  Some functions are actually named
62099     something starting with __ and the normal name is an alias.  */
62100 #if defined __stub_$ac_func || defined __stub___$ac_func
62101 choke me
62102 #endif
62103
62104 int
62105 main ()
62106 {
62107 return $ac_func ();
62108   ;
62109   return 0;
62110 }
62111 _ACEOF
62112 rm -f conftest.$ac_objext conftest$ac_exeext
62113 if { (ac_try="$ac_link"
62114 case "(($ac_try" in
62115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62116   *) ac_try_echo=$ac_try;;
62117 esac
62118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62119   (eval "$ac_link") 2>conftest.er1
62120   ac_status=$?
62121   grep -v '^ *+' conftest.er1 >conftest.err
62122   rm -f conftest.er1
62123   cat conftest.err >&5
62124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62125   (exit $ac_status); } && {
62126          test -z "$ac_c_werror_flag" ||
62127          test ! -s conftest.err
62128        } && test -s conftest$ac_exeext &&
62129        $as_test_x conftest$ac_exeext; then
62130   eval "$as_ac_var=yes"
62131 else
62132   echo "$as_me: failed program was:" >&5
62133 sed 's/^/| /' conftest.$ac_ext >&5
62134
62135         eval "$as_ac_var=no"
62136 fi
62137
62138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62139       conftest$ac_exeext conftest.$ac_ext
62140 fi
62141 ac_res=`eval echo '${'$as_ac_var'}'`
62142                { echo "$as_me:$LINENO: result: $ac_res" >&5
62143 echo "${ECHO_T}$ac_res" >&6; }
62144 if test `eval echo '${'$as_ac_var'}'` = yes; then
62145   cat >>confdefs.h <<_ACEOF
62146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62147 _ACEOF
62148  ice_have_printf=yes
62149 fi
62150 done
62151
62152 if test "${ice_have_printf}" = yes; then
62153 { echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
62154 echo $ECHO_N "checking for printf declaration in stdio.h... $ECHO_C" >&6; }
62155 if test "${ice_cv_have_printf_decl+set}" = set; then
62156   echo $ECHO_N "(cached) $ECHO_C" >&6
62157 else
62158
62159 ice_cv_have_printf_decl=no
62160 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62161 ice_re_word='(^|[^a-zA-Z0-9_])'
62162 for header in stdio.h; do
62163 # Check for ordinary declaration
62164 cat >conftest.$ac_ext <<_ACEOF
62165 /* confdefs.h.  */
62166 _ACEOF
62167 cat confdefs.h >>conftest.$ac_ext
62168 cat >>conftest.$ac_ext <<_ACEOF
62169 /* end confdefs.h.  */
62170 #include <$header>
62171
62172 _ACEOF
62173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62174   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then
62175   ice_cv_have_printf_decl=yes
62176 fi
62177 rm -f conftest*
62178
62179 if test "$ice_cv_have_printf_decl" = yes; then
62180         break
62181 fi
62182 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62183 cat >conftest.$ac_ext <<_ACEOF
62184 /* confdefs.h.  */
62185 _ACEOF
62186 cat confdefs.h >>conftest.$ac_ext
62187 cat >>conftest.$ac_ext <<_ACEOF
62188 /* end confdefs.h.  */
62189 #include <$header>
62190
62191 _ACEOF
62192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62193   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62194   ice_cv_have_printf_decl=yes
62195 fi
62196 rm -f conftest*
62197
62198 if test "$ice_cv_have_printf_decl" = yes; then
62199         break
62200 fi
62201 done
62202
62203 fi
62204
62205 { echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
62206 echo "${ECHO_T}$ice_cv_have_printf_decl" >&6; }
62207 if test "$ice_cv_have_printf_decl" = yes; then
62208
62209 cat >>confdefs.h <<_ACEOF
62210 #define HAVE_PRINTF_DECL 1
62211 _ACEOF
62212
62213 fi
62214 fi
62215
62216
62217 for ac_func in putenv
62218 do
62219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62223   echo $ECHO_N "(cached) $ECHO_C" >&6
62224 else
62225   cat >conftest.$ac_ext <<_ACEOF
62226 /* confdefs.h.  */
62227 _ACEOF
62228 cat confdefs.h >>conftest.$ac_ext
62229 cat >>conftest.$ac_ext <<_ACEOF
62230 /* end confdefs.h.  */
62231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62233 #define $ac_func innocuous_$ac_func
62234
62235 /* System header to define __stub macros and hopefully few prototypes,
62236     which can conflict with char $ac_func (); below.
62237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62238     <limits.h> exists even on freestanding compilers.  */
62239
62240 #ifdef __STDC__
62241 # include <limits.h>
62242 #else
62243 # include <assert.h>
62244 #endif
62245
62246 #undef $ac_func
62247
62248 /* Override any GCC internal prototype to avoid an error.
62249    Use char because int might match the return type of a GCC
62250    builtin and then its argument prototype would still apply.  */
62251 #ifdef __cplusplus
62252 extern "C"
62253 #endif
62254 char $ac_func ();
62255 /* The GNU C library defines this for functions which it implements
62256     to always fail with ENOSYS.  Some functions are actually named
62257     something starting with __ and the normal name is an alias.  */
62258 #if defined __stub_$ac_func || defined __stub___$ac_func
62259 choke me
62260 #endif
62261
62262 int
62263 main ()
62264 {
62265 return $ac_func ();
62266   ;
62267   return 0;
62268 }
62269 _ACEOF
62270 rm -f conftest.$ac_objext conftest$ac_exeext
62271 if { (ac_try="$ac_link"
62272 case "(($ac_try" in
62273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62274   *) ac_try_echo=$ac_try;;
62275 esac
62276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62277   (eval "$ac_link") 2>conftest.er1
62278   ac_status=$?
62279   grep -v '^ *+' conftest.er1 >conftest.err
62280   rm -f conftest.er1
62281   cat conftest.err >&5
62282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62283   (exit $ac_status); } && {
62284          test -z "$ac_c_werror_flag" ||
62285          test ! -s conftest.err
62286        } && test -s conftest$ac_exeext &&
62287        $as_test_x conftest$ac_exeext; then
62288   eval "$as_ac_var=yes"
62289 else
62290   echo "$as_me: failed program was:" >&5
62291 sed 's/^/| /' conftest.$ac_ext >&5
62292
62293         eval "$as_ac_var=no"
62294 fi
62295
62296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62297       conftest$ac_exeext conftest.$ac_ext
62298 fi
62299 ac_res=`eval echo '${'$as_ac_var'}'`
62300                { echo "$as_me:$LINENO: result: $ac_res" >&5
62301 echo "${ECHO_T}$ac_res" >&6; }
62302 if test `eval echo '${'$as_ac_var'}'` = yes; then
62303   cat >>confdefs.h <<_ACEOF
62304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62305 _ACEOF
62306
62307 fi
62308 done
62309
62310
62311 ice_have_puts=no
62312
62313 for ac_func in puts
62314 do
62315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62316 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62319   echo $ECHO_N "(cached) $ECHO_C" >&6
62320 else
62321   cat >conftest.$ac_ext <<_ACEOF
62322 /* confdefs.h.  */
62323 _ACEOF
62324 cat confdefs.h >>conftest.$ac_ext
62325 cat >>conftest.$ac_ext <<_ACEOF
62326 /* end confdefs.h.  */
62327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62328    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62329 #define $ac_func innocuous_$ac_func
62330
62331 /* System header to define __stub macros and hopefully few prototypes,
62332     which can conflict with char $ac_func (); below.
62333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62334     <limits.h> exists even on freestanding compilers.  */
62335
62336 #ifdef __STDC__
62337 # include <limits.h>
62338 #else
62339 # include <assert.h>
62340 #endif
62341
62342 #undef $ac_func
62343
62344 /* Override any GCC internal prototype to avoid an error.
62345    Use char because int might match the return type of a GCC
62346    builtin and then its argument prototype would still apply.  */
62347 #ifdef __cplusplus
62348 extern "C"
62349 #endif
62350 char $ac_func ();
62351 /* The GNU C library defines this for functions which it implements
62352     to always fail with ENOSYS.  Some functions are actually named
62353     something starting with __ and the normal name is an alias.  */
62354 #if defined __stub_$ac_func || defined __stub___$ac_func
62355 choke me
62356 #endif
62357
62358 int
62359 main ()
62360 {
62361 return $ac_func ();
62362   ;
62363   return 0;
62364 }
62365 _ACEOF
62366 rm -f conftest.$ac_objext conftest$ac_exeext
62367 if { (ac_try="$ac_link"
62368 case "(($ac_try" in
62369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62370   *) ac_try_echo=$ac_try;;
62371 esac
62372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62373   (eval "$ac_link") 2>conftest.er1
62374   ac_status=$?
62375   grep -v '^ *+' conftest.er1 >conftest.err
62376   rm -f conftest.er1
62377   cat conftest.err >&5
62378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62379   (exit $ac_status); } && {
62380          test -z "$ac_c_werror_flag" ||
62381          test ! -s conftest.err
62382        } && test -s conftest$ac_exeext &&
62383        $as_test_x conftest$ac_exeext; then
62384   eval "$as_ac_var=yes"
62385 else
62386   echo "$as_me: failed program was:" >&5
62387 sed 's/^/| /' conftest.$ac_ext >&5
62388
62389         eval "$as_ac_var=no"
62390 fi
62391
62392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62393       conftest$ac_exeext conftest.$ac_ext
62394 fi
62395 ac_res=`eval echo '${'$as_ac_var'}'`
62396                { echo "$as_me:$LINENO: result: $ac_res" >&5
62397 echo "${ECHO_T}$ac_res" >&6; }
62398 if test `eval echo '${'$as_ac_var'}'` = yes; then
62399   cat >>confdefs.h <<_ACEOF
62400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62401 _ACEOF
62402  ice_have_puts=yes
62403 fi
62404 done
62405
62406 if test "${ice_have_puts}" = yes; then
62407 { echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
62408 echo $ECHO_N "checking for puts declaration in stdio.h... $ECHO_C" >&6; }
62409 if test "${ice_cv_have_puts_decl+set}" = set; then
62410   echo $ECHO_N "(cached) $ECHO_C" >&6
62411 else
62412
62413 ice_cv_have_puts_decl=no
62414 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62415 ice_re_word='(^|[^a-zA-Z0-9_])'
62416 for header in stdio.h; do
62417 # Check for ordinary declaration
62418 cat >conftest.$ac_ext <<_ACEOF
62419 /* confdefs.h.  */
62420 _ACEOF
62421 cat confdefs.h >>conftest.$ac_ext
62422 cat >>conftest.$ac_ext <<_ACEOF
62423 /* end confdefs.h.  */
62424 #include <$header>
62425
62426 _ACEOF
62427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62428   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then
62429   ice_cv_have_puts_decl=yes
62430 fi
62431 rm -f conftest*
62432
62433 if test "$ice_cv_have_puts_decl" = yes; then
62434         break
62435 fi
62436 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62437 cat >conftest.$ac_ext <<_ACEOF
62438 /* confdefs.h.  */
62439 _ACEOF
62440 cat confdefs.h >>conftest.$ac_ext
62441 cat >>conftest.$ac_ext <<_ACEOF
62442 /* end confdefs.h.  */
62443 #include <$header>
62444
62445 _ACEOF
62446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62447   $EGREP "${ice_re_word}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62448   ice_cv_have_puts_decl=yes
62449 fi
62450 rm -f conftest*
62451
62452 if test "$ice_cv_have_puts_decl" = yes; then
62453         break
62454 fi
62455 done
62456
62457 fi
62458
62459 { echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
62460 echo "${ECHO_T}$ice_cv_have_puts_decl" >&6; }
62461 if test "$ice_cv_have_puts_decl" = yes; then
62462
62463 cat >>confdefs.h <<_ACEOF
62464 #define HAVE_PUTS_DECL 1
62465 _ACEOF
62466
62467 fi
62468 fi
62469
62470
62471 ice_have_realloc=no
62472
62473 for ac_func in realloc
62474 do
62475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62479   echo $ECHO_N "(cached) $ECHO_C" >&6
62480 else
62481   cat >conftest.$ac_ext <<_ACEOF
62482 /* confdefs.h.  */
62483 _ACEOF
62484 cat confdefs.h >>conftest.$ac_ext
62485 cat >>conftest.$ac_ext <<_ACEOF
62486 /* end confdefs.h.  */
62487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62489 #define $ac_func innocuous_$ac_func
62490
62491 /* System header to define __stub macros and hopefully few prototypes,
62492     which can conflict with char $ac_func (); below.
62493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62494     <limits.h> exists even on freestanding compilers.  */
62495
62496 #ifdef __STDC__
62497 # include <limits.h>
62498 #else
62499 # include <assert.h>
62500 #endif
62501
62502 #undef $ac_func
62503
62504 /* Override any GCC internal prototype to avoid an error.
62505    Use char because int might match the return type of a GCC
62506    builtin and then its argument prototype would still apply.  */
62507 #ifdef __cplusplus
62508 extern "C"
62509 #endif
62510 char $ac_func ();
62511 /* The GNU C library defines this for functions which it implements
62512     to always fail with ENOSYS.  Some functions are actually named
62513     something starting with __ and the normal name is an alias.  */
62514 #if defined __stub_$ac_func || defined __stub___$ac_func
62515 choke me
62516 #endif
62517
62518 int
62519 main ()
62520 {
62521 return $ac_func ();
62522   ;
62523   return 0;
62524 }
62525 _ACEOF
62526 rm -f conftest.$ac_objext conftest$ac_exeext
62527 if { (ac_try="$ac_link"
62528 case "(($ac_try" in
62529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62530   *) ac_try_echo=$ac_try;;
62531 esac
62532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62533   (eval "$ac_link") 2>conftest.er1
62534   ac_status=$?
62535   grep -v '^ *+' conftest.er1 >conftest.err
62536   rm -f conftest.er1
62537   cat conftest.err >&5
62538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62539   (exit $ac_status); } && {
62540          test -z "$ac_c_werror_flag" ||
62541          test ! -s conftest.err
62542        } && test -s conftest$ac_exeext &&
62543        $as_test_x conftest$ac_exeext; then
62544   eval "$as_ac_var=yes"
62545 else
62546   echo "$as_me: failed program was:" >&5
62547 sed 's/^/| /' conftest.$ac_ext >&5
62548
62549         eval "$as_ac_var=no"
62550 fi
62551
62552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62553       conftest$ac_exeext conftest.$ac_ext
62554 fi
62555 ac_res=`eval echo '${'$as_ac_var'}'`
62556                { echo "$as_me:$LINENO: result: $ac_res" >&5
62557 echo "${ECHO_T}$ac_res" >&6; }
62558 if test `eval echo '${'$as_ac_var'}'` = yes; then
62559   cat >>confdefs.h <<_ACEOF
62560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62561 _ACEOF
62562  ice_have_realloc=yes
62563 fi
62564 done
62565
62566 if test "${ice_have_realloc}" = yes; then
62567 { echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
62568 echo $ECHO_N "checking for realloc declaration in stdlib.h... $ECHO_C" >&6; }
62569 if test "${ice_cv_have_realloc_decl+set}" = set; then
62570   echo $ECHO_N "(cached) $ECHO_C" >&6
62571 else
62572
62573 ice_cv_have_realloc_decl=no
62574 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62575 ice_re_word='(^|[^a-zA-Z0-9_])'
62576 for header in stdlib.h; do
62577 # Check for ordinary declaration
62578 cat >conftest.$ac_ext <<_ACEOF
62579 /* confdefs.h.  */
62580 _ACEOF
62581 cat confdefs.h >>conftest.$ac_ext
62582 cat >>conftest.$ac_ext <<_ACEOF
62583 /* end confdefs.h.  */
62584 #include <$header>
62585
62586 _ACEOF
62587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62588   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then
62589   ice_cv_have_realloc_decl=yes
62590 fi
62591 rm -f conftest*
62592
62593 if test "$ice_cv_have_realloc_decl" = yes; then
62594         break
62595 fi
62596 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62597 cat >conftest.$ac_ext <<_ACEOF
62598 /* confdefs.h.  */
62599 _ACEOF
62600 cat confdefs.h >>conftest.$ac_ext
62601 cat >>conftest.$ac_ext <<_ACEOF
62602 /* end confdefs.h.  */
62603 #include <$header>
62604
62605 _ACEOF
62606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62607   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62608   ice_cv_have_realloc_decl=yes
62609 fi
62610 rm -f conftest*
62611
62612 if test "$ice_cv_have_realloc_decl" = yes; then
62613         break
62614 fi
62615 done
62616
62617 fi
62618
62619 { echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
62620 echo "${ECHO_T}$ice_cv_have_realloc_decl" >&6; }
62621 if test "$ice_cv_have_realloc_decl" = yes; then
62622
62623 cat >>confdefs.h <<_ACEOF
62624 #define HAVE_REALLOC_DECL 1
62625 _ACEOF
62626
62627 fi
62628 fi
62629
62630
62631 ice_have_recvfrom=no
62632
62633 for ac_func in recvfrom
62634 do
62635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62639   echo $ECHO_N "(cached) $ECHO_C" >&6
62640 else
62641   cat >conftest.$ac_ext <<_ACEOF
62642 /* confdefs.h.  */
62643 _ACEOF
62644 cat confdefs.h >>conftest.$ac_ext
62645 cat >>conftest.$ac_ext <<_ACEOF
62646 /* end confdefs.h.  */
62647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62649 #define $ac_func innocuous_$ac_func
62650
62651 /* System header to define __stub macros and hopefully few prototypes,
62652     which can conflict with char $ac_func (); below.
62653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62654     <limits.h> exists even on freestanding compilers.  */
62655
62656 #ifdef __STDC__
62657 # include <limits.h>
62658 #else
62659 # include <assert.h>
62660 #endif
62661
62662 #undef $ac_func
62663
62664 /* Override any GCC internal prototype to avoid an error.
62665    Use char because int might match the return type of a GCC
62666    builtin and then its argument prototype would still apply.  */
62667 #ifdef __cplusplus
62668 extern "C"
62669 #endif
62670 char $ac_func ();
62671 /* The GNU C library defines this for functions which it implements
62672     to always fail with ENOSYS.  Some functions are actually named
62673     something starting with __ and the normal name is an alias.  */
62674 #if defined __stub_$ac_func || defined __stub___$ac_func
62675 choke me
62676 #endif
62677
62678 int
62679 main ()
62680 {
62681 return $ac_func ();
62682   ;
62683   return 0;
62684 }
62685 _ACEOF
62686 rm -f conftest.$ac_objext conftest$ac_exeext
62687 if { (ac_try="$ac_link"
62688 case "(($ac_try" in
62689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62690   *) ac_try_echo=$ac_try;;
62691 esac
62692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62693   (eval "$ac_link") 2>conftest.er1
62694   ac_status=$?
62695   grep -v '^ *+' conftest.er1 >conftest.err
62696   rm -f conftest.er1
62697   cat conftest.err >&5
62698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62699   (exit $ac_status); } && {
62700          test -z "$ac_c_werror_flag" ||
62701          test ! -s conftest.err
62702        } && test -s conftest$ac_exeext &&
62703        $as_test_x conftest$ac_exeext; then
62704   eval "$as_ac_var=yes"
62705 else
62706   echo "$as_me: failed program was:" >&5
62707 sed 's/^/| /' conftest.$ac_ext >&5
62708
62709         eval "$as_ac_var=no"
62710 fi
62711
62712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62713       conftest$ac_exeext conftest.$ac_ext
62714 fi
62715 ac_res=`eval echo '${'$as_ac_var'}'`
62716                { echo "$as_me:$LINENO: result: $ac_res" >&5
62717 echo "${ECHO_T}$ac_res" >&6; }
62718 if test `eval echo '${'$as_ac_var'}'` = yes; then
62719   cat >>confdefs.h <<_ACEOF
62720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62721 _ACEOF
62722  ice_have_recvfrom=yes
62723 fi
62724 done
62725
62726 if test "${ice_have_recvfrom}" = yes; then
62727 { echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
62728 echo $ECHO_N "checking for recvfrom declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
62729 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
62730   echo $ECHO_N "(cached) $ECHO_C" >&6
62731 else
62732
62733 ice_cv_have_recvfrom_decl=no
62734 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62735 ice_re_word='(^|[^a-zA-Z0-9_])'
62736 for header in sys/types.h sys/socket.h; do
62737 # Check for ordinary declaration
62738 cat >conftest.$ac_ext <<_ACEOF
62739 /* confdefs.h.  */
62740 _ACEOF
62741 cat confdefs.h >>conftest.$ac_ext
62742 cat >>conftest.$ac_ext <<_ACEOF
62743 /* end confdefs.h.  */
62744 #include <$header>
62745
62746 _ACEOF
62747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62748   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then
62749   ice_cv_have_recvfrom_decl=yes
62750 fi
62751 rm -f conftest*
62752
62753 if test "$ice_cv_have_recvfrom_decl" = yes; then
62754         break
62755 fi
62756 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62757 cat >conftest.$ac_ext <<_ACEOF
62758 /* confdefs.h.  */
62759 _ACEOF
62760 cat confdefs.h >>conftest.$ac_ext
62761 cat >>conftest.$ac_ext <<_ACEOF
62762 /* end confdefs.h.  */
62763 #include <$header>
62764
62765 _ACEOF
62766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62767   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62768   ice_cv_have_recvfrom_decl=yes
62769 fi
62770 rm -f conftest*
62771
62772 if test "$ice_cv_have_recvfrom_decl" = yes; then
62773         break
62774 fi
62775 done
62776
62777 fi
62778
62779 { echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
62780 echo "${ECHO_T}$ice_cv_have_recvfrom_decl" >&6; }
62781 if test "$ice_cv_have_recvfrom_decl" = yes; then
62782
62783 cat >>confdefs.h <<_ACEOF
62784 #define HAVE_RECVFROM_DECL 1
62785 _ACEOF
62786
62787 fi
62788 fi
62789
62790
62791 ice_have_remove=no
62792
62793 for ac_func in remove
62794 do
62795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62799   echo $ECHO_N "(cached) $ECHO_C" >&6
62800 else
62801   cat >conftest.$ac_ext <<_ACEOF
62802 /* confdefs.h.  */
62803 _ACEOF
62804 cat confdefs.h >>conftest.$ac_ext
62805 cat >>conftest.$ac_ext <<_ACEOF
62806 /* end confdefs.h.  */
62807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62809 #define $ac_func innocuous_$ac_func
62810
62811 /* System header to define __stub macros and hopefully few prototypes,
62812     which can conflict with char $ac_func (); below.
62813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62814     <limits.h> exists even on freestanding compilers.  */
62815
62816 #ifdef __STDC__
62817 # include <limits.h>
62818 #else
62819 # include <assert.h>
62820 #endif
62821
62822 #undef $ac_func
62823
62824 /* Override any GCC internal prototype to avoid an error.
62825    Use char because int might match the return type of a GCC
62826    builtin and then its argument prototype would still apply.  */
62827 #ifdef __cplusplus
62828 extern "C"
62829 #endif
62830 char $ac_func ();
62831 /* The GNU C library defines this for functions which it implements
62832     to always fail with ENOSYS.  Some functions are actually named
62833     something starting with __ and the normal name is an alias.  */
62834 #if defined __stub_$ac_func || defined __stub___$ac_func
62835 choke me
62836 #endif
62837
62838 int
62839 main ()
62840 {
62841 return $ac_func ();
62842   ;
62843   return 0;
62844 }
62845 _ACEOF
62846 rm -f conftest.$ac_objext conftest$ac_exeext
62847 if { (ac_try="$ac_link"
62848 case "(($ac_try" in
62849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62850   *) ac_try_echo=$ac_try;;
62851 esac
62852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62853   (eval "$ac_link") 2>conftest.er1
62854   ac_status=$?
62855   grep -v '^ *+' conftest.er1 >conftest.err
62856   rm -f conftest.er1
62857   cat conftest.err >&5
62858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62859   (exit $ac_status); } && {
62860          test -z "$ac_c_werror_flag" ||
62861          test ! -s conftest.err
62862        } && test -s conftest$ac_exeext &&
62863        $as_test_x conftest$ac_exeext; then
62864   eval "$as_ac_var=yes"
62865 else
62866   echo "$as_me: failed program was:" >&5
62867 sed 's/^/| /' conftest.$ac_ext >&5
62868
62869         eval "$as_ac_var=no"
62870 fi
62871
62872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62873       conftest$ac_exeext conftest.$ac_ext
62874 fi
62875 ac_res=`eval echo '${'$as_ac_var'}'`
62876                { echo "$as_me:$LINENO: result: $ac_res" >&5
62877 echo "${ECHO_T}$ac_res" >&6; }
62878 if test `eval echo '${'$as_ac_var'}'` = yes; then
62879   cat >>confdefs.h <<_ACEOF
62880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62881 _ACEOF
62882  ice_have_remove=yes
62883 fi
62884 done
62885
62886 if test "${ice_have_remove}" = yes; then
62887 { echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
62888 echo $ECHO_N "checking for remove declaration in stdio.h... $ECHO_C" >&6; }
62889 if test "${ice_cv_have_remove_decl+set}" = set; then
62890   echo $ECHO_N "(cached) $ECHO_C" >&6
62891 else
62892
62893 ice_cv_have_remove_decl=no
62894 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62895 ice_re_word='(^|[^a-zA-Z0-9_])'
62896 for header in stdio.h; do
62897 # Check for ordinary declaration
62898 cat >conftest.$ac_ext <<_ACEOF
62899 /* confdefs.h.  */
62900 _ACEOF
62901 cat confdefs.h >>conftest.$ac_ext
62902 cat >>conftest.$ac_ext <<_ACEOF
62903 /* end confdefs.h.  */
62904 #include <$header>
62905
62906 _ACEOF
62907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62908   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then
62909   ice_cv_have_remove_decl=yes
62910 fi
62911 rm -f conftest*
62912
62913 if test "$ice_cv_have_remove_decl" = yes; then
62914         break
62915 fi
62916 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62917 cat >conftest.$ac_ext <<_ACEOF
62918 /* confdefs.h.  */
62919 _ACEOF
62920 cat confdefs.h >>conftest.$ac_ext
62921 cat >>conftest.$ac_ext <<_ACEOF
62922 /* end confdefs.h.  */
62923 #include <$header>
62924
62925 _ACEOF
62926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62927   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62928   ice_cv_have_remove_decl=yes
62929 fi
62930 rm -f conftest*
62931
62932 if test "$ice_cv_have_remove_decl" = yes; then
62933         break
62934 fi
62935 done
62936
62937 fi
62938
62939 { echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
62940 echo "${ECHO_T}$ice_cv_have_remove_decl" >&6; }
62941 if test "$ice_cv_have_remove_decl" = yes; then
62942
62943 cat >>confdefs.h <<_ACEOF
62944 #define HAVE_REMOVE_DECL 1
62945 _ACEOF
62946
62947 fi
62948 fi
62949
62950
62951 ice_have_rename=no
62952
62953 for ac_func in rename
62954 do
62955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62959   echo $ECHO_N "(cached) $ECHO_C" >&6
62960 else
62961   cat >conftest.$ac_ext <<_ACEOF
62962 /* confdefs.h.  */
62963 _ACEOF
62964 cat confdefs.h >>conftest.$ac_ext
62965 cat >>conftest.$ac_ext <<_ACEOF
62966 /* end confdefs.h.  */
62967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62969 #define $ac_func innocuous_$ac_func
62970
62971 /* System header to define __stub macros and hopefully few prototypes,
62972     which can conflict with char $ac_func (); below.
62973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62974     <limits.h> exists even on freestanding compilers.  */
62975
62976 #ifdef __STDC__
62977 # include <limits.h>
62978 #else
62979 # include <assert.h>
62980 #endif
62981
62982 #undef $ac_func
62983
62984 /* Override any GCC internal prototype to avoid an error.
62985    Use char because int might match the return type of a GCC
62986    builtin and then its argument prototype would still apply.  */
62987 #ifdef __cplusplus
62988 extern "C"
62989 #endif
62990 char $ac_func ();
62991 /* The GNU C library defines this for functions which it implements
62992     to always fail with ENOSYS.  Some functions are actually named
62993     something starting with __ and the normal name is an alias.  */
62994 #if defined __stub_$ac_func || defined __stub___$ac_func
62995 choke me
62996 #endif
62997
62998 int
62999 main ()
63000 {
63001 return $ac_func ();
63002   ;
63003   return 0;
63004 }
63005 _ACEOF
63006 rm -f conftest.$ac_objext conftest$ac_exeext
63007 if { (ac_try="$ac_link"
63008 case "(($ac_try" in
63009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63010   *) ac_try_echo=$ac_try;;
63011 esac
63012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63013   (eval "$ac_link") 2>conftest.er1
63014   ac_status=$?
63015   grep -v '^ *+' conftest.er1 >conftest.err
63016   rm -f conftest.er1
63017   cat conftest.err >&5
63018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63019   (exit $ac_status); } && {
63020          test -z "$ac_c_werror_flag" ||
63021          test ! -s conftest.err
63022        } && test -s conftest$ac_exeext &&
63023        $as_test_x conftest$ac_exeext; then
63024   eval "$as_ac_var=yes"
63025 else
63026   echo "$as_me: failed program was:" >&5
63027 sed 's/^/| /' conftest.$ac_ext >&5
63028
63029         eval "$as_ac_var=no"
63030 fi
63031
63032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63033       conftest$ac_exeext conftest.$ac_ext
63034 fi
63035 ac_res=`eval echo '${'$as_ac_var'}'`
63036                { echo "$as_me:$LINENO: result: $ac_res" >&5
63037 echo "${ECHO_T}$ac_res" >&6; }
63038 if test `eval echo '${'$as_ac_var'}'` = yes; then
63039   cat >>confdefs.h <<_ACEOF
63040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63041 _ACEOF
63042  ice_have_rename=yes
63043 fi
63044 done
63045
63046 if test "${ice_have_rename}" = yes; then
63047 { echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
63048 echo $ECHO_N "checking for rename declaration in stdio.h... $ECHO_C" >&6; }
63049 if test "${ice_cv_have_rename_decl+set}" = set; then
63050   echo $ECHO_N "(cached) $ECHO_C" >&6
63051 else
63052
63053 ice_cv_have_rename_decl=no
63054 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63055 ice_re_word='(^|[^a-zA-Z0-9_])'
63056 for header in stdio.h; do
63057 # Check for ordinary declaration
63058 cat >conftest.$ac_ext <<_ACEOF
63059 /* confdefs.h.  */
63060 _ACEOF
63061 cat confdefs.h >>conftest.$ac_ext
63062 cat >>conftest.$ac_ext <<_ACEOF
63063 /* end confdefs.h.  */
63064 #include <$header>
63065
63066 _ACEOF
63067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63068   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then
63069   ice_cv_have_rename_decl=yes
63070 fi
63071 rm -f conftest*
63072
63073 if test "$ice_cv_have_rename_decl" = yes; then
63074         break
63075 fi
63076 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63077 cat >conftest.$ac_ext <<_ACEOF
63078 /* confdefs.h.  */
63079 _ACEOF
63080 cat confdefs.h >>conftest.$ac_ext
63081 cat >>conftest.$ac_ext <<_ACEOF
63082 /* end confdefs.h.  */
63083 #include <$header>
63084
63085 _ACEOF
63086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63087   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63088   ice_cv_have_rename_decl=yes
63089 fi
63090 rm -f conftest*
63091
63092 if test "$ice_cv_have_rename_decl" = yes; then
63093         break
63094 fi
63095 done
63096
63097 fi
63098
63099 { echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
63100 echo "${ECHO_T}$ice_cv_have_rename_decl" >&6; }
63101 if test "$ice_cv_have_rename_decl" = yes; then
63102
63103 cat >>confdefs.h <<_ACEOF
63104 #define HAVE_RENAME_DECL 1
63105 _ACEOF
63106
63107 fi
63108 fi
63109
63110
63111 ice_have_rewind=no
63112
63113 for ac_func in rewind
63114 do
63115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63119   echo $ECHO_N "(cached) $ECHO_C" >&6
63120 else
63121   cat >conftest.$ac_ext <<_ACEOF
63122 /* confdefs.h.  */
63123 _ACEOF
63124 cat confdefs.h >>conftest.$ac_ext
63125 cat >>conftest.$ac_ext <<_ACEOF
63126 /* end confdefs.h.  */
63127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63129 #define $ac_func innocuous_$ac_func
63130
63131 /* System header to define __stub macros and hopefully few prototypes,
63132     which can conflict with char $ac_func (); below.
63133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63134     <limits.h> exists even on freestanding compilers.  */
63135
63136 #ifdef __STDC__
63137 # include <limits.h>
63138 #else
63139 # include <assert.h>
63140 #endif
63141
63142 #undef $ac_func
63143
63144 /* Override any GCC internal prototype to avoid an error.
63145    Use char because int might match the return type of a GCC
63146    builtin and then its argument prototype would still apply.  */
63147 #ifdef __cplusplus
63148 extern "C"
63149 #endif
63150 char $ac_func ();
63151 /* The GNU C library defines this for functions which it implements
63152     to always fail with ENOSYS.  Some functions are actually named
63153     something starting with __ and the normal name is an alias.  */
63154 #if defined __stub_$ac_func || defined __stub___$ac_func
63155 choke me
63156 #endif
63157
63158 int
63159 main ()
63160 {
63161 return $ac_func ();
63162   ;
63163   return 0;
63164 }
63165 _ACEOF
63166 rm -f conftest.$ac_objext conftest$ac_exeext
63167 if { (ac_try="$ac_link"
63168 case "(($ac_try" in
63169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63170   *) ac_try_echo=$ac_try;;
63171 esac
63172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63173   (eval "$ac_link") 2>conftest.er1
63174   ac_status=$?
63175   grep -v '^ *+' conftest.er1 >conftest.err
63176   rm -f conftest.er1
63177   cat conftest.err >&5
63178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63179   (exit $ac_status); } && {
63180          test -z "$ac_c_werror_flag" ||
63181          test ! -s conftest.err
63182        } && test -s conftest$ac_exeext &&
63183        $as_test_x conftest$ac_exeext; then
63184   eval "$as_ac_var=yes"
63185 else
63186   echo "$as_me: failed program was:" >&5
63187 sed 's/^/| /' conftest.$ac_ext >&5
63188
63189         eval "$as_ac_var=no"
63190 fi
63191
63192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63193       conftest$ac_exeext conftest.$ac_ext
63194 fi
63195 ac_res=`eval echo '${'$as_ac_var'}'`
63196                { echo "$as_me:$LINENO: result: $ac_res" >&5
63197 echo "${ECHO_T}$ac_res" >&6; }
63198 if test `eval echo '${'$as_ac_var'}'` = yes; then
63199   cat >>confdefs.h <<_ACEOF
63200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63201 _ACEOF
63202  ice_have_rewind=yes
63203 fi
63204 done
63205
63206 if test "${ice_have_rewind}" = yes; then
63207 { echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
63208 echo $ECHO_N "checking for rewind declaration in stdio.h... $ECHO_C" >&6; }
63209 if test "${ice_cv_have_rewind_decl+set}" = set; then
63210   echo $ECHO_N "(cached) $ECHO_C" >&6
63211 else
63212
63213 ice_cv_have_rewind_decl=no
63214 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63215 ice_re_word='(^|[^a-zA-Z0-9_])'
63216 for header in stdio.h; do
63217 # Check for ordinary declaration
63218 cat >conftest.$ac_ext <<_ACEOF
63219 /* confdefs.h.  */
63220 _ACEOF
63221 cat confdefs.h >>conftest.$ac_ext
63222 cat >>conftest.$ac_ext <<_ACEOF
63223 /* end confdefs.h.  */
63224 #include <$header>
63225
63226 _ACEOF
63227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63228   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then
63229   ice_cv_have_rewind_decl=yes
63230 fi
63231 rm -f conftest*
63232
63233 if test "$ice_cv_have_rewind_decl" = yes; then
63234         break
63235 fi
63236 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63237 cat >conftest.$ac_ext <<_ACEOF
63238 /* confdefs.h.  */
63239 _ACEOF
63240 cat confdefs.h >>conftest.$ac_ext
63241 cat >>conftest.$ac_ext <<_ACEOF
63242 /* end confdefs.h.  */
63243 #include <$header>
63244
63245 _ACEOF
63246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63247   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63248   ice_cv_have_rewind_decl=yes
63249 fi
63250 rm -f conftest*
63251
63252 if test "$ice_cv_have_rewind_decl" = yes; then
63253         break
63254 fi
63255 done
63256
63257 fi
63258
63259 { echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
63260 echo "${ECHO_T}$ice_cv_have_rewind_decl" >&6; }
63261 if test "$ice_cv_have_rewind_decl" = yes; then
63262
63263 cat >>confdefs.h <<_ACEOF
63264 #define HAVE_REWIND_DECL 1
63265 _ACEOF
63266
63267 fi
63268 fi
63269
63270
63271 ice_have_ruserok=no
63272
63273 for ac_func in ruserok
63274 do
63275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63279   echo $ECHO_N "(cached) $ECHO_C" >&6
63280 else
63281   cat >conftest.$ac_ext <<_ACEOF
63282 /* confdefs.h.  */
63283 _ACEOF
63284 cat confdefs.h >>conftest.$ac_ext
63285 cat >>conftest.$ac_ext <<_ACEOF
63286 /* end confdefs.h.  */
63287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63288    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63289 #define $ac_func innocuous_$ac_func
63290
63291 /* System header to define __stub macros and hopefully few prototypes,
63292     which can conflict with char $ac_func (); below.
63293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63294     <limits.h> exists even on freestanding compilers.  */
63295
63296 #ifdef __STDC__
63297 # include <limits.h>
63298 #else
63299 # include <assert.h>
63300 #endif
63301
63302 #undef $ac_func
63303
63304 /* Override any GCC internal prototype to avoid an error.
63305    Use char because int might match the return type of a GCC
63306    builtin and then its argument prototype would still apply.  */
63307 #ifdef __cplusplus
63308 extern "C"
63309 #endif
63310 char $ac_func ();
63311 /* The GNU C library defines this for functions which it implements
63312     to always fail with ENOSYS.  Some functions are actually named
63313     something starting with __ and the normal name is an alias.  */
63314 #if defined __stub_$ac_func || defined __stub___$ac_func
63315 choke me
63316 #endif
63317
63318 int
63319 main ()
63320 {
63321 return $ac_func ();
63322   ;
63323   return 0;
63324 }
63325 _ACEOF
63326 rm -f conftest.$ac_objext conftest$ac_exeext
63327 if { (ac_try="$ac_link"
63328 case "(($ac_try" in
63329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63330   *) ac_try_echo=$ac_try;;
63331 esac
63332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63333   (eval "$ac_link") 2>conftest.er1
63334   ac_status=$?
63335   grep -v '^ *+' conftest.er1 >conftest.err
63336   rm -f conftest.er1
63337   cat conftest.err >&5
63338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63339   (exit $ac_status); } && {
63340          test -z "$ac_c_werror_flag" ||
63341          test ! -s conftest.err
63342        } && test -s conftest$ac_exeext &&
63343        $as_test_x conftest$ac_exeext; then
63344   eval "$as_ac_var=yes"
63345 else
63346   echo "$as_me: failed program was:" >&5
63347 sed 's/^/| /' conftest.$ac_ext >&5
63348
63349         eval "$as_ac_var=no"
63350 fi
63351
63352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63353       conftest$ac_exeext conftest.$ac_ext
63354 fi
63355 ac_res=`eval echo '${'$as_ac_var'}'`
63356                { echo "$as_me:$LINENO: result: $ac_res" >&5
63357 echo "${ECHO_T}$ac_res" >&6; }
63358 if test `eval echo '${'$as_ac_var'}'` = yes; then
63359   cat >>confdefs.h <<_ACEOF
63360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63361 _ACEOF
63362  ice_have_ruserok=yes
63363 fi
63364 done
63365
63366 if test "${ice_have_ruserok}" = yes; then
63367 { echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
63368 echo $ECHO_N "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... $ECHO_C" >&6; }
63369 if test "${ice_cv_have_ruserok_decl+set}" = set; then
63370   echo $ECHO_N "(cached) $ECHO_C" >&6
63371 else
63372
63373 ice_cv_have_ruserok_decl=no
63374 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63375 ice_re_word='(^|[^a-zA-Z0-9_])'
63376 for header in netdb.h sys/socket.h libc.h unistd.h; do
63377 # Check for ordinary declaration
63378 cat >conftest.$ac_ext <<_ACEOF
63379 /* confdefs.h.  */
63380 _ACEOF
63381 cat confdefs.h >>conftest.$ac_ext
63382 cat >>conftest.$ac_ext <<_ACEOF
63383 /* end confdefs.h.  */
63384 #include <$header>
63385
63386 _ACEOF
63387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63388   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then
63389   ice_cv_have_ruserok_decl=yes
63390 fi
63391 rm -f conftest*
63392
63393 if test "$ice_cv_have_ruserok_decl" = yes; then
63394         break
63395 fi
63396 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63397 cat >conftest.$ac_ext <<_ACEOF
63398 /* confdefs.h.  */
63399 _ACEOF
63400 cat confdefs.h >>conftest.$ac_ext
63401 cat >>conftest.$ac_ext <<_ACEOF
63402 /* end confdefs.h.  */
63403 #include <$header>
63404
63405 _ACEOF
63406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63407   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63408   ice_cv_have_ruserok_decl=yes
63409 fi
63410 rm -f conftest*
63411
63412 if test "$ice_cv_have_ruserok_decl" = yes; then
63413         break
63414 fi
63415 done
63416
63417 fi
63418
63419 { echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
63420 echo "${ECHO_T}$ice_cv_have_ruserok_decl" >&6; }
63421 if test "$ice_cv_have_ruserok_decl" = yes; then
63422
63423 cat >>confdefs.h <<_ACEOF
63424 #define HAVE_RUSEROK_DECL 1
63425 _ACEOF
63426
63427 fi
63428 fi
63429
63430
63431 ice_have_select=no
63432
63433 for ac_func in select
63434 do
63435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63436 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63439   echo $ECHO_N "(cached) $ECHO_C" >&6
63440 else
63441   cat >conftest.$ac_ext <<_ACEOF
63442 /* confdefs.h.  */
63443 _ACEOF
63444 cat confdefs.h >>conftest.$ac_ext
63445 cat >>conftest.$ac_ext <<_ACEOF
63446 /* end confdefs.h.  */
63447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63448    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63449 #define $ac_func innocuous_$ac_func
63450
63451 /* System header to define __stub macros and hopefully few prototypes,
63452     which can conflict with char $ac_func (); below.
63453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63454     <limits.h> exists even on freestanding compilers.  */
63455
63456 #ifdef __STDC__
63457 # include <limits.h>
63458 #else
63459 # include <assert.h>
63460 #endif
63461
63462 #undef $ac_func
63463
63464 /* Override any GCC internal prototype to avoid an error.
63465    Use char because int might match the return type of a GCC
63466    builtin and then its argument prototype would still apply.  */
63467 #ifdef __cplusplus
63468 extern "C"
63469 #endif
63470 char $ac_func ();
63471 /* The GNU C library defines this for functions which it implements
63472     to always fail with ENOSYS.  Some functions are actually named
63473     something starting with __ and the normal name is an alias.  */
63474 #if defined __stub_$ac_func || defined __stub___$ac_func
63475 choke me
63476 #endif
63477
63478 int
63479 main ()
63480 {
63481 return $ac_func ();
63482   ;
63483   return 0;
63484 }
63485 _ACEOF
63486 rm -f conftest.$ac_objext conftest$ac_exeext
63487 if { (ac_try="$ac_link"
63488 case "(($ac_try" in
63489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63490   *) ac_try_echo=$ac_try;;
63491 esac
63492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63493   (eval "$ac_link") 2>conftest.er1
63494   ac_status=$?
63495   grep -v '^ *+' conftest.er1 >conftest.err
63496   rm -f conftest.er1
63497   cat conftest.err >&5
63498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63499   (exit $ac_status); } && {
63500          test -z "$ac_c_werror_flag" ||
63501          test ! -s conftest.err
63502        } && test -s conftest$ac_exeext &&
63503        $as_test_x conftest$ac_exeext; then
63504   eval "$as_ac_var=yes"
63505 else
63506   echo "$as_me: failed program was:" >&5
63507 sed 's/^/| /' conftest.$ac_ext >&5
63508
63509         eval "$as_ac_var=no"
63510 fi
63511
63512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63513       conftest$ac_exeext conftest.$ac_ext
63514 fi
63515 ac_res=`eval echo '${'$as_ac_var'}'`
63516                { echo "$as_me:$LINENO: result: $ac_res" >&5
63517 echo "${ECHO_T}$ac_res" >&6; }
63518 if test `eval echo '${'$as_ac_var'}'` = yes; then
63519   cat >>confdefs.h <<_ACEOF
63520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63521 _ACEOF
63522  ice_have_select=yes
63523 fi
63524 done
63525
63526 if test "${ice_have_select}" = yes; then
63527 { echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
63528 echo $ECHO_N "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... $ECHO_C" >&6; }
63529 if test "${ice_cv_have_select_decl+set}" = set; then
63530   echo $ECHO_N "(cached) $ECHO_C" >&6
63531 else
63532
63533 ice_cv_have_select_decl=no
63534 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63535 ice_re_word='(^|[^a-zA-Z0-9_])'
63536 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
63537 # Check for ordinary declaration
63538 cat >conftest.$ac_ext <<_ACEOF
63539 /* confdefs.h.  */
63540 _ACEOF
63541 cat confdefs.h >>conftest.$ac_ext
63542 cat >>conftest.$ac_ext <<_ACEOF
63543 /* end confdefs.h.  */
63544 #include <$header>
63545
63546 _ACEOF
63547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63548   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then
63549   ice_cv_have_select_decl=yes
63550 fi
63551 rm -f conftest*
63552
63553 if test "$ice_cv_have_select_decl" = yes; then
63554         break
63555 fi
63556 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63557 cat >conftest.$ac_ext <<_ACEOF
63558 /* confdefs.h.  */
63559 _ACEOF
63560 cat confdefs.h >>conftest.$ac_ext
63561 cat >>conftest.$ac_ext <<_ACEOF
63562 /* end confdefs.h.  */
63563 #include <$header>
63564
63565 _ACEOF
63566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63567   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63568   ice_cv_have_select_decl=yes
63569 fi
63570 rm -f conftest*
63571
63572 if test "$ice_cv_have_select_decl" = yes; then
63573         break
63574 fi
63575 done
63576
63577 fi
63578
63579 { echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
63580 echo "${ECHO_T}$ice_cv_have_select_decl" >&6; }
63581 if test "$ice_cv_have_select_decl" = yes; then
63582
63583 cat >>confdefs.h <<_ACEOF
63584 #define HAVE_SELECT_DECL 1
63585 _ACEOF
63586
63587 fi
63588 fi
63589
63590
63591
63592
63593
63594
63595
63596
63597 for ac_header in sys/time.h \
63598             sys/types.h \
63599             sys/select.h \
63600             sys/socket.h \
63601             unistd.h \
63602
63603 do
63604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
63605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63606   { echo "$as_me:$LINENO: checking for $ac_header" >&5
63607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
63608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63609   echo $ECHO_N "(cached) $ECHO_C" >&6
63610 fi
63611 ac_res=`eval echo '${'$as_ac_Header'}'`
63612                { echo "$as_me:$LINENO: result: $ac_res" >&5
63613 echo "${ECHO_T}$ac_res" >&6; }
63614 else
63615   # Is the header compilable?
63616 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
63617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
63618 cat >conftest.$ac_ext <<_ACEOF
63619 /* confdefs.h.  */
63620 _ACEOF
63621 cat confdefs.h >>conftest.$ac_ext
63622 cat >>conftest.$ac_ext <<_ACEOF
63623 /* end confdefs.h.  */
63624 $ac_includes_default
63625 #include <$ac_header>
63626 _ACEOF
63627 rm -f conftest.$ac_objext
63628 if { (ac_try="$ac_compile"
63629 case "(($ac_try" in
63630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63631   *) ac_try_echo=$ac_try;;
63632 esac
63633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63634   (eval "$ac_compile") 2>conftest.er1
63635   ac_status=$?
63636   grep -v '^ *+' conftest.er1 >conftest.err
63637   rm -f conftest.er1
63638   cat conftest.err >&5
63639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63640   (exit $ac_status); } && {
63641          test -z "$ac_c_werror_flag" ||
63642          test ! -s conftest.err
63643        } && test -s conftest.$ac_objext; then
63644   ac_header_compiler=yes
63645 else
63646   echo "$as_me: failed program was:" >&5
63647 sed 's/^/| /' conftest.$ac_ext >&5
63648
63649         ac_header_compiler=no
63650 fi
63651
63652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63654 echo "${ECHO_T}$ac_header_compiler" >&6; }
63655
63656 # Is the header present?
63657 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
63658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
63659 cat >conftest.$ac_ext <<_ACEOF
63660 /* confdefs.h.  */
63661 _ACEOF
63662 cat confdefs.h >>conftest.$ac_ext
63663 cat >>conftest.$ac_ext <<_ACEOF
63664 /* end confdefs.h.  */
63665 #include <$ac_header>
63666 _ACEOF
63667 if { (ac_try="$ac_cpp conftest.$ac_ext"
63668 case "(($ac_try" in
63669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63670   *) ac_try_echo=$ac_try;;
63671 esac
63672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63673   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
63674   ac_status=$?
63675   grep -v '^ *+' conftest.er1 >conftest.err
63676   rm -f conftest.er1
63677   cat conftest.err >&5
63678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63679   (exit $ac_status); } >/dev/null && {
63680          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
63681          test ! -s conftest.err
63682        }; then
63683   ac_header_preproc=yes
63684 else
63685   echo "$as_me: failed program was:" >&5
63686 sed 's/^/| /' conftest.$ac_ext >&5
63687
63688   ac_header_preproc=no
63689 fi
63690
63691 rm -f conftest.err conftest.$ac_ext
63692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63693 echo "${ECHO_T}$ac_header_preproc" >&6; }
63694
63695 # So?  What about this header?
63696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63697   yes:no: )
63698     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
63699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
63700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
63701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
63702     ac_header_preproc=yes
63703     ;;
63704   no:yes:* )
63705     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
63706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
63707     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
63708 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
63709     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
63710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
63711     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
63712 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
63713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
63714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
63715     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
63716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
63717
63718     ;;
63719 esac
63720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
63721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
63722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63723   echo $ECHO_N "(cached) $ECHO_C" >&6
63724 else
63725   eval "$as_ac_Header=\$ac_header_preproc"
63726 fi
63727 ac_res=`eval echo '${'$as_ac_Header'}'`
63728                { echo "$as_me:$LINENO: result: $ac_res" >&5
63729 echo "${ECHO_T}$ac_res" >&6; }
63730
63731 fi
63732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
63733   cat >>confdefs.h <<_ACEOF
63734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
63735 _ACEOF
63736
63737 fi
63738
63739 done
63740
63741
63742         { echo "$as_me:$LINENO: checking for select() argument type" >&5
63743 echo $ECHO_N "checking for select() argument type... $ECHO_C" >&6; }
63744 if test "${amanda_cv_select_arg_type+set}" = set; then
63745   echo $ECHO_N "(cached) $ECHO_C" >&6
63746 else
63747
63748                 rm -f conftest.c
63749                 cat <<EOF >conftest.$ac_ext
63750 #include "confdefs.h"
63751 #ifdef TIME_WITH_SYS_TIME
63752 #  include <sys/time.h>
63753 #  include <time.h>
63754 #else
63755 #  ifdef HAVE_SYS_TIME_H
63756 #    include <sys/time.h>
63757 #  else
63758 #    include <time.h>
63759 #  endif
63760 #endif
63761 #ifdef HAVE_SYS_TYPES_H
63762 # include <sys/types.h>
63763 #endif
63764 #ifdef HAVE_SYS_SELECT_H
63765 #  include <sys/select.h>
63766 #endif
63767 #ifdef HAVE_SYS_SOCKET_H
63768 #  include <sys/socket.h>
63769 #endif
63770 #ifdef HAVE_UNISTD_H
63771 # include <unistd.h>
63772 #endif
63773
63774 int main()
63775 {
63776 #ifdef FD_SET_POINTER
63777         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
63778 #else
63779         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
63780 #endif
63781         return 0;
63782 }
63783 EOF
63784
63785                 # Figure out the select argument type by first trying to
63786                 # compile with the fd_set argument.  If the compile fails,
63787                 # then we know to use the int.  If it suceeds, then try to
63788                 # use the int.  If the int fails, then use fd_set.  If
63789                 # both suceeed, then do a line count on the number of
63790                 # lines that the compiler spit out, assuming that the
63791                 # compile outputing more lines had more errors.
63792                 amanda_cv_select_arg_type=no
63793                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
63794                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
63795                 if test $? -ne 0; then
63796                     amanda_cv_select_arg_type=int
63797                 fi
63798                 if test "$amanda_cv_select_arg_type" = no; then
63799                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
63800                     if test $? -ne 0; then
63801                         amanda_cv_select_arg_type=fd_set
63802                     fi
63803                 fi
63804                 if test "$amanda_cv_select_arg_type" = no; then
63805                     wc_fdset=`wc -l <conftest.fd_set`
63806                     wc_int=`wc -l <conftest.int`
63807                     if test "$wc_fdset" -le "$wc_int"; then
63808                         amanda_cv_select_arg_type=fd_set
63809                     else
63810                         amanda_cv_select_arg_type=int
63811                     fi
63812                 fi
63813                 rm -f conftest*
63814
63815
63816 fi
63817 { echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
63818 echo "${ECHO_T}$amanda_cv_select_arg_type" >&6; }
63819
63820 cat >>confdefs.h <<_ACEOF
63821 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
63822 _ACEOF
63823
63824
63825
63826
63827 ice_have_sendto=no
63828
63829 for ac_func in sendto
63830 do
63831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63835   echo $ECHO_N "(cached) $ECHO_C" >&6
63836 else
63837   cat >conftest.$ac_ext <<_ACEOF
63838 /* confdefs.h.  */
63839 _ACEOF
63840 cat confdefs.h >>conftest.$ac_ext
63841 cat >>conftest.$ac_ext <<_ACEOF
63842 /* end confdefs.h.  */
63843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63845 #define $ac_func innocuous_$ac_func
63846
63847 /* System header to define __stub macros and hopefully few prototypes,
63848     which can conflict with char $ac_func (); below.
63849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63850     <limits.h> exists even on freestanding compilers.  */
63851
63852 #ifdef __STDC__
63853 # include <limits.h>
63854 #else
63855 # include <assert.h>
63856 #endif
63857
63858 #undef $ac_func
63859
63860 /* Override any GCC internal prototype to avoid an error.
63861    Use char because int might match the return type of a GCC
63862    builtin and then its argument prototype would still apply.  */
63863 #ifdef __cplusplus
63864 extern "C"
63865 #endif
63866 char $ac_func ();
63867 /* The GNU C library defines this for functions which it implements
63868     to always fail with ENOSYS.  Some functions are actually named
63869     something starting with __ and the normal name is an alias.  */
63870 #if defined __stub_$ac_func || defined __stub___$ac_func
63871 choke me
63872 #endif
63873
63874 int
63875 main ()
63876 {
63877 return $ac_func ();
63878   ;
63879   return 0;
63880 }
63881 _ACEOF
63882 rm -f conftest.$ac_objext conftest$ac_exeext
63883 if { (ac_try="$ac_link"
63884 case "(($ac_try" in
63885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63886   *) ac_try_echo=$ac_try;;
63887 esac
63888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63889   (eval "$ac_link") 2>conftest.er1
63890   ac_status=$?
63891   grep -v '^ *+' conftest.er1 >conftest.err
63892   rm -f conftest.er1
63893   cat conftest.err >&5
63894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63895   (exit $ac_status); } && {
63896          test -z "$ac_c_werror_flag" ||
63897          test ! -s conftest.err
63898        } && test -s conftest$ac_exeext &&
63899        $as_test_x conftest$ac_exeext; then
63900   eval "$as_ac_var=yes"
63901 else
63902   echo "$as_me: failed program was:" >&5
63903 sed 's/^/| /' conftest.$ac_ext >&5
63904
63905         eval "$as_ac_var=no"
63906 fi
63907
63908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63909       conftest$ac_exeext conftest.$ac_ext
63910 fi
63911 ac_res=`eval echo '${'$as_ac_var'}'`
63912                { echo "$as_me:$LINENO: result: $ac_res" >&5
63913 echo "${ECHO_T}$ac_res" >&6; }
63914 if test `eval echo '${'$as_ac_var'}'` = yes; then
63915   cat >>confdefs.h <<_ACEOF
63916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63917 _ACEOF
63918  ice_have_sendto=yes
63919 fi
63920 done
63921
63922 if test "${ice_have_sendto}" = yes; then
63923 { echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
63924 echo $ECHO_N "checking for sendto declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
63925 if test "${ice_cv_have_sendto_decl+set}" = set; then
63926   echo $ECHO_N "(cached) $ECHO_C" >&6
63927 else
63928
63929 ice_cv_have_sendto_decl=no
63930 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63931 ice_re_word='(^|[^a-zA-Z0-9_])'
63932 for header in sys/types.h sys/socket.h; do
63933 # Check for ordinary declaration
63934 cat >conftest.$ac_ext <<_ACEOF
63935 /* confdefs.h.  */
63936 _ACEOF
63937 cat confdefs.h >>conftest.$ac_ext
63938 cat >>conftest.$ac_ext <<_ACEOF
63939 /* end confdefs.h.  */
63940 #include <$header>
63941
63942 _ACEOF
63943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63944   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then
63945   ice_cv_have_sendto_decl=yes
63946 fi
63947 rm -f conftest*
63948
63949 if test "$ice_cv_have_sendto_decl" = yes; then
63950         break
63951 fi
63952 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63953 cat >conftest.$ac_ext <<_ACEOF
63954 /* confdefs.h.  */
63955 _ACEOF
63956 cat confdefs.h >>conftest.$ac_ext
63957 cat >>conftest.$ac_ext <<_ACEOF
63958 /* end confdefs.h.  */
63959 #include <$header>
63960
63961 _ACEOF
63962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63963   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63964   ice_cv_have_sendto_decl=yes
63965 fi
63966 rm -f conftest*
63967
63968 if test "$ice_cv_have_sendto_decl" = yes; then
63969         break
63970 fi
63971 done
63972
63973 fi
63974
63975 { echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
63976 echo "${ECHO_T}$ice_cv_have_sendto_decl" >&6; }
63977 if test "$ice_cv_have_sendto_decl" = yes; then
63978
63979 cat >>confdefs.h <<_ACEOF
63980 #define HAVE_SENDTO_DECL 1
63981 _ACEOF
63982
63983 fi
63984 fi
63985
63986
63987 ice_have_setegid=no
63988
63989 for ac_func in setegid
63990 do
63991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63995   echo $ECHO_N "(cached) $ECHO_C" >&6
63996 else
63997   cat >conftest.$ac_ext <<_ACEOF
63998 /* confdefs.h.  */
63999 _ACEOF
64000 cat confdefs.h >>conftest.$ac_ext
64001 cat >>conftest.$ac_ext <<_ACEOF
64002 /* end confdefs.h.  */
64003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64005 #define $ac_func innocuous_$ac_func
64006
64007 /* System header to define __stub macros and hopefully few prototypes,
64008     which can conflict with char $ac_func (); below.
64009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64010     <limits.h> exists even on freestanding compilers.  */
64011
64012 #ifdef __STDC__
64013 # include <limits.h>
64014 #else
64015 # include <assert.h>
64016 #endif
64017
64018 #undef $ac_func
64019
64020 /* Override any GCC internal prototype to avoid an error.
64021    Use char because int might match the return type of a GCC
64022    builtin and then its argument prototype would still apply.  */
64023 #ifdef __cplusplus
64024 extern "C"
64025 #endif
64026 char $ac_func ();
64027 /* The GNU C library defines this for functions which it implements
64028     to always fail with ENOSYS.  Some functions are actually named
64029     something starting with __ and the normal name is an alias.  */
64030 #if defined __stub_$ac_func || defined __stub___$ac_func
64031 choke me
64032 #endif
64033
64034 int
64035 main ()
64036 {
64037 return $ac_func ();
64038   ;
64039   return 0;
64040 }
64041 _ACEOF
64042 rm -f conftest.$ac_objext conftest$ac_exeext
64043 if { (ac_try="$ac_link"
64044 case "(($ac_try" in
64045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64046   *) ac_try_echo=$ac_try;;
64047 esac
64048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64049   (eval "$ac_link") 2>conftest.er1
64050   ac_status=$?
64051   grep -v '^ *+' conftest.er1 >conftest.err
64052   rm -f conftest.er1
64053   cat conftest.err >&5
64054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64055   (exit $ac_status); } && {
64056          test -z "$ac_c_werror_flag" ||
64057          test ! -s conftest.err
64058        } && test -s conftest$ac_exeext &&
64059        $as_test_x conftest$ac_exeext; then
64060   eval "$as_ac_var=yes"
64061 else
64062   echo "$as_me: failed program was:" >&5
64063 sed 's/^/| /' conftest.$ac_ext >&5
64064
64065         eval "$as_ac_var=no"
64066 fi
64067
64068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64069       conftest$ac_exeext conftest.$ac_ext
64070 fi
64071 ac_res=`eval echo '${'$as_ac_var'}'`
64072                { echo "$as_me:$LINENO: result: $ac_res" >&5
64073 echo "${ECHO_T}$ac_res" >&6; }
64074 if test `eval echo '${'$as_ac_var'}'` = yes; then
64075   cat >>confdefs.h <<_ACEOF
64076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64077 _ACEOF
64078  ice_have_setegid=yes
64079 fi
64080 done
64081
64082 if test "${ice_have_setegid}" = yes; then
64083 { echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
64084 echo $ECHO_N "checking for setegid declaration in unistd.h... $ECHO_C" >&6; }
64085 if test "${ice_cv_have_setegid_decl+set}" = set; then
64086   echo $ECHO_N "(cached) $ECHO_C" >&6
64087 else
64088
64089 ice_cv_have_setegid_decl=no
64090 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64091 ice_re_word='(^|[^a-zA-Z0-9_])'
64092 for header in unistd.h; do
64093 # Check for ordinary declaration
64094 cat >conftest.$ac_ext <<_ACEOF
64095 /* confdefs.h.  */
64096 _ACEOF
64097 cat confdefs.h >>conftest.$ac_ext
64098 cat >>conftest.$ac_ext <<_ACEOF
64099 /* end confdefs.h.  */
64100 #include <$header>
64101
64102 _ACEOF
64103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64104   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then
64105   ice_cv_have_setegid_decl=yes
64106 fi
64107 rm -f conftest*
64108
64109 if test "$ice_cv_have_setegid_decl" = yes; then
64110         break
64111 fi
64112 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64113 cat >conftest.$ac_ext <<_ACEOF
64114 /* confdefs.h.  */
64115 _ACEOF
64116 cat confdefs.h >>conftest.$ac_ext
64117 cat >>conftest.$ac_ext <<_ACEOF
64118 /* end confdefs.h.  */
64119 #include <$header>
64120
64121 _ACEOF
64122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64123   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64124   ice_cv_have_setegid_decl=yes
64125 fi
64126 rm -f conftest*
64127
64128 if test "$ice_cv_have_setegid_decl" = yes; then
64129         break
64130 fi
64131 done
64132
64133 fi
64134
64135 { echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
64136 echo "${ECHO_T}$ice_cv_have_setegid_decl" >&6; }
64137 if test "$ice_cv_have_setegid_decl" = yes; then
64138
64139 cat >>confdefs.h <<_ACEOF
64140 #define HAVE_SETEGID_DECL 1
64141 _ACEOF
64142
64143 fi
64144 fi
64145
64146
64147 ice_have_seteuid=no
64148
64149 for ac_func in seteuid
64150 do
64151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64155   echo $ECHO_N "(cached) $ECHO_C" >&6
64156 else
64157   cat >conftest.$ac_ext <<_ACEOF
64158 /* confdefs.h.  */
64159 _ACEOF
64160 cat confdefs.h >>conftest.$ac_ext
64161 cat >>conftest.$ac_ext <<_ACEOF
64162 /* end confdefs.h.  */
64163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64165 #define $ac_func innocuous_$ac_func
64166
64167 /* System header to define __stub macros and hopefully few prototypes,
64168     which can conflict with char $ac_func (); below.
64169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64170     <limits.h> exists even on freestanding compilers.  */
64171
64172 #ifdef __STDC__
64173 # include <limits.h>
64174 #else
64175 # include <assert.h>
64176 #endif
64177
64178 #undef $ac_func
64179
64180 /* Override any GCC internal prototype to avoid an error.
64181    Use char because int might match the return type of a GCC
64182    builtin and then its argument prototype would still apply.  */
64183 #ifdef __cplusplus
64184 extern "C"
64185 #endif
64186 char $ac_func ();
64187 /* The GNU C library defines this for functions which it implements
64188     to always fail with ENOSYS.  Some functions are actually named
64189     something starting with __ and the normal name is an alias.  */
64190 #if defined __stub_$ac_func || defined __stub___$ac_func
64191 choke me
64192 #endif
64193
64194 int
64195 main ()
64196 {
64197 return $ac_func ();
64198   ;
64199   return 0;
64200 }
64201 _ACEOF
64202 rm -f conftest.$ac_objext conftest$ac_exeext
64203 if { (ac_try="$ac_link"
64204 case "(($ac_try" in
64205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64206   *) ac_try_echo=$ac_try;;
64207 esac
64208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64209   (eval "$ac_link") 2>conftest.er1
64210   ac_status=$?
64211   grep -v '^ *+' conftest.er1 >conftest.err
64212   rm -f conftest.er1
64213   cat conftest.err >&5
64214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64215   (exit $ac_status); } && {
64216          test -z "$ac_c_werror_flag" ||
64217          test ! -s conftest.err
64218        } && test -s conftest$ac_exeext &&
64219        $as_test_x conftest$ac_exeext; then
64220   eval "$as_ac_var=yes"
64221 else
64222   echo "$as_me: failed program was:" >&5
64223 sed 's/^/| /' conftest.$ac_ext >&5
64224
64225         eval "$as_ac_var=no"
64226 fi
64227
64228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64229       conftest$ac_exeext conftest.$ac_ext
64230 fi
64231 ac_res=`eval echo '${'$as_ac_var'}'`
64232                { echo "$as_me:$LINENO: result: $ac_res" >&5
64233 echo "${ECHO_T}$ac_res" >&6; }
64234 if test `eval echo '${'$as_ac_var'}'` = yes; then
64235   cat >>confdefs.h <<_ACEOF
64236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64237 _ACEOF
64238  ice_have_seteuid=yes
64239 fi
64240 done
64241
64242 if test "${ice_have_seteuid}" = yes; then
64243 { echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
64244 echo $ECHO_N "checking for seteuid declaration in unistd.h... $ECHO_C" >&6; }
64245 if test "${ice_cv_have_seteuid_decl+set}" = set; then
64246   echo $ECHO_N "(cached) $ECHO_C" >&6
64247 else
64248
64249 ice_cv_have_seteuid_decl=no
64250 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64251 ice_re_word='(^|[^a-zA-Z0-9_])'
64252 for header in unistd.h; do
64253 # Check for ordinary declaration
64254 cat >conftest.$ac_ext <<_ACEOF
64255 /* confdefs.h.  */
64256 _ACEOF
64257 cat confdefs.h >>conftest.$ac_ext
64258 cat >>conftest.$ac_ext <<_ACEOF
64259 /* end confdefs.h.  */
64260 #include <$header>
64261
64262 _ACEOF
64263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64264   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then
64265   ice_cv_have_seteuid_decl=yes
64266 fi
64267 rm -f conftest*
64268
64269 if test "$ice_cv_have_seteuid_decl" = yes; then
64270         break
64271 fi
64272 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64273 cat >conftest.$ac_ext <<_ACEOF
64274 /* confdefs.h.  */
64275 _ACEOF
64276 cat confdefs.h >>conftest.$ac_ext
64277 cat >>conftest.$ac_ext <<_ACEOF
64278 /* end confdefs.h.  */
64279 #include <$header>
64280
64281 _ACEOF
64282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64283   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64284   ice_cv_have_seteuid_decl=yes
64285 fi
64286 rm -f conftest*
64287
64288 if test "$ice_cv_have_seteuid_decl" = yes; then
64289         break
64290 fi
64291 done
64292
64293 fi
64294
64295 { echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
64296 echo "${ECHO_T}$ice_cv_have_seteuid_decl" >&6; }
64297 if test "$ice_cv_have_seteuid_decl" = yes; then
64298
64299 cat >>confdefs.h <<_ACEOF
64300 #define HAVE_SETEUID_DECL 1
64301 _ACEOF
64302
64303 fi
64304 fi
64305
64306
64307 ice_have_setresgid=no
64308
64309 for ac_func in setresgid
64310 do
64311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64315   echo $ECHO_N "(cached) $ECHO_C" >&6
64316 else
64317   cat >conftest.$ac_ext <<_ACEOF
64318 /* confdefs.h.  */
64319 _ACEOF
64320 cat confdefs.h >>conftest.$ac_ext
64321 cat >>conftest.$ac_ext <<_ACEOF
64322 /* end confdefs.h.  */
64323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64325 #define $ac_func innocuous_$ac_func
64326
64327 /* System header to define __stub macros and hopefully few prototypes,
64328     which can conflict with char $ac_func (); below.
64329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64330     <limits.h> exists even on freestanding compilers.  */
64331
64332 #ifdef __STDC__
64333 # include <limits.h>
64334 #else
64335 # include <assert.h>
64336 #endif
64337
64338 #undef $ac_func
64339
64340 /* Override any GCC internal prototype to avoid an error.
64341    Use char because int might match the return type of a GCC
64342    builtin and then its argument prototype would still apply.  */
64343 #ifdef __cplusplus
64344 extern "C"
64345 #endif
64346 char $ac_func ();
64347 /* The GNU C library defines this for functions which it implements
64348     to always fail with ENOSYS.  Some functions are actually named
64349     something starting with __ and the normal name is an alias.  */
64350 #if defined __stub_$ac_func || defined __stub___$ac_func
64351 choke me
64352 #endif
64353
64354 int
64355 main ()
64356 {
64357 return $ac_func ();
64358   ;
64359   return 0;
64360 }
64361 _ACEOF
64362 rm -f conftest.$ac_objext conftest$ac_exeext
64363 if { (ac_try="$ac_link"
64364 case "(($ac_try" in
64365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64366   *) ac_try_echo=$ac_try;;
64367 esac
64368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64369   (eval "$ac_link") 2>conftest.er1
64370   ac_status=$?
64371   grep -v '^ *+' conftest.er1 >conftest.err
64372   rm -f conftest.er1
64373   cat conftest.err >&5
64374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64375   (exit $ac_status); } && {
64376          test -z "$ac_c_werror_flag" ||
64377          test ! -s conftest.err
64378        } && test -s conftest$ac_exeext &&
64379        $as_test_x conftest$ac_exeext; then
64380   eval "$as_ac_var=yes"
64381 else
64382   echo "$as_me: failed program was:" >&5
64383 sed 's/^/| /' conftest.$ac_ext >&5
64384
64385         eval "$as_ac_var=no"
64386 fi
64387
64388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64389       conftest$ac_exeext conftest.$ac_ext
64390 fi
64391 ac_res=`eval echo '${'$as_ac_var'}'`
64392                { echo "$as_me:$LINENO: result: $ac_res" >&5
64393 echo "${ECHO_T}$ac_res" >&6; }
64394 if test `eval echo '${'$as_ac_var'}'` = yes; then
64395   cat >>confdefs.h <<_ACEOF
64396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64397 _ACEOF
64398  ice_have_setresgid=yes
64399 fi
64400 done
64401
64402 if test "${ice_have_setresgid}" = yes; then
64403 { echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
64404 echo $ECHO_N "checking for setresgid declaration in unistd.h... $ECHO_C" >&6; }
64405 if test "${ice_cv_have_setresgid_decl+set}" = set; then
64406   echo $ECHO_N "(cached) $ECHO_C" >&6
64407 else
64408
64409 ice_cv_have_setresgid_decl=no
64410 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64411 ice_re_word='(^|[^a-zA-Z0-9_])'
64412 for header in unistd.h; do
64413 # Check for ordinary declaration
64414 cat >conftest.$ac_ext <<_ACEOF
64415 /* confdefs.h.  */
64416 _ACEOF
64417 cat confdefs.h >>conftest.$ac_ext
64418 cat >>conftest.$ac_ext <<_ACEOF
64419 /* end confdefs.h.  */
64420 #include <$header>
64421
64422 _ACEOF
64423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64424   $EGREP "${ice_re_word}setresgid[      ]*\(" >/dev/null 2>&1; then
64425   ice_cv_have_setresgid_decl=yes
64426 fi
64427 rm -f conftest*
64428
64429 if test "$ice_cv_have_setresgid_decl" = yes; then
64430         break
64431 fi
64432 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64433 cat >conftest.$ac_ext <<_ACEOF
64434 /* confdefs.h.  */
64435 _ACEOF
64436 cat confdefs.h >>conftest.$ac_ext
64437 cat >>conftest.$ac_ext <<_ACEOF
64438 /* end confdefs.h.  */
64439 #include <$header>
64440
64441 _ACEOF
64442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64443   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64444   ice_cv_have_setresgid_decl=yes
64445 fi
64446 rm -f conftest*
64447
64448 if test "$ice_cv_have_setresgid_decl" = yes; then
64449         break
64450 fi
64451 done
64452
64453 fi
64454
64455 { echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
64456 echo "${ECHO_T}$ice_cv_have_setresgid_decl" >&6; }
64457 if test "$ice_cv_have_setresgid_decl" = yes; then
64458
64459 cat >>confdefs.h <<_ACEOF
64460 #define HAVE_SETRESGID_DECL 1
64461 _ACEOF
64462
64463 fi
64464 fi
64465
64466
64467 ice_have_setresuid=no
64468
64469 for ac_func in setresuid
64470 do
64471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64475   echo $ECHO_N "(cached) $ECHO_C" >&6
64476 else
64477   cat >conftest.$ac_ext <<_ACEOF
64478 /* confdefs.h.  */
64479 _ACEOF
64480 cat confdefs.h >>conftest.$ac_ext
64481 cat >>conftest.$ac_ext <<_ACEOF
64482 /* end confdefs.h.  */
64483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64485 #define $ac_func innocuous_$ac_func
64486
64487 /* System header to define __stub macros and hopefully few prototypes,
64488     which can conflict with char $ac_func (); below.
64489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64490     <limits.h> exists even on freestanding compilers.  */
64491
64492 #ifdef __STDC__
64493 # include <limits.h>
64494 #else
64495 # include <assert.h>
64496 #endif
64497
64498 #undef $ac_func
64499
64500 /* Override any GCC internal prototype to avoid an error.
64501    Use char because int might match the return type of a GCC
64502    builtin and then its argument prototype would still apply.  */
64503 #ifdef __cplusplus
64504 extern "C"
64505 #endif
64506 char $ac_func ();
64507 /* The GNU C library defines this for functions which it implements
64508     to always fail with ENOSYS.  Some functions are actually named
64509     something starting with __ and the normal name is an alias.  */
64510 #if defined __stub_$ac_func || defined __stub___$ac_func
64511 choke me
64512 #endif
64513
64514 int
64515 main ()
64516 {
64517 return $ac_func ();
64518   ;
64519   return 0;
64520 }
64521 _ACEOF
64522 rm -f conftest.$ac_objext conftest$ac_exeext
64523 if { (ac_try="$ac_link"
64524 case "(($ac_try" in
64525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64526   *) ac_try_echo=$ac_try;;
64527 esac
64528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64529   (eval "$ac_link") 2>conftest.er1
64530   ac_status=$?
64531   grep -v '^ *+' conftest.er1 >conftest.err
64532   rm -f conftest.er1
64533   cat conftest.err >&5
64534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64535   (exit $ac_status); } && {
64536          test -z "$ac_c_werror_flag" ||
64537          test ! -s conftest.err
64538        } && test -s conftest$ac_exeext &&
64539        $as_test_x conftest$ac_exeext; then
64540   eval "$as_ac_var=yes"
64541 else
64542   echo "$as_me: failed program was:" >&5
64543 sed 's/^/| /' conftest.$ac_ext >&5
64544
64545         eval "$as_ac_var=no"
64546 fi
64547
64548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64549       conftest$ac_exeext conftest.$ac_ext
64550 fi
64551 ac_res=`eval echo '${'$as_ac_var'}'`
64552                { echo "$as_me:$LINENO: result: $ac_res" >&5
64553 echo "${ECHO_T}$ac_res" >&6; }
64554 if test `eval echo '${'$as_ac_var'}'` = yes; then
64555   cat >>confdefs.h <<_ACEOF
64556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64557 _ACEOF
64558  ice_have_setresuid=yes
64559 fi
64560 done
64561
64562 if test "${ice_have_setresuid}" = yes; then
64563 { echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
64564 echo $ECHO_N "checking for setresuid declaration in unistd.h... $ECHO_C" >&6; }
64565 if test "${ice_cv_have_setresuid_decl+set}" = set; then
64566   echo $ECHO_N "(cached) $ECHO_C" >&6
64567 else
64568
64569 ice_cv_have_setresuid_decl=no
64570 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64571 ice_re_word='(^|[^a-zA-Z0-9_])'
64572 for header in unistd.h; do
64573 # Check for ordinary declaration
64574 cat >conftest.$ac_ext <<_ACEOF
64575 /* confdefs.h.  */
64576 _ACEOF
64577 cat confdefs.h >>conftest.$ac_ext
64578 cat >>conftest.$ac_ext <<_ACEOF
64579 /* end confdefs.h.  */
64580 #include <$header>
64581
64582 _ACEOF
64583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64584   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then
64585   ice_cv_have_setresuid_decl=yes
64586 fi
64587 rm -f conftest*
64588
64589 if test "$ice_cv_have_setresuid_decl" = yes; then
64590         break
64591 fi
64592 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64593 cat >conftest.$ac_ext <<_ACEOF
64594 /* confdefs.h.  */
64595 _ACEOF
64596 cat confdefs.h >>conftest.$ac_ext
64597 cat >>conftest.$ac_ext <<_ACEOF
64598 /* end confdefs.h.  */
64599 #include <$header>
64600
64601 _ACEOF
64602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64603   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64604   ice_cv_have_setresuid_decl=yes
64605 fi
64606 rm -f conftest*
64607
64608 if test "$ice_cv_have_setresuid_decl" = yes; then
64609         break
64610 fi
64611 done
64612
64613 fi
64614
64615 { echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
64616 echo "${ECHO_T}$ice_cv_have_setresuid_decl" >&6; }
64617 if test "$ice_cv_have_setresuid_decl" = yes; then
64618
64619 cat >>confdefs.h <<_ACEOF
64620 #define HAVE_SETRESUID_DECL 1
64621 _ACEOF
64622
64623 fi
64624 fi
64625
64626
64627 for ac_func in shquote
64628 do
64629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64630 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64633   echo $ECHO_N "(cached) $ECHO_C" >&6
64634 else
64635   cat >conftest.$ac_ext <<_ACEOF
64636 /* confdefs.h.  */
64637 _ACEOF
64638 cat confdefs.h >>conftest.$ac_ext
64639 cat >>conftest.$ac_ext <<_ACEOF
64640 /* end confdefs.h.  */
64641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64642    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64643 #define $ac_func innocuous_$ac_func
64644
64645 /* System header to define __stub macros and hopefully few prototypes,
64646     which can conflict with char $ac_func (); below.
64647     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64648     <limits.h> exists even on freestanding compilers.  */
64649
64650 #ifdef __STDC__
64651 # include <limits.h>
64652 #else
64653 # include <assert.h>
64654 #endif
64655
64656 #undef $ac_func
64657
64658 /* Override any GCC internal prototype to avoid an error.
64659    Use char because int might match the return type of a GCC
64660    builtin and then its argument prototype would still apply.  */
64661 #ifdef __cplusplus
64662 extern "C"
64663 #endif
64664 char $ac_func ();
64665 /* The GNU C library defines this for functions which it implements
64666     to always fail with ENOSYS.  Some functions are actually named
64667     something starting with __ and the normal name is an alias.  */
64668 #if defined __stub_$ac_func || defined __stub___$ac_func
64669 choke me
64670 #endif
64671
64672 int
64673 main ()
64674 {
64675 return $ac_func ();
64676   ;
64677   return 0;
64678 }
64679 _ACEOF
64680 rm -f conftest.$ac_objext conftest$ac_exeext
64681 if { (ac_try="$ac_link"
64682 case "(($ac_try" in
64683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64684   *) ac_try_echo=$ac_try;;
64685 esac
64686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64687   (eval "$ac_link") 2>conftest.er1
64688   ac_status=$?
64689   grep -v '^ *+' conftest.er1 >conftest.err
64690   rm -f conftest.er1
64691   cat conftest.err >&5
64692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64693   (exit $ac_status); } && {
64694          test -z "$ac_c_werror_flag" ||
64695          test ! -s conftest.err
64696        } && test -s conftest$ac_exeext &&
64697        $as_test_x conftest$ac_exeext; then
64698   eval "$as_ac_var=yes"
64699 else
64700   echo "$as_me: failed program was:" >&5
64701 sed 's/^/| /' conftest.$ac_ext >&5
64702
64703         eval "$as_ac_var=no"
64704 fi
64705
64706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64707       conftest$ac_exeext conftest.$ac_ext
64708 fi
64709 ac_res=`eval echo '${'$as_ac_var'}'`
64710                { echo "$as_me:$LINENO: result: $ac_res" >&5
64711 echo "${ECHO_T}$ac_res" >&6; }
64712 if test `eval echo '${'$as_ac_var'}'` = yes; then
64713   cat >>confdefs.h <<_ACEOF
64714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64715 _ACEOF
64716
64717 fi
64718 done
64719
64720
64721 ice_have_snprintf=no
64722
64723 for ac_func in snprintf
64724 do
64725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64729   echo $ECHO_N "(cached) $ECHO_C" >&6
64730 else
64731   cat >conftest.$ac_ext <<_ACEOF
64732 /* confdefs.h.  */
64733 _ACEOF
64734 cat confdefs.h >>conftest.$ac_ext
64735 cat >>conftest.$ac_ext <<_ACEOF
64736 /* end confdefs.h.  */
64737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64739 #define $ac_func innocuous_$ac_func
64740
64741 /* System header to define __stub macros and hopefully few prototypes,
64742     which can conflict with char $ac_func (); below.
64743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64744     <limits.h> exists even on freestanding compilers.  */
64745
64746 #ifdef __STDC__
64747 # include <limits.h>
64748 #else
64749 # include <assert.h>
64750 #endif
64751
64752 #undef $ac_func
64753
64754 /* Override any GCC internal prototype to avoid an error.
64755    Use char because int might match the return type of a GCC
64756    builtin and then its argument prototype would still apply.  */
64757 #ifdef __cplusplus
64758 extern "C"
64759 #endif
64760 char $ac_func ();
64761 /* The GNU C library defines this for functions which it implements
64762     to always fail with ENOSYS.  Some functions are actually named
64763     something starting with __ and the normal name is an alias.  */
64764 #if defined __stub_$ac_func || defined __stub___$ac_func
64765 choke me
64766 #endif
64767
64768 int
64769 main ()
64770 {
64771 return $ac_func ();
64772   ;
64773   return 0;
64774 }
64775 _ACEOF
64776 rm -f conftest.$ac_objext conftest$ac_exeext
64777 if { (ac_try="$ac_link"
64778 case "(($ac_try" in
64779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64780   *) ac_try_echo=$ac_try;;
64781 esac
64782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64783   (eval "$ac_link") 2>conftest.er1
64784   ac_status=$?
64785   grep -v '^ *+' conftest.er1 >conftest.err
64786   rm -f conftest.er1
64787   cat conftest.err >&5
64788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64789   (exit $ac_status); } && {
64790          test -z "$ac_c_werror_flag" ||
64791          test ! -s conftest.err
64792        } && test -s conftest$ac_exeext &&
64793        $as_test_x conftest$ac_exeext; then
64794   eval "$as_ac_var=yes"
64795 else
64796   echo "$as_me: failed program was:" >&5
64797 sed 's/^/| /' conftest.$ac_ext >&5
64798
64799         eval "$as_ac_var=no"
64800 fi
64801
64802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64803       conftest$ac_exeext conftest.$ac_ext
64804 fi
64805 ac_res=`eval echo '${'$as_ac_var'}'`
64806                { echo "$as_me:$LINENO: result: $ac_res" >&5
64807 echo "${ECHO_T}$ac_res" >&6; }
64808 if test `eval echo '${'$as_ac_var'}'` = yes; then
64809   cat >>confdefs.h <<_ACEOF
64810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64811 _ACEOF
64812  ice_have_snprintf=yes
64813 fi
64814 done
64815
64816 if test "${ice_have_snprintf}" = yes; then
64817 { echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
64818 echo $ECHO_N "checking for snprintf declaration in stdio.h... $ECHO_C" >&6; }
64819 if test "${ice_cv_have_snprintf_decl+set}" = set; then
64820   echo $ECHO_N "(cached) $ECHO_C" >&6
64821 else
64822
64823 ice_cv_have_snprintf_decl=no
64824 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64825 ice_re_word='(^|[^a-zA-Z0-9_])'
64826 for header in stdio.h; do
64827 # Check for ordinary declaration
64828 cat >conftest.$ac_ext <<_ACEOF
64829 /* confdefs.h.  */
64830 _ACEOF
64831 cat confdefs.h >>conftest.$ac_ext
64832 cat >>conftest.$ac_ext <<_ACEOF
64833 /* end confdefs.h.  */
64834 #include <$header>
64835
64836 _ACEOF
64837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64838   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then
64839   ice_cv_have_snprintf_decl=yes
64840 fi
64841 rm -f conftest*
64842
64843 if test "$ice_cv_have_snprintf_decl" = yes; then
64844         break
64845 fi
64846 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64847 cat >conftest.$ac_ext <<_ACEOF
64848 /* confdefs.h.  */
64849 _ACEOF
64850 cat confdefs.h >>conftest.$ac_ext
64851 cat >>conftest.$ac_ext <<_ACEOF
64852 /* end confdefs.h.  */
64853 #include <$header>
64854
64855 _ACEOF
64856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64857   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64858   ice_cv_have_snprintf_decl=yes
64859 fi
64860 rm -f conftest*
64861
64862 if test "$ice_cv_have_snprintf_decl" = yes; then
64863         break
64864 fi
64865 done
64866
64867 fi
64868
64869 { echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
64870 echo "${ECHO_T}$ice_cv_have_snprintf_decl" >&6; }
64871 if test "$ice_cv_have_snprintf_decl" = yes; then
64872
64873 cat >>confdefs.h <<_ACEOF
64874 #define HAVE_SNPRINTF_DECL 1
64875 _ACEOF
64876
64877 fi
64878 fi
64879
64880
64881 ice_have_vsnprintf=no
64882
64883 for ac_func in vsnprintf
64884 do
64885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64886 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64889   echo $ECHO_N "(cached) $ECHO_C" >&6
64890 else
64891   cat >conftest.$ac_ext <<_ACEOF
64892 /* confdefs.h.  */
64893 _ACEOF
64894 cat confdefs.h >>conftest.$ac_ext
64895 cat >>conftest.$ac_ext <<_ACEOF
64896 /* end confdefs.h.  */
64897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64899 #define $ac_func innocuous_$ac_func
64900
64901 /* System header to define __stub macros and hopefully few prototypes,
64902     which can conflict with char $ac_func (); below.
64903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64904     <limits.h> exists even on freestanding compilers.  */
64905
64906 #ifdef __STDC__
64907 # include <limits.h>
64908 #else
64909 # include <assert.h>
64910 #endif
64911
64912 #undef $ac_func
64913
64914 /* Override any GCC internal prototype to avoid an error.
64915    Use char because int might match the return type of a GCC
64916    builtin and then its argument prototype would still apply.  */
64917 #ifdef __cplusplus
64918 extern "C"
64919 #endif
64920 char $ac_func ();
64921 /* The GNU C library defines this for functions which it implements
64922     to always fail with ENOSYS.  Some functions are actually named
64923     something starting with __ and the normal name is an alias.  */
64924 #if defined __stub_$ac_func || defined __stub___$ac_func
64925 choke me
64926 #endif
64927
64928 int
64929 main ()
64930 {
64931 return $ac_func ();
64932   ;
64933   return 0;
64934 }
64935 _ACEOF
64936 rm -f conftest.$ac_objext conftest$ac_exeext
64937 if { (ac_try="$ac_link"
64938 case "(($ac_try" in
64939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64940   *) ac_try_echo=$ac_try;;
64941 esac
64942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64943   (eval "$ac_link") 2>conftest.er1
64944   ac_status=$?
64945   grep -v '^ *+' conftest.er1 >conftest.err
64946   rm -f conftest.er1
64947   cat conftest.err >&5
64948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64949   (exit $ac_status); } && {
64950          test -z "$ac_c_werror_flag" ||
64951          test ! -s conftest.err
64952        } && test -s conftest$ac_exeext &&
64953        $as_test_x conftest$ac_exeext; then
64954   eval "$as_ac_var=yes"
64955 else
64956   echo "$as_me: failed program was:" >&5
64957 sed 's/^/| /' conftest.$ac_ext >&5
64958
64959         eval "$as_ac_var=no"
64960 fi
64961
64962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64963       conftest$ac_exeext conftest.$ac_ext
64964 fi
64965 ac_res=`eval echo '${'$as_ac_var'}'`
64966                { echo "$as_me:$LINENO: result: $ac_res" >&5
64967 echo "${ECHO_T}$ac_res" >&6; }
64968 if test `eval echo '${'$as_ac_var'}'` = yes; then
64969   cat >>confdefs.h <<_ACEOF
64970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64971 _ACEOF
64972  ice_have_vsnprintf=yes
64973 fi
64974 done
64975
64976 if test "${ice_have_vsnprintf}" = yes; then
64977 { echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
64978 echo $ECHO_N "checking for vsnprintf declaration in stdio.h... $ECHO_C" >&6; }
64979 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
64980   echo $ECHO_N "(cached) $ECHO_C" >&6
64981 else
64982
64983 ice_cv_have_vsnprintf_decl=no
64984 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64985 ice_re_word='(^|[^a-zA-Z0-9_])'
64986 for header in stdio.h; do
64987 # Check for ordinary declaration
64988 cat >conftest.$ac_ext <<_ACEOF
64989 /* confdefs.h.  */
64990 _ACEOF
64991 cat confdefs.h >>conftest.$ac_ext
64992 cat >>conftest.$ac_ext <<_ACEOF
64993 /* end confdefs.h.  */
64994 #include <$header>
64995
64996 _ACEOF
64997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64998   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then
64999   ice_cv_have_vsnprintf_decl=yes
65000 fi
65001 rm -f conftest*
65002
65003 if test "$ice_cv_have_vsnprintf_decl" = yes; then
65004         break
65005 fi
65006 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65007 cat >conftest.$ac_ext <<_ACEOF
65008 /* confdefs.h.  */
65009 _ACEOF
65010 cat confdefs.h >>conftest.$ac_ext
65011 cat >>conftest.$ac_ext <<_ACEOF
65012 /* end confdefs.h.  */
65013 #include <$header>
65014
65015 _ACEOF
65016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65017   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65018   ice_cv_have_vsnprintf_decl=yes
65019 fi
65020 rm -f conftest*
65021
65022 if test "$ice_cv_have_vsnprintf_decl" = yes; then
65023         break
65024 fi
65025 done
65026
65027 fi
65028
65029 { echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
65030 echo "${ECHO_T}$ice_cv_have_vsnprintf_decl" >&6; }
65031 if test "$ice_cv_have_vsnprintf_decl" = yes; then
65032
65033 cat >>confdefs.h <<_ACEOF
65034 #define HAVE_VSNPRINTF_DECL 1
65035 _ACEOF
65036
65037 fi
65038 fi
65039
65040
65041     { echo "$as_me:$LINENO: checking for setpgid" >&5
65042 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6; }
65043 if test "${ac_cv_func_setpgid+set}" = set; then
65044   echo $ECHO_N "(cached) $ECHO_C" >&6
65045 else
65046   cat >conftest.$ac_ext <<_ACEOF
65047 /* confdefs.h.  */
65048 _ACEOF
65049 cat confdefs.h >>conftest.$ac_ext
65050 cat >>conftest.$ac_ext <<_ACEOF
65051 /* end confdefs.h.  */
65052 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
65053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65054 #define setpgid innocuous_setpgid
65055
65056 /* System header to define __stub macros and hopefully few prototypes,
65057     which can conflict with char setpgid (); below.
65058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65059     <limits.h> exists even on freestanding compilers.  */
65060
65061 #ifdef __STDC__
65062 # include <limits.h>
65063 #else
65064 # include <assert.h>
65065 #endif
65066
65067 #undef setpgid
65068
65069 /* Override any GCC internal prototype to avoid an error.
65070    Use char because int might match the return type of a GCC
65071    builtin and then its argument prototype would still apply.  */
65072 #ifdef __cplusplus
65073 extern "C"
65074 #endif
65075 char setpgid ();
65076 /* The GNU C library defines this for functions which it implements
65077     to always fail with ENOSYS.  Some functions are actually named
65078     something starting with __ and the normal name is an alias.  */
65079 #if defined __stub_setpgid || defined __stub___setpgid
65080 choke me
65081 #endif
65082
65083 int
65084 main ()
65085 {
65086 return setpgid ();
65087   ;
65088   return 0;
65089 }
65090 _ACEOF
65091 rm -f conftest.$ac_objext conftest$ac_exeext
65092 if { (ac_try="$ac_link"
65093 case "(($ac_try" in
65094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65095   *) ac_try_echo=$ac_try;;
65096 esac
65097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65098   (eval "$ac_link") 2>conftest.er1
65099   ac_status=$?
65100   grep -v '^ *+' conftest.er1 >conftest.err
65101   rm -f conftest.er1
65102   cat conftest.err >&5
65103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65104   (exit $ac_status); } && {
65105          test -z "$ac_c_werror_flag" ||
65106          test ! -s conftest.err
65107        } && test -s conftest$ac_exeext &&
65108        $as_test_x conftest$ac_exeext; then
65109   ac_cv_func_setpgid=yes
65110 else
65111   echo "$as_me: failed program was:" >&5
65112 sed 's/^/| /' conftest.$ac_ext >&5
65113
65114         ac_cv_func_setpgid=no
65115 fi
65116
65117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65118       conftest$ac_exeext conftest.$ac_ext
65119 fi
65120 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
65121 echo "${ECHO_T}$ac_cv_func_setpgid" >&6; }
65122 if test $ac_cv_func_setpgid = yes; then
65123
65124
65125 cat >>confdefs.h <<\_ACEOF
65126 #define HAVE_SETPGID 1
65127 _ACEOF
65128
65129
65130 ice_have_setpgid=no
65131
65132 for ac_func in setpgid
65133 do
65134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65138   echo $ECHO_N "(cached) $ECHO_C" >&6
65139 else
65140   cat >conftest.$ac_ext <<_ACEOF
65141 /* confdefs.h.  */
65142 _ACEOF
65143 cat confdefs.h >>conftest.$ac_ext
65144 cat >>conftest.$ac_ext <<_ACEOF
65145 /* end confdefs.h.  */
65146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65148 #define $ac_func innocuous_$ac_func
65149
65150 /* System header to define __stub macros and hopefully few prototypes,
65151     which can conflict with char $ac_func (); below.
65152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65153     <limits.h> exists even on freestanding compilers.  */
65154
65155 #ifdef __STDC__
65156 # include <limits.h>
65157 #else
65158 # include <assert.h>
65159 #endif
65160
65161 #undef $ac_func
65162
65163 /* Override any GCC internal prototype to avoid an error.
65164    Use char because int might match the return type of a GCC
65165    builtin and then its argument prototype would still apply.  */
65166 #ifdef __cplusplus
65167 extern "C"
65168 #endif
65169 char $ac_func ();
65170 /* The GNU C library defines this for functions which it implements
65171     to always fail with ENOSYS.  Some functions are actually named
65172     something starting with __ and the normal name is an alias.  */
65173 #if defined __stub_$ac_func || defined __stub___$ac_func
65174 choke me
65175 #endif
65176
65177 int
65178 main ()
65179 {
65180 return $ac_func ();
65181   ;
65182   return 0;
65183 }
65184 _ACEOF
65185 rm -f conftest.$ac_objext conftest$ac_exeext
65186 if { (ac_try="$ac_link"
65187 case "(($ac_try" in
65188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65189   *) ac_try_echo=$ac_try;;
65190 esac
65191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65192   (eval "$ac_link") 2>conftest.er1
65193   ac_status=$?
65194   grep -v '^ *+' conftest.er1 >conftest.err
65195   rm -f conftest.er1
65196   cat conftest.err >&5
65197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65198   (exit $ac_status); } && {
65199          test -z "$ac_c_werror_flag" ||
65200          test ! -s conftest.err
65201        } && test -s conftest$ac_exeext &&
65202        $as_test_x conftest$ac_exeext; then
65203   eval "$as_ac_var=yes"
65204 else
65205   echo "$as_me: failed program was:" >&5
65206 sed 's/^/| /' conftest.$ac_ext >&5
65207
65208         eval "$as_ac_var=no"
65209 fi
65210
65211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65212       conftest$ac_exeext conftest.$ac_ext
65213 fi
65214 ac_res=`eval echo '${'$as_ac_var'}'`
65215                { echo "$as_me:$LINENO: result: $ac_res" >&5
65216 echo "${ECHO_T}$ac_res" >&6; }
65217 if test `eval echo '${'$as_ac_var'}'` = yes; then
65218   cat >>confdefs.h <<_ACEOF
65219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65220 _ACEOF
65221  ice_have_setpgid=yes
65222 fi
65223 done
65224
65225 if test "${ice_have_setpgid}" = yes; then
65226 { echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
65227 echo $ECHO_N "checking for setpgid declaration in sys/types.h unistd.h... $ECHO_C" >&6; }
65228 if test "${ice_cv_have_setpgid_decl+set}" = set; then
65229   echo $ECHO_N "(cached) $ECHO_C" >&6
65230 else
65231
65232 ice_cv_have_setpgid_decl=no
65233 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65234 ice_re_word='(^|[^a-zA-Z0-9_])'
65235 for header in sys/types.h unistd.h; do
65236 # Check for ordinary declaration
65237 cat >conftest.$ac_ext <<_ACEOF
65238 /* confdefs.h.  */
65239 _ACEOF
65240 cat confdefs.h >>conftest.$ac_ext
65241 cat >>conftest.$ac_ext <<_ACEOF
65242 /* end confdefs.h.  */
65243 #include <$header>
65244
65245 _ACEOF
65246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65247   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then
65248   ice_cv_have_setpgid_decl=yes
65249 fi
65250 rm -f conftest*
65251
65252 if test "$ice_cv_have_setpgid_decl" = yes; then
65253         break
65254 fi
65255 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65256 cat >conftest.$ac_ext <<_ACEOF
65257 /* confdefs.h.  */
65258 _ACEOF
65259 cat confdefs.h >>conftest.$ac_ext
65260 cat >>conftest.$ac_ext <<_ACEOF
65261 /* end confdefs.h.  */
65262 #include <$header>
65263
65264 _ACEOF
65265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65266   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65267   ice_cv_have_setpgid_decl=yes
65268 fi
65269 rm -f conftest*
65270
65271 if test "$ice_cv_have_setpgid_decl" = yes; then
65272         break
65273 fi
65274 done
65275
65276 fi
65277
65278 { echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
65279 echo "${ECHO_T}$ice_cv_have_setpgid_decl" >&6; }
65280 if test "$ice_cv_have_setpgid_decl" = yes; then
65281
65282 cat >>confdefs.h <<_ACEOF
65283 #define HAVE_SETPGID_DECL 1
65284 _ACEOF
65285
65286 fi
65287 fi
65288
65289
65290 fi
65291
65292
65293 { echo "$as_me:$LINENO: checking for setpgrp" >&5
65294 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6; }
65295 if test "${ac_cv_func_setpgrp+set}" = set; then
65296   echo $ECHO_N "(cached) $ECHO_C" >&6
65297 else
65298   cat >conftest.$ac_ext <<_ACEOF
65299 /* confdefs.h.  */
65300 _ACEOF
65301 cat confdefs.h >>conftest.$ac_ext
65302 cat >>conftest.$ac_ext <<_ACEOF
65303 /* end confdefs.h.  */
65304 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
65305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65306 #define setpgrp innocuous_setpgrp
65307
65308 /* System header to define __stub macros and hopefully few prototypes,
65309     which can conflict with char setpgrp (); below.
65310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65311     <limits.h> exists even on freestanding compilers.  */
65312
65313 #ifdef __STDC__
65314 # include <limits.h>
65315 #else
65316 # include <assert.h>
65317 #endif
65318
65319 #undef setpgrp
65320
65321 /* Override any GCC internal prototype to avoid an error.
65322    Use char because int might match the return type of a GCC
65323    builtin and then its argument prototype would still apply.  */
65324 #ifdef __cplusplus
65325 extern "C"
65326 #endif
65327 char setpgrp ();
65328 /* The GNU C library defines this for functions which it implements
65329     to always fail with ENOSYS.  Some functions are actually named
65330     something starting with __ and the normal name is an alias.  */
65331 #if defined __stub_setpgrp || defined __stub___setpgrp
65332 choke me
65333 #endif
65334
65335 int
65336 main ()
65337 {
65338 return setpgrp ();
65339   ;
65340   return 0;
65341 }
65342 _ACEOF
65343 rm -f conftest.$ac_objext conftest$ac_exeext
65344 if { (ac_try="$ac_link"
65345 case "(($ac_try" in
65346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65347   *) ac_try_echo=$ac_try;;
65348 esac
65349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65350   (eval "$ac_link") 2>conftest.er1
65351   ac_status=$?
65352   grep -v '^ *+' conftest.er1 >conftest.err
65353   rm -f conftest.er1
65354   cat conftest.err >&5
65355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65356   (exit $ac_status); } && {
65357          test -z "$ac_c_werror_flag" ||
65358          test ! -s conftest.err
65359        } && test -s conftest$ac_exeext &&
65360        $as_test_x conftest$ac_exeext; then
65361   ac_cv_func_setpgrp=yes
65362 else
65363   echo "$as_me: failed program was:" >&5
65364 sed 's/^/| /' conftest.$ac_ext >&5
65365
65366         ac_cv_func_setpgrp=no
65367 fi
65368
65369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65370       conftest$ac_exeext conftest.$ac_ext
65371 fi
65372 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
65373 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6; }
65374 if test $ac_cv_func_setpgrp = yes; then
65375   { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
65376 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
65377 if test "${ac_cv_func_setpgrp_void+set}" = set; then
65378   echo $ECHO_N "(cached) $ECHO_C" >&6
65379 else
65380   if test "$cross_compiling" = yes; then
65381   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
65382 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
65383    { (exit 1); exit 1; }; }
65384 else
65385   cat >conftest.$ac_ext <<_ACEOF
65386 /* confdefs.h.  */
65387 _ACEOF
65388 cat confdefs.h >>conftest.$ac_ext
65389 cat >>conftest.$ac_ext <<_ACEOF
65390 /* end confdefs.h.  */
65391 $ac_includes_default
65392 int
65393 main ()
65394 {
65395 /* If this system has a BSD-style setpgrp which takes arguments,
65396   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
65397   exit successfully. */
65398   return setpgrp (1,1) != -1;
65399   ;
65400   return 0;
65401 }
65402 _ACEOF
65403 rm -f conftest$ac_exeext
65404 if { (ac_try="$ac_link"
65405 case "(($ac_try" in
65406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65407   *) ac_try_echo=$ac_try;;
65408 esac
65409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65410   (eval "$ac_link") 2>&5
65411   ac_status=$?
65412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
65414   { (case "(($ac_try" in
65415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65416   *) ac_try_echo=$ac_try;;
65417 esac
65418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65419   (eval "$ac_try") 2>&5
65420   ac_status=$?
65421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65422   (exit $ac_status); }; }; then
65423   ac_cv_func_setpgrp_void=no
65424 else
65425   echo "$as_me: program exited with status $ac_status" >&5
65426 echo "$as_me: failed program was:" >&5
65427 sed 's/^/| /' conftest.$ac_ext >&5
65428
65429 ( exit $ac_status )
65430 ac_cv_func_setpgrp_void=yes
65431 fi
65432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
65433 fi
65434
65435
65436 fi
65437 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
65438 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
65439 if test $ac_cv_func_setpgrp_void = yes; then
65440
65441 cat >>confdefs.h <<\_ACEOF
65442 #define SETPGRP_VOID 1
65443 _ACEOF
65444
65445 fi
65446
65447 fi
65448
65449
65450 ice_have_setpgrp=no
65451
65452 for ac_func in setpgrp
65453 do
65454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65458   echo $ECHO_N "(cached) $ECHO_C" >&6
65459 else
65460   cat >conftest.$ac_ext <<_ACEOF
65461 /* confdefs.h.  */
65462 _ACEOF
65463 cat confdefs.h >>conftest.$ac_ext
65464 cat >>conftest.$ac_ext <<_ACEOF
65465 /* end confdefs.h.  */
65466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65468 #define $ac_func innocuous_$ac_func
65469
65470 /* System header to define __stub macros and hopefully few prototypes,
65471     which can conflict with char $ac_func (); below.
65472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65473     <limits.h> exists even on freestanding compilers.  */
65474
65475 #ifdef __STDC__
65476 # include <limits.h>
65477 #else
65478 # include <assert.h>
65479 #endif
65480
65481 #undef $ac_func
65482
65483 /* Override any GCC internal prototype to avoid an error.
65484    Use char because int might match the return type of a GCC
65485    builtin and then its argument prototype would still apply.  */
65486 #ifdef __cplusplus
65487 extern "C"
65488 #endif
65489 char $ac_func ();
65490 /* The GNU C library defines this for functions which it implements
65491     to always fail with ENOSYS.  Some functions are actually named
65492     something starting with __ and the normal name is an alias.  */
65493 #if defined __stub_$ac_func || defined __stub___$ac_func
65494 choke me
65495 #endif
65496
65497 int
65498 main ()
65499 {
65500 return $ac_func ();
65501   ;
65502   return 0;
65503 }
65504 _ACEOF
65505 rm -f conftest.$ac_objext conftest$ac_exeext
65506 if { (ac_try="$ac_link"
65507 case "(($ac_try" in
65508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65509   *) ac_try_echo=$ac_try;;
65510 esac
65511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65512   (eval "$ac_link") 2>conftest.er1
65513   ac_status=$?
65514   grep -v '^ *+' conftest.er1 >conftest.err
65515   rm -f conftest.er1
65516   cat conftest.err >&5
65517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65518   (exit $ac_status); } && {
65519          test -z "$ac_c_werror_flag" ||
65520          test ! -s conftest.err
65521        } && test -s conftest$ac_exeext &&
65522        $as_test_x conftest$ac_exeext; then
65523   eval "$as_ac_var=yes"
65524 else
65525   echo "$as_me: failed program was:" >&5
65526 sed 's/^/| /' conftest.$ac_ext >&5
65527
65528         eval "$as_ac_var=no"
65529 fi
65530
65531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65532       conftest$ac_exeext conftest.$ac_ext
65533 fi
65534 ac_res=`eval echo '${'$as_ac_var'}'`
65535                { echo "$as_me:$LINENO: result: $ac_res" >&5
65536 echo "${ECHO_T}$ac_res" >&6; }
65537 if test `eval echo '${'$as_ac_var'}'` = yes; then
65538   cat >>confdefs.h <<_ACEOF
65539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65540 _ACEOF
65541  ice_have_setpgrp=yes
65542 fi
65543 done
65544
65545 if test "${ice_have_setpgrp}" = yes; then
65546 { echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
65547 echo $ECHO_N "checking for setpgrp declaration in sys/types.h unistd.h libc.h... $ECHO_C" >&6; }
65548 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
65549   echo $ECHO_N "(cached) $ECHO_C" >&6
65550 else
65551
65552 ice_cv_have_setpgrp_decl=no
65553 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65554 ice_re_word='(^|[^a-zA-Z0-9_])'
65555 for header in sys/types.h unistd.h libc.h; do
65556 # Check for ordinary declaration
65557 cat >conftest.$ac_ext <<_ACEOF
65558 /* confdefs.h.  */
65559 _ACEOF
65560 cat confdefs.h >>conftest.$ac_ext
65561 cat >>conftest.$ac_ext <<_ACEOF
65562 /* end confdefs.h.  */
65563 #include <$header>
65564
65565 _ACEOF
65566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65567   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then
65568   ice_cv_have_setpgrp_decl=yes
65569 fi
65570 rm -f conftest*
65571
65572 if test "$ice_cv_have_setpgrp_decl" = yes; then
65573         break
65574 fi
65575 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65576 cat >conftest.$ac_ext <<_ACEOF
65577 /* confdefs.h.  */
65578 _ACEOF
65579 cat confdefs.h >>conftest.$ac_ext
65580 cat >>conftest.$ac_ext <<_ACEOF
65581 /* end confdefs.h.  */
65582 #include <$header>
65583
65584 _ACEOF
65585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65586   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65587   ice_cv_have_setpgrp_decl=yes
65588 fi
65589 rm -f conftest*
65590
65591 if test "$ice_cv_have_setpgrp_decl" = yes; then
65592         break
65593 fi
65594 done
65595
65596 fi
65597
65598 { echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
65599 echo "${ECHO_T}$ice_cv_have_setpgrp_decl" >&6; }
65600 if test "$ice_cv_have_setpgrp_decl" = yes; then
65601
65602 cat >>confdefs.h <<_ACEOF
65603 #define HAVE_SETPGRP_DECL 1
65604 _ACEOF
65605
65606 fi
65607 fi
65608
65609
65610 ice_have_setsockopt=no
65611
65612 for ac_func in setsockopt
65613 do
65614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65618   echo $ECHO_N "(cached) $ECHO_C" >&6
65619 else
65620   cat >conftest.$ac_ext <<_ACEOF
65621 /* confdefs.h.  */
65622 _ACEOF
65623 cat confdefs.h >>conftest.$ac_ext
65624 cat >>conftest.$ac_ext <<_ACEOF
65625 /* end confdefs.h.  */
65626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65628 #define $ac_func innocuous_$ac_func
65629
65630 /* System header to define __stub macros and hopefully few prototypes,
65631     which can conflict with char $ac_func (); below.
65632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65633     <limits.h> exists even on freestanding compilers.  */
65634
65635 #ifdef __STDC__
65636 # include <limits.h>
65637 #else
65638 # include <assert.h>
65639 #endif
65640
65641 #undef $ac_func
65642
65643 /* Override any GCC internal prototype to avoid an error.
65644    Use char because int might match the return type of a GCC
65645    builtin and then its argument prototype would still apply.  */
65646 #ifdef __cplusplus
65647 extern "C"
65648 #endif
65649 char $ac_func ();
65650 /* The GNU C library defines this for functions which it implements
65651     to always fail with ENOSYS.  Some functions are actually named
65652     something starting with __ and the normal name is an alias.  */
65653 #if defined __stub_$ac_func || defined __stub___$ac_func
65654 choke me
65655 #endif
65656
65657 int
65658 main ()
65659 {
65660 return $ac_func ();
65661   ;
65662   return 0;
65663 }
65664 _ACEOF
65665 rm -f conftest.$ac_objext conftest$ac_exeext
65666 if { (ac_try="$ac_link"
65667 case "(($ac_try" in
65668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65669   *) ac_try_echo=$ac_try;;
65670 esac
65671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65672   (eval "$ac_link") 2>conftest.er1
65673   ac_status=$?
65674   grep -v '^ *+' conftest.er1 >conftest.err
65675   rm -f conftest.er1
65676   cat conftest.err >&5
65677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65678   (exit $ac_status); } && {
65679          test -z "$ac_c_werror_flag" ||
65680          test ! -s conftest.err
65681        } && test -s conftest$ac_exeext &&
65682        $as_test_x conftest$ac_exeext; then
65683   eval "$as_ac_var=yes"
65684 else
65685   echo "$as_me: failed program was:" >&5
65686 sed 's/^/| /' conftest.$ac_ext >&5
65687
65688         eval "$as_ac_var=no"
65689 fi
65690
65691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65692       conftest$ac_exeext conftest.$ac_ext
65693 fi
65694 ac_res=`eval echo '${'$as_ac_var'}'`
65695                { echo "$as_me:$LINENO: result: $ac_res" >&5
65696 echo "${ECHO_T}$ac_res" >&6; }
65697 if test `eval echo '${'$as_ac_var'}'` = yes; then
65698   cat >>confdefs.h <<_ACEOF
65699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65700 _ACEOF
65701  ice_have_setsockopt=yes
65702 fi
65703 done
65704
65705 if test "${ice_have_setsockopt}" = yes; then
65706 { echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
65707 echo $ECHO_N "checking for setsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
65708 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
65709   echo $ECHO_N "(cached) $ECHO_C" >&6
65710 else
65711
65712 ice_cv_have_setsockopt_decl=no
65713 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65714 ice_re_word='(^|[^a-zA-Z0-9_])'
65715 for header in sys/types.h sys/socket.h; do
65716 # Check for ordinary declaration
65717 cat >conftest.$ac_ext <<_ACEOF
65718 /* confdefs.h.  */
65719 _ACEOF
65720 cat confdefs.h >>conftest.$ac_ext
65721 cat >>conftest.$ac_ext <<_ACEOF
65722 /* end confdefs.h.  */
65723 #include <$header>
65724
65725 _ACEOF
65726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65727   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then
65728   ice_cv_have_setsockopt_decl=yes
65729 fi
65730 rm -f conftest*
65731
65732 if test "$ice_cv_have_setsockopt_decl" = yes; then
65733         break
65734 fi
65735 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65736 cat >conftest.$ac_ext <<_ACEOF
65737 /* confdefs.h.  */
65738 _ACEOF
65739 cat confdefs.h >>conftest.$ac_ext
65740 cat >>conftest.$ac_ext <<_ACEOF
65741 /* end confdefs.h.  */
65742 #include <$header>
65743
65744 _ACEOF
65745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65746   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65747   ice_cv_have_setsockopt_decl=yes
65748 fi
65749 rm -f conftest*
65750
65751 if test "$ice_cv_have_setsockopt_decl" = yes; then
65752         break
65753 fi
65754 done
65755
65756 fi
65757
65758 { echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
65759 echo "${ECHO_T}$ice_cv_have_setsockopt_decl" >&6; }
65760 if test "$ice_cv_have_setsockopt_decl" = yes; then
65761
65762 cat >>confdefs.h <<_ACEOF
65763 #define HAVE_SETSOCKOPT_DECL 1
65764 _ACEOF
65765
65766 fi
65767 fi
65768
65769
65770
65771
65772 for ac_func in sigaction sigemptyset sigvec
65773 do
65774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65778   echo $ECHO_N "(cached) $ECHO_C" >&6
65779 else
65780   cat >conftest.$ac_ext <<_ACEOF
65781 /* confdefs.h.  */
65782 _ACEOF
65783 cat confdefs.h >>conftest.$ac_ext
65784 cat >>conftest.$ac_ext <<_ACEOF
65785 /* end confdefs.h.  */
65786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65788 #define $ac_func innocuous_$ac_func
65789
65790 /* System header to define __stub macros and hopefully few prototypes,
65791     which can conflict with char $ac_func (); below.
65792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65793     <limits.h> exists even on freestanding compilers.  */
65794
65795 #ifdef __STDC__
65796 # include <limits.h>
65797 #else
65798 # include <assert.h>
65799 #endif
65800
65801 #undef $ac_func
65802
65803 /* Override any GCC internal prototype to avoid an error.
65804    Use char because int might match the return type of a GCC
65805    builtin and then its argument prototype would still apply.  */
65806 #ifdef __cplusplus
65807 extern "C"
65808 #endif
65809 char $ac_func ();
65810 /* The GNU C library defines this for functions which it implements
65811     to always fail with ENOSYS.  Some functions are actually named
65812     something starting with __ and the normal name is an alias.  */
65813 #if defined __stub_$ac_func || defined __stub___$ac_func
65814 choke me
65815 #endif
65816
65817 int
65818 main ()
65819 {
65820 return $ac_func ();
65821   ;
65822   return 0;
65823 }
65824 _ACEOF
65825 rm -f conftest.$ac_objext conftest$ac_exeext
65826 if { (ac_try="$ac_link"
65827 case "(($ac_try" in
65828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65829   *) ac_try_echo=$ac_try;;
65830 esac
65831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65832   (eval "$ac_link") 2>conftest.er1
65833   ac_status=$?
65834   grep -v '^ *+' conftest.er1 >conftest.err
65835   rm -f conftest.er1
65836   cat conftest.err >&5
65837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65838   (exit $ac_status); } && {
65839          test -z "$ac_c_werror_flag" ||
65840          test ! -s conftest.err
65841        } && test -s conftest$ac_exeext &&
65842        $as_test_x conftest$ac_exeext; then
65843   eval "$as_ac_var=yes"
65844 else
65845   echo "$as_me: failed program was:" >&5
65846 sed 's/^/| /' conftest.$ac_ext >&5
65847
65848         eval "$as_ac_var=no"
65849 fi
65850
65851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65852       conftest$ac_exeext conftest.$ac_ext
65853 fi
65854 ac_res=`eval echo '${'$as_ac_var'}'`
65855                { echo "$as_me:$LINENO: result: $ac_res" >&5
65856 echo "${ECHO_T}$ac_res" >&6; }
65857 if test `eval echo '${'$as_ac_var'}'` = yes; then
65858   cat >>confdefs.h <<_ACEOF
65859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65860 _ACEOF
65861
65862 fi
65863 done
65864
65865
65866 ice_have_socket=no
65867
65868 for ac_func in socket
65869 do
65870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65874   echo $ECHO_N "(cached) $ECHO_C" >&6
65875 else
65876   cat >conftest.$ac_ext <<_ACEOF
65877 /* confdefs.h.  */
65878 _ACEOF
65879 cat confdefs.h >>conftest.$ac_ext
65880 cat >>conftest.$ac_ext <<_ACEOF
65881 /* end confdefs.h.  */
65882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65884 #define $ac_func innocuous_$ac_func
65885
65886 /* System header to define __stub macros and hopefully few prototypes,
65887     which can conflict with char $ac_func (); below.
65888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65889     <limits.h> exists even on freestanding compilers.  */
65890
65891 #ifdef __STDC__
65892 # include <limits.h>
65893 #else
65894 # include <assert.h>
65895 #endif
65896
65897 #undef $ac_func
65898
65899 /* Override any GCC internal prototype to avoid an error.
65900    Use char because int might match the return type of a GCC
65901    builtin and then its argument prototype would still apply.  */
65902 #ifdef __cplusplus
65903 extern "C"
65904 #endif
65905 char $ac_func ();
65906 /* The GNU C library defines this for functions which it implements
65907     to always fail with ENOSYS.  Some functions are actually named
65908     something starting with __ and the normal name is an alias.  */
65909 #if defined __stub_$ac_func || defined __stub___$ac_func
65910 choke me
65911 #endif
65912
65913 int
65914 main ()
65915 {
65916 return $ac_func ();
65917   ;
65918   return 0;
65919 }
65920 _ACEOF
65921 rm -f conftest.$ac_objext conftest$ac_exeext
65922 if { (ac_try="$ac_link"
65923 case "(($ac_try" in
65924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65925   *) ac_try_echo=$ac_try;;
65926 esac
65927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65928   (eval "$ac_link") 2>conftest.er1
65929   ac_status=$?
65930   grep -v '^ *+' conftest.er1 >conftest.err
65931   rm -f conftest.er1
65932   cat conftest.err >&5
65933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65934   (exit $ac_status); } && {
65935          test -z "$ac_c_werror_flag" ||
65936          test ! -s conftest.err
65937        } && test -s conftest$ac_exeext &&
65938        $as_test_x conftest$ac_exeext; then
65939   eval "$as_ac_var=yes"
65940 else
65941   echo "$as_me: failed program was:" >&5
65942 sed 's/^/| /' conftest.$ac_ext >&5
65943
65944         eval "$as_ac_var=no"
65945 fi
65946
65947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65948       conftest$ac_exeext conftest.$ac_ext
65949 fi
65950 ac_res=`eval echo '${'$as_ac_var'}'`
65951                { echo "$as_me:$LINENO: result: $ac_res" >&5
65952 echo "${ECHO_T}$ac_res" >&6; }
65953 if test `eval echo '${'$as_ac_var'}'` = yes; then
65954   cat >>confdefs.h <<_ACEOF
65955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65956 _ACEOF
65957  ice_have_socket=yes
65958 fi
65959 done
65960
65961 if test "${ice_have_socket}" = yes; then
65962 { echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
65963 echo $ECHO_N "checking for socket declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
65964 if test "${ice_cv_have_socket_decl+set}" = set; then
65965   echo $ECHO_N "(cached) $ECHO_C" >&6
65966 else
65967
65968 ice_cv_have_socket_decl=no
65969 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65970 ice_re_word='(^|[^a-zA-Z0-9_])'
65971 for header in sys/types.h sys/socket.h; do
65972 # Check for ordinary declaration
65973 cat >conftest.$ac_ext <<_ACEOF
65974 /* confdefs.h.  */
65975 _ACEOF
65976 cat confdefs.h >>conftest.$ac_ext
65977 cat >>conftest.$ac_ext <<_ACEOF
65978 /* end confdefs.h.  */
65979 #include <$header>
65980
65981 _ACEOF
65982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65983   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then
65984   ice_cv_have_socket_decl=yes
65985 fi
65986 rm -f conftest*
65987
65988 if test "$ice_cv_have_socket_decl" = yes; then
65989         break
65990 fi
65991 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65992 cat >conftest.$ac_ext <<_ACEOF
65993 /* confdefs.h.  */
65994 _ACEOF
65995 cat confdefs.h >>conftest.$ac_ext
65996 cat >>conftest.$ac_ext <<_ACEOF
65997 /* end confdefs.h.  */
65998 #include <$header>
65999
66000 _ACEOF
66001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66002   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66003   ice_cv_have_socket_decl=yes
66004 fi
66005 rm -f conftest*
66006
66007 if test "$ice_cv_have_socket_decl" = yes; then
66008         break
66009 fi
66010 done
66011
66012 fi
66013
66014 { echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
66015 echo "${ECHO_T}$ice_cv_have_socket_decl" >&6; }
66016 if test "$ice_cv_have_socket_decl" = yes; then
66017
66018 cat >>confdefs.h <<_ACEOF
66019 #define HAVE_SOCKET_DECL 1
66020 _ACEOF
66021
66022 fi
66023 fi
66024
66025
66026 ice_have_socketpair=no
66027
66028 for ac_func in socketpair
66029 do
66030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66034   echo $ECHO_N "(cached) $ECHO_C" >&6
66035 else
66036   cat >conftest.$ac_ext <<_ACEOF
66037 /* confdefs.h.  */
66038 _ACEOF
66039 cat confdefs.h >>conftest.$ac_ext
66040 cat >>conftest.$ac_ext <<_ACEOF
66041 /* end confdefs.h.  */
66042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66044 #define $ac_func innocuous_$ac_func
66045
66046 /* System header to define __stub macros and hopefully few prototypes,
66047     which can conflict with char $ac_func (); below.
66048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66049     <limits.h> exists even on freestanding compilers.  */
66050
66051 #ifdef __STDC__
66052 # include <limits.h>
66053 #else
66054 # include <assert.h>
66055 #endif
66056
66057 #undef $ac_func
66058
66059 /* Override any GCC internal prototype to avoid an error.
66060    Use char because int might match the return type of a GCC
66061    builtin and then its argument prototype would still apply.  */
66062 #ifdef __cplusplus
66063 extern "C"
66064 #endif
66065 char $ac_func ();
66066 /* The GNU C library defines this for functions which it implements
66067     to always fail with ENOSYS.  Some functions are actually named
66068     something starting with __ and the normal name is an alias.  */
66069 #if defined __stub_$ac_func || defined __stub___$ac_func
66070 choke me
66071 #endif
66072
66073 int
66074 main ()
66075 {
66076 return $ac_func ();
66077   ;
66078   return 0;
66079 }
66080 _ACEOF
66081 rm -f conftest.$ac_objext conftest$ac_exeext
66082 if { (ac_try="$ac_link"
66083 case "(($ac_try" in
66084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66085   *) ac_try_echo=$ac_try;;
66086 esac
66087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66088   (eval "$ac_link") 2>conftest.er1
66089   ac_status=$?
66090   grep -v '^ *+' conftest.er1 >conftest.err
66091   rm -f conftest.er1
66092   cat conftest.err >&5
66093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66094   (exit $ac_status); } && {
66095          test -z "$ac_c_werror_flag" ||
66096          test ! -s conftest.err
66097        } && test -s conftest$ac_exeext &&
66098        $as_test_x conftest$ac_exeext; then
66099   eval "$as_ac_var=yes"
66100 else
66101   echo "$as_me: failed program was:" >&5
66102 sed 's/^/| /' conftest.$ac_ext >&5
66103
66104         eval "$as_ac_var=no"
66105 fi
66106
66107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66108       conftest$ac_exeext conftest.$ac_ext
66109 fi
66110 ac_res=`eval echo '${'$as_ac_var'}'`
66111                { echo "$as_me:$LINENO: result: $ac_res" >&5
66112 echo "${ECHO_T}$ac_res" >&6; }
66113 if test `eval echo '${'$as_ac_var'}'` = yes; then
66114   cat >>confdefs.h <<_ACEOF
66115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66116 _ACEOF
66117  ice_have_socketpair=yes
66118 fi
66119 done
66120
66121 if test "${ice_have_socketpair}" = yes; then
66122 { echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
66123 echo $ECHO_N "checking for socketpair declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
66124 if test "${ice_cv_have_socketpair_decl+set}" = set; then
66125   echo $ECHO_N "(cached) $ECHO_C" >&6
66126 else
66127
66128 ice_cv_have_socketpair_decl=no
66129 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66130 ice_re_word='(^|[^a-zA-Z0-9_])'
66131 for header in sys/types.h sys/socket.h; do
66132 # Check for ordinary declaration
66133 cat >conftest.$ac_ext <<_ACEOF
66134 /* confdefs.h.  */
66135 _ACEOF
66136 cat confdefs.h >>conftest.$ac_ext
66137 cat >>conftest.$ac_ext <<_ACEOF
66138 /* end confdefs.h.  */
66139 #include <$header>
66140
66141 _ACEOF
66142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66143   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then
66144   ice_cv_have_socketpair_decl=yes
66145 fi
66146 rm -f conftest*
66147
66148 if test "$ice_cv_have_socketpair_decl" = yes; then
66149         break
66150 fi
66151 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66152 cat >conftest.$ac_ext <<_ACEOF
66153 /* confdefs.h.  */
66154 _ACEOF
66155 cat confdefs.h >>conftest.$ac_ext
66156 cat >>conftest.$ac_ext <<_ACEOF
66157 /* end confdefs.h.  */
66158 #include <$header>
66159
66160 _ACEOF
66161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66162   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66163   ice_cv_have_socketpair_decl=yes
66164 fi
66165 rm -f conftest*
66166
66167 if test "$ice_cv_have_socketpair_decl" = yes; then
66168         break
66169 fi
66170 done
66171
66172 fi
66173
66174 { echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
66175 echo "${ECHO_T}$ice_cv_have_socketpair_decl" >&6; }
66176 if test "$ice_cv_have_socketpair_decl" = yes; then
66177
66178 cat >>confdefs.h <<_ACEOF
66179 #define HAVE_SOCKETPAIR_DECL 1
66180 _ACEOF
66181
66182 fi
66183 fi
66184
66185
66186 ice_have_sscanf=no
66187
66188 for ac_func in sscanf
66189 do
66190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66194   echo $ECHO_N "(cached) $ECHO_C" >&6
66195 else
66196   cat >conftest.$ac_ext <<_ACEOF
66197 /* confdefs.h.  */
66198 _ACEOF
66199 cat confdefs.h >>conftest.$ac_ext
66200 cat >>conftest.$ac_ext <<_ACEOF
66201 /* end confdefs.h.  */
66202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66204 #define $ac_func innocuous_$ac_func
66205
66206 /* System header to define __stub macros and hopefully few prototypes,
66207     which can conflict with char $ac_func (); below.
66208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66209     <limits.h> exists even on freestanding compilers.  */
66210
66211 #ifdef __STDC__
66212 # include <limits.h>
66213 #else
66214 # include <assert.h>
66215 #endif
66216
66217 #undef $ac_func
66218
66219 /* Override any GCC internal prototype to avoid an error.
66220    Use char because int might match the return type of a GCC
66221    builtin and then its argument prototype would still apply.  */
66222 #ifdef __cplusplus
66223 extern "C"
66224 #endif
66225 char $ac_func ();
66226 /* The GNU C library defines this for functions which it implements
66227     to always fail with ENOSYS.  Some functions are actually named
66228     something starting with __ and the normal name is an alias.  */
66229 #if defined __stub_$ac_func || defined __stub___$ac_func
66230 choke me
66231 #endif
66232
66233 int
66234 main ()
66235 {
66236 return $ac_func ();
66237   ;
66238   return 0;
66239 }
66240 _ACEOF
66241 rm -f conftest.$ac_objext conftest$ac_exeext
66242 if { (ac_try="$ac_link"
66243 case "(($ac_try" in
66244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66245   *) ac_try_echo=$ac_try;;
66246 esac
66247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66248   (eval "$ac_link") 2>conftest.er1
66249   ac_status=$?
66250   grep -v '^ *+' conftest.er1 >conftest.err
66251   rm -f conftest.er1
66252   cat conftest.err >&5
66253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66254   (exit $ac_status); } && {
66255          test -z "$ac_c_werror_flag" ||
66256          test ! -s conftest.err
66257        } && test -s conftest$ac_exeext &&
66258        $as_test_x conftest$ac_exeext; then
66259   eval "$as_ac_var=yes"
66260 else
66261   echo "$as_me: failed program was:" >&5
66262 sed 's/^/| /' conftest.$ac_ext >&5
66263
66264         eval "$as_ac_var=no"
66265 fi
66266
66267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66268       conftest$ac_exeext conftest.$ac_ext
66269 fi
66270 ac_res=`eval echo '${'$as_ac_var'}'`
66271                { echo "$as_me:$LINENO: result: $ac_res" >&5
66272 echo "${ECHO_T}$ac_res" >&6; }
66273 if test `eval echo '${'$as_ac_var'}'` = yes; then
66274   cat >>confdefs.h <<_ACEOF
66275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66276 _ACEOF
66277  ice_have_sscanf=yes
66278 fi
66279 done
66280
66281 if test "${ice_have_sscanf}" = yes; then
66282 { echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
66283 echo $ECHO_N "checking for sscanf declaration in stdio.h... $ECHO_C" >&6; }
66284 if test "${ice_cv_have_sscanf_decl+set}" = set; then
66285   echo $ECHO_N "(cached) $ECHO_C" >&6
66286 else
66287
66288 ice_cv_have_sscanf_decl=no
66289 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66290 ice_re_word='(^|[^a-zA-Z0-9_])'
66291 for header in stdio.h; do
66292 # Check for ordinary declaration
66293 cat >conftest.$ac_ext <<_ACEOF
66294 /* confdefs.h.  */
66295 _ACEOF
66296 cat confdefs.h >>conftest.$ac_ext
66297 cat >>conftest.$ac_ext <<_ACEOF
66298 /* end confdefs.h.  */
66299 #include <$header>
66300
66301 _ACEOF
66302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66303   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then
66304   ice_cv_have_sscanf_decl=yes
66305 fi
66306 rm -f conftest*
66307
66308 if test "$ice_cv_have_sscanf_decl" = yes; then
66309         break
66310 fi
66311 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66312 cat >conftest.$ac_ext <<_ACEOF
66313 /* confdefs.h.  */
66314 _ACEOF
66315 cat confdefs.h >>conftest.$ac_ext
66316 cat >>conftest.$ac_ext <<_ACEOF
66317 /* end confdefs.h.  */
66318 #include <$header>
66319
66320 _ACEOF
66321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66322   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66323   ice_cv_have_sscanf_decl=yes
66324 fi
66325 rm -f conftest*
66326
66327 if test "$ice_cv_have_sscanf_decl" = yes; then
66328         break
66329 fi
66330 done
66331
66332 fi
66333
66334 { echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
66335 echo "${ECHO_T}$ice_cv_have_sscanf_decl" >&6; }
66336 if test "$ice_cv_have_sscanf_decl" = yes; then
66337
66338 cat >>confdefs.h <<_ACEOF
66339 #define HAVE_SSCANF_DECL 1
66340 _ACEOF
66341
66342 fi
66343 fi
66344
66345
66346 ice_have_strerror=no
66347
66348 for ac_func in strerror
66349 do
66350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66351 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66353 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66354   echo $ECHO_N "(cached) $ECHO_C" >&6
66355 else
66356   cat >conftest.$ac_ext <<_ACEOF
66357 /* confdefs.h.  */
66358 _ACEOF
66359 cat confdefs.h >>conftest.$ac_ext
66360 cat >>conftest.$ac_ext <<_ACEOF
66361 /* end confdefs.h.  */
66362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66363    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66364 #define $ac_func innocuous_$ac_func
66365
66366 /* System header to define __stub macros and hopefully few prototypes,
66367     which can conflict with char $ac_func (); below.
66368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66369     <limits.h> exists even on freestanding compilers.  */
66370
66371 #ifdef __STDC__
66372 # include <limits.h>
66373 #else
66374 # include <assert.h>
66375 #endif
66376
66377 #undef $ac_func
66378
66379 /* Override any GCC internal prototype to avoid an error.
66380    Use char because int might match the return type of a GCC
66381    builtin and then its argument prototype would still apply.  */
66382 #ifdef __cplusplus
66383 extern "C"
66384 #endif
66385 char $ac_func ();
66386 /* The GNU C library defines this for functions which it implements
66387     to always fail with ENOSYS.  Some functions are actually named
66388     something starting with __ and the normal name is an alias.  */
66389 #if defined __stub_$ac_func || defined __stub___$ac_func
66390 choke me
66391 #endif
66392
66393 int
66394 main ()
66395 {
66396 return $ac_func ();
66397   ;
66398   return 0;
66399 }
66400 _ACEOF
66401 rm -f conftest.$ac_objext conftest$ac_exeext
66402 if { (ac_try="$ac_link"
66403 case "(($ac_try" in
66404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66405   *) ac_try_echo=$ac_try;;
66406 esac
66407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66408   (eval "$ac_link") 2>conftest.er1
66409   ac_status=$?
66410   grep -v '^ *+' conftest.er1 >conftest.err
66411   rm -f conftest.er1
66412   cat conftest.err >&5
66413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66414   (exit $ac_status); } && {
66415          test -z "$ac_c_werror_flag" ||
66416          test ! -s conftest.err
66417        } && test -s conftest$ac_exeext &&
66418        $as_test_x conftest$ac_exeext; then
66419   eval "$as_ac_var=yes"
66420 else
66421   echo "$as_me: failed program was:" >&5
66422 sed 's/^/| /' conftest.$ac_ext >&5
66423
66424         eval "$as_ac_var=no"
66425 fi
66426
66427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66428       conftest$ac_exeext conftest.$ac_ext
66429 fi
66430 ac_res=`eval echo '${'$as_ac_var'}'`
66431                { echo "$as_me:$LINENO: result: $ac_res" >&5
66432 echo "${ECHO_T}$ac_res" >&6; }
66433 if test `eval echo '${'$as_ac_var'}'` = yes; then
66434   cat >>confdefs.h <<_ACEOF
66435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66436 _ACEOF
66437  ice_have_strerror=yes
66438 fi
66439 done
66440
66441 if test "${ice_have_strerror}" = yes; then
66442 { echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
66443 echo $ECHO_N "checking for strerror declaration in string.h strings.h... $ECHO_C" >&6; }
66444 if test "${ice_cv_have_strerror_decl+set}" = set; then
66445   echo $ECHO_N "(cached) $ECHO_C" >&6
66446 else
66447
66448 ice_cv_have_strerror_decl=no
66449 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66450 ice_re_word='(^|[^a-zA-Z0-9_])'
66451 for header in string.h strings.h; do
66452 # Check for ordinary declaration
66453 cat >conftest.$ac_ext <<_ACEOF
66454 /* confdefs.h.  */
66455 _ACEOF
66456 cat confdefs.h >>conftest.$ac_ext
66457 cat >>conftest.$ac_ext <<_ACEOF
66458 /* end confdefs.h.  */
66459 #include <$header>
66460
66461 _ACEOF
66462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66463   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then
66464   ice_cv_have_strerror_decl=yes
66465 fi
66466 rm -f conftest*
66467
66468 if test "$ice_cv_have_strerror_decl" = yes; then
66469         break
66470 fi
66471 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66472 cat >conftest.$ac_ext <<_ACEOF
66473 /* confdefs.h.  */
66474 _ACEOF
66475 cat confdefs.h >>conftest.$ac_ext
66476 cat >>conftest.$ac_ext <<_ACEOF
66477 /* end confdefs.h.  */
66478 #include <$header>
66479
66480 _ACEOF
66481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66482   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66483   ice_cv_have_strerror_decl=yes
66484 fi
66485 rm -f conftest*
66486
66487 if test "$ice_cv_have_strerror_decl" = yes; then
66488         break
66489 fi
66490 done
66491
66492 fi
66493
66494 { echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
66495 echo "${ECHO_T}$ice_cv_have_strerror_decl" >&6; }
66496 if test "$ice_cv_have_strerror_decl" = yes; then
66497
66498 cat >>confdefs.h <<_ACEOF
66499 #define HAVE_STRERROR_DECL 1
66500 _ACEOF
66501
66502 fi
66503 fi
66504
66505
66506 for ac_func in strftime
66507 do
66508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66512   echo $ECHO_N "(cached) $ECHO_C" >&6
66513 else
66514   cat >conftest.$ac_ext <<_ACEOF
66515 /* confdefs.h.  */
66516 _ACEOF
66517 cat confdefs.h >>conftest.$ac_ext
66518 cat >>conftest.$ac_ext <<_ACEOF
66519 /* end confdefs.h.  */
66520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66522 #define $ac_func innocuous_$ac_func
66523
66524 /* System header to define __stub macros and hopefully few prototypes,
66525     which can conflict with char $ac_func (); below.
66526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66527     <limits.h> exists even on freestanding compilers.  */
66528
66529 #ifdef __STDC__
66530 # include <limits.h>
66531 #else
66532 # include <assert.h>
66533 #endif
66534
66535 #undef $ac_func
66536
66537 /* Override any GCC internal prototype to avoid an error.
66538    Use char because int might match the return type of a GCC
66539    builtin and then its argument prototype would still apply.  */
66540 #ifdef __cplusplus
66541 extern "C"
66542 #endif
66543 char $ac_func ();
66544 /* The GNU C library defines this for functions which it implements
66545     to always fail with ENOSYS.  Some functions are actually named
66546     something starting with __ and the normal name is an alias.  */
66547 #if defined __stub_$ac_func || defined __stub___$ac_func
66548 choke me
66549 #endif
66550
66551 int
66552 main ()
66553 {
66554 return $ac_func ();
66555   ;
66556   return 0;
66557 }
66558 _ACEOF
66559 rm -f conftest.$ac_objext conftest$ac_exeext
66560 if { (ac_try="$ac_link"
66561 case "(($ac_try" in
66562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66563   *) ac_try_echo=$ac_try;;
66564 esac
66565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66566   (eval "$ac_link") 2>conftest.er1
66567   ac_status=$?
66568   grep -v '^ *+' conftest.er1 >conftest.err
66569   rm -f conftest.er1
66570   cat conftest.err >&5
66571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66572   (exit $ac_status); } && {
66573          test -z "$ac_c_werror_flag" ||
66574          test ! -s conftest.err
66575        } && test -s conftest$ac_exeext &&
66576        $as_test_x conftest$ac_exeext; then
66577   eval "$as_ac_var=yes"
66578 else
66579   echo "$as_me: failed program was:" >&5
66580 sed 's/^/| /' conftest.$ac_ext >&5
66581
66582         eval "$as_ac_var=no"
66583 fi
66584
66585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66586       conftest$ac_exeext conftest.$ac_ext
66587 fi
66588 ac_res=`eval echo '${'$as_ac_var'}'`
66589                { echo "$as_me:$LINENO: result: $ac_res" >&5
66590 echo "${ECHO_T}$ac_res" >&6; }
66591 if test `eval echo '${'$as_ac_var'}'` = yes; then
66592   cat >>confdefs.h <<_ACEOF
66593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66594 _ACEOF
66595
66596 else
66597   # strftime is in -lintl on SCO UNIX.
66598 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
66599 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
66600 if test "${ac_cv_lib_intl_strftime+set}" = set; then
66601   echo $ECHO_N "(cached) $ECHO_C" >&6
66602 else
66603   ac_check_lib_save_LIBS=$LIBS
66604 LIBS="-lintl  $LIBS"
66605 cat >conftest.$ac_ext <<_ACEOF
66606 /* confdefs.h.  */
66607 _ACEOF
66608 cat confdefs.h >>conftest.$ac_ext
66609 cat >>conftest.$ac_ext <<_ACEOF
66610 /* end confdefs.h.  */
66611
66612 /* Override any GCC internal prototype to avoid an error.
66613    Use char because int might match the return type of a GCC
66614    builtin and then its argument prototype would still apply.  */
66615 #ifdef __cplusplus
66616 extern "C"
66617 #endif
66618 char strftime ();
66619 int
66620 main ()
66621 {
66622 return strftime ();
66623   ;
66624   return 0;
66625 }
66626 _ACEOF
66627 rm -f conftest.$ac_objext conftest$ac_exeext
66628 if { (ac_try="$ac_link"
66629 case "(($ac_try" in
66630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66631   *) ac_try_echo=$ac_try;;
66632 esac
66633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66634   (eval "$ac_link") 2>conftest.er1
66635   ac_status=$?
66636   grep -v '^ *+' conftest.er1 >conftest.err
66637   rm -f conftest.er1
66638   cat conftest.err >&5
66639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66640   (exit $ac_status); } && {
66641          test -z "$ac_c_werror_flag" ||
66642          test ! -s conftest.err
66643        } && test -s conftest$ac_exeext &&
66644        $as_test_x conftest$ac_exeext; then
66645   ac_cv_lib_intl_strftime=yes
66646 else
66647   echo "$as_me: failed program was:" >&5
66648 sed 's/^/| /' conftest.$ac_ext >&5
66649
66650         ac_cv_lib_intl_strftime=no
66651 fi
66652
66653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66654       conftest$ac_exeext conftest.$ac_ext
66655 LIBS=$ac_check_lib_save_LIBS
66656 fi
66657 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
66658 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
66659 if test $ac_cv_lib_intl_strftime = yes; then
66660   cat >>confdefs.h <<\_ACEOF
66661 #define HAVE_STRFTIME 1
66662 _ACEOF
66663
66664 LIBS="-lintl $LIBS"
66665 fi
66666
66667 fi
66668 done
66669
66670
66671 ice_have_strftime=no
66672
66673 for ac_func in strftime
66674 do
66675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66676 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66678 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66679   echo $ECHO_N "(cached) $ECHO_C" >&6
66680 else
66681   cat >conftest.$ac_ext <<_ACEOF
66682 /* confdefs.h.  */
66683 _ACEOF
66684 cat confdefs.h >>conftest.$ac_ext
66685 cat >>conftest.$ac_ext <<_ACEOF
66686 /* end confdefs.h.  */
66687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66689 #define $ac_func innocuous_$ac_func
66690
66691 /* System header to define __stub macros and hopefully few prototypes,
66692     which can conflict with char $ac_func (); below.
66693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66694     <limits.h> exists even on freestanding compilers.  */
66695
66696 #ifdef __STDC__
66697 # include <limits.h>
66698 #else
66699 # include <assert.h>
66700 #endif
66701
66702 #undef $ac_func
66703
66704 /* Override any GCC internal prototype to avoid an error.
66705    Use char because int might match the return type of a GCC
66706    builtin and then its argument prototype would still apply.  */
66707 #ifdef __cplusplus
66708 extern "C"
66709 #endif
66710 char $ac_func ();
66711 /* The GNU C library defines this for functions which it implements
66712     to always fail with ENOSYS.  Some functions are actually named
66713     something starting with __ and the normal name is an alias.  */
66714 #if defined __stub_$ac_func || defined __stub___$ac_func
66715 choke me
66716 #endif
66717
66718 int
66719 main ()
66720 {
66721 return $ac_func ();
66722   ;
66723   return 0;
66724 }
66725 _ACEOF
66726 rm -f conftest.$ac_objext conftest$ac_exeext
66727 if { (ac_try="$ac_link"
66728 case "(($ac_try" in
66729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66730   *) ac_try_echo=$ac_try;;
66731 esac
66732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66733   (eval "$ac_link") 2>conftest.er1
66734   ac_status=$?
66735   grep -v '^ *+' conftest.er1 >conftest.err
66736   rm -f conftest.er1
66737   cat conftest.err >&5
66738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66739   (exit $ac_status); } && {
66740          test -z "$ac_c_werror_flag" ||
66741          test ! -s conftest.err
66742        } && test -s conftest$ac_exeext &&
66743        $as_test_x conftest$ac_exeext; then
66744   eval "$as_ac_var=yes"
66745 else
66746   echo "$as_me: failed program was:" >&5
66747 sed 's/^/| /' conftest.$ac_ext >&5
66748
66749         eval "$as_ac_var=no"
66750 fi
66751
66752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66753       conftest$ac_exeext conftest.$ac_ext
66754 fi
66755 ac_res=`eval echo '${'$as_ac_var'}'`
66756                { echo "$as_me:$LINENO: result: $ac_res" >&5
66757 echo "${ECHO_T}$ac_res" >&6; }
66758 if test `eval echo '${'$as_ac_var'}'` = yes; then
66759   cat >>confdefs.h <<_ACEOF
66760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66761 _ACEOF
66762  ice_have_strftime=yes
66763 fi
66764 done
66765
66766 if test "${ice_have_strftime}" = yes; then
66767 { echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
66768 echo $ECHO_N "checking for strftime declaration in time.h sys/time.h... $ECHO_C" >&6; }
66769 if test "${ice_cv_have_strftime_decl+set}" = set; then
66770   echo $ECHO_N "(cached) $ECHO_C" >&6
66771 else
66772
66773 ice_cv_have_strftime_decl=no
66774 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66775 ice_re_word='(^|[^a-zA-Z0-9_])'
66776 for header in time.h sys/time.h; do
66777 # Check for ordinary declaration
66778 cat >conftest.$ac_ext <<_ACEOF
66779 /* confdefs.h.  */
66780 _ACEOF
66781 cat confdefs.h >>conftest.$ac_ext
66782 cat >>conftest.$ac_ext <<_ACEOF
66783 /* end confdefs.h.  */
66784 #include <$header>
66785
66786 _ACEOF
66787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66788   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then
66789   ice_cv_have_strftime_decl=yes
66790 fi
66791 rm -f conftest*
66792
66793 if test "$ice_cv_have_strftime_decl" = yes; then
66794         break
66795 fi
66796 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66797 cat >conftest.$ac_ext <<_ACEOF
66798 /* confdefs.h.  */
66799 _ACEOF
66800 cat confdefs.h >>conftest.$ac_ext
66801 cat >>conftest.$ac_ext <<_ACEOF
66802 /* end confdefs.h.  */
66803 #include <$header>
66804
66805 _ACEOF
66806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66807   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66808   ice_cv_have_strftime_decl=yes
66809 fi
66810 rm -f conftest*
66811
66812 if test "$ice_cv_have_strftime_decl" = yes; then
66813         break
66814 fi
66815 done
66816
66817 fi
66818
66819 { echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
66820 echo "${ECHO_T}$ice_cv_have_strftime_decl" >&6; }
66821 if test "$ice_cv_have_strftime_decl" = yes; then
66822
66823 cat >>confdefs.h <<_ACEOF
66824 #define HAVE_STRFTIME_DECL 1
66825 _ACEOF
66826
66827 fi
66828 fi
66829
66830
66831 ice_have_strncasecmp=no
66832
66833 for ac_func in strncasecmp
66834 do
66835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66836 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66839   echo $ECHO_N "(cached) $ECHO_C" >&6
66840 else
66841   cat >conftest.$ac_ext <<_ACEOF
66842 /* confdefs.h.  */
66843 _ACEOF
66844 cat confdefs.h >>conftest.$ac_ext
66845 cat >>conftest.$ac_ext <<_ACEOF
66846 /* end confdefs.h.  */
66847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66849 #define $ac_func innocuous_$ac_func
66850
66851 /* System header to define __stub macros and hopefully few prototypes,
66852     which can conflict with char $ac_func (); below.
66853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66854     <limits.h> exists even on freestanding compilers.  */
66855
66856 #ifdef __STDC__
66857 # include <limits.h>
66858 #else
66859 # include <assert.h>
66860 #endif
66861
66862 #undef $ac_func
66863
66864 /* Override any GCC internal prototype to avoid an error.
66865    Use char because int might match the return type of a GCC
66866    builtin and then its argument prototype would still apply.  */
66867 #ifdef __cplusplus
66868 extern "C"
66869 #endif
66870 char $ac_func ();
66871 /* The GNU C library defines this for functions which it implements
66872     to always fail with ENOSYS.  Some functions are actually named
66873     something starting with __ and the normal name is an alias.  */
66874 #if defined __stub_$ac_func || defined __stub___$ac_func
66875 choke me
66876 #endif
66877
66878 int
66879 main ()
66880 {
66881 return $ac_func ();
66882   ;
66883   return 0;
66884 }
66885 _ACEOF
66886 rm -f conftest.$ac_objext conftest$ac_exeext
66887 if { (ac_try="$ac_link"
66888 case "(($ac_try" in
66889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66890   *) ac_try_echo=$ac_try;;
66891 esac
66892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66893   (eval "$ac_link") 2>conftest.er1
66894   ac_status=$?
66895   grep -v '^ *+' conftest.er1 >conftest.err
66896   rm -f conftest.er1
66897   cat conftest.err >&5
66898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66899   (exit $ac_status); } && {
66900          test -z "$ac_c_werror_flag" ||
66901          test ! -s conftest.err
66902        } && test -s conftest$ac_exeext &&
66903        $as_test_x conftest$ac_exeext; then
66904   eval "$as_ac_var=yes"
66905 else
66906   echo "$as_me: failed program was:" >&5
66907 sed 's/^/| /' conftest.$ac_ext >&5
66908
66909         eval "$as_ac_var=no"
66910 fi
66911
66912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66913       conftest$ac_exeext conftest.$ac_ext
66914 fi
66915 ac_res=`eval echo '${'$as_ac_var'}'`
66916                { echo "$as_me:$LINENO: result: $ac_res" >&5
66917 echo "${ECHO_T}$ac_res" >&6; }
66918 if test `eval echo '${'$as_ac_var'}'` = yes; then
66919   cat >>confdefs.h <<_ACEOF
66920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66921 _ACEOF
66922  ice_have_strncasecmp=yes
66923 fi
66924 done
66925
66926 if test "${ice_have_strncasecmp}" = yes; then
66927 { echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
66928 echo $ECHO_N "checking for strncasecmp declaration in string.h strings.h... $ECHO_C" >&6; }
66929 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
66930   echo $ECHO_N "(cached) $ECHO_C" >&6
66931 else
66932
66933 ice_cv_have_strncasecmp_decl=no
66934 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66935 ice_re_word='(^|[^a-zA-Z0-9_])'
66936 for header in string.h strings.h; do
66937 # Check for ordinary declaration
66938 cat >conftest.$ac_ext <<_ACEOF
66939 /* confdefs.h.  */
66940 _ACEOF
66941 cat confdefs.h >>conftest.$ac_ext
66942 cat >>conftest.$ac_ext <<_ACEOF
66943 /* end confdefs.h.  */
66944 #include <$header>
66945
66946 _ACEOF
66947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66948   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then
66949   ice_cv_have_strncasecmp_decl=yes
66950 fi
66951 rm -f conftest*
66952
66953 if test "$ice_cv_have_strncasecmp_decl" = yes; then
66954         break
66955 fi
66956 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66957 cat >conftest.$ac_ext <<_ACEOF
66958 /* confdefs.h.  */
66959 _ACEOF
66960 cat confdefs.h >>conftest.$ac_ext
66961 cat >>conftest.$ac_ext <<_ACEOF
66962 /* end confdefs.h.  */
66963 #include <$header>
66964
66965 _ACEOF
66966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66967   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66968   ice_cv_have_strncasecmp_decl=yes
66969 fi
66970 rm -f conftest*
66971
66972 if test "$ice_cv_have_strncasecmp_decl" = yes; then
66973         break
66974 fi
66975 done
66976
66977 fi
66978
66979 { echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
66980 echo "${ECHO_T}$ice_cv_have_strncasecmp_decl" >&6; }
66981 if test "$ice_cv_have_strncasecmp_decl" = yes; then
66982
66983 cat >>confdefs.h <<_ACEOF
66984 #define HAVE_STRNCASECMP_DECL 1
66985 _ACEOF
66986
66987 fi
66988 fi
66989
66990
66991 ice_have_syslog=no
66992
66993 for ac_func in syslog
66994 do
66995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66998 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66999   echo $ECHO_N "(cached) $ECHO_C" >&6
67000 else
67001   cat >conftest.$ac_ext <<_ACEOF
67002 /* confdefs.h.  */
67003 _ACEOF
67004 cat confdefs.h >>conftest.$ac_ext
67005 cat >>conftest.$ac_ext <<_ACEOF
67006 /* end confdefs.h.  */
67007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67009 #define $ac_func innocuous_$ac_func
67010
67011 /* System header to define __stub macros and hopefully few prototypes,
67012     which can conflict with char $ac_func (); below.
67013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67014     <limits.h> exists even on freestanding compilers.  */
67015
67016 #ifdef __STDC__
67017 # include <limits.h>
67018 #else
67019 # include <assert.h>
67020 #endif
67021
67022 #undef $ac_func
67023
67024 /* Override any GCC internal prototype to avoid an error.
67025    Use char because int might match the return type of a GCC
67026    builtin and then its argument prototype would still apply.  */
67027 #ifdef __cplusplus
67028 extern "C"
67029 #endif
67030 char $ac_func ();
67031 /* The GNU C library defines this for functions which it implements
67032     to always fail with ENOSYS.  Some functions are actually named
67033     something starting with __ and the normal name is an alias.  */
67034 #if defined __stub_$ac_func || defined __stub___$ac_func
67035 choke me
67036 #endif
67037
67038 int
67039 main ()
67040 {
67041 return $ac_func ();
67042   ;
67043   return 0;
67044 }
67045 _ACEOF
67046 rm -f conftest.$ac_objext conftest$ac_exeext
67047 if { (ac_try="$ac_link"
67048 case "(($ac_try" in
67049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67050   *) ac_try_echo=$ac_try;;
67051 esac
67052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67053   (eval "$ac_link") 2>conftest.er1
67054   ac_status=$?
67055   grep -v '^ *+' conftest.er1 >conftest.err
67056   rm -f conftest.er1
67057   cat conftest.err >&5
67058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67059   (exit $ac_status); } && {
67060          test -z "$ac_c_werror_flag" ||
67061          test ! -s conftest.err
67062        } && test -s conftest$ac_exeext &&
67063        $as_test_x conftest$ac_exeext; then
67064   eval "$as_ac_var=yes"
67065 else
67066   echo "$as_me: failed program was:" >&5
67067 sed 's/^/| /' conftest.$ac_ext >&5
67068
67069         eval "$as_ac_var=no"
67070 fi
67071
67072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67073       conftest$ac_exeext conftest.$ac_ext
67074 fi
67075 ac_res=`eval echo '${'$as_ac_var'}'`
67076                { echo "$as_me:$LINENO: result: $ac_res" >&5
67077 echo "${ECHO_T}$ac_res" >&6; }
67078 if test `eval echo '${'$as_ac_var'}'` = yes; then
67079   cat >>confdefs.h <<_ACEOF
67080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67081 _ACEOF
67082  ice_have_syslog=yes
67083 fi
67084 done
67085
67086 if test "${ice_have_syslog}" = yes; then
67087 { echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
67088 echo $ECHO_N "checking for syslog declaration in syslog.h... $ECHO_C" >&6; }
67089 if test "${ice_cv_have_syslog_decl+set}" = set; then
67090   echo $ECHO_N "(cached) $ECHO_C" >&6
67091 else
67092
67093 ice_cv_have_syslog_decl=no
67094 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67095 ice_re_word='(^|[^a-zA-Z0-9_])'
67096 for header in syslog.h; do
67097 # Check for ordinary declaration
67098 cat >conftest.$ac_ext <<_ACEOF
67099 /* confdefs.h.  */
67100 _ACEOF
67101 cat confdefs.h >>conftest.$ac_ext
67102 cat >>conftest.$ac_ext <<_ACEOF
67103 /* end confdefs.h.  */
67104 #include <$header>
67105
67106 _ACEOF
67107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67108   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then
67109   ice_cv_have_syslog_decl=yes
67110 fi
67111 rm -f conftest*
67112
67113 if test "$ice_cv_have_syslog_decl" = yes; then
67114         break
67115 fi
67116 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67117 cat >conftest.$ac_ext <<_ACEOF
67118 /* confdefs.h.  */
67119 _ACEOF
67120 cat confdefs.h >>conftest.$ac_ext
67121 cat >>conftest.$ac_ext <<_ACEOF
67122 /* end confdefs.h.  */
67123 #include <$header>
67124
67125 _ACEOF
67126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67127   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67128   ice_cv_have_syslog_decl=yes
67129 fi
67130 rm -f conftest*
67131
67132 if test "$ice_cv_have_syslog_decl" = yes; then
67133         break
67134 fi
67135 done
67136
67137 fi
67138
67139 { echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
67140 echo "${ECHO_T}$ice_cv_have_syslog_decl" >&6; }
67141 if test "$ice_cv_have_syslog_decl" = yes; then
67142
67143 cat >>confdefs.h <<_ACEOF
67144 #define HAVE_SYSLOG_DECL 1
67145 _ACEOF
67146
67147 fi
67148 fi
67149
67150
67151 ice_have_system=no
67152
67153 for ac_func in system
67154 do
67155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67156 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67159   echo $ECHO_N "(cached) $ECHO_C" >&6
67160 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67168    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67169 #define $ac_func innocuous_$ac_func
67170
67171 /* System header to define __stub macros and hopefully few prototypes,
67172     which can conflict with char $ac_func (); below.
67173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67174     <limits.h> exists even on freestanding compilers.  */
67175
67176 #ifdef __STDC__
67177 # include <limits.h>
67178 #else
67179 # include <assert.h>
67180 #endif
67181
67182 #undef $ac_func
67183
67184 /* Override any GCC internal prototype to avoid an error.
67185    Use char because int might match the return type of a GCC
67186    builtin and then its argument prototype would still apply.  */
67187 #ifdef __cplusplus
67188 extern "C"
67189 #endif
67190 char $ac_func ();
67191 /* The GNU C library defines this for functions which it implements
67192     to always fail with ENOSYS.  Some functions are actually named
67193     something starting with __ and the normal name is an alias.  */
67194 #if defined __stub_$ac_func || defined __stub___$ac_func
67195 choke me
67196 #endif
67197
67198 int
67199 main ()
67200 {
67201 return $ac_func ();
67202   ;
67203   return 0;
67204 }
67205 _ACEOF
67206 rm -f conftest.$ac_objext conftest$ac_exeext
67207 if { (ac_try="$ac_link"
67208 case "(($ac_try" in
67209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67210   *) ac_try_echo=$ac_try;;
67211 esac
67212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67213   (eval "$ac_link") 2>conftest.er1
67214   ac_status=$?
67215   grep -v '^ *+' conftest.er1 >conftest.err
67216   rm -f conftest.er1
67217   cat conftest.err >&5
67218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67219   (exit $ac_status); } && {
67220          test -z "$ac_c_werror_flag" ||
67221          test ! -s conftest.err
67222        } && test -s conftest$ac_exeext &&
67223        $as_test_x conftest$ac_exeext; then
67224   eval "$as_ac_var=yes"
67225 else
67226   echo "$as_me: failed program was:" >&5
67227 sed 's/^/| /' conftest.$ac_ext >&5
67228
67229         eval "$as_ac_var=no"
67230 fi
67231
67232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67233       conftest$ac_exeext conftest.$ac_ext
67234 fi
67235 ac_res=`eval echo '${'$as_ac_var'}'`
67236                { echo "$as_me:$LINENO: result: $ac_res" >&5
67237 echo "${ECHO_T}$ac_res" >&6; }
67238 if test `eval echo '${'$as_ac_var'}'` = yes; then
67239   cat >>confdefs.h <<_ACEOF
67240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67241 _ACEOF
67242  ice_have_system=yes
67243 fi
67244 done
67245
67246 if test "${ice_have_system}" = yes; then
67247 { echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
67248 echo $ECHO_N "checking for system declaration in stdlib.h... $ECHO_C" >&6; }
67249 if test "${ice_cv_have_system_decl+set}" = set; then
67250   echo $ECHO_N "(cached) $ECHO_C" >&6
67251 else
67252
67253 ice_cv_have_system_decl=no
67254 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67255 ice_re_word='(^|[^a-zA-Z0-9_])'
67256 for header in stdlib.h; do
67257 # Check for ordinary declaration
67258 cat >conftest.$ac_ext <<_ACEOF
67259 /* confdefs.h.  */
67260 _ACEOF
67261 cat confdefs.h >>conftest.$ac_ext
67262 cat >>conftest.$ac_ext <<_ACEOF
67263 /* end confdefs.h.  */
67264 #include <$header>
67265
67266 _ACEOF
67267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67268   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then
67269   ice_cv_have_system_decl=yes
67270 fi
67271 rm -f conftest*
67272
67273 if test "$ice_cv_have_system_decl" = yes; then
67274         break
67275 fi
67276 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67277 cat >conftest.$ac_ext <<_ACEOF
67278 /* confdefs.h.  */
67279 _ACEOF
67280 cat confdefs.h >>conftest.$ac_ext
67281 cat >>conftest.$ac_ext <<_ACEOF
67282 /* end confdefs.h.  */
67283 #include <$header>
67284
67285 _ACEOF
67286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67287   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67288   ice_cv_have_system_decl=yes
67289 fi
67290 rm -f conftest*
67291
67292 if test "$ice_cv_have_system_decl" = yes; then
67293         break
67294 fi
67295 done
67296
67297 fi
67298
67299 { echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
67300 echo "${ECHO_T}$ice_cv_have_system_decl" >&6; }
67301 if test "$ice_cv_have_system_decl" = yes; then
67302
67303 cat >>confdefs.h <<_ACEOF
67304 #define HAVE_SYSTEM_DECL 1
67305 _ACEOF
67306
67307 fi
67308 fi
67309
67310
67311 ice_have_time=no
67312
67313 for ac_func in time
67314 do
67315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67316 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67319   echo $ECHO_N "(cached) $ECHO_C" >&6
67320 else
67321   cat >conftest.$ac_ext <<_ACEOF
67322 /* confdefs.h.  */
67323 _ACEOF
67324 cat confdefs.h >>conftest.$ac_ext
67325 cat >>conftest.$ac_ext <<_ACEOF
67326 /* end confdefs.h.  */
67327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67328    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67329 #define $ac_func innocuous_$ac_func
67330
67331 /* System header to define __stub macros and hopefully few prototypes,
67332     which can conflict with char $ac_func (); below.
67333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67334     <limits.h> exists even on freestanding compilers.  */
67335
67336 #ifdef __STDC__
67337 # include <limits.h>
67338 #else
67339 # include <assert.h>
67340 #endif
67341
67342 #undef $ac_func
67343
67344 /* Override any GCC internal prototype to avoid an error.
67345    Use char because int might match the return type of a GCC
67346    builtin and then its argument prototype would still apply.  */
67347 #ifdef __cplusplus
67348 extern "C"
67349 #endif
67350 char $ac_func ();
67351 /* The GNU C library defines this for functions which it implements
67352     to always fail with ENOSYS.  Some functions are actually named
67353     something starting with __ and the normal name is an alias.  */
67354 #if defined __stub_$ac_func || defined __stub___$ac_func
67355 choke me
67356 #endif
67357
67358 int
67359 main ()
67360 {
67361 return $ac_func ();
67362   ;
67363   return 0;
67364 }
67365 _ACEOF
67366 rm -f conftest.$ac_objext conftest$ac_exeext
67367 if { (ac_try="$ac_link"
67368 case "(($ac_try" in
67369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67370   *) ac_try_echo=$ac_try;;
67371 esac
67372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67373   (eval "$ac_link") 2>conftest.er1
67374   ac_status=$?
67375   grep -v '^ *+' conftest.er1 >conftest.err
67376   rm -f conftest.er1
67377   cat conftest.err >&5
67378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67379   (exit $ac_status); } && {
67380          test -z "$ac_c_werror_flag" ||
67381          test ! -s conftest.err
67382        } && test -s conftest$ac_exeext &&
67383        $as_test_x conftest$ac_exeext; then
67384   eval "$as_ac_var=yes"
67385 else
67386   echo "$as_me: failed program was:" >&5
67387 sed 's/^/| /' conftest.$ac_ext >&5
67388
67389         eval "$as_ac_var=no"
67390 fi
67391
67392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67393       conftest$ac_exeext conftest.$ac_ext
67394 fi
67395 ac_res=`eval echo '${'$as_ac_var'}'`
67396                { echo "$as_me:$LINENO: result: $ac_res" >&5
67397 echo "${ECHO_T}$ac_res" >&6; }
67398 if test `eval echo '${'$as_ac_var'}'` = yes; then
67399   cat >>confdefs.h <<_ACEOF
67400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67401 _ACEOF
67402  ice_have_time=yes
67403 fi
67404 done
67405
67406 if test "${ice_have_time}" = yes; then
67407 { echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
67408 echo $ECHO_N "checking for time declaration in time.h sys/time.h... $ECHO_C" >&6; }
67409 if test "${ice_cv_have_time_decl+set}" = set; then
67410   echo $ECHO_N "(cached) $ECHO_C" >&6
67411 else
67412
67413 ice_cv_have_time_decl=no
67414 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67415 ice_re_word='(^|[^a-zA-Z0-9_])'
67416 for header in time.h sys/time.h; do
67417 # Check for ordinary declaration
67418 cat >conftest.$ac_ext <<_ACEOF
67419 /* confdefs.h.  */
67420 _ACEOF
67421 cat confdefs.h >>conftest.$ac_ext
67422 cat >>conftest.$ac_ext <<_ACEOF
67423 /* end confdefs.h.  */
67424 #include <$header>
67425
67426 _ACEOF
67427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67428   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then
67429   ice_cv_have_time_decl=yes
67430 fi
67431 rm -f conftest*
67432
67433 if test "$ice_cv_have_time_decl" = yes; then
67434         break
67435 fi
67436 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67437 cat >conftest.$ac_ext <<_ACEOF
67438 /* confdefs.h.  */
67439 _ACEOF
67440 cat confdefs.h >>conftest.$ac_ext
67441 cat >>conftest.$ac_ext <<_ACEOF
67442 /* end confdefs.h.  */
67443 #include <$header>
67444
67445 _ACEOF
67446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67447   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67448   ice_cv_have_time_decl=yes
67449 fi
67450 rm -f conftest*
67451
67452 if test "$ice_cv_have_time_decl" = yes; then
67453         break
67454 fi
67455 done
67456
67457 fi
67458
67459 { echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
67460 echo "${ECHO_T}$ice_cv_have_time_decl" >&6; }
67461 if test "$ice_cv_have_time_decl" = yes; then
67462
67463 cat >>confdefs.h <<_ACEOF
67464 #define HAVE_TIME_DECL 1
67465 _ACEOF
67466
67467 fi
67468 fi
67469
67470
67471 ice_have_tolower=no
67472
67473 for ac_func in tolower
67474 do
67475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67479   echo $ECHO_N "(cached) $ECHO_C" >&6
67480 else
67481   cat >conftest.$ac_ext <<_ACEOF
67482 /* confdefs.h.  */
67483 _ACEOF
67484 cat confdefs.h >>conftest.$ac_ext
67485 cat >>conftest.$ac_ext <<_ACEOF
67486 /* end confdefs.h.  */
67487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67489 #define $ac_func innocuous_$ac_func
67490
67491 /* System header to define __stub macros and hopefully few prototypes,
67492     which can conflict with char $ac_func (); below.
67493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67494     <limits.h> exists even on freestanding compilers.  */
67495
67496 #ifdef __STDC__
67497 # include <limits.h>
67498 #else
67499 # include <assert.h>
67500 #endif
67501
67502 #undef $ac_func
67503
67504 /* Override any GCC internal prototype to avoid an error.
67505    Use char because int might match the return type of a GCC
67506    builtin and then its argument prototype would still apply.  */
67507 #ifdef __cplusplus
67508 extern "C"
67509 #endif
67510 char $ac_func ();
67511 /* The GNU C library defines this for functions which it implements
67512     to always fail with ENOSYS.  Some functions are actually named
67513     something starting with __ and the normal name is an alias.  */
67514 #if defined __stub_$ac_func || defined __stub___$ac_func
67515 choke me
67516 #endif
67517
67518 int
67519 main ()
67520 {
67521 return $ac_func ();
67522   ;
67523   return 0;
67524 }
67525 _ACEOF
67526 rm -f conftest.$ac_objext conftest$ac_exeext
67527 if { (ac_try="$ac_link"
67528 case "(($ac_try" in
67529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67530   *) ac_try_echo=$ac_try;;
67531 esac
67532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67533   (eval "$ac_link") 2>conftest.er1
67534   ac_status=$?
67535   grep -v '^ *+' conftest.er1 >conftest.err
67536   rm -f conftest.er1
67537   cat conftest.err >&5
67538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67539   (exit $ac_status); } && {
67540          test -z "$ac_c_werror_flag" ||
67541          test ! -s conftest.err
67542        } && test -s conftest$ac_exeext &&
67543        $as_test_x conftest$ac_exeext; then
67544   eval "$as_ac_var=yes"
67545 else
67546   echo "$as_me: failed program was:" >&5
67547 sed 's/^/| /' conftest.$ac_ext >&5
67548
67549         eval "$as_ac_var=no"
67550 fi
67551
67552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67553       conftest$ac_exeext conftest.$ac_ext
67554 fi
67555 ac_res=`eval echo '${'$as_ac_var'}'`
67556                { echo "$as_me:$LINENO: result: $ac_res" >&5
67557 echo "${ECHO_T}$ac_res" >&6; }
67558 if test `eval echo '${'$as_ac_var'}'` = yes; then
67559   cat >>confdefs.h <<_ACEOF
67560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67561 _ACEOF
67562  ice_have_tolower=yes
67563 fi
67564 done
67565
67566 if test "${ice_have_tolower}" = yes; then
67567 { echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
67568 echo $ECHO_N "checking for tolower declaration in ctype.h... $ECHO_C" >&6; }
67569 if test "${ice_cv_have_tolower_decl+set}" = set; then
67570   echo $ECHO_N "(cached) $ECHO_C" >&6
67571 else
67572
67573 ice_cv_have_tolower_decl=no
67574 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67575 ice_re_word='(^|[^a-zA-Z0-9_])'
67576 for header in ctype.h; do
67577 # Check for ordinary declaration
67578 cat >conftest.$ac_ext <<_ACEOF
67579 /* confdefs.h.  */
67580 _ACEOF
67581 cat confdefs.h >>conftest.$ac_ext
67582 cat >>conftest.$ac_ext <<_ACEOF
67583 /* end confdefs.h.  */
67584 #include <$header>
67585
67586 _ACEOF
67587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67588   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then
67589   ice_cv_have_tolower_decl=yes
67590 fi
67591 rm -f conftest*
67592
67593 if test "$ice_cv_have_tolower_decl" = yes; then
67594         break
67595 fi
67596 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67597 cat >conftest.$ac_ext <<_ACEOF
67598 /* confdefs.h.  */
67599 _ACEOF
67600 cat confdefs.h >>conftest.$ac_ext
67601 cat >>conftest.$ac_ext <<_ACEOF
67602 /* end confdefs.h.  */
67603 #include <$header>
67604
67605 _ACEOF
67606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67607   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67608   ice_cv_have_tolower_decl=yes
67609 fi
67610 rm -f conftest*
67611
67612 if test "$ice_cv_have_tolower_decl" = yes; then
67613         break
67614 fi
67615 done
67616
67617 fi
67618
67619 { echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
67620 echo "${ECHO_T}$ice_cv_have_tolower_decl" >&6; }
67621 if test "$ice_cv_have_tolower_decl" = yes; then
67622
67623 cat >>confdefs.h <<_ACEOF
67624 #define HAVE_TOLOWER_DECL 1
67625 _ACEOF
67626
67627 fi
67628 fi
67629
67630
67631 ice_have_toupper=no
67632
67633 for ac_func in toupper
67634 do
67635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67639   echo $ECHO_N "(cached) $ECHO_C" >&6
67640 else
67641   cat >conftest.$ac_ext <<_ACEOF
67642 /* confdefs.h.  */
67643 _ACEOF
67644 cat confdefs.h >>conftest.$ac_ext
67645 cat >>conftest.$ac_ext <<_ACEOF
67646 /* end confdefs.h.  */
67647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67649 #define $ac_func innocuous_$ac_func
67650
67651 /* System header to define __stub macros and hopefully few prototypes,
67652     which can conflict with char $ac_func (); below.
67653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67654     <limits.h> exists even on freestanding compilers.  */
67655
67656 #ifdef __STDC__
67657 # include <limits.h>
67658 #else
67659 # include <assert.h>
67660 #endif
67661
67662 #undef $ac_func
67663
67664 /* Override any GCC internal prototype to avoid an error.
67665    Use char because int might match the return type of a GCC
67666    builtin and then its argument prototype would still apply.  */
67667 #ifdef __cplusplus
67668 extern "C"
67669 #endif
67670 char $ac_func ();
67671 /* The GNU C library defines this for functions which it implements
67672     to always fail with ENOSYS.  Some functions are actually named
67673     something starting with __ and the normal name is an alias.  */
67674 #if defined __stub_$ac_func || defined __stub___$ac_func
67675 choke me
67676 #endif
67677
67678 int
67679 main ()
67680 {
67681 return $ac_func ();
67682   ;
67683   return 0;
67684 }
67685 _ACEOF
67686 rm -f conftest.$ac_objext conftest$ac_exeext
67687 if { (ac_try="$ac_link"
67688 case "(($ac_try" in
67689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67690   *) ac_try_echo=$ac_try;;
67691 esac
67692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67693   (eval "$ac_link") 2>conftest.er1
67694   ac_status=$?
67695   grep -v '^ *+' conftest.er1 >conftest.err
67696   rm -f conftest.er1
67697   cat conftest.err >&5
67698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67699   (exit $ac_status); } && {
67700          test -z "$ac_c_werror_flag" ||
67701          test ! -s conftest.err
67702        } && test -s conftest$ac_exeext &&
67703        $as_test_x conftest$ac_exeext; then
67704   eval "$as_ac_var=yes"
67705 else
67706   echo "$as_me: failed program was:" >&5
67707 sed 's/^/| /' conftest.$ac_ext >&5
67708
67709         eval "$as_ac_var=no"
67710 fi
67711
67712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67713       conftest$ac_exeext conftest.$ac_ext
67714 fi
67715 ac_res=`eval echo '${'$as_ac_var'}'`
67716                { echo "$as_me:$LINENO: result: $ac_res" >&5
67717 echo "${ECHO_T}$ac_res" >&6; }
67718 if test `eval echo '${'$as_ac_var'}'` = yes; then
67719   cat >>confdefs.h <<_ACEOF
67720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67721 _ACEOF
67722  ice_have_toupper=yes
67723 fi
67724 done
67725
67726 if test "${ice_have_toupper}" = yes; then
67727 { echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
67728 echo $ECHO_N "checking for toupper declaration in ctype.h... $ECHO_C" >&6; }
67729 if test "${ice_cv_have_toupper_decl+set}" = set; then
67730   echo $ECHO_N "(cached) $ECHO_C" >&6
67731 else
67732
67733 ice_cv_have_toupper_decl=no
67734 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67735 ice_re_word='(^|[^a-zA-Z0-9_])'
67736 for header in ctype.h; do
67737 # Check for ordinary declaration
67738 cat >conftest.$ac_ext <<_ACEOF
67739 /* confdefs.h.  */
67740 _ACEOF
67741 cat confdefs.h >>conftest.$ac_ext
67742 cat >>conftest.$ac_ext <<_ACEOF
67743 /* end confdefs.h.  */
67744 #include <$header>
67745
67746 _ACEOF
67747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67748   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then
67749   ice_cv_have_toupper_decl=yes
67750 fi
67751 rm -f conftest*
67752
67753 if test "$ice_cv_have_toupper_decl" = yes; then
67754         break
67755 fi
67756 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67757 cat >conftest.$ac_ext <<_ACEOF
67758 /* confdefs.h.  */
67759 _ACEOF
67760 cat confdefs.h >>conftest.$ac_ext
67761 cat >>conftest.$ac_ext <<_ACEOF
67762 /* end confdefs.h.  */
67763 #include <$header>
67764
67765 _ACEOF
67766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67767   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67768   ice_cv_have_toupper_decl=yes
67769 fi
67770 rm -f conftest*
67771
67772 if test "$ice_cv_have_toupper_decl" = yes; then
67773         break
67774 fi
67775 done
67776
67777 fi
67778
67779 { echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
67780 echo "${ECHO_T}$ice_cv_have_toupper_decl" >&6; }
67781 if test "$ice_cv_have_toupper_decl" = yes; then
67782
67783 cat >>confdefs.h <<_ACEOF
67784 #define HAVE_TOUPPER_DECL 1
67785 _ACEOF
67786
67787 fi
67788 fi
67789
67790
67791 ice_have_ungetc=no
67792
67793 for ac_func in ungetc
67794 do
67795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67799   echo $ECHO_N "(cached) $ECHO_C" >&6
67800 else
67801   cat >conftest.$ac_ext <<_ACEOF
67802 /* confdefs.h.  */
67803 _ACEOF
67804 cat confdefs.h >>conftest.$ac_ext
67805 cat >>conftest.$ac_ext <<_ACEOF
67806 /* end confdefs.h.  */
67807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67809 #define $ac_func innocuous_$ac_func
67810
67811 /* System header to define __stub macros and hopefully few prototypes,
67812     which can conflict with char $ac_func (); below.
67813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67814     <limits.h> exists even on freestanding compilers.  */
67815
67816 #ifdef __STDC__
67817 # include <limits.h>
67818 #else
67819 # include <assert.h>
67820 #endif
67821
67822 #undef $ac_func
67823
67824 /* Override any GCC internal prototype to avoid an error.
67825    Use char because int might match the return type of a GCC
67826    builtin and then its argument prototype would still apply.  */
67827 #ifdef __cplusplus
67828 extern "C"
67829 #endif
67830 char $ac_func ();
67831 /* The GNU C library defines this for functions which it implements
67832     to always fail with ENOSYS.  Some functions are actually named
67833     something starting with __ and the normal name is an alias.  */
67834 #if defined __stub_$ac_func || defined __stub___$ac_func
67835 choke me
67836 #endif
67837
67838 int
67839 main ()
67840 {
67841 return $ac_func ();
67842   ;
67843   return 0;
67844 }
67845 _ACEOF
67846 rm -f conftest.$ac_objext conftest$ac_exeext
67847 if { (ac_try="$ac_link"
67848 case "(($ac_try" in
67849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67850   *) ac_try_echo=$ac_try;;
67851 esac
67852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67853   (eval "$ac_link") 2>conftest.er1
67854   ac_status=$?
67855   grep -v '^ *+' conftest.er1 >conftest.err
67856   rm -f conftest.er1
67857   cat conftest.err >&5
67858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67859   (exit $ac_status); } && {
67860          test -z "$ac_c_werror_flag" ||
67861          test ! -s conftest.err
67862        } && test -s conftest$ac_exeext &&
67863        $as_test_x conftest$ac_exeext; then
67864   eval "$as_ac_var=yes"
67865 else
67866   echo "$as_me: failed program was:" >&5
67867 sed 's/^/| /' conftest.$ac_ext >&5
67868
67869         eval "$as_ac_var=no"
67870 fi
67871
67872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67873       conftest$ac_exeext conftest.$ac_ext
67874 fi
67875 ac_res=`eval echo '${'$as_ac_var'}'`
67876                { echo "$as_me:$LINENO: result: $ac_res" >&5
67877 echo "${ECHO_T}$ac_res" >&6; }
67878 if test `eval echo '${'$as_ac_var'}'` = yes; then
67879   cat >>confdefs.h <<_ACEOF
67880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67881 _ACEOF
67882  ice_have_ungetc=yes
67883 fi
67884 done
67885
67886 if test "${ice_have_ungetc}" = yes; then
67887 { echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
67888 echo $ECHO_N "checking for ungetc declaration in stdio.h... $ECHO_C" >&6; }
67889 if test "${ice_cv_have_ungetc_decl+set}" = set; then
67890   echo $ECHO_N "(cached) $ECHO_C" >&6
67891 else
67892
67893 ice_cv_have_ungetc_decl=no
67894 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67895 ice_re_word='(^|[^a-zA-Z0-9_])'
67896 for header in stdio.h; do
67897 # Check for ordinary declaration
67898 cat >conftest.$ac_ext <<_ACEOF
67899 /* confdefs.h.  */
67900 _ACEOF
67901 cat confdefs.h >>conftest.$ac_ext
67902 cat >>conftest.$ac_ext <<_ACEOF
67903 /* end confdefs.h.  */
67904 #include <$header>
67905
67906 _ACEOF
67907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67908   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then
67909   ice_cv_have_ungetc_decl=yes
67910 fi
67911 rm -f conftest*
67912
67913 if test "$ice_cv_have_ungetc_decl" = yes; then
67914         break
67915 fi
67916 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67917 cat >conftest.$ac_ext <<_ACEOF
67918 /* confdefs.h.  */
67919 _ACEOF
67920 cat confdefs.h >>conftest.$ac_ext
67921 cat >>conftest.$ac_ext <<_ACEOF
67922 /* end confdefs.h.  */
67923 #include <$header>
67924
67925 _ACEOF
67926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67927   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67928   ice_cv_have_ungetc_decl=yes
67929 fi
67930 rm -f conftest*
67931
67932 if test "$ice_cv_have_ungetc_decl" = yes; then
67933         break
67934 fi
67935 done
67936
67937 fi
67938
67939 { echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
67940 echo "${ECHO_T}$ice_cv_have_ungetc_decl" >&6; }
67941 if test "$ice_cv_have_ungetc_decl" = yes; then
67942
67943 cat >>confdefs.h <<_ACEOF
67944 #define HAVE_UNGETC_DECL 1
67945 _ACEOF
67946
67947 fi
67948 fi
67949
67950
67951 ice_have_vfprintf=no
67952
67953 for ac_func in vfprintf
67954 do
67955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67959   echo $ECHO_N "(cached) $ECHO_C" >&6
67960 else
67961   cat >conftest.$ac_ext <<_ACEOF
67962 /* confdefs.h.  */
67963 _ACEOF
67964 cat confdefs.h >>conftest.$ac_ext
67965 cat >>conftest.$ac_ext <<_ACEOF
67966 /* end confdefs.h.  */
67967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67969 #define $ac_func innocuous_$ac_func
67970
67971 /* System header to define __stub macros and hopefully few prototypes,
67972     which can conflict with char $ac_func (); below.
67973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67974     <limits.h> exists even on freestanding compilers.  */
67975
67976 #ifdef __STDC__
67977 # include <limits.h>
67978 #else
67979 # include <assert.h>
67980 #endif
67981
67982 #undef $ac_func
67983
67984 /* Override any GCC internal prototype to avoid an error.
67985    Use char because int might match the return type of a GCC
67986    builtin and then its argument prototype would still apply.  */
67987 #ifdef __cplusplus
67988 extern "C"
67989 #endif
67990 char $ac_func ();
67991 /* The GNU C library defines this for functions which it implements
67992     to always fail with ENOSYS.  Some functions are actually named
67993     something starting with __ and the normal name is an alias.  */
67994 #if defined __stub_$ac_func || defined __stub___$ac_func
67995 choke me
67996 #endif
67997
67998 int
67999 main ()
68000 {
68001 return $ac_func ();
68002   ;
68003   return 0;
68004 }
68005 _ACEOF
68006 rm -f conftest.$ac_objext conftest$ac_exeext
68007 if { (ac_try="$ac_link"
68008 case "(($ac_try" in
68009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68010   *) ac_try_echo=$ac_try;;
68011 esac
68012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68013   (eval "$ac_link") 2>conftest.er1
68014   ac_status=$?
68015   grep -v '^ *+' conftest.er1 >conftest.err
68016   rm -f conftest.er1
68017   cat conftest.err >&5
68018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68019   (exit $ac_status); } && {
68020          test -z "$ac_c_werror_flag" ||
68021          test ! -s conftest.err
68022        } && test -s conftest$ac_exeext &&
68023        $as_test_x conftest$ac_exeext; then
68024   eval "$as_ac_var=yes"
68025 else
68026   echo "$as_me: failed program was:" >&5
68027 sed 's/^/| /' conftest.$ac_ext >&5
68028
68029         eval "$as_ac_var=no"
68030 fi
68031
68032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68033       conftest$ac_exeext conftest.$ac_ext
68034 fi
68035 ac_res=`eval echo '${'$as_ac_var'}'`
68036                { echo "$as_me:$LINENO: result: $ac_res" >&5
68037 echo "${ECHO_T}$ac_res" >&6; }
68038 if test `eval echo '${'$as_ac_var'}'` = yes; then
68039   cat >>confdefs.h <<_ACEOF
68040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68041 _ACEOF
68042  ice_have_vfprintf=yes
68043 fi
68044 done
68045
68046 if test "${ice_have_vfprintf}" = yes; then
68047 { echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
68048 echo $ECHO_N "checking for vfprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6; }
68049 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
68050   echo $ECHO_N "(cached) $ECHO_C" >&6
68051 else
68052
68053 ice_cv_have_vfprintf_decl=no
68054 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68055 ice_re_word='(^|[^a-zA-Z0-9_])'
68056 for header in stdio.h stdlib.h; do
68057 # Check for ordinary declaration
68058 cat >conftest.$ac_ext <<_ACEOF
68059 /* confdefs.h.  */
68060 _ACEOF
68061 cat confdefs.h >>conftest.$ac_ext
68062 cat >>conftest.$ac_ext <<_ACEOF
68063 /* end confdefs.h.  */
68064 #include <$header>
68065
68066 _ACEOF
68067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68068   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then
68069   ice_cv_have_vfprintf_decl=yes
68070 fi
68071 rm -f conftest*
68072
68073 if test "$ice_cv_have_vfprintf_decl" = yes; then
68074         break
68075 fi
68076 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68077 cat >conftest.$ac_ext <<_ACEOF
68078 /* confdefs.h.  */
68079 _ACEOF
68080 cat confdefs.h >>conftest.$ac_ext
68081 cat >>conftest.$ac_ext <<_ACEOF
68082 /* end confdefs.h.  */
68083 #include <$header>
68084
68085 _ACEOF
68086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68087   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68088   ice_cv_have_vfprintf_decl=yes
68089 fi
68090 rm -f conftest*
68091
68092 if test "$ice_cv_have_vfprintf_decl" = yes; then
68093         break
68094 fi
68095 done
68096
68097 fi
68098
68099 { echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
68100 echo "${ECHO_T}$ice_cv_have_vfprintf_decl" >&6; }
68101 if test "$ice_cv_have_vfprintf_decl" = yes; then
68102
68103 cat >>confdefs.h <<_ACEOF
68104 #define HAVE_VFPRINTF_DECL 1
68105 _ACEOF
68106
68107 fi
68108 fi
68109
68110
68111 ice_have_vprintf=no
68112
68113 for ac_func in vprintf
68114 do
68115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
68117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
68118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68119   echo $ECHO_N "(cached) $ECHO_C" >&6
68120 else
68121   cat >conftest.$ac_ext <<_ACEOF
68122 /* confdefs.h.  */
68123 _ACEOF
68124 cat confdefs.h >>conftest.$ac_ext
68125 cat >>conftest.$ac_ext <<_ACEOF
68126 /* end confdefs.h.  */
68127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68129 #define $ac_func innocuous_$ac_func
68130
68131 /* System header to define __stub macros and hopefully few prototypes,
68132     which can conflict with char $ac_func (); below.
68133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68134     <limits.h> exists even on freestanding compilers.  */
68135
68136 #ifdef __STDC__
68137 # include <limits.h>
68138 #else
68139 # include <assert.h>
68140 #endif
68141
68142 #undef $ac_func
68143
68144 /* Override any GCC internal prototype to avoid an error.
68145    Use char because int might match the return type of a GCC
68146    builtin and then its argument prototype would still apply.  */
68147 #ifdef __cplusplus
68148 extern "C"
68149 #endif
68150 char $ac_func ();
68151 /* The GNU C library defines this for functions which it implements
68152     to always fail with ENOSYS.  Some functions are actually named
68153     something starting with __ and the normal name is an alias.  */
68154 #if defined __stub_$ac_func || defined __stub___$ac_func
68155 choke me
68156 #endif
68157
68158 int
68159 main ()
68160 {
68161 return $ac_func ();
68162   ;
68163   return 0;
68164 }
68165 _ACEOF
68166 rm -f conftest.$ac_objext conftest$ac_exeext
68167 if { (ac_try="$ac_link"
68168 case "(($ac_try" in
68169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68170   *) ac_try_echo=$ac_try;;
68171 esac
68172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68173   (eval "$ac_link") 2>conftest.er1
68174   ac_status=$?
68175   grep -v '^ *+' conftest.er1 >conftest.err
68176   rm -f conftest.er1
68177   cat conftest.err >&5
68178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68179   (exit $ac_status); } && {
68180          test -z "$ac_c_werror_flag" ||
68181          test ! -s conftest.err
68182        } && test -s conftest$ac_exeext &&
68183        $as_test_x conftest$ac_exeext; then
68184   eval "$as_ac_var=yes"
68185 else
68186   echo "$as_me: failed program was:" >&5
68187 sed 's/^/| /' conftest.$ac_ext >&5
68188
68189         eval "$as_ac_var=no"
68190 fi
68191
68192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68193       conftest$ac_exeext conftest.$ac_ext
68194 fi
68195 ac_res=`eval echo '${'$as_ac_var'}'`
68196                { echo "$as_me:$LINENO: result: $ac_res" >&5
68197 echo "${ECHO_T}$ac_res" >&6; }
68198 if test `eval echo '${'$as_ac_var'}'` = yes; then
68199   cat >>confdefs.h <<_ACEOF
68200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68201 _ACEOF
68202  ice_have_vprintf=yes
68203 fi
68204 done
68205
68206 if test "${ice_have_vprintf}" = yes; then
68207 { echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
68208 echo $ECHO_N "checking for vprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6; }
68209 if test "${ice_cv_have_vprintf_decl+set}" = set; then
68210   echo $ECHO_N "(cached) $ECHO_C" >&6
68211 else
68212
68213 ice_cv_have_vprintf_decl=no
68214 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68215 ice_re_word='(^|[^a-zA-Z0-9_])'
68216 for header in stdio.h stdlib.h; do
68217 # Check for ordinary declaration
68218 cat >conftest.$ac_ext <<_ACEOF
68219 /* confdefs.h.  */
68220 _ACEOF
68221 cat confdefs.h >>conftest.$ac_ext
68222 cat >>conftest.$ac_ext <<_ACEOF
68223 /* end confdefs.h.  */
68224 #include <$header>
68225
68226 _ACEOF
68227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68228   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then
68229   ice_cv_have_vprintf_decl=yes
68230 fi
68231 rm -f conftest*
68232
68233 if test "$ice_cv_have_vprintf_decl" = yes; then
68234         break
68235 fi
68236 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68237 cat >conftest.$ac_ext <<_ACEOF
68238 /* confdefs.h.  */
68239 _ACEOF
68240 cat confdefs.h >>conftest.$ac_ext
68241 cat >>conftest.$ac_ext <<_ACEOF
68242 /* end confdefs.h.  */
68243 #include <$header>
68244
68245 _ACEOF
68246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68247   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68248   ice_cv_have_vprintf_decl=yes
68249 fi
68250 rm -f conftest*
68251
68252 if test "$ice_cv_have_vprintf_decl" = yes; then
68253         break
68254 fi
68255 done
68256
68257 fi
68258
68259 { echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
68260 echo "${ECHO_T}$ice_cv_have_vprintf_decl" >&6; }
68261 if test "$ice_cv_have_vprintf_decl" = yes; then
68262
68263 cat >>confdefs.h <<_ACEOF
68264 #define HAVE_VPRINTF_DECL 1
68265 _ACEOF
68266
68267 fi
68268 fi
68269
68270 { echo "$as_me:$LINENO: checking for wait4" >&5
68271 echo $ECHO_N "checking for wait4... $ECHO_C" >&6; }
68272 if test "${ac_cv_func_wait4+set}" = set; then
68273   echo $ECHO_N "(cached) $ECHO_C" >&6
68274 else
68275   cat >conftest.$ac_ext <<_ACEOF
68276 /* confdefs.h.  */
68277 _ACEOF
68278 cat confdefs.h >>conftest.$ac_ext
68279 cat >>conftest.$ac_ext <<_ACEOF
68280 /* end confdefs.h.  */
68281 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
68282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68283 #define wait4 innocuous_wait4
68284
68285 /* System header to define __stub macros and hopefully few prototypes,
68286     which can conflict with char wait4 (); below.
68287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68288     <limits.h> exists even on freestanding compilers.  */
68289
68290 #ifdef __STDC__
68291 # include <limits.h>
68292 #else
68293 # include <assert.h>
68294 #endif
68295
68296 #undef wait4
68297
68298 /* Override any GCC internal prototype to avoid an error.
68299    Use char because int might match the return type of a GCC
68300    builtin and then its argument prototype would still apply.  */
68301 #ifdef __cplusplus
68302 extern "C"
68303 #endif
68304 char wait4 ();
68305 /* The GNU C library defines this for functions which it implements
68306     to always fail with ENOSYS.  Some functions are actually named
68307     something starting with __ and the normal name is an alias.  */
68308 #if defined __stub_wait4 || defined __stub___wait4
68309 choke me
68310 #endif
68311
68312 int
68313 main ()
68314 {
68315 return wait4 ();
68316   ;
68317   return 0;
68318 }
68319 _ACEOF
68320 rm -f conftest.$ac_objext conftest$ac_exeext
68321 if { (ac_try="$ac_link"
68322 case "(($ac_try" in
68323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68324   *) ac_try_echo=$ac_try;;
68325 esac
68326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68327   (eval "$ac_link") 2>conftest.er1
68328   ac_status=$?
68329   grep -v '^ *+' conftest.er1 >conftest.err
68330   rm -f conftest.er1
68331   cat conftest.err >&5
68332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68333   (exit $ac_status); } && {
68334          test -z "$ac_c_werror_flag" ||
68335          test ! -s conftest.err
68336        } && test -s conftest$ac_exeext &&
68337        $as_test_x conftest$ac_exeext; then
68338   ac_cv_func_wait4=yes
68339 else
68340   echo "$as_me: failed program was:" >&5
68341 sed 's/^/| /' conftest.$ac_ext >&5
68342
68343         ac_cv_func_wait4=no
68344 fi
68345
68346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68347       conftest$ac_exeext conftest.$ac_ext
68348 fi
68349 { echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
68350 echo "${ECHO_T}$ac_cv_func_wait4" >&6; }
68351
68352
68353 ice_have_writev=no
68354
68355 for ac_func in writev
68356 do
68357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68358 { echo "$as_me:$LINENO: checking for $ac_func" >&5
68359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
68360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68361   echo $ECHO_N "(cached) $ECHO_C" >&6
68362 else
68363   cat >conftest.$ac_ext <<_ACEOF
68364 /* confdefs.h.  */
68365 _ACEOF
68366 cat confdefs.h >>conftest.$ac_ext
68367 cat >>conftest.$ac_ext <<_ACEOF
68368 /* end confdefs.h.  */
68369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68371 #define $ac_func innocuous_$ac_func
68372
68373 /* System header to define __stub macros and hopefully few prototypes,
68374     which can conflict with char $ac_func (); below.
68375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68376     <limits.h> exists even on freestanding compilers.  */
68377
68378 #ifdef __STDC__
68379 # include <limits.h>
68380 #else
68381 # include <assert.h>
68382 #endif
68383
68384 #undef $ac_func
68385
68386 /* Override any GCC internal prototype to avoid an error.
68387    Use char because int might match the return type of a GCC
68388    builtin and then its argument prototype would still apply.  */
68389 #ifdef __cplusplus
68390 extern "C"
68391 #endif
68392 char $ac_func ();
68393 /* The GNU C library defines this for functions which it implements
68394     to always fail with ENOSYS.  Some functions are actually named
68395     something starting with __ and the normal name is an alias.  */
68396 #if defined __stub_$ac_func || defined __stub___$ac_func
68397 choke me
68398 #endif
68399
68400 int
68401 main ()
68402 {
68403 return $ac_func ();
68404   ;
68405   return 0;
68406 }
68407 _ACEOF
68408 rm -f conftest.$ac_objext conftest$ac_exeext
68409 if { (ac_try="$ac_link"
68410 case "(($ac_try" in
68411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68412   *) ac_try_echo=$ac_try;;
68413 esac
68414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68415   (eval "$ac_link") 2>conftest.er1
68416   ac_status=$?
68417   grep -v '^ *+' conftest.er1 >conftest.err
68418   rm -f conftest.er1
68419   cat conftest.err >&5
68420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68421   (exit $ac_status); } && {
68422          test -z "$ac_c_werror_flag" ||
68423          test ! -s conftest.err
68424        } && test -s conftest$ac_exeext &&
68425        $as_test_x conftest$ac_exeext; then
68426   eval "$as_ac_var=yes"
68427 else
68428   echo "$as_me: failed program was:" >&5
68429 sed 's/^/| /' conftest.$ac_ext >&5
68430
68431         eval "$as_ac_var=no"
68432 fi
68433
68434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68435       conftest$ac_exeext conftest.$ac_ext
68436 fi
68437 ac_res=`eval echo '${'$as_ac_var'}'`
68438                { echo "$as_me:$LINENO: result: $ac_res" >&5
68439 echo "${ECHO_T}$ac_res" >&6; }
68440 if test `eval echo '${'$as_ac_var'}'` = yes; then
68441   cat >>confdefs.h <<_ACEOF
68442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68443 _ACEOF
68444  ice_have_writev=yes
68445 fi
68446 done
68447
68448 if test "${ice_have_writev}" = yes; then
68449 { echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
68450 echo $ECHO_N "checking for writev declaration in unistd.h sys/uio.h... $ECHO_C" >&6; }
68451 if test "${ice_cv_have_writev_decl+set}" = set; then
68452   echo $ECHO_N "(cached) $ECHO_C" >&6
68453 else
68454
68455 ice_cv_have_writev_decl=no
68456 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68457 ice_re_word='(^|[^a-zA-Z0-9_])'
68458 for header in unistd.h sys/uio.h; do
68459 # Check for ordinary declaration
68460 cat >conftest.$ac_ext <<_ACEOF
68461 /* confdefs.h.  */
68462 _ACEOF
68463 cat confdefs.h >>conftest.$ac_ext
68464 cat >>conftest.$ac_ext <<_ACEOF
68465 /* end confdefs.h.  */
68466 #include <$header>
68467
68468 _ACEOF
68469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68470   $EGREP "${ice_re_word}writev[         ]*\(" >/dev/null 2>&1; then
68471   ice_cv_have_writev_decl=yes
68472 fi
68473 rm -f conftest*
68474
68475 if test "$ice_cv_have_writev_decl" = yes; then
68476         break
68477 fi
68478 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68479 cat >conftest.$ac_ext <<_ACEOF
68480 /* confdefs.h.  */
68481 _ACEOF
68482 cat confdefs.h >>conftest.$ac_ext
68483 cat >>conftest.$ac_ext <<_ACEOF
68484 /* end confdefs.h.  */
68485 #include <$header>
68486
68487 _ACEOF
68488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68489   $EGREP "${ice_re_word}writev[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68490   ice_cv_have_writev_decl=yes
68491 fi
68492 rm -f conftest*
68493
68494 if test "$ice_cv_have_writev_decl" = yes; then
68495         break
68496 fi
68497 done
68498
68499 fi
68500
68501 { echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
68502 echo "${ECHO_T}$ice_cv_have_writev_decl" >&6; }
68503 if test "$ice_cv_have_writev_decl" = yes; then
68504
68505 cat >>confdefs.h <<_ACEOF
68506 #define HAVE_WRITEV_DECL 1
68507 _ACEOF
68508
68509 fi
68510 fi
68511
68512
68513 ice_have_strcasecmp=no
68514
68515 for ac_func in strcasecmp
68516 do
68517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
68519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
68520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68521   echo $ECHO_N "(cached) $ECHO_C" >&6
68522 else
68523   cat >conftest.$ac_ext <<_ACEOF
68524 /* confdefs.h.  */
68525 _ACEOF
68526 cat confdefs.h >>conftest.$ac_ext
68527 cat >>conftest.$ac_ext <<_ACEOF
68528 /* end confdefs.h.  */
68529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68531 #define $ac_func innocuous_$ac_func
68532
68533 /* System header to define __stub macros and hopefully few prototypes,
68534     which can conflict with char $ac_func (); below.
68535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68536     <limits.h> exists even on freestanding compilers.  */
68537
68538 #ifdef __STDC__
68539 # include <limits.h>
68540 #else
68541 # include <assert.h>
68542 #endif
68543
68544 #undef $ac_func
68545
68546 /* Override any GCC internal prototype to avoid an error.
68547    Use char because int might match the return type of a GCC
68548    builtin and then its argument prototype would still apply.  */
68549 #ifdef __cplusplus
68550 extern "C"
68551 #endif
68552 char $ac_func ();
68553 /* The GNU C library defines this for functions which it implements
68554     to always fail with ENOSYS.  Some functions are actually named
68555     something starting with __ and the normal name is an alias.  */
68556 #if defined __stub_$ac_func || defined __stub___$ac_func
68557 choke me
68558 #endif
68559
68560 int
68561 main ()
68562 {
68563 return $ac_func ();
68564   ;
68565   return 0;
68566 }
68567 _ACEOF
68568 rm -f conftest.$ac_objext conftest$ac_exeext
68569 if { (ac_try="$ac_link"
68570 case "(($ac_try" in
68571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68572   *) ac_try_echo=$ac_try;;
68573 esac
68574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68575   (eval "$ac_link") 2>conftest.er1
68576   ac_status=$?
68577   grep -v '^ *+' conftest.er1 >conftest.err
68578   rm -f conftest.er1
68579   cat conftest.err >&5
68580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68581   (exit $ac_status); } && {
68582          test -z "$ac_c_werror_flag" ||
68583          test ! -s conftest.err
68584        } && test -s conftest$ac_exeext &&
68585        $as_test_x conftest$ac_exeext; then
68586   eval "$as_ac_var=yes"
68587 else
68588   echo "$as_me: failed program was:" >&5
68589 sed 's/^/| /' conftest.$ac_ext >&5
68590
68591         eval "$as_ac_var=no"
68592 fi
68593
68594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68595       conftest$ac_exeext conftest.$ac_ext
68596 fi
68597 ac_res=`eval echo '${'$as_ac_var'}'`
68598                { echo "$as_me:$LINENO: result: $ac_res" >&5
68599 echo "${ECHO_T}$ac_res" >&6; }
68600 if test `eval echo '${'$as_ac_var'}'` = yes; then
68601   cat >>confdefs.h <<_ACEOF
68602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68603 _ACEOF
68604  ice_have_strcasecmp=yes
68605 fi
68606 done
68607
68608 if test "${ice_have_strcasecmp}" = yes; then
68609 { echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
68610 echo $ECHO_N "checking for strcasecmp declaration in string.h strings.h... $ECHO_C" >&6; }
68611 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
68612   echo $ECHO_N "(cached) $ECHO_C" >&6
68613 else
68614
68615 ice_cv_have_strcasecmp_decl=no
68616 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68617 ice_re_word='(^|[^a-zA-Z0-9_])'
68618 for header in string.h strings.h; do
68619 # Check for ordinary declaration
68620 cat >conftest.$ac_ext <<_ACEOF
68621 /* confdefs.h.  */
68622 _ACEOF
68623 cat confdefs.h >>conftest.$ac_ext
68624 cat >>conftest.$ac_ext <<_ACEOF
68625 /* end confdefs.h.  */
68626 #include <$header>
68627
68628 _ACEOF
68629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68630   $EGREP "${ice_re_word}strcasecmp[     ]*\(" >/dev/null 2>&1; then
68631   ice_cv_have_strcasecmp_decl=yes
68632 fi
68633 rm -f conftest*
68634
68635 if test "$ice_cv_have_strcasecmp_decl" = yes; then
68636         break
68637 fi
68638 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68639 cat >conftest.$ac_ext <<_ACEOF
68640 /* confdefs.h.  */
68641 _ACEOF
68642 cat confdefs.h >>conftest.$ac_ext
68643 cat >>conftest.$ac_ext <<_ACEOF
68644 /* end confdefs.h.  */
68645 #include <$header>
68646
68647 _ACEOF
68648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68649   $EGREP "${ice_re_word}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68650   ice_cv_have_strcasecmp_decl=yes
68651 fi
68652 rm -f conftest*
68653
68654 if test "$ice_cv_have_strcasecmp_decl" = yes; then
68655         break
68656 fi
68657 done
68658
68659 fi
68660
68661 { echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
68662 echo "${ECHO_T}$ice_cv_have_strcasecmp_decl" >&6; }
68663 if test "$ice_cv_have_strcasecmp_decl" = yes; then
68664
68665 cat >>confdefs.h <<_ACEOF
68666 #define HAVE_STRCASECMP_DECL 1
68667 _ACEOF
68668
68669 fi
68670 fi
68671
68672
68673
68674 ac_config_files="$ac_config_files Makefile amandad-src/Makefile amplot/Makefile changer-src/Makefile client-src/Makefile common-src/Makefile common-src/versuff.c config/Makefile device-src/Makefile device-src/tests/Makefile dumper-src/Makefile example/Makefile example/amanda-client.conf example/amanda.conf example/chg-mcutil.conf example/template.d/amanda-S3.conf example/template.d/advanced.conf example/template.d/amanda-harddisk.conf example/template.d/amanda-single-tape.conf example/template.d/amanda-tape-changer.conf gnulib/Makefile installcheck/Makefile man/Makefile oldrecover-src/Makefile packaging/Makefile perl/Makefile po/Makefile recover-src/Makefile restore-src/Makefile server-src/Makefile tape-src/Makefile"
68675
68676
68677 cat >confcache <<\_ACEOF
68678 # This file is a shell script that caches the results of configure
68679 # tests run on this system so they can be shared between configure
68680 # scripts and configure runs, see configure's option --config-cache.
68681 # It is not useful on other systems.  If it contains results you don't
68682 # want to keep, you may remove or edit it.
68683 #
68684 # config.status only pays attention to the cache file if you give it
68685 # the --recheck option to rerun configure.
68686 #
68687 # `ac_cv_env_foo' variables (set or unset) will be overridden when
68688 # loading this file, other *unset* `ac_cv_foo' will be assigned the
68689 # following values.
68690
68691 _ACEOF
68692
68693 # The following way of writing the cache mishandles newlines in values,
68694 # but we know of no workaround that is simple, portable, and efficient.
68695 # So, we kill variables containing newlines.
68696 # Ultrix sh set writes to stderr and can't be redirected directly,
68697 # and sets the high bit in the cache file unless we assign to the vars.
68698 (
68699   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
68700     eval ac_val=\$$ac_var
68701     case $ac_val in #(
68702     *${as_nl}*)
68703       case $ac_var in #(
68704       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
68705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
68706       esac
68707       case $ac_var in #(
68708       _ | IFS | as_nl) ;; #(
68709       *) $as_unset $ac_var ;;
68710       esac ;;
68711     esac
68712   done
68713
68714   (set) 2>&1 |
68715     case $as_nl`(ac_space=' '; set) 2>&1` in #(
68716     *${as_nl}ac_space=\ *)
68717       # `set' does not quote correctly, so add quotes (double-quote
68718       # substitution turns \\\\ into \\, and sed turns \\ into \).
68719       sed -n \
68720         "s/'/'\\\\''/g;
68721           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
68722       ;; #(
68723     *)
68724       # `set' quotes correctly as required by POSIX, so do not add quotes.
68725       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
68726       ;;
68727     esac |
68728     sort
68729 ) |
68730   sed '
68731      /^ac_cv_env_/b end
68732      t clear
68733      :clear
68734      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
68735      t end
68736      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
68737      :end' >>confcache
68738 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
68739   if test -w "$cache_file"; then
68740     test "x$cache_file" != "x/dev/null" &&
68741       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
68742 echo "$as_me: updating cache $cache_file" >&6;}
68743     cat confcache >$cache_file
68744   else
68745     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
68746 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
68747   fi
68748 fi
68749 rm -f confcache
68750
68751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
68752 # Let make expand exec_prefix.
68753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
68754
68755 DEFS=-DHAVE_CONFIG_H
68756
68757 ac_libobjs=
68758 ac_ltlibobjs=
68759 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
68760   # 1. Remove the extension, and $U if already installed.
68761   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
68762   ac_i=`echo "$ac_i" | sed "$ac_script"`
68763   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
68764   #    will be set to the directory where LIBOBJS objects are built.
68765   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
68766   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
68767 done
68768 LIBOBJS=$ac_libobjs
68769
68770 LTLIBOBJS=$ac_ltlibobjs
68771
68772
68773 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
68774   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
68775 Usually this means the macro was only invoked conditionally." >&5
68776 echo "$as_me: error: conditional \"AMDEP\" was never defined.
68777 Usually this means the macro was only invoked conditionally." >&2;}
68778    { (exit 1); exit 1; }; }
68779 fi
68780 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
68781   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
68782 Usually this means the macro was only invoked conditionally." >&5
68783 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
68784 Usually this means the macro was only invoked conditionally." >&2;}
68785    { (exit 1); exit 1; }; }
68786 fi
68787 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
68788   { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
68789 Usually this means the macro was only invoked conditionally." >&5
68790 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
68791 Usually this means the macro was only invoked conditionally." >&2;}
68792    { (exit 1); exit 1; }; }
68793 fi
68794
68795     gl_libobjs=
68796     gl_ltlibobjs=
68797     if test -n "$gl_LIBOBJS"; then
68798       # Remove the extension.
68799       sed_drop_objext='s/\.o$//;s/\.obj$//'
68800       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
68801         gl_libobjs="$gl_libobjs $i.$ac_objext"
68802         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
68803       done
68804     fi
68805     gl_LIBOBJS=$gl_libobjs
68806
68807     gl_LTLIBOBJS=$gl_ltlibobjs
68808
68809
68810 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
68811   { { echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
68812 Usually this means the macro was only invoked conditionally." >&5
68813 echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
68814 Usually this means the macro was only invoked conditionally." >&2;}
68815    { (exit 1); exit 1; }; }
68816 fi
68817 if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
68818   { { echo "$as_me:$LINENO: error: conditional \"WANT_INSTALLPERMS\" was never defined.
68819 Usually this means the macro was only invoked conditionally." >&5
68820 echo "$as_me: error: conditional \"WANT_INSTALLPERMS\" was never defined.
68821 Usually this means the macro was only invoked conditionally." >&2;}
68822    { (exit 1); exit 1; }; }
68823 fi
68824 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
68825   { { echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
68826 Usually this means the macro was only invoked conditionally." >&5
68827 echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
68828 Usually this means the macro was only invoked conditionally." >&2;}
68829    { (exit 1); exit 1; }; }
68830 fi
68831 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
68832   { { echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
68833 Usually this means the macro was only invoked conditionally." >&5
68834 echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
68835 Usually this means the macro was only invoked conditionally." >&2;}
68836    { (exit 1); exit 1; }; }
68837 fi
68838 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
68839   { { echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
68840 Usually this means the macro was only invoked conditionally." >&5
68841 echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
68842 Usually this means the macro was only invoked conditionally." >&2;}
68843    { (exit 1); exit 1; }; }
68844 fi
68845 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
68846   { { echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
68847 Usually this means the macro was only invoked conditionally." >&5
68848 echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
68849 Usually this means the macro was only invoked conditionally." >&2;}
68850    { (exit 1); exit 1; }; }
68851 fi
68852 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
68853   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
68854 Usually this means the macro was only invoked conditionally." >&5
68855 echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
68856 Usually this means the macro was only invoked conditionally." >&2;}
68857    { (exit 1); exit 1; }; }
68858 fi
68859 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
68860   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
68861 Usually this means the macro was only invoked conditionally." >&5
68862 echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
68863 Usually this means the macro was only invoked conditionally." >&2;}
68864    { (exit 1); exit 1; }; }
68865 fi
68866 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
68867   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
68868 Usually this means the macro was only invoked conditionally." >&5
68869 echo "$as_me: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
68870 Usually this means the macro was only invoked conditionally." >&2;}
68871    { (exit 1); exit 1; }; }
68872 fi
68873 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
68874   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
68875 Usually this means the macro was only invoked conditionally." >&5
68876 echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
68877 Usually this means the macro was only invoked conditionally." >&2;}
68878    { (exit 1); exit 1; }; }
68879 fi
68880 if test -z "${WANT_SCSI_LINUX_TRUE}" && test -z "${WANT_SCSI_LINUX_FALSE}"; then
68881   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_LINUX\" was never defined.
68882 Usually this means the macro was only invoked conditionally." >&5
68883 echo "$as_me: error: conditional \"WANT_SCSI_LINUX\" was never defined.
68884 Usually this means the macro was only invoked conditionally." >&2;}
68885    { (exit 1); exit 1; }; }
68886 fi
68887 if test -z "${WANT_SCSI_HPUX_NEW_TRUE}" && test -z "${WANT_SCSI_HPUX_NEW_FALSE}"; then
68888   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_HPUX_NEW\" was never defined.
68889 Usually this means the macro was only invoked conditionally." >&5
68890 echo "$as_me: error: conditional \"WANT_SCSI_HPUX_NEW\" was never defined.
68891 Usually this means the macro was only invoked conditionally." >&2;}
68892    { (exit 1); exit 1; }; }
68893 fi
68894 if test -z "${WANT_SCSI_IRIX_TRUE}" && test -z "${WANT_SCSI_IRIX_FALSE}"; then
68895   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_IRIX\" was never defined.
68896 Usually this means the macro was only invoked conditionally." >&5
68897 echo "$as_me: error: conditional \"WANT_SCSI_IRIX\" was never defined.
68898 Usually this means the macro was only invoked conditionally." >&2;}
68899    { (exit 1); exit 1; }; }
68900 fi
68901 if test -z "${WANT_SCSI_SOLARIS_TRUE}" && test -z "${WANT_SCSI_SOLARIS_FALSE}"; then
68902   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_SOLARIS\" was never defined.
68903 Usually this means the macro was only invoked conditionally." >&5
68904 echo "$as_me: error: conditional \"WANT_SCSI_SOLARIS\" was never defined.
68905 Usually this means the macro was only invoked conditionally." >&2;}
68906    { (exit 1); exit 1; }; }
68907 fi
68908 if test -z "${WANT_SCSI_AIX_TRUE}" && test -z "${WANT_SCSI_AIX_FALSE}"; then
68909   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_AIX\" was never defined.
68910 Usually this means the macro was only invoked conditionally." >&5
68911 echo "$as_me: error: conditional \"WANT_SCSI_AIX\" was never defined.
68912 Usually this means the macro was only invoked conditionally." >&2;}
68913    { (exit 1); exit 1; }; }
68914 fi
68915 if test -z "${WANT_SCSI_CAM_TRUE}" && test -z "${WANT_SCSI_CAM_FALSE}"; then
68916   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_CAM\" was never defined.
68917 Usually this means the macro was only invoked conditionally." >&5
68918 echo "$as_me: error: conditional \"WANT_SCSI_CAM\" was never defined.
68919 Usually this means the macro was only invoked conditionally." >&2;}
68920    { (exit 1); exit 1; }; }
68921 fi
68922 if test -z "${WANT_SCSI_BSD_TRUE}" && test -z "${WANT_SCSI_BSD_FALSE}"; then
68923   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_BSD\" was never defined.
68924 Usually this means the macro was only invoked conditionally." >&5
68925 echo "$as_me: error: conditional \"WANT_SCSI_BSD\" was never defined.
68926 Usually this means the macro was only invoked conditionally." >&2;}
68927    { (exit 1); exit 1; }; }
68928 fi
68929 if test -z "${WANT_CHG_SCSI_CHIO_TRUE}" && test -z "${WANT_CHG_SCSI_CHIO_FALSE}"; then
68930   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI_CHIO\" was never defined.
68931 Usually this means the macro was only invoked conditionally." >&5
68932 echo "$as_me: error: conditional \"WANT_CHG_SCSI_CHIO\" was never defined.
68933 Usually this means the macro was only invoked conditionally." >&2;}
68934    { (exit 1); exit 1; }; }
68935 fi
68936 if test -z "${WANT_SCSI_HPUX_TRUE}" && test -z "${WANT_SCSI_HPUX_FALSE}"; then
68937   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_HPUX\" was never defined.
68938 Usually this means the macro was only invoked conditionally." >&5
68939 echo "$as_me: error: conditional \"WANT_SCSI_HPUX\" was never defined.
68940 Usually this means the macro was only invoked conditionally." >&2;}
68941    { (exit 1); exit 1; }; }
68942 fi
68943 if test -z "${WANT_SCSI_CHIO_TRUE}" && test -z "${WANT_SCSI_CHIO_FALSE}"; then
68944   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_CHIO\" was never defined.
68945 Usually this means the macro was only invoked conditionally." >&5
68946 echo "$as_me: error: conditional \"WANT_SCSI_CHIO\" was never defined.
68947 Usually this means the macro was only invoked conditionally." >&2;}
68948    { (exit 1); exit 1; }; }
68949 fi
68950 if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
68951   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
68952 Usually this means the macro was only invoked conditionally." >&5
68953 echo "$as_me: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
68954 Usually this means the macro was only invoked conditionally." >&2;}
68955    { (exit 1); exit 1; }; }
68956 fi
68957 if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
68958   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
68959 Usually this means the macro was only invoked conditionally." >&5
68960 echo "$as_me: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
68961 Usually this means the macro was only invoked conditionally." >&2;}
68962    { (exit 1); exit 1; }; }
68963 fi
68964 if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
68965   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
68966 Usually this means the macro was only invoked conditionally." >&5
68967 echo "$as_me: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
68968 Usually this means the macro was only invoked conditionally." >&2;}
68969    { (exit 1); exit 1; }; }
68970 fi
68971 if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
68972   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
68973 Usually this means the macro was only invoked conditionally." >&5
68974 echo "$as_me: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
68975 Usually this means the macro was only invoked conditionally." >&2;}
68976    { (exit 1); exit 1; }; }
68977 fi
68978 if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
68979   { { echo "$as_me:$LINENO: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
68980 Usually this means the macro was only invoked conditionally." >&5
68981 echo "$as_me: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
68982 Usually this means the macro was only invoked conditionally." >&2;}
68983    { (exit 1); exit 1; }; }
68984 fi
68985 if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
68986   { { echo "$as_me:$LINENO: error: conditional \"WANT_S3_DEVICE\" was never defined.
68987 Usually this means the macro was only invoked conditionally." >&5
68988 echo "$as_me: error: conditional \"WANT_S3_DEVICE\" was never defined.
68989 Usually this means the macro was only invoked conditionally." >&2;}
68990    { (exit 1); exit 1; }; }
68991 fi
68992 if test -z "${WANT_DEVPAY_TRUE}" && test -z "${WANT_DEVPAY_FALSE}"; then
68993   { { echo "$as_me:$LINENO: error: conditional \"WANT_DEVPAY\" was never defined.
68994 Usually this means the macro was only invoked conditionally." >&5
68995 echo "$as_me: error: conditional \"WANT_DEVPAY\" was never defined.
68996 Usually this means the macro was only invoked conditionally." >&2;}
68997    { (exit 1); exit 1; }; }
68998 fi
68999 if test -z "${WANT_TAPE_XENIX_TRUE}" && test -z "${WANT_TAPE_XENIX_FALSE}"; then
69000   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_XENIX\" was never defined.
69001 Usually this means the macro was only invoked conditionally." >&5
69002 echo "$as_me: error: conditional \"WANT_TAPE_XENIX\" was never defined.
69003 Usually this means the macro was only invoked conditionally." >&2;}
69004    { (exit 1); exit 1; }; }
69005 fi
69006 if test -z "${WANT_TAPE_AIX_TRUE}" && test -z "${WANT_TAPE_AIX_FALSE}"; then
69007   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_AIX\" was never defined.
69008 Usually this means the macro was only invoked conditionally." >&5
69009 echo "$as_me: error: conditional \"WANT_TAPE_AIX\" was never defined.
69010 Usually this means the macro was only invoked conditionally." >&2;}
69011    { (exit 1); exit 1; }; }
69012 fi
69013 if test -z "${WANT_TAPE_UWARE_TRUE}" && test -z "${WANT_TAPE_UWARE_FALSE}"; then
69014   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_UWARE\" was never defined.
69015 Usually this means the macro was only invoked conditionally." >&5
69016 echo "$as_me: error: conditional \"WANT_TAPE_UWARE\" was never defined.
69017 Usually this means the macro was only invoked conditionally." >&2;}
69018    { (exit 1); exit 1; }; }
69019 fi
69020 if test -z "${WANT_TAPE_POSIX_TRUE}" && test -z "${WANT_TAPE_POSIX_FALSE}"; then
69021   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_POSIX\" was never defined.
69022 Usually this means the macro was only invoked conditionally." >&5
69023 echo "$as_me: error: conditional \"WANT_TAPE_POSIX\" was never defined.
69024 Usually this means the macro was only invoked conditionally." >&2;}
69025    { (exit 1); exit 1; }; }
69026 fi
69027 if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
69028   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
69029 Usually this means the macro was only invoked conditionally." >&5
69030 echo "$as_me: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
69031 Usually this means the macro was only invoked conditionally." >&2;}
69032    { (exit 1); exit 1; }; }
69033 fi
69034 if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
69035   { { echo "$as_me:$LINENO: error: conditional \"WANT_BSD_SECURITY\" was never defined.
69036 Usually this means the macro was only invoked conditionally." >&5
69037 echo "$as_me: error: conditional \"WANT_BSD_SECURITY\" was never defined.
69038 Usually this means the macro was only invoked conditionally." >&2;}
69039    { (exit 1); exit 1; }; }
69040 fi
69041 if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
69042   { { echo "$as_me:$LINENO: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
69043 Usually this means the macro was only invoked conditionally." >&5
69044 echo "$as_me: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
69045 Usually this means the macro was only invoked conditionally." >&2;}
69046    { (exit 1); exit 1; }; }
69047 fi
69048 if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
69049   { { echo "$as_me:$LINENO: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
69050 Usually this means the macro was only invoked conditionally." >&5
69051 echo "$as_me: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
69052 Usually this means the macro was only invoked conditionally." >&2;}
69053    { (exit 1); exit 1; }; }
69054 fi
69055 if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
69056   { { echo "$as_me:$LINENO: error: conditional \"WANT_RSH_SECURITY\" was never defined.
69057 Usually this means the macro was only invoked conditionally." >&5
69058 echo "$as_me: error: conditional \"WANT_RSH_SECURITY\" was never defined.
69059 Usually this means the macro was only invoked conditionally." >&2;}
69060    { (exit 1); exit 1; }; }
69061 fi
69062 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
69063   { { echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
69064 Usually this means the macro was only invoked conditionally." >&5
69065 echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
69066 Usually this means the macro was only invoked conditionally." >&2;}
69067    { (exit 1); exit 1; }; }
69068 fi
69069 if test -z "${WANT_KRB4_SECURITY_TRUE}" && test -z "${WANT_KRB4_SECURITY_FALSE}"; then
69070   { { echo "$as_me:$LINENO: error: conditional \"WANT_KRB4_SECURITY\" was never defined.
69071 Usually this means the macro was only invoked conditionally." >&5
69072 echo "$as_me: error: conditional \"WANT_KRB4_SECURITY\" was never defined.
69073 Usually this means the macro was only invoked conditionally." >&2;}
69074    { (exit 1); exit 1; }; }
69075 fi
69076 if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
69077   { { echo "$as_me:$LINENO: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
69078 Usually this means the macro was only invoked conditionally." >&5
69079 echo "$as_me: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
69080 Usually this means the macro was only invoked conditionally." >&2;}
69081    { (exit 1); exit 1; }; }
69082 fi
69083 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
69084   { { echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
69085 Usually this means the macro was only invoked conditionally." >&5
69086 echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
69087 Usually this means the macro was only invoked conditionally." >&2;}
69088    { (exit 1); exit 1; }; }
69089 fi
69090 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
69091   { { echo "$as_me:$LINENO: error: conditional \"GCC_COMPILER\" was never defined.
69092 Usually this means the macro was only invoked conditionally." >&5
69093 echo "$as_me: error: conditional \"GCC_COMPILER\" was never defined.
69094 Usually this means the macro was only invoked conditionally." >&2;}
69095    { (exit 1); exit 1; }; }
69096 fi
69097 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
69098   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
69099 Usually this means the macro was only invoked conditionally." >&5
69100 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
69101 Usually this means the macro was only invoked conditionally." >&2;}
69102    { (exit 1); exit 1; }; }
69103 fi
69104
69105 : ${CONFIG_STATUS=./config.status}
69106 ac_clean_files_save=$ac_clean_files
69107 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
69108 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
69109 echo "$as_me: creating $CONFIG_STATUS" >&6;}
69110 cat >$CONFIG_STATUS <<_ACEOF
69111 #! $SHELL
69112 # Generated by $as_me.
69113 # Run this file to recreate the current configuration.
69114 # Compiler output produced by configure, useful for debugging
69115 # configure, is in config.log if it exists.
69116
69117 debug=false
69118 ac_cs_recheck=false
69119 ac_cs_silent=false
69120 SHELL=\${CONFIG_SHELL-$SHELL}
69121 _ACEOF
69122
69123 cat >>$CONFIG_STATUS <<\_ACEOF
69124 ## --------------------- ##
69125 ## M4sh Initialization.  ##
69126 ## --------------------- ##
69127
69128 # Be more Bourne compatible
69129 DUALCASE=1; export DUALCASE # for MKS sh
69130 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
69131   emulate sh
69132   NULLCMD=:
69133   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
69134   # is contrary to our usage.  Disable this feature.
69135   alias -g '${1+"$@"}'='"$@"'
69136   setopt NO_GLOB_SUBST
69137 else
69138   case `(set -o) 2>/dev/null` in
69139   *posix*) set -o posix ;;
69140 esac
69141
69142 fi
69143
69144
69145
69146
69147 # PATH needs CR
69148 # Avoid depending upon Character Ranges.
69149 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
69150 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
69151 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
69152 as_cr_digits='0123456789'
69153 as_cr_alnum=$as_cr_Letters$as_cr_digits
69154
69155 # The user is always right.
69156 if test "${PATH_SEPARATOR+set}" != set; then
69157   echo "#! /bin/sh" >conf$$.sh
69158   echo  "exit 0"   >>conf$$.sh
69159   chmod +x conf$$.sh
69160   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
69161     PATH_SEPARATOR=';'
69162   else
69163     PATH_SEPARATOR=:
69164   fi
69165   rm -f conf$$.sh
69166 fi
69167
69168 # Support unset when possible.
69169 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
69170   as_unset=unset
69171 else
69172   as_unset=false
69173 fi
69174
69175
69176 # IFS
69177 # We need space, tab and new line, in precisely that order.  Quoting is
69178 # there to prevent editors from complaining about space-tab.
69179 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69180 # splitting by setting IFS to empty value.)
69181 as_nl='
69182 '
69183 IFS=" ""        $as_nl"
69184
69185 # Find who we are.  Look in the path if we contain no directory separator.
69186 case $0 in
69187   *[\\/]* ) as_myself=$0 ;;
69188   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
69189 for as_dir in $PATH
69190 do
69191   IFS=$as_save_IFS
69192   test -z "$as_dir" && as_dir=.
69193   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
69194 done
69195 IFS=$as_save_IFS
69196
69197      ;;
69198 esac
69199 # We did not find ourselves, most probably we were run as `sh COMMAND'
69200 # in which case we are not to be found in the path.
69201 if test "x$as_myself" = x; then
69202   as_myself=$0
69203 fi
69204 if test ! -f "$as_myself"; then
69205   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
69206   { (exit 1); exit 1; }
69207 fi
69208
69209 # Work around bugs in pre-3.0 UWIN ksh.
69210 for as_var in ENV MAIL MAILPATH
69211 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
69212 done
69213 PS1='$ '
69214 PS2='> '
69215 PS4='+ '
69216
69217 # NLS nuisances.
69218 for as_var in \
69219   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
69220   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
69221   LC_TELEPHONE LC_TIME
69222 do
69223   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
69224     eval $as_var=C; export $as_var
69225   else
69226     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
69227   fi
69228 done
69229
69230 # Required to use basename.
69231 if expr a : '\(a\)' >/dev/null 2>&1 &&
69232    test "X`expr 00001 : '.*\(...\)'`" = X001; then
69233   as_expr=expr
69234 else
69235   as_expr=false
69236 fi
69237
69238 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
69239   as_basename=basename
69240 else
69241   as_basename=false
69242 fi
69243
69244
69245 # Name of the executable.
69246 as_me=`$as_basename -- "$0" ||
69247 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69248          X"$0" : 'X\(//\)$' \| \
69249          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
69250 echo X/"$0" |
69251     sed '/^.*\/\([^/][^/]*\)\/*$/{
69252             s//\1/
69253             q
69254           }
69255           /^X\/\(\/\/\)$/{
69256             s//\1/
69257             q
69258           }
69259           /^X\/\(\/\).*/{
69260             s//\1/
69261             q
69262           }
69263           s/.*/./; q'`
69264
69265 # CDPATH.
69266 $as_unset CDPATH
69267
69268
69269
69270   as_lineno_1=$LINENO
69271   as_lineno_2=$LINENO
69272   test "x$as_lineno_1" != "x$as_lineno_2" &&
69273   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
69274
69275   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
69276   # uniformly replaced by the line number.  The first 'sed' inserts a
69277   # line-number line after each line using $LINENO; the second 'sed'
69278   # does the real work.  The second script uses 'N' to pair each
69279   # line-number line with the line containing $LINENO, and appends
69280   # trailing '-' during substitution so that $LINENO is not a special
69281   # case at line end.
69282   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
69283   # scripts with optimization help from Paolo Bonzini.  Blame Lee
69284   # E. McMahon (1931-1989) for sed's syntax.  :-)
69285   sed -n '
69286     p
69287     /[$]LINENO/=
69288   ' <$as_myself |
69289     sed '
69290       s/[$]LINENO.*/&-/
69291       t lineno
69292       b
69293       :lineno
69294       N
69295       :loop
69296       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
69297       t loop
69298       s/-\n.*//
69299     ' >$as_me.lineno &&
69300   chmod +x "$as_me.lineno" ||
69301     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
69302    { (exit 1); exit 1; }; }
69303
69304   # Don't try to exec as it changes $[0], causing all sort of problems
69305   # (the dirname of $[0] is not the place where we might find the
69306   # original and so on.  Autoconf is especially sensitive to this).
69307   . "./$as_me.lineno"
69308   # Exit status is that of the last command.
69309   exit
69310 }
69311
69312
69313 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
69314   as_dirname=dirname
69315 else
69316   as_dirname=false
69317 fi
69318
69319 ECHO_C= ECHO_N= ECHO_T=
69320 case `echo -n x` in
69321 -n*)
69322   case `echo 'x\c'` in
69323   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
69324   *)   ECHO_C='\c';;
69325   esac;;
69326 *)
69327   ECHO_N='-n';;
69328 esac
69329
69330 if expr a : '\(a\)' >/dev/null 2>&1 &&
69331    test "X`expr 00001 : '.*\(...\)'`" = X001; then
69332   as_expr=expr
69333 else
69334   as_expr=false
69335 fi
69336
69337 rm -f conf$$ conf$$.exe conf$$.file
69338 if test -d conf$$.dir; then
69339   rm -f conf$$.dir/conf$$.file
69340 else
69341   rm -f conf$$.dir
69342   mkdir conf$$.dir
69343 fi
69344 echo >conf$$.file
69345 if ln -s conf$$.file conf$$ 2>/dev/null; then
69346   as_ln_s='ln -s'
69347   # ... but there are two gotchas:
69348   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
69349   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
69350   # In both cases, we have to default to `cp -p'.
69351   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
69352     as_ln_s='cp -p'
69353 elif ln conf$$.file conf$$ 2>/dev/null; then
69354   as_ln_s=ln
69355 else
69356   as_ln_s='cp -p'
69357 fi
69358 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
69359 rmdir conf$$.dir 2>/dev/null
69360
69361 if mkdir -p . 2>/dev/null; then
69362   as_mkdir_p=:
69363 else
69364   test -d ./-p && rmdir ./-p
69365   as_mkdir_p=false
69366 fi
69367
69368 if test -x / >/dev/null 2>&1; then
69369   as_test_x='test -x'
69370 else
69371   if ls -dL / >/dev/null 2>&1; then
69372     as_ls_L_option=L
69373   else
69374     as_ls_L_option=
69375   fi
69376   as_test_x='
69377     eval sh -c '\''
69378       if test -d "$1"; then
69379         test -d "$1/.";
69380       else
69381         case $1 in
69382         -*)set "./$1";;
69383         esac;
69384         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
69385         ???[sx]*):;;*)false;;esac;fi
69386     '\'' sh
69387   '
69388 fi
69389 as_executable_p=$as_test_x
69390
69391 # Sed expression to map a string onto a valid CPP name.
69392 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
69393
69394 # Sed expression to map a string onto a valid variable name.
69395 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
69396
69397
69398 exec 6>&1
69399
69400 # Save the log message, to keep $[0] and so on meaningful, and to
69401 # report actual input values of CONFIG_FILES etc. instead of their
69402 # values after options handling.
69403 ac_log="
69404 This file was extended by $as_me, which was
69405 generated by GNU Autoconf 2.61.  Invocation command line was
69406
69407   CONFIG_FILES    = $CONFIG_FILES
69408   CONFIG_HEADERS  = $CONFIG_HEADERS
69409   CONFIG_LINKS    = $CONFIG_LINKS
69410   CONFIG_COMMANDS = $CONFIG_COMMANDS
69411   $ $0 $@
69412
69413 on `(hostname || uname -n) 2>/dev/null | sed 1q`
69414 "
69415
69416 _ACEOF
69417
69418 cat >>$CONFIG_STATUS <<_ACEOF
69419 # Files that config.status was made for.
69420 config_files="$ac_config_files"
69421 config_headers="$ac_config_headers"
69422 config_commands="$ac_config_commands"
69423
69424 _ACEOF
69425
69426 cat >>$CONFIG_STATUS <<\_ACEOF
69427 ac_cs_usage="\
69428 \`$as_me' instantiates files from templates according to the
69429 current configuration.
69430
69431 Usage: $0 [OPTIONS] [FILE]...
69432
69433   -h, --help       print this help, then exit
69434   -V, --version    print version number and configuration settings, then exit
69435   -q, --quiet      do not print progress messages
69436   -d, --debug      don't remove temporary files
69437       --recheck    update $as_me by reconfiguring in the same conditions
69438   --file=FILE[:TEMPLATE]
69439                    instantiate the configuration file FILE
69440   --header=FILE[:TEMPLATE]
69441                    instantiate the configuration header FILE
69442
69443 Configuration files:
69444 $config_files
69445
69446 Configuration headers:
69447 $config_headers
69448
69449 Configuration commands:
69450 $config_commands
69451
69452 Report bugs to <bug-autoconf@gnu.org>."
69453
69454 _ACEOF
69455 cat >>$CONFIG_STATUS <<_ACEOF
69456 ac_cs_version="\\
69457 config.status
69458 configured by $0, generated by GNU Autoconf 2.61,
69459   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
69460
69461 Copyright (C) 2006 Free Software Foundation, Inc.
69462 This config.status script is free software; the Free Software Foundation
69463 gives unlimited permission to copy, distribute and modify it."
69464
69465 ac_pwd='$ac_pwd'
69466 srcdir='$srcdir'
69467 INSTALL='$INSTALL'
69468 MKDIR_P='$MKDIR_P'
69469 _ACEOF
69470
69471 cat >>$CONFIG_STATUS <<\_ACEOF
69472 # If no file are specified by the user, then we need to provide default
69473 # value.  By we need to know if files were specified by the user.
69474 ac_need_defaults=:
69475 while test $# != 0
69476 do
69477   case $1 in
69478   --*=*)
69479     ac_option=`expr "X$1" : 'X\([^=]*\)='`
69480     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
69481     ac_shift=:
69482     ;;
69483   *)
69484     ac_option=$1
69485     ac_optarg=$2
69486     ac_shift=shift
69487     ;;
69488   esac
69489
69490   case $ac_option in
69491   # Handling of the options.
69492   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
69493     ac_cs_recheck=: ;;
69494   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
69495     echo "$ac_cs_version"; exit ;;
69496   --debug | --debu | --deb | --de | --d | -d )
69497     debug=: ;;
69498   --file | --fil | --fi | --f )
69499     $ac_shift
69500     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
69501     ac_need_defaults=false;;
69502   --header | --heade | --head | --hea )
69503     $ac_shift
69504     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
69505     ac_need_defaults=false;;
69506   --he | --h)
69507     # Conflict between --help and --header
69508     { echo "$as_me: error: ambiguous option: $1
69509 Try \`$0 --help' for more information." >&2
69510    { (exit 1); exit 1; }; };;
69511   --help | --hel | -h )
69512     echo "$ac_cs_usage"; exit ;;
69513   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
69514   | -silent | --silent | --silen | --sile | --sil | --si | --s)
69515     ac_cs_silent=: ;;
69516
69517   # This is an error.
69518   -*) { echo "$as_me: error: unrecognized option: $1
69519 Try \`$0 --help' for more information." >&2
69520    { (exit 1); exit 1; }; } ;;
69521
69522   *) ac_config_targets="$ac_config_targets $1"
69523      ac_need_defaults=false ;;
69524
69525   esac
69526   shift
69527 done
69528
69529 ac_configure_extra_args=
69530
69531 if $ac_cs_silent; then
69532   exec 6>/dev/null
69533   ac_configure_extra_args="$ac_configure_extra_args --silent"
69534 fi
69535
69536 _ACEOF
69537 cat >>$CONFIG_STATUS <<_ACEOF
69538 if \$ac_cs_recheck; then
69539   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
69540   CONFIG_SHELL=$SHELL
69541   export CONFIG_SHELL
69542   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
69543 fi
69544
69545 _ACEOF
69546 cat >>$CONFIG_STATUS <<\_ACEOF
69547 exec 5>>config.log
69548 {
69549   echo
69550   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
69551 ## Running $as_me. ##
69552 _ASBOX
69553   echo "$ac_log"
69554 } >&5
69555
69556 _ACEOF
69557 cat >>$CONFIG_STATUS <<_ACEOF
69558 #
69559 # INIT-COMMANDS
69560 #
69561 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
69562 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
69563     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
69564     # from automake < 1.5.
69565     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
69566     # Capture the value of LINGUAS because we need it to compute CATALOGS.
69567     LINGUAS="${LINGUAS-%UNSET%}"
69568
69569
69570 _ACEOF
69571
69572 cat >>$CONFIG_STATUS <<\_ACEOF
69573
69574 # Handling of arguments.
69575 for ac_config_target in $ac_config_targets
69576 do
69577   case $ac_config_target in
69578     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
69579     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
69580     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
69581     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
69582     "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
69583     "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
69584     "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
69585     "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
69586     "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
69587     "common-src/versuff.c") CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
69588     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
69589     "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
69590     "device-src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/tests/Makefile" ;;
69591     "dumper-src/Makefile") CONFIG_FILES="$CONFIG_FILES dumper-src/Makefile" ;;
69592     "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
69593     "example/amanda-client.conf") CONFIG_FILES="$CONFIG_FILES example/amanda-client.conf" ;;
69594     "example/amanda.conf") CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
69595     "example/chg-mcutil.conf") CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
69596     "example/template.d/amanda-S3.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-S3.conf" ;;
69597     "example/template.d/advanced.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/advanced.conf" ;;
69598     "example/template.d/amanda-harddisk.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-harddisk.conf" ;;
69599     "example/template.d/amanda-single-tape.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-single-tape.conf" ;;
69600     "example/template.d/amanda-tape-changer.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-tape-changer.conf" ;;
69601     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
69602     "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
69603     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
69604     "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
69605     "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
69606     "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
69607     "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
69608     "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
69609     "restore-src/Makefile") CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
69610     "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
69611     "tape-src/Makefile") CONFIG_FILES="$CONFIG_FILES tape-src/Makefile" ;;
69612
69613   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
69614 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
69615    { (exit 1); exit 1; }; };;
69616   esac
69617 done
69618
69619
69620 # If the user did not use the arguments to specify the items to instantiate,
69621 # then the envvar interface is used.  Set only those that are not.
69622 # We use the long form for the default assignment because of an extremely
69623 # bizarre bug on SunOS 4.1.3.
69624 if $ac_need_defaults; then
69625   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
69626   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
69627   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
69628 fi
69629
69630 # Have a temporary directory for convenience.  Make it in the build tree
69631 # simply because there is no reason against having it here, and in addition,
69632 # creating and moving files from /tmp can sometimes cause problems.
69633 # Hook for its removal unless debugging.
69634 # Note that there is a small window in which the directory will not be cleaned:
69635 # after its creation but before its name has been assigned to `$tmp'.
69636 $debug ||
69637 {
69638   tmp=
69639   trap 'exit_status=$?
69640   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
69641 ' 0
69642   trap '{ (exit 1); exit 1; }' 1 2 13 15
69643 }
69644 # Create a (secure) tmp directory for tmp files.
69645
69646 {
69647   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
69648   test -n "$tmp" && test -d "$tmp"
69649 }  ||
69650 {
69651   tmp=./conf$$-$RANDOM
69652   (umask 077 && mkdir "$tmp")
69653 } ||
69654 {
69655    echo "$me: cannot create a temporary directory in ." >&2
69656    { (exit 1); exit 1; }
69657 }
69658
69659 #
69660 # Set up the sed scripts for CONFIG_FILES section.
69661 #
69662
69663 # No need to generate the scripts if there are no CONFIG_FILES.
69664 # This happens for instance when ./config.status config.h
69665 if test -n "$CONFIG_FILES"; then
69666
69667 _ACEOF
69668
69669
69670
69671 ac_delim='%!_!# '
69672 for ac_last_try in false false false false false :; do
69673   cat >conf$$subs.sed <<_ACEOF
69674 SHELL!$SHELL$ac_delim
69675 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
69676 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
69677 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
69678 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
69679 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
69680 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
69681 exec_prefix!$exec_prefix$ac_delim
69682 prefix!$prefix$ac_delim
69683 program_transform_name!$program_transform_name$ac_delim
69684 bindir!$bindir$ac_delim
69685 sbindir!$sbindir$ac_delim
69686 libexecdir!$libexecdir$ac_delim
69687 datarootdir!$datarootdir$ac_delim
69688 datadir!$datadir$ac_delim
69689 sysconfdir!$sysconfdir$ac_delim
69690 sharedstatedir!$sharedstatedir$ac_delim
69691 localstatedir!$localstatedir$ac_delim
69692 includedir!$includedir$ac_delim
69693 oldincludedir!$oldincludedir$ac_delim
69694 docdir!$docdir$ac_delim
69695 infodir!$infodir$ac_delim
69696 htmldir!$htmldir$ac_delim
69697 dvidir!$dvidir$ac_delim
69698 pdfdir!$pdfdir$ac_delim
69699 psdir!$psdir$ac_delim
69700 libdir!$libdir$ac_delim
69701 localedir!$localedir$ac_delim
69702 mandir!$mandir$ac_delim
69703 DEFS!$DEFS$ac_delim
69704 ECHO_C!$ECHO_C$ac_delim
69705 ECHO_N!$ECHO_N$ac_delim
69706 ECHO_T!$ECHO_T$ac_delim
69707 LIBS!$LIBS$ac_delim
69708 build_alias!$build_alias$ac_delim
69709 host_alias!$host_alias$ac_delim
69710 target_alias!$target_alias$ac_delim
69711 build!$build$ac_delim
69712 build_cpu!$build_cpu$ac_delim
69713 build_vendor!$build_vendor$ac_delim
69714 build_os!$build_os$ac_delim
69715 host!$host$ac_delim
69716 host_cpu!$host_cpu$ac_delim
69717 host_vendor!$host_vendor$ac_delim
69718 host_os!$host_os$ac_delim
69719 target!$target$ac_delim
69720 target_cpu!$target_cpu$ac_delim
69721 target_vendor!$target_vendor$ac_delim
69722 target_os!$target_os$ac_delim
69723 PACKAGE!$PACKAGE$ac_delim
69724 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
69725 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
69726 INSTALL_DATA!$INSTALL_DATA$ac_delim
69727 am__isrc!$am__isrc$ac_delim
69728 CYGPATH_W!$CYGPATH_W$ac_delim
69729 VERSION!$VERSION$ac_delim
69730 ACLOCAL!$ACLOCAL$ac_delim
69731 AUTOCONF!$AUTOCONF$ac_delim
69732 AUTOMAKE!$AUTOMAKE$ac_delim
69733 AUTOHEADER!$AUTOHEADER$ac_delim
69734 MAKEINFO!$MAKEINFO$ac_delim
69735 install_sh!$install_sh$ac_delim
69736 STRIP!$STRIP$ac_delim
69737 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
69738 mkdir_p!$mkdir_p$ac_delim
69739 AWK!$AWK$ac_delim
69740 SET_MAKE!$SET_MAKE$ac_delim
69741 am__leading_dot!$am__leading_dot$ac_delim
69742 AMTAR!$AMTAR$ac_delim
69743 am__tar!$am__tar$ac_delim
69744 am__untar!$am__untar$ac_delim
69745 SNAPSHOT_STAMP!$SNAPSHOT_STAMP$ac_delim
69746 VERSION_MAJOR!$VERSION_MAJOR$ac_delim
69747 VERSION_MINOR!$VERSION_MINOR$ac_delim
69748 VERSION_PATCH!$VERSION_PATCH$ac_delim
69749 VERSION_COMMENT!$VERSION_COMMENT$ac_delim
69750 VERSION_SUFFIX!$VERSION_SUFFIX$ac_delim
69751 CC!$CC$ac_delim
69752 CFLAGS!$CFLAGS$ac_delim
69753 LDFLAGS!$LDFLAGS$ac_delim
69754 CPPFLAGS!$CPPFLAGS$ac_delim
69755 ac_ct_CC!$ac_ct_CC$ac_delim
69756 EXEEXT!$EXEEXT$ac_delim
69757 OBJEXT!$OBJEXT$ac_delim
69758 DEPDIR!$DEPDIR$ac_delim
69759 am__include!$am__include$ac_delim
69760 am__quote!$am__quote$ac_delim
69761 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
69762 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
69763 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
69764 CCDEPMODE!$CCDEPMODE$ac_delim
69765 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
69766 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
69767 RANLIB!$RANLIB$ac_delim
69768 CPP!$CPP$ac_delim
69769 GREP!$GREP$ac_delim
69770 EGREP!$EGREP$ac_delim
69771 _ACEOF
69772
69773   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
69774     break
69775   elif $ac_last_try; then
69776     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
69777 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
69778    { (exit 1); exit 1; }; }
69779   else
69780     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
69781   fi
69782 done
69783
69784 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
69785 if test -n "$ac_eof"; then
69786   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
69787   ac_eof=`expr $ac_eof + 1`
69788 fi
69789
69790 cat >>$CONFIG_STATUS <<_ACEOF
69791 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
69792 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
69793 _ACEOF
69794 sed '
69795 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
69796 s/^/s,@/; s/!/@,|#_!!_#|/
69797 :n
69798 t n
69799 s/'"$ac_delim"'$/,g/; t
69800 s/$/\\/; p
69801 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
69802 ' >>$CONFIG_STATUS <conf$$subs.sed
69803 rm -f conf$$subs.sed
69804 cat >>$CONFIG_STATUS <<_ACEOF
69805 CEOF$ac_eof
69806 _ACEOF
69807
69808
69809 ac_delim='%!_!# '
69810 for ac_last_try in false false false false false :; do
69811   cat >conf$$subs.sed <<_ACEOF
69812 GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim
69813 GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim
69814 ALLOCA!$ALLOCA$ac_delim
69815 ALLOCA_H!$ALLOCA_H$ac_delim
69816 ARPA_INET_H!$ARPA_INET_H$ac_delim
69817 INCLUDE_NEXT!$INCLUDE_NEXT$ac_delim
69818 NEXT_FLOAT_H!$NEXT_FLOAT_H$ac_delim
69819 FLOAT_H!$FLOAT_H$ac_delim
69820 NEXT_SYS_SOCKET_H!$NEXT_SYS_SOCKET_H$ac_delim
69821 HAVE_SYS_SOCKET_H!$HAVE_SYS_SOCKET_H$ac_delim
69822 HAVE_WINSOCK2_H!$HAVE_WINSOCK2_H$ac_delim
69823 HAVE_WS2TCPIP_H!$HAVE_WS2TCPIP_H$ac_delim
69824 SYS_SOCKET_H!$SYS_SOCKET_H$ac_delim
69825 LIBINTL!$LIBINTL$ac_delim
69826 LTLIBINTL!$LTLIBINTL$ac_delim
69827 NEXT_SYS_TIME_H!$NEXT_SYS_TIME_H$ac_delim
69828 HAVE_SYS_TIME_H!$HAVE_SYS_TIME_H$ac_delim
69829 HAVE_STRUCT_TIMEVAL!$HAVE_STRUCT_TIMEVAL$ac_delim
69830 REPLACE_GETTIMEOFDAY!$REPLACE_GETTIMEOFDAY$ac_delim
69831 SYS_TIME_H!$SYS_TIME_H$ac_delim
69832 LIBPTH!$LIBPTH$ac_delim
69833 LTLIBPTH!$LTLIBPTH$ac_delim
69834 LIBTHREAD!$LIBTHREAD$ac_delim
69835 LTLIBTHREAD!$LTLIBTHREAD$ac_delim
69836 LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
69837 LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
69838 HAVE_MALLOC_POSIX!$HAVE_MALLOC_POSIX$ac_delim
69839 GNULIB_MALLOC_POSIX!$GNULIB_MALLOC_POSIX$ac_delim
69840 GNULIB_REALLOC_POSIX!$GNULIB_REALLOC_POSIX$ac_delim
69841 GNULIB_CALLOC_POSIX!$GNULIB_CALLOC_POSIX$ac_delim
69842 GNULIB_GETSUBOPT!$GNULIB_GETSUBOPT$ac_delim
69843 GNULIB_MKDTEMP!$GNULIB_MKDTEMP$ac_delim
69844 GNULIB_MKSTEMP!$GNULIB_MKSTEMP$ac_delim
69845 HAVE_CALLOC_POSIX!$HAVE_CALLOC_POSIX$ac_delim
69846 HAVE_GETSUBOPT!$HAVE_GETSUBOPT$ac_delim
69847 HAVE_MKDTEMP!$HAVE_MKDTEMP$ac_delim
69848 HAVE_REALLOC_POSIX!$HAVE_REALLOC_POSIX$ac_delim
69849 REPLACE_MKSTEMP!$REPLACE_MKSTEMP$ac_delim
69850 NEXT_NETINET_IN_H!$NEXT_NETINET_IN_H$ac_delim
69851 HAVE_NETINET_IN_H!$HAVE_NETINET_IN_H$ac_delim
69852 NETINET_IN_H!$NETINET_IN_H$ac_delim
69853 GNULIB_FPRINTF_POSIX!$GNULIB_FPRINTF_POSIX$ac_delim
69854 GNULIB_PRINTF_POSIX!$GNULIB_PRINTF_POSIX$ac_delim
69855 GNULIB_SNPRINTF!$GNULIB_SNPRINTF$ac_delim
69856 GNULIB_SPRINTF_POSIX!$GNULIB_SPRINTF_POSIX$ac_delim
69857 GNULIB_VFPRINTF_POSIX!$GNULIB_VFPRINTF_POSIX$ac_delim
69858 GNULIB_VPRINTF_POSIX!$GNULIB_VPRINTF_POSIX$ac_delim
69859 GNULIB_VSNPRINTF!$GNULIB_VSNPRINTF$ac_delim
69860 GNULIB_VSPRINTF_POSIX!$GNULIB_VSPRINTF_POSIX$ac_delim
69861 GNULIB_VASPRINTF!$GNULIB_VASPRINTF$ac_delim
69862 GNULIB_FSEEK!$GNULIB_FSEEK$ac_delim
69863 GNULIB_FSEEKO!$GNULIB_FSEEKO$ac_delim
69864 GNULIB_FTELL!$GNULIB_FTELL$ac_delim
69865 GNULIB_FTELLO!$GNULIB_FTELLO$ac_delim
69866 GNULIB_FFLUSH!$GNULIB_FFLUSH$ac_delim
69867 GNULIB_GETDELIM!$GNULIB_GETDELIM$ac_delim
69868 GNULIB_GETLINE!$GNULIB_GETLINE$ac_delim
69869 REPLACE_FPRINTF!$REPLACE_FPRINTF$ac_delim
69870 REPLACE_VFPRINTF!$REPLACE_VFPRINTF$ac_delim
69871 REPLACE_PRINTF!$REPLACE_PRINTF$ac_delim
69872 REPLACE_VPRINTF!$REPLACE_VPRINTF$ac_delim
69873 REPLACE_SNPRINTF!$REPLACE_SNPRINTF$ac_delim
69874 HAVE_DECL_SNPRINTF!$HAVE_DECL_SNPRINTF$ac_delim
69875 REPLACE_VSNPRINTF!$REPLACE_VSNPRINTF$ac_delim
69876 HAVE_DECL_VSNPRINTF!$HAVE_DECL_VSNPRINTF$ac_delim
69877 REPLACE_SPRINTF!$REPLACE_SPRINTF$ac_delim
69878 REPLACE_VSPRINTF!$REPLACE_VSPRINTF$ac_delim
69879 HAVE_VASPRINTF!$HAVE_VASPRINTF$ac_delim
69880 REPLACE_VASPRINTF!$REPLACE_VASPRINTF$ac_delim
69881 HAVE_FSEEKO!$HAVE_FSEEKO$ac_delim
69882 REPLACE_FSEEKO!$REPLACE_FSEEKO$ac_delim
69883 REPLACE_FSEEK!$REPLACE_FSEEK$ac_delim
69884 HAVE_FTELLO!$HAVE_FTELLO$ac_delim
69885 REPLACE_FTELLO!$REPLACE_FTELLO$ac_delim
69886 REPLACE_FTELL!$REPLACE_FTELL$ac_delim
69887 REPLACE_FFLUSH!$REPLACE_FFLUSH$ac_delim
69888 HAVE_DECL_GETDELIM!$HAVE_DECL_GETDELIM$ac_delim
69889 HAVE_DECL_GETLINE!$HAVE_DECL_GETLINE$ac_delim
69890 REPLACE_GETLINE!$REPLACE_GETLINE$ac_delim
69891 STDBOOL_H!$STDBOOL_H$ac_delim
69892 HAVE__BOOL!$HAVE__BOOL$ac_delim
69893 HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim
69894 HAVE_UNSIGNED_LONG_LONG_INT!$HAVE_UNSIGNED_LONG_LONG_INT$ac_delim
69895 HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
69896 HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim
69897 NEXT_STDINT_H!$NEXT_STDINT_H$ac_delim
69898 HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
69899 HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
69900 HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
69901 BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
69902 BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
69903 BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
69904 BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
69905 BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
69906 HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
69907 HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
69908 HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
69909 _ACEOF
69910
69911   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
69912     break
69913   elif $ac_last_try; then
69914     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
69915 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
69916    { (exit 1); exit 1; }; }
69917   else
69918     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
69919   fi
69920 done
69921
69922 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
69923 if test -n "$ac_eof"; then
69924   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
69925   ac_eof=`expr $ac_eof + 1`
69926 fi
69927
69928 cat >>$CONFIG_STATUS <<_ACEOF
69929 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
69930 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
69931 _ACEOF
69932 sed '
69933 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
69934 s/^/s,@/; s/!/@,|#_!!_#|/
69935 :n
69936 t n
69937 s/'"$ac_delim"'$/,g/; t
69938 s/$/\\/; p
69939 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
69940 ' >>$CONFIG_STATUS <conf$$subs.sed
69941 rm -f conf$$subs.sed
69942 cat >>$CONFIG_STATUS <<_ACEOF
69943 CEOF$ac_eof
69944 _ACEOF
69945
69946
69947 ac_delim='%!_!# '
69948 for ac_last_try in false false false false false :; do
69949   cat >conf$$subs.sed <<_ACEOF
69950 PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim
69951 SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim
69952 SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim
69953 WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim
69954 WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim
69955 STDINT_H!$STDINT_H$ac_delim
69956 NEXT_STDIO_H!$NEXT_STDIO_H$ac_delim
69957 NEXT_STDLIB_H!$NEXT_STDLIB_H$ac_delim
69958 GNULIB_MEMMEM!$GNULIB_MEMMEM$ac_delim
69959 GNULIB_MEMPCPY!$GNULIB_MEMPCPY$ac_delim
69960 GNULIB_MEMRCHR!$GNULIB_MEMRCHR$ac_delim
69961 GNULIB_STPCPY!$GNULIB_STPCPY$ac_delim
69962 GNULIB_STPNCPY!$GNULIB_STPNCPY$ac_delim
69963 GNULIB_STRCHRNUL!$GNULIB_STRCHRNUL$ac_delim
69964 GNULIB_STRDUP!$GNULIB_STRDUP$ac_delim
69965 GNULIB_STRNDUP!$GNULIB_STRNDUP$ac_delim
69966 GNULIB_STRNLEN!$GNULIB_STRNLEN$ac_delim
69967 GNULIB_STRPBRK!$GNULIB_STRPBRK$ac_delim
69968 GNULIB_STRSEP!$GNULIB_STRSEP$ac_delim
69969 GNULIB_STRCASESTR!$GNULIB_STRCASESTR$ac_delim
69970 GNULIB_STRTOK_R!$GNULIB_STRTOK_R$ac_delim
69971 GNULIB_MBSLEN!$GNULIB_MBSLEN$ac_delim
69972 GNULIB_MBSNLEN!$GNULIB_MBSNLEN$ac_delim
69973 GNULIB_MBSCHR!$GNULIB_MBSCHR$ac_delim
69974 GNULIB_MBSRCHR!$GNULIB_MBSRCHR$ac_delim
69975 GNULIB_MBSSTR!$GNULIB_MBSSTR$ac_delim
69976 GNULIB_MBSCASECMP!$GNULIB_MBSCASECMP$ac_delim
69977 GNULIB_MBSNCASECMP!$GNULIB_MBSNCASECMP$ac_delim
69978 GNULIB_MBSPCASECMP!$GNULIB_MBSPCASECMP$ac_delim
69979 GNULIB_MBSCASESTR!$GNULIB_MBSCASESTR$ac_delim
69980 GNULIB_MBSCSPN!$GNULIB_MBSCSPN$ac_delim
69981 GNULIB_MBSPBRK!$GNULIB_MBSPBRK$ac_delim
69982 GNULIB_MBSSPN!$GNULIB_MBSSPN$ac_delim
69983 GNULIB_MBSSEP!$GNULIB_MBSSEP$ac_delim
69984 GNULIB_MBSTOK_R!$GNULIB_MBSTOK_R$ac_delim
69985 HAVE_DECL_MEMMEM!$HAVE_DECL_MEMMEM$ac_delim
69986 HAVE_MEMPCPY!$HAVE_MEMPCPY$ac_delim
69987 HAVE_DECL_MEMRCHR!$HAVE_DECL_MEMRCHR$ac_delim
69988 HAVE_STPCPY!$HAVE_STPCPY$ac_delim
69989 HAVE_STPNCPY!$HAVE_STPNCPY$ac_delim
69990 HAVE_STRCASECMP!$HAVE_STRCASECMP$ac_delim
69991 HAVE_DECL_STRNCASECMP!$HAVE_DECL_STRNCASECMP$ac_delim
69992 HAVE_STRCHRNUL!$HAVE_STRCHRNUL$ac_delim
69993 HAVE_DECL_STRDUP!$HAVE_DECL_STRDUP$ac_delim
69994 HAVE_STRNDUP!$HAVE_STRNDUP$ac_delim
69995 HAVE_DECL_STRNDUP!$HAVE_DECL_STRNDUP$ac_delim
69996 HAVE_DECL_STRNLEN!$HAVE_DECL_STRNLEN$ac_delim
69997 HAVE_STRPBRK!$HAVE_STRPBRK$ac_delim
69998 HAVE_STRSEP!$HAVE_STRSEP$ac_delim
69999 HAVE_STRCASESTR!$HAVE_STRCASESTR$ac_delim
70000 HAVE_DECL_STRTOK_R!$HAVE_DECL_STRTOK_R$ac_delim
70001 NEXT_STRING_H!$NEXT_STRING_H$ac_delim
70002 HAVE_LSTAT!$HAVE_LSTAT$ac_delim
70003 HAVE_DECL_MKDIR!$HAVE_DECL_MKDIR$ac_delim
70004 HAVE_IO_H!$HAVE_IO_H$ac_delim
70005 NEXT_SYS_STAT_H!$NEXT_SYS_STAT_H$ac_delim
70006 SYS_STAT_H!$SYS_STAT_H$ac_delim
70007 GNULIB_CHOWN!$GNULIB_CHOWN$ac_delim
70008 GNULIB_DUP2!$GNULIB_DUP2$ac_delim
70009 GNULIB_FCHDIR!$GNULIB_FCHDIR$ac_delim
70010 GNULIB_FTRUNCATE!$GNULIB_FTRUNCATE$ac_delim
70011 GNULIB_GETCWD!$GNULIB_GETCWD$ac_delim
70012 GNULIB_GETLOGIN_R!$GNULIB_GETLOGIN_R$ac_delim
70013 GNULIB_LCHOWN!$GNULIB_LCHOWN$ac_delim
70014 GNULIB_LSEEK!$GNULIB_LSEEK$ac_delim
70015 GNULIB_READLINK!$GNULIB_READLINK$ac_delim
70016 GNULIB_SLEEP!$GNULIB_SLEEP$ac_delim
70017 HAVE_DUP2!$HAVE_DUP2$ac_delim
70018 HAVE_FTRUNCATE!$HAVE_FTRUNCATE$ac_delim
70019 HAVE_READLINK!$HAVE_READLINK$ac_delim
70020 HAVE_SLEEP!$HAVE_SLEEP$ac_delim
70021 HAVE_DECL_GETLOGIN_R!$HAVE_DECL_GETLOGIN_R$ac_delim
70022 REPLACE_CHOWN!$REPLACE_CHOWN$ac_delim
70023 REPLACE_FCHDIR!$REPLACE_FCHDIR$ac_delim
70024 REPLACE_GETCWD!$REPLACE_GETCWD$ac_delim
70025 REPLACE_LCHOWN!$REPLACE_LCHOWN$ac_delim
70026 REPLACE_LSEEK!$REPLACE_LSEEK$ac_delim
70027 NEXT_UNISTD_H!$NEXT_UNISTD_H$ac_delim
70028 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
70029 EOVERFLOW!$EOVERFLOW$ac_delim
70030 CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
70031 HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
70032 GNULIB_WCWIDTH!$GNULIB_WCWIDTH$ac_delim
70033 HAVE_DECL_WCWIDTH!$HAVE_DECL_WCWIDTH$ac_delim
70034 REPLACE_WCWIDTH!$REPLACE_WCWIDTH$ac_delim
70035 WCHAR_H!$WCHAR_H$ac_delim
70036 HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
70037 NEXT_WCHAR_H!$NEXT_WCHAR_H$ac_delim
70038 AMANDA_WARNING_CFLAGS!$AMANDA_WARNING_CFLAGS$ac_delim
70039 CLIENT_LOGIN!$CLIENT_LOGIN$ac_delim
70040 SETUID_GROUP!$SETUID_GROUP$ac_delim
70041 CONFIG_DIR!$CONFIG_DIR$ac_delim
70042 USE_VERSION_SUFFIXES!$USE_VERSION_SUFFIXES$ac_delim
70043 GNUTAR_LISTED_INCREMENTAL_DIR!$GNUTAR_LISTED_INCREMENTAL_DIR$ac_delim
70044 AMANDA_TMPDIR!$AMANDA_TMPDIR$ac_delim
70045 BINARY_OWNER!$BINARY_OWNER$ac_delim
70046 MAXTAPEBLOCKSIZE!$MAXTAPEBLOCKSIZE$ac_delim
70047 _ACEOF
70048
70049   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
70050     break
70051   elif $ac_last_try; then
70052     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
70053 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
70054    { (exit 1); exit 1; }; }
70055   else
70056     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
70057   fi
70058 done
70059
70060 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
70061 if test -n "$ac_eof"; then
70062   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
70063   ac_eof=`expr $ac_eof + 1`
70064 fi
70065
70066 cat >>$CONFIG_STATUS <<_ACEOF
70067 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
70068 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
70069 _ACEOF
70070 sed '
70071 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
70072 s/^/s,@/; s/!/@,|#_!!_#|/
70073 :n
70074 t n
70075 s/'"$ac_delim"'$/,g/; t
70076 s/$/\\/; p
70077 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
70078 ' >>$CONFIG_STATUS <conf$$subs.sed
70079 rm -f conf$$subs.sed
70080 cat >>$CONFIG_STATUS <<_ACEOF
70081 CEOF$ac_eof
70082 _ACEOF
70083
70084
70085 ac_delim='%!_!# '
70086 for ac_last_try in false false false false false :; do
70087   cat >conf$$subs.sed <<_ACEOF
70088 AMANDA_DBGDIR!$AMANDA_DBGDIR$ac_delim
70089 AMANDA_DEBUG_DAYS!$AMANDA_DEBUG_DAYS$ac_delim
70090 SERVICE_SUFFIX!$SERVICE_SUFFIX$ac_delim
70091 WANT_SETUID_CLIENT_TRUE!$WANT_SETUID_CLIENT_TRUE$ac_delim
70092 WANT_SETUID_CLIENT_FALSE!$WANT_SETUID_CLIENT_FALSE$ac_delim
70093 WANT_INSTALLPERMS_TRUE!$WANT_INSTALLPERMS_TRUE$ac_delim
70094 WANT_INSTALLPERMS_FALSE!$WANT_INSTALLPERMS_FALSE$ac_delim
70095 WANT_CLIENT_TRUE!$WANT_CLIENT_TRUE$ac_delim
70096 WANT_CLIENT_FALSE!$WANT_CLIENT_FALSE$ac_delim
70097 WANT_RESTORE_TRUE!$WANT_RESTORE_TRUE$ac_delim
70098 WANT_RESTORE_FALSE!$WANT_RESTORE_FALSE$ac_delim
70099 WANT_SERVER_TRUE!$WANT_SERVER_TRUE$ac_delim
70100 WANT_SERVER_FALSE!$WANT_SERVER_FALSE$ac_delim
70101 WANT_RECOVER_TRUE!$WANT_RECOVER_TRUE$ac_delim
70102 WANT_RECOVER_FALSE!$WANT_RECOVER_FALSE$ac_delim
70103 WANT_TAPE_TRUE!$WANT_TAPE_TRUE$ac_delim
70104 WANT_TAPE_FALSE!$WANT_TAPE_FALSE$ac_delim
70105 GNUPLOT!$GNUPLOT$ac_delim
70106 PCAT!$PCAT$ac_delim
70107 COMPRESS!$COMPRESS$ac_delim
70108 GZIP!$GZIP$ac_delim
70109 AMPLOT_COMPRESS!$AMPLOT_COMPRESS$ac_delim
70110 AMPLOT_CAT_GZIP!$AMPLOT_CAT_GZIP$ac_delim
70111 AMPLOT_CAT_COMPRESS!$AMPLOT_CAT_COMPRESS$ac_delim
70112 AMPLOT_CAT_PACK!$AMPLOT_CAT_PACK$ac_delim
70113 WANT_AMPLOT_TRUE!$WANT_AMPLOT_TRUE$ac_delim
70114 WANT_AMPLOT_FALSE!$WANT_AMPLOT_FALSE$ac_delim
70115 XSLTPROC_FLAGS!$XSLTPROC_FLAGS$ac_delim
70116 XSLTPROC!$XSLTPROC$ac_delim
70117 ENABLE_MANPAGE_BUILD_TRUE!$ENABLE_MANPAGE_BUILD_TRUE$ac_delim
70118 ENABLE_MANPAGE_BUILD_FALSE!$ENABLE_MANPAGE_BUILD_FALSE$ac_delim
70119 XSLREL!$XSLREL$ac_delim
70120 DOC_BUILD_DATE!$DOC_BUILD_DATE$ac_delim
70121 DEFAULT_SERVER!$DEFAULT_SERVER$ac_delim
70122 DEFAULT_CONFIG!$DEFAULT_CONFIG$ac_delim
70123 DEFAULT_TAPE_SERVER!$DEFAULT_TAPE_SERVER$ac_delim
70124 DEFAULT_TAPE_DEVICE!$DEFAULT_TAPE_DEVICE$ac_delim
70125 EXAMPLE_TAPEDEV!$EXAMPLE_TAPEDEV$ac_delim
70126 DEFAULT_CHANGER_DEVICE!$DEFAULT_CHANGER_DEVICE$ac_delim
70127 DEFAULT_AMANDATES_FILE!$DEFAULT_AMANDATES_FILE$ac_delim
70128 GETCONF!$GETCONF$ac_delim
70129 CHIO!$CHIO$ac_delim
70130 CHS!$CHS$ac_delim
70131 MTX!$MTX$ac_delim
70132 MCUTIL!$MCUTIL$ac_delim
70133 WANT_CHG_SCSI_TRUE!$WANT_CHG_SCSI_TRUE$ac_delim
70134 WANT_CHG_SCSI_FALSE!$WANT_CHG_SCSI_FALSE$ac_delim
70135 WANT_SCSI_LINUX_TRUE!$WANT_SCSI_LINUX_TRUE$ac_delim
70136 WANT_SCSI_LINUX_FALSE!$WANT_SCSI_LINUX_FALSE$ac_delim
70137 WANT_SCSI_HPUX_NEW_TRUE!$WANT_SCSI_HPUX_NEW_TRUE$ac_delim
70138 WANT_SCSI_HPUX_NEW_FALSE!$WANT_SCSI_HPUX_NEW_FALSE$ac_delim
70139 WANT_SCSI_IRIX_TRUE!$WANT_SCSI_IRIX_TRUE$ac_delim
70140 WANT_SCSI_IRIX_FALSE!$WANT_SCSI_IRIX_FALSE$ac_delim
70141 WANT_SCSI_SOLARIS_TRUE!$WANT_SCSI_SOLARIS_TRUE$ac_delim
70142 WANT_SCSI_SOLARIS_FALSE!$WANT_SCSI_SOLARIS_FALSE$ac_delim
70143 WANT_SCSI_AIX_TRUE!$WANT_SCSI_AIX_TRUE$ac_delim
70144 WANT_SCSI_AIX_FALSE!$WANT_SCSI_AIX_FALSE$ac_delim
70145 WANT_SCSI_CAM_TRUE!$WANT_SCSI_CAM_TRUE$ac_delim
70146 WANT_SCSI_CAM_FALSE!$WANT_SCSI_CAM_FALSE$ac_delim
70147 WANT_SCSI_BSD_TRUE!$WANT_SCSI_BSD_TRUE$ac_delim
70148 WANT_SCSI_BSD_FALSE!$WANT_SCSI_BSD_FALSE$ac_delim
70149 WANT_CHG_SCSI_CHIO_TRUE!$WANT_CHG_SCSI_CHIO_TRUE$ac_delim
70150 WANT_CHG_SCSI_CHIO_FALSE!$WANT_CHG_SCSI_CHIO_FALSE$ac_delim
70151 WANT_SCSI_HPUX_TRUE!$WANT_SCSI_HPUX_TRUE$ac_delim
70152 WANT_SCSI_HPUX_FALSE!$WANT_SCSI_HPUX_FALSE$ac_delim
70153 WANT_SCSI_CHIO_TRUE!$WANT_SCSI_CHIO_TRUE$ac_delim
70154 WANT_SCSI_CHIO_FALSE!$WANT_SCSI_CHIO_FALSE$ac_delim
70155 WANT_AMFLOCK_POSIX_TRUE!$WANT_AMFLOCK_POSIX_TRUE$ac_delim
70156 WANT_AMFLOCK_POSIX_FALSE!$WANT_AMFLOCK_POSIX_FALSE$ac_delim
70157 WANT_AMFLOCK_FLOCK_TRUE!$WANT_AMFLOCK_FLOCK_TRUE$ac_delim
70158 WANT_AMFLOCK_FLOCK_FALSE!$WANT_AMFLOCK_FLOCK_FALSE$ac_delim
70159 WANT_AMFLOCK_LOCKF_TRUE!$WANT_AMFLOCK_LOCKF_TRUE$ac_delim
70160 WANT_AMFLOCK_LOCKF_FALSE!$WANT_AMFLOCK_LOCKF_FALSE$ac_delim
70161 WANT_AMFLOCK_LNLOCK_TRUE!$WANT_AMFLOCK_LNLOCK_TRUE$ac_delim
70162 WANT_AMFLOCK_LNLOCK_FALSE!$WANT_AMFLOCK_LNLOCK_FALSE$ac_delim
70163 SWIG!$SWIG$ac_delim
70164 SWIG_LIB!$SWIG_LIB$ac_delim
70165 PERL!$PERL$ac_delim
70166 PERL_INC!$PERL_INC$ac_delim
70167 WANT_CYGWIN_COPY_PERL_DLL_TRUE!$WANT_CYGWIN_COPY_PERL_DLL_TRUE$ac_delim
70168 WANT_CYGWIN_COPY_PERL_DLL_FALSE!$WANT_CYGWIN_COPY_PERL_DLL_FALSE$ac_delim
70169 PERLEXTLIBS!$PERLEXTLIBS$ac_delim
70170 CAT!$CAT$ac_delim
70171 CLIENT_SCRIPTS_OPT!$CLIENT_SCRIPTS_OPT$ac_delim
70172 amlibdir!$amlibdir$ac_delim
70173 amlibexecdir!$amlibexecdir$ac_delim
70174 amincludedir!$amincludedir$ac_delim
70175 amperldir!$amperldir$ac_delim
70176 DUMPER_DIR!$DUMPER_DIR$ac_delim
70177 MSGFMT!$MSGFMT$ac_delim
70178 GETTEXT!$GETTEXT$ac_delim
70179 USE_NLS!$USE_NLS$ac_delim
70180 GMSGFMT!$GMSGFMT$ac_delim
70181 MSGFMT_015!$MSGFMT_015$ac_delim
70182 GMSGFMT_015!$GMSGFMT_015$ac_delim
70183 XGETTEXT!$XGETTEXT$ac_delim
70184 XGETTEXT_015!$XGETTEXT_015$ac_delim
70185 _ACEOF
70186
70187   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
70188     break
70189   elif $ac_last_try; then
70190     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
70191 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
70192    { (exit 1); exit 1; }; }
70193   else
70194     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
70195   fi
70196 done
70197
70198 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
70199 if test -n "$ac_eof"; then
70200   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
70201   ac_eof=`expr $ac_eof + 1`
70202 fi
70203
70204 cat >>$CONFIG_STATUS <<_ACEOF
70205 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
70206 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
70207 _ACEOF
70208 sed '
70209 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
70210 s/^/s,@/; s/!/@,|#_!!_#|/
70211 :n
70212 t n
70213 s/'"$ac_delim"'$/,g/; t
70214 s/$/\\/; p
70215 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
70216 ' >>$CONFIG_STATUS <conf$$subs.sed
70217 rm -f conf$$subs.sed
70218 cat >>$CONFIG_STATUS <<_ACEOF
70219 CEOF$ac_eof
70220 _ACEOF
70221
70222
70223 ac_delim='%!_!# '
70224 for ac_last_try in false false false false false :; do
70225   cat >conf$$subs.sed <<_ACEOF
70226 MSGMERGE!$MSGMERGE$ac_delim
70227 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
70228 LIBICONV!$LIBICONV$ac_delim
70229 LTLIBICONV!$LTLIBICONV$ac_delim
70230 INTLLIBS!$INTLLIBS$ac_delim
70231 POSUB!$POSUB$ac_delim
70232 CURL_CONFIG!$CURL_CONFIG$ac_delim
70233 _libcurl_config!$_libcurl_config$ac_delim
70234 LIBCURL_CPPFLAGS!$LIBCURL_CPPFLAGS$ac_delim
70235 LIBCURL!$LIBCURL$ac_delim
70236 WANT_S3_DEVICE_TRUE!$WANT_S3_DEVICE_TRUE$ac_delim
70237 WANT_S3_DEVICE_FALSE!$WANT_S3_DEVICE_FALSE$ac_delim
70238 WANT_DEVPAY_TRUE!$WANT_DEVPAY_TRUE$ac_delim
70239 WANT_DEVPAY_FALSE!$WANT_DEVPAY_FALSE$ac_delim
70240 WANT_TAPE_XENIX_TRUE!$WANT_TAPE_XENIX_TRUE$ac_delim
70241 WANT_TAPE_XENIX_FALSE!$WANT_TAPE_XENIX_FALSE$ac_delim
70242 WANT_TAPE_AIX_TRUE!$WANT_TAPE_AIX_TRUE$ac_delim
70243 WANT_TAPE_AIX_FALSE!$WANT_TAPE_AIX_FALSE$ac_delim
70244 WANT_TAPE_UWARE_TRUE!$WANT_TAPE_UWARE_TRUE$ac_delim
70245 WANT_TAPE_UWARE_FALSE!$WANT_TAPE_UWARE_FALSE$ac_delim
70246 WANT_TAPE_POSIX_TRUE!$WANT_TAPE_POSIX_TRUE$ac_delim
70247 WANT_TAPE_POSIX_FALSE!$WANT_TAPE_POSIX_FALSE$ac_delim
70248 WANT_TAPE_DEVICE_TRUE!$WANT_TAPE_DEVICE_TRUE$ac_delim
70249 WANT_TAPE_DEVICE_FALSE!$WANT_TAPE_DEVICE_FALSE$ac_delim
70250 WANT_BSD_SECURITY_TRUE!$WANT_BSD_SECURITY_TRUE$ac_delim
70251 WANT_BSD_SECURITY_FALSE!$WANT_BSD_SECURITY_FALSE$ac_delim
70252 WANT_BSDTCP_SECURITY_TRUE!$WANT_BSDTCP_SECURITY_TRUE$ac_delim
70253 WANT_BSDTCP_SECURITY_FALSE!$WANT_BSDTCP_SECURITY_FALSE$ac_delim
70254 WANT_BSDUDP_SECURITY_TRUE!$WANT_BSDUDP_SECURITY_TRUE$ac_delim
70255 WANT_BSDUDP_SECURITY_FALSE!$WANT_BSDUDP_SECURITY_FALSE$ac_delim
70256 WANT_RSH_SECURITY_TRUE!$WANT_RSH_SECURITY_TRUE$ac_delim
70257 WANT_RSH_SECURITY_FALSE!$WANT_RSH_SECURITY_FALSE$ac_delim
70258 SSH!$SSH$ac_delim
70259 WANT_SSH_SECURITY_TRUE!$WANT_SSH_SECURITY_TRUE$ac_delim
70260 WANT_SSH_SECURITY_FALSE!$WANT_SSH_SECURITY_FALSE$ac_delim
70261 WANT_KRB4_SECURITY_TRUE!$WANT_KRB4_SECURITY_TRUE$ac_delim
70262 WANT_KRB4_SECURITY_FALSE!$WANT_KRB4_SECURITY_FALSE$ac_delim
70263 WANT_KRB5_SECURITY_TRUE!$WANT_KRB5_SECURITY_TRUE$ac_delim
70264 WANT_KRB5_SECURITY_FALSE!$WANT_KRB5_SECURITY_FALSE$ac_delim
70265 XFSDUMP!$XFSDUMP$ac_delim
70266 XFSRESTORE!$XFSRESTORE$ac_delim
70267 VXDUMP!$VXDUMP$ac_delim
70268 VXRESTORE!$VXRESTORE$ac_delim
70269 VDUMP!$VDUMP$ac_delim
70270 VRESTORE!$VRESTORE$ac_delim
70271 DUMP!$DUMP$ac_delim
70272 RESTORE!$RESTORE$ac_delim
70273 GNUTAR!$GNUTAR$ac_delim
70274 SAMBA_CLIENT!$SAMBA_CLIENT$ac_delim
70275 WANT_SAMBA_TRUE!$WANT_SAMBA_TRUE$ac_delim
70276 WANT_SAMBA_FALSE!$WANT_SAMBA_FALSE$ac_delim
70277 AMLINT!$AMLINT$ac_delim
70278 AMLINTFLAGS!$AMLINTFLAGS$ac_delim
70279 LEX!$LEX$ac_delim
70280 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
70281 LEXLIB!$LEXLIB$ac_delim
70282 AR!$AR$ac_delim
70283 YACC!$YACC$ac_delim
70284 YFLAGS!$YFLAGS$ac_delim
70285 DD!$DD$ac_delim
70286 BASH!$BASH$ac_delim
70287 SORT!$SORT$ac_delim
70288 MAILER!$MAILER$ac_delim
70289 MT!$MT$ac_delim
70290 MT_FILE_FLAG!$MT_FILE_FLAG$ac_delim
70291 PRINT!$PRINT$ac_delim
70292 GCC_COMPILER_TRUE!$GCC_COMPILER_TRUE$ac_delim
70293 GCC_COMPILER_FALSE!$GCC_COMPILER_FALSE$ac_delim
70294 LN_S!$LN_S$ac_delim
70295 ECHO!$ECHO$ac_delim
70296 CXX!$CXX$ac_delim
70297 CXXFLAGS!$CXXFLAGS$ac_delim
70298 ac_ct_CXX!$ac_ct_CXX$ac_delim
70299 CXXDEPMODE!$CXXDEPMODE$ac_delim
70300 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
70301 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
70302 CXXCPP!$CXXCPP$ac_delim
70303 F77!$F77$ac_delim
70304 FFLAGS!$FFLAGS$ac_delim
70305 ac_ct_F77!$ac_ct_F77$ac_delim
70306 LIBTOOL!$LIBTOOL$ac_delim
70307 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
70308 AMANDA_STATIC_LDFLAGS!$AMANDA_STATIC_LDFLAGS$ac_delim
70309 PKG_CONFIG!$PKG_CONFIG$ac_delim
70310 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
70311 GLIB_LIBS!$GLIB_LIBS$ac_delim
70312 GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
70313 GOBJECT_QUERY!$GOBJECT_QUERY$ac_delim
70314 GLIB_MKENUMS!$GLIB_MKENUMS$ac_delim
70315 READLINE_LIBS!$READLINE_LIBS$ac_delim
70316 LIBOBJS!$LIBOBJS$ac_delim
70317 LTLIBOBJS!$LTLIBOBJS$ac_delim
70318 gl_LIBOBJS!$gl_LIBOBJS$ac_delim
70319 gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim
70320 _ACEOF
70321
70322   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
70323     break
70324   elif $ac_last_try; then
70325     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
70326 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
70327    { (exit 1); exit 1; }; }
70328   else
70329     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
70330   fi
70331 done
70332
70333 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
70334 if test -n "$ac_eof"; then
70335   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
70336   ac_eof=`expr $ac_eof + 1`
70337 fi
70338
70339 cat >>$CONFIG_STATUS <<_ACEOF
70340 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
70341 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
70342 _ACEOF
70343 sed '
70344 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
70345 s/^/s,@/; s/!/@,|#_!!_#|/
70346 :n
70347 t n
70348 s/'"$ac_delim"'$/,g/; t
70349 s/$/\\/; p
70350 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
70351 ' >>$CONFIG_STATUS <conf$$subs.sed
70352 rm -f conf$$subs.sed
70353 cat >>$CONFIG_STATUS <<_ACEOF
70354 :end
70355 s/|#_!!_#|//g
70356 CEOF$ac_eof
70357 _ACEOF
70358
70359
70360 # VPATH may cause trouble with some makes, so we remove $(srcdir),
70361 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
70362 # trailing colons and then remove the whole line if VPATH becomes empty
70363 # (actually we leave an empty line to preserve line numbers).
70364 if test "x$srcdir" = x.; then
70365   ac_vpsub='/^[  ]*VPATH[        ]*=/{
70366 s/:*\$(srcdir):*/:/
70367 s/:*\${srcdir}:*/:/
70368 s/:*@srcdir@:*/:/
70369 s/^\([^=]*=[     ]*\):*/\1/
70370 s/:*$//
70371 s/^[^=]*=[       ]*$//
70372 }'
70373 fi
70374
70375 cat >>$CONFIG_STATUS <<\_ACEOF
70376 fi # test -n "$CONFIG_FILES"
70377
70378
70379 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
70380 do
70381   case $ac_tag in
70382   :[FHLC]) ac_mode=$ac_tag; continue;;
70383   esac
70384   case $ac_mode$ac_tag in
70385   :[FHL]*:*);;
70386   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
70387 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
70388    { (exit 1); exit 1; }; };;
70389   :[FH]-) ac_tag=-:-;;
70390   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
70391   esac
70392   ac_save_IFS=$IFS
70393   IFS=:
70394   set x $ac_tag
70395   IFS=$ac_save_IFS
70396   shift
70397   ac_file=$1
70398   shift
70399
70400   case $ac_mode in
70401   :L) ac_source=$1;;
70402   :[FH])
70403     ac_file_inputs=
70404     for ac_f
70405     do
70406       case $ac_f in
70407       -) ac_f="$tmp/stdin";;
70408       *) # Look for the file first in the build tree, then in the source tree
70409          # (if the path is not absolute).  The absolute path cannot be DOS-style,
70410          # because $ac_f cannot contain `:'.
70411          test -f "$ac_f" ||
70412            case $ac_f in
70413            [\\/$]*) false;;
70414            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
70415            esac ||
70416            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
70417 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
70418    { (exit 1); exit 1; }; };;
70419       esac
70420       ac_file_inputs="$ac_file_inputs $ac_f"
70421     done
70422
70423     # Let's still pretend it is `configure' which instantiates (i.e., don't
70424     # use $as_me), people would be surprised to read:
70425     #    /* config.h.  Generated by config.status.  */
70426     configure_input="Generated from "`IFS=:
70427           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
70428     if test x"$ac_file" != x-; then
70429       configure_input="$ac_file.  $configure_input"
70430       { echo "$as_me:$LINENO: creating $ac_file" >&5
70431 echo "$as_me: creating $ac_file" >&6;}
70432     fi
70433
70434     case $ac_tag in
70435     *:-:* | *:-) cat >"$tmp/stdin";;
70436     esac
70437     ;;
70438   esac
70439
70440   ac_dir=`$as_dirname -- "$ac_file" ||
70441 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70442          X"$ac_file" : 'X\(//\)[^/]' \| \
70443          X"$ac_file" : 'X\(//\)$' \| \
70444          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
70445 echo X"$ac_file" |
70446     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70447             s//\1/
70448             q
70449           }
70450           /^X\(\/\/\)[^/].*/{
70451             s//\1/
70452             q
70453           }
70454           /^X\(\/\/\)$/{
70455             s//\1/
70456             q
70457           }
70458           /^X\(\/\).*/{
70459             s//\1/
70460             q
70461           }
70462           s/.*/./; q'`
70463   { as_dir="$ac_dir"
70464   case $as_dir in #(
70465   -*) as_dir=./$as_dir;;
70466   esac
70467   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
70468     as_dirs=
70469     while :; do
70470       case $as_dir in #(
70471       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
70472       *) as_qdir=$as_dir;;
70473       esac
70474       as_dirs="'$as_qdir' $as_dirs"
70475       as_dir=`$as_dirname -- "$as_dir" ||
70476 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70477          X"$as_dir" : 'X\(//\)[^/]' \| \
70478          X"$as_dir" : 'X\(//\)$' \| \
70479          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
70480 echo X"$as_dir" |
70481     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70482             s//\1/
70483             q
70484           }
70485           /^X\(\/\/\)[^/].*/{
70486             s//\1/
70487             q
70488           }
70489           /^X\(\/\/\)$/{
70490             s//\1/
70491             q
70492           }
70493           /^X\(\/\).*/{
70494             s//\1/
70495             q
70496           }
70497           s/.*/./; q'`
70498       test -d "$as_dir" && break
70499     done
70500     test -z "$as_dirs" || eval "mkdir $as_dirs"
70501   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
70502 echo "$as_me: error: cannot create directory $as_dir" >&2;}
70503    { (exit 1); exit 1; }; }; }
70504   ac_builddir=.
70505
70506 case "$ac_dir" in
70507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
70508 *)
70509   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
70510   # A ".." for each directory in $ac_dir_suffix.
70511   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
70512   case $ac_top_builddir_sub in
70513   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
70514   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
70515   esac ;;
70516 esac
70517 ac_abs_top_builddir=$ac_pwd
70518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
70519 # for backward compatibility:
70520 ac_top_builddir=$ac_top_build_prefix
70521
70522 case $srcdir in
70523   .)  # We are building in place.
70524     ac_srcdir=.
70525     ac_top_srcdir=$ac_top_builddir_sub
70526     ac_abs_top_srcdir=$ac_pwd ;;
70527   [\\/]* | ?:[\\/]* )  # Absolute name.
70528     ac_srcdir=$srcdir$ac_dir_suffix;
70529     ac_top_srcdir=$srcdir
70530     ac_abs_top_srcdir=$srcdir ;;
70531   *) # Relative name.
70532     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
70533     ac_top_srcdir=$ac_top_build_prefix$srcdir
70534     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
70535 esac
70536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
70537
70538
70539   case $ac_mode in
70540   :F)
70541   #
70542   # CONFIG_FILE
70543   #
70544
70545   case $INSTALL in
70546   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
70547   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
70548   esac
70549   ac_MKDIR_P=$MKDIR_P
70550   case $MKDIR_P in
70551   [\\/$]* | ?:[\\/]* ) ;;
70552   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
70553   esac
70554 _ACEOF
70555
70556 cat >>$CONFIG_STATUS <<\_ACEOF
70557 # If the template does not know about datarootdir, expand it.
70558 # FIXME: This hack should be removed a few years after 2.60.
70559 ac_datarootdir_hack=; ac_datarootdir_seen=
70560
70561 case `sed -n '/datarootdir/ {
70562   p
70563   q
70564 }
70565 /@datadir@/p
70566 /@docdir@/p
70567 /@infodir@/p
70568 /@localedir@/p
70569 /@mandir@/p
70570 ' $ac_file_inputs` in
70571 *datarootdir*) ac_datarootdir_seen=yes;;
70572 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
70573   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
70574 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
70575 _ACEOF
70576 cat >>$CONFIG_STATUS <<_ACEOF
70577   ac_datarootdir_hack='
70578   s&@datadir@&$datadir&g
70579   s&@docdir@&$docdir&g
70580   s&@infodir@&$infodir&g
70581   s&@localedir@&$localedir&g
70582   s&@mandir@&$mandir&g
70583     s&\\\${datarootdir}&$datarootdir&g' ;;
70584 esac
70585 _ACEOF
70586
70587 # Neutralize VPATH when `$srcdir' = `.'.
70588 # Shell code in configure.ac might set extrasub.
70589 # FIXME: do we really want to maintain this feature?
70590 cat >>$CONFIG_STATUS <<_ACEOF
70591   sed "$ac_vpsub
70592 $extrasub
70593 _ACEOF
70594 cat >>$CONFIG_STATUS <<\_ACEOF
70595 :t
70596 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
70597 s&@configure_input@&$configure_input&;t t
70598 s&@top_builddir@&$ac_top_builddir_sub&;t t
70599 s&@srcdir@&$ac_srcdir&;t t
70600 s&@abs_srcdir@&$ac_abs_srcdir&;t t
70601 s&@top_srcdir@&$ac_top_srcdir&;t t
70602 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
70603 s&@builddir@&$ac_builddir&;t t
70604 s&@abs_builddir@&$ac_abs_builddir&;t t
70605 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
70606 s&@INSTALL@&$ac_INSTALL&;t t
70607 s&@MKDIR_P@&$ac_MKDIR_P&;t t
70608 $ac_datarootdir_hack
70609 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" | sed -f "$tmp/subs-5.sed" >$tmp/out
70610
70611 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
70612   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
70613   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
70614   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
70615 which seems to be undefined.  Please make sure it is defined." >&5
70616 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
70617 which seems to be undefined.  Please make sure it is defined." >&2;}
70618
70619   rm -f "$tmp/stdin"
70620   case $ac_file in
70621   -) cat "$tmp/out"; rm -f "$tmp/out";;
70622   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
70623   esac
70624  ;;
70625   :H)
70626   #
70627   # CONFIG_HEADER
70628   #
70629 _ACEOF
70630
70631 # Transform confdefs.h into a sed script `conftest.defines', that
70632 # substitutes the proper values into config.h.in to produce config.h.
70633 rm -f conftest.defines conftest.tail
70634 # First, append a space to every undef/define line, to ease matching.
70635 echo 's/$/ /' >conftest.defines
70636 # Then, protect against being on the right side of a sed subst, or in
70637 # an unquoted here document, in config.status.  If some macros were
70638 # called several times there might be several #defines for the same
70639 # symbol, which is useless.  But do not sort them, since the last
70640 # AC_DEFINE must be honored.
70641 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
70642 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
70643 # NAME is the cpp macro being defined, VALUE is the value it is being given.
70644 # PARAMS is the parameter list in the macro definition--in most cases, it's
70645 # just an empty string.
70646 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
70647 ac_dB='\\)[      (].*,\\1define\\2'
70648 ac_dC=' '
70649 ac_dD=' ,'
70650
70651 uniq confdefs.h |
70652   sed -n '
70653         t rset
70654         :rset
70655         s/^[     ]*#[    ]*define[       ][      ]*//
70656         t ok
70657         d
70658         :ok
70659         s/[\\&,]/\\&/g
70660         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
70661         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
70662   ' >>conftest.defines
70663
70664 # Remove the space that was appended to ease matching.
70665 # Then replace #undef with comments.  This is necessary, for
70666 # example, in the case of _POSIX_SOURCE, which is predefined and required
70667 # on some systems where configure will not decide to define it.
70668 # (The regexp can be short, since the line contains either #define or #undef.)
70669 echo 's/ $//
70670 s,^[     #]*u.*,/* & */,' >>conftest.defines
70671
70672 # Break up conftest.defines:
70673 ac_max_sed_lines=50
70674
70675 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
70676 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
70677 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
70678 # et cetera.
70679 ac_in='$ac_file_inputs'
70680 ac_out='"$tmp/out1"'
70681 ac_nxt='"$tmp/out2"'
70682
70683 while :
70684 do
70685   # Write a here document:
70686     cat >>$CONFIG_STATUS <<_ACEOF
70687     # First, check the format of the line:
70688     cat >"\$tmp/defines.sed" <<\\CEOF
70689 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
70690 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
70691 b
70692 :def
70693 _ACEOF
70694   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
70695   echo 'CEOF
70696     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
70697   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
70698   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
70699   grep . conftest.tail >/dev/null || break
70700   rm -f conftest.defines
70701   mv conftest.tail conftest.defines
70702 done
70703 rm -f conftest.defines conftest.tail
70704
70705 echo "ac_result=$ac_in" >>$CONFIG_STATUS
70706 cat >>$CONFIG_STATUS <<\_ACEOF
70707   if test x"$ac_file" != x-; then
70708     echo "/* $configure_input  */" >"$tmp/config.h"
70709     cat "$ac_result" >>"$tmp/config.h"
70710     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
70711       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
70712 echo "$as_me: $ac_file is unchanged" >&6;}
70713     else
70714       rm -f $ac_file
70715       mv "$tmp/config.h" $ac_file
70716     fi
70717   else
70718     echo "/* $configure_input  */"
70719     cat "$ac_result"
70720   fi
70721   rm -f "$tmp/out12"
70722 # Compute $ac_file's index in $config_headers.
70723 _am_stamp_count=1
70724 for _am_header in $config_headers :; do
70725   case $_am_header in
70726     $ac_file | $ac_file:* )
70727       break ;;
70728     * )
70729       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
70730   esac
70731 done
70732 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
70733 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70734          X$ac_file : 'X\(//\)[^/]' \| \
70735          X$ac_file : 'X\(//\)$' \| \
70736          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
70737 echo X$ac_file |
70738     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70739             s//\1/
70740             q
70741           }
70742           /^X\(\/\/\)[^/].*/{
70743             s//\1/
70744             q
70745           }
70746           /^X\(\/\/\)$/{
70747             s//\1/
70748             q
70749           }
70750           /^X\(\/\).*/{
70751             s//\1/
70752             q
70753           }
70754           s/.*/./; q'`/stamp-h$_am_stamp_count
70755  ;;
70756
70757   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
70758 echo "$as_me: executing $ac_file commands" >&6;}
70759  ;;
70760   esac
70761
70762
70763   case $ac_file$ac_mode in
70764     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
70765   # Strip MF so we end up with the name of the file.
70766   mf=`echo "$mf" | sed -e 's/:.*$//'`
70767   # Check whether this is an Automake generated Makefile or not.
70768   # We used to match only the files named `Makefile.in', but
70769   # some people rename them; so instead we look at the file content.
70770   # Grep'ing the first line is not enough: some people post-process
70771   # each Makefile.in and add a new line on top of each file to say so.
70772   # Grep'ing the whole file is not good either: AIX grep has a line
70773   # limit of 2048, but all sed's we know have understand at least 4000.
70774   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
70775     dirpart=`$as_dirname -- "$mf" ||
70776 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70777          X"$mf" : 'X\(//\)[^/]' \| \
70778          X"$mf" : 'X\(//\)$' \| \
70779          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
70780 echo X"$mf" |
70781     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70782             s//\1/
70783             q
70784           }
70785           /^X\(\/\/\)[^/].*/{
70786             s//\1/
70787             q
70788           }
70789           /^X\(\/\/\)$/{
70790             s//\1/
70791             q
70792           }
70793           /^X\(\/\).*/{
70794             s//\1/
70795             q
70796           }
70797           s/.*/./; q'`
70798   else
70799     continue
70800   fi
70801   # Extract the definition of DEPDIR, am__include, and am__quote
70802   # from the Makefile without running `make'.
70803   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
70804   test -z "$DEPDIR" && continue
70805   am__include=`sed -n 's/^am__include = //p' < "$mf"`
70806   test -z "am__include" && continue
70807   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
70808   # When using ansi2knr, U may be empty or an underscore; expand it
70809   U=`sed -n 's/^U = //p' < "$mf"`
70810   # Find all dependency output files, they are included files with
70811   # $(DEPDIR) in their names.  We invoke sed twice because it is the
70812   # simplest approach to changing $(DEPDIR) to its actual value in the
70813   # expansion.
70814   for file in `sed -n "
70815     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
70816        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
70817     # Make sure the directory exists.
70818     test -f "$dirpart/$file" && continue
70819     fdir=`$as_dirname -- "$file" ||
70820 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70821          X"$file" : 'X\(//\)[^/]' \| \
70822          X"$file" : 'X\(//\)$' \| \
70823          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
70824 echo X"$file" |
70825     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70826             s//\1/
70827             q
70828           }
70829           /^X\(\/\/\)[^/].*/{
70830             s//\1/
70831             q
70832           }
70833           /^X\(\/\/\)$/{
70834             s//\1/
70835             q
70836           }
70837           /^X\(\/\).*/{
70838             s//\1/
70839             q
70840           }
70841           s/.*/./; q'`
70842     { as_dir=$dirpart/$fdir
70843   case $as_dir in #(
70844   -*) as_dir=./$as_dir;;
70845   esac
70846   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
70847     as_dirs=
70848     while :; do
70849       case $as_dir in #(
70850       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
70851       *) as_qdir=$as_dir;;
70852       esac
70853       as_dirs="'$as_qdir' $as_dirs"
70854       as_dir=`$as_dirname -- "$as_dir" ||
70855 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70856          X"$as_dir" : 'X\(//\)[^/]' \| \
70857          X"$as_dir" : 'X\(//\)$' \| \
70858          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
70859 echo X"$as_dir" |
70860     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70861             s//\1/
70862             q
70863           }
70864           /^X\(\/\/\)[^/].*/{
70865             s//\1/
70866             q
70867           }
70868           /^X\(\/\/\)$/{
70869             s//\1/
70870             q
70871           }
70872           /^X\(\/\).*/{
70873             s//\1/
70874             q
70875           }
70876           s/.*/./; q'`
70877       test -d "$as_dir" && break
70878     done
70879     test -z "$as_dirs" || eval "mkdir $as_dirs"
70880   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
70881 echo "$as_me: error: cannot create directory $as_dir" >&2;}
70882    { (exit 1); exit 1; }; }; }
70883     # echo "creating $dirpart/$file"
70884     echo '# dummy' > "$dirpart/$file"
70885   done
70886 done
70887  ;;
70888     "po-directories":C)
70889     for ac_file in $CONFIG_FILES; do
70890       # Support "outfile[:infile[:infile...]]"
70891       case "$ac_file" in
70892         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
70893       esac
70894       # PO directories have a Makefile.in generated from Makefile.in.in.
70895       case "$ac_file" in */Makefile.in)
70896         # Adjust a relative srcdir.
70897         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
70898         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
70899         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
70900         # In autoconf-2.13 it is called $ac_given_srcdir.
70901         # In autoconf-2.50 it is called $srcdir.
70902         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
70903         case "$ac_given_srcdir" in
70904           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
70905           /*) top_srcdir="$ac_given_srcdir" ;;
70906           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
70907         esac
70908         # Treat a directory as a PO directory if and only if it has a
70909         # POTFILES.in file. This allows packages to have multiple PO
70910         # directories under different names or in different locations.
70911         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
70912           rm -f "$ac_dir/POTFILES"
70913           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
70914           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
70915           POMAKEFILEDEPS="POTFILES.in"
70916           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
70917           # on $ac_dir but don't depend on user-specified configuration
70918           # parameters.
70919           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
70920             # The LINGUAS file contains the set of available languages.
70921             if test -n "$OBSOLETE_ALL_LINGUAS"; then
70922               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
70923             fi
70924             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
70925             # Hide the ALL_LINGUAS assigment from automake < 1.5.
70926             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
70927             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
70928           else
70929             # The set of available languages was given in configure.in.
70930             # Hide the ALL_LINGUAS assigment from automake < 1.5.
70931             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
70932           fi
70933           # Compute POFILES
70934           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
70935           # Compute UPDATEPOFILES
70936           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
70937           # Compute DUMMYPOFILES
70938           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
70939           # Compute GMOFILES
70940           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
70941           case "$ac_given_srcdir" in
70942             .) srcdirpre= ;;
70943             *) srcdirpre='$(srcdir)/' ;;
70944           esac
70945           POFILES=
70946           UPDATEPOFILES=
70947           DUMMYPOFILES=
70948           GMOFILES=
70949           for lang in $ALL_LINGUAS; do
70950             POFILES="$POFILES $srcdirpre$lang.po"
70951             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
70952             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
70953             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
70954           done
70955           # CATALOGS depends on both $ac_dir and the user's LINGUAS
70956           # environment variable.
70957           INST_LINGUAS=
70958           if test -n "$ALL_LINGUAS"; then
70959             for presentlang in $ALL_LINGUAS; do
70960               useit=no
70961               if test "%UNSET%" != "$LINGUAS"; then
70962                 desiredlanguages="$LINGUAS"
70963               else
70964                 desiredlanguages="$ALL_LINGUAS"
70965               fi
70966               for desiredlang in $desiredlanguages; do
70967                 # Use the presentlang catalog if desiredlang is
70968                 #   a. equal to presentlang, or
70969                 #   b. a variant of presentlang (because in this case,
70970                 #      presentlang can be used as a fallback for messages
70971                 #      which are not translated in the desiredlang catalog).
70972                 case "$desiredlang" in
70973                   "$presentlang"*) useit=yes;;
70974                 esac
70975               done
70976               if test $useit = yes; then
70977                 INST_LINGUAS="$INST_LINGUAS $presentlang"
70978               fi
70979             done
70980           fi
70981           CATALOGS=
70982           if test -n "$INST_LINGUAS"; then
70983             for lang in $INST_LINGUAS; do
70984               CATALOGS="$CATALOGS $lang.gmo"
70985             done
70986           fi
70987           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
70988           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"
70989           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
70990             if test -f "$f"; then
70991               case "$f" in
70992                 *.orig | *.bak | *~) ;;
70993                 *) cat "$f" >> "$ac_dir/Makefile" ;;
70994               esac
70995             fi
70996           done
70997         fi
70998         ;;
70999       esac
71000     done ;;
71001
71002   esac
71003 done # for ac_tag
71004
71005
71006 { (exit 0); exit 0; }
71007 _ACEOF
71008 chmod +x $CONFIG_STATUS
71009 ac_clean_files=$ac_clean_files_save
71010
71011
71012 # configure is writing to config.log, and then calls config.status.
71013 # config.status does its own redirection, appending to config.log.
71014 # Unfortunately, on DOS this fails, as config.log is still kept open
71015 # by configure, so config.status won't be able to write to it; its
71016 # output is simply discarded.  So we exec the FD to /dev/null,
71017 # effectively closing config.log, so it can be properly (re)opened and
71018 # appended to by config.status.  When coming back to configure, we
71019 # need to make the FD available again.
71020 if test "$no_create" != yes; then
71021   ac_cs_success=:
71022   ac_config_status_args=
71023   test "$silent" = yes &&
71024     ac_config_status_args="$ac_config_status_args --quiet"
71025   exec 5>/dev/null
71026   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
71027   exec 5>>config.log
71028   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
71029   # would make configure fail if this is the last instruction.
71030   $ac_cs_success || { (exit 1); exit 1; }
71031 fi
71032
71033
71034
71035
71036
71037     # Extract the first word of "svn", so it can be a program name with args.
71038 set dummy svn; ac_word=$2
71039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
71040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
71041 if test "${ac_cv_path_SVN+set}" = set; then
71042   echo $ECHO_N "(cached) $ECHO_C" >&6
71043 else
71044   case $SVN in
71045   [\\/]* | ?:[\\/]*)
71046   ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
71047   ;;
71048   *)
71049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
71050 for as_dir in $LOCSYSPATH
71051 do
71052   IFS=$as_save_IFS
71053   test -z "$as_dir" && as_dir=.
71054   for ac_exec_ext in '' $ac_executable_extensions; do
71055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
71056     ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
71057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
71058     break 2
71059   fi
71060 done
71061 done
71062 IFS=$as_save_IFS
71063
71064   ;;
71065 esac
71066 fi
71067 SVN=$ac_cv_path_SVN
71068 if test -n "$SVN"; then
71069   { echo "$as_me:$LINENO: result: $SVN" >&5
71070 echo "${ECHO_T}$SVN" >&6; }
71071 else
71072   { echo "$as_me:$LINENO: result: no" >&5
71073 echo "${ECHO_T}no" >&6; }
71074 fi
71075
71076
71077     { echo "$as_me:$LINENO: checking Subversion revision information" >&5
71078 echo $ECHO_N "checking Subversion revision information... $ECHO_C" >&6; }
71079     if test -d $srcdir/.svn && test -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
71080         rev=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
71081         url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
71082         ( echo '#define BUILT_REV "'$rev'"'
71083           echo '#define BUILT_BRANCH "'`basename "$url"`'"'
71084         ) > common-src/svn-info.h
71085
71086         { echo "$as_me:$LINENO: result: updated" >&5
71087 echo "${ECHO_T}updated" >&6; }
71088     else
71089         # Makefiles will be upset if the file doesn't exist, so double-check
71090         if test -f common-src/svn-info.h; then
71091             : # all good
71092             { echo "$as_me:$LINENO: result: not changed" >&5
71093 echo "${ECHO_T}not changed" >&6; }
71094         else
71095             echo '/* no information available */' > common-src/svn-info.h
71096             { echo "$as_me:$LINENO: result: not available" >&5
71097 echo "${ECHO_T}not available" >&6; }
71098         fi
71099     fi
71100
71101     rm -f conftemp.svn
71102
71103
71104
71105     echo "Compiler Flags:"
71106     echo "  CFLAGS: ${CFLAGS-(none)}"
71107     echo "  CPPFLAGS: ${CPPFLAGS-(none)}"
71108     echo "  LDFLAGS: ${LDFLAGS-(none)}"
71109     echo "  LIBS: ${LIBS-(none)}"
71110
71111
71112     components=''
71113     if $WANT_SERVER; then
71114         components="$components server";
71115     else
71116         components="$components (no server)";
71117     fi
71118     if $WANT_RESTORE; then
71119         components="$components restore";
71120     else
71121         components="$components (no restore)";
71122     fi
71123     if $WANT_CLIENT; then
71124         components="$components client";
71125     else
71126         components="$components (no client)";
71127     fi
71128     if $WANT_RECOVER; then
71129         components="$components amrecover";
71130     else
71131         components="$components (no amrecover)";
71132     fi
71133
71134     echo "Amanda Components: $components"
71135
71136
71137     echo "Working IPv6:" $WORKING_IPV6
71138
71139
71140     echo "Build documentation:" $ENABLE_MANPAGE_BUILD
71141
71142
71143     echo "Directories:"
71144     echo "  Perl modules (amperldir): $amperldir"
71145     echo "  Dumper: $DUMPER_DIR"
71146     echo "  Configuration: $CONFIG_DIR"
71147     echo "  GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
71148     echo "  Temporary: $AMANDA_TMPDIR"
71149
71150     if test -f config.warnings; then
71151         echo "WARNINGS:"
71152         cat config.warnings | sed -e 's/^/  /g'
71153         rm config.warnings
71154     fi
71155